feature: StableStudio web interface
run `aimg server` and visit http://127.0.0.1:8000/pull/339/head
parent
8e28a2ed02
commit
7b032c8e9a
Binary file not shown.
After Width: | Height: | Size: 957 B |
Binary file not shown.
After Width: | Height: | Size: 489 KiB |
Binary file not shown.
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 Stability AI
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -0,0 +1,52 @@
|
||||
var l = (t) => {
|
||||
let e,
|
||||
i = new Set(),
|
||||
r = (o, u) => {
|
||||
let s = typeof o == "function" ? o(e) : o;
|
||||
if (!Object.is(s, e)) {
|
||||
let g = e;
|
||||
(e = u ?? typeof s != "object" ? s : Object.assign({}, e, s)),
|
||||
i.forEach((p) => p(e, g));
|
||||
}
|
||||
},
|
||||
a = () => e,
|
||||
n = {
|
||||
setState: r,
|
||||
getState: a,
|
||||
subscribe: (o) => (i.add(o), () => i.delete(o)),
|
||||
destroy: () => {
|
||||
(import.meta.env && import.meta.env.MODE) !== "production" &&
|
||||
console.warn(
|
||||
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
||||
),
|
||||
i.clear();
|
||||
},
|
||||
};
|
||||
return (e = t(r, a, n)), n;
|
||||
},
|
||||
d = (t) => (t ? l(t) : l),
|
||||
c = (t) => (e) => d((i, r) => t({ set: i, get: r, context: e }));
|
||||
var m = c(() => ({
|
||||
manifest: {
|
||||
name: "Example Plugin",
|
||||
description: "An example plugin for StableStudio",
|
||||
version: "1.2.3",
|
||||
author: "Bobby Joe",
|
||||
license: "MIT",
|
||||
link: "https://github.com",
|
||||
icon: "https://place.dog/100/100",
|
||||
},
|
||||
getStatus: () => ({
|
||||
indicator: "success",
|
||||
message: "This plugin is working",
|
||||
}),
|
||||
settings: {
|
||||
exampleSetting: {
|
||||
type: "string",
|
||||
default: "Hello, World!",
|
||||
placeholder: "Example setting",
|
||||
},
|
||||
},
|
||||
}));
|
||||
export { m as createPlugin };
|
||||
//# sourceMappingURL=index.js.map
|
@ -0,0 +1,52 @@
|
||||
var l = (t) => {
|
||||
let e,
|
||||
i = new Set(),
|
||||
r = (o, u) => {
|
||||
let s = typeof o == "function" ? o(e) : o;
|
||||
if (!Object.is(s, e)) {
|
||||
let g = e;
|
||||
(e = u ?? typeof s != "object" ? s : Object.assign({}, e, s)),
|
||||
i.forEach((p) => p(e, g));
|
||||
}
|
||||
},
|
||||
a = () => e,
|
||||
n = {
|
||||
setState: r,
|
||||
getState: a,
|
||||
subscribe: (o) => (i.add(o), () => i.delete(o)),
|
||||
destroy: () => {
|
||||
(import.meta.env && import.meta.env.MODE) !== "production" &&
|
||||
console.warn(
|
||||
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
||||
),
|
||||
i.clear();
|
||||
},
|
||||
};
|
||||
return (e = t(r, a, n)), n;
|
||||
},
|
||||
d = (t) => (t ? l(t) : l),
|
||||
c = (t) => (e) => d((i, r) => t({ set: i, get: r, context: e }));
|
||||
var m = c(() => ({
|
||||
// manifest: {
|
||||
// name: "Example Plugin",
|
||||
// description: "An example plugin for StableStudio",
|
||||
// version: "1.2.3",
|
||||
// author: "Bobby Joe",
|
||||
// license: "MIT",
|
||||
// link: "https://github.com",
|
||||
// icon: "place.dog/100/100",
|
||||
// },
|
||||
getStatus: () => ({
|
||||
indicator: "success",
|
||||
message: "This plugin is working",
|
||||
}),
|
||||
settings: {
|
||||
exampleSetting: {
|
||||
type: "string",
|
||||
default: "Hello, World!",
|
||||
placeholder: "Example setting",
|
||||
},
|
||||
},
|
||||
}));
|
||||
export { m as createPlugin };
|
||||
//# sourceMappingURL=index.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,8 @@
|
||||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<mask id="mask0_201_2" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="1" y="1" width="30" height="30">
|
||||
<path d="M20.342 1.56128L30.6364 12.5235L26.4184 26.9581L11.906 30.4303L1.61151 19.4681L5.82952 5.03354L20.342 1.56128Z" fill="#D9D9D9"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_201_2)">
|
||||
<path d="M44.6902 -40.8057L-40.8056 -12.6903L-12.6902 72.8055L72.8055 44.6901L44.6902 -40.8057Z" fill="#D3D3D3"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 507 B |
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>StableStudio</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
||||
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link
|
||||
rel="preload"
|
||||
href="Inter.ttf"
|
||||
as="font"
|
||||
type="font/ttf"
|
||||
crossorigin
|
||||
/>
|
||||
<script type="module" crossorigin src="/assets/index-80230e31.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-03379660.css">
|
||||
</head>
|
||||
<body>
|
||||
<div
|
||||
id="tooltip-root"
|
||||
class="dark h-[100vh] w-[100vw] overflow-hidden text-white"
|
||||
></div>
|
||||
<div id="modal-root" class="dark overflow-hidden text-white"></div>
|
||||
<div id="app" class="dark"></div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
After Width: | Height: | Size: 600 B |
Loading…
Reference in New Issue