From 291b8ac91f7b9fd1221c6d05e9bb682d716e6c32 Mon Sep 17 00:00:00 2001 From: Evandro Fonseca Junior Date: Sat, 10 Oct 2026 04:23:12 -0300 Subject: [PATCH] chore: remove unused modules and dependencies Delete files with no importers (src/actions/{account,database,window}.ts, drag-window-region, navigation-menu, ui/navigation-menu, ui/toggle, ui/toggle-group) and the packages only they or nothing used (@icons-pack/react-simple-icons, @radix-ui/react-icons, @sentry/integrations, @radix-ui/react-{navigation-menu,toggle,toggle-group}). Drop the duplicated Playwright block in .gitignore. --- .gitignore | 4 - package.json | 6 - pnpm-lock.yaml | 175 +------------------------- src/actions/account.ts | 54 -------- src/actions/database.ts | 14 --- src/actions/window.ts | 11 -- src/components/drag-window-region.tsx | 87 ------------- src/components/navigation-menu.tsx | 25 ---- src/components/ui/navigation-menu.tsx | 161 ------------------------ src/components/ui/toggle-group.tsx | 69 ---------- src/components/ui/toggle.tsx | 44 ------- 11 files changed, 3 insertions(+), 647 deletions(-) delete mode 100644 src/actions/account.ts delete mode 100644 src/actions/database.ts delete mode 100644 src/actions/window.ts delete mode 100644 src/components/drag-window-region.tsx delete mode 100644 src/components/navigation-menu.tsx delete mode 100644 src/components/ui/navigation-menu.tsx delete mode 100644 src/components/ui/toggle-group.tsx delete mode 100644 src/components/ui/toggle.tsx diff --git a/.gitignore b/.gitignore index a040553..f6fcce6 100644 --- a/.gitignore +++ b/.gitignore @@ -95,10 +95,6 @@ out/ /playwright-report/ /blob-report/ /playwright/.cache/ -/test-results/ -/playwright-report/ -/blob-report/ -/playwright/.cache/ # Tanstack .tanstack/ diff --git a/package.json b/package.json index e492150..7e8200d 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,6 @@ "vitest": "^4.0.8" }, "dependencies": { - "@icons-pack/react-simple-icons": "^13.8.0", "@nestjs/common": "^11.1.18", "@nestjs/core": "^11.1.18", "@nestjs/microservices": "^11.1.18", @@ -116,19 +115,14 @@ "@radix-ui/react-checkbox": "^1.3.3", "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16", - "@radix-ui/react-icons": "^1.3.2", "@radix-ui/react-label": "^2.1.8", - "@radix-ui/react-navigation-menu": "^1.2.14", "@radix-ui/react-select": "^2.2.6", "@radix-ui/react-slot": "^1.2.4", "@radix-ui/react-switch": "^1.2.6", "@radix-ui/react-tabs": "^1.1.13", "@radix-ui/react-toast": "^1.2.15", - "@radix-ui/react-toggle": "^1.1.9", - "@radix-ui/react-toggle-group": "^1.1.11", "@radix-ui/react-tooltip": "^1.2.8", "@sentry/electron": "^7.7.0", - "@sentry/integrations": "^7.114.0", "@tanstack/react-query": "^5.90.7", "@tanstack/react-router": "^1.139.3", "@tanstack/react-router-devtools": "^1.135.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6b200ec..c8e5eb6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,9 +19,6 @@ importers: .: dependencies: - '@icons-pack/react-simple-icons': - specifier: ^13.8.0 - version: 13.13.0(react@19.2.5) '@nestjs/common': specifier: ^11.1.18 version: 11.1.19(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2) @@ -70,15 +67,9 @@ importers: '@radix-ui/react-dropdown-menu': specifier: ^2.1.16 version: 2.1.16(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-icons': - specifier: ^1.3.2 - version: 1.3.2(react@19.2.5) '@radix-ui/react-label': specifier: ^2.1.8 version: 2.1.8(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-navigation-menu': - specifier: ^1.2.14 - version: 1.2.14(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) '@radix-ui/react-select': specifier: ^2.2.6 version: 2.2.6(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -94,21 +85,12 @@ importers: '@radix-ui/react-toast': specifier: ^1.2.15 version: 1.2.15(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-toggle': - specifier: ^1.1.9 - version: 1.1.10(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-toggle-group': - specifier: ^1.1.11 - version: 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) '@radix-ui/react-tooltip': specifier: ^1.2.8 version: 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) '@sentry/electron': specifier: ^7.7.0 version: 7.12.0 - '@sentry/integrations': - specifier: ^7.114.0 - version: 7.114.0 '@tanstack/react-query': specifier: ^5.90.7 version: 5.100.5(react@19.2.5) @@ -1095,12 +1077,6 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} - '@icons-pack/react-simple-icons@13.13.0': - resolution: {integrity: sha512-B5HhQMIpcSH4z8IZ8HFhD59CboHceKYMpPC9kAwGyKntvPdyJJv26DLu4Z1wAjcCLyrJhf11tMhiQGom9Rxb9g==} - engines: {node: '>=24', pnpm: '>=10'} - peerDependencies: - react: ^16.13 || ^17 || ^18 || ^19 - '@img/colour@1.1.0': resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} engines: {node: '>=18'} @@ -2276,11 +2252,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-icons@1.3.2': - resolution: {integrity: sha512-fyQIhGDhzfc9pK2kH6Pl9c4BDJGfMkPqkyIgYDthyNYoNg3wVhoJMMh19WS4Up/1KMPFVpNsT2q3WmXn2N1m6g==} - peerDependencies: - react: ^16.x || ^17.x || ^18.x || ^19.0.0 || ^19.0.0-rc - '@radix-ui/react-id@1.1.1': resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==} peerDependencies: @@ -2316,19 +2287,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-navigation-menu@1.2.14': - resolution: {integrity: sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-popper@1.2.8': resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==} peerDependencies: @@ -2477,32 +2435,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-toggle-group@1.1.11': - resolution: {integrity: sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - - '@radix-ui/react-toggle@1.1.10': - resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-tooltip@1.2.8': resolution: {integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==} peerDependencies: @@ -3020,10 +2952,6 @@ packages: resolution: {integrity: sha512-UaFeum3LUM1mB0d67jvKnqId1yWQjyqmaDV6kWngG03x+jqXb08tJdGpSoxjXZe13jFBbiBL/wKDDYIK7rCK4g==} engines: {node: '>=18'} - '@sentry/core@7.114.0': - resolution: {integrity: sha512-YnanVlmulkjgZiVZ9BfY9k6I082n+C+LbZo52MTvx3FY6RE5iyiPMpaOh67oXEZRWcYQEGm+bKruRxLVP6RlbA==} - engines: {node: '>=8'} - '@sentry/electron@7.12.0': resolution: {integrity: sha512-i8WkwxvtioaOKbE957GhoWaAuyiaUdjBNtJeus2VIg5o3RZaM871Q57WcQ3t2TF+U0z+IIlWgwPgGsLcsrPrDw==} peerDependencies: @@ -3032,10 +2960,6 @@ packages: '@sentry/node-native': optional: true - '@sentry/integrations@7.114.0': - resolution: {integrity: sha512-BJIBWXGKeIH0ifd7goxOS29fBA8BkEgVVCahs6xIOXBjX1IRS6PmX0zYx/GP23nQTfhJiubv2XPzoYOlZZmDxg==} - engines: {node: '>=8'} - '@sentry/node-core@10.49.0': resolution: {integrity: sha512-7WO0KuCDPSq3G54TVUSI1CKFJwB67LasG+n/gDMBqbrarzs/Yh/s34OOMU5gfVQpncxQAmQsy4nEboQms8iNqA==} engines: {node: '>=18'} @@ -3073,14 +2997,6 @@ packages: '@opentelemetry/sdk-trace-base': ^1.30.1 || ^2.1.0 '@opentelemetry/semantic-conventions': ^1.39.0 - '@sentry/types@7.114.0': - resolution: {integrity: sha512-tsqkkyL3eJtptmPtT0m9W/bPLkU7ILY7nvwpi1hahA5jrM7ppoU0IMaQWAgTD+U3rzFH40IdXNBFb8Gnqcva4w==} - engines: {node: '>=8'} - - '@sentry/utils@7.114.0': - resolution: {integrity: sha512-319N90McVpupQ6vws4+tfCy/03AdtsU0MurIE4+W5cubHME08HtiEWlfacvAxX+yuKFhvdsO4K4BB/dj54ideg==} - engines: {node: '>=8'} - '@sentry/vite-plugin@4.9.1': resolution: {integrity: sha512-Tlyg2cyFYp/icX58GWvfpvZr9NLdLs2/xyFVyS8pQ0faZWmoXic3FMzoXYHV1gsdMbL1Yy5WQvGJy8j1rS8LGA==} engines: {node: '>= 14'} @@ -3751,6 +3667,7 @@ packages: '@xmldom/xmldom@0.8.13': resolution: {integrity: sha512-KRYzxepc14G/CEpEGc3Yn+JKaAeT63smlDr+vjB8jRfgTBBI9wRj/nkQEO+ucV8p8I9bfKLWp37uHgFrbntPvw==} engines: {node: '>=10.0.0'} + deprecated: this version has critical issues, please update to the latest version '@xtuc/ieee754@1.2.0': resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} @@ -5090,6 +5007,7 @@ packages: eslint@9.39.4: resolution: {integrity: sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true peerDependencies: jiti: '*' @@ -6180,9 +6098,6 @@ packages: libphonenumber-js@1.12.41: resolution: {integrity: sha512-lsmMmGXBxXIK/VMLEj0kL6MtUs1kBGj1nTCzi6zgQoG1DEwqwt2DQyHxcLykceIxAnfE3hya7NuIh6PpC6S3fA==} - lie@3.1.1: - resolution: {integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==} - lie@3.3.0: resolution: {integrity: sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==} @@ -6286,9 +6201,6 @@ packages: resolution: {integrity: sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==} engines: {node: '>=6.11.5'} - localforage@1.10.0: - resolution: {integrity: sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==} - locate-path@2.0.0: resolution: {integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==} engines: {node: '>=4'} @@ -8181,6 +8093,7 @@ packages: tsconfck@3.1.6: resolution: {integrity: sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w==} engines: {node: ^18 || >=20} + deprecated: unmaintained hasBin: true peerDependencies: typescript: ^5.0.0 @@ -9771,10 +9684,6 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} - '@icons-pack/react-simple-icons@13.13.0(react@19.2.5)': - dependencies: - react: 19.2.5 - '@img/colour@1.1.0': {} '@img/sharp-darwin-arm64@0.33.5': @@ -11172,10 +11081,6 @@ snapshots: '@types/react': 19.2.14 '@types/react-dom': 19.2.3(@types/react@19.2.14) - '@radix-ui/react-icons@1.3.2(react@19.2.5)': - dependencies: - react: 19.2.5 - '@radix-ui/react-id@1.1.1(@types/react@19.2.14)(react@19.2.5)': dependencies: '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.14)(react@19.2.5) @@ -11218,28 +11123,6 @@ snapshots: '@types/react': 19.2.14 '@types/react-dom': 19.2.3(@types/react@19.2.14) - '@radix-ui/react-navigation-menu@1.2.14(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': - dependencies: - '@radix-ui/primitive': 1.1.3 - '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-context': 1.1.2(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-direction': 1.1.1(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-id': 1.1.1(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-visually-hidden': 1.2.3(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - react: 19.2.5 - react-dom: 19.2.5(react@19.2.5) - optionalDependencies: - '@types/react': 19.2.14 - '@types/react-dom': 19.2.3(@types/react@19.2.14) - '@radix-ui/react-popper@1.2.8(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': dependencies: '@floating-ui/react-dom': 2.1.8(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -11407,32 +11290,6 @@ snapshots: '@types/react': 19.2.14 '@types/react-dom': 19.2.3(@types/react@19.2.14) - '@radix-ui/react-toggle-group@1.1.11(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': - dependencies: - '@radix-ui/primitive': 1.1.3 - '@radix-ui/react-context': 1.1.2(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-direction': 1.1.1(@types/react@19.2.14)(react@19.2.5) - '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-toggle': 1.1.10(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.14)(react@19.2.5) - react: 19.2.5 - react-dom: 19.2.5(react@19.2.5) - optionalDependencies: - '@types/react': 19.2.14 - '@types/react-dom': 19.2.3(@types/react@19.2.14) - - '@radix-ui/react-toggle@1.1.10(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': - dependencies: - '@radix-ui/primitive': 1.1.3 - '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.14)(react@19.2.5) - react: 19.2.5 - react-dom: 19.2.5(react@19.2.5) - optionalDependencies: - '@types/react': 19.2.14 - '@types/react-dom': 19.2.3(@types/react@19.2.14) - '@radix-ui/react-tooltip@1.2.8(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': dependencies: '@radix-ui/primitive': 1.1.3 @@ -11892,11 +11749,6 @@ snapshots: '@sentry/core@10.49.0': {} - '@sentry/core@7.114.0': - dependencies: - '@sentry/types': 7.114.0 - '@sentry/utils': 7.114.0 - '@sentry/electron@7.12.0': dependencies: '@sentry/browser': 10.49.0 @@ -11906,13 +11758,6 @@ snapshots: - '@opentelemetry/exporter-trace-otlp-http' - supports-color - '@sentry/integrations@7.114.0': - dependencies: - '@sentry/core': 7.114.0 - '@sentry/types': 7.114.0 - '@sentry/utils': 7.114.0 - localforage: 1.10.0 - '@sentry/node-core@10.49.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.7.0(@opentelemetry/api@1.9.1))(@opentelemetry/instrumentation@0.214.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.7.0(@opentelemetry/api@1.9.1))(@opentelemetry/semantic-conventions@1.40.0)': dependencies: '@sentry/core': 10.49.0 @@ -11971,12 +11816,6 @@ snapshots: '@opentelemetry/semantic-conventions': 1.40.0 '@sentry/core': 10.49.0 - '@sentry/types@7.114.0': {} - - '@sentry/utils@7.114.0': - dependencies: - '@sentry/types': 7.114.0 - '@sentry/vite-plugin@4.9.1(encoding@0.1.13)': dependencies: '@sentry/bundler-plugin-core': 4.9.1(encoding@0.1.13) @@ -15482,10 +15321,6 @@ snapshots: libphonenumber-js@1.12.41: {} - lie@3.1.1: - dependencies: - immediate: 3.0.6 - lie@3.3.0: dependencies: immediate: 3.0.6 @@ -15576,10 +15411,6 @@ snapshots: loader-runner@4.3.1: {} - localforage@1.10.0: - dependencies: - lie: 3.1.1 - locate-path@2.0.0: dependencies: p-locate: 2.0.0 diff --git a/src/actions/account.ts b/src/actions/account.ts deleted file mode 100644 index 0b6f1e4..0000000 --- a/src/actions/account.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { ipc } from '@/ipc/manager'; -import type { DeviceProfile } from '@/types/account'; - -export function listAccounts() { - return ipc.client.account.listAccounts(); -} - -export function addAccountSnapshot() { - return ipc.client.account.addAccountSnapshot(); -} - -export function switchAccount(accountId: string) { - return ipc.client.account.switchAccount({ accountId }); -} - -export function deleteAccount(accountId: string) { - return ipc.client.account.deleteAccount({ accountId }); -} - -export function previewGenerateIdentityProfile() { - return ipc.client.account.previewGenerateIdentityProfile(); -} - -export function getIdentityProfiles(accountId: string) { - return ipc.client.account.getIdentityProfiles({ accountId }); -} - -export function bindIdentityProfile(accountId: string, mode: 'capture' | 'generate') { - return ipc.client.account.bindIdentityProfile({ accountId, mode }); -} - -export function bindIdentityProfileWithPayload(accountId: string, profile: DeviceProfile) { - return ipc.client.account.bindIdentityProfileWithPayload({ accountId, profile }); -} - -export function applyBoundIdentityProfile(accountId: string) { - return ipc.client.account.applyBoundIdentityProfile({ accountId }); -} - -export function restoreIdentityProfileRevision(accountId: string, versionId: string) { - return ipc.client.account.restoreIdentityProfileRevision({ accountId, versionId }); -} - -export function deleteIdentityProfileRevision(accountId: string, versionId: string) { - return ipc.client.account.deleteIdentityProfileRevision({ accountId, versionId }); -} - -export function restoreBaselineProfile(accountId: string) { - return ipc.client.account.restoreBaselineProfile({ accountId }); -} - -export function openIdentityStorageFolder() { - return ipc.client.account.openIdentityStorageFolder(); -} diff --git a/src/actions/database.ts b/src/actions/database.ts deleted file mode 100644 index d687605..0000000 --- a/src/actions/database.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ipc } from '@/ipc/manager'; -import { AccountBackupData, Account } from '@/types/account'; - -export function backupAccount(account: Account) { - return ipc.client.database.backupAccount(account); -} - -export function restoreAccount(backup: AccountBackupData) { - return ipc.client.database.restoreAccount(backup); -} - -export function getCurrentAccountInfo() { - return ipc.client.database.getCurrentAccountInfo(); -} diff --git a/src/actions/window.ts b/src/actions/window.ts deleted file mode 100644 index ef6aa36..0000000 --- a/src/actions/window.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { ipc } from '../ipc/manager'; - -export async function minimizeWindow() { - await ipc.client.window.minimizeWindow(); -} -export async function maximizeWindow() { - await ipc.client.window.maximizeWindow(); -} -export async function closeWindow() { - await ipc.client.window.closeWindow(); -} diff --git a/src/components/drag-window-region.tsx b/src/components/drag-window-region.tsx deleted file mode 100644 index 777adb6..0000000 --- a/src/components/drag-window-region.tsx +++ /dev/null @@ -1,87 +0,0 @@ -import { getPlatform } from '@/actions/app'; -import { closeWindow, maximizeWindow, minimizeWindow } from '@/actions/window'; -import { logger } from '@/utils/logger'; -import { type ReactNode, useEffect, useState } from 'react'; - -interface DragWindowRegionProps { - title?: ReactNode; -} - -export default function DragWindowRegion({ title }: DragWindowRegionProps) { - const [platform, setPlatform] = useState(null); - - useEffect(() => { - let active = true; - - getPlatform() - .then((value: any) => { - if (!active) { - return; - } - setPlatform(value as string); - }) - .catch((error: any) => { - logger.error('Failed to detect platform', error); - }); - - return () => { - active = false; - }; - }, []); - - const isMacOS = platform === 'darwin'; - - return ( -
-
- {title && !isMacOS && ( -
- {title} -
- )} - {isMacOS && ( -
- {/* Maintain the same height but do not display content */} -
- )} -
- {!isMacOS && } -
- ); -} - -function WindowButtons() { - return ( -
- - - -
- ); -} diff --git a/src/components/navigation-menu.tsx b/src/components/navigation-menu.tsx deleted file mode 100644 index 8db5fb3..0000000 --- a/src/components/navigation-menu.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { Link } from '@tanstack/react-router'; -import { - NavigationMenu as NavigationMenuBase, - NavigationMenuItem, - NavigationMenuLink, - NavigationMenuList, - navigationMenuTriggerStyle, -} from '@/components/ui/navigation-menu'; -import { useTranslation } from 'react-i18next'; - -export default function NavigationMenu() { - const { t } = useTranslation(); - - return ( - - - - - {t('titleHomePage')} - - - - - ); -} diff --git a/src/components/ui/navigation-menu.tsx b/src/components/ui/navigation-menu.tsx deleted file mode 100644 index e52ae69..0000000 --- a/src/components/ui/navigation-menu.tsx +++ /dev/null @@ -1,161 +0,0 @@ -import * as React from 'react'; -import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'; -import { cva } from 'class-variance-authority'; -import { ChevronDownIcon } from 'lucide-react'; - -import { cn } from '@/lib/utils'; - -function NavigationMenu({ - className, - children, - viewport = true, - ...props -}: React.ComponentProps & { - viewport?: boolean; -}) { - return ( - - {children} - {viewport && } - - ); -} - -function NavigationMenuList({ - className, - ...props -}: React.ComponentProps) { - return ( - - ); -} - -function NavigationMenuItem({ - className, - ...props -}: React.ComponentProps) { - return ( - - ); -} - -const navigationMenuTriggerStyle = cva( - 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1', -); - -function NavigationMenuTrigger({ - className, - children, - ...props -}: React.ComponentProps) { - return ( - - {children}{' '} - - ); -} - -function NavigationMenuContent({ - className, - ...props -}: React.ComponentProps) { - return ( - - ); -} - -function NavigationMenuViewport({ - className, - ...props -}: React.ComponentProps) { - return ( -
- -
- ); -} - -function NavigationMenuLink({ - className, - ...props -}: React.ComponentProps) { - return ( - - ); -} - -function NavigationMenuIndicator({ - className, - ...props -}: React.ComponentProps) { - return ( - -
- - ); -} - -export { - NavigationMenu, - NavigationMenuList, - NavigationMenuItem, - NavigationMenuContent, - NavigationMenuTrigger, - NavigationMenuLink, - NavigationMenuIndicator, - NavigationMenuViewport, - navigationMenuTriggerStyle, -}; diff --git a/src/components/ui/toggle-group.tsx b/src/components/ui/toggle-group.tsx deleted file mode 100644 index eeeaff0..0000000 --- a/src/components/ui/toggle-group.tsx +++ /dev/null @@ -1,69 +0,0 @@ -'use client'; - -import * as React from 'react'; -import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group'; -import { type VariantProps } from 'class-variance-authority'; - -import { cn } from '@/lib/utils'; -import { toggleVariants } from '@/components/ui/toggle'; - -const ToggleGroupContext = React.createContext>({ - size: 'default', - variant: 'default', -}); - -function ToggleGroup({ - className, - variant, - size, - children, - ...props -}: React.ComponentProps & VariantProps) { - return ( - - - {children} - - - ); -} - -function ToggleGroupItem({ - className, - children, - variant, - size, - ...props -}: React.ComponentProps & VariantProps) { - const context = React.useContext(ToggleGroupContext); - - return ( - - {children} - - ); -} - -export { ToggleGroup, ToggleGroupItem }; diff --git a/src/components/ui/toggle.tsx b/src/components/ui/toggle.tsx deleted file mode 100644 index a0cc8a4..0000000 --- a/src/components/ui/toggle.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import * as React from 'react'; -import * as TogglePrimitive from '@radix-ui/react-toggle'; -import { cva, type VariantProps } from 'class-variance-authority'; - -import { cn } from '@/lib/utils'; - -const toggleVariants = cva( - "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", - { - variants: { - variant: { - default: 'bg-transparent', - outline: - 'border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground', - }, - size: { - default: 'h-9 px-2 min-w-9', - sm: 'h-8 px-1.5 min-w-8', - lg: 'h-10 px-2.5 min-w-10', - }, - }, - defaultVariants: { - variant: 'default', - size: 'default', - }, - }, -); - -function Toggle({ - className, - variant, - size, - ...props -}: React.ComponentProps & VariantProps) { - return ( - - ); -} - -export { Toggle, toggleVariants };