mirror of
https://github.com/multipleof4/sune.git
synced 2026-03-17 03:01:03 +00:00
This build was committed by a bot.
This commit is contained in:
@@ -29,5 +29,4 @@ mjx-container[jax="SVG"][display="true"] {
|
||||
mjx-container svg {
|
||||
max-width: 100%;
|
||||
}
|
||||
@keyframes sune-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
||||
.sune-generating { display: inline-block; animation: sune-spin 4s linear infinite; color: #9ca3af; }
|
||||
|
||||
@@ -390,7 +390,7 @@ const SUNE = window.SUNE = new Proxy({ get list() {
|
||||
}
|
||||
buf += delta;
|
||||
state.stream.text = buf;
|
||||
if (buf || assistantMsg.images && assistantMsg.images.length || done) renderMarkdown(suneBubble, partsToText(assistantMsg), { enhance: false });
|
||||
renderMarkdown(suneBubble, partsToText(assistantMsg), { enhance: false });
|
||||
assistantMsg.content[0].text = buf;
|
||||
if (done && !completed) {
|
||||
completed = true;
|
||||
@@ -596,11 +596,7 @@ const addMessage = window.addMessage = function(m, track = true) {
|
||||
if (m.role === "assistant") el.composer.dispatchEvent(new CustomEvent("sune:newSuneResponse", { detail: { message: m } }));
|
||||
return bubble;
|
||||
};
|
||||
const addSuneBubbleStreaming = (meta, id) => {
|
||||
const b = msgRow(Object.assign({ role: "assistant", id }, meta));
|
||||
b.innerHTML = '<span class="sune-generating">✺</span>';
|
||||
return b;
|
||||
};
|
||||
const addSuneBubbleStreaming = (meta, id) => msgRow(Object.assign({ role: "assistant", id }, meta));
|
||||
const clearChat = () => {
|
||||
el.suneHtml.dispatchEvent(new CustomEvent("sune:unmount"));
|
||||
state.messages = [];
|
||||
@@ -1091,7 +1087,7 @@ $(el.composer).on("submit", async (e) => {
|
||||
}
|
||||
buf += delta;
|
||||
state.stream.text = buf;
|
||||
if (buf || assistantMsg.images && assistantMsg.images.length || done) renderMarkdown(suneBubble, partsToText(assistantMsg), { enhance: false });
|
||||
renderMarkdown(suneBubble, partsToText(assistantMsg), { enhance: false });
|
||||
assistantMsg.content[0].text = buf;
|
||||
if (done && !completed) {
|
||||
completed = true;
|
||||
4
dist/index.html
vendored
4
dist/index.html
vendored
@@ -15,8 +15,8 @@
|
||||
|
||||
|
||||
|
||||
<script type="module" crossorigin src="/assets/index-Bm-nT3Zo.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BnyJnb2d.css">
|
||||
<script type="module" crossorigin src="/assets/index-nGmbmI3k.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')">
|
||||
<div class="flex flex-col h-dvh max-h-dvh overflow-hidden">
|
||||
|
||||
2
dist/sw.js
vendored
2
dist/sw.js
vendored
@@ -1 +1 @@
|
||||
if(!self.define){let e,n={};const s=(s,i)=>(s=new URL(s+".js",i).href,n[s]||new Promise(n=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=n,document.head.appendChild(e)}else e=s,importScripts(s),n()}).then(()=>{let e=n[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e}));self.define=(i,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(n[t])return;let o={};const d=e=>s(e,t),l={module:{uri:t},exports:o,require:d};n[t]=Promise.all(i.map(e=>l[e]||d(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:"13f8458aeb5438a63755301d6614e55d"},{url:"assets/index-BnyJnb2d.css",revision:null},{url:"assets/index-Bm-nT3Zo.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} didn’t 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:"07847cf230c90a293e9f06d73b428868"},{url:"assets/index-nGmbmI3k.js",revision:null},{url:"assets/index-CLEI5Rwr.css",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
|
||||
|
||||
Reference in New Issue
Block a user