mirror of
https://github.com/sune-org/sune.git
synced 2026-09-18 12:45:45 +00:00
This build was committed by a bot.
This commit is contained in:
@@ -923,8 +923,7 @@ var makeSune = (p = {}) => ({
|
|||||||
avatar: p.avatar || "",
|
avatar: p.avatar || "",
|
||||||
url: p.url || "",
|
url: p.url || "",
|
||||||
updatedAt: p.updatedAt || Date.now(),
|
updatedAt: p.updatedAt || Date.now(),
|
||||||
settings: Object.assign({}, defaultSettings, p.settings || {}),
|
settings: Object.assign({}, defaultSettings, p.settings || {})
|
||||||
storage: p.storage || {}
|
|
||||||
});
|
});
|
||||||
var sunes = (su.load() || []).map(makeSune);
|
var sunes = (su.load() || []).map(makeSune);
|
||||||
var SUNE = window.SUNE = new Proxy({
|
var SUNE = window.SUNE = new Proxy({
|
||||||
@@ -1078,7 +1077,7 @@ var SUNE = window.SUNE = new Proxy({
|
|||||||
if (!a) return false;
|
if (!a) return false;
|
||||||
const i = sunes.findIndex((s) => s.id === a.id);
|
const i = sunes.findIndex((s) => s.id === a.id);
|
||||||
if (i < 0) return false;
|
if (i < 0) return false;
|
||||||
const isTopLevel = /^(name|avatar|url|pinned|storage)$/.test(p), target = isTopLevel ? sunes[i] : sunes[i].settings;
|
const isTopLevel = /^(name|avatar|url|pinned)$/.test(p), target = isTopLevel ? sunes[i] : sunes[i].settings;
|
||||||
let value = v;
|
let value = v;
|
||||||
if (!isTopLevel) {
|
if (!isTopLevel) {
|
||||||
if (p === "system_prompt") value = v || "";
|
if (p === "system_prompt") value = v || "";
|
||||||
@@ -2252,8 +2251,8 @@ el.importAccountSettingsInput.onchange = async (e) => {
|
|||||||
apiKeyOpenRouter: "apiKeyOR",
|
apiKeyOpenRouter: "apiKeyOR",
|
||||||
apiKeyOpenAI: "apiKeyOAI",
|
apiKeyOpenAI: "apiKeyOAI",
|
||||||
apiKeyGoogle: "apiKeyG",
|
apiKeyGoogle: "apiKeyG",
|
||||||
apiKeyClaude: "apiKeyC",
|
apiKeyClaude: "apiKeyClaude",
|
||||||
apiKeyCloudflare: "apiKeyCF",
|
apiKeyCloudflare: "apiKeyCloudflare",
|
||||||
customKey1: "customKey1",
|
customKey1: "customKey1",
|
||||||
masterPrompt: "masterPrompt",
|
masterPrompt: "masterPrompt",
|
||||||
titleModel: "titleModel",
|
titleModel: "titleModel",
|
||||||
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -13,7 +13,7 @@
|
|||||||
<script defer src="//unpkg.com/alpinejs"></script>
|
<script defer src="//unpkg.com/alpinejs"></script>
|
||||||
|
|
||||||
|
|
||||||
<script type="module" crossorigin src="/assets/index-CAlY_Fnl.js"></script>
|
<script type="module" crossorigin src="/assets/index-DSULKYNe.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-DUC1RW1F.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-DUC1RW1F.css">
|
||||||
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
|
<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')">
|
<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
2
dist/sw.js
vendored
@@ -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} 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 l=e=>i(e,t),d={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map(e=>d[e]||l(e))).then(e=>(r(...e),o))}}define(["./workbox-9c191d2f"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"a803b47dd5e78160a07e19aeed859e51"},{url:"assets/index-DUC1RW1F.css",revision:null},{url:"assets/index-CAlY_Fnl.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),d={module:{uri:t},exports:o,require:c};s[t]=Promise.all(n.map(e=>d[e]||c(e))).then(e=>(r(...e),o))}}define(["./workbox-9c191d2f"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"a5eb77c86e6543dd7b8f4cd4109829ce"},{url:"assets/index-DUC1RW1F.css",revision:null},{url:"assets/index-DSULKYNe.js",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