remove some dependencies

This commit is contained in:
Front 2022-03-15 15:43:30 -04:00
parent 782556fdd9
commit 6c8ed7cc96
4 changed files with 5 additions and 11 deletions

View File

@ -106,7 +106,7 @@ export default {
mounted() {
//--- Load Saved Theme ---//
const theme = this.$auth.$storage.getLocalStorage("darkTheme");
const theme = localStorage.getItem('darkTheme');
if (theme != undefined) {
/*
this.$vuetify.theme.themes.dark.accent = '#222',

View File

@ -1,9 +1,8 @@
import colors from 'vuetify/es5/util/colors'
/**** Front's Notes / Don't Remove ****
* Data Storage:
* this.$auth.$storage.setLocalStorage("Authentication", val)
* this.$auth.$storage.getLocalStorage("Authentication")
* this.$auth.$storage.removeLocalStorage("Authentication")
* localStorage.setItem("key", data)
* localStorage.getItem('key')
*/
@ -50,10 +49,7 @@ export default {
buildModules: [
'@nuxtjs/vuetify',
],
modules: [
'@nuxtjs/axios',
'@nuxtjs/auth-next'
],
modules: [],
vuetify: {
customVariables: ['~/assets/variables.scss'],

View File

@ -9,8 +9,6 @@
"generate": "nuxt generate"
},
"dependencies": {
"@nuxtjs/auth-next": "5.0.0-1643791578.532b3d6",
"@nuxtjs/axios": "^5.13.6",
"core-js": "^3.19.3",
"nuxt": "^2.15.8",
"vue": "^2.6.14",

View File

@ -49,7 +49,7 @@ export default {
},
saveTheme(isDark) {
this.$auth.$storage.setLocalStorage("darkTheme", isDark)
localStorage.setItem("darkTheme", isDark);
}
}
}