mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 03:20:46 +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]>
84 lines
3.8 KiB
XML
84 lines
3.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
|
<Fragment>
|
|
<Property Id="STIRLING_SERVER_URL" Secure="yes" />
|
|
<Property Id="STIRLING_LOCK_CONNECTION" Secure="yes" />
|
|
|
|
<DirectoryRef Id="TARGETDIR">
|
|
<Directory Id="AppDataFolder" />
|
|
<Directory Id="CommonAppDataFolder" />
|
|
</DirectoryRef>
|
|
|
|
<DirectoryRef Id="INSTALLDIR">
|
|
<Component Id="ProvisionerBinaryComponent" Guid="*">
|
|
<File Id="ProvisionerExe" Source="$(sys.SOURCEFILEDIR)stirling-provision.exe" KeyPath="yes" />
|
|
</Component>
|
|
<Component Id="ThumbnailHandlerDllComponent" Guid="*">
|
|
<File Id="ThumbnailHandlerDll" Source="$(sys.SOURCEFILEDIR)stirling_thumbnail_handler.dll" KeyPath="yes" />
|
|
</Component>
|
|
</DirectoryRef>
|
|
|
|
<!-- PDF Thumbnail Handler COM registration -->
|
|
<DirectoryRef Id="TARGETDIR">
|
|
<Component Id="ThumbnailHandlerClsidComponent" Guid="*">
|
|
<RegistryKey Root="HKLM" Key="SOFTWARE\Classes\CLSID\{2D2FBE3A-9A88-4308-A52E-7EF63CA7CF48}">
|
|
<RegistryValue Type="string" Value="Stirling-PDF Thumbnail Handler" KeyPath="yes" />
|
|
</RegistryKey>
|
|
<RegistryKey Root="HKLM" Key="SOFTWARE\Classes\CLSID\{2D2FBE3A-9A88-4308-A52E-7EF63CA7CF48}\InprocServer32">
|
|
<RegistryValue Type="string" Value="[INSTALLDIR]stirling_thumbnail_handler.dll" />
|
|
<RegistryValue Type="string" Name="ThreadingModel" Value="Apartment" />
|
|
</RegistryKey>
|
|
</Component>
|
|
<Component Id="ThumbnailHandlerShellexComponent" Guid="*">
|
|
<RegistryKey Root="HKLM" Key="SOFTWARE\Classes\.pdf\shellex\{E357FCCD-A995-4576-B01F-234630154E96}">
|
|
<RegistryValue Type="string" Value="{2D2FBE3A-9A88-4308-A52E-7EF63CA7CF48}" KeyPath="yes" />
|
|
</RegistryKey>
|
|
</Component>
|
|
</DirectoryRef>
|
|
|
|
<ComponentGroup Id="ProvisioningComponentGroup">
|
|
<ComponentRef Id="ProvisionerBinaryComponent" />
|
|
<ComponentRef Id="ThumbnailHandlerDllComponent" />
|
|
<ComponentRef Id="ThumbnailHandlerClsidComponent" />
|
|
<ComponentRef Id="ThumbnailHandlerShellexComponent" />
|
|
</ComponentGroup>
|
|
|
|
<CustomAction
|
|
Id="WriteProvisioningFilePerUser"
|
|
FileKey="ProvisionerExe"
|
|
Execute="deferred"
|
|
Impersonate="yes"
|
|
Return="check"
|
|
ExeCommand="[WriteProvisioningFilePerUser]"
|
|
/>
|
|
|
|
<CustomAction
|
|
Id="WriteProvisioningFileAllUsers"
|
|
FileKey="ProvisionerExe"
|
|
Execute="deferred"
|
|
Impersonate="no"
|
|
Return="check"
|
|
ExeCommand="[WriteProvisioningFileAllUsers]"
|
|
/>
|
|
|
|
<CustomAction
|
|
Id="SetWriteProvisioningFilePerUser"
|
|
Property="WriteProvisioningFilePerUser"
|
|
Value="--output "[AppDataFolder]Stirling-PDF\stirling-provisioning.json" --url "[STIRLING_SERVER_URL]" --lock "[STIRLING_LOCK_CONNECTION]""
|
|
/>
|
|
|
|
<CustomAction
|
|
Id="SetWriteProvisioningFileAllUsers"
|
|
Property="WriteProvisioningFileAllUsers"
|
|
Value="--output "[CommonAppDataFolder]Stirling-PDF\stirling-provisioning.json" --url "[STIRLING_SERVER_URL]" --lock "[STIRLING_LOCK_CONNECTION]""
|
|
/>
|
|
|
|
<InstallExecuteSequence>
|
|
<Custom Action="SetWriteProvisioningFilePerUser" After="InstallFiles">STIRLING_SERVER_URL <> "" AND (NOT ALLUSERS OR ALLUSERS=0)</Custom>
|
|
<Custom Action="WriteProvisioningFilePerUser" After="SetWriteProvisioningFilePerUser">STIRLING_SERVER_URL <> "" AND (NOT ALLUSERS OR ALLUSERS=0)</Custom>
|
|
<Custom Action="SetWriteProvisioningFileAllUsers" After="InstallFiles">STIRLING_SERVER_URL <> "" AND (ALLUSERS=1 OR ALLUSERS=2)</Custom>
|
|
<Custom Action="WriteProvisioningFileAllUsers" After="SetWriteProvisioningFileAllUsers">STIRLING_SERVER_URL <> "" AND (ALLUSERS=1 OR ALLUSERS=2)</Custom>
|
|
</InstallExecuteSequence>
|
|
</Fragment>
|
|
</Wix>
|