Skip to content

Commit

Permalink
fix: set toastie timeout to 3 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
bartektelec committed Jun 5, 2021
1 parent 1c0798e commit ad64ba1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
17 changes: 9 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ module.exports = {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint',
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/typescript/recommended",
"@vue/prettier",
"@vue/prettier/@typescript-eslint",
"prettier",
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/camelcase': 'off',
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"@typescript-eslint/camelcase": "off",
},
};
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"trailingComma": "es5",
"singleQuote": true
}
6 changes: 3 additions & 3 deletions src/components/molecules/Toastie.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineComponent({
},
beforeMount() {
this.counter = setTimeout(this.killSelf, 5000);
this.counter = setTimeout(this.killSelf, 3000);
},
beforeUnmount() {
Expand All @@ -63,15 +63,15 @@ export default defineComponent({
<style lang="postcss" scoped>
.toastie__alert {
@apply inline-flex shadow-sm relative;
animation: dropDown 5s cubic-bezier(0.18, 0.89, 0.32, 1.27);
animation: dropDown 3s cubic-bezier(0.18, 0.89, 0.32, 1.27);
}
.toastie__bar {
@apply absolute left-0 bottom-0 right-0;
height: 4px;
backdrop-filter: brightness(80%);
transform-origin: left center;
animation: preloader 4.8s linear;
animation: preloader 3s linear;
}
.toastie__close {
Expand Down

0 comments on commit ad64ba1

Please sign in to comment.