Restructure the repo into a pnpm + Turborepo monorepo: - apps/web: Nuxt 4 site, now server-rendered and reading all content from the API; pages cached with SWR and purged on content changes - apps/api: NestJS 12 + Prisma 7 + PostgreSQL. Auth with short-lived access tokens and rotating httpOnly refresh cookies, roles (ADMIN, EDITOR), catalog, editable site sections, media upload to S3-compatible storage (converted to WebP), contact messages, audit log - apps/admin: Vue 3 admin panel (Ant Design Vue, Pinia, Tailwind) for products, categories, site sections, messages, media and users - packages/shared: Zod schemas and types shared by API and admin Also: - seed script that loads the original 8 categories / 89 products and section content - Docker images for api (with a one-off migrate service), web, admin, and an nginx gateway for both domains - dev and production compose files, daily database backup service - API e2e tests Removes the committed static out/ build and the old root Dockerfile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
import { theme } from "ant-design-vue";
|
|
import type { ThemeConfig } from "ant-design-vue/es/config-provider/context";
|
|
|
|
/**
|
|
* Design-system palette — mirrors the Tailwind `@theme` tokens in assets/css/main.css.
|
|
* Keep both in sync: Tailwind drives layout/sections, Ant Design drives form controls.
|
|
*/
|
|
export const palette = {
|
|
bg: "#0b1224",
|
|
panel: "#101a32",
|
|
panel2: "#152040",
|
|
ink: "#edede6",
|
|
muted: "#8e9ab0",
|
|
accent: "#ff5a00",
|
|
accentSoft: "#ff7a2a",
|
|
hazard: "#ffb800",
|
|
line: "#1e2d4d",
|
|
success: "#34d399", // tailwind emerald-400
|
|
} as const;
|
|
|
|
export const antdTheme: ThemeConfig = {
|
|
algorithm: theme.darkAlgorithm,
|
|
token: {
|
|
colorPrimary: palette.accent,
|
|
colorInfo: palette.accent,
|
|
colorWarning: palette.hazard,
|
|
colorSuccess: palette.success,
|
|
colorBgBase: palette.bg,
|
|
colorBgContainer: palette.bg,
|
|
colorBgElevated: palette.panel,
|
|
colorBorder: palette.line,
|
|
colorBorderSecondary: palette.line,
|
|
colorText: palette.ink,
|
|
colorTextDescription: palette.muted,
|
|
colorTextPlaceholder: "rgba(142, 154, 176, 0.5)",
|
|
colorTextLightSolid: palette.bg,
|
|
fontFamily: "var(--font-sans)",
|
|
fontSize: 14,
|
|
borderRadius: 8,
|
|
controlOutlineWidth: 0,
|
|
motionDurationMid: "0.15s",
|
|
wireframe: false,
|
|
},
|
|
};
|