📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fix knip
Blue Mousea9ce5ef55c1b
diff --git a/web/app/api/api.server.ts b/web/app/api/api.server.tsindex 2adc5bcaf..4fc3dec9e 100644--- a/web/app/api/api.server.ts+++ b/web/app/api/api.server.ts@@ -2052,7 +2052,6 @@ export async function generateSSOAuthURLServer(export type {SSOHashSuccessResponse,- SSOHashLinkingRequiredResponse,SSOHashResponse,} from '~/lib/models/Auth'diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.tsindex 8eb9333fa..9dd7aaab8 100644--- a/web/app/lib/constants/index.ts+++ b/web/app/lib/constants/index.ts@@ -75,7 +75,7 @@ export type Period = (typeof VALID_PERIODS)[number]export type TimeBucket = (typeof VALID_TIME_BUCKETS)[number]// Maps each period to its valid time buckets (must stay in sync with tbPeriodPairs)-export const PERIOD_TO_VALID_TIME_BUCKETS: Record<Period, TimeBucket[]> = {+const PERIOD_TO_VALID_TIME_BUCKETS: Record<Period, TimeBucket[]> = {'1h': ['minute'],today: ['hour'],yesterday: ['hour'],diff --git a/web/app/lib/models/Auth.ts b/web/app/lib/models/Auth.tsindex ef86568d7..36dfb019b 100644--- a/web/app/lib/models/Auth.ts+++ b/web/app/lib/models/Auth.ts@@ -9,12 +9,6 @@ export interface Auth {export type SSOProvider = 'google' | 'github' | 'openid-connect'-export interface SSOAuthURLResponse {- uuid: string- auth_url: string- expires_in: number-}-export interface SSOHashSuccessResponse {accessToken: stringrefreshToken: string@@ -22,7 +16,7 @@ export interface SSOHashSuccessResponse {totalMonthlyEvents: number}-export interface SSOHashLinkingRequiredResponse {+interface SSOHashLinkingRequiredResponse {linkingRequired: trueemail: stringprovider: SSOProviderdiff --git a/web/knip.jsonc b/web/knip.jsoncindex 89f20b93f..03ca350fd 100644--- a/web/knip.jsonc+++ b/web/knip.jsonc@@ -1,15 +1,14 @@{"$schema": "https://unpkg.com/knip@5/schema.json",- "ignoreDependencies": [- "@typescript-eslint/typescript-estree",- "@tailwindcss/forms",- "@tailwindcss/typography",- "tailwindcss",- "eslint-import-resolver-node"+ "ignoreDependencies": ["@tailwindcss/forms", "@tailwindcss/typography", "tailwindcss"],+ "ignore": [+ "./ecosystem.config.js",+ "./app/routes.ts",+ "./react-router.config.ts",+ "./app/routes/[robots.txt].tsx",],- "ignore": ["./ecosystem.config.js", "./app/routes.ts", "./react-router.config.ts", "./app/routes/[robots.txt].tsx"],"project": ["./app/**/*.{js,ts,tsx,jsx,cjs}"],"paths": {- "~/*": ["./app/*"]- }+ "~/*": ["./app/*"],+ },}