This build was committed by a bot.

This commit is contained in:
github-actions[bot]
2026-04-10 02:36:04 +00:00
parent 44a4905463
commit c60cf5930b
3 changed files with 23 additions and 17 deletions

View File

@@ -1625,13 +1625,20 @@ var jars = {
var ensureJars = async () => {
if (jars.html && jars.extension) return jars;
const mod = await __vitePreload(() => import("https://medv.io/codejar/codejar.js"), []), CodeJar = mod.CodeJar || mod.default, hl = (e) => {
e.textContent = e.textContent;
window.hljs.highlightElement(e);
e.innerHTML = hljs.highlight(e.textContent, { language: "xml" }).value;
};
el.htmlEditor.classList.add("language-xml");
el.extensionHtmlEditor.classList.add("language-xml");
if (!jars.html) jars.html = CodeJar(el.htmlEditor, hl, { tab: " " });
if (!jars.extension) jars.extension = CodeJar(el.extensionHtmlEditor, hl, { tab: " " });
if (!jars.html) jars.html = CodeJar(el.htmlEditor, hl, {
tab: " ",
catchTab: true,
preserveIndent: true,
addClosing: true
});
if (!jars.extension) jars.extension = CodeJar(el.extensionHtmlEditor, hl, {
tab: " ",
catchTab: true,
preserveIndent: true,
addClosing: true
});
return jars;
};
var openedHTML = false;
@@ -1715,8 +1722,8 @@ $(el.settingsForm).on("submit", async (e) => {
SUNE.include_thoughts = el.set_include_thoughts.checked;
SUNE.ignore_master_prompt = el.set_ignore_master_prompt.checked;
if (openedHTML) {
SUNE.html = jars.html ? jars.html.toString() : el.htmlEditor.textContent;
SUNE.extension_html = jars.extension ? jars.extension.toString() : el.extensionHtmlEditor.textContent;
SUNE.html = jars.html.toString();
SUNE.extension_html = jars.extension.toString();
}
closeSettings();
await reflectActiveSune();
@@ -2291,19 +2298,18 @@ $(el.pasteSystemPrompt).on("click", async () => {
el.set_system_prompt.value = await navigator.clipboard.readText();
} catch {}
});
var getActiveHtmlParts = () => !el.htmlEditor.classList.contains("hidden") ? [el.htmlEditor, jars.html] : [el.extensionHtmlEditor, jars.extension];
var getActiveJar = () => !el.htmlEditor.classList.contains("hidden") ? jars.html : jars.extension;
$(el.copyHTML).on("click", async () => {
try {
const [editor, jar] = getActiveHtmlParts();
await navigator.clipboard.writeText(jar ? jar.toString() : editor.textContent || "");
const jar = getActiveJar();
await navigator.clipboard.writeText(jar ? jar.toString() : "");
} catch {}
});
$(el.pasteHTML).on("click", async () => {
try {
const t = await navigator.clipboard.readText();
const [editor, jar] = getActiveHtmlParts();
if (jar && jar.updateCode) jar.updateCode(t);
else if (editor) editor.textContent = t;
const jar = getActiveJar();
if (jar) jar.updateCode(t);
} catch {}
});
Object.assign(window, {
@@ -2368,7 +2374,7 @@ Object.assign(window, {
syncActiveThread,
syncWhileBusy,
onForeground,
getActiveHtmlParts,
getActiveJar,
imgToWebp,
cacheStore,
ghApi,

2
dist/index.html vendored
View File

@@ -13,7 +13,7 @@
<script defer src="//unpkg.com/alpinejs"></script>
<script type="module" crossorigin src="/assets/index-Bnq7_qtf.js"></script>
<script type="module" crossorigin src="/assets/index-BVIpvO57.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CLEI5Rwr.css">
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
<body class="bg-white text-gray-900 selection:bg-black/10" x-data @click.window="if($event.target.closest('button')) haptic(); if(!document.getElementById('threadPopover').contains($event.target)&&!$event.target.closest('[data-thread-menu]')) hideThreadPopover(); if(!document.getElementById('sunePopover').contains($event.target)&&!$event.target.closest('[data-sune-menu]')) hideSunePopover(); if(!document.getElementById('userMenu').contains($event.target)&&!document.getElementById('userMenuBtn').contains($event.target)) document.getElementById('userMenu').classList.add('hidden')">

2
dist/sw.js vendored
View File

@@ -1 +1 @@
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didnt register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const c=e=>i(e,t),l={module:{uri:t},exports:o,require:c};s[t]=Promise.all(n.map(e=>l[e]||c(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"ec1b648e62bd01f5cfd42986cf23f0f3"},{url:"assets/index-CLEI5Rwr.css",revision:null},{url:"assets/index-Bnq7_qtf.js",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didnt register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const c=e=>i(e,t),l={module:{uri:t},exports:o,require:c};s[t]=Promise.all(n.map(e=>l[e]||c(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"f97f00f5e88c1c74bea005375426e7ba"},{url:"assets/index-CLEI5Rwr.css",revision:null},{url:"assets/index-BVIpvO57.js",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});