Sync shared snapshot from 8107752
This commit is contained in:
1 parent
88d1f77d30
commit
78f2b76ea8
3 files changed
+4
-6
No files matched your search
Generated
-4
@@ -38,10 +38,6 @@
|
|||||||
"name": "@gabriel20xx/web-ui",
|
"name": "@gabriel20xx/web-ui",
|
||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
|
||||||
"@gabriel20xx/design-tokens": "0.1.1",
|
|
||||||
"@lucide/svelte": "1.28.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/package": "^2.5.0",
|
"@sveltejs/package": "^2.5.0",
|
||||||
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
||||||
|
|||||||
@@ -196,11 +196,14 @@ The Node and Python packages intentionally expose the same infrastructure concep
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The shared profile menu exposes Profile, Settings, About, and Log out. It uses the `About` navigation item's href automatically; pass `aboutHref` or `onAbout` to `AppShell` when a project uses a custom About destination or dialog.
|
||||||
|
|
||||||
For authentication, use the same shell with `AuthPage` and connect the callbacks to the application's existing auth service:
|
For authentication, use the same shell with `AuthPage` and connect the callbacks to the application's existing auth service:
|
||||||
|
|
||||||
```svelte
|
```svelte
|
||||||
<AuthPage
|
<AuthPage
|
||||||
brand="My application"
|
brand="My application"
|
||||||
|
faviconHref="/favicon.svg"
|
||||||
onLogin={(credentials) => auth.login(credentials.identifier, credentials.password)}
|
onLogin={(credentials) => auth.login(credentials.identifier, credentials.password)}
|
||||||
onSetup={(credentials) => auth.setup(credentials)}
|
onSetup={(credentials) => auth.setup(credentials)}
|
||||||
onRequestReset={() => auth.requestAdminReset()}
|
onRequestReset={() => auth.requestAdminReset()}
|
||||||
|
|||||||
@@ -15,8 +15,7 @@
|
|||||||
"svelte": "^5.0.0"
|
"svelte": "^5.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gabriel20xx/design-tokens": "0.1.1",
|
|
||||||
"@lucide/svelte": "1.28.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/package": "^2.5.0",
|
"@sveltejs/package": "^2.5.0",
|
||||||
|
|||||||
Reference in new issue
Block a user