forked from se-panfilov/vue-notifications
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # .nvmrc
- Loading branch information
Showing
295 changed files
with
35,795 additions
and
28,449 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 |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
"test": [ | ||
], | ||
"critics": { | ||
"lint": {"engine": "eslint"} | ||
"lint": {"engine": "tslint"} | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,4 +2,10 @@ | |
node_modules | ||
.idea | ||
.tmp | ||
.DS_Store | ||
.DS_Store | ||
build | ||
test | ||
src/**.js | ||
coverage | ||
.nyc_output | ||
package-lock.json |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
10 | ||
v10.3.0 |
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 |
---|---|---|
@@ -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 |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,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 |
Oops, something went wrong.