Initial appstore view in vue

This commit is contained in:
Johannes Zellner
2025-01-05 22:47:50 +01:00
parent 6da071c88d
commit ec2dd67d89
6 changed files with 287 additions and 2 deletions
+6
View File
@@ -2,6 +2,7 @@
<div>
<Notification />
<AppsView v-if="view === VIEWS.APPS" />
<AppstoreView v-if="view === VIEWS.APPSTORE" />
<SupportView v-if="view === VIEWS.SUPPORT" />
<VolumesView v-if="view === VIEWS.VOLUMES" />
</div>
@@ -12,6 +13,7 @@
import { Notification } from 'pankow';
import AppsView from './AppsView.vue';
import AppstoreView from './AppstoreView.vue';
import SupportView from './SupportView.vue';
import VolumesView from './VolumesView.vue';
@@ -21,6 +23,7 @@ const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_OR
const VIEWS = {
APPS: 'apps',
APPSTORE: 'appstore',
SUPPORT: 'support',
VOLUMES: 'volumes',
};
@@ -29,6 +32,7 @@ export default {
name: 'Index',
components: {
AppsView,
AppstoreView,
Notification,
SupportView,
VolumesView,
@@ -58,6 +62,8 @@ export default {
if (view === VIEWS.APPS) {
that.view = VIEWS.APPS;
} else if (view === VIEWS.APPSTORE) {
that.view = VIEWS.APPSTORE;
} else if (view === VIEWS.SUPPORT) {
that.view = VIEWS.SUPPORT;
} else if (view === VIEWS.VOLUMES) {