From 47aec9ad788ea9bb7ee42c189b97bea2c75c8b94 Mon Sep 17 00:00:00 2001 From: d-kimsuon Date: Sat, 30 Aug 2025 15:20:10 +0900 Subject: [PATCH] chore: remove pathpida --- package.json | 2 - pnpm-lock.yaml | 38 ------------------- src/app/page.tsx | 3 +- .../[projectId]/components/ProjectPage.tsx | 6 +-- 4 files changed, 2 insertions(+), 47 deletions(-) diff --git a/package.json b/package.json index 4273256..9f988a8 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "scripts": { "dev": "run-p 'dev:*'", "dev:next": "next dev -p 3400 --turbopack", - "dev:path": "pathpida --output src/lib --ignorePath .gitignore --watch --enableStatic", "build": "next build", "lint": "run-s 'lint:*'", "lint:biome-format": "biome format .", @@ -54,7 +53,6 @@ "@types/react-dom": "^19.1.9", "@types/react-syntax-highlighter": "^15.5.13", "npm-run-all2": "^8.0.4", - "pathpida": "^0.25.0", "tailwindcss": "^4.1.12", "tw-animate-css": "^1.3.7", "typescript": "^5.9.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f173efb..6df9344 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -108,9 +108,6 @@ importers: npm-run-all2: specifier: ^8.0.4 version: 8.0.4 - pathpida: - specifier: ^0.25.0 - version: 0.25.0 tailwindcss: specifier: ^4.1.12 version: 4.1.12 @@ -1219,10 +1216,6 @@ packages: resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} engines: {node: '>= 16'} - chokidar@4.0.3: - resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} - engines: {node: '>= 14.16.0'} - chownr@3.0.0: resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} engines: {node: '>=18'} @@ -1379,10 +1372,6 @@ packages: html-url-attributes@3.0.1: resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==} - ignore@7.0.5: - resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} - engines: {node: '>= 4'} - inline-style-parser@0.2.4: resolution: {integrity: sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==} @@ -1673,9 +1662,6 @@ packages: micromark@4.0.2: resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==} - minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minipass@7.1.2: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} @@ -1743,10 +1729,6 @@ packages: pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - pathpida@0.25.0: - resolution: {integrity: sha512-GS0nxTBO2vDcNsZMoBJu3kURSzB55jkAEH+XzFbfIFg8f93WKPUnhAru+VcFXKcXPIkljSM3zYw9TX9cyAP+og==} - hasBin: true - pathval@2.0.1: resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==} engines: {node: '>= 14.16'} @@ -1852,10 +1834,6 @@ packages: resolution: {integrity: sha512-qpt8EwugBWDw2cgE2W+/3oxC+KTez2uSVR8JU9Q36TXPAGCaozfQUs59v4j4GFpWTaw0i6hAZSvOmu1J0uOEUg==} engines: {node: ^18.17.0 || >=20.5.0} - readdirp@4.1.2: - resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} - engines: {node: '>= 14.18.0'} - refractor@3.6.0: resolution: {integrity: sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA==} @@ -3024,10 +3002,6 @@ snapshots: check-error@2.1.1: {} - chokidar@4.0.3: - dependencies: - readdirp: 4.1.2 - chownr@3.0.0: {} class-variance-authority@0.7.1: @@ -3200,8 +3174,6 @@ snapshots: html-url-attributes@3.0.1: {} - ignore@7.0.5: {} - inline-style-parser@0.2.4: {} is-alphabetical@1.0.4: {} @@ -3658,8 +3630,6 @@ snapshots: transitivePeerDependencies: - supports-color - minimist@1.2.8: {} - minipass@7.1.2: {} minizlib@3.0.2: @@ -3733,12 +3703,6 @@ snapshots: pathe@2.0.3: {} - pathpida@0.25.0: - dependencies: - chokidar: 4.0.3 - ignore: 7.0.5 - minimist: 1.2.8 - pathval@2.0.1: {} picocolors@1.1.1: {} @@ -3847,8 +3811,6 @@ snapshots: json-parse-even-better-errors: 4.0.0 npm-normalize-package-bin: 4.0.0 - readdirp@4.1.2: {} - refractor@3.6.0: dependencies: hastscript: 6.0.0 diff --git a/src/app/page.tsx b/src/app/page.tsx index dc76c57..10f2e4e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,6 +1,5 @@ import { redirect } from "next/navigation"; -import { pagesPath } from "../lib/$path"; export default function Home() { - redirect(pagesPath.projects.$url().pathname); + redirect("/projects"); } diff --git a/src/app/projects/[projectId]/components/ProjectPage.tsx b/src/app/projects/[projectId]/components/ProjectPage.tsx index a59314b..0385bb7 100644 --- a/src/app/projects/[projectId]/components/ProjectPage.tsx +++ b/src/app/projects/[projectId]/components/ProjectPage.tsx @@ -14,7 +14,6 @@ import { } from "@/components/ui/card"; import { Checkbox } from "@/components/ui/checkbox"; import { hideSessionsWithoutUserMessagesAtom } from "../store/filterAtoms"; -import { pagesPath } from "../../../../lib/$path"; import { useProject } from "../hooks/useProject"; import { firstCommandToTitle } from "../services/firstCommandToTitle"; @@ -35,10 +34,7 @@ export const ProjectPageContent = ({ projectId }: { projectId: string }) => {