Skip to content

Commit

Permalink
chore(deps): vue-toastification added
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Sep 23, 2021
1 parent c30f105 commit 6fd4de9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"vue-final-modal": "^3.4.1",
"vue-i18n": "^9.1.7",
"vue-router": "4",
"vue-toastification": "^2.0.0-rc.1",
"vuex": "^4.0.2"
},
"devDependencies": {
Expand Down
9 changes: 8 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
import { createApp } from 'vue'
import vfmPlugin from 'vue-final-modal'
import Toast, { POSITION } from 'vue-toastification'

import router from './router'
import store from './store'
import i18n from './lang'

import App from './App.vue'

import './tailwind.css'
import './preset.css'
import './tailwind.css'
import 'vue-toastification/dist/index.css'

const app = createApp(App)

app.use(router)
app.use(store)
app.use(i18n)
app.use(vfmPlugin)
app.use(Toast, {
position: POSITION.TOP_CENTER,
timeout: 2000,
maxToasts: 3,
})

app.mount('#app')
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default defineConfig({
'vuex',
'vue-i18n',
'vue-final-modal',
'vue-toastification',
'@headlessui/vue',
'@vueuse/core',
],
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2634,6 +2634,11 @@ vue-router@4:
dependencies:
"@vue/devtools-api" "^6.0.0-beta.14"

vue-toastification@^2.0.0-rc.1:
version "2.0.0-rc.1"
resolved "https://registry.yarnpkg.com/vue-toastification/-/vue-toastification-2.0.0-rc.1.tgz#6a994c19635a493eec0ee290e84a966e07c709d2"
integrity sha512-hjauv/FyesNZdwcr5m1SCyvu1JmlB+Ts5bTptDLDmsYYlj6Oqv8NYakiElpCF+Abwkn9J/AChh6FwkTL1HOb7Q==

vue-tsc@^0.2.2:
version "0.2.3"
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-0.2.3.tgz#12bf48e3c9b1e553d31aad0c641722d5d15841d8"
Expand Down

0 comments on commit 6fd4de9

Please sign in to comment.