Skip to content

Commit

Permalink
Merge pull request #212 from Stabzs/release/10.0.0
Browse files Browse the repository at this point in the history
Rebuilt via angular-cli.
  • Loading branch information
Stabzs authored Nov 10, 2020
2 parents 6c5f82d + 9ef78d9 commit bc9e7c0
Show file tree
Hide file tree
Showing 126 changed files with 12,815 additions and 41,568 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ before_install:
install:
- npm install
script:
- karma start
- ng test angular2-toaster --watch=false --code-coverage
after_script:
- "cat ./coverage/lcov-report/lcov | ./node_modules/coveralls/bin/coveralls.js"
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 10.0.0
### FEATURES
* **angular2-toaster:** Full release of 10.0.0 functionality. Pins the llibrary to 10.0.0 of Angular.

### DOCUMENTATION
* **README:** Added documentation for toast types and toast type overrides.

# 8.0.0
### FEATURES
* **angular2-toaster:** Full release of 8.0.0 functionality. Pins the library to 8.0.0 versions
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ or

### Compile the Library's SCSS
```scss
@import 'node_modules/angular2-toaster/src/toaster';
@import 'node_modules/angular2-toaster/toaster';
```


Expand Down Expand Up @@ -256,6 +256,19 @@ If you need to target a non-supported browser, a [polyfill](https://github.com/w
# Configurable Options
### Toast Types
By default, five toast types are defined: 'error, 'info', 'wait', 'success', and 'warning'.
The default options can be overridden by passing a mapping object to the config, where the key corresponds to the toast type and the value corresponds to a custom style:
```typescript
template:
`<toaster-container [toasterconfig]="config"></toaster-container>`

public config: ToasterConfig =
new ToasterConfig({typeClasses: {'partial-success': '.toaster-partial-success' }});
```
### Animations
There are five animation styles that can be applied via the toasterconfig `animation` property:
'fade', 'flyLeft', 'flyRight', 'slideDown', and 'slideUp'. Any other value will disable animations.
Expand Down Expand Up @@ -596,7 +609,7 @@ Rewritten from https://github.com/jirikavi/AngularJS-Toaster
Inspired by http://codeseven.github.io/toastr/demo.html.
## Copyright
Copyright © 2016-2018 Stabzs.
Copyright © 2016-2020 Stabzs.
## Licence
Expand Down
168 changes: 168 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "src",
"projects": {
"angular2-toaster": {
"projectType": "library",
"root": "src/angular2-toaster",
"sourceRoot": "src/angular2-toaster/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "src/angular2-toaster/tsconfig.lib.json",
"project": "src/angular2-toaster/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "src/angular2-toaster/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/angular2-toaster/src/test.ts",
"tsConfig": "src/angular2-toaster/tsconfig.spec.json",
"karmaConfig": "src/angular2-toaster/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/angular2-toaster/tsconfig.lib.json",
"src/angular2-toaster/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"demo": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "src/demo",
"sourceRoot": "src/demo/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/demo",
"index": "src/demo/src/index.html",
"main": "src/demo/src/main.ts",
"polyfills": "src/demo/src/polyfills.ts",
"tsConfig": "src/demo/tsconfig.app.json",
"aot": true,
"assets": [
"src/demo/src/favicon.ico",
"src/demo/src/assets"
],
"styles": [
"src/demo/src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/demo/src/environments/environment.ts",
"with": "src/demo/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "demo:build"
},
"configurations": {
"production": {
"browserTarget": "demo:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "demo:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/demo/src/test.ts",
"polyfills": "src/demo/src/polyfills.ts",
"tsConfig": "src/demo/tsconfig.spec.json",
"karmaConfig": "src/demo/karma.conf.js",
"assets": [
"src/demo/src/favicon.ico",
"src/demo/src/assets"
],
"styles": [
"src/demo/src/styles.scss"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/demo/tsconfig.app.json",
"src/demo/tsconfig.spec.json",
"src/demo/e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "src/demo/e2e/protractor.conf.js",
"devServerTarget": "demo:serve"
},
"configurations": {
"production": {
"devServerTarget": "demo:serve:production"
}
}
}
}
}},
"defaultProject": "angular2-toaster"
}
8 changes: 0 additions & 8 deletions angular2-toaster.ts

This file was deleted.

32 changes: 0 additions & 32 deletions config/helpers.js

This file was deleted.

81 changes: 0 additions & 81 deletions config/karma.conf.js

This file was deleted.

25 changes: 0 additions & 25 deletions config/rollup.config.js

This file was deleted.

Loading

0 comments on commit bc9e7c0

Please sign in to comment.