Skip to content

feat: Use @openshock/svelte-core shared JS library#222

Open
hhvrc wants to merge 1 commit into
developfrom
feat/use-svelte-core
Open

feat: Use @openshock/svelte-core shared JS library#222
hhvrc wants to merge 1 commit into
developfrom
feat/use-svelte-core

Conversation

@hhvrc

@hhvrc hhvrc commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Migrate the frontend onto the shared @openshock/svelte-core library:

  • shadcn-svelte ui/ now imported via the $hadcn alias; local ui/ tree removed
  • shared components (Code, Keyboard, metadata, svg, datetime-picker, dialog-manager, input fields, etc.) and modules (cn, pure utils, type guards, validators, shared types, is-mobile, pwned-passwords) now from $core; local copies deleted
  • LightSwitch and PasswordInput rewired to the library's decoupled APIs (injected color-scheme; forgotHref/onPwnedCheckError)
  • design-system theme via @import '@openshock/svelte-core/theme.css'
  • add $core and $hadcn aliases pointing at the package's dist

App-coupled code (ControlModules, shares, Turnstile, errorGuards, usernameValidator, etc.) stays local.


Open in Stage

…heme

Migrate the frontend onto the shared @openshock/svelte-core library:
- shadcn-svelte ui/ now imported via the $hadcn alias; local ui/ tree removed
- shared components (Code, Keyboard, metadata, svg, datetime-picker,
  dialog-manager, input fields, etc.) and modules (cn, pure utils, type guards,
  validators, shared types, is-mobile, pwned-passwords) now from $core; local
  copies deleted
- LightSwitch and PasswordInput rewired to the library's decoupled APIs
  (injected color-scheme; forgotHref/onPwnedCheckError)
- design-system theme via @import '@openshock/svelte-core/theme.css'
- add $core and $hadcn aliases pointing at the package's dist

App-coupled code (ControlModules, shares, Turnstile, errorGuards,
usernameValidator, etc.) stays local.
@hhvrc hhvrc self-assigned this Jun 25, 2026
@stage-review

stage-review Bot commented Jun 25, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant