mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 10:34:06 +02:00
## Move editor under `frontend/editor/`
Pure restructure: `frontend/` becomes the workspace, `frontend/editor/`
holds
the PDF editor. 1775 file renames + 40 wiring edits. No logic changes.
### Why
`frontend/` is currently the editor — its `src/`, `public/`,
`src-tauri/`,
config files all sit at the root. Promoting `frontend/` to a
workspace and putting the editor in a sibling folder leaves room for
future
apps to drop in alongside it, sharing one `package.json` /
`node_modules` /
lint config / Storybook.
### What moves
frontend/
├── editor/ ← NEW: everything editor-specific
│ ├── src/ ← was frontend/src/
│ ├── public/ ← was frontend/public/
│ ├── src-tauri/ ← was frontend/src-tauri/
│ ├── index.html, vite.config.ts, vitest.config.ts, playwright.config.ts
│ ├── tsconfig*.json, tailwind.config.js, postcss.config.js
│ ├── scripts/
│ ├── .env, .env.desktop, .env.saas
│ └── DeveloperGuide.md
├── package.json, package-lock.json, node_modules/ ← workspace install
├── eslint.config.mjs, .prettierrc, .prettierignore ← shared tooling
├── .gitignore
└── README.md
### Wiring edits (40 files)
- `.taskfiles/frontend.yml`, `desktop.yml`, `e2e.yml`
- `build.gradle`, `app/core/build.gradle`
- `eslint.config.mjs`, `frontend/package.json`, `.gitignore`,
`.prettierignore`
- `docker/frontend/Dockerfile`
- 8 `.github/workflows/*.yml`, plus `.github/dependabot.yml`,
`.github/config/.files.yaml`, `.github/labeler-config-srvaroa.yml`
- `scripts/translations/**`
- Docs: `AGENTS.md`, `CLAUDE.md`, `ADDING_TOOLS.md`,
`DeveloperGuide.md`,
`WINDOWS_SIGNING.md`, `devGuide/HowToAddNewLanguage.md`,
`frontend/README.md`,
`frontend/editor/DeveloperGuide.md`
Plus 3 renamed + edited: `editor/vite.config.ts` (env path +
node_modules
walk-up), `editor/scripts/setup-env.mts` (renamed from `.ts` for
`import.meta.url`), `editor/scripts/build-provisioner.mjs` (resolve
src-tauri
relative to script).
### Verification
| Check | Result |
|---|---|
| `task frontend:typecheck:all` (6 variants) | exit 0 |
| `task frontend:lint` (eslint + dpdm) | exit 0 |
| `task frontend:format:check` | exit 0 |
| `task frontend:test` | 657 tests pass, 50 files |
| `task frontend:build:{core,proprietary,saas,desktop,prototypes}` | all
green |
| `task desktop:build` | full Tauri pipeline →
`Stirling-PDF_2.11.0_x64_en-US.msi` |
| `playwright test --list --project=stubbed` | 172 tests discovered |
`task desktop:build` exercises the heaviest path — Rust + WiX + MSI
bundle
against the moved `editor/src-tauri/`. If anything in the restructure
was
wrong it wouldn't have built.
### Test plan
- [ ] `frontend-validation.yml` green
- [ ] `e2e-stubbed.yml` green
- [ ] `tauri-build.yml` green on at least one platform
- [ ] `check_toml.yml` runs on a translation-touching PR
---------
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
82 lines
2.8 KiB
JavaScript
82 lines
2.8 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
|
darkMode: ["class", '[data-mantine-color-scheme="dark"]'],
|
|
theme: {
|
|
extend: {
|
|
// Use standard Tailwind color system with CSS variables for theme switching
|
|
colors: {
|
|
// Override gray to work with both themes
|
|
gray: {
|
|
50: "rgb(var(--gray-50) / <alpha-value>)",
|
|
100: "rgb(var(--gray-100) / <alpha-value>)",
|
|
200: "rgb(var(--gray-200) / <alpha-value>)",
|
|
300: "rgb(var(--gray-300) / <alpha-value>)",
|
|
400: "rgb(var(--gray-400) / <alpha-value>)",
|
|
500: "rgb(var(--gray-500) / <alpha-value>)",
|
|
600: "rgb(var(--gray-600) / <alpha-value>)",
|
|
700: "rgb(var(--gray-700) / <alpha-value>)",
|
|
800: "rgb(var(--gray-800) / <alpha-value>)",
|
|
900: "rgb(var(--gray-900) / <alpha-value>)",
|
|
},
|
|
green: {
|
|
50: "var(--color-green-50)",
|
|
100: "var(--color-green-100)",
|
|
200: "var(--color-green-200)",
|
|
300: "var(--color-green-300)",
|
|
400: "var(--color-green-400)",
|
|
500: "var(--color-green-500)",
|
|
600: "var(--color-green-600)",
|
|
700: "var(--color-green-700)",
|
|
800: "var(--color-green-800)",
|
|
900: "var(--color-green-900)",
|
|
},
|
|
yellow: {
|
|
50: "var(--color-yellow-50)",
|
|
100: "var(--color-yellow-100)",
|
|
200: "var(--color-yellow-200)",
|
|
300: "var(--color-yellow-300)",
|
|
400: "var(--color-yellow-400)",
|
|
500: "var(--color-yellow-500)",
|
|
600: "var(--color-yellow-600)",
|
|
700: "var(--color-yellow-700)",
|
|
800: "var(--color-yellow-800)",
|
|
900: "var(--color-yellow-900)",
|
|
},
|
|
red: {
|
|
50: "var(--color-red-50)",
|
|
100: "var(--color-red-100)",
|
|
200: "var(--color-red-200)",
|
|
300: "var(--color-red-300)",
|
|
400: "var(--color-red-400)",
|
|
500: "var(--color-red-500)",
|
|
600: "var(--color-red-600)",
|
|
700: "var(--color-red-700)",
|
|
800: "var(--color-red-800)",
|
|
900: "var(--color-red-900)",
|
|
},
|
|
// Custom semantic colors for app-specific usage
|
|
surface: "rgb(var(--surface) / <alpha-value>)",
|
|
background: "rgb(var(--background) / <alpha-value>)",
|
|
border: "rgb(var(--border) / <alpha-value>)",
|
|
},
|
|
|
|
// Z-index scale
|
|
zIndex: {
|
|
dropdown: "1000",
|
|
sticky: "1020",
|
|
fixed: "1030",
|
|
"modal-backdrop": "1040",
|
|
modal: "1050",
|
|
popover: "1060",
|
|
tooltip: "1070",
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
// Enable preflight for standard Tailwind functionality
|
|
corePlugins: {
|
|
preflight: true,
|
|
},
|
|
};
|