diff --git a/src/boot/appwrite.ts b/src/boot/appwrite.ts
index 4e2fad1..889448e 100644
--- a/src/boot/appwrite.ts
+++ b/src/boot/appwrite.ts
@@ -10,6 +10,7 @@ client
const account = new Account(client);
const databases = new Databases(client);
+const appDatabaseId = '654ac5044d1c446feb71';
export default boot(({ app, urlPath, router }) => {
// Initialize store
@@ -19,4 +20,4 @@ export default boot(({ app, urlPath, router }) => {
});
});
-export { client, account, databases, ID };
+export { client, account, databases, ID, appDatabaseId };
diff --git a/src/components/BoatComponent.vue b/src/components/BoatComponent.vue
new file mode 100644
index 0000000..abcc1b7
--- /dev/null
+++ b/src/components/BoatComponent.vue
@@ -0,0 +1,6 @@
+
+ My component
+
+
+
diff --git a/src/components/EssentialLink.vue b/src/components/EssentialLink.vue
deleted file mode 100644
index 431b56f..0000000
--- a/src/components/EssentialLink.vue
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
- {{ title }}
- {{ caption }}
-
-
-
-
-
diff --git a/src/components/LeftDrawer.vue b/src/components/LeftDrawer.vue
index 55caf7c..77a7d08 100644
--- a/src/components/LeftDrawer.vue
+++ b/src/components/LeftDrawer.vue
@@ -6,63 +6,25 @@
:breakpoint="500"
@update:model-value="$emit('drawer-toggle')"
>
-
diff --git a/src/pages/admin/UserAdminPage.vue b/src/pages/admin/UserAdminPage.vue
new file mode 100644
index 0000000..1675e69
--- /dev/null
+++ b/src/pages/admin/UserAdminPage.vue
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
diff --git a/src/router/routes.ts b/src/router/routes.ts
index 811b8db..63ddeed 100644
--- a/src/router/routes.ts
+++ b/src/router/routes.ts
@@ -10,6 +10,27 @@ const routes: RouteRecordRaw[] = [
component: () => import('pages/IndexPage.vue'),
name: 'index',
},
+ {
+ path: '/boat',
+ component: () => import('pages/BoatPage.vue'),
+ name: 'boat',
+ },
+ ],
+ },
+ {
+ path: '/admin',
+ component: () => import('layouts/AdminLayout.vue'),
+ children: [
+ {
+ path: '/user',
+ component: () => import('pages/admin/UserAdminPage.vue'),
+ name: 'useradmin',
+ },
+ {
+ path: '/boat',
+ component: () => import('pages/admin/BoatAdminPage.vue'),
+ name: 'boatadmin',
+ },
],
},
{
diff --git a/src/stores/auth.ts b/src/stores/auth.ts
index 38a560a..eada6d2 100644
--- a/src/stores/auth.ts
+++ b/src/stores/auth.ts
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia';
-import { ID, account, client } from 'boot/appwrite';
+import { ID, account } from 'boot/appwrite';
import type { Models } from 'appwrite';
import { ref } from 'vue';
@@ -10,7 +10,7 @@ export const useAuthStore = defineStore('auth', () => {
try {
currentUser.value = await account.get();
} catch {
- return (currentUser.value = null);
+ currentUser.value = null;
}
}