master
Ayush Mukherjee 4 years ago
parent cdc41f9efb
commit 2a297e1dca

14
package-lock.json generated

@ -11,7 +11,7 @@
"axios": "^0.19.2",
"core-js": "^3.6.5",
"vue": "^2.6.11",
"vue-router": "^3.2.0"
"vue-router": "^3.5.1"
},
"devDependencies": {
"sass": "^1.26.5",
@ -2465,9 +2465,9 @@
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
},
"node_modules/vue-router": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.3.4.tgz",
"integrity": "sha512-SdKRBeoXUjaZ9R/8AyxsdTqkOfMcI5tWxPZOUX5Ie1BTL5rPSZ0O++pbiZCeYeythiZIdLEfkDiQPKIaWk5hDg=="
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz",
"integrity": "sha512-RRQNLT8Mzr8z7eL4p7BtKvRaTSGdCbTy2+Mm5HTJvLGYSSeG9gDzNasJPP/yOYKLy+/cLG/ftrqq5fvkFwBJEw=="
},
"node_modules/vue-template-compiler": {
"version": "2.6.11",
@ -4562,9 +4562,9 @@
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
},
"vue-router": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.3.4.tgz",
"integrity": "sha512-SdKRBeoXUjaZ9R/8AyxsdTqkOfMcI5tWxPZOUX5Ie1BTL5rPSZ0O++pbiZCeYeythiZIdLEfkDiQPKIaWk5hDg=="
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz",
"integrity": "sha512-RRQNLT8Mzr8z7eL4p7BtKvRaTSGdCbTy2+Mm5HTJvLGYSSeG9gDzNasJPP/yOYKLy+/cLG/ftrqq5fvkFwBJEw=="
},
"vue-template-compiler": {
"version": "2.6.11",

@ -3,14 +3,15 @@
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
"dev": "vite",
"build": "vite build",
"serve": "vite preview"
},
"dependencies": {
"axios": "^0.19.2",
"core-js": "^3.6.5",
"vue": "^2.6.11",
"vue-router": "^3.2.0"
"vue-router": "^3.5.1"
},
"devDependencies": {
"sass": "^1.26.5",

@ -7,8 +7,8 @@
</template>
<script>
import Header from '@/components/Header'
import Footer from '@/components/Footer'
import Header from '@/components/Header.vue'
import Footer from '@/components/Footer.vue'
export default {
name: 'App',
@ -21,4 +21,4 @@ export default {
<style lang="scss">
@import 'scss/main';
</style>
</style>

@ -14,7 +14,7 @@ Vue.use(VueRouter)
const router = new VueRouter({
mode: 'history',
base: process.env.BASE_URL,
base: '/',
routes,
scrollBehavior (to, from, savedPosition) {
if (to.hash) {

@ -182,7 +182,7 @@ export default {
}
}, {
headers: {
'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN
'Cockpit-Token': import.meta.VITE_APP_CMS_TOKEN
}
})
.then(() => {

@ -1,5 +1,6 @@
import { defineConfig } from 'vite'
import { createVuePlugin } from 'vite-plugin-vue2'
import path from 'path'
export default defineConfig({
plugins: [

Loading…
Cancel
Save