1 line
12 KiB
JSON
1 line
12 KiB
JSON
|
{"remainingRequest":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/soeren/dev/keksaccountgui/src/components/Menu.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/components/Menu.vue","mtime":1563967903333},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vuetify-loader/lib/loader.js","mtime":1549812933000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport UserServie from '../services/User'\n\nexport default {\n name: 'Menu',\n components: {\n },\n data () {\n return {\n big: true,\n bgcolor: \"transparent\",\n flat: true,\n nameBig: '',\n nameSmall: '',\n }\n },\n computed: {\n setting: (name) => {\n //this.$store.getters.getSettingValue(this.$store.state, name);\n }\n },\n methods: {\n toggleSideMenu: function() {\n console.log(\"TOGGLE\");\n this.$store.state.sideMenu = !this.$store.state.sideMenu;\n },\n generateMenu: function () {\n this.menu = [];\n if(!this.$store.state.loggedIn) {\n this.menu.push({ icon: 'home', title: 'Login' , link: \"Login\" });\n if(this.$store.getters.getSettingValue(\"invites\")) {\n this.menu.push({ icon: 'home', title: 'Invited' , link: \"Invited\" });\n }\n if(this.$store.getters.getSettingValue(\"registration_possible\")) {\n this.menu.push({ icon: 'home', title: 'Register' , link: \"Register\" });\n }\n } else {\n if(this.$store.getters.getMe.developer) {\n this.menu.push({ icon: 'home', title: 'Apps' , link: \"Apps\" });\n }\n if(this.$store.getters.getMe.admin) {\n this.menu.push({ icon: 'home', title: 'Admin' , link: \"Admin\" });\n }\n this.menu.push({ icon: 'home', title: 'Profile' , link: \"profile\", submenu: true, menu: [\n { icon: 'home', title: 'Logout' , link: \"Logout\" }\n ] });\n }\n },\n handleScroll: function (evt, el) {\n if(evt.pageY > 100) {\n this.big = false;\n this.bgcolor = \"#fff\";\n this.flat = false;\n } else {\n this.big = true;\n this.bgcolor = \"transparent\";\n this.flat = true;\n }\n },\n clickLoogut: function () {\n UserServie.logout();\n this.$store.dispatch('checkAccount')\n this.$router.push({\"path\": \"login\"})\n }\n },\n mounted: function () {\n this.nameBig = this.$store.getters.getSettingValue(\"name_big\");\n this.nameSmall = this.$store.getters.getSettingValue(\"name_small\");\n this.generateMenu();\n }\n}\n",{"version":3,"sources":["Menu.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|