additional exports

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-05-23 08:32:33 +02:00
parent e50fc62ee7
commit 5f04d472ce
16 changed files with 5844 additions and 32 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ applyTo: "launch.py, webui.py, installer.py, modules/**/*.py, pipelines/**/*.py,
5. Keep extension and script loading resilient: when adding startup scans/hooks, preserve partial-failure tolerance and logging.
6. Follow existing API/server patterns under `modules/api/` and reuse shared queue/state helpers rather than ad-hoc request handling.
7. Reuse established model-loading and pipeline patterns (`modules/sd_*`, `pipelines/`) instead of creating parallel abstractions.
8. For substantial Python changes, run at least relevant checks: `npm run ruff` and `npm run pylint` (or narrower equivalents when appropriate).
8. For substantial Python changes, run at least relevant checks: `pnpm run ruff` and `pnpm run pylint` (or narrower equivalents when appropriate).
## Build And Test
+23 -19
View File
@@ -14,7 +14,7 @@ If rules conflict, prioritize earlier rules over later ones unless explicitly st
3. Keep localization-friendly UI text changes synchronized with locale resources in `ui/locale/locale_*.json` when user-facing strings are added or changed. For dynamically generated UI text, ensure that localization keys are pre-defined and referenced appropriately in the codebase.
4. Avoid combining visual changes that do not directly support the functional fixes being implemented; ensure UI PRs are scoped to a single purpose and remain reviewable.
5. For extension UI work, respect each extension's boundaries and avoid cross-extension coupling.
6. Validate TypeScript and JavaScript changes with `npm run eslint` and `npm run tsc` from the repository root, or the equivalent extension-level command when working inside an extension.
6. Validate TypeScript and JavaScript changes with `pnpm run eslint` and `pnpm run tsc` from the repository root, or the equivalent extension-level command when working inside an extension.
7. Maintain mobile compatibility when touching layout or interaction behavior.
## UI code locations
@@ -31,37 +31,41 @@ If rules conflict, prioritize earlier rules over later ones unless explicitly st
## Build and development commands
Ensure `pnpm` is installed:
- `npm install -g pnpm`
Install dependencies from the repository root:
- `npm install`
- `pnpm install`
Build UI components:
- `npm run build:core` - build the core UI
- `npm run build:modernui` - build ModernUI
- `npm run build:kanvas` - build Kanvas
- `npm run build` - build all UI components
- `pnpm run build:core` - build the core UI
- `pnpm run build:modernui` - build ModernUI
- `pnpm run build:kanvas` - build Kanvas
- `pnpm run build` - build all UI components
Run development builds with watch mode:
- `npm run dev:core` - development build for core UI
- `npm run dev:modernui` - development build for ModernUI
- `npm run dev:kanvas` - development build for Kanvas
- `pnpm run dev:core` - development build for core UI
- `pnpm run dev:modernui` - development build for ModernUI
- `pnpm run dev:kanvas` - development build for Kanvas
## Lint and validation
UI checks are required for all frontend contributions:
- `npm run eslint:core` - lint core UI files
- `npm run eslint:modernui` - lint ModernUI files
- `npm run eslint:kanvas` - lint Kanvas files
- `npm run eslint` - lint all UI code
- `npm run tsc:core` - type-check core UI files
- `npm run tsc:modernui` - type-check ModernUI files
- `npm run tsc:kanvas` - type-check Kanvas files
- `npm run tsc` - type-check all UI code
- `npm run precommit` - run pre-commit checks across the repository
- `npm run ui` - run full UI lint/type/build sequence
- `pnpm run eslint:core` - lint core UI files
- `pnpm run eslint:modernui` - lint ModernUI files
- `pnpm run eslint:kanvas` - lint Kanvas files
- `pnpm run eslint` - lint all UI code
- `pnpm run tsc:core` - type-check core UI files
- `pnpm run tsc:modernui` - type-check ModernUI files
- `pnpm run tsc:kanvas` - type-check Kanvas files
- `pnpm run tsc` - type-check all UI code
- `pnpm run precommit` - run pre-commit checks across the repository
- `pnpm run ui` - run full UI lint/type/build sequence
## Notes