├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── custom.md │ └── feature_request.md ├── .gitignore ├── .npmignore ├── .prettierrc ├── .storybook ├── addons.js ├── config.js └── stories.js ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── cypress.json ├── cypress ├── fixtures │ └── .gitkeep ├── integration │ └── vue-izitoast.spec.js ├── plugins │ └── index.js └── support │ ├── commands.js │ └── index.js ├── examples ├── App.vue ├── README.md ├── index.cov.js └── index.js ├── package-lock.json ├── package.json ├── resources ├── Browserstack-logo@2x.png └── storybook-logo.png ├── scripts └── update-contributors.js ├── src ├── types │ └── index.d.ts └── vue-izitoast.js └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["@babel/preset-env"], 3 | "plugins": ["@babel/plugin-transform-runtime", "@babel/plugin-proposal-class-properties"], 4 | "comments": false 5 | } 6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | trim_trailing_whitespace = true 7 | 8 | [*.json, .babelrc] 9 | indent_size = 2 10 | indent_style = space 11 | 12 | [*.{js,jsx,ts,tsx}] 13 | indent_size = 4 14 | indent_style = space 15 | insert_final_newline = true 16 | 17 | [*.md] 18 | insert_final_newline = false 19 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build/*.js 2 | config/*.js 3 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | // https://eslint.org/docs/user-guide/configuring 2 | 3 | module.exports = { 4 | root: true, 5 | parser: 'babel-eslint', 6 | parserOptions: { 7 | sourceType: 'module' 8 | }, 9 | env: { 10 | browser: true, 11 | }, 12 | // https://github.com/standard/standard/blob/master/docs/RULES-en.md 13 | // extends: 'standard', 14 | 'rules': { 15 | 'indent': ['error', 4], 16 | 'semi': [2, 'always'], 17 | // allow paren-less arrow functions 18 | 'arrow-parens': 0, 19 | // allow async-await 20 | 'generator-star-spacing': 0, 21 | // allow debugger during development 22 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Custom issue template 3 | about: Describe this issue template's purpose here. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Modules 2 | node_modules 3 | 4 | # Compiled files 5 | dist 6 | instrumented 7 | docs 8 | storybook-public 9 | 10 | # Logs 11 | npm-debug.log 12 | 13 | # Tests 14 | cypress/screenshots 15 | cypress/videos 16 | .nyc_output 17 | coverage 18 | 19 | # Editors / IDEs 20 | .idea/* 21 | .vscode 22 | 23 | # Others 24 | *.lock 25 | *.bak 26 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .* 2 | *.log 3 | *.swp 4 | *.yml 5 | *.lock 6 | build -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 100, 3 | "singleQuote": true 4 | } 5 | -------------------------------------------------------------------------------- /.storybook/addons.js: -------------------------------------------------------------------------------- 1 | import '@storybook/addon-notes/register-panel'; 2 | -------------------------------------------------------------------------------- /.storybook/config.js: -------------------------------------------------------------------------------- 1 | import { addParameters, configure } from '@storybook/vue'; 2 | 3 | addParameters({ 4 | options: { 5 | panelPosition: 'right', 6 | } 7 | }); 8 | 9 | function loadStories() { 10 | require('./stories.js'); 11 | } 12 | 13 | configure(loadStories, module); 14 | -------------------------------------------------------------------------------- /.storybook/stories.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import { storiesOf } from '@storybook/vue'; 3 | import VueIzitoast from '../src/vue-izitoast'; 4 | import App from '../examples/App.vue'; 5 | import notes from '../examples/README.md'; 6 | import 'izitoast/dist/css/iziToast.css'; 7 | 8 | Vue.use(VueIzitoast); 9 | Vue.component('App', App); 10 | 11 | const withSettings = component => ({ 12 | ...component 13 | }); 14 | 15 | const stories = storiesOf('Vue IziToast', module); 16 | 17 | stories 18 | .add( 19 | 'Options', 20 | () => withSettings({ 21 | template: ` 22 |