Skip to content

Commit 70e0ed7

Browse files
author
0xAX
committed
Initial commit
0 parents  commit 70e0ed7

20 files changed

+461
-0
lines changed

.bowerrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "bower_components"
3+
}

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.dev/
2+
.tmp/
3+
.DS_Store
4+
*.sublime-project
5+
*.sublime-workspace
6+
bower_components/
7+
node_modules/
8+
/pages/
9+
/docs/
10+
/test/coverage/
11+
!.gitignore
12+
!dist/

Changelog.md

Whitespace-only changes.

Contributors.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
* [0xAX](https://twitter.com/0xAX) - author

Gruntfile.js

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
module.exports = function(grunt) {
2+
3+
grunt.loadNpmTasks('grunt-contrib-watch');
4+
grunt.loadNpmTasks('grunt-contrib-concat');
5+
grunt.loadNpmTasks('grunt-contrib-copy');
6+
grunt.loadNpmTasks('grunt-contrib-jshint');
7+
grunt.loadNpmTasks('grunt-contrib-uglify');
8+
grunt.loadNpmTasks('grunt-html2js');
9+
grunt.loadNpmTasks('grunt-karma');
10+
grunt.loadNpmTasks('grunt-conventional-changelog');
11+
grunt.loadNpmTasks('grunt-ngdocs');
12+
13+
grunt.initConfig({
14+
dist: 'dist',
15+
filename: 'angular-semantic-ui',
16+
pkg: grunt.file.readJSON('package.json'),
17+
concat: {
18+
js:{
19+
src: ['src/angularify.semantic.js', 'src/accordion/accordion.js'],
20+
dest: '<%= dist %>/<%= filename %>-<%= pkg.version %>.js'
21+
}
22+
},
23+
uglify: {
24+
dist:{
25+
src:['<%= dist %>/<%= filename %>-<%= pkg.version %>.js'],
26+
dest: '<%= dist %>/<%= filename %>-<%= pkg.version %>.js'
27+
}
28+
},
29+
karma: {
30+
options: {
31+
configFile: 'karma.conf.js'
32+
},
33+
watch: {
34+
background: true
35+
},
36+
continuous: {
37+
singleRun: true
38+
},
39+
}
40+
});
41+
42+
grunt.registerTask('build', ['concat:js', 'uglify']);
43+
grunt.registerTask('test', ['karma']);
44+
45+
grunt.registerTask('angular-semantic-ui-version', 'Prints version of angular-semantic-ui.', function() {
46+
console.log('angular-semantic-ui-0.0.1');
47+
});
48+
}

LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License
2+
3+
Copyright (c) 2014 0xAX
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
angular-semantic-ui
2+
======================
3+
4+
`angular-semantic-ui` - is a set of `angular.js` directives for [semantic-ui](http://semantic-ui.com/).
5+
6+
Directives
7+
----------------------
8+
9+
* accordion
10+
11+
Building
12+
----------------------
13+
14+
Get main [repo](https://github.com/angularify/angular-semantic-ui) with:
15+
16+
```
17+
git clone https://github.com/angularify/angular-semantic-ui.git
18+
```
19+
20+
Than go to the `angular-semantic-ui directive` directory and execute:
21+
22+
```
23+
grunt build && grunt test
24+
```
25+
26+
There will be: `dist/angular-semantic-ui-x.x.x.js`.
27+
28+
Contribution
29+
----------------------
30+
31+
1. Fork main [repo](https://github.com/angularify/angular-semantic-ui)
32+
2. Make changes.
33+
3. Add tests.
34+
4. Send pull request.
35+
5. Thank you.
36+
37+
Author
38+
----------------------
39+
40+
[@0xAX](https://twitter.com/0xAX)

bower.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "angular-semantic-ui",
3+
"description": "Angular - AngularJS directives for Semantic UI.",
4+
"version": "0.0.1",
5+
"keywords": [
6+
"angular",
7+
"ui"
8+
],
9+
"homepage": "http://0xAX.github.io/angular-semantic-ui",
10+
"bugs": "https://github.com/angularify/angular-semantic-ui",
11+
"author": {
12+
"name": "Alex Kuleshov",
13+
"url": "https://github.com/0xAX"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/angularify/angular-semantic-ui.git"
18+
},
19+
"licenses": [
20+
{
21+
"type": "MIT",
22+
"url": "https://github.com/angularify/angular-semantic-ui/blob/master/LICENSE.md"
23+
}
24+
],
25+
"main": [
26+
"dist/angular-semantic-ui.min.js",
27+
"dist/angular-semantic-ui.tpl.min.js"
28+
],
29+
"ignore": [
30+
"docs",
31+
"test",
32+
"CONTRIBUTING.md"
33+
],
34+
"dependencies": {
35+
"angular": "latest",
36+
"angular-mocks" : "latest",
37+
"semantic": "latest"
38+
},
39+
"devDependencies": {
40+
}
41+
}

dist/.gitkeep

Whitespace-only changes.

dist/angular-semantic-ui-0.0.1.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

karma.conf.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
basePath = '.';
2+
3+
files = [
4+
JASMINE,
5+
JASMINE_ADAPTER,
6+
'bower_components/angular/angular.min.js',
7+
'bower_components/angular-mocks/angular-mocks.js',
8+
'src/**/*.js',
9+
];
10+
11+
exclude = [
12+
'src/**/docs/*', 'src/**/README.md'
13+
];
14+
15+
browsers = [
16+
'PhantomJS'
17+
];
18+
19+
reporters = ['progress'];
20+
21+
port = 9018;
22+
runnerPort = 9100;
23+
24+
colors = true;
25+
26+
logLevel = LOG_INFO
27+
28+
autoWatch = false;
29+
30+
singleRun = false;

package.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "angular-semantic-ui",
3+
"description": "Angular - AngularJS directives for Semantic UI.",
4+
"version": "0.0.1",
5+
"keywords": [
6+
"angular",
7+
"ui",
8+
"semantic"
9+
],
10+
"homepage": "http://0xAX.github.io/angular-semantic-ui",
11+
"bugs": "https://github.com/angularify/angular-semantic-ui",
12+
"author": {
13+
"name": "Alex Kuleshov",
14+
"url": "https://github.com/0xAX"
15+
},
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/angularify/angular-semantic-ui.git"
19+
},
20+
"licenses": [
21+
{
22+
"type": "MIT",
23+
"url": "https://github.com/angularify/angular-semantic-ui/blob/master/LICENSE.md"
24+
}
25+
],
26+
"dependencies": {},
27+
"devDependencies": {
28+
"grunt": "~0.4.1",
29+
"grunt-ngdocs": "~0.1.1",
30+
"grunt-conventional-changelog": "~0.1.2",
31+
"grunt-contrib-concat": "~0.3.0",
32+
"grunt-contrib-copy": "~0.5.0",
33+
"grunt-contrib-uglify": "~0.3.0",
34+
"grunt-contrib-watch": "~0.5.0",
35+
"grunt-contrib-jshint": "~0.8.0",
36+
"karma-phantomjs-launcher" : "latest",
37+
"grunt-html2js": "~0.2.0",
38+
"grunt-karma": "~0.4.4",
39+
"node-markdown": "0.1.1",
40+
"semver": "~2.2.0",
41+
"shelljs": "~0.2.0"
42+
}
43+
}

src/accordion/README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
angularify.semantic.accordion
2+
===============================
3+
4+
`angularify.semantic.accordion` - accordeon directive for angular.js.
5+
6+
Usage
7+
-------------------------------
8+
9+
```
10+
<accordion close="true">
11+
<accordion-group title="First tab" open=true>
12+
<p>Some text in first tab</p>
13+
</accordion-group>
14+
<accordion-group title="Second tab">
15+
<p>Some text in second tab</p>
16+
</accordion-group>
17+
</accordion>
18+
```
19+
20+
Contribution
21+
-------------------------------
22+
23+
1. Fork main [repository](https://github.com/angularify/angular-semantic-ui).
24+
2. Make changes.
25+
3. Create issue.
26+
4. Send pull request.
27+
5. Thank you.
28+
29+
TODO
30+
-------------------------------
31+
32+
1. Add transition.
33+
2. More tests.

0 commit comments

Comments
 (0)