Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
use library to display space mini header
Browse files- package-lock.json +4 -4
- package.json +1 -1
- src/routes/+layout.svelte +7 -2
package-lock.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
"dependencies": {
|
11 |
"@aws-sdk/client-s3": "^3.490.0",
|
12 |
"@huggingface/hub": "^0.12.3",
|
13 |
-
"@huggingface/space-header": "^1.0.
|
14 |
"@iconify/svelte": "^3.1.4",
|
15 |
"@prisma/client": "^5.7.1",
|
16 |
"@svelte-put/clickoutside": "^3.0.1",
|
@@ -1381,9 +1381,9 @@
|
|
1381 |
}
|
1382 |
},
|
1383 |
"node_modules/@huggingface/space-header": {
|
1384 |
-
"version": "1.0.
|
1385 |
-
"resolved": "https://registry.npmjs.org/@huggingface/space-header/-/space-header-1.0.
|
1386 |
-
"integrity": "sha512-
|
1387 |
},
|
1388 |
"node_modules/@humanwhocodes/config-array": {
|
1389 |
"version": "0.11.13",
|
|
|
10 |
"dependencies": {
|
11 |
"@aws-sdk/client-s3": "^3.490.0",
|
12 |
"@huggingface/hub": "^0.12.3",
|
13 |
+
"@huggingface/space-header": "^1.0.2",
|
14 |
"@iconify/svelte": "^3.1.4",
|
15 |
"@prisma/client": "^5.7.1",
|
16 |
"@svelte-put/clickoutside": "^3.0.1",
|
|
|
1381 |
}
|
1382 |
},
|
1383 |
"node_modules/@huggingface/space-header": {
|
1384 |
+
"version": "1.0.2",
|
1385 |
+
"resolved": "https://registry.npmjs.org/@huggingface/space-header/-/space-header-1.0.2.tgz",
|
1386 |
+
"integrity": "sha512-jaubcoR63HmxFtx1VttFYA3g36NnQgvKu9Xtz8PgVhXG5auv69QJkkYUPyvEFgxtyEvkRyJotoLwEPabQmHOBA=="
|
1387 |
},
|
1388 |
"node_modules/@humanwhocodes/config-array": {
|
1389 |
"version": "0.11.13",
|
package.json
CHANGED
@@ -43,7 +43,7 @@
|
|
43 |
"dependencies": {
|
44 |
"@aws-sdk/client-s3": "^3.490.0",
|
45 |
"@huggingface/hub": "^0.12.3",
|
46 |
-
"@huggingface/space-header": "^1.0.
|
47 |
"@iconify/svelte": "^3.1.4",
|
48 |
"@prisma/client": "^5.7.1",
|
49 |
"@svelte-put/clickoutside": "^3.0.1",
|
|
|
43 |
"dependencies": {
|
44 |
"@aws-sdk/client-s3": "^3.490.0",
|
45 |
"@huggingface/hub": "^0.12.3",
|
46 |
+
"@huggingface/space-header": "^1.0.2",
|
47 |
"@iconify/svelte": "^3.1.4",
|
48 |
"@prisma/client": "^5.7.1",
|
49 |
"@svelte-put/clickoutside": "^3.0.1",
|
src/routes/+layout.svelte
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
import { get } from "svelte/store";
|
3 |
import Icon from "@iconify/svelte";
|
4 |
import { SvelteToast } from '@zerodevx/svelte-toast'
|
5 |
-
|
6 |
|
7 |
import Sidebar from "$lib/components/sidebar/Sidebar.svelte";
|
8 |
import "$lib/styles/tailwind.css"
|
@@ -10,6 +10,7 @@
|
|
10 |
import Dialog from "$lib/components/dialog/Dialog.svelte";
|
11 |
import { loginModalStore } from "$lib/stores/use-login-modal";
|
12 |
import SpaceMiniHeader from "$lib/components/spaceheader/SpaceMiniHeader.svelte";
|
|
|
13 |
|
14 |
export let data;
|
15 |
userStore.set(data?.user?.user);
|
@@ -19,10 +20,14 @@
|
|
19 |
loginModalStore.subscribe((v) => {
|
20 |
open = v;
|
21 |
});
|
|
|
|
|
|
|
|
|
22 |
</script>
|
23 |
|
24 |
<div class="flex items-start">
|
25 |
-
<SpaceMiniHeader />
|
26 |
<Sidebar />
|
27 |
<main id="app" class="flex-1 h-screen overflow-y-auto">
|
28 |
<slot />
|
|
|
2 |
import { get } from "svelte/store";
|
3 |
import Icon from "@iconify/svelte";
|
4 |
import { SvelteToast } from '@zerodevx/svelte-toast'
|
5 |
+
import { init } from "@huggingface/space-header"
|
6 |
|
7 |
import Sidebar from "$lib/components/sidebar/Sidebar.svelte";
|
8 |
import "$lib/styles/tailwind.css"
|
|
|
10 |
import Dialog from "$lib/components/dialog/Dialog.svelte";
|
11 |
import { loginModalStore } from "$lib/stores/use-login-modal";
|
12 |
import SpaceMiniHeader from "$lib/components/spaceheader/SpaceMiniHeader.svelte";
|
13 |
+
import { onMount } from "svelte";
|
14 |
|
15 |
export let data;
|
16 |
userStore.set(data?.user?.user);
|
|
|
20 |
loginModalStore.subscribe((v) => {
|
21 |
open = v;
|
22 |
});
|
23 |
+
|
24 |
+
onMount(() => {
|
25 |
+
init("enzostvs/lora-studio")
|
26 |
+
})
|
27 |
</script>
|
28 |
|
29 |
<div class="flex items-start">
|
30 |
+
<!-- <SpaceMiniHeader /> -->
|
31 |
<Sidebar />
|
32 |
<main id="app" class="flex-1 h-screen overflow-y-auto">
|
33 |
<slot />
|