@tom2012/cc-web 1.5.121 → 1.5.123
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/README.md +1 -1
- package/backend/dist/routes/projects.js +1 -1
- package/backend/dist/routes/projects.js.map +1 -1
- package/frontend/dist/assets/{GraphPreview-D_s3HyDa.js → GraphPreview-B0Xln6-w.js} +1 -1
- package/frontend/dist/assets/MobilePage-B_ZkKIhz.js +7 -0
- package/frontend/dist/assets/OfficePreview-BkRthu-3.js +2 -0
- package/frontend/dist/assets/{PlanPanel-DxH-xmvN.js → PlanPanel-B2DvC28S.js} +2 -2
- package/frontend/dist/assets/ProjectPage-B0U_G81U.js +26 -0
- package/frontend/dist/assets/{SettingsPage-C3e367Sh.js → SettingsPage-BX0xBTv7.js} +1 -1
- package/frontend/dist/assets/{ShareViewPage-BTx-FKqh.js → ShareViewPage-BYyk04Cl.js} +1 -1
- package/frontend/dist/assets/{SkillHubPage-BU62FuhW.js → SkillHubPage-BTUUBIml.js} +2 -2
- package/frontend/dist/assets/{bot-DlrCMeD0.js → bot-DcG2BExo.js} +1 -1
- package/frontend/dist/assets/{chevron-down-CPJQ62IR.js → chevron-down-BxPdtCy0.js} +1 -1
- package/frontend/dist/assets/download-CQoTBI78.js +7 -0
- package/frontend/dist/assets/index-BjF6WOc2.js +1 -0
- package/frontend/dist/assets/{index-C9oeMgt-.js → index-BylcY_V3.js} +3 -3
- package/frontend/dist/assets/index-ChVmCyjz.css +1 -0
- package/frontend/dist/assets/jszip.min-CPkhQ_NG.js +12 -0
- package/frontend/dist/assets/matter-Tl_UWs5y.js +28 -0
- package/frontend/dist/assets/{maximize-2-CB7C7sLK.js → maximize-2-Dj34QdqT.js} +1 -1
- package/frontend/dist/assets/one-light-I-wYM7F6.js +13 -0
- package/frontend/dist/assets/{save-ZUJ-URIJ.js → save-BUU0jzNi.js} +1 -1
- package/frontend/dist/assets/search-OmAbzG2I.js +7 -0
- package/frontend/dist/assets/{user-DMXFxaV-.js → user-BXd-8u-c.js} +1 -1
- package/frontend/dist/index.html +2 -2
- package/package.json +1 -1
- package/frontend/dist/assets/OfficePreview-MS5O3uK9.js +0 -2
- package/frontend/dist/assets/ProjectPage-D3YBwKOn.js +0 -26
- package/frontend/dist/assets/index-CWnN7OHq.js +0 -1
- package/frontend/dist/assets/index-Ceb0V6KB.css +0 -1
- package/frontend/dist/assets/jszip.min-8IuIXpo7.js +0 -12
- package/frontend/dist/assets/matter-Cv2w6u-d.js +0 -28
- package/frontend/dist/assets/search-DQ8Y_goE.js +0 -13
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{c as e}from"./index-BylcY_V3.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 c=e("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);export{c as S};
|
package/frontend/dist/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/terminal.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>CC Web</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-BylcY_V3.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-ChVmCyjz.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CWnN7OHq.js","assets/index-C9oeMgt-.js","assets/index-Ceb0V6KB.css","assets/jszip.min-8IuIXpo7.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{j as e,r as t,_ as s,b as r,h as a}from"./index-C9oeMgt-.js";import{p as n}from"./ProjectPage-D3YBwKOn.js";import"./save-ZUJ-URIJ.js";import"./search-DQ8Y_goE.js";import"./chevron-down-CPJQ62IR.js";import"./bot-DlrCMeD0.js";import"./user-DMXFxaV-.js";async function l(e){let t=a(e);const s=r();s&&(t+=`${t.includes("?")?"&":"?"}token=${encodeURIComponent(s)}`);const n=await fetch(t);if(!n.ok)throw new Error(`Failed to fetch file: ${n.status}`);return n.arrayBuffer()}function o({filePath:r,zoom:a}){const[o,i]=t.useState(""),[d,c]=t.useState(null),[x,u]=t.useState(!0);return t.useEffect(()=>{let e=!1;return u(!0),c(null),(async()=>{try{const t=await s(()=>import("./index-CWnN7OHq.js").then(e=>e.i),__vite__mapDeps([0,1,2,3])),a=await l(r),n=await t.convertToHtml({arrayBuffer:a});e||i(n.value)}catch(t){e||c(t instanceof Error?t.message:"Failed to render docx")}finally{e||u(!1)}})(),()=>{e=!0}},[r]),x?e.jsx("p",{className:"text-sm text-muted-foreground p-4",children:"加载 Word 文档中..."}):d?e.jsx("p",{className:"text-sm text-destructive p-4",children:d}):e.jsx("div",{className:"p-6 prose dark:prose-invert max-w-none",style:{fontSize:12*a/100+"px"},dangerouslySetInnerHTML:{__html:n.sanitize(o)}})}function i({filePath:r,zoom:a}){var o;const[i,d]=t.useState([]),[c,x]=t.useState(0),[u,m]=t.useState(null),[p,f]=t.useState(!0);return t.useEffect(()=>{let e=!1;return f(!0),m(null),(async()=>{try{const t=await s(()=>import("./xlsx-DfDjAMCE.js"),[]),a=await l(r),n=t.read(a,{type:"array"}),o=n.SheetNames.map(e=>({name:e,html:t.utils.sheet_to_html(n.Sheets[e],{editable:!1})}));e||(d(o),x(0))}catch(t){e||m(t instanceof Error?t.message:"Failed to render xlsx")}finally{e||f(!1)}})(),()=>{e=!0}},[r]),p?e.jsx("p",{className:"text-sm text-muted-foreground p-4",children:"加载 Excel 文件中..."}):u?e.jsx("p",{className:"text-sm text-destructive p-4",children:u}):0===i.length?e.jsx("p",{className:"text-sm text-muted-foreground p-4",children:"空文件"}):e.jsxs("div",{className:"flex flex-col h-full",children:[i.length>1&&e.jsx("div",{className:"flex gap-0.5 px-3 py-1.5 border-b border-border bg-muted/30 flex-shrink-0 overflow-x-auto",children:i.map((t,s)=>e.jsx("button",{onClick:()=>x(s),className:"px-3 py-1 text-xs rounded-t transition-colors whitespace-nowrap "+(s===c?"bg-background text-foreground border border-b-0 border-border":"text-muted-foreground hover:text-foreground"),children:t.name},s))}),e.jsx("div",{className:"flex-1 overflow-auto p-2 xlsx-preview",style:{fontSize:12*a/100+"px"},dangerouslySetInnerHTML:{__html:n.sanitize((null==(o=i[c])?void 0:o.html)??"")}}),e.jsx("style",{children:"\n .xlsx-preview table { border-collapse: collapse; width: auto; min-width: 100%; }\n .xlsx-preview td, .xlsx-preview th {\n border: 1px solid hsl(var(--border));\n padding: 4px 8px;\n text-align: left;\n white-space: nowrap;\n font-size: inherit;\n }\n .xlsx-preview th { background: hsl(var(--muted)); font-weight: 600; }\n .xlsx-preview tr:hover td { background: hsl(var(--accent) / 0.3); }\n "})]})}function d({filePath:r,zoom:a}){const[n,o]=t.useState([]),[i,d]=t.useState(null),[c,x]=t.useState(!0);return t.useEffect(()=>{let e=!1;return x(!0),d(null),(async()=>{try{const t=await l(r),a=await async function(e){const{default:t}=await s(async()=>{const{default:e}=await import("./jszip.min-8IuIXpo7.js").then(e=>e.j);return{default:e}},__vite__mapDeps([3,1,2])),r=await t.loadAsync(e),a=[],n=Object.keys(r.files).filter(e=>/^ppt\/slides\/slide\d+\.xml$/i.test(e)).sort((e,t)=>{var s,r;return parseInt((null==(s=e.match(/slide(\d+)/))?void 0:s[1])??"0")-parseInt((null==(r=t.match(/slide(\d+)/))?void 0:r[1])??"0")});for(let s=0;s<n.length;s++){const e=await r.file(n[s]).async("text"),t=[],l=/<a:t[^>]*>([\s\S]*?)<\/a:t>/g;let o;for(;null!==(o=l.exec(e));){const e=o[1].replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').trim();e&&t.push(e)}a.push({index:s+1,texts:t})}return a}(t);e||o(a)}catch(t){e||d(t instanceof Error?t.message:"Failed to render pptx")}finally{e||x(!1)}})(),()=>{e=!0}},[r]),c?e.jsx("p",{className:"text-sm text-muted-foreground p-4",children:"加载 PPT 文件中..."}):i?e.jsx("p",{className:"text-sm text-destructive p-4",children:i}):0===n.length?e.jsx("p",{className:"text-sm text-muted-foreground p-4",children:"空文件"}):e.jsx("div",{className:"p-4 space-y-4",style:{fontSize:12*a/100+"px"},children:n.map(t=>e.jsxs("div",{className:"border border-border rounded-lg p-5 bg-muted/20",children:[e.jsxs("div",{className:"text-xs text-muted-foreground mb-2 font-medium",children:["Slide ",t.index]}),t.texts.length>0?e.jsx("div",{className:"space-y-1.5",children:t.texts.map((t,s)=>e.jsx("p",{className:"text-foreground leading-relaxed",style:{fontSize:"inherit"},children:t},s))}):e.jsx("p",{className:"text-muted-foreground text-sm italic",children:"(无文本内容)"})]},t.index))})}const c=new Set(["docx","xlsx","xls","pptx"]);function x({filePath:t,ext:s,zoom:r}){return"docx"===s?e.jsx(o,{filePath:t,zoom:r}):"xlsx"===s||"xls"===s?e.jsx(i,{filePath:t,zoom:r}):"pptx"===s?e.jsx(d,{filePath:t,zoom:r}):null}export{c as OFFICE_EXTS,x as OfficePreview};
|