Initial work on moving domain view to vue
This commit is contained in:
@@ -4,6 +4,7 @@ import { Notification } from 'pankow';
|
||||
|
||||
import AppsView from './views/AppsView.vue';
|
||||
import AppstoreView from './views/AppstoreView.vue';
|
||||
import DomainsView from './views/DomainsView.vue';
|
||||
import EventlogView from './views/EventlogView.vue';
|
||||
import NetworkView from './views/NetworkView.vue';
|
||||
import ProfileView from './views/ProfileView.vue';
|
||||
@@ -20,6 +21,7 @@ const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_OR
|
||||
const VIEWS = {
|
||||
APPS: 'apps',
|
||||
APPSTORE: 'appstore',
|
||||
DOMAINS: 'domains',
|
||||
EVENTLOG: 'eventlog',
|
||||
NETWORK: 'network',
|
||||
PROFILE: 'profile',
|
||||
@@ -35,6 +37,7 @@ export default {
|
||||
components: {
|
||||
AppsView,
|
||||
AppstoreView,
|
||||
DomainsView,
|
||||
EventlogView,
|
||||
NetworkView,
|
||||
Notification,
|
||||
@@ -72,6 +75,8 @@ export default {
|
||||
that.view = VIEWS.APPS;
|
||||
} else if (view.indexOf(VIEWS.APPSTORE) === 0) {
|
||||
that.view = VIEWS.APPSTORE;
|
||||
} else if (view === VIEWS.DOMAINS) {
|
||||
that.view = VIEWS.DOMAINS;
|
||||
} else if (view === VIEWS.EVENTLOG) {
|
||||
that.view = VIEWS.EVENTLOG;
|
||||
} else if (view === VIEWS.NETWORK) {
|
||||
@@ -109,6 +114,7 @@ export default {
|
||||
|
||||
<AppsView v-if="view === VIEWS.APPS" />
|
||||
<AppstoreView v-else-if="view === VIEWS.APPSTORE" />
|
||||
<DomainsView v-else-if="view === VIEWS.DOMAINS" />
|
||||
<EventlogView v-else-if="view === VIEWS.EVENTLOG" />
|
||||
<NetworkView v-else-if="view === VIEWS.NETWORK" />
|
||||
<ProfileView v-else-if="view === VIEWS.PROFILE" />
|
||||
|
||||
Reference in New Issue
Block a user