Convert Eventlogs 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 EventlogView from './views/EventlogView.vue';
|
||||
import NetworkView from './views/NetworkView.vue';
|
||||
import ProfileView from './views/ProfileView.vue';
|
||||
import ServicesView from './views/ServicesView.vue';
|
||||
@@ -19,6 +20,7 @@ const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_OR
|
||||
const VIEWS = {
|
||||
APPS: 'apps',
|
||||
APPSTORE: 'appstore',
|
||||
EVENTLOG: 'eventlog',
|
||||
NETWORK: 'network',
|
||||
PROFILE: 'profile',
|
||||
SERVICES: 'services',
|
||||
@@ -33,6 +35,7 @@ export default {
|
||||
components: {
|
||||
AppsView,
|
||||
AppstoreView,
|
||||
EventlogView,
|
||||
NetworkView,
|
||||
Notification,
|
||||
ProfileView,
|
||||
@@ -69,6 +72,8 @@ export default {
|
||||
that.view = VIEWS.APPS;
|
||||
} else if (view.indexOf(VIEWS.APPSTORE) === 0) {
|
||||
that.view = VIEWS.APPSTORE;
|
||||
} else if (view === VIEWS.EVENTLOG) {
|
||||
that.view = VIEWS.EVENTLOG;
|
||||
} else if (view === VIEWS.NETWORK) {
|
||||
that.view = VIEWS.NETWORK;
|
||||
} else if (view === VIEWS.PROFILE) {
|
||||
@@ -104,6 +109,7 @@ export default {
|
||||
|
||||
<AppsView v-if="view === VIEWS.APPS" />
|
||||
<AppstoreView v-else-if="view === VIEWS.APPSTORE" />
|
||||
<EventlogView v-else-if="view === VIEWS.EVENTLOG" />
|
||||
<NetworkView v-else-if="view === VIEWS.NETWORK" />
|
||||
<ProfileView v-else-if="view === VIEWS.PROFILE" />
|
||||
<ServicesView v-else-if="view === VIEWS.SERVICES" />
|
||||
|
||||
Reference in New Issue
Block a user