draftboard 0.0.1__py3-none-any.whl
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.
- draftboard/__init__.py +41 -0
- draftboard/__main__.py +225 -0
- draftboard/agent.py +104 -0
- draftboard/api.py +901 -0
- draftboard/measure.py +225 -0
- draftboard/models.py +407 -0
- draftboard/pptx_export.py +479 -0
- draftboard/render.py +80 -0
- draftboard/static/404.html +1 -0
- draftboard/static/__next.__PAGE__.txt +27 -0
- draftboard/static/__next._full.txt +22 -0
- draftboard/static/__next._tree.txt +3 -0
- draftboard/static/_next/static/0t_Cdsf-nvbYcwqDy78ch/_buildManifest.js +11 -0
- draftboard/static/_next/static/0t_Cdsf-nvbYcwqDy78ch/_clientMiddlewareManifest.js +1 -0
- draftboard/static/_next/static/0t_Cdsf-nvbYcwqDy78ch/_ssgManifest.js +1 -0
- draftboard/static/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- draftboard/static/_next/static/chunks/0oheds1fsp9jx.js +1 -0
- draftboard/static/_next/static/chunks/1vsonpqt4u2rw.js +1 -0
- draftboard/static/_next/static/chunks/24xul4hawiu8l.js +1 -0
- draftboard/static/_next/static/chunks/2r7iycbt4s29o.js +22 -0
- draftboard/static/_next/static/chunks/2utugak-w5oge.css +1 -0
- draftboard/static/_next/static/chunks/39_j1bdzreq0m.js +1 -0
- draftboard/static/_next/static/chunks/3qfy96eoyh-ek.js +1 -0
- draftboard/static/_next/static/chunks/3u8gxd9uztfzl.js +4 -0
- draftboard/static/_next/static/chunks/3v_59l1qr_8dp.js +31 -0
- draftboard/static/_next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
- draftboard/static/_not-found/__next._full.txt +20 -0
- draftboard/static/_not-found/__next._not-found/__PAGE__.txt +26 -0
- draftboard/static/_not-found/__next._tree.txt +4 -0
- draftboard/static/_not-found.html +1 -0
- draftboard/static/_not-found.txt +20 -0
- draftboard/static/index.html +1 -0
- draftboard/static/index.txt +22 -0
- draftboard/static/p/__placeholder__/__next._full.txt +27 -0
- draftboard/static/p/__placeholder__/__next._tree.txt +5 -0
- draftboard/static/p/__placeholder__/__next.p/$d$id/__PAGE__.txt +34 -0
- draftboard/static/p/__placeholder__/preview/__next._full.txt +27 -0
- draftboard/static/p/__placeholder__/preview/__next._tree.txt +6 -0
- draftboard/static/p/__placeholder__/preview/__next.p/$d$id/preview/__PAGE__.txt +35 -0
- draftboard/static/p/__placeholder__/preview.html +1 -0
- draftboard/static/p/__placeholder__/preview.txt +27 -0
- draftboard/static/p/__placeholder__.html +1 -0
- draftboard/static/p/__placeholder__.txt +27 -0
- draftboard/storage.py +183 -0
- draftboard/tasks.py +464 -0
- draftboard/themes.py +213 -0
- draftboard/tools.py +723 -0
- draftboard-0.0.1.dist-info/METADATA +16 -0
- draftboard-0.0.1.dist-info/RECORD +51 -0
- draftboard-0.0.1.dist-info/WHEEL +4 -0
- draftboard-0.0.1.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/2utugak-w5oge.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3v_59l1qr_8dp.js"/><script src="/_next/static/chunks/2r7iycbt4s29o.js" async=""></script><script src="/_next/static/chunks/39_j1bdzreq0m.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/3qfy96eoyh-ek.js" async=""></script><script src="/_next/static/chunks/0oheds1fsp9jx.js" async=""></script><title>Draftboard · AI 演示文稿工作台</title><meta name="description" content="以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="min-h-screen bg-[#f5f5f7] text-[#1d1d1f]"><div hidden=""><!--$--><!--/$--></div><div class="min-h-screen flex flex-col bg-[#f5f5f7] text-[#1d1d1f]"><header class="h-[52px] apple-glass border-b border-black/[0.07] px-6 flex items-center justify-between gap-4 sticky top-0 z-30"><div class="flex items-center gap-2.5"><a class="w-7 h-7 rounded-[8px] bg-[#1d1d1f] text-white flex items-center justify-center font-semibold text-[13px]" href="/">D</a><span class="font-semibold text-[15px] tracking-[-0.015em] text-[#1d1d1f]">Draftboard</span></div><div class="flex items-center gap-4"><div title="检测连接中…" class="inline-flex items-center gap-1.5 text-[12px] font-medium text-[#6e6e73] select-none"><span class="w-2 h-2 rounded-full bg-[#ff9500] animate-pulse"></span><span>连接中</span></div></div></header><main class="flex-1 max-w-[1120px] w-full mx-auto px-6 sm:px-8 py-12 space-y-10"><div class="flex flex-wrap items-end justify-between gap-4"><div class="space-y-1.5"><h1 class="text-[32px] font-semibold tracking-[-0.03em] text-[#1d1d1f]">文稿</h1><p class="text-[15px] text-[#6e6e73]">以原始材料为唯一依据,编译清晰、原生可编辑的演示文稿。</p></div></div></main></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3v_59l1qr_8dp.js","static/chunks/2r7iycbt4s29o.js","static/chunks/39_j1bdzreq0m.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3v_59l1qr_8dp.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/3qfy96eoyh-ek.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\n6:I[47257,[\"$2\"],\"ClientPageRoot\"]\n7:\"/_next/static/chunks/0oheds1fsp9jx.js\"\n8:I[31713,[\"$2\",\"$7\"],\"default\"]\nb:I[97367,[\"$2\"],\"OutletBoundary\"]\nc:\"$Sreact.suspense\"\ne:\"ViewportBoundary\"\nf:I[97367,[\"$2\"],\"$e\"]\n11:\"MetadataBoundary\"\n12:I[97367,[\"$2\"],\"$11\"]\n14:I[68027,[\"$2\"],\"default\",1]\n:HL[\"/_next/static/chunks/2utugak-w5oge.css\",\"style\"]\n5:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$8\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@9\",\"$@a\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0oheds1fsp9jx.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@d\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2utugak-w5oge.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3qfy96eoyh-ek.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]\",\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"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.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q5\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],[\"$\",\"$L12\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L13\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$14\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2utugak-w5oge.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"0t_Cdsf-nvbYcwqDy78ch\"}\n9:{}\na:\"$5:0:1:d:r:props:children:0:props:serverProvidedParams:params\"\n10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nd:null\n13:[[\"$\",\"title\",\"0\",{\"children\":\"Draftboard · AI 演示文稿工作台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台\"}]]\n"])</script></body></html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:"/_next/static/chunks/3qfy96eoyh-ek.js"
|
|
3
|
+
3:I[39756,["$2"],"default"]
|
|
4
|
+
4:I[37457,["$2"],"default"]
|
|
5
|
+
6:I[47257,["$2"],"ClientPageRoot"]
|
|
6
|
+
7:"/_next/static/chunks/0oheds1fsp9jx.js"
|
|
7
|
+
8:I[31713,["$2","$7"],"default"]
|
|
8
|
+
b:I[97367,["$2"],"OutletBoundary"]
|
|
9
|
+
c:"$Sreact.suspense"
|
|
10
|
+
e:"ViewportBoundary"
|
|
11
|
+
f:I[97367,["$2"],"$e"]
|
|
12
|
+
11:"MetadataBoundary"
|
|
13
|
+
12:I[97367,["$2"],"$11"]
|
|
14
|
+
14:I[68027,["$2"],"default",1]
|
|
15
|
+
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
16
|
+
5:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$L6",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/0oheds1fsp9jx.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],"p":false,"v":null}}]]
|
|
17
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],"p":false,"v":null},"c":"$Q5"},"h":{"r":["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","$L12",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$c",null,{"name":"Next.Metadata","children":"$L13"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$14",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0t_Cdsf-nvbYcwqDy78ch"}
|
|
18
|
+
9:{}
|
|
19
|
+
a:"$5:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
20
|
+
10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
21
|
+
d:null
|
|
22
|
+
13:[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}]]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:"/_next/static/chunks/3qfy96eoyh-ek.js"
|
|
3
|
+
3:I[39756,["$2"],"default"]
|
|
4
|
+
4:I[37457,["$2"],"default"]
|
|
5
|
+
9:I[47257,["$2"],"ClientPageRoot"]
|
|
6
|
+
a:"/_next/static/chunks/24xul4hawiu8l.js"
|
|
7
|
+
b:"/_next/static/chunks/3u8gxd9uztfzl.js"
|
|
8
|
+
c:I[64707,["$2","$a","$b"],"default"]
|
|
9
|
+
f:I[97367,["$2"],"OutletBoundary"]
|
|
10
|
+
10:"$Sreact.suspense"
|
|
11
|
+
12:"ViewportBoundary"
|
|
12
|
+
13:I[97367,["$2"],"$12"]
|
|
13
|
+
15:"MetadataBoundary"
|
|
14
|
+
16:I[97367,["$2"],"$15"]
|
|
15
|
+
18:I[68027,["$2"],"default",1]
|
|
16
|
+
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
17
|
+
6:X
|
|
18
|
+
8:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$L9",null,{"Component":"$c","serverProvidedParams":{"searchParams":{},"params":{"id":"__placeholder__"},"promises":["$@d","$@e"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/24xul4hawiu8l.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/3u8gxd9uztfzl.js","async":true,"nonce":"$undefined"}]],["$","$Lf",null,{"children":["$","$10",null,{"name":"Next.MetadataOutlet","children":"$@11"}]}]]}],"p":false,"v":null}}]]
|
|
19
|
+
7:[["children",{"s":{"n":"id","t":"d","k":"__placeholder__","s":[]},"h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":null},"c":"$Q8"}]]
|
|
20
|
+
5:[["children",{"s":"p","h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":"$6"},"c":"$Q7"}]]
|
|
21
|
+
0:{"P":null,"c":["","p","__placeholder__"],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],"p":false,"v":null},"c":"$Q5"},"h":{"r":["$","$1","h",{"children":[null,["$","$L13",null,{"children":"$L14"}],["$","$L16",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$10",null,{"name":"Next.Metadata","children":"$L17"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$18",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0t_Cdsf-nvbYcwqDy78ch"}
|
|
22
|
+
6:C
|
|
23
|
+
d:{}
|
|
24
|
+
e:"$8:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
25
|
+
14:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
26
|
+
11:null
|
|
27
|
+
17:[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}]]
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
2
|
+
3:[["children",{"s":"__PAGE__","h":160}]]
|
|
3
|
+
2:[["children",{"s":{"n":"id","t":"d","k":"__placeholder__","s":[]},"h":96,"c":"$Q3"}]]
|
|
4
|
+
1:[["children",{"s":"p","h":96,"c":"$Q2"}]]
|
|
5
|
+
0:{"b":"0t_Cdsf-nvbYcwqDy78ch","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:"/_next/static/chunks/3qfy96eoyh-ek.js"
|
|
3
|
+
3:I[39756,["$2"],"default"]
|
|
4
|
+
4:I[37457,["$2"],"default"]
|
|
5
|
+
d:I[47257,["$2"],"ClientPageRoot"]
|
|
6
|
+
e:"/_next/static/chunks/24xul4hawiu8l.js"
|
|
7
|
+
f:"/_next/static/chunks/3u8gxd9uztfzl.js"
|
|
8
|
+
10:I[64707,["$2","$e","$f"],"default"]
|
|
9
|
+
13:I[97367,["$2"],"OutletBoundary"]
|
|
10
|
+
14:"$Sreact.suspense"
|
|
11
|
+
17:"ViewportBoundary"
|
|
12
|
+
18:I[97367,["$2"],"$17"]
|
|
13
|
+
19:"MetadataBoundary"
|
|
14
|
+
1a:I[97367,["$2"],"$19"]
|
|
15
|
+
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
16
|
+
6:X
|
|
17
|
+
9:X
|
|
18
|
+
9:C
|
|
19
|
+
c:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[["$","$Ld",null,{"Component":"$10","serverProvidedParams":{"searchParams":{},"params":{"id":"__placeholder__"},"promises":["$@11","$@12"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/24xul4hawiu8l.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/3u8gxd9uztfzl.js","async":true}]],["$","$L13",null,{"children":["$","$14",null,{"name":"Next.MetadataOutlet","children":"$@15"}]}]]}],"p":"$@16","v":null,"s":"$6"}}]]
|
|
20
|
+
a:[["children",{"s":{"n":"id","t":"d","k":"__placeholder__","s":[]},"h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}]}]]}],"p":"$@b","v":null,"s":"$6"},"c":"$Qc"}]]
|
|
21
|
+
7:[["children",{"s":"p","h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}]}]]}],"p":"$@8","v":"$9","s":"$6"},"c":"$Qa"}]]
|
|
22
|
+
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","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."}]}]]}]}]],[]]}]}]}]]}],"p":"$@5","v":null,"s":"$6"},"c":"$Q7"},"h":{"r":["$","$1","h",{"children":[null,["$","$L18",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L1a",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$14",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}]]}]}],null]}],null]}],"p":"$@1b","v":null,"s":"$6"}},"a":"$@1c","u":"$@1d","b":"0t_Cdsf-nvbYcwqDy78ch"}
|
|
23
|
+
11:{}
|
|
24
|
+
12:"$c:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
25
|
+
15:null
|
|
26
|
+
6:300
|
|
27
|
+
1d:true
|
|
28
|
+
6:C
|
|
29
|
+
1c:0
|
|
30
|
+
b:"$undefined"
|
|
31
|
+
8:"$undefined"
|
|
32
|
+
5:"$undefined"
|
|
33
|
+
1b:"$undefined"
|
|
34
|
+
16:"$undefined"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:"/_next/static/chunks/3qfy96eoyh-ek.js"
|
|
3
|
+
3:I[39756,["$2"],"default"]
|
|
4
|
+
4:I[37457,["$2"],"default"]
|
|
5
|
+
a:I[47257,["$2"],"ClientPageRoot"]
|
|
6
|
+
b:"/_next/static/chunks/1vsonpqt4u2rw.js"
|
|
7
|
+
c:I[78988,["$2","$b"],"default"]
|
|
8
|
+
f:I[97367,["$2"],"OutletBoundary"]
|
|
9
|
+
10:"$Sreact.suspense"
|
|
10
|
+
12:"ViewportBoundary"
|
|
11
|
+
13:I[97367,["$2"],"$12"]
|
|
12
|
+
15:"MetadataBoundary"
|
|
13
|
+
16:I[97367,["$2"],"$15"]
|
|
14
|
+
18:I[68027,["$2"],"default",1]
|
|
15
|
+
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
16
|
+
6:X
|
|
17
|
+
9:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$La",null,{"Component":"$c","serverProvidedParams":{"searchParams":{},"params":{"id":"__placeholder__"},"promises":["$@d","$@e"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/1vsonpqt4u2rw.js","async":true,"nonce":"$undefined"}]],["$","$Lf",null,{"children":["$","$10",null,{"name":"Next.MetadataOutlet","children":"$@11"}]}]]}],"p":false,"v":null}}]]
|
|
18
|
+
8:[["children",{"s":"preview","h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":"$6"},"c":"$Q9"}]]
|
|
19
|
+
7:[["children",{"s":{"n":"id","t":"d","k":"__placeholder__","s":[]},"h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":null},"c":"$Q8"}]]
|
|
20
|
+
5:[["children",{"s":"p","h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":"$6"},"c":"$Q7"}]]
|
|
21
|
+
0:{"P":null,"c":["","p","__placeholder__","preview"],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],"p":false,"v":null},"c":"$Q5"},"h":{"r":["$","$1","h",{"children":[null,["$","$L13",null,{"children":"$L14"}],["$","$L16",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$10",null,{"name":"Next.Metadata","children":"$L17"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$18",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0t_Cdsf-nvbYcwqDy78ch"}
|
|
22
|
+
6:C
|
|
23
|
+
d:{}
|
|
24
|
+
e:"$9:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
25
|
+
14:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
26
|
+
11:null
|
|
27
|
+
17:[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}]]
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
2
|
+
4:[["children",{"s":"__PAGE__","h":160}]]
|
|
3
|
+
3:[["children",{"s":"preview","h":96,"c":"$Q4"}]]
|
|
4
|
+
2:[["children",{"s":{"n":"id","t":"d","k":"__placeholder__","s":[]},"h":96,"c":"$Q3"}]]
|
|
5
|
+
1:[["children",{"s":"p","h":96,"c":"$Q2"}]]
|
|
6
|
+
0:{"b":"0t_Cdsf-nvbYcwqDy78ch","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:"/_next/static/chunks/3qfy96eoyh-ek.js"
|
|
3
|
+
3:I[39756,["$2"],"default"]
|
|
4
|
+
4:I[37457,["$2"],"default"]
|
|
5
|
+
f:I[47257,["$2"],"ClientPageRoot"]
|
|
6
|
+
10:"/_next/static/chunks/1vsonpqt4u2rw.js"
|
|
7
|
+
11:I[78988,["$2","$10"],"default"]
|
|
8
|
+
14:I[97367,["$2"],"OutletBoundary"]
|
|
9
|
+
15:"$Sreact.suspense"
|
|
10
|
+
18:"ViewportBoundary"
|
|
11
|
+
19:I[97367,["$2"],"$18"]
|
|
12
|
+
1a:"MetadataBoundary"
|
|
13
|
+
1b:I[97367,["$2"],"$1a"]
|
|
14
|
+
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
15
|
+
6:X
|
|
16
|
+
9:X
|
|
17
|
+
9:C
|
|
18
|
+
e:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[["$","$Lf",null,{"Component":"$11","serverProvidedParams":{"searchParams":{},"params":{"id":"__placeholder__"},"promises":["$@12","$@13"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/1vsonpqt4u2rw.js","async":true}]],["$","$L14",null,{"children":["$","$15",null,{"name":"Next.MetadataOutlet","children":"$@16"}]}]]}],"p":"$@17","v":null,"s":"$6"}}]]
|
|
19
|
+
c:[["children",{"s":"preview","h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}]}]]}],"p":"$@d","v":"$9","s":"$6"},"c":"$Qe"}]]
|
|
20
|
+
a:[["children",{"s":{"n":"id","t":"d","k":"__placeholder__","s":[]},"h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}]}]]}],"p":"$@b","v":null,"s":"$6"},"c":"$Qc"}]]
|
|
21
|
+
7:[["children",{"s":"p","h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}]}]]}],"p":"$@8","v":"$9","s":"$6"},"c":"$Qa"}]]
|
|
22
|
+
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","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."}]}]]}]}]],[]]}]}]}]]}],"p":"$@5","v":null,"s":"$6"},"c":"$Q7"},"h":{"r":["$","$1","h",{"children":[null,["$","$L19",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L1b",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$15",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}]]}]}],null]}],null]}],"p":"$@1c","v":null,"s":"$6"}},"a":"$@1d","u":"$@1e","b":"0t_Cdsf-nvbYcwqDy78ch"}
|
|
23
|
+
12:{}
|
|
24
|
+
13:"$e:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
25
|
+
16:null
|
|
26
|
+
6:300
|
|
27
|
+
1e:true
|
|
28
|
+
6:C
|
|
29
|
+
1d:0
|
|
30
|
+
d:"$undefined"
|
|
31
|
+
b:"$undefined"
|
|
32
|
+
8:"$undefined"
|
|
33
|
+
5:"$undefined"
|
|
34
|
+
1c:"$undefined"
|
|
35
|
+
17:"$undefined"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/2utugak-w5oge.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3v_59l1qr_8dp.js"/><script src="/_next/static/chunks/2r7iycbt4s29o.js" async=""></script><script src="/_next/static/chunks/39_j1bdzreq0m.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/3qfy96eoyh-ek.js" async=""></script><script src="/_next/static/chunks/1vsonpqt4u2rw.js" async=""></script><title>Draftboard · AI 演示文稿工作台</title><meta name="description" content="以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="min-h-screen bg-[#f5f5f7] text-[#1d1d1f]"><div hidden=""><!--$--><!--/$--></div><div class="min-h-screen flex flex-col bg-[#ececef] text-[#1d1d1f]"><header class="h-[52px] apple-glass border-b border-black/[0.07] px-5 flex items-center justify-between gap-3 sticky top-0 z-30"><div class="flex items-center gap-3 min-w-0"><a class="inline-flex items-center gap-1.5 text-[13px] font-medium text-[#6e6e73] hover:text-[#1d1d1f] transition-colors whitespace-nowrap" href="/p/__placeholder__"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left w-4 h-4" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg><span>返回工作台</span></a><span class="text-[#d2d2d7]">/</span><span class="text-[14.5px] font-semibold text-[#1d1d1f] truncate">__placeholder__<!-- --> · Office 真机预览</span></div><div class="flex items-center gap-2 shrink-0"><a href="/api/projects/__placeholder__/download/pdf" download="" class="px-3.5 py-1.5 rounded-full bg-black/[0.06] hover:bg-black/[0.1] text-[#1d1d1f] text-[12.5px] font-medium transition-colors flex items-center gap-1.5 whitespace-nowrap"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-download w-3.5 h-3.5" aria-hidden="true"><path d="M12 15V3"></path><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><path d="m7 10 5 5 5-5"></path></svg><span>下载 PDF</span></a><a href="/api/projects/__placeholder__/download" download="" class="px-4 py-1.5 rounded-full bg-[#0071e3] hover:bg-[#0077ed] text-white text-[12.5px] font-medium transition-colors flex items-center gap-1.5 whitespace-nowrap shadow-[0_1px_2px_rgba(0,113,227,0.22)]"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-download w-3.5 h-3.5" aria-hidden="true"><path d="M12 15V3"></path><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><path d="m7 10 5 5 5-5"></path></svg><span>下载 PPTX</span></a></div></header><main class="flex-1 flex flex-col items-center justify-center p-6 sm:p-8 gap-6"><div class="bg-white rounded-[18px] p-10 slide-shadow max-w-md w-full text-center space-y-4"><div class="text-[16px] font-semibold text-[#1d1d1f]">尚未生成 Office 渲染预览</div><p class="text-[13.5px] text-[#6e6e73] leading-relaxed">请先回到工作台确认大纲并导出 PPTX。</p><a class="inline-block px-5 py-2.5 rounded-full bg-[#0071e3] hover:bg-[#0077ed] text-white text-[13.5px] font-medium transition-colors" href="/p/__placeholder__">返回工作台</a></div></main></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3v_59l1qr_8dp.js","static/chunks/2r7iycbt4s29o.js","static/chunks/39_j1bdzreq0m.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3v_59l1qr_8dp.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/3qfy96eoyh-ek.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\na:I[47257,[\"$2\"],\"ClientPageRoot\"]\nb:\"/_next/static/chunks/1vsonpqt4u2rw.js\"\nc:I[78988,[\"$2\",\"$b\"],\"default\"]\nf:I[97367,[\"$2\"],\"OutletBoundary\"]\n10:\"$Sreact.suspense\"\n12:\"ViewportBoundary\"\n13:I[97367,[\"$2\"],\"$12\"]\n15:\"MetadataBoundary\"\n16:I[97367,[\"$2\"],\"$15\"]\n18:I[68027,[\"$2\"],\"default\",1]\n:HL[\"/_next/static/chunks/2utugak-w5oge.css\",\"style\"]\n6:X\n9:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$La\",null,{\"Component\":\"$c\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{\"id\":\"__placeholder__\"},\"promises\":[\"$@d\",\"$@e\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/1vsonpqt4u2rw.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$10\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@11\"}]}]]}],\"p\":false,\"v\":null}}]]\n8:[[\"children\",{\"s\":\"preview\",\"h\":512,\"d\":{\"r\":[\"$\",\"$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\"}]]}],\"p\":false,\"v\":\"$6\"},\"c\":\"$Q9\"}]]\n7:[[\"children\",{\"s\":{\"n\":\"id\",\"t\":\"d\",\"k\":\"__placeholder__\",\"s\":[]},\"h\":512,\"d\":{\"r\":[\"$\",\"$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\"}]]}],\"p\":false,\"v\":null},\"c\":\"$Q8\"}]]\n5:[[\"children\",{\"s\":\"p\",\"h\":512,\"d\":{\"r\":[\"$\",\"$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\"}]]}],\"p\":false,\"v\":\"$6\"},\"c\":\"$Q7\"}]]\n0:{\"P\":null,\"c\":[\"\",\"p\",\"__placeholder__\",\"preview\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2utugak-w5oge.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3qfy96eoyh-ek.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]\",\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"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.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q5\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L13\",null,{\"children\":\"$L14\"}],[\"$\",\"$L16\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$10\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L17\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$18\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2utugak-w5oge.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"0t_Cdsf-nvbYcwqDy78ch\"}\n6:C\nd:{}\ne:\"$9:0:1:d:r:props:children:0:props:serverProvidedParams:params\"\n14:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n11:null\n17:[[\"$\",\"title\",\"0\",{\"children\":\"Draftboard · AI 演示文稿工作台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台\"}]]\n"])</script></body></html>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:"/_next/static/chunks/3qfy96eoyh-ek.js"
|
|
3
|
+
3:I[39756,["$2"],"default"]
|
|
4
|
+
4:I[37457,["$2"],"default"]
|
|
5
|
+
a:I[47257,["$2"],"ClientPageRoot"]
|
|
6
|
+
b:"/_next/static/chunks/1vsonpqt4u2rw.js"
|
|
7
|
+
c:I[78988,["$2","$b"],"default"]
|
|
8
|
+
f:I[97367,["$2"],"OutletBoundary"]
|
|
9
|
+
10:"$Sreact.suspense"
|
|
10
|
+
12:"ViewportBoundary"
|
|
11
|
+
13:I[97367,["$2"],"$12"]
|
|
12
|
+
15:"MetadataBoundary"
|
|
13
|
+
16:I[97367,["$2"],"$15"]
|
|
14
|
+
18:I[68027,["$2"],"default",1]
|
|
15
|
+
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
16
|
+
6:X
|
|
17
|
+
9:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$La",null,{"Component":"$c","serverProvidedParams":{"searchParams":{},"params":{"id":"__placeholder__"},"promises":["$@d","$@e"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/1vsonpqt4u2rw.js","async":true,"nonce":"$undefined"}]],["$","$Lf",null,{"children":["$","$10",null,{"name":"Next.MetadataOutlet","children":"$@11"}]}]]}],"p":false,"v":null}}]]
|
|
18
|
+
8:[["children",{"s":"preview","h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":"$6"},"c":"$Q9"}]]
|
|
19
|
+
7:[["children",{"s":{"n":"id","t":"d","k":"__placeholder__","s":[]},"h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":null},"c":"$Q8"}]]
|
|
20
|
+
5:[["children",{"s":"p","h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":"$6"},"c":"$Q7"}]]
|
|
21
|
+
0:{"P":null,"c":["","p","__placeholder__","preview"],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],"p":false,"v":null},"c":"$Q5"},"h":{"r":["$","$1","h",{"children":[null,["$","$L13",null,{"children":"$L14"}],["$","$L16",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$10",null,{"name":"Next.Metadata","children":"$L17"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$18",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0t_Cdsf-nvbYcwqDy78ch"}
|
|
22
|
+
6:C
|
|
23
|
+
d:{}
|
|
24
|
+
e:"$9:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
25
|
+
14:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
26
|
+
11:null
|
|
27
|
+
17:[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}]]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/2utugak-w5oge.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3v_59l1qr_8dp.js"/><script src="/_next/static/chunks/2r7iycbt4s29o.js" async=""></script><script src="/_next/static/chunks/39_j1bdzreq0m.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/3qfy96eoyh-ek.js" async=""></script><script src="/_next/static/chunks/24xul4hawiu8l.js" async=""></script><script src="/_next/static/chunks/3u8gxd9uztfzl.js" async=""></script><title>Draftboard · AI 演示文稿工作台</title><meta name="description" content="以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="min-h-screen bg-[#f5f5f7] text-[#1d1d1f]"><div hidden=""><!--$--><!--/$--></div><div class="h-screen overflow-hidden flex flex-col bg-[#f5f5f7] text-[#1d1d1f]"><input type="file" accept=".md,.txt,.pdf,.docx,.png,.jpg,.jpeg" multiple="" class="hidden"/><header class="h-[52px] apple-glass border-b border-black/[0.07] px-4 flex items-center justify-between gap-3 sticky top-0 z-40 shrink-0"><div class="flex items-center gap-2.5 min-w-0"><a class="w-7 h-7 rounded-[8px] bg-[#1d1d1f] text-white flex items-center justify-center font-semibold text-[13px] hover:opacity-85 transition-opacity shrink-0" title="返回文稿列表" href="/">D</a><div class="flex items-center gap-2 min-w-0"><button type="button" title="点击重命名文稿" class="text-[14.5px] font-semibold tracking-[-0.015em] text-[#1d1d1f] hover:text-[#0071e3] truncate cursor-pointer transition-colors">__placeholder__</button></div></div><div class="flex items-center gap-1.5 shrink-0"><button type="button" class="px-3 py-1.5 rounded-full text-[12.5px] font-medium transition-colors cursor-pointer whitespace-nowrap text-[#1d1d1f] hover:bg-black/[0.05]">素材 · <!-- -->0</button><button type="button" class="px-4 py-1.5 rounded-full text-[12.5px] font-medium bg-[#0071e3] hover:bg-[#0077ed] text-white transition-colors cursor-pointer whitespace-nowrap shadow-[0_1px_2px_rgba(0,113,227,0.22)]">上传素材</button></div></header><section class="flex-1 min-h-0 overflow-y-auto bg-[#ececef] flex items-center justify-center p-6 sm:p-10"><div class="w-full max-w-[780px] rounded-[18px] bg-white slide-shadow border-2 border-dashed transition-all flex flex-col items-center justify-center text-center p-8 sm:p-11 space-y-5 border-black/[0.12]"><div class="w-14 h-14 rounded-2xl bg-[#f5f5f7] flex items-center justify-center text-[#0071e3]"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-upload w-6 h-6" aria-hidden="true"><path d="M12 3v12"></path><path d="m17 8-5-5-5 5"></path><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path></svg></div><div class="space-y-1.5 max-w-md"><h2 class="text-[22px] font-semibold tracking-[-0.02em] text-[#1d1d1f]">导入文档素材,或从一句话主题开始</h2><p class="text-[14px] text-[#6e6e73] leading-relaxed">支持 PDF、Word (.docx)、Markdown、TXT 与图片;凡缺少原始素材依据的数据将自动标记为「待补出处」,绝不编造数字。</p></div><div class="flex flex-wrap items-center justify-center gap-3"><button type="button" class="px-5 py-2.5 rounded-full bg-[#0071e3] hover:bg-[#0077ed] text-white text-[14px] font-medium shadow-[0_2px_8px_rgba(0,113,227,0.22)] cursor-pointer transition-colors">选择本地文件 (.md / .pdf / .docx / 图片)</button><button type="button" class="px-5 py-2.5 rounded-full bg-[#f5f5f7] hover:bg-black/[0.07] text-[#1d1d1f] text-[14px] font-medium inline-flex items-center gap-1.5 cursor-pointer transition-colors"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clipboard-paste w-4 h-4 text-[#0071e3]" aria-hidden="true"><path d="M11 14h10"></path><path d="M16 4h2a2 2 0 0 1 2 2v1.344"></path><path d="m17 18 4-4-4-4"></path><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113"></path><rect x="8" y="2" width="8" height="4" rx="1"></rect></svg><span>直接粘贴长文笔记</span></button></div><form class="w-full max-w-lg pt-3 border-t border-black/[0.06] space-y-2"><div class="text-[12px] text-[#86868b]">还没有现成文档?输入一句话主题先拉出大纲框架:</div><div class="flex items-center gap-2"><input type="text" placeholder="例如:制作一份 6 页的 Q3 产品技术复盘汇报…" class="flex-1 text-[13.5px] text-[#1d1d1f] placeholder-[#86868b] bg-[#f5f5f7] focus:bg-white rounded-full px-4 py-2 border border-transparent focus:border-[#0071e3] outline-none transition-all" value=""/><button type="submit" disabled="" class="px-4 py-2 rounded-full bg-[#1d1d1f] hover:bg-[#323236] text-white text-[13px] font-medium transition-colors cursor-pointer disabled:opacity-40 whitespace-nowrap">生成大纲</button></div></form></div></section></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3v_59l1qr_8dp.js","static/chunks/2r7iycbt4s29o.js","static/chunks/39_j1bdzreq0m.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3v_59l1qr_8dp.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/3qfy96eoyh-ek.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\n9:I[47257,[\"$2\"],\"ClientPageRoot\"]\na:\"/_next/static/chunks/24xul4hawiu8l.js\"\nb:\"/_next/static/chunks/3u8gxd9uztfzl.js\"\nc:I[64707,[\"$2\",\"$a\",\"$b\"],\"default\"]\nf:I[97367,[\"$2\"],\"OutletBoundary\"]\n10:\"$Sreact.suspense\"\n12:\"ViewportBoundary\"\n13:I[97367,[\"$2\"],\"$12\"]\n15:\"MetadataBoundary\"\n16:I[97367,[\"$2\"],\"$15\"]\n18:I[68027,[\"$2\"],\"default\",1]\n:HL[\"/_next/static/chunks/2utugak-w5oge.css\",\"style\"]\n6:X\n8:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L9\",null,{\"Component\":\"$c\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{\"id\":\"__placeholder__\"},\"promises\":[\"$@d\",\"$@e\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/24xul4hawiu8l.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/3u8gxd9uztfzl.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$10\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@11\"}]}]]}],\"p\":false,\"v\":null}}]]\n7:[[\"children\",{\"s\":{\"n\":\"id\",\"t\":\"d\",\"k\":\"__placeholder__\",\"s\":[]},\"h\":512,\"d\":{\"r\":[\"$\",\"$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\"}]]}],\"p\":false,\"v\":null},\"c\":\"$Q8\"}]]\n5:[[\"children\",{\"s\":\"p\",\"h\":512,\"d\":{\"r\":[\"$\",\"$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\"}]]}],\"p\":false,\"v\":\"$6\"},\"c\":\"$Q7\"}]]\n0:{\"P\":null,\"c\":[\"\",\"p\",\"__placeholder__\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2utugak-w5oge.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3qfy96eoyh-ek.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]\",\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"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.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q5\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L13\",null,{\"children\":\"$L14\"}],[\"$\",\"$L16\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$10\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L17\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$18\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2utugak-w5oge.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"0t_Cdsf-nvbYcwqDy78ch\"}\n6:C\nd:{}\ne:\"$8:0:1:d:r:props:children:0:props:serverProvidedParams:params\"\n14:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n11:null\n17:[[\"$\",\"title\",\"0\",{\"children\":\"Draftboard · AI 演示文稿工作台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台\"}]]\n"])</script></body></html>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:"/_next/static/chunks/3qfy96eoyh-ek.js"
|
|
3
|
+
3:I[39756,["$2"],"default"]
|
|
4
|
+
4:I[37457,["$2"],"default"]
|
|
5
|
+
9:I[47257,["$2"],"ClientPageRoot"]
|
|
6
|
+
a:"/_next/static/chunks/24xul4hawiu8l.js"
|
|
7
|
+
b:"/_next/static/chunks/3u8gxd9uztfzl.js"
|
|
8
|
+
c:I[64707,["$2","$a","$b"],"default"]
|
|
9
|
+
f:I[97367,["$2"],"OutletBoundary"]
|
|
10
|
+
10:"$Sreact.suspense"
|
|
11
|
+
12:"ViewportBoundary"
|
|
12
|
+
13:I[97367,["$2"],"$12"]
|
|
13
|
+
15:"MetadataBoundary"
|
|
14
|
+
16:I[97367,["$2"],"$15"]
|
|
15
|
+
18:I[68027,["$2"],"default",1]
|
|
16
|
+
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
17
|
+
6:X
|
|
18
|
+
8:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$L9",null,{"Component":"$c","serverProvidedParams":{"searchParams":{},"params":{"id":"__placeholder__"},"promises":["$@d","$@e"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/24xul4hawiu8l.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/3u8gxd9uztfzl.js","async":true,"nonce":"$undefined"}]],["$","$Lf",null,{"children":["$","$10",null,{"name":"Next.MetadataOutlet","children":"$@11"}]}]]}],"p":false,"v":null}}]]
|
|
19
|
+
7:[["children",{"s":{"n":"id","t":"d","k":"__placeholder__","s":[]},"h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":null},"c":"$Q8"}]]
|
|
20
|
+
5:[["children",{"s":"p","h":512,"d":{"r":["$","$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"}]]}],"p":false,"v":"$6"},"c":"$Q7"}]]
|
|
21
|
+
0:{"P":null,"c":["","p","__placeholder__"],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],"p":false,"v":null},"c":"$Q5"},"h":{"r":["$","$1","h",{"children":[null,["$","$L13",null,{"children":"$L14"}],["$","$L16",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$10",null,{"name":"Next.Metadata","children":"$L17"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$18",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0t_Cdsf-nvbYcwqDy78ch"}
|
|
22
|
+
6:C
|
|
23
|
+
d:{}
|
|
24
|
+
e:"$8:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
25
|
+
14:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
26
|
+
11:null
|
|
27
|
+
17:[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}]]
|
draftboard/storage.py
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Local JSON file storage for Draftboard projects.
|
|
3
|
+
All writes are atomic (write to .tmp then rename).
|
|
4
|
+
Storage root: ~/.draftboard/projects/{project_id}/
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import json
|
|
8
|
+
import hashlib
|
|
9
|
+
import os
|
|
10
|
+
import pathlib
|
|
11
|
+
import sys
|
|
12
|
+
import time
|
|
13
|
+
from typing import Optional
|
|
14
|
+
|
|
15
|
+
from draftboard.models import Artifact, Outline, SourceFragment, ValidationReport
|
|
16
|
+
|
|
17
|
+
STORAGE_ROOT = pathlib.Path(
|
|
18
|
+
os.environ.get("DRAFTBOARD_STORAGE_ROOT")
|
|
19
|
+
or pathlib.Path.home() / ".draftboard" / "projects"
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _safe_mkdir(path: pathlib.Path) -> None:
|
|
24
|
+
try:
|
|
25
|
+
path.mkdir(parents=True, exist_ok=True)
|
|
26
|
+
except PermissionError:
|
|
27
|
+
if sys.platform == "win32":
|
|
28
|
+
import subprocess
|
|
29
|
+
try:
|
|
30
|
+
subprocess.run(
|
|
31
|
+
["icacls", str(path.parent), "/setintegritylevel", "(OI)(CI)L"],
|
|
32
|
+
check=False,
|
|
33
|
+
capture_output=True,
|
|
34
|
+
)
|
|
35
|
+
path.mkdir(parents=True, exist_ok=True)
|
|
36
|
+
return
|
|
37
|
+
except Exception:
|
|
38
|
+
pass
|
|
39
|
+
raise
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def load_json(path: pathlib.Path) -> dict:
|
|
43
|
+
"""Read a JSON file, retrying briefly on Windows replace/read races."""
|
|
44
|
+
for attempt in range(20):
|
|
45
|
+
try:
|
|
46
|
+
return json.loads(path.read_text(encoding="utf-8"))
|
|
47
|
+
except PermissionError:
|
|
48
|
+
if attempt == 19:
|
|
49
|
+
raise
|
|
50
|
+
time.sleep(0.05)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class ProjectStorage:
|
|
54
|
+
"""Persistent project storage backed by local JSON files."""
|
|
55
|
+
|
|
56
|
+
def __init__(
|
|
57
|
+
self,
|
|
58
|
+
project_id: str,
|
|
59
|
+
storage_root: Optional[pathlib.Path] = None,
|
|
60
|
+
) -> None:
|
|
61
|
+
self.project_id = project_id
|
|
62
|
+
self.root = (storage_root or STORAGE_ROOT) / project_id
|
|
63
|
+
_safe_mkdir(self.root)
|
|
64
|
+
|
|
65
|
+
# ── helpers ──────────────────────────────────────────────────────────────
|
|
66
|
+
|
|
67
|
+
def _atomic_write(self, path: pathlib.Path, data: dict) -> None:
|
|
68
|
+
"""Write JSON atomically via a .tmp file."""
|
|
69
|
+
_safe_mkdir(path.parent)
|
|
70
|
+
tmp = path.with_suffix(".tmp")
|
|
71
|
+
tmp.write_text(json.dumps(data, indent=2, ensure_ascii=False), encoding="utf-8")
|
|
72
|
+
# On Windows os.replace fails with WinError 5 while a concurrent
|
|
73
|
+
# reader (e.g. task polling) holds the target open; retry briefly.
|
|
74
|
+
for attempt in range(20):
|
|
75
|
+
try:
|
|
76
|
+
tmp.replace(path)
|
|
77
|
+
return
|
|
78
|
+
except PermissionError:
|
|
79
|
+
if attempt == 19:
|
|
80
|
+
raise
|
|
81
|
+
time.sleep(0.05)
|
|
82
|
+
|
|
83
|
+
# ── source fragments ─────────────────────────────────────────────────────
|
|
84
|
+
|
|
85
|
+
def save_sources(self, fragments: list[SourceFragment]) -> None:
|
|
86
|
+
"""Persist the latest material read so citations can be validated."""
|
|
87
|
+
self._atomic_write(
|
|
88
|
+
self.root / "sources.json",
|
|
89
|
+
{"fragments": [f.model_dump() for f in fragments]},
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
def load_source_ids(self) -> set[str]:
|
|
93
|
+
"""Return known source fragment IDs; empty set if never read."""
|
|
94
|
+
path = self.root / "sources.json"
|
|
95
|
+
if not path.exists():
|
|
96
|
+
return set()
|
|
97
|
+
data = load_json(path)
|
|
98
|
+
return {f["source_id"] for f in data["fragments"]}
|
|
99
|
+
|
|
100
|
+
# ── outline ──────────────────────────────────────────────────────────────
|
|
101
|
+
|
|
102
|
+
def save_outline(self, outline: Outline) -> None:
|
|
103
|
+
"""Persist an outline to disk."""
|
|
104
|
+
path = self.root / "outlines" / f"{outline.outline_version}.json"
|
|
105
|
+
self._atomic_write(path, outline.model_dump())
|
|
106
|
+
|
|
107
|
+
def load_outline(self, outline_version: str) -> Outline:
|
|
108
|
+
"""Load an outline by version; raises KeyError if not found."""
|
|
109
|
+
path = self.root / "outlines" / f"{outline_version}.json"
|
|
110
|
+
if not path.exists():
|
|
111
|
+
raise KeyError(f"Outline '{outline_version}' not found in project '{self.project_id}'")
|
|
112
|
+
data = load_json(path)
|
|
113
|
+
return Outline.model_validate(data)
|
|
114
|
+
|
|
115
|
+
def confirm_outline(self, outline_version: str) -> Outline:
|
|
116
|
+
"""Set is_confirmed=True on an outline and persist it."""
|
|
117
|
+
outline = self.load_outline(outline_version)
|
|
118
|
+
outline.is_confirmed = True
|
|
119
|
+
self.save_outline(outline)
|
|
120
|
+
return outline
|
|
121
|
+
|
|
122
|
+
# ── artifact ─────────────────────────────────────────────────────────────
|
|
123
|
+
|
|
124
|
+
def save_artifact(self, artifact: Artifact) -> None:
|
|
125
|
+
"""Persist an artifact revision to disk."""
|
|
126
|
+
path = (
|
|
127
|
+
self.root
|
|
128
|
+
/ "artifacts"
|
|
129
|
+
/ artifact.artifact_id
|
|
130
|
+
/ f"r{artifact.artifact_revision}.json"
|
|
131
|
+
)
|
|
132
|
+
self._atomic_write(path, artifact.model_dump())
|
|
133
|
+
|
|
134
|
+
def load_artifact(self, artifact_id: str, revision: int) -> Artifact:
|
|
135
|
+
"""Load a specific artifact revision; raises KeyError if not found."""
|
|
136
|
+
path = self.root / "artifacts" / artifact_id / f"r{revision}.json"
|
|
137
|
+
if not path.exists():
|
|
138
|
+
raise KeyError(
|
|
139
|
+
f"Artifact '{artifact_id}' revision {revision} not found "
|
|
140
|
+
f"in project '{self.project_id}'"
|
|
141
|
+
)
|
|
142
|
+
data = load_json(path)
|
|
143
|
+
return Artifact.model_validate(data)
|
|
144
|
+
|
|
145
|
+
def save_export_report(self, artifact_id: str, revision: int, result: dict) -> None:
|
|
146
|
+
"""Persist an export result report next to the exported file."""
|
|
147
|
+
path = self.root / "exports" / f"{artifact_id}-r{revision}.report.json"
|
|
148
|
+
self._atomic_write(path, result)
|
|
149
|
+
|
|
150
|
+
def save_task(self, task_id: str, record: dict) -> None:
|
|
151
|
+
"""Persist a background task status record."""
|
|
152
|
+
self._atomic_write(self.root / "tasks" / f"{task_id}.json", record)
|
|
153
|
+
|
|
154
|
+
def next_revision(self, artifact_id: str) -> int:
|
|
155
|
+
"""Return next revision number (max existing + 1, minimum 1)."""
|
|
156
|
+
artifact_dir = self.root / "artifacts" / artifact_id
|
|
157
|
+
if not artifact_dir.exists():
|
|
158
|
+
return 1
|
|
159
|
+
revisions = []
|
|
160
|
+
for f in artifact_dir.glob("r*.json"):
|
|
161
|
+
stem = f.stem # e.g. "r3"
|
|
162
|
+
try:
|
|
163
|
+
revisions.append(int(stem[1:]))
|
|
164
|
+
except ValueError:
|
|
165
|
+
pass
|
|
166
|
+
return max(revisions, default=0) + 1
|
|
167
|
+
|
|
168
|
+
# ── idempotency ───────────────────────────────────────────────────────────
|
|
169
|
+
|
|
170
|
+
def _idem_path(self, key: str) -> pathlib.Path:
|
|
171
|
+
key_hash = hashlib.sha256(key.encode()).hexdigest()[:16]
|
|
172
|
+
return self.root / "idempotent" / f"{key_hash}.json"
|
|
173
|
+
|
|
174
|
+
def save_idempotent_result(self, key: str, result: dict) -> None:
|
|
175
|
+
"""Cache an idempotent operation result."""
|
|
176
|
+
self._atomic_write(self._idem_path(key), result)
|
|
177
|
+
|
|
178
|
+
def load_idempotent_result(self, key: str) -> Optional[dict]:
|
|
179
|
+
"""Return cached idempotent result, or None if not found."""
|
|
180
|
+
path = self._idem_path(key)
|
|
181
|
+
if not path.exists():
|
|
182
|
+
return None
|
|
183
|
+
return load_json(path)
|