@tom2012/cc-web 2026.6.16-a → 2026.6.17-a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +2 -0
- package/backend/dist/index.d.ts.map +1 -1
- package/backend/dist/index.js +2 -0
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/routes/sync.d.ts.map +1 -1
- package/backend/dist/routes/sync.js +33 -11
- package/backend/dist/routes/sync.js.map +1 -1
- package/backend/dist/routes/todos.d.ts +3 -0
- package/backend/dist/routes/todos.d.ts.map +1 -0
- package/backend/dist/routes/todos.js +86 -0
- package/backend/dist/routes/todos.js.map +1 -0
- package/backend/dist/sync-service.d.ts +18 -7
- package/backend/dist/sync-service.d.ts.map +1 -1
- package/backend/dist/sync-service.js +72 -26
- package/backend/dist/sync-service.js.map +1 -1
- package/backend/dist/todos.d.ts +43 -0
- package/backend/dist/todos.d.ts.map +1 -0
- package/backend/dist/todos.js +184 -0
- package/backend/dist/todos.js.map +1 -0
- package/frontend/dist/assets/ChatOverlay-Jcso3jnE.js +13 -0
- package/frontend/dist/assets/{ClaudeMemPage-D0QSs5Q0.js → ClaudeMemPage-egGwexFX.js} +1 -1
- package/frontend/dist/assets/{GraphPreview-DR8V3Zi6.js → GraphPreview-CYBEhXG-.js} +2 -2
- package/frontend/dist/assets/{MobilePage-BphvlWK1.js → MobilePage-tc43L2Lz.js} +3 -3
- package/frontend/dist/assets/NotebookPage-Dy1fFqcp.js +13 -0
- package/frontend/dist/assets/{OfficePreview-DG0WM5Rb.js → OfficePreview-DtFr2tIA.js} +2 -2
- package/frontend/dist/assets/{PdfPreview-v-3sq-AX.js → PdfPreview-jE4EtPVP.js} +1 -1
- package/frontend/dist/assets/{ProjectPage-BVpP7jop.js → ProjectPage-BURCf2Do.js} +5 -5
- package/frontend/dist/assets/ProjectSettingsPage-BSS5ICpz.js +13 -0
- package/frontend/dist/assets/{SettingsPage-8ZlrZoHc.js → SettingsPage-Bg1PltuQ.js} +1 -1
- package/frontend/dist/assets/{SkillHubPage-Zo61Va6p.js → SkillHubPage-Dkfphglo.js} +1 -1
- package/frontend/dist/assets/{check-circle-2-BUUiam-3.js → check-circle-2-D4xZVklI.js} +1 -1
- package/frontend/dist/assets/{chevron-down-DrKithBI.js → chevron-down-Bzyofau8.js} +1 -1
- package/frontend/dist/assets/{file-text-paqIXkax.js → file-text-eaaujWBr.js} +1 -1
- package/frontend/dist/assets/{index-D8nRRr6l.js → index-BN_T0UV9.js} +1 -1
- package/frontend/dist/assets/index-BRZSUCNz.js +13 -0
- package/frontend/dist/assets/{index-C4oOqDKN.js → index-BXMeGbDt.js} +1 -1
- package/frontend/dist/assets/{index-CrWOYDYH.css → index-CgRMBOJu.css} +1 -1
- package/frontend/dist/assets/index-DXjluyd1.js +75 -0
- package/frontend/dist/assets/{jszip.min-CM_vUoB1.js → jszip.min-DPhtdqr8.js} +1 -1
- package/frontend/dist/assets/{save-Cqgk43nV.js → save-B8Uv2Egn.js} +1 -1
- package/frontend/dist/assets/{search-BsKUgW16.js → search-Duax5rfs.js} +1 -1
- package/frontend/dist/assets/{select-4YpThSl9.js → select-CbDg1CtL.js} +1 -1
- package/frontend/dist/assets/{tabs-CDMxLs18.js → tabs-8Bm08Uka.js} +1 -1
- package/frontend/dist/assets/{textarea-Bdi1f_K2.js → textarea-CpK1BCh-.js} +1 -1
- package/frontend/dist/index.html +2 -2
- package/package.json +1 -1
- package/frontend/dist/assets/ChatOverlay-B40mlJYb.js +0 -13
- package/frontend/dist/assets/NotebookPage-CSFtzV32.js +0 -1
- package/frontend/dist/assets/ProjectSettingsPage-D-jq_0nr.js +0 -13
- package/frontend/dist/assets/clock-_H5KhCWu.js +0 -7
- package/frontend/dist/assets/index-Bnts3xfp.js +0 -75
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{c as e,aO as s,ba as a,aP as n,aR as r,r as t,bN as c,aQ as o,j as i,G as l,aK as d,aV as m,I as x,n as j,Y as p,Z as h,$ as u,a0 as y,bO as f,bP as b,bQ as g,W as N,d as w,X as v,m as k,bR as _,t as C,aW as S,aX as R}from"./index-DXjluyd1.js";import{T as z}from"./textarea-CpK1BCh-.js";import{S as A}from"./save-B8Uv2Egn.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.309.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const M=e("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]),D=e("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);
|
|
8
|
+
/**
|
|
9
|
+
* @license lucide-react v0.309.0 - ISC
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the ISC license.
|
|
12
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/function E(e){if(!e)return"";const s=Date.now()-e,a=Math.floor(s/6e4);if(a<1)return"just now";if(a<60)return`${a}m`;const n=Math.floor(a/60);return n<24?`${n}h`:new Date(e).toLocaleString()}function I(){const{t:e}=s(),{id:I}=a(),O=n(),P=r(e=>e.projects.find(e=>e.id===I)),[$,T]=t.useState("loading"),[Q,W]=t.useState(null),[Z,B]=t.useState(""),[G,H]=t.useState(""),[K,L]=t.useState(!1),[V,X]=t.useState(!1),[Y,q]=t.useState(0),[F,J]=t.useState(!1),U=t.useCallback(async()=>{if(I)try{const e=await c(I);W(e),B(e.path),H(e.excludes.join("\n")),T("ready")}catch(e){T(e instanceof Error&&/forbidden/i.test(e.message)?"forbidden":"error")}},[I]);t.useEffect(()=>{U()},[U]),o({onStart:e=>{e.projectId===I&&(X(!0),q(0))},onProgress:e=>{e.projectId===I&&q(e.filesTransferred)},onDone:e=>{e.projectId===I&&(X(!1),q(0),U())}});const ee=(null==P?void 0:P.name)??I??"",se=i.jsx("header",{className:"border-b sticky top-0 bg-background z-10",children:i.jsxs("div",{className:"w-full px-4 sm:px-6 h-14 flex items-center gap-3",children:[i.jsxs(l,{variant:"ghost",size:"sm",onClick:()=>O("/"),children:[i.jsx(d,{className:"h-4 w-4 mr-1"}),e("projsync.back")]}),i.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[i.jsx(m,{className:"h-5 w-5 shrink-0"}),i.jsx("span",{className:"font-semibold text-lg truncate",children:ee}),i.jsxs("span",{className:"text-muted-foreground text-sm shrink-0",children:["· ",e("projsync.title")]})]})]})});if("loading"===$)return i.jsx("div",{className:"min-h-screen bg-background",children:se});if("forbidden"===$||"error"===$)return i.jsxs("div",{className:"min-h-screen bg-background",children:[se,i.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-20 text-center",children:[i.jsx(M,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),i.jsx("p",{className:"text-muted-foreground text-sm",children:e("forbidden"===$?"projsync.forbidden":"projsync.load_error")})]})]});const ae=Q,ne=!!ae.path;return i.jsxs("div",{className:"min-h-screen bg-background",children:[se,i.jsxs("main",{className:"max-w-2xl mx-auto px-4 py-8 space-y-6",children:[!ae.connectionReady&&i.jsxs("div",{className:"rounded-lg border border-amber-500/40 bg-amber-500/10 px-4 py-3 text-sm",children:[e("projsync.no_connection")," ",i.jsx("button",{className:"underline hover:text-foreground",onClick:()=>O("/settings"),children:e("projsync.go_global")})]}),i.jsxs("section",{className:"space-y-2",children:[i.jsxs("label",{className:"text-sm font-medium flex items-center gap-2",children:[i.jsx(D,{className:"h-4 w-4 text-muted-foreground"}),e("projsync.remote_path")]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(x,{value:Z,onChange:e=>B(e.target.value),placeholder:"/home/user/backups/my-project",spellCheck:!1}),i.jsxs(l,{type:"button",variant:"outline",className:"shrink-0",onClick:()=>J(!0),disabled:!ae.connectionReady,title:ae.connectionReady?e("projsync.browse"):e("projsync.no_connection"),children:[i.jsx(j,{className:"h-4 w-4 mr-1"}),e("projsync.browse")]})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:e("projsync.remote_path_hint")})]}),i.jsx(p,{open:F,onOpenChange:J,children:i.jsxs(h,{className:"sm:max-w-lg",children:[i.jsx(u,{children:i.jsx(y,{children:e("projsync.browse_title")})}),i.jsx(f,{browse:g,createDir:b,initialPath:Z.trim()||void 0,onSelect:e=>{B(e),J(!1)}})]})}),i.jsxs("section",{className:"space-y-2",children:[i.jsx("label",{className:"text-sm font-medium",children:e("projsync.excludes")}),i.jsx(z,{value:G,onChange:e=>H(e.target.value),placeholder:"*.log\ntmp/",rows:4,spellCheck:!1,className:"font-mono text-xs"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:e("projsync.excludes_hint")})]}),i.jsx("div",{className:"flex items-center gap-2",children:i.jsxs(l,{onClick:()=>{(async()=>{if(I){L(!0);try{const s=G.split("\n").map(e=>e.trim()).filter(Boolean),a=await _(I,{path:Z.trim(),excludes:s});W(a),B(a.path),H(a.excludes.join("\n")),C.success(e("projsync.saved"))}catch(s){C.error(s instanceof Error?s.message:e("projsync.save_failed"))}finally{L(!1)}}})()},disabled:K,children:[K?i.jsx(N,{className:"h-4 w-4 mr-2 animate-spin"}):i.jsx(A,{className:"h-4 w-4 mr-2"}),e("projsync.save")]})}),i.jsxs("section",{className:"rounded-xl border border-border bg-card p-4 space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:e("projsync.status")}),i.jsx("span",{className:w("font-medium",ae.dirty?"text-amber-500":ne?"text-green-500":"text-muted-foreground"),children:ne?ae.dirty?e("projsync.dirty"):e("projsync.synced"):e("projsync.not_configured")})]}),i.jsxs("div",{className:"flex items-center justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:e("projsync.last_sync")}),i.jsx("span",{children:ae.lastSyncAt?E(ae.lastSyncAt):e("projsync.never")})]}),i.jsxs("div",{className:"flex items-center justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:e("projsync.direction")}),i.jsx("span",{className:"capitalize",children:ae.direction})]}),i.jsx("div",{className:"flex items-center gap-2 pt-1",children:V?i.jsxs(l,{variant:"outline",size:"sm",onClick:()=>{(async()=>{if(I)try{await S(I)}catch{}})()},children:[i.jsx(v,{className:"h-4 w-4 mr-1"}),e("projsync.cancel"),Y>0?` (${Y})`:""]}):i.jsxs(l,{size:"sm",onClick:()=>{(async()=>{if(I){X(!0);try{const s=await R(I);s.ok?C.success(e("projsync.sync_done",{files:s.filesTransferred})):C.error(e("projsync.sync_failed_reason",{reason:s.reason??""}))}catch(s){C.error(s instanceof Error?s.message:e("projsync.sync_failed"))}finally{X(!1),U()}}})()},disabled:!ne||!ae.connectionReady,title:ne?void 0:e("projsync.set_path_first"),children:[i.jsx(k,{className:"h-4 w-4 mr-1"}),e("projsync.sync_now")]})})]})]})]})}export{I as ProjectSettingsPage};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as e,r as s,ad as t,bd as a,j as n,af as c,ae as l,be as i,a9 as r,d as o,aO as d,aQ as h,bf as m,t as x,a2 as u,I as p,G as j,W as g,X as b,D as y,bg as f,bh as _,bi as v,bj as k,u as N,bk as w,T as C,bl as S,bm as M,bn as T,bo as E,bp as P,aP as R,bq as I,br as H,i as z,S as F,bs as L,aK as q,O as A,s as O,bt as V}from"./index-
|
|
1
|
+
import{c as e,r as s,ad as t,bd as a,j as n,af as c,ae as l,be as i,a9 as r,d as o,aO as d,aQ as h,bf as m,t as x,a2 as u,I as p,G as j,W as g,X as b,D as y,bg as f,bh as _,bi as v,bj as k,u as N,bk as w,T as C,bl as S,bm as M,bn as T,bo as E,bp as P,aP as R,bq as I,br as H,i as z,S as F,bs as L,aK as q,O as A,s as O,bt as V}from"./index-DXjluyd1.js";import{U as G,T as U,a as B,b as D,c as Q}from"./tabs-8Bm08Uka.js";import{u as W,S as Z,a as $,b as K,d as X,e as J}from"./select-CbDg1CtL.js";import{S as Y}from"./save-B8Uv2Egn.js";import{C as ee}from"./check-circle-2-D4xZVklI.js";import"./index-BXMeGbDt.js";import"./chevron-down-Bzyofau8.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.309.0 - ISC
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as e,aP as s,r as t,bv as a,bw as r,t as n,bx as l,by as i,bz as c,ar as d,bA as o,j as m,G as x,aK as u,d as p,I as h,T as g,y as f,D as j,aL as b,aM as y,A as N,aw as v,aC as k}from"./index-
|
|
1
|
+
import{c as e,aP as s,r as t,bv as a,bw as r,t as n,bx as l,by as i,bz as c,ar as d,bA as o,j as m,G as x,aK as u,d as p,I as h,T as g,y as f,D as j,aL as b,aM as y,A as N,aw as v,aC as k}from"./index-DXjluyd1.js";import{S as w}from"./search-Duax5rfs.js";import{C}from"./chevron-down-Bzyofau8.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.309.0 - ISC
|
|
4
4
|
*
|