Spaces:
Runtime error
Runtime error
upgrade
Browse files- frontend/package.json +8 -8
- frontend/src/app.d.ts +1 -1
- frontend/src/lib/App.svelte +1 -1
- frontend/src/routes/+page.svelte +1 -0
- frontend/svelte.config.js +1 -1
- package.json +0 -8
frontend/package.json
CHANGED
@@ -13,28 +13,28 @@
|
|
13 |
},
|
14 |
"devDependencies": {
|
15 |
"@sveltejs/adapter-static": "^1.0.0-next.43",
|
16 |
-
"@sveltejs/kit": "next",
|
17 |
"@tailwindcss/forms": "^0.5.3",
|
18 |
"@tailwindcss/line-clamp": "^0.4.2",
|
19 |
"@types/cookie": "^0.5.1",
|
20 |
"@types/d3-selection": "^3.0.3",
|
21 |
"@types/d3-zoom": "^3.0.1",
|
22 |
-
"@typescript-eslint/eslint-plugin": "^5.
|
23 |
-
"@typescript-eslint/parser": "^5.
|
24 |
-
"autoprefixer": "^10.4.
|
25 |
-
"eslint": "^8.
|
26 |
"eslint-config-prettier": "^8.3.0",
|
27 |
"eslint-plugin-svelte3": "^4.0.0",
|
28 |
"postcss": "^8.4.16",
|
29 |
"prettier": "^2.6.2",
|
30 |
-
"prettier-plugin-svelte": "^2.7.
|
31 |
"svelte": "^3.46.0",
|
32 |
-
"svelte-check": "^2.
|
33 |
"svelte-preprocess": "^4.10.7",
|
34 |
"tailwindcss": "^3.1.8",
|
35 |
"tslib": "^2.3.1",
|
36 |
"typescript": "^4.7.4",
|
37 |
-
"vite": "^3.1.
|
38 |
},
|
39 |
"type": "module",
|
40 |
"dependencies": {
|
|
|
13 |
},
|
14 |
"devDependencies": {
|
15 |
"@sveltejs/adapter-static": "^1.0.0-next.43",
|
16 |
+
"@sveltejs/kit": "^1.0.0-next.504",
|
17 |
"@tailwindcss/forms": "^0.5.3",
|
18 |
"@tailwindcss/line-clamp": "^0.4.2",
|
19 |
"@types/cookie": "^0.5.1",
|
20 |
"@types/d3-selection": "^3.0.3",
|
21 |
"@types/d3-zoom": "^3.0.1",
|
22 |
+
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
23 |
+
"@typescript-eslint/parser": "^5.38.0",
|
24 |
+
"autoprefixer": "^10.4.12",
|
25 |
+
"eslint": "^8.24.0",
|
26 |
"eslint-config-prettier": "^8.3.0",
|
27 |
"eslint-plugin-svelte3": "^4.0.0",
|
28 |
"postcss": "^8.4.16",
|
29 |
"prettier": "^2.6.2",
|
30 |
+
"prettier-plugin-svelte": "^2.7.1",
|
31 |
"svelte": "^3.46.0",
|
32 |
+
"svelte-check": "^2.9.1",
|
33 |
"svelte-preprocess": "^4.10.7",
|
34 |
"tailwindcss": "^3.1.8",
|
35 |
"tslib": "^2.3.1",
|
36 |
"typescript": "^4.7.4",
|
37 |
+
"vite": "^3.1.3"
|
38 |
},
|
39 |
"type": "module",
|
40 |
"dependencies": {
|
frontend/src/app.d.ts
CHANGED
@@ -7,7 +7,7 @@ declare global {
|
|
7 |
namespace App {
|
8 |
// interface Locals {}
|
9 |
// interface PageData {}
|
10 |
-
// interface
|
11 |
// interface Platform {}
|
12 |
interface Window {
|
13 |
parentIFrame: unknown;
|
|
|
7 |
namespace App {
|
8 |
// interface Locals {}
|
9 |
// interface PageData {}
|
10 |
+
// interface Error {}
|
11 |
// interface Platform {}
|
12 |
interface Window {
|
13 |
parentIFrame: unknown;
|
frontend/src/lib/App.svelte
CHANGED
@@ -94,7 +94,7 @@
|
|
94 |
<Canvas />
|
95 |
</main>
|
96 |
</div>
|
97 |
-
<div class="fixed bottom-0 left-0 right-0 z-50">
|
98 |
<Menu />
|
99 |
</div>
|
100 |
|
|
|
94 |
<Canvas />
|
95 |
</main>
|
96 |
</div>
|
97 |
+
<div class="fixed bottom-0 left-0 right-0 z-50 my-2">
|
98 |
<Menu />
|
99 |
</div>
|
100 |
|
frontend/src/routes/+page.svelte
CHANGED
@@ -12,6 +12,7 @@
|
|
12 |
PUBLIC_DEV_MODE === 'DEV'
|
13 |
? 'http://localhost:7860'
|
14 |
: '/embed/huggingface-projects/color-palette-generator-sd';
|
|
|
15 |
console.log(apiUrl);
|
16 |
|
17 |
let client: Client;
|
|
|
12 |
PUBLIC_DEV_MODE === 'DEV'
|
13 |
? 'http://localhost:7860'
|
14 |
: '/embed/huggingface-projects/color-palette-generator-sd';
|
15 |
+
|
16 |
console.log(apiUrl);
|
17 |
|
18 |
let client: Client;
|
frontend/svelte.config.js
CHANGED
@@ -12,7 +12,7 @@ const config = {
|
|
12 |
],
|
13 |
kit: {
|
14 |
paths: {
|
15 |
-
base: dev ? '
|
16 |
},
|
17 |
adapter: adapter({
|
18 |
pages: 'build',
|
|
|
12 |
],
|
13 |
kit: {
|
14 |
paths: {
|
15 |
+
base: dev ? '' : '/embed/huggingface-projects/stable-diffusion-multiplayer/static'
|
16 |
},
|
17 |
adapter: adapter({
|
18 |
pages: 'build',
|
package.json
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"devDependencies": {
|
3 |
-
"@types/smoothscroll-polyfill": "^0.3.1"
|
4 |
-
},
|
5 |
-
"dependencies": {
|
6 |
-
"d3-scale": "^4.0.2"
|
7 |
-
}
|
8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|