Skip to content

Commit

Permalink
# v1.1.3
Browse files Browse the repository at this point in the history
- [2016-04-12] `sweetalert`: [Fixed #127](t4t5/sweetalert#127 (comment)).
- [2016-04-12] `sweetalert@input`: added option for input type alerts.
- [2016-04-12] `SweetAlert@close`: added option for closing actual alert.
- [2016-04-12] `gulp`: added gulp processing for minification and uglify.
  • Loading branch information
lgraziani2712 committed Apr 12, 2016
1 parent 3a339c5 commit 08468d7
Show file tree
Hide file tree
Showing 14 changed files with 406 additions and 143 deletions.
30 changes: 30 additions & 0 deletions .gitattributes
@@ -0,0 +1,30 @@
# Auto detect text files
* text= auto

# ...Unless the name matches the following
# overriding patterns

# Definitively text files
*.txt eol=lf
*.md eol=lf
*.js eol=lf
*.php eol=lf
*.html eol=lf
*.json eol=lf
*.xml eol=lf
*.lock eol=lf
*.env eol=lf
*.example eol=lf
.gitattributes eol=lf
.gitignore eol=lf
artisan eol=lf
*.css eol=lf
*.scss eol=lf

# Ensure those won't be messed up with
*.jpg binary
*.png binary
*.ico binary
*.gif binary
*.data binary
*.ttf binary
36 changes: 18 additions & 18 deletions .gitignore
@@ -1,18 +1,18 @@
# generic (system) files/extensions we don't want
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
.idea/*
*.DS_Store
lib-cov
pids
logs
results

node_modules

bower_components
# generic (system) files/extensions we don't want
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
.idea/*
*.DS_Store
lib-cov
pids
logs
results

node_modules

bower_components
62 changes: 62 additions & 0 deletions .jscsrc
@@ -0,0 +1,62 @@
{
"disallowAnonymousFunctions": true,
"disallowDanglingUnderscores": true,
"disallowEmptyBlocks": true,
"disallowImplicitTypeConversion": ["string"],
"disallowKeywordsOnNewLine": ["else"],
"disallowKeywords": ["with"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleVarDecl": null,
"disallowPaddingNewlinesInBlocks": null,
"disallowQuotedKeysInObjects": true,
"disallowSpaceAfterKeywords": ["for", "while", "do", "switch"],
"disallowSpaceAfterObjectKeys": null,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforeBinaryOperators": null,
"disallowSpaceBeforeBlockStatements": null,
"disallowSpaceBeforePostfixUnaryOperators": true,
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInConditionalExpression": null,
"disallowSpacesInFunctionDeclaration": null,
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInNamedFunctionExpression": null,
"disallowSpacesInsideBrackets": null,
"disallowSpacesInsideArrayBrackets": null,
"disallowSpacesInsideObjectBrackets": null,
"disallowSpacesInsideParentheses": null,
"disallowTrailingComma": null,
"disallowTrailingWhitespace": true,
"disallowYodaConditions": true,
"maximumLineLength": 480,
"requireBlocksOnNewline": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireDotNotation": true,
"requireKeywordsOnNewLine": null,
"requireLineFeedAtFileEnd": true,
"requireMultipleVarDecl": true,
"requireOperatorBeforeLineBreak": true,
"requirePaddingNewLinesAfterBlocks": null,
"requireParenthesesAroundIIFE": true,
"requireSpaceAfterBinaryOperators": null,
"requireSpaceAfterKeywords": ["return"],
"requireSpaceAfterLineComment": null,
"requireSpaceAfterPrefixUnaryOperators": null,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforePostfixUnaryOperators": null,
"requireSpacesInConditionalExpression": true,
"requireTrailingComma": true,
"safeContextKeyword": ["that"],
"validateIndentation": "\t",
"validateLineBreaks": "LF",
"validateQuoteMarks": true
}
73 changes: 73 additions & 0 deletions .jshintrc
@@ -0,0 +1,73 @@
{
"maxerr": 50,

"bitwise": true,
"curly": false,
"eqeqeq": true,
"forin": true,
"freeze": true,
"latedef": false,
"noarg": true,
"nonbsp": true,
"nonew": false,
"plusplus": false,
"undef": true,
"unused": true,
"strict": false,
"maxparams": false,
"maxdepth": 5,
"maxstatements": false,
"maxcomplexity": false,
"varstmt": false,

"asi": false,
"boss": false,
"debug": false,
"eqnull": false,
"moz": false,
"evil": false,
"expr": false,
"funcscope": false,
"strict": false,
"iterator": false,
"lastsemic": false,
"loopfunc": false,
"noyield": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"shadow": false,
"supernew": false,
"validthis": false,

"browser": true,
"browserify": false,
"couch": false,
"devel": true,
"dojo": false,
"jasmine": false,
"jquery": false,
"mocha": true,
"mootools": false,
"node": false,
"nonstandard": false,
"phantom": false,
"prototypejs": false,
"qunit": false,
"rhino": false,
"shelljs": false,
"typed": false,
"worker": false,
"wsh": false,
"yui": false,

"globals": {
"angular": false,
"$scope": false,
"$httpBackend": false,
"$": false,
"CryptoJS": false,
"Map": false,
"require": false
}
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,5 @@
# v1.1.3
- [2016-04-12] `sweetalert`: [Fixed #127](https://github.com/t4t5/sweetalert/issues/127#issuecomment-139042246).
- [2016-04-12] `sweetalert@input`: added option for input type alerts.
- [2016-04-12] `SweetAlert@close`: added option for closing actual alert.
- [2016-04-12] `gulp`: added gulp processing for minification and uglify.
7 changes: 7 additions & 0 deletions LICENSE
@@ -0,0 +1,7 @@
Copyright (c) 2016 Luciano Graziani

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.
104 changes: 52 additions & 52 deletions README.md
@@ -1,52 +1,52 @@
# Promised AngularJS wrapper for SweetAlert

AngularJS wrapper for [SweetAlert](http://tristanedwards.me/sweetalert) built with Promises. Sweet Alert is a beautiful replacement for Javascript's "Alert".

## Dependencies
- required:
[AngularJS](https://github.com/angular/angular)
[sweetalert](https://github.com/t4t5/sweetalert)

## Install
1. download the files
1. Bower
1. `bower install angular-sweetalert-as-promised`
2. include the files in your app
1. `Alert.min.js`
2. `sweet-alert.js` OR `sweet-alert.min.js`
3. `sweet-alert.css`
3. include the module in angular (i.e. in `app.js`) - `jutaz.ngSweetAlertAsPromised`

## Examples

### Simple

```js
SweetAlert.success({
message: "Here's a message"
}).then(function () {
// User closed alert
});

```

### With cancel

```js
SweetAlert.warning({
message: "Are you sure?",
text: "Your will not be able to recover this imaginary file!",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!"
}).then(function () {
// User accepted
}, function () {
// User declined
});
```


## Documentation

- [http://tristanedwards.me/sweetalert](http://tristanedwards.me/sweetalert)
# Promised AngularJS wrapper for SweetAlert

AngularJS wrapper for [SweetAlert](t4t5.github.io/sweetalert/) built with Promises. Sweet Alert is a beautiful replacement for Javascript's "Alert".

## Dependencies
- Required:
[AngularJS](https://github.com/angular/angular).
[sweetalert](https://github.com/t4t5/sweetalert).

## Install
1. Download the files
1. Bower
1. `bower install --save angular-sweetalert-as-promised`
2. include the files in your app
1. `Alert.min.js`
2. `sweet-alert.js` OR `sweet-alert.min.js`
3. `sweet-alert.css`
3. include the module in angular (i.e. in `app.js`) - `lgraziani.ngSweetAlert`

## Examples

### Simple

```js
SweetAlert.success({
message: "Here's a message"
}).then(function () {
// User closed alert
});

```

### With cancel

```js
SweetAlert.warning({
message: "Are you sure?",
text: "Your will not be able to recover this imaginary file!",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!"
}).then(function () {
// User accepted
}, function () {
// User declined
});
```


## Documentation

- [http://tristanedwards.me/sweetalert](http://tristanedwards.me/sweetalert)
41 changes: 0 additions & 41 deletions SweetAlert.js

This file was deleted.

1 change: 0 additions & 1 deletion SweetAlert.min.js

This file was deleted.

0 comments on commit 08468d7

Please sign in to comment.