Skip to content

Commit 7a05d6a

Browse files
committed
feat: add sidebar management and theme utilities
- Implement SidebarManager class for responsive sidebar handling. - Create theme management utilities including base themes and badge themes. - Add validation schemas for API requests using Zod. - Update types and fix import paths for badge types. - Remove unused types from tsconfig.json.
1 parent a4810a6 commit 7a05d6a

102 files changed

Lines changed: 7769 additions & 11024 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

drizzle.config.ts

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,10 @@
11
import { defineConfig } from "drizzle-kit";
22

3-
const env = (
4-
globalThis as unknown as {
5-
process?: { env?: Record<string, string | undefined> };
6-
}
7-
).process?.env ?? {};
8-
9-
const cloudflareAccountId = env.CLOUDFLARE_ACCOUNT_ID;
10-
const cloudflareDatabaseId = env.CLOUDFLARE_D1_DATABASE_ID;
11-
const cloudflareApiToken = env.CLOUDFLARE_API_TOKEN;
12-
13-
const useCloudflareD1 = Boolean(
14-
cloudflareAccountId && cloudflareDatabaseId && cloudflareApiToken,
15-
);
16-
17-
export default defineConfig(
18-
useCloudflareD1
19-
? {
20-
schema: "./src/db/schema.ts",
21-
out: "./drizzle",
22-
dialect: "sqlite",
23-
driver: "d1-http",
24-
dbCredentials: {
25-
accountId: cloudflareAccountId!,
26-
databaseId: cloudflareDatabaseId!,
27-
token: cloudflareApiToken!,
28-
},
29-
}
30-
: {
31-
schema: "./src/db/schema.ts",
32-
out: "./drizzle",
33-
dialect: "sqlite",
34-
dbCredentials: {
35-
url: "./data/stats.db",
36-
},
37-
},
38-
);
3+
export default defineConfig({
4+
schema: "./src/db/schema.ts",
5+
out: "./drizzle",
6+
dialect: "sqlite",
7+
dbCredentials: {
8+
url: "./data/stats.db",
9+
},
10+
});

0 commit comments

Comments
 (0)