Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.nvmrc
  • Loading branch information
se-panfilov committed May 9, 2019
2 parents 5a82ed3 + 4b70cf4 commit d7d6057
Show file tree
Hide file tree
Showing 295 changed files with 35,795 additions and 28,449 deletions.
9 changes: 0 additions & 9 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion .bithoundrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"test": [
],
"critics": {
"lint": {"engine": "eslint"}
"lint": {"engine": "tslint"}
}
}
12 changes: 6 additions & 6 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ engines:
enabled: false
config:
languages:
- javascript
eslint:
enabled: true
channel: "eslint-3"
- typescript
fixme:
enabled: true
ratings:
paths:
- "**.js"
- "**.ts"
exclude_paths:
- dist/
- test/
- build/
- docs/
- examples/
- gulpfile.js
plugins:
tslint:
enabled: true
config: tslint.json
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

37 changes: 0 additions & 37 deletions .eslintrc.json

This file was deleted.

8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
node_modules
.idea
.tmp
.DS_Store
.DS_Store
build
test
src/**.js
coverage
.nyc_output
package-lock.json
14 changes: 10 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.babelrc
.eslintrc
.bithoundrc
.eslintignore
.gitattributes
Expand All @@ -12,11 +11,18 @@ node_modules/
.editorconfig
.nvmrc
.travis.yml
bower.json
gulpfile.js
.idea
TODO.md
yarn.lock
package-lock.json
vue-not
examples
examples
src
test
tsconfig.json
tsconfig.module.json
tslint.json
.github
**/*.spec.*
coverage
.nyc_output
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
v10.3.0
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
sudo: false
language: node_js
before_script: [
"npm i"
]
node_js:
- '4'
- '5'
- '6'
- '7'
- '8'
- '9'
- '10'
notifications:
email: false
script: mocha --compilers js:babel-core/register ./test/**/*.spec.js
os: "linux"
# keep the npm cache to speed up installs
cache:
directories:
- "$HOME/.npm"
after_success:
- npx nyc report --reporter=lcov | npx codecov
- npm run cov:check
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/se-panfilov/vue-notifications/blob/master/LICENSE)
[![Known Vulnerabilities](https://snyk.io/test/github/se-panfilov/vue-notifications/badge.svg?targetFile=examples%2Fsimple_with_swal%2Fpackage.json)](https://snyk.io/test/github/se-panfilov/vue-notifications?targetFile=examples%2Fsimple_with_swal%2Fpackage.json)
[![NPM](https://nodei.co/npm/vue-notifications.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/vue-notifications/)
[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
[![Package Quality](http://npm.packagequality.com/badge/vue-notifications.png)](http://packagequality.com/#?package=vue-notifications)

| [SITE](https://se-panfilov.github.io/vue-notifications/) | [DOCS](https://se-panfilov.github.io/vue-notifications/docs/html/index.html) | [EXAMPLES](https://github.com/se-panfilov/vue-notifications/tree/master/examples) | [GITHUB](https://github.com/se-panfilov/vue-notifications) | [LICENSE](https://github.com/se-panfilov/vue-notifications/blob/master/LICENSE) |
Expand Down Expand Up @@ -270,7 +269,7 @@ As I said above, you can specify any of following properties
| title | String | undefined | Notification's title \(can be empty\) |
| message | String | undefined | Notification's body message. Normally should be set up |
| timeout | Number | 3000 | time before notifications gone |
| cb | undefined | undefined | Callback function |
| cb | Function | undefined | Callback function |

But actually you can add your own properties as well, if you want. Why and how? You can check it in [Advanced Setup](https://se-panfilov.github.io/vue-notifications/docs/html/advanced-setup.html) section.

Expand Down
9 changes: 0 additions & 9 deletions TODO.md

This file was deleted.

31 changes: 0 additions & 31 deletions bower.json

This file was deleted.

20 changes: 0 additions & 20 deletions build/config.js

This file was deleted.

46 changes: 0 additions & 46 deletions build/tasks/es5.js

This file was deleted.

31 changes: 0 additions & 31 deletions build/tasks/es6.js

This file was deleted.

10 changes: 0 additions & 10 deletions build/tasks/make.js

This file was deleted.

8 changes: 0 additions & 8 deletions build/tasks/sizes.js

This file was deleted.

11 changes: 0 additions & 11 deletions build/tasks/todo.js

This file was deleted.

36 changes: 36 additions & 0 deletions dist/vue-notifications.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { ComponentOptions, PluginObject, VueConstructor } from 'vue'
import { Vue } from 'vue/types/vue'

declare enum DEFAULT_MESSAGE_TYPES {
error = 'error',
warn = 'warn',
info = 'info',
success = 'success'
}

declare const VueNotifications: VueNotificationsPlugin
export interface NotificationsObject {
readonly [key: string]: MessageData;
}
export interface MessageData {
type: DEFAULT_MESSAGE_TYPES | string;
timeout?: number;
message?: string;
title?: string;
cb?: () => any;

[key: string]: any;
}
export interface VueNotificationsPlugin extends PluginObject<any> {
types: {
[key: string]: DEFAULT_MESSAGE_TYPES | string;
};
propertyName: string;
config: MessageData;
pluginOptions: ComponentOptions<Vue>;
installed: boolean;
install: (vue: VueConstructor, pluginOptions: ComponentOptions<Vue>) => void;
setPluginOptions: (options: ComponentOptions<Vue>) => void;
}

export default VueNotifications
Loading

0 comments on commit d7d6057

Please sign in to comment.