diff --git a/app/components/Modal/index.vue b/app/components/Modal/index.vue new file mode 100644 index 0000000..158ac43 --- /dev/null +++ b/app/components/Modal/index.vue @@ -0,0 +1,103 @@ + + + diff --git a/app/components/Table/index.vue b/app/components/Table/index.vue new file mode 100644 index 0000000..44869a8 --- /dev/null +++ b/app/components/Table/index.vue @@ -0,0 +1,280 @@ + + + diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 781a35d..08fd064 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -1,6 +1,12 @@ diff --git a/app/stores/modals.ts b/app/stores/modals.ts new file mode 100644 index 0000000..f6fcfc3 --- /dev/null +++ b/app/stores/modals.ts @@ -0,0 +1,19 @@ +import { defineStore } from 'pinia'; + +export const useModalStore = defineStore('modals', () => { + const showModal = ref(false); + + const openModal = () => { + showModal.value = true; + }; + + const closeModal = () => { + showModal.value = false; + }; + + return { + showModal, + openModal, + closeModal, + }; +}); diff --git a/app/types/item.ts b/app/types/item.ts new file mode 100644 index 0000000..3e124c0 --- /dev/null +++ b/app/types/item.ts @@ -0,0 +1,9 @@ +export interface ItemState { + item_name?: string; + price?: number; + link?: string; + platform?: string; + priority?: string; + status?: string; + tags?: string[]; +} diff --git a/package.json b/package.json index 809823d..d23f34b 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@nuxt/fonts": "0.11.4", "@nuxt/image": "1.11.0", "@nuxt/ui": "4.0.0", + "@tanstack/vue-table": "8.21.3", "@pinia/nuxt": "0.11.2", "@tailwindcss/vite": "^4.1.14", "eslint": "^9.37.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0f55262..4b24d54 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,6 +32,9 @@ importers: '@tailwindcss/vite': specifier: ^4.1.14 version: 4.1.14(vite@7.1.9(@types/node@24.7.0)(jiti@2.6.1)(lightningcss@1.30.1)(terser@5.44.0)(yaml@2.8.1)) + '@tanstack/vue-table': + specifier: 8.21.3 + version: 8.21.3(vue@3.5.22(typescript@5.9.3)) eslint: specifier: ^9.37.0 version: 9.37.0(jiti@2.6.1) diff --git a/test/nuxt/__snapshots__/components.test.ts.snap b/test/nuxt/__snapshots__/components.test.ts.snap index c4c0b7c..e8270cd 100644 --- a/test/nuxt/__snapshots__/components.test.ts.snap +++ b/test/nuxt/__snapshots__/components.test.ts.snap @@ -1,42 +1,482 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`App > should match snapshot 1`] = ` -"
-
- Lystra logo -

Lystra

- -
-
- - + +
+ + +
+
-
-
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
Item +
Price
+
LinkPlatformTagsPriorityStatus + +
+
+
+ +
+
Placeholder Item +
₱594.00
+
Placeholder Linkfacebookplaceholder1lowIn Cart +
+ + + +
+
+
+
+ +
+
Placeholder Item +
₱276.00
+
Placeholder Linklazadaplaceholder2mediumOrdered +
+ + + +
+
+
+
+ +
+
Placeholder Item +
₱315.00
+
Placeholder Linkshopeeplaceholder1highDelivered +
+ + + +
+
+
+
+ +
+
Placeholder Item +
₱529.00
+
Placeholder Linktiktokplaceholder2highIn Cart +
+ + + +
+
+
+
+ +
+
Placeholder Item +
₱639.00
+
Placeholder Linktemuplaceholder1lowCancelled +
+ + + +
+
+
+
+ +
+
+
+ + + +
+
+ " `; exports[`DefaultLayout > should match snapshot 1`] = ` -"
- -
" +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
Item +
Price
+
LinkPlatformTagsPriorityStatus + +
+
+
+ +
+
Placeholder Item +
₱594.00
+
Placeholder Linkfacebookplaceholder1lowIn Cart +
+ + + +
+
+
+
+ +
+
Placeholder Item +
₱276.00
+
Placeholder Linklazadaplaceholder2mediumOrdered +
+ + + +
+
+
+
+ +
+
Placeholder Item +
₱315.00
+
Placeholder Linkshopeeplaceholder1highDelivered +
+ + + +
+
+
+
+ +
+
Placeholder Item +
₱529.00
+
Placeholder Linktiktokplaceholder2highIn Cart +
+ + + +
+
+
+
+ +
+
Placeholder Item +
₱639.00
+
Placeholder Linktemuplaceholder1lowCancelled +
+ + + +
+
+
+
+ +
+
+
+ + + +
+
+" `; exports[`Header > should match snapshot 1`] = `