Spaces:
Paused
Paused
P8b: Startansicht über Terrassen, Schnellreise-Höhe/Framing, v133
Browse files- app.js +8 -8
- avatar.js +1 -1
- index.html +2 -2
- master.js +1 -1
- registry.js +1 -1
- studios5.js +3 -3
- studios6.js +3 -3
- studios7.js +2 -2
- video.js +2 -2
- workspace.js +2 -2
app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import * as THREE from './vendor/three.module.min.js';
|
| 2 |
import { STUDIOS, stopLoops } from './widgets.js?v=50';
|
| 3 |
-
import { icon } from './icons.js?v=
|
| 4 |
-
import { CATS as CAT5, loadAll, prefetch, getConfig } from './registry.js?v=
|
| 5 |
import { GTAOPass } from './vendor/addons/postprocessing/GTAOPass.js';
|
| 6 |
import { BokehPass } from './vendor/addons/postprocessing/BokehPass.js';
|
| 7 |
-
import { buildWorld, makeBee, landH, MC } from './world.js?v=
|
| 8 |
import { EffectComposer } from './vendor/addons/postprocessing/EffectComposer.js';
|
| 9 |
import { RenderPass } from './vendor/addons/postprocessing/RenderPass.js';
|
| 10 |
import { UnrealBloomPass } from './vendor/addons/postprocessing/UnrealBloomPass.js';
|
|
@@ -62,7 +62,7 @@ if (renderer) { try { composer = new EffectComposer(renderer); composer.addPass(
|
|
| 62 |
/* ---------- the player bee ---------- */
|
| 63 |
const bee = makeBee(); bee.scale.setScalar(1.3); scene.add(bee);
|
| 64 |
const B = { pos: new THREE.Vector3(), vel: new THREE.Vector3(), yaw: Math.PI, bank: 0, travel: null, near: -1, armed: true };
|
| 65 |
-
function spawn() { const t = W.terraces[
|
| 66 |
spawn();
|
| 67 |
window.__studiusLegacyDust = null;
|
| 68 |
/* ---------- HUD, labels ---------- */
|
|
@@ -93,7 +93,7 @@ function placePop() {
|
|
| 93 |
}
|
| 94 |
|
| 95 |
// fly the bee to a shrine (labels/keyboard/menu open → the bee travels there)
|
| 96 |
-
function shrineFront(i) { const g = W.shrines[i].group; g.updateMatrixWorld(); const v = new THREE.Vector3(0,
|
| 97 |
function focusNode(i) { if (!started) return; const from = B.pos.clone(), to = shrineFront(i); B.travel = { from, to, t: 0, d: Math.max(1.5, Math.min(6, from.distanceTo(to) / 400)), i }; B.armed = false; }
|
| 98 |
function screenPos(o) { const v = o.getWorldPosition(new THREE.Vector3()).project(camera); return { x: (v.x + 1) / 2 * innerWidth, y: (1 - v.y) / 2 * innerHeight, z: v.z }; }
|
| 99 |
window.addEventListener('studius-merge', () => { beep(200, .3, 'sawtooth'); });
|
|
@@ -188,7 +188,7 @@ function start() {
|
|
| 188 |
if (started) return; started = true; prefetch(); beep(110, .5, 'sine', .06);
|
| 189 |
intro.classList.add('out'); cine.classList.add('out'); setTimeout(() => { intro.remove(); cine.remove(); }, 1100);
|
| 190 |
['#hud', '#hint', '#core-stats', '#frame', '#mm'].forEach(s => $(s).hidden = false); document.body.classList.add('live'); setCat('Alle'); select(0);
|
| 191 |
-
camT.copy(camera.position); cam.yaw = B.yaw; cam.pitch = .
|
| 192 |
}
|
| 193 |
$('#skip').onclick = (e) => { e.stopPropagation(); start(); };
|
| 194 |
intro.addEventListener('pointerdown', (e) => { if (e.target.id !== 'skip') start(); });
|
|
@@ -221,8 +221,8 @@ const angLerp = (a, b, k) => { let d = b - a; d = Math.atan2(Math.sin(d), Math.c
|
|
| 221 |
function updateBee(dt, t) {
|
| 222 |
const inF = (keys.f ? 1 : 0) - (keys.b ? 1 : 0) - joy.y - pad.y, inR = (keys.r ? 1 : 0) - (keys.l ? 1 : 0) + joy.x + pad.x, inU = (keys.u ? 1 : 0) - (keys.dn ? 1 : 0) + joy.u + pad.u;
|
| 223 |
const moving = Math.abs(inF) + Math.abs(inR) + Math.abs(inU) > .05;
|
| 224 |
-
if (B.travel) { const T = B.travel; T.t += dt / T.d; const k = ease(Math.min(1, T.t)); const arc = Math.sin(k * Math.PI) * Math.min(
|
| 225 |
-
const p = tmpV.lerpVectors(T.from, T.to, k); p.y += arc; B.vel.subVectors(p, B.pos).divideScalar(Math.max(dt, 1e-3)); B.pos.copy(p); const sh = W.shrines[T.i].group.position; if (B.vel.lengthSq() > 4) B.yaw = angLerp(B.yaw, Math.atan2(-B.vel.z, B.vel.x), Math.min(1, dt * 5)); if (k > .85) B.yaw = angLerp(B.yaw, Math.atan2(-(sh.z - B.pos.z), sh.x - B.pos.x), Math.min(1, dt * 4)); if (T.t >= 1) B.travel = null; }
|
| 226 |
else { fwd.set(Math.cos(cam.yaw + Math.PI), 0, -Math.sin(cam.yaw + Math.PI)); rgt.set(-fwd.z, 0, fwd.x).multiplyScalar(-1); rgt.set(fwd.z * -1, 0, fwd.x); rgt.set(-fwd.z, 0, fwd.x);
|
| 227 |
const sp = keys.boost ? 320 : 45; acc.set(0, 0, 0).addScaledVector(fwd, inF).addScaledVector(rgt, inR); if (acc.lengthSq() > 1) acc.normalize(); acc.multiplyScalar(sp); acc.y = inU * sp * .7;
|
| 228 |
B.vel.lerp(acc, Math.min(1, dt * (moving ? 2.6 : 1.6))); B.pos.addScaledVector(B.vel, dt);
|
|
|
|
| 1 |
import * as THREE from './vendor/three.module.min.js';
|
| 2 |
import { STUDIOS, stopLoops } from './widgets.js?v=50';
|
| 3 |
+
import { icon } from './icons.js?v=133';
|
| 4 |
+
import { CATS as CAT5, loadAll, prefetch, getConfig } from './registry.js?v=133';
|
| 5 |
import { GTAOPass } from './vendor/addons/postprocessing/GTAOPass.js';
|
| 6 |
import { BokehPass } from './vendor/addons/postprocessing/BokehPass.js';
|
| 7 |
+
import { buildWorld, makeBee, landH, MC } from './world.js?v=133';
|
| 8 |
import { EffectComposer } from './vendor/addons/postprocessing/EffectComposer.js';
|
| 9 |
import { RenderPass } from './vendor/addons/postprocessing/RenderPass.js';
|
| 10 |
import { UnrealBloomPass } from './vendor/addons/postprocessing/UnrealBloomPass.js';
|
|
|
|
| 62 |
/* ---------- the player bee ---------- */
|
| 63 |
const bee = makeBee(); bee.scale.setScalar(1.3); scene.add(bee);
|
| 64 |
const B = { pos: new THREE.Vector3(), vel: new THREE.Vector3(), yaw: Math.PI, bank: 0, travel: null, near: -1, armed: true };
|
| 65 |
+
function spawn() { const t = W.terraces[1].pos, x = t.x + 150, z = t.z + 260; B.pos.set(x, landH(x, z) + 70, z); B.vel.set(0, 0, 0); B.yaw = Math.atan2(-(t.z - 40 - z), (t.x + 120) - x); }
|
| 66 |
spawn();
|
| 67 |
window.__studiusLegacyDust = null;
|
| 68 |
/* ---------- HUD, labels ---------- */
|
|
|
|
| 93 |
}
|
| 94 |
|
| 95 |
// fly the bee to a shrine (labels/keyboard/menu open → the bee travels there)
|
| 96 |
+
function shrineFront(i) { const g = W.shrines[i].group; g.updateMatrixWorld(); const v = new THREE.Vector3(0, 10, 32).applyMatrix4(g.matrixWorld); return v; }
|
| 97 |
function focusNode(i) { if (!started) return; const from = B.pos.clone(), to = shrineFront(i); B.travel = { from, to, t: 0, d: Math.max(1.5, Math.min(6, from.distanceTo(to) / 400)), i }; B.armed = false; }
|
| 98 |
function screenPos(o) { const v = o.getWorldPosition(new THREE.Vector3()).project(camera); return { x: (v.x + 1) / 2 * innerWidth, y: (1 - v.y) / 2 * innerHeight, z: v.z }; }
|
| 99 |
window.addEventListener('studius-merge', () => { beep(200, .3, 'sawtooth'); });
|
|
|
|
| 188 |
if (started) return; started = true; prefetch(); beep(110, .5, 'sine', .06);
|
| 189 |
intro.classList.add('out'); cine.classList.add('out'); setTimeout(() => { intro.remove(); cine.remove(); }, 1100);
|
| 190 |
['#hud', '#hint', '#core-stats', '#frame', '#mm'].forEach(s => $(s).hidden = false); document.body.classList.add('live'); setCat('Alle'); select(0);
|
| 191 |
+
camT.copy(camera.position); cam.yaw = B.yaw + Math.PI; cam.pitch = .3;
|
| 192 |
}
|
| 193 |
$('#skip').onclick = (e) => { e.stopPropagation(); start(); };
|
| 194 |
intro.addEventListener('pointerdown', (e) => { if (e.target.id !== 'skip') start(); });
|
|
|
|
| 221 |
function updateBee(dt, t) {
|
| 222 |
const inF = (keys.f ? 1 : 0) - (keys.b ? 1 : 0) - joy.y - pad.y, inR = (keys.r ? 1 : 0) - (keys.l ? 1 : 0) + joy.x + pad.x, inU = (keys.u ? 1 : 0) - (keys.dn ? 1 : 0) + joy.u + pad.u;
|
| 223 |
const moving = Math.abs(inF) + Math.abs(inR) + Math.abs(inU) > .05;
|
| 224 |
+
if (B.travel) { const T = B.travel; T.t += dt / T.d; const k = ease(Math.min(1, T.t)); const arc = Math.sin(k * Math.PI) * Math.min(150, T.from.distanceTo(T.to) * .15);
|
| 225 |
+
const p = tmpV.lerpVectors(T.from, T.to, k); p.y += arc; B.vel.subVectors(p, B.pos).divideScalar(Math.max(dt, 1e-3)); B.pos.copy(p); const sh = W.shrines[T.i].group.position; if (B.vel.lengthSq() > 4) B.yaw = angLerp(B.yaw, Math.atan2(-B.vel.z, B.vel.x), Math.min(1, dt * 5)); if (k > .85) B.yaw = angLerp(B.yaw, Math.atan2(-(sh.z - B.pos.z), sh.x - B.pos.x), Math.min(1, dt * 4)); if (T.t >= 1) { B.travel = null; cam.pitch = .32; } }
|
| 226 |
else { fwd.set(Math.cos(cam.yaw + Math.PI), 0, -Math.sin(cam.yaw + Math.PI)); rgt.set(-fwd.z, 0, fwd.x).multiplyScalar(-1); rgt.set(fwd.z * -1, 0, fwd.x); rgt.set(-fwd.z, 0, fwd.x);
|
| 227 |
const sp = keys.boost ? 320 : 45; acc.set(0, 0, 0).addScaledVector(fwd, inF).addScaledVector(rgt, inR); if (acc.lengthSq() > 1) acc.normalize(); acc.multiplyScalar(sp); acc.y = inU * sp * .7;
|
| 228 |
B.vel.lerp(acc, Math.min(1, dt * (moving ? 2.6 : 1.6))); B.pos.addScaledVector(B.vel, dt);
|
avatar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
// Avatar / Persona studio (DoD): persistent avatars as workspace asset type `avatar`
|
| 2 |
// avatars/<slug>/avatar.json + ref.webp + voice.wav · reused by Chat, Image (Kontext), agents.
|
| 3 |
import { STUDIOS, onStop } from './widgets.js?v=50';
|
| 4 |
-
import { run, result, MODULES, esc, hf, stTxt, url, badge, setS, keep, LS, FLUX, KONTEXT, TTS, CHAT, signedIn } from './real.js?v=
|
| 5 |
|
| 6 |
export const MODA = 'multimodalart/MoDA-fast-talking-head', W2L = 'pragnakalp/Wav2lip-ZeroGPU';
|
| 7 |
const LANGS = ['German', 'English', 'French', 'Spanish', 'Auto'];
|
|
|
|
| 1 |
// Avatar / Persona studio (DoD): persistent avatars as workspace asset type `avatar`
|
| 2 |
// avatars/<slug>/avatar.json + ref.webp + voice.wav · reused by Chat, Image (Kontext), agents.
|
| 3 |
import { STUDIOS, onStop } from './widgets.js?v=50';
|
| 4 |
+
import { run, result, MODULES, esc, hf, stTxt, url, badge, setS, keep, LS, FLUX, KONTEXT, TTS, CHAT, signedIn } from './real.js?v=133';
|
| 5 |
|
| 6 |
export const MODA = 'multimodalart/MoDA-fast-talking-head', W2L = 'pragnakalp/Wav2lip-ZeroGPU';
|
| 7 |
const LANGS = ['German', 'English', 'French', 'Spanish', 'Auto'];
|
index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
<title>STUDIUS · DAS Studio — Einswarm</title>
|
| 9 |
<link rel="icon" href="assets/einswarm-mascot.webp">
|
| 10 |
<link rel="preload" href="fonts/outfit-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
|
| 11 |
-
<link rel="stylesheet" href="style.css?v=
|
| 12 |
</head>
|
| 13 |
<body>
|
| 14 |
<canvas id="gl"></canvas>
|
|
@@ -50,6 +50,6 @@
|
|
| 50 |
|
| 51 |
<a id="bmc" href="https://www.buymeacoffee.com/2btainment" target="_blank" rel="noopener noreferrer">Buy me a coffee</a>
|
| 52 |
<noscript><p style="color:#f2c94c;padding:2em">STUDIUS braucht JavaScript.</p></noscript>
|
| 53 |
-
<script type="module" src="app.js?v=
|
| 54 |
</body>
|
| 55 |
</html>
|
|
|
|
| 8 |
<title>STUDIUS · DAS Studio — Einswarm</title>
|
| 9 |
<link rel="icon" href="assets/einswarm-mascot.webp">
|
| 10 |
<link rel="preload" href="fonts/outfit-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
|
| 11 |
+
<link rel="stylesheet" href="style.css?v=133">
|
| 12 |
</head>
|
| 13 |
<body>
|
| 14 |
<canvas id="gl"></canvas>
|
|
|
|
| 50 |
|
| 51 |
<a id="bmc" href="https://www.buymeacoffee.com/2btainment" target="_blank" rel="noopener noreferrer">Buy me a coffee</a>
|
| 52 |
<noscript><p style="color:#f2c94c;padding:2em">STUDIUS braucht JavaScript.</p></noscript>
|
| 53 |
+
<script type="module" src="app.js?v=133"></script>
|
| 54 |
</body>
|
| 55 |
</html>
|
master.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
// Mastering studio (DoD): client-side WebAudio chain EQ → compressor → limiter, loudness normalisation to target LUFS
|
| 2 |
// (ITU-R BS.1770-4 K-weighting + gating, measured offline), live meter, A/B, WAV/MP3 export, save to workspace.
|
| 3 |
import { STUDIOS, onStop, loop, cv } from './widgets.js?v=50';
|
| 4 |
-
import { result, MODULES, esc, setS, keep } from './real.js?v=
|
| 5 |
|
| 6 |
/* ---------- BS.1770 loudness ---------- */
|
| 7 |
function biquad(x, b0, b1, b2, a0, a1, a2) { const y = new Float32Array(x.length); b0 /= a0; b1 /= a0; b2 /= a0; a1 /= a0; a2 /= a0; let x1 = 0, x2 = 0, y1 = 0, y2 = 0;
|
|
|
|
| 1 |
// Mastering studio (DoD): client-side WebAudio chain EQ → compressor → limiter, loudness normalisation to target LUFS
|
| 2 |
// (ITU-R BS.1770-4 K-weighting + gating, measured offline), live meter, A/B, WAV/MP3 export, save to workspace.
|
| 3 |
import { STUDIOS, onStop, loop, cv } from './widgets.js?v=50';
|
| 4 |
+
import { result, MODULES, esc, setS, keep } from './real.js?v=133';
|
| 5 |
|
| 6 |
/* ---------- BS.1770 loudness ---------- */
|
| 7 |
function biquad(x, b0, b1, b2, a0, a1, a2) { const y = new Float32Array(x.length); b0 /= a0; b1 /= a0; b2 /= a0; a1 /= a0; a2 /= a0; let x1 = 0, x2 = 0, y1 = 0, y2 = 0;
|
registry.js
CHANGED
|
@@ -41,7 +41,7 @@ STUDIOS.find = function (f) { return find0.call(this, f) ?? find0.call([...ALL.v
|
|
| 41 |
STUDIOS.push = function (...xs) { xs.forEach(x => { const s = ALL.get(x.id); if (s) { const c = s.cat; Object.assign(s, x, { cat: c, stub: false }); } else { x.cat = CAT[x.id] || x.cat; ALL.set(x.id, x); push0.call(this, x); } }); return this.length; };
|
| 42 |
// lazy module loading (one chain, shared module URLs)
|
| 43 |
let P = null; export let loaded = false;
|
| 44 |
-
export function loadAll() { return P ||= (async () => { for (const m of ['./real.js?v=
|
| 45 |
export const prefetch = () => (window.requestIdleCallback || setTimeout)(() => loadAll(), { timeout: 2500 });
|
| 46 |
if (document.readyState === 'complete') setTimeout(prefetch, 1200); else addEventListener('load', () => setTimeout(prefetch, 1200), { once: true });
|
| 47 |
/* ---------- command palette (Strg/⌘+K or /) ---------- */
|
|
|
|
| 41 |
STUDIOS.push = function (...xs) { xs.forEach(x => { const s = ALL.get(x.id); if (s) { const c = s.cat; Object.assign(s, x, { cat: c, stub: false }); } else { x.cat = CAT[x.id] || x.cat; ALL.set(x.id, x); push0.call(this, x); } }); return this.length; };
|
| 42 |
// lazy module loading (one chain, shared module URLs)
|
| 43 |
let P = null; export let loaded = false;
|
| 44 |
+
export function loadAll() { return P ||= (async () => { for (const m of ['./real.js?v=133', './avatar.js?v=133', './master.js?v=133', './video.js?v=133', './workspace.js?v=133', './studios5.js?v=133', './studios6.js?v=133', './studios7.js?v=133']) await import(m); loaded = true; })(); }
|
| 45 |
export const prefetch = () => (window.requestIdleCallback || setTimeout)(() => loadAll(), { timeout: 2500 });
|
| 46 |
if (document.readyState === 'complete') setTimeout(prefetch, 1200); else addEventListener('load', () => setTimeout(prefetch, 1200), { once: true });
|
| 47 |
/* ---------- command palette (Strg/⌘+K or /) ---------- */
|
studios5.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
// STUDIUS P5: Radio Studio · Social/Marketing Studio · Shop Studio (JDT link-shop) + video reframe helper.
|
| 2 |
// Every result goes on the asset bus (save to workspace / send to studio). Nothing is ever posted or published externally.
|
| 3 |
import { STUDIOS } from './widgets.js?v=50';
|
| 4 |
-
import { run, result, MODULES, esc, hf, stTxt, url, badge, setS, keep, signedIn, TF, CHAT, FLUX } from './real.js?v=
|
| 5 |
-
import { Avatars } from './avatar.js?v=
|
| 6 |
-
import { toWav, toMp3 } from './master.js?v=
|
| 7 |
|
| 8 |
const bucket = () => signedIn() && window.__ws?.bucket;
|
| 9 |
const wsFile = (p) => '/api/ws/file?bucket=' + encodeURIComponent(window.__ws.bucket) + '&path=' + encodeURIComponent(p);
|
|
|
|
| 1 |
// STUDIUS P5: Radio Studio · Social/Marketing Studio · Shop Studio (JDT link-shop) + video reframe helper.
|
| 2 |
// Every result goes on the asset bus (save to workspace / send to studio). Nothing is ever posted or published externally.
|
| 3 |
import { STUDIOS } from './widgets.js?v=50';
|
| 4 |
+
import { run, result, MODULES, esc, hf, stTxt, url, badge, setS, keep, signedIn, TF, CHAT, FLUX } from './real.js?v=133';
|
| 5 |
+
import { Avatars } from './avatar.js?v=133';
|
| 6 |
+
import { toWav, toMp3 } from './master.js?v=133';
|
| 7 |
|
| 8 |
const bucket = () => signedIn() && window.__ws?.bucket;
|
| 9 |
const wsFile = (p) => '/api/ws/file?bucket=' + encodeURIComponent(window.__ws.bucket) + '&path=' + encodeURIComponent(p);
|
studios6.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
// STUDIUS P6: Branding-Kit (shared) · Docs (Markdown → DOCX/PDF) · Telefon-Assistent (Avatar + IVR + Testanruf)
|
| 2 |
// + Module API: brand.get, docs.write, phone.answer, shop.draft. Nothing is posted, published or dialled externally.
|
| 3 |
import { STUDIOS } from './widgets.js?v=50';
|
| 4 |
-
import { MODULES, esc, hf, stTxt, result, badge, setS, keep, CHAT, FLUX } from './real.js?v=
|
| 5 |
-
import { Avatars } from './avatar.js?v=
|
| 6 |
-
import { bucket, wsFile, toBlob, slug, ts, upload, wsList, wsJson, saveJson, llm, dl, canvasBlob, loadImg, avOptions, PT, LINES, slugCode, eur, SOC, suggestPrice } from './studios5.js?v=
|
| 7 |
|
| 8 |
/* =================== BRANDING-KIT (one source of truth for Social, Whiteboard, Docs, Telefon) =================== */
|
| 9 |
const BK = 'projects/brand/brand.json';
|
|
|
|
| 1 |
// STUDIUS P6: Branding-Kit (shared) · Docs (Markdown → DOCX/PDF) · Telefon-Assistent (Avatar + IVR + Testanruf)
|
| 2 |
// + Module API: brand.get, docs.write, phone.answer, shop.draft. Nothing is posted, published or dialled externally.
|
| 3 |
import { STUDIOS } from './widgets.js?v=50';
|
| 4 |
+
import { MODULES, esc, hf, stTxt, result, badge, setS, keep, CHAT, FLUX } from './real.js?v=133';
|
| 5 |
+
import { Avatars } from './avatar.js?v=133';
|
| 6 |
+
import { bucket, wsFile, toBlob, slug, ts, upload, wsList, wsJson, saveJson, llm, dl, canvasBlob, loadImg, avOptions, PT, LINES, slugCode, eur, SOC, suggestPrice } from './studios5.js?v=133';
|
| 7 |
|
| 8 |
/* =================== BRANDING-KIT (one source of truth for Social, Whiteboard, Docs, Telefon) =================== */
|
| 9 |
const BK = 'projects/brand/brand.json';
|
studios7.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
// STUDIUS P7: Dev-Baukasten (Stratum-Port), Repo-Vorschau (RepoSpace-API), Admin, 2B-Vorlagen (Musik), Veloura-Stile (Bild)
|
| 2 |
import { STUDIOS } from './widgets.js?v=50';
|
| 3 |
-
import { MODULES, esc, setS, keep, result, badge } from './real.js?v=
|
| 4 |
-
import { ALL, CATS, PRESETS, DEFAULT, ME, getConfig, applyTheme, visibleFor } from './registry.js?v=
|
| 5 |
const $ = (el, s) => el.querySelector(s);
|
| 6 |
const post = async (u, f) => { const fd = new FormData(); Object.entries(f).forEach(([k, v]) => fd.append(k, v)); const r = await fetch(u, { method: 'POST', body: fd, credentials: 'include' }); const j = await r.json().catch(() => ({})); if (!r.ok) throw new Error(j.detail || 'HTTP ' + r.status); return j; };
|
| 7 |
export const llm = (prompt, system = '', max_tokens = 1200) => post('/api/llm', { prompt, system, max_tokens });
|
|
|
|
| 1 |
// STUDIUS P7: Dev-Baukasten (Stratum-Port), Repo-Vorschau (RepoSpace-API), Admin, 2B-Vorlagen (Musik), Veloura-Stile (Bild)
|
| 2 |
import { STUDIOS } from './widgets.js?v=50';
|
| 3 |
+
import { MODULES, esc, setS, keep, result, badge } from './real.js?v=133';
|
| 4 |
+
import { ALL, CATS, PRESETS, DEFAULT, ME, getConfig, applyTheme, visibleFor } from './registry.js?v=133';
|
| 5 |
const $ = (el, s) => el.querySelector(s);
|
| 6 |
const post = async (u, f) => { const fd = new FormData(); Object.entries(f).forEach(([k, v]) => fd.append(k, v)); const r = await fetch(u, { method: 'POST', body: fd, credentials: 'include' }); const j = await r.json().catch(() => ({})); if (!r.ok) throw new Error(j.detail || 'HTTP ' + r.status); return j; };
|
| 7 |
export const llm = (prompt, system = '', max_tokens = 1200) => post('/api/llm', { prompt, system, max_tokens });
|
video.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
// STUDIUS P3.4: Video Gen (LTX-Video, text→video + image→video), Video Edit (trim, soundtrack, title, fades → MP4/WebM export)
|
| 2 |
// and Stems (Demucs split → synced mixer with gain/mute/solo → WAV mixdown). All results go on the asset bus (save / send).
|
| 3 |
-
import { run, result, MODULES, esc, hf, stTxt, url, badge, timer, setS, S, keep } from './real.js?v=
|
| 4 |
-
import { toWav } from './master.js?v=
|
| 5 |
import { onStop } from './widgets.js?v=50';
|
| 6 |
|
| 7 |
export const LTX = 'Lightricks/ltx-video-distilled';
|
|
|
|
| 1 |
// STUDIUS P3.4: Video Gen (LTX-Video, text→video + image→video), Video Edit (trim, soundtrack, title, fades → MP4/WebM export)
|
| 2 |
// and Stems (Demucs split → synced mixer with gain/mute/solo → WAV mixdown). All results go on the asset bus (save / send).
|
| 3 |
+
import { run, result, MODULES, esc, hf, stTxt, url, badge, timer, setS, S, keep } from './real.js?v=133';
|
| 4 |
+
import { toWav } from './master.js?v=133';
|
| 5 |
import { onStop } from './widgets.js?v=50';
|
| 6 |
|
| 7 |
export const LTX = 'Lightricks/ltx-video-distilled';
|
workspace.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
// STUDIUS empire backbone (frontend): HF sign-in, Workspace (user's HF Bucket), asset bus hand-off, bee agent dock.
|
| 2 |
-
import { MODULES, refreshQuota } from './real.js?v=
|
| 3 |
-
import { Avatars } from './avatar.js?v=
|
| 4 |
const $ = (s, r = document) => r.querySelector(s);
|
| 5 |
const esc = (t) => String(t ?? '').replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
| 6 |
const ST = () => window.__studius.STUDIOS;
|
|
|
|
| 1 |
// STUDIUS empire backbone (frontend): HF sign-in, Workspace (user's HF Bucket), asset bus hand-off, bee agent dock.
|
| 2 |
+
import { MODULES, refreshQuota } from './real.js?v=133';
|
| 3 |
+
import { Avatars } from './avatar.js?v=133';
|
| 4 |
const $ = (s, r = document) => r.querySelector(s);
|
| 5 |
const esc = (t) => String(t ?? '').replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
| 6 |
const ST = () => window.__studius.STUDIOS;
|