From 27c74312adb9caf5256d5063ca1e09304055de4f Mon Sep 17 00:00:00 2001 From: SquidSpirit Date: Wed, 23 Jul 2025 02:54:46 +0800 Subject: [PATCH] BLOG-58 feat: refactor project structure, update package details, and add Font Awesome icons --- frontend-v2/package.json | 7 +++--- frontend-v2/pnpm-lock.yaml | 9 +++++++ frontend-v2/src/lib/Action.svelte | 9 ------- frontend-v2/src/lib/Navbar.svelte | 16 ------------- .../src/lib/common/framework/ui/Action.svelte | 9 +++++++ .../src/lib/common/framework/ui/Footer.svelte | 24 +++++++++++++++++++ .../src/lib/common/framework/ui/Navbar.svelte | 18 ++++++++++++++ frontend-v2/src/routes/+layout.svelte | 14 +++++++---- 8 files changed, 73 insertions(+), 33 deletions(-) delete mode 100644 frontend-v2/src/lib/Action.svelte delete mode 100644 frontend-v2/src/lib/Navbar.svelte create mode 100644 frontend-v2/src/lib/common/framework/ui/Action.svelte create mode 100644 frontend-v2/src/lib/common/framework/ui/Footer.svelte create mode 100644 frontend-v2/src/lib/common/framework/ui/Navbar.svelte diff --git a/frontend-v2/package.json b/frontend-v2/package.json index 4e1468b..ec3ebcf 100644 --- a/frontend-v2/package.json +++ b/frontend-v2/package.json @@ -1,7 +1,7 @@ { - "name": "frontend-v2", + "name": "squidspirit-blog", "private": true, - "version": "0.0.1", + "version": "0.1.1", "type": "module", "scripts": { "dev": "vite dev", @@ -16,6 +16,7 @@ "devDependencies": { "@eslint/compat": "^1.2.5", "@eslint/js": "^9.18.0", + "@fortawesome/fontawesome-free": "^7.0.0", "@sveltejs/adapter-auto": "^6.0.0", "@sveltejs/kit": "^2.22.0", "@sveltejs/vite-plugin-svelte": "^6.0.0", @@ -40,5 +41,5 @@ "esbuild" ] }, - "packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912" + "packageManager": "pnpm@10.12.4" } diff --git a/frontend-v2/pnpm-lock.yaml b/frontend-v2/pnpm-lock.yaml index e13c0b1..656c76a 100644 --- a/frontend-v2/pnpm-lock.yaml +++ b/frontend-v2/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@eslint/js': specifier: ^9.18.0 version: 9.31.0 + '@fortawesome/fontawesome-free': + specifier: ^7.0.0 + version: 7.0.0 '@sveltejs/adapter-auto': specifier: ^6.0.0 version: 6.0.1(@sveltejs/kit@2.25.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.13)(vite@7.0.5(jiti@2.4.2)(lightningcss@1.30.1)))(svelte@5.36.13)(vite@7.0.5(jiti@2.4.2)(lightningcss@1.30.1))) @@ -278,6 +281,10 @@ packages: resolution: {integrity: sha512-Ul5l+lHEcw3L5+k8POx6r74mxEYKG5kOb6Xpy2gCRW6zweT6TEhAf8vhxGgjhqrd/VO/Dirhsb+1hNpD1ue9hw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@fortawesome/fontawesome-free@7.0.0': + resolution: {integrity: sha512-X48nISrSOa89zu2VMljC4XaRf8NmgTwQBVHfS2Nu5G00ZwM31oOVrAtGxZF3b6wDYf9lJsf/Eq4cCSFKIkOWPQ==} + engines: {node: '>=6'} + '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -1571,6 +1578,8 @@ snapshots: '@eslint/core': 0.15.1 levn: 0.4.1 + '@fortawesome/fontawesome-free@7.0.0': {} + '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.6': diff --git a/frontend-v2/src/lib/Action.svelte b/frontend-v2/src/lib/Action.svelte deleted file mode 100644 index c5c906c..0000000 --- a/frontend-v2/src/lib/Action.svelte +++ /dev/null @@ -1,9 +0,0 @@ - - -
- - {label} - -
diff --git a/frontend-v2/src/lib/Navbar.svelte b/frontend-v2/src/lib/Navbar.svelte deleted file mode 100644 index b28d27a..0000000 --- a/frontend-v2/src/lib/Navbar.svelte +++ /dev/null @@ -1,16 +0,0 @@ - - -
- -
diff --git a/frontend-v2/src/lib/common/framework/ui/Action.svelte b/frontend-v2/src/lib/common/framework/ui/Action.svelte new file mode 100644 index 0000000..1bfb442 --- /dev/null +++ b/frontend-v2/src/lib/common/framework/ui/Action.svelte @@ -0,0 +1,9 @@ + + +
+ + {label} + +
diff --git a/frontend-v2/src/lib/common/framework/ui/Footer.svelte b/frontend-v2/src/lib/common/framework/ui/Footer.svelte new file mode 100644 index 0000000..1f12e13 --- /dev/null +++ b/frontend-v2/src/lib/common/framework/ui/Footer.svelte @@ -0,0 +1,24 @@ + + +
+
+ +
+
+
+ Copyright © 2025 SquidSpirit +
+
diff --git a/frontend-v2/src/lib/common/framework/ui/Navbar.svelte b/frontend-v2/src/lib/common/framework/ui/Navbar.svelte new file mode 100644 index 0000000..1ef9fc2 --- /dev/null +++ b/frontend-v2/src/lib/common/framework/ui/Navbar.svelte @@ -0,0 +1,18 @@ + + +
+ +
diff --git a/frontend-v2/src/routes/+layout.svelte b/frontend-v2/src/routes/+layout.svelte index 77bd187..0fece7c 100644 --- a/frontend-v2/src/routes/+layout.svelte +++ b/frontend-v2/src/routes/+layout.svelte @@ -1,8 +1,12 @@ - - - \ No newline at end of file +
+ + +
+