Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating a bootstrap modal using angularStrap
- Loading branch information
1 parent
da4f1bc
commit c9128a6
Showing
151 changed files
with
21,018 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "angular-strap", | ||
"description": "AngularStrap - AngularJS directives for Bootstrap", | ||
"version": "2.3.9", | ||
"keywords": [ | ||
"angular", | ||
"bootstrap" | ||
], | ||
"homepage": "http://mgcrea.github.io/angular-strap", | ||
"bugs": "https://github.com/mgcrea/angular-strap/issues", | ||
"author": { | ||
"name": "Olivier Louvignes", | ||
"email": "olivier@mg-crea.com", | ||
"url": "https://github.com/mgcrea" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mgcrea/angular-strap.git" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/mgcrea/angular-strap/blob/master/LICENSE.md" | ||
} | ||
], | ||
"main": [ | ||
"dist/angular-strap.js", | ||
"dist/angular-strap.tpl.js" | ||
], | ||
"ignore": [ | ||
"docs", | ||
"test", | ||
"tasks", | ||
"CONTRIBUTING.md" | ||
], | ||
"dependencies": { | ||
"angular": "^1.2.21" | ||
}, | ||
"devDependencies": { | ||
"angular-animate": "~1.5", | ||
"angular-i18n": "~1.5", | ||
"angular-mocks": "~1.5", | ||
"angular-motion": "^0.4.3", | ||
"angular-route": "~1.5", | ||
"angular-sanitize": "~1.5", | ||
"angular-scenario": "~1.5", | ||
"bootstrap": "^3.3.6", | ||
"bootstrap-additions": "^0.3.1", | ||
"fastclick": "^1.0.6", | ||
"font-awesome": "^4.5.0", | ||
"highlightjs": "^9.1.0", | ||
"jquery": "^2.2.0" | ||
}, | ||
"_release": "2.3.9", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "v2.3.9", | ||
"commit": "29ca138afe34a37cb38e3855b97b46b87f008354" | ||
}, | ||
"_source": "https://github.com/mgcrea/angular-strap.git", | ||
"_target": "^2.3.9", | ||
"_originalSource": "angular-strap", | ||
"_direct": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
languages: | ||
JavaScript: true | ||
exclude_paths: | ||
- "test/*" | ||
- "tasks/*" | ||
- "docs/*" | ||
- "dist/*" | ||
- "src/*/docs/*" | ||
- "gulpfile.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "mgcrea/legacy", | ||
"rules": { | ||
"consistent-return": 1, | ||
"padded-blocks": 0, | ||
"no-param-reassign": 1, | ||
"no-shadow": 1, | ||
"no-underscore-dangle": 0, | ||
"space-before-function-paren": [2, "always"] | ||
}, | ||
"globals": { | ||
"angular": 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.dev/ | ||
.tmp/ | ||
.DS_Store | ||
.idea | ||
*.log | ||
*.sublime-project | ||
*.sublime-workspace | ||
bower_components/ | ||
node_modules/ | ||
/pages/ | ||
/docs/1.0 | ||
/test/coverage/ | ||
!.gitignore | ||
!dist/ | ||
*.nupkg |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- "4" | ||
|
||
env: | ||
global: | ||
- SAUCE_USERNAME=mgcrea | ||
- SAUCE_ACCESS_KEY=ad4bb656-dfad-4a10-8c10-0a0d8b5a1ead | ||
- CODE_CLIMATE_TOKEN=b5ed978a0e88f95b003a668583ae70815e18cd71019d526023b5e9c7703ec076 | ||
|
||
before_script: | ||
- export DISPLAY=:99.0 | ||
- export CHROME_BIN=chromium-browser | ||
- sh -e /etc/init.d/xvfb start | ||
- sleep 3 # give xvfb some time to start | ||
- npm install -gq bower codeclimate-test-reporter # coveralls | ||
- bower install --dev --config.interactive=0 | ||
- gulp --version | ||
- bower --version | ||
- date --rfc-2822 | ||
|
||
script: | ||
- npm run lint | ||
- $(npm bin)/gulp karma:travis | ||
- $(npm bin)/gulp karma:travis~1.4.0 | ||
- $(npm bin)/gulp karma:travis~1.3.0 | ||
- $(npm bin)/gulp karma:travis~1.2.0 | ||
|
||
after_script: | ||
- cat test/coverage/*/lcov.info | codeclimate-test-reporter | ||
|
||
addons: | ||
code_climate: | ||
repo_token: b5ed978a0e88f95b003a668583ae70815e18cd71019d526023b5e9c7703ec076 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2012-2014 Olivier Louvignes http://olouv.com | ||
|
||
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: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
# [AngularStrap](http://mgcrea.github.io/angular-strap) | ||
|
||
[![Bower Version](http://img.shields.io/bower/v/angular-strap.svg?style=flat)](https://github.com/mgcrea/angular-strap/releases) [![Build Status](http://img.shields.io/travis/mgcrea/angular-strap/master.svg?style=flat)](http://travis-ci.org/mgcrea/angular-strap) [![devDependency Status](http://img.shields.io/david/dev/mgcrea/angular-strap.svg?style=flat)](https://david-dm.org/mgcrea/angular-strap#info=devDependencies) [![Coverage Status](http://img.shields.io/codeclimate/coverage/github/mgcrea/angular-strap.svg?style=flat)](https://codeclimate.com/github/mgcrea/angular-strap) [![Climate Status](https://img.shields.io/codeclimate/github/mgcrea/angular-strap.svg?style=flat)](https://codeclimate.com/github/mgcrea/angular-strap) | ||
|
||
[![Banner](http://mgcrea.github.io/angular-strap/images/snippet.png)](http://mgcrea.github.io/angular-strap) | ||
|
||
AngularStrap is a set of native directives that enables seamless integration of [Bootstrap 3.0+](https://github.com/twbs/bootstrap) into your [AngularJS 1.2+](https://github.com/angular/angular.js) app. | ||
|
||
- With no external dependency except the [Bootstrap CSS Styles](https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css), AngularStrap is lighter and faster than ever as it does leverage the power of ngAnimate from AngularJS 1.2+! | ||
|
||
- AngularStrap is [tested](https://travis-ci.org/mgcrea/angular-strap) against the latest patch release of the 1.2, 1.3, 1.4 and 1.5 branches. | ||
|
||
- If you don't want to use `ngAnimate`, you will have to include a tiny [ngAnimate mock](https://github.com/mgcrea/angular-strap/wiki/ngAnimate-mock). | ||
|
||
|
||
## Documentation and examples | ||
|
||
+ Check the [documentation](http://mgcrea.github.io/angular-strap) and [changelog](https://github.com/mgcrea/angular-strap/releases). | ||
|
||
|
||
## Communication | ||
|
||
- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/angular-strap). (Tag 'angular-strap') | ||
- If you'd like to **ask a general question**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/angular-strap). | ||
- If you **found a bug**, open an issue. | ||
- If you **have a feature request**, open an issue. | ||
- If you **want to contribute**, submit a pull request. | ||
|
||
|
||
## Quick start | ||
|
||
+ Install AngularStrap with [Bower](https://github.com/bower/bower). | ||
|
||
> | ||
```bash | ||
$ bower install angular-strap --save | ||
``` | ||
|
||
+ Include the required libraries in your `index.html`: | ||
|
||
> | ||
``` html | ||
<script src="bower_components/angular/angular.js"></script> | ||
<script src="bower_components/angular-animate/angular-animate.js"></script> | ||
<script src="bower_components/angular-strap/dist/angular-strap.min.js"></script> | ||
<script src="bower_components/angular-strap/dist/angular-strap.tpl.min.js"></script> | ||
``` | ||
|
||
+ Inject the `mgcrea.ngStrap` module into your app: | ||
|
||
> | ||
``` js | ||
angular.module('myApp', ['ngAnimate', 'mgcrea.ngStrap']); | ||
``` | ||
|
||
|
||
## Developers | ||
|
||
Clone the repo, `git clone git://github.com/mgcrea/angular-strap.git`, [download the latest release](https://github.com/mgcrea/angular-strap/zipball/master) or install with bower `bower install angular-strap --save`. | ||
|
||
You will need to have bower installed globally into your node environment. | ||
|
||
> | ||
```bash | ||
$ npm install -g bower | ||
``` | ||
|
||
AngularStrap is tested with `karma` against the latest stable release of AngularJS. | ||
|
||
> AngularStrap uses gulp@4.0, you must use the local gulp instance with `$(npm bin)/gulp` for it to work (or use an alias). | ||
> | ||
```bash | ||
$ npm install | ||
$ bower install | ||
$ cd docs | ||
$ bower install | ||
$ cd .. | ||
$ npm test | ||
# or | ||
$ npm run test:watch | ||
``` | ||
|
||
You can build the latest version using `gulp`. | ||
|
||
> | ||
```bash | ||
$ $(npm bin)/gulp build | ||
``` | ||
|
||
You can quickly hack around (the docs) with: | ||
|
||
> | ||
```bash | ||
$ $(npm bin)/gulp serve | ||
``` | ||
|
||
You can browse to http://localhost:9090/dev.html to work on a specific directive. | ||
|
||
## Contributing | ||
|
||
Please submit all pull requests the against master branch. If your pull request contains JavaScript patches or features, you should include relevant unit tests. | ||
Please check the [Contributing Guidelines](https://github.com/mgcrea/angular-strap/blob/master/CONTRIBUTING.md) for more details. | ||
Thanks! | ||
|
||
|
||
## Authors | ||
|
||
**Olivier Louvignes** | ||
|
||
+ http://olouv.com | ||
+ http://github.com/mgcrea | ||
|
||
|
||
## Copyright and license | ||
|
||
``` | ||
The MIT License | ||
Copyright (c) 2012 – 2015 Olivier Louvignes | ||
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: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
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. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd"> | ||
<metadata> | ||
<id>angular-strap</id> | ||
<version>2.1.6</version> | ||
<authors>Olivier Louvignes and contributors</authors> | ||
<owners>mgcrea</owners> | ||
<licenseUrl>https://raw.github.com/mgcrea/angular-strap/master/LICENSE.md</licenseUrl> | ||
<projectUrl>https://github.com/mgcrea/angular-strap</projectUrl> | ||
<iconUrl>https://raw.githubusercontent.com/mgcrea/angular-strap/gh-pages/images/snippet-logo.png</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>AngularStrap - AngularJS directives for Bootstrap</description> | ||
<copyright>Copyright Olivier Louvignes 2014</copyright> | ||
<tags>angular bootstrap</tags> | ||
<dependencies> | ||
<dependency id="bootstrap" version="[3.0.0, 4.0.0)" /> | ||
<dependency id="AngularJS.Core" version="[1.2.0, 2.0.0)" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="dist\*.*" target="content\Scripts" /> | ||
</files> | ||
</package> |
Oops, something went wrong.