From f7f691512fecb4f3e42c8fdb8ab1b8d567cc22d2 Mon Sep 17 00:00:00 2001 From: 7w1 Date: Tue, 21 Jul 2026 23:17:15 -0500 Subject: [PATCH] chore: clean up unused files --- package.json | 1 - .../TelemetryConsentBanner.css.ts | 82 ------------------- .../UnverifiedNoticeBanner.css.ts | 82 ------------------- src/app/state/swUpdate.ts | 3 - 4 files changed, 168 deletions(-) delete mode 100644 src/app/components/telemetry-consent/TelemetryConsentBanner.css.ts delete mode 100644 src/app/components/unverified-notice/UnverifiedNoticeBanner.css.ts delete mode 100644 src/app/state/swUpdate.ts diff --git a/package.json b/package.json index 50392d3ed..9eff87f13 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "@tauri-apps/api": "2.11.1", "@tauri-apps/plugin-clipboard-manager": "2.3.2", "@tauri-apps/plugin-deep-link": "2.4.9", - "@tauri-apps/plugin-dialog": "~2.7.1", "@tauri-apps/plugin-http": "2.5.9", "@tauri-apps/plugin-opener": "2.5.4", "@tauri-apps/plugin-os": "2.3.2", diff --git a/src/app/components/telemetry-consent/TelemetryConsentBanner.css.ts b/src/app/components/telemetry-consent/TelemetryConsentBanner.css.ts deleted file mode 100644 index 70d9ba0ba..000000000 --- a/src/app/components/telemetry-consent/TelemetryConsentBanner.css.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { keyframes, style } from '@vanilla-extract/css'; -import { color, config, toRem } from 'folds'; - -const slideUp = keyframes({ - from: { - opacity: 0, - transform: 'translateY(100%)', - }, - to: { - opacity: 1, - transform: 'translateY(0)', - }, -}); - -const slideDown = keyframes({ - from: { - opacity: 1, - transform: 'translateY(0)', - }, - to: { - opacity: 0, - transform: 'translateY(100%)', - }, -}); - -export const Container = style({ - position: 'fixed', - bottom: 'env(safe-area-inset-bottom, 0)', - left: '50%', - transform: 'translateX(-50%)', - zIndex: 9998, - width: `min(100%, ${toRem(520)})`, - padding: config.space.S400, - pointerEvents: 'none', -}); - -export const Banner = style({ - pointerEvents: 'all', - display: 'flex', - flexDirection: 'column', - gap: config.space.S300, - backgroundColor: color.Surface.Container, - color: color.Surface.OnContainer, - border: `${config.borderWidth.B300} solid ${color.Surface.ContainerLine}`, - borderRadius: toRem(16), - padding: config.space.S400, - boxShadow: `0 ${toRem(8)} ${toRem(32)} rgba(0, 0, 0, 0.45), 0 ${toRem(2)} ${toRem(8)} rgba(0, 0, 0, 0.3)`, - animationName: slideUp, - animationDuration: '300ms', - animationTimingFunction: 'cubic-bezier(0.22, 0.8, 0.6, 1)', - animationFillMode: 'both', - - selectors: { - '&[data-dismissing=true]': { - animationName: slideDown, - animationDuration: '220ms', - animationTimingFunction: 'cubic-bezier(0.4, 0, 1, 1)', - animationFillMode: 'both', - }, - }, -}); - -export const Header = style({ - display: 'flex', - alignItems: 'flex-start', - gap: config.space.S300, -}); - -export const HeaderText = style({ - flex: 1, - minWidth: 0, - display: 'flex', - flexDirection: 'column', - gap: toRem(4), -}); - -export const Actions = style({ - display: 'flex', - gap: config.space.S200, - justifyContent: 'flex-end', - flexWrap: 'wrap', -}); diff --git a/src/app/components/unverified-notice/UnverifiedNoticeBanner.css.ts b/src/app/components/unverified-notice/UnverifiedNoticeBanner.css.ts deleted file mode 100644 index 868ef19d0..000000000 --- a/src/app/components/unverified-notice/UnverifiedNoticeBanner.css.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { keyframes, style } from '@vanilla-extract/css'; -import { color, config, toRem } from 'folds'; - -const slideUp = keyframes({ - from: { - opacity: 0, - transform: 'translateY(-100%)', - }, - to: { - opacity: 1, - transform: 'translateY(0)', - }, -}); - -const slideDown = keyframes({ - from: { - opacity: 1, - transform: 'translateY(0)', - }, - to: { - opacity: 0, - transform: 'translateY(100%)', - }, -}); - -export const Container = style({ - position: 'fixed', - top: 'env(safe-area-inset-top, 0)', - left: '50%', - transform: 'translateX(-50%)', - zIndex: 9998, - width: `min(100%, ${toRem(520)})`, - padding: config.space.S400, - pointerEvents: 'none', -}); - -export const Banner = style({ - pointerEvents: 'all', - display: 'flex', - flexDirection: 'column', - gap: config.space.S300, - backgroundColor: color.Surface.Container, - color: color.Surface.OnContainer, - border: `${config.borderWidth.B300} solid ${color.Surface.ContainerLine}`, - borderRadius: toRem(16), - padding: config.space.S400, - boxShadow: `0 ${toRem(8)} ${toRem(32)} rgba(0, 0, 0, 0.45), 0 ${toRem(2)} ${toRem(8)} rgba(0, 0, 0, 0.3)`, - animationName: slideUp, - animationDuration: '300ms', - animationTimingFunction: 'cubic-bezier(0.22, 0.8, 0.6, 1)', - animationFillMode: 'both', - - selectors: { - '&[data-dismissing=true]': { - animationName: slideDown, - animationDuration: '220ms', - animationTimingFunction: 'cubic-bezier(0.4, 0, 1, 1)', - animationFillMode: 'both', - }, - }, -}); - -export const Header = style({ - display: 'flex', - alignItems: 'flex-start', - gap: config.space.S300, -}); - -export const HeaderText = style({ - flex: 1, - minWidth: 0, - display: 'flex', - flexDirection: 'column', - gap: toRem(4), -}); - -export const Actions = style({ - display: 'flex', - gap: config.space.S200, - justifyContent: 'flex-end', - flexWrap: 'wrap', -}); diff --git a/src/app/state/swUpdate.ts b/src/app/state/swUpdate.ts deleted file mode 100644 index ee4c7ea1c..000000000 --- a/src/app/state/swUpdate.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { atom } from 'jotai'; - -export const swUpdateRegistrationAtom = atom(undefined);