acf7da19e856
Browse filesFiles changed (6)
- web/app.js+23-2
- web/i18n/en.json+2-1
- web/index.html+2-2
- web/poster.js+3
- web/style.css+10-2
- web/tips.js+1-1
1022 unmodified lines10231024102510261027102810291030103180 unmodified lines11121113111411151116111742 unmodified lines11601161116211631164116547 unmodified lines121312141215121612171218815 unmodified lines20342035203620372038203920401022 unmodified linesconst stage = $("#stage");brush.stop();stage.dataset.state = "lavoro";$("#shot-bar").hidden = true;$("#base-bar").hidden = true;$("#next-bar").hidden = true;const frame = $("#develop-frame");frame.style.setProperty("--ar", String(job.width / job.height));$("#develop-grain").style.backgroundImage = `url(${grainTile()})`;80 unmodified linesimg.classList.toggle("checker", Boolean(item.trasparente));if (img.complete && img.naturalWidth) img.onload();$("#shot-bar").hidden = false;$("#shot-prompt").textContent = titleOf(item);$("#shot-prompt").title = item.prompt_finale || "";$("#shot-meta").replaceChildren(...metaSpans(item));42 unmodified lines]));}$("#shot-bar").hidden = false;$("#act-back").hidden = true;$("#shot-prompt").textContent = isView(items[0]) ? "La stessa figura da altre angolazioni" : titleOf(items[0]);$("#shot-prompt").title = items[0].prompt_finale || "";47 unmodified linesstate.batch = [];$("#stage").dataset.state = "vuoto";$("#shot-bar").hidden = true;}/* ---------- bozze ---------- */815 unmodified lines});}async function init() {if (window.PixBackend) await window.PixBackend.ready;wire();const s = await refreshStatus();1022 unmodified lines10231024102510261027102810291030103110321033103480 unmodified lines111511161117111811191120112142 unmodified lines116411651166116711681169117047 unmodified lines1218121912201221122212231224815 unmodified lines20402041204220432044204520462047204820492050205120522053205420552056205720582059206020611022 unmodified linesconst stage = $("#stage");brush.stop();stage.dataset.state = "lavoro";const bar = $("#shot-bar");bar.hidden = false;bar.dataset.working = "";$("#shot-prompt").textContent = job.request.prompt || MODE_LABEL[job.request.mode] || "";$("#shot-meta").replaceChildren(el("span", { text: "In lavorazione" }));$("#base-bar").hidden = true;const frame = $("#develop-frame");frame.style.setProperty("--ar", String(job.width / job.height));$("#develop-grain").style.backgroundImage = `url(${grainTile()})`;80 unmodified linesimg.classList.toggle("checker", Boolean(item.trasparente));if (img.complete && img.naturalWidth) img.onload();$("#shot-bar").hidden = false;delete $("#shot-bar").dataset.working;$("#shot-prompt").textContent = titleOf(item);$("#shot-prompt").title = item.prompt_finale || "";$("#shot-meta").replaceChildren(...metaSpans(item));42 unmodified lines]));}$("#shot-bar").hidden = false;delete $("#shot-bar").dataset.working;$("#act-back").hidden = true;$("#shot-prompt").textContent = isView(items[0]) ? "La stessa figura da altre angolazioni" : titleOf(items[0]);$("#shot-prompt").title = items[0].prompt_finale || "";47 unmodified linesstate.batch = [];$("#stage").dataset.state = "vuoto";$("#shot-bar").hidden = true;delete $("#shot-bar").dataset.working;}/* ---------- bozze ---------- */815 unmodified lines});}// Le viste restano invisibili finché non sono composte: niente salti di layout all'apertura.function reveal() {requestAnimationFrame(() => document.body.removeAttribute("data-booting"));}setTimeout(reveal, 8000);async function init() {try {await boot();} finally {await window.PixI18n?.ready?.catch(() => {});reveal();}}async function boot() {if (window.PixBackend) await window.PixBackend.ready;wire();const s = await refreshStatus();
621 unmodified lines622623624625626621 unmodified lines"Per provarla online senza installare niente, PixRick si appoggia alle GPU gratuite di Hugging Face. Per questo ogni giorno hai un po' di tempo e un numero limitato di generazioni. Gratis, senza registrazione.": "To let you try it online without installing anything, PixRick runs on Hugging Face's free GPUs. That's why each day you get a little time and a limited number of generations. Free, no sign-up.","Descrivi la scena: soggetto, ambiente, luce, stile. Il testo da scrivere nell'immagine va tra virgolette.": "Describe the scene: subject, place, light, style. Text to show inside the image goes in quotes.","L'immagine è pronta ma il browser non è riuscito a salvarla. Riprova; se succede ancora, esci dalla navigazione privata.": "The image is ready but your browser couldn't save it. Try again; if it keeps happening, leave private browsing.","Immagine non salvata": "Image not saved"}621 unmodified lines622623624625626627621 unmodified lines"Per provarla online senza installare niente, PixRick si appoggia alle GPU gratuite di Hugging Face. Per questo ogni giorno hai un po' di tempo e un numero limitato di generazioni. Gratis, senza registrazione.": "To let you try it online without installing anything, PixRick runs on Hugging Face's free GPUs. That's why each day you get a little time and a limited number of generations. Free, no sign-up.","Descrivi la scena: soggetto, ambiente, luce, stile. Il testo da scrivere nell'immagine va tra virgolette.": "Describe the scene: subject, place, light, style. Text to show inside the image goes in quotes.","L'immagine è pronta ma il browser non è riuscito a salvarla. Riprova; se succede ancora, esci dalla navigazione privata.": "The image is ready but your browser couldn't save it. Try again; if it keeps happening, leave private browsing.","Immagine non salvata": "Image not saved","In lavorazione": "In progress"}
26 unmodified lines27282930313233324 unmodified lines35835936036136236336426 unmodified lines<link rel="apple-touch-icon" href="/web/icons/apple-touch-icon.png"><link rel="manifest" href="/manifest.webmanifest"></head><body data-view="studio" data-mode="crea"><svg class="sprite" aria-hidden="true"><symbol id="i-download" viewBox="0 0 24 24"><path d="M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19h14"/></symbol><symbol id="i-shuffle" viewBox="0 0 24 24"><path d="M4 7h3.5c2 0 3 1 4 3l1 2c1 2 2 3 4 3H20m0 0-2.5-2.5M20 15l-2.5 2.5M4 17h3.5c1.3 0 2.2-.4 2.9-1.2M20 7h-3.5c-1.3 0-2.2.4-2.9 1.2M20 7l-2.5-2.5M20 7l-2.5 2.5"/></symbol>324 unmodified lines<main class="poster" id="poster" hidden data-guide="locandina"><section class="poster-stage" id="poster-stage"><div class="poster-canvas-wrap" id="poster-wrap"><canvas id="poster-canvas" aria-label="Anteprima della locandina"></canvas><div class="pp-overlay" id="pp-overlay" aria-hidden="true"><div class="pp-frame" id="pp-frame" hidden><span class="pp-handle"></span></div></div>26 unmodified lines27282930313233324 unmodified lines35835936036136236336426 unmodified lines<link rel="apple-touch-icon" href="/web/icons/apple-touch-icon.png"><link rel="manifest" href="/manifest.webmanifest"></head><body data-view="studio" data-mode="crea" data-booting><svg class="sprite" aria-hidden="true"><symbol id="i-download" viewBox="0 0 24 24"><path d="M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19h14"/></symbol><symbol id="i-shuffle" viewBox="0 0 24 24"><path d="M4 7h3.5c2 0 3 1 4 3l1 2c1 2 2 3 4 3H20m0 0-2.5-2.5M20 15l-2.5 2.5M4 17h3.5c1.3 0 2.2-.4 2.9-1.2M20 7h-3.5c-1.3 0-2.2.4-2.9 1.2M20 7l-2.5-2.5M20 7l-2.5 2.5"/></symbol>324 unmodified lines<main class="poster" id="poster" hidden data-guide="locandina"><section class="poster-stage" id="poster-stage"><div class="poster-canvas-wrap" id="poster-wrap"><canvas id="poster-canvas" width="2000" height="3000" aria-label="Anteprima della locandina"></canvas><div class="pp-overlay" id="pp-overlay" aria-hidden="true"><div class="pp-frame" id="pp-frame" hidden><span class="pp-handle"></span></div></div>
1277 unmodified lines1278127912801281128212831277 unmodified lineswindow.PosterStudio = {async show() {wire();await Promise.all([ensureFonts(), restore()]);render();},1277 unmodified lines1278127912801281128212831284128512861277 unmodified lineswindow.PosterStudio = {async show() {wire();const [W, H] = FORMATS[S.format] || FORMATS["2:3"];const cv = canvas();if (cv.width !== W || cv.height !== H) { cv.width = W; cv.height = H; }await Promise.all([ensureFonts(), restore()]);render();},
362 unmodified lines363364365366367368193 unmodified lines56256356456556656756899 unmodified lines6686696706716726731273 unmodified lines19471948194919501951195219531 unmodified line195519561957362 unmodified lines.save-btn[data-saved="true"] { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1px rgba(127, 216, 166, 0.35); pointer-events: none; }.shot-actions.compare-actions { display: none; }.compare-hint { color: var(--faint); font-size: 12.5px; margin-right: 6px; }body[data-stage="confronto"] .shot-actions.compare-actions { display: flex; }body[data-stage="confronto"] .shot-actions.single-actions { display: none; }193 unmodified lines#prompt:focus { outline: none; }#prompt::placeholder { color: var(--faint); }.composer-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }.pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }.pill {display: inline-flex;99 unmodified linesletter-spacing: 0.01em;}.panel-note { margin: 8px 0 0; color: var(--faint); font-size: 12px; }.row-head { display: flex; justify-content: space-between; align-items: baseline; }.row-head output { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }1273 unmodified lines.notice-actions { display: flex; align-items: center; gap: 4px; }.notice-actions .detail-btn { height: 34px; padding: 0 12px; }.notice-actions .icon-btn { width: 34px; height: 34px; border: 0; }.composer-foot .error:not(:empty) { flex-basis: 100%; color: var(--muted); }.composer-foot .error:not(:empty)::before { content: "→ "; color: var(--accent); }@media (max-width: 760px) {.notice { grid-template-columns: auto minmax(0, 1fr); padding-right: 44px; }1 unmodified line.notice-actions:has(#notice-retry[hidden]) { display: contents; }.notice-actions .icon-btn { position: absolute; top: 8px; right: 6px; }}362 unmodified lines363364365366367368369370193 unmodified lines56456556656756856957099 unmodified lines6706716726736746756761273 unmodified lines19501951195219531954195519561 unmodified line19581959196019611962196319641965362 unmodified lines.save-btn[data-saved="true"] { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1px rgba(127, 216, 166, 0.35); pointer-events: none; }.shot-actions.compare-actions { display: none; }#shot-bar[data-working] .shot-actions, #shot-bar[data-working] .back { visibility: hidden; }#shot-bar[data-working] .shot-meta { color: var(--faint); }.compare-hint { color: var(--faint); font-size: 12.5px; margin-right: 6px; }body[data-stage="confronto"] .shot-actions.compare-actions { display: flex; }body[data-stage="confronto"] .shot-actions.single-actions { display: none; }193 unmodified lines#prompt:focus { outline: none; }#prompt::placeholder { color: var(--faint); }.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }.pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }.pill {display: inline-flex;99 unmodified linesletter-spacing: 0.01em;}.panel-note { margin: 8px 0 0; color: var(--faint); font-size: 12px; }#pp-template-desc { min-height: 2.9em; }.row-head { display: flex; justify-content: space-between; align-items: baseline; }.row-head output { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }1273 unmodified lines.notice-actions { display: flex; align-items: center; gap: 4px; }.notice-actions .detail-btn { height: 34px; padding: 0 12px; }.notice-actions .icon-btn { width: 34px; height: 34px; border: 0; }.composer-foot .error:not(:empty) { order: -1; flex-basis: 100%; color: var(--muted); }.composer-foot .error:not(:empty)::before { content: "→ "; color: var(--accent); }@media (max-width: 760px) {.notice { grid-template-columns: auto minmax(0, 1fr); padding-right: 44px; }1 unmodified line.notice-actions:has(#notice-retry[hidden]) { display: contents; }.notice-actions .icon-btn { position: absolute; top: 8px; right: 6px; }}/* Apertura: le viste compaiono già composte. */main { transition: opacity 0.2s ease, visibility 0s; }body[data-booting] main { opacity: 0; visibility: hidden; }@media (prefers-reduced-motion: reduce) { main { transition: none; } }
169 unmodified lines170171172173174175176169 unmodified linesshow({ node, text, section }) {if (!node.isConnected) return;this.target = node;this.el.querySelector(".tip-text").textContent = text;this.el.dataset.guide = section || "";this.el.querySelector(".tip-more").hidden = !section;this.el.hidden = false;169 unmodified lines170171172173174175176169 unmodified linesshow({ node, text, section }) {if (!node.isConnected) return;this.target = node;this.el.querySelector(".tip-text").textContent = window.PixI18n?.t ? window.PixI18n.t(text) : text;this.el.dataset.guide = section || "";this.el.querySelector(".tip-more").hidden = !section;this.el.hidden = false;
web/app.js+23-2
web/i18n/en.json+2-1
web/index.html+2-2
web/poster.js+3
web/style.css+10-2
web/tips.js+1-1