From 7e4dcd8d160e622717281cccda5d828d02655eac Mon Sep 17 00:00:00 2001 From: hwakabh Date: Mon, 28 Jul 2025 15:31:10 +0900 Subject: [PATCH 1/3] chore: enabled pages for blog with styles. --- web-frontend/src/pages/About.vue | 4 +- web-frontend/src/pages/Blog.vue | 67 ++++++++ web-frontend/src/pages/Help.vue | 282 ------------------------------- web-frontend/src/router/index.js | 27 +-- 4 files changed, 75 insertions(+), 305 deletions(-) create mode 100644 web-frontend/src/pages/Blog.vue delete mode 100644 web-frontend/src/pages/Help.vue diff --git a/web-frontend/src/pages/About.vue b/web-frontend/src/pages/About.vue index b7ed6f09..58ba878e 100644 --- a/web-frontend/src/pages/About.vue +++ b/web-frontend/src/pages/About.vue @@ -86,9 +86,9 @@ axios.get('/api/v1/cv/publications')
diff --git a/web-frontend/src/pages/Blog.vue b/web-frontend/src/pages/Blog.vue new file mode 100644 index 00000000..66a6b3bc --- /dev/null +++ b/web-frontend/src/pages/Blog.vue @@ -0,0 +1,67 @@ + diff --git a/web-frontend/src/pages/Help.vue b/web-frontend/src/pages/Help.vue deleted file mode 100644 index 312b7dc5..00000000 --- a/web-frontend/src/pages/Help.vue +++ /dev/null @@ -1,282 +0,0 @@ - diff --git a/web-frontend/src/router/index.js b/web-frontend/src/router/index.js index 44637eb5..7682e4f6 100644 --- a/web-frontend/src/router/index.js +++ b/web-frontend/src/router/index.js @@ -4,29 +4,14 @@ import Home from '../pages/Home.vue'; import About from '../pages/About.vue'; import Works from '../pages/Works.vue'; import Contact from '../pages/Contact.vue'; -import Help from '../pages/Help.vue'; +import Blog from '../pages/Blog.vue'; const routes = [ - { - path: "/", - component: Home - }, - { - path: "/about", - component: About - }, - { - path: "/works", - component: Works - }, - { - path: "/contact", - component: Contact - }, - { - path: "/help", - component: Help - }, + { path: "/", component: Home }, + { path: "/about", component: About }, + { path: "/works", component: Works }, + { path: "/contact", component: Contact }, + { path: "/blog", component: Blog }, ]; export const router = createRouter({ From 9e7fcaebd2e698da5fdff4ca449cd2aa1664526e Mon Sep 17 00:00:00 2001 From: hwakabh Date: Mon, 28 Jul 2025 15:31:24 +0900 Subject: [PATCH 2/3] chore(deps): updated lockfiles. --- web-frontend/package-lock.json | 1 - 1 file changed, 1 deletion(-) diff --git a/web-frontend/package-lock.json b/web-frontend/package-lock.json index 2cb31bde..cb0e9a51 100644 --- a/web-frontend/package-lock.json +++ b/web-frontend/package-lock.json @@ -8,7 +8,6 @@ "name": "web-frontend", "version": "0.0.0", "dependencies": { - "@rollup/rollup-linux-x64-gnu": "4.46.0", "@tabler/icons-vue": "^3.34.1", "axios": "^1.11.0", "vue": "^3.5.18", From 245ac564807e575082adfb468b56ceff9956901f Mon Sep 17 00:00:00 2001 From: hwakabh Date: Mon, 28 Jul 2025 15:40:16 +0900 Subject: [PATCH 3/3] feat(vue-router): added scrollBehavior for navigations. --- web-frontend/src/router/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web-frontend/src/router/index.js b/web-frontend/src/router/index.js index 7682e4f6..02ff67c1 100644 --- a/web-frontend/src/router/index.js +++ b/web-frontend/src/router/index.js @@ -17,4 +17,11 @@ const routes = [ export const router = createRouter({ history: createWebHistory(), routes: routes, + scrollBehavior(to, from, savedPosition) { + if (savedPosition) { + return savedPosition; + } else { + return { top: 0 }; + } + } });