From e43836c7312a13d9f8d5bd316571f5f49f9daad0 Mon Sep 17 00:00:00 2001 From: rockyroed Date: Fri, 10 Oct 2025 18:54:19 +0800 Subject: [PATCH 1/3] refactor: layout and main page content --- app/layouts/default.vue | 14 +++++--------- app/pages/index.vue | 5 ++++- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 08fd064..5a00e2a 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -1,12 +1,8 @@ diff --git a/app/pages/index.vue b/app/pages/index.vue index 7b8b46c..0e26452 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -1,3 +1,6 @@ From 4c3394377a3bf205950a6ff2ffd8534ff405163e Mon Sep 17 00:00:00 2001 From: rockyroed Date: Fri, 10 Oct 2025 19:01:21 +0800 Subject: [PATCH 2/3] refactor: use header tag --- app/components/Header/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Header/index.vue b/app/components/Header/index.vue index 935aab3..710e54a 100644 --- a/app/components/Header/index.vue +++ b/app/components/Header/index.vue @@ -5,7 +5,7 @@ const colorMode = useColorMode(); From fa9fd9046234164fb8e40a2bb16a0ead940a84f4 Mon Sep 17 00:00:00 2001 From: rockyroed Date: Fri, 10 Oct 2025 19:01:35 +0800 Subject: [PATCH 3/3] test: update snapshot --- .../__snapshots__/components.test.ts.snap | 690 ++++++------------ 1 file changed, 235 insertions(+), 455 deletions(-) diff --git a/test/nuxt/__snapshots__/components.test.ts.snap b/test/nuxt/__snapshots__/components.test.ts.snap index e8270cd..33cfba5 100644 --- a/test/nuxt/__snapshots__/components.test.ts.snap +++ b/test/nuxt/__snapshots__/components.test.ts.snap @@ -1,486 +1,266 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`App > should match snapshot 1`] = ` -"
-
-
- Lystra logo -

Lystra

+"
+
+ Lystra logo +

Lystra

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

Lystra

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

Lystra

- - +
+
+ +
-
-" + +
+" `; exports[`Header > should match snapshot 1`] = ` -" -" +" `;