diff --git a/dist/assets/index-BNCMHwwm.js b/dist/assets/index-zttrb_rF.js
similarity index 99%
rename from dist/assets/index-BNCMHwwm.js
rename to dist/assets/index-zttrb_rF.js
index d2abd66..664a5c9 100644
--- a/dist/assets/index-BNCMHwwm.js
+++ b/dist/assets/index-zttrb_rF.js
@@ -731,7 +731,7 @@ ${sysPrompt}` }], max_tokens: 20, temperature: 0.2 }) });
};
const threadRow = (t) => {
const icon = t.type === "folder" ? "folder" : t.type === "file" ? "file-text" : "";
- return `
`;
+ return `${t.type === "file" ? "" : ``}
`;
};
let sortedThreads = [], isAddingThreads = false;
const THREAD_PAGE_SIZE = 50;
@@ -776,7 +776,14 @@ $(el.threadList).on("click", async (e) => {
const u2 = el.threadRepoInput.value.trim();
if (u2.startsWith("gh://")) {
const info = parseGhUrl(u2);
- window.open(`https://github.com/${info.owner}/${info.repo}/blob/${info.branch}/${id}`, "_blank");
+ try {
+ await navigator.clipboard.writeText(`${info.owner}/${info.repo}/${id}`);
+ const old = openBtn.innerHTML;
+ openBtn.innerHTML = ' Copied Path';
+ icons();
+ setTimeout(() => (openBtn.innerHTML = old, icons()), 1200);
+ } catch {
+ }
}
return;
}
@@ -899,16 +906,6 @@ $(el.threadPopover).on("click", async (e) => {
} else if (act === "export") {
const msgs = await localforage.getItem(prefix + th.id) || [];
dl(`thread-${(th.title || "thread").replace(/\W/g, "_")}-${ts()}.json`, { ...th, messages: msgs });
- } else if (act === "copy_path") {
- const u2 = el.threadRepoInput.value.trim();
- if (u2.startsWith("gh://")) {
- const info = parseGhUrl(u2);
- try {
- await navigator.clipboard.writeText(th.type === "file" ? th.id : `${info.owner}/${info.repo}/${th.id}`);
- alert("Path copied");
- } catch {
- }
- }
}
hideThreadPopover();
await THREAD.save();
diff --git a/dist/index.html b/dist/index.html
index b45aac3..fff72f4 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -12,7 +12,7 @@
-
+
@@ -75,7 +75,6 @@
-
@@ -195,6 +194,9 @@
+
+
+
diff --git a/dist/sw.js b/dist/sw.js
index 760c62f..d6678cc 100644
--- a/dist/sw.js
+++ b/dist/sw.js
@@ -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 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:"474e24940f3c2a0651c0199d8d9a5f5a"},{url:"assets/index-JLEDB1oP.css",revision:null},{url:"assets/index-BNCMHwwm.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 l=e=>i(e,t),c={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map(e=>c[e]||l(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:"b564c9ff10de4448e2dbe883175eb4e9"},{url:"assets/index-zttrb_rF.js",revision:null},{url:"assets/index-JLEDB1oP.css",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});