trident-git 0.21.0 → 0.23.0

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.
Files changed (145) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +8 -8
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  6. package/.next/server/app/_global-error.html +2 -2
  7. package/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/_not-found.html +1 -1
  16. package/.next/server/app/_not-found.rsc +2 -2
  17. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  18. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  23. package/.next/server/app/api/credentials/github/repos/route_client-reference-manifest.js +1 -1
  24. package/.next/server/app/api/credentials/route_client-reference-manifest.js +1 -1
  25. package/.next/server/app/api/custom-scripts/route_client-reference-manifest.js +1 -1
  26. package/.next/server/app/api/fs/open/route_client-reference-manifest.js +1 -1
  27. package/.next/server/app/api/fs/open-terminal/route_client-reference-manifest.js +1 -1
  28. package/.next/server/app/api/fs/route_client-reference-manifest.js +1 -1
  29. package/.next/server/app/api/git/action/route.js +1 -1
  30. package/.next/server/app/api/git/action/route_client-reference-manifest.js +1 -1
  31. package/.next/server/app/api/git/branches/route_client-reference-manifest.js +1 -1
  32. package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/api/git/log/route_client-reference-manifest.js +1 -1
  34. package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -1
  35. package/.next/server/app/api/repos/clone/route.js +1 -1
  36. package/.next/server/app/api/repos/clone/route_client-reference-manifest.js +1 -1
  37. package/.next/server/app/api/repos/route.js +1 -1
  38. package/.next/server/app/api/repos/route_client-reference-manifest.js +1 -1
  39. package/.next/server/app/api/settings/route.js +1 -1
  40. package/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  41. package/.next/server/app/credentials/page_client-reference-manifest.js +1 -1
  42. package/.next/server/app/credentials.html +1 -1
  43. package/.next/server/app/credentials.rsc +2 -2
  44. package/.next/server/app/credentials.segments/_full.segment.rsc +2 -2
  45. package/.next/server/app/credentials.segments/_head.segment.rsc +1 -1
  46. package/.next/server/app/credentials.segments/_index.segment.rsc +2 -2
  47. package/.next/server/app/credentials.segments/_tree.segment.rsc +2 -2
  48. package/.next/server/app/credentials.segments/credentials/__PAGE__.segment.rsc +1 -1
  49. package/.next/server/app/credentials.segments/credentials.segment.rsc +1 -1
  50. package/.next/server/app/index.html +1 -1
  51. package/.next/server/app/index.rsc +4 -4
  52. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  53. package/.next/server/app/index.segments/_full.segment.rsc +4 -4
  54. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  55. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  56. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  57. package/.next/server/app/page.js +1 -1
  58. package/.next/server/app/page_client-reference-manifest.js +1 -1
  59. package/.next/server/app/workspace/changes/page_client-reference-manifest.js +1 -1
  60. package/.next/server/app/workspace/changes.html +1 -1
  61. package/.next/server/app/workspace/changes.rsc +4 -4
  62. package/.next/server/app/workspace/changes.segments/_full.segment.rsc +4 -4
  63. package/.next/server/app/workspace/changes.segments/_head.segment.rsc +1 -1
  64. package/.next/server/app/workspace/changes.segments/_index.segment.rsc +2 -2
  65. package/.next/server/app/workspace/changes.segments/_tree.segment.rsc +2 -2
  66. package/.next/server/app/workspace/changes.segments/workspace/changes/__PAGE__.segment.rsc +1 -1
  67. package/.next/server/app/workspace/changes.segments/workspace/changes.segment.rsc +1 -1
  68. package/.next/server/app/workspace/changes.segments/workspace.segment.rsc +3 -3
  69. package/.next/server/app/workspace/conflicts/page_client-reference-manifest.js +1 -1
  70. package/.next/server/app/workspace/conflicts.html +1 -1
  71. package/.next/server/app/workspace/conflicts.rsc +4 -4
  72. package/.next/server/app/workspace/conflicts.segments/_full.segment.rsc +4 -4
  73. package/.next/server/app/workspace/conflicts.segments/_head.segment.rsc +1 -1
  74. package/.next/server/app/workspace/conflicts.segments/_index.segment.rsc +2 -2
  75. package/.next/server/app/workspace/conflicts.segments/_tree.segment.rsc +2 -2
  76. package/.next/server/app/workspace/conflicts.segments/workspace/conflicts/__PAGE__.segment.rsc +1 -1
  77. package/.next/server/app/workspace/conflicts.segments/workspace/conflicts.segment.rsc +1 -1
  78. package/.next/server/app/workspace/conflicts.segments/workspace.segment.rsc +3 -3
  79. package/.next/server/app/workspace/custom-scripts/page_client-reference-manifest.js +1 -1
  80. package/.next/server/app/workspace/custom-scripts.html +1 -1
  81. package/.next/server/app/workspace/custom-scripts.rsc +4 -4
  82. package/.next/server/app/workspace/custom-scripts.segments/_full.segment.rsc +4 -4
  83. package/.next/server/app/workspace/custom-scripts.segments/_head.segment.rsc +1 -1
  84. package/.next/server/app/workspace/custom-scripts.segments/_index.segment.rsc +2 -2
  85. package/.next/server/app/workspace/custom-scripts.segments/_tree.segment.rsc +2 -2
  86. package/.next/server/app/workspace/custom-scripts.segments/workspace/custom-scripts/__PAGE__.segment.rsc +1 -1
  87. package/.next/server/app/workspace/custom-scripts.segments/workspace/custom-scripts.segment.rsc +1 -1
  88. package/.next/server/app/workspace/custom-scripts.segments/workspace.segment.rsc +3 -3
  89. package/.next/server/app/workspace/history/page_client-reference-manifest.js +1 -1
  90. package/.next/server/app/workspace/history.html +1 -1
  91. package/.next/server/app/workspace/history.rsc +4 -4
  92. package/.next/server/app/workspace/history.segments/_full.segment.rsc +4 -4
  93. package/.next/server/app/workspace/history.segments/_head.segment.rsc +1 -1
  94. package/.next/server/app/workspace/history.segments/_index.segment.rsc +2 -2
  95. package/.next/server/app/workspace/history.segments/_tree.segment.rsc +2 -2
  96. package/.next/server/app/workspace/history.segments/workspace/history/__PAGE__.segment.rsc +1 -1
  97. package/.next/server/app/workspace/history.segments/workspace/history.segment.rsc +1 -1
  98. package/.next/server/app/workspace/history.segments/workspace.segment.rsc +3 -3
  99. package/.next/server/app/workspace/page_client-reference-manifest.js +1 -1
  100. package/.next/server/app/workspace/settings/page.js +1 -1
  101. package/.next/server/app/workspace/settings/page_client-reference-manifest.js +1 -1
  102. package/.next/server/app/workspace/settings.html +1 -1
  103. package/.next/server/app/workspace/settings.rsc +5 -5
  104. package/.next/server/app/workspace/settings.segments/_full.segment.rsc +5 -5
  105. package/.next/server/app/workspace/settings.segments/_head.segment.rsc +1 -1
  106. package/.next/server/app/workspace/settings.segments/_index.segment.rsc +2 -2
  107. package/.next/server/app/workspace/settings.segments/_tree.segment.rsc +2 -2
  108. package/.next/server/app/workspace/settings.segments/workspace/settings/__PAGE__.segment.rsc +2 -2
  109. package/.next/server/app/workspace/settings.segments/workspace/settings.segment.rsc +1 -1
  110. package/.next/server/app/workspace/settings.segments/workspace.segment.rsc +3 -3
  111. package/.next/server/app/workspace/stashes/page_client-reference-manifest.js +1 -1
  112. package/.next/server/app/workspace/stashes.html +1 -1
  113. package/.next/server/app/workspace/stashes.rsc +4 -4
  114. package/.next/server/app/workspace/stashes.segments/_full.segment.rsc +4 -4
  115. package/.next/server/app/workspace/stashes.segments/_head.segment.rsc +1 -1
  116. package/.next/server/app/workspace/stashes.segments/_index.segment.rsc +2 -2
  117. package/.next/server/app/workspace/stashes.segments/_tree.segment.rsc +2 -2
  118. package/.next/server/app/workspace/stashes.segments/workspace/stashes/__PAGE__.segment.rsc +1 -1
  119. package/.next/server/app/workspace/stashes.segments/workspace/stashes.segment.rsc +1 -1
  120. package/.next/server/app/workspace/stashes.segments/workspace.segment.rsc +3 -3
  121. package/.next/server/app/workspace.html +1 -1
  122. package/.next/server/app/workspace.rsc +4 -4
  123. package/.next/server/app/workspace.segments/_full.segment.rsc +4 -4
  124. package/.next/server/app/workspace.segments/_head.segment.rsc +1 -1
  125. package/.next/server/app/workspace.segments/_index.segment.rsc +2 -2
  126. package/.next/server/app/workspace.segments/_tree.segment.rsc +2 -2
  127. package/.next/server/app/workspace.segments/workspace/__PAGE__.segment.rsc +1 -1
  128. package/.next/server/app/workspace.segments/workspace.segment.rsc +3 -3
  129. package/.next/server/app-paths-manifest.json +8 -8
  130. package/.next/server/chunks/392.js +1 -1
  131. package/.next/server/chunks/471.js +4 -4
  132. package/.next/server/chunks/835.js +1 -1
  133. package/.next/server/pages/404.html +1 -1
  134. package/.next/server/pages/500.html +2 -2
  135. package/.next/server/server-reference-manifest.json +1 -1
  136. package/.next/static/chunks/app/page-5d57a164d0ccbc1c.js +1 -0
  137. package/.next/static/chunks/app/workspace/layout-0cefd66558e505b9.js +1 -0
  138. package/.next/static/chunks/app/workspace/settings/page-5652b2fc8d6fae53.js +1 -0
  139. package/.next/static/css/{f943a3e3f58c6dae.css → 5dc69e0e51cd6b29.css} +1 -1
  140. package/package.json +1 -1
  141. package/.next/static/chunks/app/page-227166c3a6a28389.js +0 -1
  142. package/.next/static/chunks/app/workspace/layout-592fb52b395897f7.js +0 -1
  143. package/.next/static/chunks/app/workspace/settings/page-2208186347df52c5.js +0 -1
  144. /package/.next/static/{NuriFBKRsJ90vYpTa2ND7 → FBJX92PH4RIfLXKYyMc2I}/_buildManifest.js +0 -0
  145. /package/.next/static/{NuriFBKRsJ90vYpTa2ND7 → FBJX92PH4RIfLXKYyMc2I}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- exports.id=835,exports.ids=[835],exports.modules={10:(a,b,c)=>{"use strict";c.d(b,{L:()=>h});var d=c(1820),e=c.n(d),f=c(3873),g=c.n(f);function h(){let a=process.platform,b=e().homedir();return"win32"===a?g().join(process.env.APPDATA||g().join(b,"AppData","Roaming"),"trident"):"darwin"===a?g().join(b,"Library","Application Support","trident"):g().join(process.env.XDG_CONFIG_HOME||g().join(b,".config"),"trident")}},1883:(a,b,c)=>{Promise.resolve().then(c.bind(c,9671)),Promise.resolve().then(c.bind(c,6920))},3246:(a,b,c)=>{"use strict";c.d(b,{WorkspaceRepoOpenTracker:()=>g});var d=c(7484),e=c(9099),f=c(4626);function g(){(0,e.usePathname)(),(0,e.useSearchParams)().get("path");let{data:a}=(0,f.uG)();return(0,f.Lp)(),(0,d.useRef)(null),null}},4528:(a,b,c)=>{"use strict";c.d(b,{Ck:()=>n,Ir:()=>o,NV:()=>l,Xx:()=>s,cZ:()=>t,jD:()=>p,mt:()=>r});var d=c(9021),e=c.n(d),f=c(1820),g=c.n(f),h=c(3873),i=c.n(h);let j=(0,c(10).L)(),k=i().join(j,"repos.json");function l(){if(!e().existsSync(k))return[];try{let a=e().readFileSync(k,"utf-8");return JSON.parse(a)}catch(a){return console.error("Failed to parse repos.json",a),[]}}function m(a){if(void 0===a)return;if(null===a)return null;let b=a.trim();return b.length>0?b:null}function n(a,b,c){let d=l();if(d.find(b=>b.path===a))throw Error("Repository already exists");let f=m(c),g={path:a,name:b||i().basename(a),...f?{displayName:f}:{}};return d.push(g),e().writeFileSync(k,JSON.stringify(d,null,2)),g}function o(a,b){let c=l(),d=c.findIndex(b=>b.path===a);if(-1===d)throw Error("Repository not found");let f={...b};"displayName"in f&&(f.displayName=m(f.displayName));let g={...c[d],...f};return c[d]=g,e().writeFileSync(k,JSON.stringify(c,null,2)),g}function p(a,b){let{deleteLocalFolder:c=!1}=b||{};if(c){let b=i().resolve(a),c=i().parse(b).root;if(b===c)throw Error("Refusing to delete a filesystem root path");e().rmSync(b,{recursive:!0,force:!0})}let d=l();d=d.filter(b=>b.path!==a),e().writeFileSync(k,JSON.stringify(d,null,2))}e().existsSync(j)||e().mkdirSync(j,{recursive:!0});let q=i().join(j,"settings.json");function r(){let a={defaultRootFolder:null,sidebarCollapsed:!1};if(!e().existsSync(q))return a;try{let b=e().readFileSync(q,"utf-8"),c=JSON.parse(b);return{...a,...c}}catch(b){return console.error("Failed to parse settings.json",b),a}}function s(a){let b={...r(),...a};return e().writeFileSync(q,JSON.stringify(b,null,2)),b}function t(){let a=r();if(a.defaultRootFolder)try{if(e().existsSync(a.defaultRootFolder)&&e().statSync(a.defaultRootFolder).isDirectory())return a.defaultRootFolder}catch{}return g().homedir()}},4763:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>i});var d=c(5735),e=c(9671),f=c(1986),g=c(6920),h=c(4528);function i({children:a}){let b=(0,h.mt)().sidebarCollapsed??!1;return(0,d.jsxs)("div",{className:"flex min-h-screen max-h-screen bg-base-100",children:[(0,d.jsx)(f.Suspense,{fallback:null,children:(0,d.jsx)(g.WorkspaceRepoOpenTracker,{})}),(0,d.jsx)(f.Suspense,{fallback:(0,d.jsx)("div",{className:`${b?"w-16":"w-64"} border-r border-base-300 min-h-screen bg-base-200/30 flex items-center justify-center`,children:(0,d.jsx)("span",{className:"loading loading-spinner"})}),children:(0,d.jsx)(e.Sidebar,{initialCollapsed:b})}),(0,d.jsx)("main",{className:"flex-1 overflow-auto",children:a})]})}},5229:(a,b,c)=>{"use strict";c.d(b,{Sidebar:()=>l});var d=c(8249),e=c(4490),f=c(2116),g=c.n(f),h=c(781),i=c(9099),j=c(7484),k=c(4626);function l({className:a,initialCollapsed:b=!1}){let c=(0,i.usePathname)(),f=(0,i.useSearchParams)(),l=(0,i.useRouter)(),m=f.get("path")||"",n=(0,k.GK)(m||null),[o,p]=(0,j.useState)(b),[q,r]=(0,j.useState)(!1),[s,t]=(0,j.useState)(!1),u=(0,k.Y5)(),{data:v}=(0,k.en)(m||null),w=v?.conflicted?.length??0,x=v?.current?.trim(),y=n?(0,e.iu)(n):m?(0,e.kj)(m):"",z=(0,j.useCallback)(()=>{let a=!o;p(a),u.mutate({sidebarCollapsed:a})},[o,u]),A=(a="")=>{let b=new URLSearchParams(f.toString());return b.delete("tab"),m&&x?b.set("branch",x):m||b.delete("branch"),`/workspace${a}?${b.toString()}`},B=a=>"history"===a?"/workspace"===c||c.startsWith("/workspace/history"):"conflicts"===a?c.startsWith("/workspace/conflicts"):"custom-scripts"===a?c.startsWith("/workspace/custom-scripts"):"settings"===a?c.startsWith("/workspace/settings"):"stashes"===a&&c.startsWith("/workspace/stashes"),C=o?64:256;return(0,d.jsxs)("div",{style:{width:C},className:(0,e.cn)("pb-12 border-r border-base-300 min-h-screen bg-base-100 relative",q&&"transition-all duration-300",a),children:[(0,d.jsx)("div",{className:"space-y-4 py-4",children:(0,d.jsxs)("div",{className:(0,e.cn)("px-3 py-2",o&&"px-2"),children:[(0,d.jsxs)("div",{className:(0,e.cn)("mb-6 flex items-center",o?"flex-col gap-2 px-0":"justify-between px-4"),children:[!o&&(0,d.jsxs)("a",{href:"/",onClick:a=>{a.metaKey||a.ctrlKey||(a.preventDefault(),l.push("/"))},className:"flex items-center gap-2 hover:opacity-80 transition-opacity cursor-pointer text-base-content overflow-hidden",title:y?`${y} - Go to Home`:"Go to Home",children:[(0,d.jsx)("img",{src:"/icon.png",alt:"Trident",className:"h-5 w-5 flex-shrink-0"}),(0,d.jsx)("h2",{className:"text-lg font-bold tracking-tight truncate",children:y||"Trident"})]}),o&&(0,d.jsx)("a",{href:"/",onClick:a=>{a.metaKey||a.ctrlKey||(a.preventDefault(),l.push("/"))},className:"flex items-center justify-center h-8 w-8 hover:opacity-80 transition-opacity cursor-pointer",title:y?`${y} - Go to Home`:"Go to Home",children:(0,d.jsx)("img",{src:"/icon.png",alt:y||"Trident",className:"h-5 w-5"})}),(0,d.jsx)("div",{className:(0,e.cn)("flex items-center gap-1",o&&"flex-col"),children:(0,d.jsx)("button",{className:"btn btn-ghost btn-sm btn-square",onClick:z,title:o?"Expand sidebar":"Collapse sidebar",children:o?(0,d.jsx)("i",{className:"iconoir-fast-arrow-right text-[16px]","aria-hidden":"true"}):(0,d.jsx)("i",{className:"iconoir-fast-arrow-left text-[16px]","aria-hidden":"true"})})})]}),!o&&m&&(0,d.jsx)("div",{className:"px-4 mb-6",children:(0,d.jsx)("p",{className:"text-[10px] font-mono opacity-60 break-all border border-base-300 rounded p-2 bg-base-200/30",title:m,children:m})}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsxs)(g(),{href:A(),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("history")&&"btn-active font-medium"),title:o?"History":void 0,children:[(0,d.jsx)("i",{className:(0,e.cn)("iconoir-git-fork text-[20px]",!o&&"mr-2"),"aria-hidden":"true"}),!o&&"History"]}),(0,d.jsxs)(g(),{href:A("/conflicts"),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("conflicts")&&"btn-active font-medium"),title:o?`Conflicts${w>0?` (${w})`:""}`:void 0,children:[(0,d.jsxs)("div",{className:(0,e.cn)("relative flex items-center",!o&&"mr-2"),children:[(0,d.jsx)("i",{className:"iconoir-warning-triangle text-[20px]","aria-hidden":"true"}),o&&w>0&&(0,d.jsx)("span",{className:"absolute -top-1 -right-1 badge badge-error badge-xs scale-75",children:w>99?"99+":w})]}),!o&&(0,d.jsxs)("span",{className:"flex-1 flex justify-between items-center",children:["Conflicts",w>0&&(0,d.jsx)("span",{className:"badge badge-sm badge-error",children:w})]})]}),(0,d.jsxs)(g(),{href:A("/stashes"),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("stashes")&&"btn-active font-medium"),title:o?"Stashes":void 0,children:[(0,d.jsx)("i",{className:(0,e.cn)("iconoir-download-square text-[20px]",!o&&"mr-2"),"aria-hidden":"true"}),!o&&"Stashes"]}),(0,d.jsxs)(g(),{href:A("/custom-scripts"),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("custom-scripts")&&"btn-active font-medium"),title:o?"Custom scripts":void 0,children:[(0,d.jsx)("i",{className:(0,e.cn)("iconoir-terminal text-[20px]",!o&&"mr-2"),"aria-hidden":"true"}),!o&&"Custom scripts"]}),(0,d.jsxs)(g(),{href:A("/settings"),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("settings")&&"btn-active font-medium"),title:o?"Settings":void 0,children:[(0,d.jsx)("i",{className:(0,e.cn)("iconoir-settings text-[20px]",!o&&"mr-2"),"aria-hidden":"true"}),!o&&"Settings"]})]})]})}),(0,d.jsx)("div",{className:(0,e.cn)("absolute bottom-4 left-0 w-full",o?"px-2":"px-6"),children:(0,d.jsxs)("div",{className:(0,e.cn)("flex items-center",o?"justify-center":"gap-2"),children:[(0,d.jsx)("button",{className:"btn btn-ghost btn-sm btn-square",onClick:()=>t(!0),title:o?"Preferences":void 0,children:(0,d.jsx)("i",{className:"iconoir-ios-settings text-[20px]","aria-hidden":"true"})}),!o&&(0,d.jsx)("span",{className:"text-xs opacity-70",children:"Preferences"})]})}),(0,d.jsx)(h.g,{open:s,onOpenChange:t})]})}},6920:(a,b,c)=>{"use strict";c.d(b,{WorkspaceRepoOpenTracker:()=>d});let d=(0,c(7943).registerClientReference)(function(){throw Error("Attempted to call WorkspaceRepoOpenTracker() from the server but WorkspaceRepoOpenTracker is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/trident/trident/src/components/workspace-repo-open-tracker.tsx","WorkspaceRepoOpenTracker")},7907:(a,b,c)=>{Promise.resolve().then(c.bind(c,5229)),Promise.resolve().then(c.bind(c,3246))},9671:(a,b,c)=>{"use strict";c.d(b,{Sidebar:()=>d});let d=(0,c(7943).registerClientReference)(function(){throw Error("Attempted to call Sidebar() from the server but Sidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/trident/trident/src/components/layout/sidebar.tsx","Sidebar")}};
1
+ exports.id=835,exports.ids=[835],exports.modules={10:(a,b,c)=>{"use strict";c.d(b,{L:()=>h});var d=c(1820),e=c.n(d),f=c(3873),g=c.n(f);function h(){let a=process.platform,b=e().homedir();return"win32"===a?g().join(process.env.APPDATA||g().join(b,"AppData","Roaming"),"trident"):"darwin"===a?g().join(b,"Library","Application Support","trident"):g().join(process.env.XDG_CONFIG_HOME||g().join(b,".config"),"trident")}},1883:(a,b,c)=>{Promise.resolve().then(c.bind(c,9671)),Promise.resolve().then(c.bind(c,6920))},3246:(a,b,c)=>{"use strict";c.d(b,{WorkspaceRepoOpenTracker:()=>g});var d=c(7484),e=c(9099),f=c(4626);function g(){(0,e.usePathname)(),(0,e.useSearchParams)().get("path");let{data:a}=(0,f.uG)();return(0,f.Lp)(),(0,d.useRef)(null),null}},4528:(a,b,c)=>{"use strict";c.d(b,{Ck:()=>n,Ir:()=>o,NV:()=>l,Xx:()=>s,cZ:()=>t,jD:()=>p,mt:()=>r});var d=c(9021),e=c.n(d),f=c(1820),g=c.n(f),h=c(3873),i=c.n(h);let j=(0,c(10).L)(),k=i().join(j,"repos.json");function l(){if(!e().existsSync(k))return[];try{let a=e().readFileSync(k,"utf-8");return JSON.parse(a)}catch(a){return console.error("Failed to parse repos.json",a),[]}}function m(a){if(void 0===a)return;if(null===a)return null;let b=a.trim();return b.length>0?b:null}function n(a,b,c){let d=l();if(d.find(b=>b.path===a))throw Error("Repository already exists");let f=m(c),g={path:a,name:b||i().basename(a),...f?{displayName:f}:{}};return d.push(g),e().writeFileSync(k,JSON.stringify(d,null,2)),g}function o(a,b){let c=l(),d=c.findIndex(b=>b.path===a);if(-1===d)throw Error("Repository not found");let f={...b};"displayName"in f&&(f.displayName=m(f.displayName)),"icon"in f&&(f.icon=function(a){if(void 0===a)return;if(null===a)return null;let b=a.trim();return b.length>0?b:null}(f.icon));let g={...c[d],...f};return c[d]=g,e().writeFileSync(k,JSON.stringify(c,null,2)),g}function p(a,b){let{deleteLocalFolder:c=!1}=b||{};if(c){let b=i().resolve(a),c=i().parse(b).root;if(b===c)throw Error("Refusing to delete a filesystem root path");e().rmSync(b,{recursive:!0,force:!0})}let d=l();d=d.filter(b=>b.path!==a),e().writeFileSync(k,JSON.stringify(d,null,2))}e().existsSync(j)||e().mkdirSync(j,{recursive:!0});let q=i().join(j,"settings.json");function r(){let a={defaultRootFolder:null,sidebarCollapsed:!1};if(!e().existsSync(q))return a;try{let b=e().readFileSync(q,"utf-8"),c=JSON.parse(b);return{...a,...c}}catch(b){return console.error("Failed to parse settings.json",b),a}}function s(a){let b={...r(),...a};return e().writeFileSync(q,JSON.stringify(b,null,2)),b}function t(){let a=r();if(a.defaultRootFolder)try{if(e().existsSync(a.defaultRootFolder)&&e().statSync(a.defaultRootFolder).isDirectory())return a.defaultRootFolder}catch{}return g().homedir()}},4763:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>i});var d=c(5735),e=c(9671),f=c(1986),g=c(6920),h=c(4528);function i({children:a}){let b=(0,h.mt)().sidebarCollapsed??!1;return(0,d.jsxs)("div",{className:"flex min-h-screen max-h-screen bg-base-100",children:[(0,d.jsx)(f.Suspense,{fallback:null,children:(0,d.jsx)(g.WorkspaceRepoOpenTracker,{})}),(0,d.jsx)(f.Suspense,{fallback:(0,d.jsx)("div",{className:`${b?"w-16":"w-64"} border-r border-base-300 min-h-screen bg-base-200/30 flex items-center justify-center`,children:(0,d.jsx)("span",{className:"loading loading-spinner"})}),children:(0,d.jsx)(e.Sidebar,{initialCollapsed:b})}),(0,d.jsx)("main",{className:"flex-1 overflow-auto",children:a})]})}},5229:(a,b,c)=>{"use strict";c.d(b,{Sidebar:()=>l});var d=c(8249),e=c(4490),f=c(2116),g=c.n(f),h=c(781),i=c(9099),j=c(7484),k=c(4626);function l({className:a,initialCollapsed:b=!1}){let c=(0,i.usePathname)(),f=(0,i.useSearchParams)(),l=(0,i.useRouter)(),m=f.get("path")||"",n=(0,k.GK)(m||null),[o,p]=(0,j.useState)(b),[q,r]=(0,j.useState)(!1),[s,t]=(0,j.useState)(!1),u=(0,k.Y5)(),{data:v}=(0,k.en)(m||null),w=v?.conflicted?.length??0,x=v?.current?.trim(),y=n?(0,e.iu)(n):m?(0,e.kj)(m):"",z=(0,j.useCallback)(()=>{let a=!o;p(a),u.mutate({sidebarCollapsed:a})},[o,u]),A=(a="")=>{let b=new URLSearchParams(f.toString());return b.delete("tab"),m&&x?b.set("branch",x):m||b.delete("branch"),`/workspace${a}?${b.toString()}`},B=a=>"history"===a?"/workspace"===c||c.startsWith("/workspace/history"):"conflicts"===a?c.startsWith("/workspace/conflicts"):"custom-scripts"===a?c.startsWith("/workspace/custom-scripts"):"settings"===a?c.startsWith("/workspace/settings"):"stashes"===a&&c.startsWith("/workspace/stashes"),C=o?64:256;return(0,d.jsxs)("div",{style:{width:C},className:(0,e.cn)("pb-12 border-r border-base-300 min-h-screen bg-base-100 relative",q&&"transition-all duration-300",a),children:[(0,d.jsx)("div",{className:"space-y-4 py-4",children:(0,d.jsxs)("div",{className:(0,e.cn)("px-3 py-2",o&&"px-2"),children:[(0,d.jsxs)("div",{className:(0,e.cn)("mb-6 flex items-center",o?"flex-col gap-2 px-0":"justify-between px-4"),children:[!o&&(0,d.jsxs)("a",{href:"/",onClick:a=>{a.metaKey||a.ctrlKey||(a.preventDefault(),l.push("/"))},className:"flex items-center gap-2 hover:opacity-80 transition-opacity cursor-pointer text-base-content overflow-hidden",title:y?`${y} - Go to Home`:"Go to Home",children:[n?.icon?(0,d.jsx)("span",{className:"h-5 w-5 flex-shrink-0 flex items-center justify-center text-base leading-none","aria-hidden":"true",children:n.icon}):(0,d.jsx)("img",{src:"/icon.png",alt:"Trident",className:"h-5 w-5 flex-shrink-0"}),(0,d.jsx)("h2",{className:"text-lg font-bold tracking-tight truncate",children:y||"Trident"})]}),o&&(0,d.jsx)("a",{href:"/",onClick:a=>{a.metaKey||a.ctrlKey||(a.preventDefault(),l.push("/"))},className:"flex items-center justify-center h-8 w-8 hover:opacity-80 transition-opacity cursor-pointer",title:y?`${y} - Go to Home`:"Go to Home",children:n?.icon?(0,d.jsx)("span",{className:"h-5 w-5 flex items-center justify-center text-base leading-none","aria-hidden":"true",children:n.icon}):(0,d.jsx)("img",{src:"/icon.png",alt:y||"Trident",className:"h-5 w-5"})}),(0,d.jsx)("div",{className:(0,e.cn)("flex items-center gap-1",o&&"flex-col"),children:(0,d.jsx)("button",{className:"btn btn-ghost btn-sm btn-square",onClick:z,title:o?"Expand sidebar":"Collapse sidebar",children:o?(0,d.jsx)("i",{className:"iconoir-fast-arrow-right text-[16px]","aria-hidden":"true"}):(0,d.jsx)("i",{className:"iconoir-fast-arrow-left text-[16px]","aria-hidden":"true"})})})]}),!o&&m&&(0,d.jsx)("div",{className:"px-4 mb-6",children:(0,d.jsx)("p",{className:"text-[10px] font-mono opacity-60 break-all border border-base-300 rounded p-2 bg-base-200/30",title:m,children:m})}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsxs)(g(),{href:A(),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("history")&&"btn-active font-medium"),title:o?"History":void 0,children:[(0,d.jsx)("i",{className:(0,e.cn)("iconoir-git-fork text-[20px]",!o&&"mr-2"),"aria-hidden":"true"}),!o&&"History"]}),(0,d.jsxs)(g(),{href:A("/conflicts"),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("conflicts")&&"btn-active font-medium"),title:o?`Conflicts${w>0?` (${w})`:""}`:void 0,children:[(0,d.jsxs)("div",{className:(0,e.cn)("relative flex items-center",!o&&"mr-2"),children:[(0,d.jsx)("i",{className:"iconoir-warning-triangle text-[20px]","aria-hidden":"true"}),o&&w>0&&(0,d.jsx)("span",{className:"absolute -top-1 -right-1 badge badge-error badge-xs scale-75",children:w>99?"99+":w})]}),!o&&(0,d.jsxs)("span",{className:"flex-1 flex justify-between items-center",children:["Conflicts",w>0&&(0,d.jsx)("span",{className:"badge badge-sm badge-error",children:w})]})]}),(0,d.jsxs)(g(),{href:A("/stashes"),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("stashes")&&"btn-active font-medium"),title:o?"Stashes":void 0,children:[(0,d.jsx)("i",{className:(0,e.cn)("iconoir-download-square text-[20px]",!o&&"mr-2"),"aria-hidden":"true"}),!o&&"Stashes"]}),(0,d.jsxs)(g(),{href:A("/custom-scripts"),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("custom-scripts")&&"btn-active font-medium"),title:o?"Custom scripts":void 0,children:[(0,d.jsx)("i",{className:(0,e.cn)("iconoir-terminal text-[20px]",!o&&"mr-2"),"aria-hidden":"true"}),!o&&"Custom scripts"]}),(0,d.jsxs)(g(),{href:A("/settings"),className:(0,e.cn)("btn btn-ghost w-full justify-start font-normal",o?"px-0 justify-center":"",B("settings")&&"btn-active font-medium"),title:o?"Settings":void 0,children:[(0,d.jsx)("i",{className:(0,e.cn)("iconoir-settings text-[20px]",!o&&"mr-2"),"aria-hidden":"true"}),!o&&"Settings"]})]})]})}),(0,d.jsx)("div",{className:(0,e.cn)("absolute bottom-4 left-0 w-full",o?"px-2":"px-6"),children:(0,d.jsxs)("div",{className:(0,e.cn)("flex items-center",o?"justify-center":"gap-2"),children:[(0,d.jsx)("button",{className:"btn btn-ghost btn-sm btn-square",onClick:()=>t(!0),title:o?"Preferences":void 0,children:(0,d.jsx)("i",{className:"iconoir-ios-settings text-[20px]","aria-hidden":"true"})}),!o&&(0,d.jsx)("span",{className:"text-xs opacity-70",children:"Preferences"})]})}),(0,d.jsx)(h.g,{open:s,onOpenChange:t})]})}},6920:(a,b,c)=>{"use strict";c.d(b,{WorkspaceRepoOpenTracker:()=>d});let d=(0,c(7943).registerClientReference)(function(){throw Error("Attempted to call WorkspaceRepoOpenTracker() from the server but WorkspaceRepoOpenTracker is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/trident/trident/src/components/workspace-repo-open-tracker.tsx","WorkspaceRepoOpenTracker")},7907:(a,b,c)=>{Promise.resolve().then(c.bind(c,5229)),Promise.resolve().then(c.bind(c,3246))},9671:(a,b,c)=>{"use strict";c.d(b,{Sidebar:()=>d});let d=(0,c(7943).registerClientReference)(function(){throw Error("Attempted to call Sidebar() from the server but Sidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/trident/trident/src/components/layout/sidebar.tsx","Sidebar")}};
@@ -1 +1 @@
1
- <!DOCTYPE html><!--NuriFBKRsJ90vYpTa2ND7--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/22a5144ee8d83bca-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/7d4881bb7e1bf84d-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/b496025c9cd768cc.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/f943a3e3f58c6dae.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-fa8290bd9e479269.js"/><script src="/_next/static/chunks/4bd1b696-bf5e0dbacfa5baef.js" async=""></script><script src="/_next/static/chunks/3794-cd98b5cd5fb65b19.js" async=""></script><script src="/_next/static/chunks/main-app-8973e8f0b4650cba.js" async=""></script><script src="/_next/static/chunks/2176-c690bf31cb5e55b2.js" async=""></script><script src="/_next/static/chunks/2785-311f9f6f5a125e2c.js" async=""></script><script src="/_next/static/chunks/4200-109e711ca2590de5.js" async=""></script><script src="/_next/static/chunks/8645-c924b37013fd97cb.js" async=""></script><script src="/_next/static/chunks/app/layout-1eb3f74bfb86e3d5.js" async=""></script><link rel="preload" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css" as="style"/><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Trident</title><meta name="description" content="Git repository management tool"/><link rel="icon" href="/icon.png?91e8b75214a43d69" type="image/png" sizes="256x256"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_246ccd __variable_c29908 antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("data-theme","theme","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-fa8290bd9e479269.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2246,[\"2176\",\"static/chunks/2176-c690bf31cb5e55b2.js\",\"2785\",\"static/chunks/2785-311f9f6f5a125e2c.js\",\"4200\",\"static/chunks/4200-109e711ca2590de5.js\",\"8645\",\"static/chunks/8645-c924b37013fd97cb.js\",\"7177\",\"static/chunks/app/layout-1eb3f74bfb86e3d5.js\"],\"Providers\"]\n3:I[7121,[],\"\"]\n4:I[4581,[],\"\"]\n5:I[484,[],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n8:I[484,[],\"ViewportBoundary\"]\na:I[484,[],\"MetadataBoundary\"]\nc:I[7123,[],\"\"]\n:HL[\"/_next/static/media/22a5144ee8d83bca-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/7d4881bb7e1bf84d-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/b496025c9cd768cc.css\",\"style\"]\n:HL[\"/_next/static/css/f943a3e3f58c6dae.css\",\"style\"]\n:HL[\"https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"NuriFBKRsJ90vYpTa2ND7\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b496025c9cd768cc.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/f943a3e3f58c6dae.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"link\",null,{\"rel\":\"stylesheet\",\"href\":\"https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css\"}]}],[\"$\",\"body\",null,{\"className\":\"__variable_246ccd __variable_c29908 antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"d:I[6869,[],\"IconMark\"]\n7:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Trident\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Git repository management tool\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.png?91e8b75214a43d69\",\"type\":\"image/png\",\"sizes\":\"256x256\"}],[\"$\",\"$Ld\",\"3\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--FBJX92PH4RIfLXKYyMc2I--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/22a5144ee8d83bca-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/7d4881bb7e1bf84d-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/b496025c9cd768cc.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/5dc69e0e51cd6b29.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-fa8290bd9e479269.js"/><script src="/_next/static/chunks/4bd1b696-bf5e0dbacfa5baef.js" async=""></script><script src="/_next/static/chunks/3794-cd98b5cd5fb65b19.js" async=""></script><script src="/_next/static/chunks/main-app-8973e8f0b4650cba.js" async=""></script><script src="/_next/static/chunks/2176-c690bf31cb5e55b2.js" async=""></script><script src="/_next/static/chunks/2785-311f9f6f5a125e2c.js" async=""></script><script src="/_next/static/chunks/4200-109e711ca2590de5.js" async=""></script><script src="/_next/static/chunks/8645-c924b37013fd97cb.js" async=""></script><script src="/_next/static/chunks/app/layout-1eb3f74bfb86e3d5.js" async=""></script><link rel="preload" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css" as="style"/><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Trident</title><meta name="description" content="Git repository management tool"/><link rel="icon" href="/icon.png?91e8b75214a43d69" type="image/png" sizes="256x256"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_246ccd __variable_c29908 antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("data-theme","theme","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-fa8290bd9e479269.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2246,[\"2176\",\"static/chunks/2176-c690bf31cb5e55b2.js\",\"2785\",\"static/chunks/2785-311f9f6f5a125e2c.js\",\"4200\",\"static/chunks/4200-109e711ca2590de5.js\",\"8645\",\"static/chunks/8645-c924b37013fd97cb.js\",\"7177\",\"static/chunks/app/layout-1eb3f74bfb86e3d5.js\"],\"Providers\"]\n3:I[7121,[],\"\"]\n4:I[4581,[],\"\"]\n5:I[484,[],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n8:I[484,[],\"ViewportBoundary\"]\na:I[484,[],\"MetadataBoundary\"]\nc:I[7123,[],\"\"]\n:HL[\"/_next/static/media/22a5144ee8d83bca-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/7d4881bb7e1bf84d-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/b496025c9cd768cc.css\",\"style\"]\n:HL[\"/_next/static/css/5dc69e0e51cd6b29.css\",\"style\"]\n:HL[\"https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"FBJX92PH4RIfLXKYyMc2I\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b496025c9cd768cc.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/5dc69e0e51cd6b29.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"link\",null,{\"rel\":\"stylesheet\",\"href\":\"https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css\"}]}],[\"$\",\"body\",null,{\"className\":\"__variable_246ccd __variable_c29908 antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"d:I[6869,[],\"IconMark\"]\n7:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Trident\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Git repository management tool\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.png?91e8b75214a43d69\",\"type\":\"image/png\",\"sizes\":\"256x256\"}],[\"$\",\"$Ld\",\"3\",{}]]\n"])</script></body></html>
@@ -1,2 +1,2 @@
1
- <!DOCTYPE html><!--NuriFBKRsJ90vYpTa2ND7--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-fa8290bd9e479269.js"/><script src="/_next/static/chunks/4bd1b696-bf5e0dbacfa5baef.js" async=""></script><script src="/_next/static/chunks/3794-cd98b5cd5fb65b19.js" async=""></script><script src="/_next/static/chunks/main-app-8973e8f0b4650cba.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
- @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-fa8290bd9e479269.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[7121,[],\"\"]\n3:I[4581,[],\"\"]\n4:I[484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[484,[],\"ViewportBoundary\"]\n9:I[484,[],\"MetadataBoundary\"]\nb:I[7123,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"NuriFBKRsJ90vYpTa2ND7\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_global-error\",{\"children\":[\"__PAGE__\",{}]}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--FBJX92PH4RIfLXKYyMc2I--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-fa8290bd9e479269.js"/><script src="/_next/static/chunks/4bd1b696-bf5e0dbacfa5baef.js" async=""></script><script src="/_next/static/chunks/3794-cd98b5cd5fb65b19.js" async=""></script><script src="/_next/static/chunks/main-app-8973e8f0b4650cba.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
+ @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-fa8290bd9e479269.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[7121,[],\"\"]\n3:I[4581,[],\"\"]\n4:I[484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[484,[],\"ViewportBoundary\"]\n9:I[484,[],\"MetadataBoundary\"]\nb:I[7123,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"FBJX92PH4RIfLXKYyMc2I\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_global-error\",{\"children\":[\"__PAGE__\",{}]}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
@@ -1 +1 @@
1
- {"node":{},"edge":{},"encryptionKey":"7Bhken2fU7JV7UMXwv7TaL+T91/vCIp7TB6yoKdJwGo="}
1
+ {"node":{},"edge":{},"encryptionKey":"k7taKuY6LxcJIJJOJS9j2tHjAjpHg8PG4dVBkVTwBp0="}
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{3411:(e,t,s)=>{"use strict";s.d(t,{RepoList:()=>j});var a=s(5155),n=s(696),i=s(7702),r=s(2115),l=s(8500),o=s.n(l),c=s(3321),d=s(6848),p=s(6695),u=s(4131),h=s(8599),m=s(302);function x(e){try{if(e.startsWith("git@")){let t=e.match(/^git@([^:]+):/);return t?t[1]:null}return new URL(e).hostname}catch{return null}}function b(e){let t=e.trim().replace(/[?#].*$/,"").replace(/\/+$/,"");if(!t)return null;let s=Math.max(t.lastIndexOf("/"),t.lastIndexOf(":")),a=s>=0?t.slice(s+1):t,n=(a.endsWith(".git")?a.slice(0,-4):a).trim();return n.length>0?n:null}function f(e){return"github"===e.type?`GitHub (${e.username})`:`GitLab (${new URL(e.serverUrl).hostname} - ${e.username})`}function j(){let{data:e,isLoading:t}=(0,n.uG)(),{data:s}=(0,i.aX)(),l=(0,n.F3)(),j=(0,n.fr)(),y=(0,n.X0)(),[g,N]=(0,r.useState)(!1),[v,w]=(0,r.useState)(!1),[k,C]=(0,r.useState)(!1),[R,S]=(0,r.useState)(!1),[P,F]=(0,r.useState)(!1),[U,E]=(0,r.useState)(null),[I,$]=(0,r.useState)(null),[q,L]=(0,r.useState)(!1),[O,A]=(0,r.useState)(void 0),[D,T]=(0,r.useState)(""),[G,K]=(0,r.useState)(""),[z,M]=(0,r.useState)(""),[_,X]=(0,r.useState)(!1),[H,J]=(0,r.useState)("auto"),Q=(0,c.useRouter)(),W=()=>{C(!1),w(!1)};(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/settings");if(e.ok){let t=await e.json();A(t.resolvedDefaultFolder)}}catch(e){console.error("Failed to load settings:",e)}})()},[]);let Y=(0,r.useMemo)(()=>{if(!s?.length||!D.trim())return[];let e=x(D.trim());return e?s.filter(t=>"github"===t.type?"github.com"===e:x(t.serverUrl)===e):[]},[s,D]),B=Y[0]??null,V=(0,r.useMemo)(()=>{if(!s)return[];let e=new Set(Y.map(e=>e.id));return[...Y,...s.filter(t=>!e.has(t.id))]},[s,Y]),Z=(0,r.useMemo)(()=>"auto"===H?null:V.find(e=>e.id===H)??null,[H,V]),ee=Z?.type==="github"?Z.id:null,{data:et,isLoading:es,error:ea}=(0,i.Rp)(ee),en=async e=>{if(e)try{await l.mutateAsync({path:e}),Q.push(`/workspace?path=${encodeURIComponent(e)}`)}catch(t){let e=t instanceof Error?t.message:"Unknown error";e.includes("already exists")?(0,p.oR)({type:"warning",title:"Repository already added",description:"This repository is already in your list. Select it from the list to open it."}):(0,p.oR)({type:"error",title:"Failed to add repository",description:e})}},ei=async()=>{if(U)try{await l.mutateAsync({path:U,initializeIfNeeded:!0}),F(!1),E(null),Q.push(`/workspace?path=${encodeURIComponent(U)}`)}catch(t){let e=t instanceof Error?t.message:"Unknown error";(0,p.oR)({type:"error",title:"Failed to initialize repository",description:e})}},er=()=>{F(!1),E(null),N(!0)},el=e=>{T(e),_||M(b(e)??"")},eo=async()=>{let e=D.trim(),t=G.trim(),a=z.trim();if(!e)return void(0,p.oR)({type:"error",title:"Repository URL is required",description:"Enter a repository URL to clone."});if(!t)return void(0,p.oR)({type:"error",title:"Destination folder is required",description:"Select a local destination folder first."});let n=a||b(e);if(!n)return void(0,p.oR)({type:"error",title:"Folder name is required",description:"Provide a destination folder name for this clone."});try{let a=await j.mutateAsync({repoUrl:e,destinationParent:t,folderName:n,credentialId:"auto"===H?null:H}),i=s?.find(e=>e.id===a.usedCredentialId);(0,p.oR)({type:"success",title:"Repository cloned",description:i?`Cloned with ${f(i)}`:"Clone completed successfully."}),w(!1),C(!1),Q.push(`/workspace?path=${encodeURIComponent(a.path)}`)}catch(t){let e=t instanceof Error?t.message:"Unknown error";(0,p.oR)({type:"error",title:"Failed to clone repository",description:e})}},ec=async e=>{if(I)try{await y.mutateAsync({path:I.path,deleteLocalFolder:e}),S(!1),$(null)}catch(t){let e=t instanceof Error?t.message:"Unknown error";(0,p.oR)({type:"error",title:"Failed to delete repository",description:e})}};return((0,m.v)(R,()=>S(!1),()=>{y.isPending||ec(!1)}),(0,m.v)(v,W,()=>{j.isPending||eo()}),(0,m.v)(P,()=>{F(!1),E(null),N(!0)},()=>{l.isPending||ei()}),t)?(0,a.jsx)("div",{className:"p-12 text-center opacity-70",children:"Loading repositories..."}):(0,a.jsxs)("div",{className:"container mx-auto max-w-5xl py-12 px-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:"Repositories"}),(0,a.jsx)("p",{className:"text-sm opacity-70 mt-1",children:"Manage your git repositories."})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{className:"btn btn-square btn-ghost",onClick:()=>L(!0),title:"Settings",children:(0,a.jsx)("i",{className:"iconoir-ios-settings text-[20px]","aria-hidden":"true"})}),(0,a.jsxs)(o(),{href:"/credentials",className:"btn gap-2",children:[(0,a.jsx)("i",{className:"iconoir-key text-[20px]","aria-hidden":"true"}),"Credentials"]}),(0,a.jsxs)("button",{onClick:()=>{T(""),M(""),X(!1),J("auto"),K(O||""),w(!0)},className:"btn gap-2",children:[(0,a.jsx)("i",{className:"iconoir-git-fork text-[20px]","aria-hidden":"true"}),"Clone"]}),(0,a.jsxs)("button",{onClick:()=>N(!0),className:"btn btn-accent gap-2",children:[(0,a.jsx)("i",{className:"iconoir-plus-circle text-[20px]","aria-hidden":"true"}),"Add Repository"]})]})]}),(0,a.jsx)("div",{className:"overflow-x-auto border border-base-300 rounded-lg bg-base-100",children:(0,a.jsxs)("table",{className:"table w-full",children:[(0,a.jsx)("thead",{className:"bg-base-200/50",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Path"}),(0,a.jsx)("th",{className:"text-right",children:"Action"})]})}),(0,a.jsxs)("tbody",{children:[e?.length===0&&(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:3,className:"text-center py-12 text-muted-foreground",children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,a.jsx)("p",{children:"No repositories found."}),(0,a.jsx)("button",{className:"btn btn-link",onClick:()=>N(!0),children:"Add your first repository"})]})})}),e?.map(e=>{let t=(0,h.iu)(e);return(0,a.jsxs)("tr",{className:"hover:bg-base-200/30 cursor-pointer group",onClick:()=>Q.push(`/workspace?path=${encodeURIComponent(e.path)}`),children:[(0,a.jsx)("td",{children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[e.icon?(0,a.jsx)("span",{className:"text-[20px] leading-none w-5 text-center","aria-hidden":"true",children:e.icon}):(0,a.jsx)("i",{className:"iconoir-bookmark text-[20px] opacity-70 group-hover:text-primary transition-colors","aria-hidden":"true"}),(0,a.jsx)("span",{className:"font-bold text-sm",children:t})]})}),(0,a.jsx)("td",{className:"text-sm opacity-70 font-mono truncate max-w-xs",title:e.path,children:e.path}),(0,a.jsx)("td",{className:"text-right",children:(0,a.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,a.jsx)(o(),{href:`/workspace?path=${encodeURIComponent(e.path)}`,className:"btn btn-ghost btn-sm btn-square",onClick:e=>e.stopPropagation(),children:(0,a.jsx)("i",{className:"iconoir-arrow-right text-[16px]","aria-hidden":"true"})}),(0,a.jsx)("button",{className:"btn btn-ghost btn-sm btn-square text-error hover:bg-error/10",onClick:s=>{var a;return a={path:e.path,displayName:t},void(s.stopPropagation(),$(a),S(!0))},children:(0,a.jsx)("i",{className:"iconoir-trash text-[16px]","aria-hidden":"true"})})]})})]},e.path)})]})]})}),(0,a.jsx)(d.K,{open:g,onOpenChange:N,onSelect:(e,t)=>{if(e){if(t.isRepo)return void en(e);E(e),F(!0)}},initialPath:O}),(0,a.jsx)(u.g,{open:q,onOpenChange:L,onSettingsChange:e=>A(e.resolvedDefaultFolder)}),v&&(0,a.jsxs)("dialog",{className:"modal modal-open",children:[(0,a.jsxs)("div",{className:"modal-box max-w-2xl",children:[(0,a.jsx)("h3",{className:"font-bold text-lg",children:"Clone Repository"}),(0,a.jsx)("p",{className:"py-2 text-sm opacity-70",children:"Clone a remote repository into a local folder and add it to your repository list."}),(0,a.jsxs)("div",{className:"space-y-4 pt-2",children:[(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{className:"label",children:(0,a.jsx)("span",{className:"label-text",children:"Repository URL"})}),(0,a.jsx)("input",{type:"text",className:"input input-bordered w-full",placeholder:"https://github.com/org/repo.git",value:D,onChange:e=>el(e.target.value)})]}),(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{className:"label",children:(0,a.jsx)("span",{className:"label-text",children:"Destination Parent Folder"})}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{type:"text",className:"input input-bordered w-full font-mono text-sm",value:G,onChange:e=>K(e.target.value),placeholder:O||"/path/to/folder"}),(0,a.jsx)("button",{type:"button",className:"btn btn-outline",onClick:()=>C(!0),children:"Browse"})]})]}),(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{className:"label",children:(0,a.jsx)("span",{className:"label-text",children:"Destination Folder Name"})}),(0,a.jsx)("input",{type:"text",className:"input input-bordered w-full",value:z,onChange:e=>{X(!0),M(e.target.value)},placeholder:b(D)||"repository-name"})]}),(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{className:"label",children:(0,a.jsx)("span",{className:"label-text",children:"Credential"})}),(0,a.jsxs)("select",{className:"select select-bordered w-full",value:H,onChange:e=>J(e.target.value),children:[(0,a.jsx)("option",{value:"auto",children:B?`Auto detect (${f(B)})`:"Auto detect"}),V.map(e=>(0,a.jsx)("option",{value:e.id,children:f(e)},e.id))]}),D.trim()&&0===Y.length&&(0,a.jsx)("label",{className:"label",children:(0,a.jsx)("span",{className:"label-text-alt opacity-70",children:"No matching credential found for this URL. Clone will run without stored credentials unless you pick one."})}),ee&&(0,a.jsxs)("div",{className:"mt-3 border border-base-300 rounded-lg bg-base-200/30 p-2",children:[(0,a.jsx)("p",{className:"text-xs font-bold opacity-70 px-2 pb-2",children:"Your GitHub repositories (recently updated first)"}),es&&(0,a.jsx)("div",{className:"px-2 py-3 text-sm opacity-70",children:"Loading repositories..."}),!es&&ea&&(0,a.jsx)("div",{className:"px-2 py-3 text-sm text-error",children:ea instanceof Error?ea.message:"Failed to load repositories"}),!es&&!ea&&et?.length===0&&(0,a.jsx)("div",{className:"px-2 py-3 text-sm opacity-70",children:"No accessible repositories found for this account."}),!es&&!ea&&(et?.length??0)>0&&(0,a.jsx)("div",{className:"max-h-56 overflow-y-auto",children:et?.map(e=>(0,a.jsxs)("button",{type:"button",className:`w-full text-left px-2 py-2 rounded-md hover:bg-base-300/60 transition-colors ${D.trim()===e.cloneUrl?"bg-base-300/60":""}`,onClick:()=>el(e.cloneUrl),title:e.cloneUrl,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium truncate",children:e.fullName}),e.private&&(0,a.jsx)("span",{className:"text-[10px] uppercase tracking-wide opacity-70",children:"Private"})]}),(0,a.jsx)("div",{className:"text-xs font-mono opacity-60 truncate",children:e.cloneUrl})]},e.id))})]})]})]}),(0,a.jsxs)("div",{className:"modal-action",children:[(0,a.jsx)("button",{className:"btn",onClick:W,disabled:j.isPending,children:"Cancel"}),(0,a.jsx)("button",{className:"btn btn-primary",onClick:eo,disabled:j.isPending,children:j.isPending?(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"loading loading-spinner loading-xs"}),"Cloning..."]}):"Clone"})]})]}),(0,a.jsx)("form",{method:"dialog",className:"modal-backdrop",children:(0,a.jsx)("button",{onClick:W,children:"close"})})]}),(0,a.jsx)(d.K,{open:k,onOpenChange:C,onSelect:e=>K(e),initialPath:G||O,title:"Select Destination Folder",selectionMode:"folder"}),P&&(0,a.jsxs)("dialog",{className:"modal modal-open",children:[(0,a.jsxs)("div",{className:"modal-box max-w-xl",children:[(0,a.jsx)("h3",{className:"font-bold text-lg",children:"Initialize New Repository?"}),(0,a.jsxs)("p",{className:"py-4",children:[(0,a.jsx)("span",{className:"break-all font-mono text-sm",children:U}),(0,a.jsx)("br",{}),"This folder is not a Git repository. Initialize it as a new local Git repository and open it in workspace?"]}),(0,a.jsxs)("div",{className:"modal-action",children:[(0,a.jsx)("button",{className:"btn",onClick:er,disabled:l.isPending,children:"No"}),(0,a.jsx)("button",{className:"btn btn-primary",onClick:ei,disabled:l.isPending,children:l.isPending?(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"loading loading-spinner loading-xs"}),"Initializing..."]}):"Yes, Initialize"})]})]}),(0,a.jsx)("form",{method:"dialog",className:"modal-backdrop",children:(0,a.jsx)("button",{onClick:er,children:"close"})})]}),R&&(0,a.jsxs)("dialog",{className:"modal modal-open",children:[(0,a.jsxs)("div",{className:"modal-box",children:[(0,a.jsx)("h3",{className:"font-bold text-lg",children:"Delete Repository"}),(0,a.jsxs)("p",{className:"py-4 break-words",children:["Are you sure you want to remove ",(0,a.jsx)("strong",{className:"break-all",children:I?.displayName})," from the list? Choose whether to only remove it from your repository list, or also delete its local folder."]}),(0,a.jsxs)("div",{className:"modal-action",children:[(0,a.jsx)("button",{className:"btn",onClick:()=>S(!1),disabled:y.isPending,children:"Cancel"}),(0,a.jsx)("button",{className:"btn btn-error btn-outline",onClick:()=>ec(!1),disabled:y.isPending,children:"Delete Repo"}),(0,a.jsx)("button",{className:"btn btn-error",onClick:()=>ec(!0),disabled:y.isPending,children:"Delete Repo & Folder"})]})]}),(0,a.jsx)("form",{method:"dialog",className:"modal-backdrop",children:(0,a.jsx)("button",{onClick:()=>S(!1),children:"close"})})]})]})}},7702:(e,t,s)=>{"use strict";s.d(t,{Ii:()=>x,Lv:()=>p,Rp:()=>c,aX:()=>l,sX:()=>h});var a=s(4109),n=s(5625),i=s(8934);async function r(){let e=await fetch("/api/credentials");if(!e.ok)throw Error("Failed to fetch credentials");return e.json()}function l(){return(0,a.I)({queryKey:["credentials"],queryFn:r})}async function o(e){let t=await fetch(`/api/credentials/github/repos?credentialId=${encodeURIComponent(e)}`),s=await t.json().catch(()=>({}));if(!t.ok)throw Error(s.error||"Failed to fetch GitHub repositories");return s}function c(e){return(0,a.I)({queryKey:["credentials","github-repos",e],queryFn:()=>o(e),enabled:!!e})}async function d(e){let t=await fetch("/api/credentials",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();if(!t.ok)throw Error(s.error||"Failed to create credential");return s}function p(){let e=(0,n.jE)();return(0,i.n)({mutationFn:d,onSuccess:()=>{e.invalidateQueries({queryKey:["credentials"]})}})}async function u(e){let t=await fetch("/api/credentials",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();if(!t.ok)throw Error(s.error||"Failed to update credential");return s}function h(){let e=(0,n.jE)();return(0,i.n)({mutationFn:u,onSuccess:()=>{e.invalidateQueries({queryKey:["credentials"]})}})}async function m(e){let t=await fetch("/api/credentials",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})}),s=await t.json();if(!t.ok)throw Error(s.error||"Failed to delete credential")}function x(){let e=(0,n.jE)();return(0,i.n)({mutationFn:m,onSuccess:()=>{e.invalidateQueries({queryKey:["credentials"]})}})}},8453:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,8437,23)),Promise.resolve().then(s.bind(s,3411))}},e=>{e.O(0,[2176,2785,8500,8437,8645,4131,8441,3794,7358],()=>e(e.s=8453)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1807],{6173:(e,t,s)=>{Promise.resolve().then(s.bind(s,7185)),Promise.resolve().then(s.bind(s,9128))},7185:(e,t,s)=>{"use strict";s.d(t,{Sidebar:()=>m});var a=s(5155),n=s(8599),i=s(8500),r=s.n(i),c=s(4131),l=s(3321),o=s(2115),d=s(696);function m({className:e,initialCollapsed:t=!1}){let s=(0,l.usePathname)(),i=(0,l.useSearchParams)(),m=(0,l.useRouter)(),u=i.get("path")||"",h=(0,d.GK)(u||null),[x,p]=(0,o.useState)(t),[f,b]=(0,o.useState)(!1),[j,g]=(0,o.useState)(!1),N=(0,d.Y5)(),{data:y}=(0,d.en)(u||null),v=y?.conflicted?.length??0,w=y?.current?.trim(),k=h?(0,n.iu)(h):u?(0,n.kj)(u):"";(0,o.useEffect)(()=>{let e=null,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{b(!0)})});return()=>{cancelAnimationFrame(t),null!==e&&cancelAnimationFrame(e)}},[]),(0,o.useEffect)(()=>{localStorage.setItem("workspace-sidebar-collapsed",String(x))},[x]);let S=(0,o.useCallback)(()=>{let e=!x;p(e),N.mutate({sidebarCollapsed:e})},[x,N]),C=(e="")=>{let t=new URLSearchParams(i.toString());return t.delete("tab"),u&&w?t.set("branch",w):u||t.delete("branch"),`/workspace${e}?${t.toString()}`},P=e=>"history"===e?"/workspace"===s||s.startsWith("/workspace/history"):"conflicts"===e?s.startsWith("/workspace/conflicts"):"custom-scripts"===e?s.startsWith("/workspace/custom-scripts"):"settings"===e?s.startsWith("/workspace/settings"):"stashes"===e&&s.startsWith("/workspace/stashes"),E=x?64:256;return(0,a.jsxs)("div",{style:{width:E},className:(0,n.cn)("pb-12 border-r border-base-300 min-h-screen bg-base-100 relative",f&&"transition-all duration-300",e),children:[(0,a.jsx)("div",{className:"space-y-4 py-4",children:(0,a.jsxs)("div",{className:(0,n.cn)("px-3 py-2",x&&"px-2"),children:[(0,a.jsxs)("div",{className:(0,n.cn)("mb-6 flex items-center",x?"flex-col gap-2 px-0":"justify-between px-4"),children:[!x&&(0,a.jsxs)("a",{href:"/",onClick:e=>{e.metaKey||e.ctrlKey||(e.preventDefault(),m.push("/"))},className:"flex items-center gap-2 hover:opacity-80 transition-opacity cursor-pointer text-base-content overflow-hidden",title:k?`${k} - Go to Home`:"Go to Home",children:[h?.icon?(0,a.jsx)("span",{className:"h-5 w-5 flex-shrink-0 flex items-center justify-center text-base leading-none","aria-hidden":"true",children:h.icon}):(0,a.jsx)("img",{src:"/icon.png",alt:"Trident",className:"h-5 w-5 flex-shrink-0"}),(0,a.jsx)("h2",{className:"text-lg font-bold tracking-tight truncate",children:k||"Trident"})]}),x&&(0,a.jsx)("a",{href:"/",onClick:e=>{e.metaKey||e.ctrlKey||(e.preventDefault(),m.push("/"))},className:"flex items-center justify-center h-8 w-8 hover:opacity-80 transition-opacity cursor-pointer",title:k?`${k} - Go to Home`:"Go to Home",children:h?.icon?(0,a.jsx)("span",{className:"h-5 w-5 flex items-center justify-center text-base leading-none","aria-hidden":"true",children:h.icon}):(0,a.jsx)("img",{src:"/icon.png",alt:k||"Trident",className:"h-5 w-5"})}),(0,a.jsx)("div",{className:(0,n.cn)("flex items-center gap-1",x&&"flex-col"),children:(0,a.jsx)("button",{className:"btn btn-ghost btn-sm btn-square",onClick:S,title:x?"Expand sidebar":"Collapse sidebar",children:x?(0,a.jsx)("i",{className:"iconoir-fast-arrow-right text-[16px]","aria-hidden":"true"}):(0,a.jsx)("i",{className:"iconoir-fast-arrow-left text-[16px]","aria-hidden":"true"})})})]}),!x&&u&&(0,a.jsx)("div",{className:"px-4 mb-6",children:(0,a.jsx)("p",{className:"text-[10px] font-mono opacity-60 break-all border border-base-300 rounded p-2 bg-base-200/30",title:u,children:u})}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsxs)(r(),{href:C(),className:(0,n.cn)("btn btn-ghost w-full justify-start font-normal",x?"px-0 justify-center":"",P("history")&&"btn-active font-medium"),title:x?"History":void 0,children:[(0,a.jsx)("i",{className:(0,n.cn)("iconoir-git-fork text-[20px]",!x&&"mr-2"),"aria-hidden":"true"}),!x&&"History"]}),(0,a.jsxs)(r(),{href:C("/conflicts"),className:(0,n.cn)("btn btn-ghost w-full justify-start font-normal",x?"px-0 justify-center":"",P("conflicts")&&"btn-active font-medium"),title:x?`Conflicts${v>0?` (${v})`:""}`:void 0,children:[(0,a.jsxs)("div",{className:(0,n.cn)("relative flex items-center",!x&&"mr-2"),children:[(0,a.jsx)("i",{className:"iconoir-warning-triangle text-[20px]","aria-hidden":"true"}),x&&v>0&&(0,a.jsx)("span",{className:"absolute -top-1 -right-1 badge badge-error badge-xs scale-75",children:v>99?"99+":v})]}),!x&&(0,a.jsxs)("span",{className:"flex-1 flex justify-between items-center",children:["Conflicts",v>0&&(0,a.jsx)("span",{className:"badge badge-sm badge-error",children:v})]})]}),(0,a.jsxs)(r(),{href:C("/stashes"),className:(0,n.cn)("btn btn-ghost w-full justify-start font-normal",x?"px-0 justify-center":"",P("stashes")&&"btn-active font-medium"),title:x?"Stashes":void 0,children:[(0,a.jsx)("i",{className:(0,n.cn)("iconoir-download-square text-[20px]",!x&&"mr-2"),"aria-hidden":"true"}),!x&&"Stashes"]}),(0,a.jsxs)(r(),{href:C("/custom-scripts"),className:(0,n.cn)("btn btn-ghost w-full justify-start font-normal",x?"px-0 justify-center":"",P("custom-scripts")&&"btn-active font-medium"),title:x?"Custom scripts":void 0,children:[(0,a.jsx)("i",{className:(0,n.cn)("iconoir-terminal text-[20px]",!x&&"mr-2"),"aria-hidden":"true"}),!x&&"Custom scripts"]}),(0,a.jsxs)(r(),{href:C("/settings"),className:(0,n.cn)("btn btn-ghost w-full justify-start font-normal",x?"px-0 justify-center":"",P("settings")&&"btn-active font-medium"),title:x?"Settings":void 0,children:[(0,a.jsx)("i",{className:(0,n.cn)("iconoir-settings text-[20px]",!x&&"mr-2"),"aria-hidden":"true"}),!x&&"Settings"]})]})]})}),(0,a.jsx)("div",{className:(0,n.cn)("absolute bottom-4 left-0 w-full",x?"px-2":"px-6"),children:(0,a.jsxs)("div",{className:(0,n.cn)("flex items-center",x?"justify-center":"gap-2"),children:[(0,a.jsx)("button",{className:"btn btn-ghost btn-sm btn-square",onClick:()=>g(!0),title:x?"Preferences":void 0,children:(0,a.jsx)("i",{className:"iconoir-ios-settings text-[20px]","aria-hidden":"true"})}),!x&&(0,a.jsx)("span",{className:"text-xs opacity-70",children:"Preferences"})]})}),(0,a.jsx)(c.g,{open:j,onOpenChange:g})]})}},9128:(e,t,s)=>{"use strict";s.d(t,{WorkspaceRepoOpenTracker:()=>r});var a=s(2115),n=s(3321),i=s(696);function r(){let e=(0,n.usePathname)(),t=(0,n.useSearchParams)().get("path"),{data:s}=(0,i.uG)(),r=(0,i.Lp)(),c=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!e.startsWith("/workspace")){c.current=null;return}t&&s?.some(e=>e.path===t)&&c.current!==t&&(c.current=t,r.mutate({path:t,updates:{lastOpenedAt:new Date().toISOString()}}))},[e,t,s,r]),null}}},e=>{e.O(0,[2176,2785,8500,8645,4131,8441,3794,7358],()=>e(e.s=6173)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4535],{47:(e,t,a)=>{Promise.resolve().then(a.bind(a,5432))},5432:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>h});var s=a(5155),i=a(3321),n=a(2115),r=a(6534),l=a(696),c=a(7702),o=a(8599);function d(e){try{if(e.startsWith("git@")){let t=e.match(/git@([^:]+):/);return t?t[1]:null}return new URL(e).hostname}catch{return null}}function u(){let e=(0,i.useSearchParams)().get("path");(0,r.J)(e,"Settings");let{data:t,isLoading:a}=(0,l.uG)(),{data:u,isLoading:h}=(0,c.aX)(),{data:p,isLoading:m}=(0,l._6)(e),b=(0,l.Lp)(),y=(0,n.useMemo)(()=>t?.find(t=>t.path===e),[t,e]),[x,f]=(0,n.useState)({path:null,value:"",isDirty:!1}),[j,N]=(0,n.useState)({path:null,value:"",isDirty:!1}),v=(0,n.useMemo)(()=>{if(!u||!p?.remoteUrls)return[];let e=new Set(Object.values(p.remoteUrls).map(d).filter(Boolean));return u.filter(t=>{if("github"===t.type)return e.has("github.com");if("gitlab"===t.type&&t.serverUrl){let a=d(t.serverUrl);return a&&e.has(a)}return!1})},[u,p]);if(a||h||m)return(0,s.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,s.jsx)("span",{className:"loading loading-spinner"})});if(!e||!y)return(0,s.jsx)("div",{className:"p-8",children:"Repository not found."});let g=x.path===e&&x.isDirty?x.value:y.displayName??"",w=y.displayName?.trim()??"",k=g.trim(),S=k!==w,D=(0,o.iu)({path:y.path,name:y.name,displayName:g}),E=(0,o.kj)(y.path),C=j.path===e&&j.isDirty?j.value:y.icon??"",I=y.icon?.trim()??"",P=C.trim(),F=P!==I,R=()=>{f({path:e,value:g,isDirty:!1}),b.mutate({path:e,updates:{displayName:g}})},U=()=>{N({path:e,value:C,isDirty:!1}),b.mutate({path:e,updates:{icon:C}})};return(0,s.jsxs)("div",{className:"p-8 max-w-2xl mx-auto",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold mb-6",children:"Workspace Settings"}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)("div",{className:"card bg-base-100 shadow-xl border border-base-200",children:(0,s.jsxs)("div",{className:"card-body",children:[(0,s.jsx)("h2",{className:"card-title",children:"Repository Icon"}),(0,s.jsx)("p",{className:"text-sm opacity-70",children:"Set an emoji to represent this repository in the sidebar and repository list."}),(0,s.jsxs)("div",{className:"form-control w-full mt-4",children:[(0,s.jsx)("label",{className:"label",children:(0,s.jsx)("span",{className:"label-text",children:"Icon (emoji)"})}),(0,s.jsx)("input",{type:"text",className:"input input-bordered w-24 text-center text-2xl",placeholder:"\uD83D\uDD27",value:C,onChange:t=>{N({path:e,value:Array.from(t.target.value).slice(-1).join(""),isDirty:!0})},onKeyDown:e=>{"Enter"===e.key&&F&&!b.isPending&&(e.preventDefault(),U())}})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,s.jsx)("button",{type:"button",className:"btn btn-primary btn-sm",onClick:U,disabled:!F||b.isPending,children:"Save Icon"}),(0,s.jsx)("button",{type:"button",className:"btn btn-ghost btn-sm",onClick:()=>{N({path:e,value:"",isDirty:!1}),b.mutate({path:e,updates:{icon:null}})},disabled:!P&&!y.icon||b.isPending,children:"Reset"})]})]})}),(0,s.jsx)("div",{className:"card bg-base-100 shadow-xl border border-base-200",children:(0,s.jsxs)("div",{className:"card-body",children:[(0,s.jsx)("h2",{className:"card-title",children:"Repository Display Name"}),(0,s.jsx)("p",{className:"text-sm opacity-70",children:"Set a custom name for this repository in the workspace UI."}),(0,s.jsxs)("div",{className:"form-control w-full mt-4",children:[(0,s.jsx)("label",{className:"label",children:(0,s.jsx)("span",{className:"label-text",children:"Display Name"})}),(0,s.jsx)("input",{type:"text",className:"input input-bordered w-full",placeholder:E,value:g,onChange:t=>{f({path:e,value:t.target.value,isDirty:!0})},onKeyDown:e=>{"Enter"===e.key&&S&&!b.isPending&&(e.preventDefault(),R())}}),(0,s.jsx)("label",{className:"label",children:(0,s.jsxs)("span",{className:"label-text-alt opacity-70",children:["Preview: ",(0,s.jsx)("span",{className:"font-medium",children:D})]})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,s.jsx)("button",{type:"button",className:"btn btn-primary btn-sm",onClick:R,disabled:!S||b.isPending,children:"Save Name"}),(0,s.jsx)("button",{type:"button",className:"btn btn-ghost btn-sm",onClick:()=>{f({path:e,value:"",isDirty:!1}),b.mutate({path:e,updates:{displayName:null}})},disabled:!k&&!y.displayName||b.isPending,children:"Reset"})]})]})}),(0,s.jsx)("div",{className:"card bg-base-100 shadow-xl border border-base-200",children:(0,s.jsxs)("div",{className:"card-body",children:[(0,s.jsx)("h2",{className:"card-title",children:"Repository Credentials"}),(0,s.jsx)("p",{className:"text-sm opacity-70",children:"Associate a credential with this repository to authenticate with remote servers."}),(0,s.jsxs)("div",{className:"form-control w-full mt-4",children:[(0,s.jsx)("label",{className:"label",children:(0,s.jsx)("span",{className:"label-text",children:"Associated Credential"})}),(0,s.jsxs)("select",{className:"select select-bordered w-full",value:y.credentialId||"none",onChange:t=>{let a=t.target.value;b.mutate({path:e,updates:{credentialId:"none"===a?null:a}})},children:[(0,s.jsx)("option",{value:"none",children:"None"}),v.map(e=>(0,s.jsxs)("option",{value:e.id,children:["github"===e.type?"GitHub":"GitLab","gitlab"===e.type&&` (${new URL(e.serverUrl).hostname})`," - ","github"===e.type?"Account":"Token"]},e.id))]}),0===v.length&&(0,s.jsx)("label",{className:"label",children:(0,s.jsx)("span",{className:"label-text-alt opacity-70",children:"No matching credentials found for this repository's remotes. Add credentials in the Credentials page."})})]})]})})]})]})}function h(){return(0,s.jsx)(n.Suspense,{fallback:(0,s.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,s.jsx)("span",{className:"loading loading-spinner"})}),children:(0,s.jsx)(u,{})})}},6534:(e,t,a)=>{"use strict";a.d(t,{J:()=>r});var s=a(2115),i=a(696),n=a(8599);function r(e,t){let a=(0,i.GK)(e);(0,s.useEffect)(()=>{let s=e?a?(0,n.iu)(a):(0,n.kj)(e):"Workspace";document.title=`${s} | ${t}`},[e,a,t])}},7702:(e,t,a)=>{"use strict";a.d(t,{Ii:()=>b,Lv:()=>u,Rp:()=>o,aX:()=>l,sX:()=>p});var s=a(4109),i=a(5625),n=a(8934);async function r(){let e=await fetch("/api/credentials");if(!e.ok)throw Error("Failed to fetch credentials");return e.json()}function l(){return(0,s.I)({queryKey:["credentials"],queryFn:r})}async function c(e){let t=await fetch(`/api/credentials/github/repos?credentialId=${encodeURIComponent(e)}`),a=await t.json().catch(()=>({}));if(!t.ok)throw Error(a.error||"Failed to fetch GitHub repositories");return a}function o(e){return(0,s.I)({queryKey:["credentials","github-repos",e],queryFn:()=>c(e),enabled:!!e})}async function d(e){let t=await fetch("/api/credentials",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await t.json();if(!t.ok)throw Error(a.error||"Failed to create credential");return a}function u(){let e=(0,i.jE)();return(0,n.n)({mutationFn:d,onSuccess:()=>{e.invalidateQueries({queryKey:["credentials"]})}})}async function h(e){let t=await fetch("/api/credentials",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await t.json();if(!t.ok)throw Error(a.error||"Failed to update credential");return a}function p(){let e=(0,i.jE)();return(0,n.n)({mutationFn:h,onSuccess:()=>{e.invalidateQueries({queryKey:["credentials"]})}})}async function m(e){let t=await fetch("/api/credentials",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})}),a=await t.json();if(!t.ok)throw Error(a.error||"Failed to delete credential")}function b(){let e=(0,i.jE)();return(0,n.n)({mutationFn:m,onSuccess:()=>{e.invalidateQueries({queryKey:["credentials"]})}})}}},e=>{e.O(0,[2176,2785,8645,8441,3794,7358],()=>e(e.s=47)),_N_E=e.O()}]);