startx 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +4 -0
- package/apps/cli/src/commands/index.ts +1 -1
- package/apps/cli/src/commands/{common → test}/test.ts +4 -2
- package/apps/cli/tsconfig.json +0 -1
- package/apps/core-server/Dockerfile +5 -4
- package/apps/core-server/package.json +1 -1
- package/apps/core-server/tsconfig.json +1 -1
- package/apps/queue-worker/package.json +1 -1
- package/apps/queue-worker/tsconfig.json +1 -1
- package/apps/startx-cli/dist/index.mjs +68 -53
- package/apps/startx-cli/src/commands/package.ts +453 -0
- package/apps/startx-cli/src/configs/scripts.ts +18 -2
- package/apps/startx-cli/src/index.ts +2 -4
- package/apps/startx-cli/src/types.ts +2 -4
- package/apps/startx-cli/src/utils/inquirer.ts +8 -1
- package/apps/web-client/.dockerignore +4 -0
- package/apps/web-client/app/app.css +1 -0
- package/apps/web-client/app/components.json +23 -0
- package/apps/web-client/app/config/auth/auth-state.ts +59 -0
- package/apps/web-client/app/config/axios-client.ts +87 -0
- package/apps/web-client/app/config/env.ts +5 -0
- package/apps/web-client/app/entry.client.tsx +7 -0
- package/apps/web-client/app/eslint.config.ts +4 -0
- package/apps/web-client/app/root.tsx +77 -0
- package/apps/web-client/app/routes/home.tsx +12 -0
- package/apps/web-client/app/routes.ts +3 -0
- package/apps/web-client/eslint.config.ts +4 -0
- package/apps/web-client/package.json +55 -0
- package/apps/web-client/react-router.config.ts +7 -0
- package/apps/web-client/tsconfig.json +22 -0
- package/apps/web-client/vite-env.d.ts +8 -0
- package/apps/web-client/vite.config.ts +30 -0
- package/biome.json +5 -0
- package/configs/eslint-config/eslint.config.ts +1 -0
- package/configs/eslint-config/src/configs/base.ts +0 -1
- package/configs/eslint-config/src/configs/frontend.ts +1 -1
- package/configs/eslint-config/tsconfig.json +1 -1
- package/configs/typescript-config/tsconfig.frontend.json +1 -1
- package/configs/vitest-config/tsconfig.json +1 -1
- package/package.json +1 -1
- package/packages/@db/drizzle/tsconfig.json +1 -1
- package/packages/@db/sqlite/tsconfig.json +1 -1
- package/packages/@repo/env/package.json +1 -2
- package/packages/@repo/env/src/utils.ts +17 -11
- package/packages/@repo/lib/package.json +3 -1
- package/packages/@repo/lib/src/session-module/i-session.ts +108 -0
- package/packages/@repo/lib/src/session-module/index.ts +8 -111
- package/packages/@repo/lib/src/session-module/redis-session.ts +44 -0
- package/packages/@repo/lib/tsconfig.json +0 -1
- package/packages/@repo/logger/package.json +0 -1
- package/packages/@repo/logger/tsconfig.json +1 -1
- package/packages/@repo/mail/tsconfig.json +1 -1
- package/packages/@repo/redis/tsconfig.json +1 -1
- package/packages/aix/package.json +2 -0
- package/packages/aix/src/providers/ai-interface.ts +4 -4
- package/packages/aix/src/providers/bedrock/bedrock.ts +261 -0
- package/packages/aix/src/providers/default-models.ts +65 -0
- package/packages/aix/src/providers/openai/openai.ts +2 -2
- package/packages/aix/src/providers/providers.ts +11 -0
- package/packages/aix/src/providers/types.ts +1 -1
- package/packages/{constants → common}/package.json +4 -2
- package/packages/{constants/src/index.ts → common/src/constants.ts} +0 -5
- package/packages/common/src/types/users.ts +10 -0
- package/packages/{constants → common}/tsconfig.json +0 -3
- package/packages/ui/components.json +15 -8
- package/packages/ui/package.json +23 -36
- package/packages/ui/src/api/axios/i-client.ts +40 -0
- package/packages/ui/src/api/index.ts +6 -0
- package/packages/ui/src/api/query-provider.tsx +34 -0
- package/packages/ui/src/api/use-api/api-builder.ts +139 -0
- package/packages/ui/src/api/use-api/api-helpers.ts +165 -0
- package/packages/ui/src/api/use-api/api-types.ts +138 -0
- package/packages/ui/src/api/use-api/query-factory.ts +66 -0
- package/packages/ui/src/api/use-api/react-query/types.ts +64 -0
- package/packages/ui/src/api/use-api/react-query/use-api-client.ts +56 -0
- package/packages/ui/src/api/use-api/react-query/use-api.ts +297 -0
- package/packages/ui/src/components/custom/form-wrapper.tsx +113 -160
- package/packages/ui/src/components/custom/grid-component.tsx +4 -4
- package/packages/ui/src/components/custom/hover-tool.tsx +1 -1
- package/packages/ui/src/components/custom/image-picker.tsx +18 -20
- package/packages/ui/src/components/custom/no-content.tsx +6 -16
- package/packages/ui/src/components/custom/page-section.tsx +14 -17
- package/packages/ui/src/components/custom/simple-popover.tsx +5 -9
- package/packages/ui/src/components/custom/theme-provider.tsx +117 -42
- package/packages/ui/src/components/custom/typography.tsx +20 -22
- package/packages/ui/src/components/extensions/timeline.tsx +100 -0
- package/packages/ui/src/components/ui/alert-dialog.tsx +46 -108
- package/packages/ui/src/components/ui/avatar.tsx +79 -42
- package/packages/ui/src/components/ui/badge.tsx +29 -34
- package/packages/ui/src/components/ui/breadcrumb.tsx +65 -81
- package/packages/ui/src/components/ui/button.tsx +80 -80
- package/packages/ui/src/components/ui/card.tsx +48 -69
- package/packages/ui/src/components/ui/carousel.tsx +184 -211
- package/packages/ui/src/components/ui/checkbox.tsx +21 -24
- package/packages/ui/src/components/ui/command.tsx +121 -102
- package/packages/ui/src/components/ui/dialog.tsx +45 -32
- package/packages/ui/src/components/ui/dropdown-menu.tsx +45 -33
- package/packages/ui/src/components/ui/field.tsx +218 -0
- package/packages/ui/src/components/ui/form.tsx +63 -76
- package/packages/ui/src/components/ui/input-group.tsx +137 -0
- package/packages/ui/src/components/ui/input-otp.tsx +60 -50
- package/packages/ui/src/components/ui/input.tsx +16 -15
- package/packages/ui/src/components/ui/label.tsx +14 -17
- package/packages/ui/src/components/ui/multiple-select.tsx +22 -33
- package/packages/ui/src/components/ui/popover.tsx +20 -8
- package/packages/ui/src/components/ui/select.tsx +33 -34
- package/packages/ui/src/components/ui/separator.tsx +8 -8
- package/packages/ui/src/components/ui/sheet.tsx +32 -59
- package/packages/ui/src/components/ui/sidebar.tsx +654 -0
- package/packages/ui/src/components/ui/skeleton.tsx +2 -8
- package/packages/ui/src/components/ui/sonner.tsx +39 -0
- package/packages/ui/src/components/ui/spinner.tsx +6 -13
- package/packages/ui/src/components/ui/switch.tsx +15 -10
- package/packages/ui/src/components/ui/table.tsx +48 -89
- package/packages/ui/src/components/ui/tabs.tsx +37 -15
- package/packages/ui/src/components/ui/textarea.tsx +13 -13
- package/packages/ui/src/components/ui/tooltip.tsx +37 -23
- package/packages/ui/src/{components/hooks → hooks}/event/use-click.tsx +6 -10
- package/packages/ui/src/hooks/time/use-timer.tsx +51 -0
- package/packages/ui/src/hooks/use-media-query.tsx +19 -0
- package/packages/ui/src/hooks/use-mobile.tsx +17 -0
- package/packages/ui/src/{components/hooks → hooks}/use-update-effect.tsx +2 -2
- package/packages/ui/src/lib/utils.ts +113 -0
- package/packages/ui/src/styles/globals.css +311 -0
- package/packages/ui/src/styles/tailwind.css +89 -0
- package/packages/ui/tsconfig.json +7 -9
- package/pnpm-workspace.yaml +74 -64
- package/packages/ui/postcss.config.mjs +0 -9
- package/packages/ui/src/components/extensions/carousel.tsx +0 -392
- package/packages/ui/src/components/hooks/time/useTimer.tsx +0 -51
- package/packages/ui/src/components/hooks/use-media-query.tsx +0 -19
- package/packages/ui/src/components/lib/utils.ts +0 -242
- package/packages/ui/src/components/ui/timeline.tsx +0 -118
- package/packages/ui/src/components/util/n-formattor.ts +0 -22
- package/packages/ui/src/components/util/storage.ts +0 -37
- package/packages/ui/src/globals.css +0 -87
- package/packages/ui/tailwind.config.ts +0 -94
- /package/packages/{constants → common}/eslint.config.ts +0 -0
- /package/packages/{constants → common}/src/api.ts +0 -0
- /package/packages/{constants → common}/src/time.ts +0 -0
- /package/packages/{constants → common}/vitest.config.ts +0 -0
- /package/packages/ui/src/{components/hooks/time/useDebounce.tsx → hooks/time/use-debounce.tsx} +0 -0
- /package/packages/ui/src/{components/hooks/time/useInterval.tsx → hooks/time/use-interval.tsx} +0 -0
- /package/packages/ui/src/{components/hooks/time/useTimeout.tsx → hooks/time/use-timeout.tsx} +0 -0
- /package/packages/ui/src/{components/hooks → hooks}/use-persistent-storage.tsx +0 -0
- /package/packages/ui/src/{components/hooks → hooks}/use-window-dimension.tsx +0 -0
- /package/packages/ui/src/{components/sonner.tsx → sonner.ts} +0 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { type ClassValue, clsx } from "clsx";
|
|
2
|
+
import {
|
|
3
|
+
differenceInDays,
|
|
4
|
+
differenceInYears,
|
|
5
|
+
format,
|
|
6
|
+
formatDistance,
|
|
7
|
+
isThisWeek,
|
|
8
|
+
isToday,
|
|
9
|
+
isYesterday,
|
|
10
|
+
parseISO,
|
|
11
|
+
} from "date-fns";
|
|
12
|
+
import { twMerge } from "tailwind-merge";
|
|
13
|
+
|
|
14
|
+
export function cn(...inputs: ClassValue[]) {
|
|
15
|
+
return twMerge(clsx(inputs));
|
|
16
|
+
}
|
|
17
|
+
export class FormUtils {
|
|
18
|
+
static getFormData(object: Record<string, any>): FormData {
|
|
19
|
+
const formData = new FormData();
|
|
20
|
+
Object.entries(object).forEach(([key, value]) => {
|
|
21
|
+
if (value === undefined || value === null) return;
|
|
22
|
+
|
|
23
|
+
if (value instanceof Blob || value instanceof File) {
|
|
24
|
+
formData.append(key, value);
|
|
25
|
+
} else if (value instanceof FileList || (Array.isArray(value) && value[0] instanceof File)) {
|
|
26
|
+
Array.from(value as File[]).forEach(file => formData.append(key, file));
|
|
27
|
+
} else if (typeof value === "string") {
|
|
28
|
+
formData.append(key, value);
|
|
29
|
+
} else {
|
|
30
|
+
formData.append(key, JSON.stringify(value));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
return formData;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class UrlUtils {
|
|
38
|
+
static switchPath(pathname: string, tab: string): string {
|
|
39
|
+
const fragments = pathname.split("/").filter(Boolean);
|
|
40
|
+
fragments[2] = tab;
|
|
41
|
+
return `/${fragments.join("/")}`;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static isValidUrl(url: string): boolean {
|
|
45
|
+
try {
|
|
46
|
+
return new URL(url).origin !== "null";
|
|
47
|
+
} catch {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class DateUtils {
|
|
54
|
+
static getRelativeDate(date?: string | Date, includeTime = true): string {
|
|
55
|
+
if (!date) return "";
|
|
56
|
+
const d = new Date(date);
|
|
57
|
+
const now = new Date();
|
|
58
|
+
|
|
59
|
+
if (isToday(d)) return includeTime ? format(d, "h:mm a") : "today";
|
|
60
|
+
if (isYesterday(d)) return "yesterday";
|
|
61
|
+
if (isThisWeek(d) && differenceInDays(now, d) <= 7) return format(d, "EEEE");
|
|
62
|
+
|
|
63
|
+
return format(d, "dd/MM/yy");
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static getRelativeDateWithTime(date?: string | Date): string {
|
|
67
|
+
if (!date) return "";
|
|
68
|
+
return formatDistance(new Date(date), new Date(), { addSuffix: true });
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static getRelativeProDate(dateString: string): string {
|
|
72
|
+
try {
|
|
73
|
+
const date = parseISO(dateString);
|
|
74
|
+
const formatStr = differenceInYears(new Date(), date) >= 1 ? "dd MMM yyyy, h:mm a" : "dd MMM, h:mm a";
|
|
75
|
+
return format(date, formatStr);
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error("Error formatting date:", error);
|
|
78
|
+
return "";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export class FormatUtils {
|
|
84
|
+
static numberWithKMB(num: number): string {
|
|
85
|
+
return new Intl.NumberFormat("en-US", {
|
|
86
|
+
notation: "compact",
|
|
87
|
+
minimumSignificantDigits: 1,
|
|
88
|
+
maximumSignificantDigits: 3,
|
|
89
|
+
}).format(num);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static currencyToNumber(formattedCurrency: string): number {
|
|
93
|
+
const numericString = formattedCurrency.replace(/[^0-9.-]+/g, "");
|
|
94
|
+
const parsedNumber = Number.parseFloat(numericString);
|
|
95
|
+
if (isNaN(parsedNumber)) throw new Error("Invalid currency format");
|
|
96
|
+
return parsedNumber;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
static createLabels(e: string): string {
|
|
100
|
+
return e
|
|
101
|
+
.replaceAll("_", " ")
|
|
102
|
+
.replace(/\b\w/g, char => char.toUpperCase())
|
|
103
|
+
.trim();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export class ValidationUtils {
|
|
108
|
+
static isValidId(str: string): boolean {
|
|
109
|
+
return /^[a-f0-9]{24}$/i.test(str);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { cva, type VariantProps } from "class-variance-authority";
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "./tailwind.css";
|
|
4
|
+
@import "@fontsource-variable/inter";
|
|
5
|
+
@import "@fontsource-variable/eb-garamond";
|
|
6
|
+
|
|
7
|
+
@custom-variant dark (&:is(.dark *));
|
|
8
|
+
@source "../../../apps/**/*.{ts,tsx}";
|
|
9
|
+
@source "../../../components/**/*.{ts,tsx}";
|
|
10
|
+
@source "../**/*.{ts,tsx}";
|
|
11
|
+
|
|
12
|
+
/* =====================================================
|
|
13
|
+
🌞 LIGHT MODE (Base & Default Blue Theme)
|
|
14
|
+
===================================================== */
|
|
15
|
+
:root {
|
|
16
|
+
--background: oklch(1 0 0);
|
|
17
|
+
--foreground: oklch(0.145 0.008 326);
|
|
18
|
+
--card: oklch(1 0 0);
|
|
19
|
+
--card-foreground: oklch(0.145 0.008 326);
|
|
20
|
+
--popover: oklch(1 0 0);
|
|
21
|
+
--popover-foreground: oklch(0.145 0.008 326);
|
|
22
|
+
--secondary: oklch(0.967 0.001 286.375);
|
|
23
|
+
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
24
|
+
--muted: oklch(0.96 0.003 325.6);
|
|
25
|
+
--muted-foreground: oklch(0.542 0.034 322.5);
|
|
26
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
27
|
+
--border: oklch(0.922 0.005 325.62);
|
|
28
|
+
--input: oklch(0.922 0.005 325.62);
|
|
29
|
+
|
|
30
|
+
/* Default Theme: Blue */
|
|
31
|
+
--primary: oklch(0.52 0.105 223.128);
|
|
32
|
+
--primary-foreground: oklch(0.984 0.019 200.873);
|
|
33
|
+
--accent: oklch(0.96 0.003 325.6);
|
|
34
|
+
--accent-foreground: oklch(0.212 0.019 322.12);
|
|
35
|
+
--ring: oklch(0.711 0.019 323.02);
|
|
36
|
+
|
|
37
|
+
--chart-1: oklch(0.81 0.117 11.638);
|
|
38
|
+
--chart-2: oklch(0.645 0.246 16.439);
|
|
39
|
+
--chart-3: oklch(0.586 0.253 17.585);
|
|
40
|
+
--chart-4: oklch(0.514 0.222 16.935);
|
|
41
|
+
--chart-5: oklch(0.455 0.188 13.697);
|
|
42
|
+
--radius: 0.875rem;
|
|
43
|
+
|
|
44
|
+
--sidebar: oklch(0.985 0 0);
|
|
45
|
+
--sidebar-foreground: oklch(0.145 0.008 326);
|
|
46
|
+
--sidebar-primary: oklch(0.609 0.126 221.723);
|
|
47
|
+
--sidebar-primary-foreground: oklch(0.984 0.019 200.873);
|
|
48
|
+
--sidebar-accent: oklch(0.96 0.003 325.6);
|
|
49
|
+
--sidebar-accent-foreground: oklch(0.212 0.019 322.12);
|
|
50
|
+
--sidebar-border: oklch(0.922 0.005 325.62);
|
|
51
|
+
--sidebar-ring: oklch(0.711 0.019 323.02);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* =====================================================
|
|
55
|
+
🌑 DARK MODE (Base & Default Blue Theme)
|
|
56
|
+
===================================================== */
|
|
57
|
+
.dark {
|
|
58
|
+
--background: oklch(0.145 0.008 326);
|
|
59
|
+
--foreground: oklch(0.985 0 0);
|
|
60
|
+
--card: oklch(0.212 0.019 322.12);
|
|
61
|
+
--card-foreground: oklch(0.985 0 0);
|
|
62
|
+
--popover: oklch(0.212 0.019 322.12);
|
|
63
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
64
|
+
--secondary: oklch(0.274 0.006 286.033);
|
|
65
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
66
|
+
--muted: oklch(0.263 0.024 320.12);
|
|
67
|
+
--muted-foreground: oklch(0.711 0.019 323.02);
|
|
68
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
69
|
+
--border: oklch(1 0 0 / 10%);
|
|
70
|
+
--input: oklch(1 0 0 / 15%);
|
|
71
|
+
|
|
72
|
+
/* Default Theme: Blue */
|
|
73
|
+
--primary: oklch(0.45 0.085 224.283);
|
|
74
|
+
--primary-foreground: oklch(0.984 0.019 200.873);
|
|
75
|
+
--accent: oklch(0.263 0.024 320.12);
|
|
76
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
77
|
+
--ring: oklch(0.542 0.034 322.5);
|
|
78
|
+
|
|
79
|
+
--chart-1: oklch(0.81 0.117 11.638);
|
|
80
|
+
--chart-2: oklch(0.645 0.246 16.439);
|
|
81
|
+
--chart-3: oklch(0.586 0.253 17.585);
|
|
82
|
+
--chart-4: oklch(0.514 0.222 16.935);
|
|
83
|
+
--chart-5: oklch(0.455 0.188 13.697);
|
|
84
|
+
|
|
85
|
+
--sidebar: oklch(0.212 0.019 322.12);
|
|
86
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
87
|
+
--sidebar-primary: oklch(0.715 0.143 215.221);
|
|
88
|
+
--sidebar-primary-foreground: oklch(0.302 0.056 229.695);
|
|
89
|
+
--sidebar-accent: oklch(0.263 0.024 320.12);
|
|
90
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
91
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
92
|
+
--sidebar-ring: oklch(0.542 0.034 322.5);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* =====================================================
|
|
96
|
+
🎨 THEME VARIANTS (Overrides for both Light & Dark)
|
|
97
|
+
===================================================== */
|
|
98
|
+
|
|
99
|
+
[data-theme="orange"] {
|
|
100
|
+
--primary: #ea580c;
|
|
101
|
+
--primary-foreground: #ffffff;
|
|
102
|
+
--ring: #ea580c;
|
|
103
|
+
--accent: color-mix(in oklab, #ea580c 15%, transparent);
|
|
104
|
+
--accent-foreground: #ea580c;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[data-theme="purple"] {
|
|
108
|
+
--primary: #7c3aed;
|
|
109
|
+
--primary-foreground: #ffffff;
|
|
110
|
+
--ring: #7c3aed;
|
|
111
|
+
--accent: color-mix(in oklab, #7c3aed 15%, transparent);
|
|
112
|
+
--accent-foreground: #7c3aed;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
[data-theme="emerald"] {
|
|
116
|
+
--primary: #059669;
|
|
117
|
+
--primary-foreground: #ffffff;
|
|
118
|
+
--ring: #059669;
|
|
119
|
+
--accent: color-mix(in oklab, #059669 15%, transparent);
|
|
120
|
+
--accent-foreground: #059669;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[data-theme="rose"] {
|
|
124
|
+
--primary: #e11d48;
|
|
125
|
+
--primary-foreground: #ffffff;
|
|
126
|
+
--ring: #e11d48;
|
|
127
|
+
--accent: color-mix(in oklab, #e11d48 15%, transparent);
|
|
128
|
+
--accent-foreground: #e11d48;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-theme="amber"] {
|
|
132
|
+
--primary: #d97706;
|
|
133
|
+
--primary-foreground: #ffffff;
|
|
134
|
+
--ring: #d97706;
|
|
135
|
+
--accent: color-mix(in oklab, #d97706 15%, transparent);
|
|
136
|
+
--accent-foreground: #d97706;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[data-theme="brick"] {
|
|
140
|
+
--primary: #b91c1c;
|
|
141
|
+
--primary-foreground: #ffffff;
|
|
142
|
+
--ring: #b91c1c;
|
|
143
|
+
--accent: color-mix(in oklab, #b91c1c 15%, transparent);
|
|
144
|
+
--accent-foreground: #b91c1c;
|
|
145
|
+
}
|
|
146
|
+
[data-theme="blue"] {
|
|
147
|
+
--primary: #4169e1;
|
|
148
|
+
--primary-foreground: #ffffff;
|
|
149
|
+
--ring: #4169e1;
|
|
150
|
+
--accent: color-mix(in oklab, #4169e1 15%, transparent);
|
|
151
|
+
--accent-foreground: #4169e1;
|
|
152
|
+
}
|
|
153
|
+
[data-theme="rust"] {
|
|
154
|
+
--primary: #c2410c;
|
|
155
|
+
--primary-foreground: #ffffff;
|
|
156
|
+
--ring: #c2410c;
|
|
157
|
+
--accent: color-mix(in oklab, #c2410c 15%, transparent);
|
|
158
|
+
--accent-foreground: #c2410c;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[data-theme="cyan"] {
|
|
162
|
+
--primary: #0891b2;
|
|
163
|
+
--primary-foreground: #ffffff;
|
|
164
|
+
--ring: #0891b2;
|
|
165
|
+
--accent: color-mix(in oklab, #0891b2 15%, transparent);
|
|
166
|
+
--accent-foreground: #0891b2;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
[data-theme="indigo"] {
|
|
170
|
+
--primary: #4f46e5;
|
|
171
|
+
--primary-foreground: #ffffff;
|
|
172
|
+
--ring: #4f46e5;
|
|
173
|
+
--accent: color-mix(in oklab, #4f46e5 15%, transparent);
|
|
174
|
+
--accent-foreground: #4f46e5;
|
|
175
|
+
}
|
|
176
|
+
.dark[data-theme="indigo"] {
|
|
177
|
+
--primary: #6366f1;
|
|
178
|
+
--primary-foreground: #ffffff;
|
|
179
|
+
--ring: #6366f1;
|
|
180
|
+
--accent: color-mix(in oklab, #6366f1 20%, transparent);
|
|
181
|
+
--accent-foreground: #818cf8;
|
|
182
|
+
}
|
|
183
|
+
/* =====================================================
|
|
184
|
+
🛠️ TAILWIND V4 VARIABLE MAPPING
|
|
185
|
+
===================================================== */
|
|
186
|
+
@theme inline {
|
|
187
|
+
--color-background: var(--background);
|
|
188
|
+
--color-foreground: var(--foreground);
|
|
189
|
+
--color-card: var(--card);
|
|
190
|
+
--color-card-foreground: var(--card-foreground);
|
|
191
|
+
--color-popover: var(--popover);
|
|
192
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
193
|
+
--color-primary: var(--primary);
|
|
194
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
195
|
+
--color-secondary: var(--secondary);
|
|
196
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
197
|
+
--color-muted: var(--muted);
|
|
198
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
199
|
+
--color-accent: var(--accent);
|
|
200
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
201
|
+
--color-destructive: var(--destructive);
|
|
202
|
+
--color-border: var(--border);
|
|
203
|
+
--color-input: var(--input);
|
|
204
|
+
--color-ring: var(--ring);
|
|
205
|
+
|
|
206
|
+
--color-chart-1: var(--chart-1);
|
|
207
|
+
--color-chart-2: var(--chart-2);
|
|
208
|
+
--color-chart-3: var(--chart-3);
|
|
209
|
+
--color-chart-4: var(--chart-4);
|
|
210
|
+
--color-chart-5: var(--chart-5);
|
|
211
|
+
|
|
212
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
213
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
214
|
+
--radius-lg: var(--radius);
|
|
215
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
216
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
217
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
218
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
219
|
+
|
|
220
|
+
--color-sidebar: var(--sidebar);
|
|
221
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
222
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
223
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
224
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
225
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
226
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
227
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
228
|
+
|
|
229
|
+
--font-sans: "Inter Variable", sans-serif;
|
|
230
|
+
--font-heading: "EB Garamond Variable", serif;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* =====================================================
|
|
234
|
+
🧱 BASE STYLES & RESETS
|
|
235
|
+
===================================================== */
|
|
236
|
+
@layer base {
|
|
237
|
+
* {
|
|
238
|
+
@apply border-border outline-ring/50;
|
|
239
|
+
}
|
|
240
|
+
body {
|
|
241
|
+
@apply bg-background text-foreground;
|
|
242
|
+
}
|
|
243
|
+
button:not(:disabled),
|
|
244
|
+
[role="button"]:not(:disabled) {
|
|
245
|
+
cursor: pointer;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Autofill resets to prevent white backgrounds in dark mode */
|
|
249
|
+
input:-webkit-autofill,
|
|
250
|
+
input:-webkit-autofill:hover,
|
|
251
|
+
input:-webkit-autofill:focus,
|
|
252
|
+
input:-webkit-autofill:active,
|
|
253
|
+
textarea:-webkit-autofill,
|
|
254
|
+
textarea:-webkit-autofill:hover,
|
|
255
|
+
textarea:-webkit-autofill:focus,
|
|
256
|
+
textarea:-webkit-autofill:active {
|
|
257
|
+
-webkit-box-shadow: 0 0 0 1000px transparent inset !important;
|
|
258
|
+
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
259
|
+
-webkit-text-fill-color: var(--foreground) !important;
|
|
260
|
+
caret-color: var(--foreground) !important;
|
|
261
|
+
transition: background-color 9999s ease-in-out 0s !important;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.dark input:-webkit-autofill,
|
|
265
|
+
.dark input:-webkit-autofill:hover,
|
|
266
|
+
.dark input:-webkit-autofill:focus,
|
|
267
|
+
.dark input:-webkit-autofill:active,
|
|
268
|
+
.dark textarea:-webkit-autofill,
|
|
269
|
+
.dark textarea:-webkit-autofill:hover,
|
|
270
|
+
.dark textarea:-webkit-autofill:focus,
|
|
271
|
+
.dark textarea:-webkit-autofill:active {
|
|
272
|
+
-webkit-text-fill-color: var(--foreground) !important;
|
|
273
|
+
caret-color: var(--foreground) !important;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/* =====================================================
|
|
278
|
+
✨ ANIMATED BORDER UTILITY
|
|
279
|
+
===================================================== */
|
|
280
|
+
@property --qc-border-angle {
|
|
281
|
+
syntax: "<angle>";
|
|
282
|
+
initial-value: 0deg;
|
|
283
|
+
inherits: false;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@keyframes qc-border-spin {
|
|
287
|
+
to {
|
|
288
|
+
--qc-border-angle: 360deg;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.qc-animated-border {
|
|
293
|
+
position: relative;
|
|
294
|
+
border: 1px solid var(--border);
|
|
295
|
+
background:
|
|
296
|
+
linear-gradient(var(--card), var(--card)) padding-box,
|
|
297
|
+
conic-gradient(
|
|
298
|
+
from var(--qc-border-angle),
|
|
299
|
+
transparent 0deg,
|
|
300
|
+
transparent 300deg,
|
|
301
|
+
var(--primary) 330deg,
|
|
302
|
+
transparent 360deg
|
|
303
|
+
)
|
|
304
|
+
border-box;
|
|
305
|
+
background-clip: padding-box, border-box;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.qc-animated-border:hover {
|
|
309
|
+
border-color: transparent;
|
|
310
|
+
animation: qc-border-spin 4.8s linear infinite;
|
|
311
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
@keyframes accordion-down {
|
|
3
|
+
from {
|
|
4
|
+
height: 0;
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
height: var(--radix-accordion-content-height, var(--accordion-panel-height, auto));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes accordion-up {
|
|
12
|
+
from {
|
|
13
|
+
height: var(--radix-accordion-content-height, var(--accordion-panel-height, auto));
|
|
14
|
+
}
|
|
15
|
+
to {
|
|
16
|
+
height: 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Custom variants */
|
|
22
|
+
@custom-variant data-open {
|
|
23
|
+
&:where([data-state="open"]),
|
|
24
|
+
&:where([data-open]:not([data-open="false"])) {
|
|
25
|
+
@slot;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@custom-variant data-closed {
|
|
30
|
+
&:where([data-state="closed"]),
|
|
31
|
+
&:where([data-closed]:not([data-closed="false"])) {
|
|
32
|
+
@slot;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@custom-variant data-checked {
|
|
37
|
+
&:where([data-state="checked"]),
|
|
38
|
+
&:where([data-checked]:not([data-checked="false"])) {
|
|
39
|
+
@slot;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@custom-variant data-unchecked {
|
|
44
|
+
&:where([data-state="unchecked"]),
|
|
45
|
+
&:where([data-unchecked]:not([data-unchecked="false"])) {
|
|
46
|
+
@slot;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@custom-variant data-selected {
|
|
51
|
+
&:where([data-selected="true"]) {
|
|
52
|
+
@slot;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@custom-variant data-disabled {
|
|
57
|
+
&:where([data-disabled="true"]),
|
|
58
|
+
&:where([data-disabled]:not([data-disabled="false"])) {
|
|
59
|
+
@slot;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@custom-variant data-active {
|
|
64
|
+
&:where([data-state="active"]),
|
|
65
|
+
&:where([data-active]:not([data-active="false"])) {
|
|
66
|
+
@slot;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@custom-variant data-horizontal {
|
|
71
|
+
&:where([data-orientation="horizontal"]) {
|
|
72
|
+
@slot;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@custom-variant data-vertical {
|
|
77
|
+
&:where([data-orientation="vertical"]) {
|
|
78
|
+
@slot;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@utility no-scrollbar {
|
|
83
|
+
-ms-overflow-style: none;
|
|
84
|
+
scrollbar-width: none;
|
|
85
|
+
|
|
86
|
+
&::-webkit-scrollbar {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -2,17 +2,15 @@
|
|
|
2
2
|
"extends": "typescript-config/tsconfig.frontend.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"strict": true,
|
|
5
|
-
"
|
|
5
|
+
"skipLibCheck": true,
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
"noEmit": true,
|
|
8
|
+
// "baseUrl": ".",
|
|
6
9
|
"paths": {
|
|
7
|
-
"
|
|
10
|
+
"@repo/ui/*": ["./src/*"]
|
|
8
11
|
}
|
|
9
12
|
},
|
|
10
13
|
|
|
11
|
-
"include": [
|
|
12
|
-
|
|
13
|
-
"tailwind.config.ts",
|
|
14
|
-
"stylelint.config.mjs",
|
|
15
|
-
"eslint.config.ts",
|
|
16
|
-
"postcss.config.mjs"
|
|
17
|
-
]
|
|
14
|
+
"include": ["."],
|
|
15
|
+
"exclude": ["node_modules", "dist"]
|
|
18
16
|
}
|
package/pnpm-workspace.yaml
CHANGED
|
@@ -6,92 +6,102 @@ packages:
|
|
|
6
6
|
|
|
7
7
|
catalog:
|
|
8
8
|
# configs
|
|
9
|
-
typescript: ^5.9.2
|
|
10
|
-
eslint: ^9.39.2
|
|
11
|
-
tsdown: ^0.20.1
|
|
12
|
-
unrun: ^0.2.27
|
|
13
|
-
vite: ^
|
|
14
|
-
rimraf: ^6.1.2
|
|
15
|
-
turbo: ^2.
|
|
16
|
-
tsx: ^4.21.0
|
|
9
|
+
typescript: "^5.9.2"
|
|
10
|
+
eslint: "^9.39.2"
|
|
11
|
+
tsdown: "^0.20.1"
|
|
12
|
+
unrun: "^0.2.27"
|
|
13
|
+
vite: "^8.0.0"
|
|
14
|
+
rimraf: "^6.1.2"
|
|
15
|
+
turbo: "^2.9.14"
|
|
16
|
+
tsx: "^4.21.0"
|
|
17
17
|
|
|
18
18
|
# utils
|
|
19
|
-
"@biomejs/biome": ^2.3.13
|
|
20
|
-
prettier: ^3.8.1
|
|
21
|
-
zod: ^4.3.6
|
|
22
|
-
"@vinejs/vine": ^4.3.0
|
|
23
|
-
axios: ^1.13.6
|
|
24
|
-
date-fns: ^4.1.0
|
|
25
|
-
nanoid: ^5.1.6
|
|
26
|
-
xlsx: ^0.18.5
|
|
27
|
-
|
|
19
|
+
"@biomejs/biome": "^2.3.13"
|
|
20
|
+
prettier: "^3.8.1"
|
|
21
|
+
zod: "^4.3.6"
|
|
22
|
+
"@vinejs/vine": "^4.3.0"
|
|
23
|
+
axios: "^1.13.6"
|
|
24
|
+
date-fns: "^4.1.0"
|
|
25
|
+
nanoid: "^5.1.6"
|
|
26
|
+
xlsx: "^0.18.5"
|
|
28
27
|
# testing
|
|
29
|
-
vitest: ^4.0.18
|
|
30
|
-
"@vitest/coverage-v8": ^4.0.18
|
|
28
|
+
vitest: "^4.0.18"
|
|
29
|
+
"@vitest/coverage-v8": "^4.0.18"
|
|
31
30
|
|
|
32
31
|
# types
|
|
33
|
-
"@types/node": ^25.1.0
|
|
32
|
+
"@types/node": "^25.1.0"
|
|
34
33
|
|
|
35
34
|
# frontend
|
|
36
|
-
|
|
37
|
-
react
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
react-
|
|
41
|
-
"@react-
|
|
42
|
-
"@react-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
isbot: "^5.1.36"
|
|
36
|
+
react: "^19.2.4"
|
|
37
|
+
react-dom: "^19.2.4"
|
|
38
|
+
react-router: "^7.14.0"
|
|
39
|
+
"@react-router/node": "^7.14.0"
|
|
40
|
+
"@react-router/serve": "^7.14.0"
|
|
41
|
+
"@react-router/dev": "^7.14.0"
|
|
42
|
+
lucide-react: "^0.563.0"
|
|
43
|
+
tailwindcss: "^4.2.2"
|
|
44
|
+
"@tailwindcss/vite": "^4.2.2"
|
|
45
|
+
|
|
46
|
+
# email
|
|
47
|
+
react-email: "^5.2.11"
|
|
48
|
+
"@react-email/preview-server": "^5.2.11"
|
|
49
|
+
"@react-email/components": "^1.0.8"
|
|
50
|
+
"@react-email/tailwind": "^2.0.5"
|
|
51
|
+
"@react-email/render": "^2.0.4"
|
|
52
|
+
|
|
53
|
+
# ui
|
|
54
|
+
"@tanstack/react-query": "^5.100.9"
|
|
55
|
+
"@tanstack/react-query-devtools": "^5.100.9"
|
|
45
56
|
|
|
46
57
|
# frontend types
|
|
47
|
-
"@types/react": ^19.2.4
|
|
48
|
-
"@types/react-dom": ^19.2.3
|
|
58
|
+
"@types/react": "^19.2.4"
|
|
59
|
+
"@types/react-dom": "^19.2.3"
|
|
49
60
|
|
|
50
61
|
# backend
|
|
51
|
-
express: ^5.2.1
|
|
52
|
-
cors: ^2.7.6
|
|
53
|
-
cookie-parser: ^1.4.7
|
|
54
|
-
country-state-city: ^3.2.1
|
|
55
|
-
express-fileupload: ^1.5.2
|
|
56
|
-
express-list-endpoints: ^7.1.1
|
|
57
|
-
morgan: ^1.10.0
|
|
62
|
+
express: "^5.2.1"
|
|
63
|
+
cors: "^2.7.6"
|
|
64
|
+
cookie-parser: "^1.4.7"
|
|
65
|
+
country-state-city: "^3.2.1"
|
|
66
|
+
express-fileupload: "^1.5.2"
|
|
67
|
+
express-list-endpoints: "^7.1.1"
|
|
68
|
+
morgan: "^1.10.0"
|
|
58
69
|
|
|
59
70
|
# backend types
|
|
60
|
-
"@types/express": ^5.0.6
|
|
61
|
-
"@types/cors": ^2.8.19
|
|
62
|
-
"@types/cookie-parser": ^1.4.10
|
|
63
|
-
"@types/express-fileupload": ^1.5.1
|
|
64
|
-
"@types/morgan": ^1.9.10
|
|
71
|
+
"@types/express": "^5.0.6"
|
|
72
|
+
"@types/cors": "^2.8.19"
|
|
73
|
+
"@types/cookie-parser": "^1.4.10"
|
|
74
|
+
"@types/express-fileupload": "^1.5.1"
|
|
75
|
+
"@types/morgan": "^1.9.10"
|
|
65
76
|
|
|
66
77
|
# db
|
|
67
|
-
drizzle-orm: ^0.45.1
|
|
68
|
-
drizzle-kit: ^0.31.10
|
|
69
|
-
pg: ^8.19.0
|
|
70
|
-
better-sqlite3: ^12.9.0
|
|
78
|
+
drizzle-orm: "^0.45.1"
|
|
79
|
+
drizzle-kit: "^0.31.10"
|
|
80
|
+
pg: "^8.19.0"
|
|
81
|
+
better-sqlite3: "^12.9.0"
|
|
71
82
|
|
|
72
83
|
# db types
|
|
73
|
-
"@types/pg": ^8.10.0
|
|
74
|
-
"@types/better-sqlite3": ^7.6.13
|
|
84
|
+
"@types/pg": "^8.10.0"
|
|
85
|
+
"@types/better-sqlite3": "^7.6.13"
|
|
75
86
|
|
|
76
87
|
# lib
|
|
77
|
-
"@aws-sdk/client-s3": ^3.
|
|
78
|
-
bcryptjs: ^3.0.3
|
|
79
|
-
nodemailer: ^8.0.1
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
winston: ^
|
|
84
|
-
|
|
85
|
-
jsonwebtoken: ^9.0.3
|
|
88
|
+
"@aws-sdk/client-s3": "^3.1045.0"
|
|
89
|
+
bcryptjs: "^3.0.3"
|
|
90
|
+
nodemailer: "^8.0.1"
|
|
91
|
+
"@dotenvx/dotenvx": "^1.64.0"
|
|
92
|
+
firebase-admin: "^13.9.0"
|
|
93
|
+
winston: "^3.19.0"
|
|
94
|
+
winston-daily-rotate-file: "^5.0.0"
|
|
95
|
+
jsonwebtoken: "^9.0.3"
|
|
86
96
|
|
|
87
97
|
# aix
|
|
88
|
-
js-tiktoken: ^1.0.21
|
|
89
|
-
quickjs-emscripten: ^0.32.0
|
|
90
|
-
quicktype-core: ^23.2.6
|
|
91
|
-
openai: ^6.34.0
|
|
98
|
+
js-tiktoken: "^1.0.21"
|
|
99
|
+
quickjs-emscripten: "^0.32.0"
|
|
100
|
+
quicktype-core: "^23.2.6"
|
|
101
|
+
openai: "^6.34.0"
|
|
92
102
|
|
|
93
103
|
# bullmq
|
|
94
|
-
bullmq: ^5.76.4
|
|
104
|
+
bullmq: "^5.76.4"
|
|
95
105
|
|
|
96
106
|
# redis
|
|
97
|
-
ioredis: ^5.10.1
|
|
107
|
+
ioredis: "^5.10.1"
|