@skspwork/config-doc 2.0.2 → 2.0.3
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/package.json +2 -2
- package/packages/web/.next/standalone/.next/server/app/index.html +1 -1
- package/packages/web/.next/standalone/.next/server/app/index.rsc +2 -2
- package/packages/web/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/packages/web/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/packages/web/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/packages/web/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_d09de205.js +58 -19
- package/packages/web/.next/standalone/.next/server/chunks/ssr/app_page_tsx_55b2e5ee._.js +1 -1
- package/packages/web/.next/standalone/.next/static/chunks/54e2bd8f072e7d4e.js +1 -0
- package/packages/web/.next/standalone/lib/configParser.ts +44 -0
- package/packages/web/.next/standalone/lib/htmlGenerator.ts +42 -3
- package/packages/web/.next/standalone/lib/markdownGenerator.ts +28 -14
- package/packages/web/.next/standalone/lib/markdownTableGenerator.ts +24 -17
- package/packages/web/.next/standalone/playwright-report/index.html +1 -1
- package/packages/web/.next/static/chunks/54e2bd8f072e7d4e.js +1 -0
- package/packages/web/.next/standalone/.next/static/chunks/1747faf69b71cf6d.js +0 -1
- package/packages/web/.next/static/chunks/1747faf69b71cf6d.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skspwork/config-doc",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Interactive documentation tool for JSON configuration files (appsettings.json)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "cd packages/web && npm install && npm run build && cd ../.. && node scripts/prepare-standalone.js",
|
|
45
45
|
"prepublishOnly": "npm run build",
|
|
46
|
-
"test:local": "npm pack && npm install -g skspwork-config-doc-2.0.
|
|
46
|
+
"test:local": "npm pack && npm install -g skspwork-config-doc-2.0.3.tgz",
|
|
47
47
|
"unlink": "npm unlink -g @skspwork/config-doc"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--config_doc_build--><html lang="ja"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" as="image" href="/logo.svg"/><link rel="stylesheet" href="/_next/static/chunks/4bbca8cd642026de.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/5f8f53e7772f4262.js"/><script src="/_next/static/chunks/cc759f7c2413b7ff.js" async=""></script><script src="/_next/static/chunks/30420d12e4f82b67.js" async=""></script><script src="/_next/static/chunks/turbopack-5b6cb51ab4268fba.js" async=""></script><script src="/_next/static/chunks/4fd93823156e59e8.js" async=""></script><script src="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><!--config_doc_build--><html lang="ja"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" as="image" href="/logo.svg"/><link rel="stylesheet" href="/_next/static/chunks/4bbca8cd642026de.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/5f8f53e7772f4262.js"/><script src="/_next/static/chunks/cc759f7c2413b7ff.js" async=""></script><script src="/_next/static/chunks/30420d12e4f82b67.js" async=""></script><script src="/_next/static/chunks/turbopack-5b6cb51ab4268fba.js" async=""></script><script src="/_next/static/chunks/4fd93823156e59e8.js" async=""></script><script src="/_next/static/chunks/54e2bd8f072e7d4e.js" async=""></script><meta name="next-size-adjust" content=""/><title>ConfigDoc Web</title><meta name="description" content="設定ファイルのドキュメント化ツール"/><link rel="icon" href="/icon.svg?icon.a94c747f.svg" sizes="any" type="image/svg+xml"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased"><div hidden=""><!--$--><!--/$--></div><div class="min-h-screen bg-gradient-to-br from-blue-50 via-indigo-50 to-purple-50"><header class="bg-white/80 backdrop-blur-md border-b border-gray-200 shadow-sm sticky top-0 z-50"><div class="container mx-auto px-6 py-4 flex items-center justify-between"><div class="flex items-center gap-3"><img src="/logo.svg" alt="ConfigDoc" class="w-12 h-12 rounded-lg"/><div><h1 class="text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">ConfigDoc</h1><p class="text-xs text-gray-500">Configuration Documentation Tool</p></div></div><button class="flex items-center gap-2 px-5 py-2.5 bg-gradient-to-r from-green-500 to-emerald-600 text-white rounded-lg hover:from-green-600 hover:to-emerald-700 shadow-md hover:shadow-lg transition-all duration-200 transform" title="エクスポート"><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-5 h-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 class="font-medium">エクスポート</span></button></div></header><main class="container mx-auto px-6 py-8"><div class="bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl border border-gray-100 p-6 mb-8 hover:shadow-2xl transition-shadow duration-300"><div class="flex items-center justify-between mb-4"><div class="flex items-center gap-2"><div class="w-8 h-8 bg-gradient-to-br from-blue-500 to-blue-600 rounded-lg flex items-center justify-center"><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-folder-open w-5 h-5 text-white" aria-hidden="true"><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"></path></svg></div><h2 class="text-xl font-bold text-gray-800">設定ファイル</h2></div><button class="flex items-center gap-2 px-4 py-2 bg-gradient-to-r from-blue-500 to-blue-600 text-white rounded-lg hover:from-blue-600 hover:to-blue-700 shadow-md hover:shadow-lg transition-all duration-200 transform"><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-folder-open w-5 h-5" aria-hidden="true"><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"></path></svg><span class="font-medium">ファイルを追加</span></button></div><div class="text-center py-12 bg-gradient-to-br from-gray-50 to-gray-100 rounded-xl border-2 border-dashed border-gray-300"><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-folder-open w-16 h-16 text-gray-400 mx-auto mb-3" aria-hidden="true"><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"></path></svg><p class="text-sm text-gray-600 font-medium">設定ファイルを選択してください</p><p class="text-xs text-gray-500 mt-1">「ファイルを追加」ボタンから開始</p></div></div></main></div><!--$--><!--/$--><script src="/_next/static/chunks/5f8f53e7772f4262.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[39756,[\"/_next/static/chunks/4fd93823156e59e8.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/4fd93823156e59e8.js\"],\"default\"]\n4:I[47257,[\"/_next/static/chunks/4fd93823156e59e8.js\"],\"ClientPageRoot\"]\n5:I[31713,[\"/_next/static/chunks/54e2bd8f072e7d4e.js\"],\"default\"]\n8:I[97367,[\"/_next/static/chunks/4fd93823156e59e8.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nb:I[97367,[\"/_next/static/chunks/4fd93823156e59e8.js\"],\"ViewportBoundary\"]\nd:I[97367,[\"/_next/static/chunks/4fd93823156e59e8.js\"],\"MetadataBoundary\"]\nf:I[68027,[],\"default\"]\n:HL[\"/_next/static/chunks/4bbca8cd642026de.css\",\"style\"]\n:HL[\"/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"config-doc-build\",\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/4bbca8cd642026de.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"ja\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased\",\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",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\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L4\",null,{\"Component\":\"$5\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@6\",\"$@7\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/54e2bd8f072e7d4e.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Le\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"6:{}\n7:\"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"10:I[27201,[\"/_next/static/chunks/4fd93823156e59e8.js\"],\"IconMark\"]\na:null\ne:[[\"$\",\"title\",\"0\",{\"children\":\"ConfigDoc Web\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"設定ファイルのドキュメント化ツール\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?icon.a94c747f.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"}],[\"$\",\"$L10\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
2:I[39756,["/_next/static/chunks/4fd93823156e59e8.js"],"default"]
|
|
3
3
|
3:I[37457,["/_next/static/chunks/4fd93823156e59e8.js"],"default"]
|
|
4
4
|
4:I[47257,["/_next/static/chunks/4fd93823156e59e8.js"],"ClientPageRoot"]
|
|
5
|
-
5:I[31713,["/_next/static/chunks/
|
|
5
|
+
5:I[31713,["/_next/static/chunks/54e2bd8f072e7d4e.js"],"default"]
|
|
6
6
|
8:I[97367,["/_next/static/chunks/4fd93823156e59e8.js"],"OutletBoundary"]
|
|
7
7
|
9:"$Sreact.suspense"
|
|
8
8
|
b:I[97367,["/_next/static/chunks/4fd93823156e59e8.js"],"ViewportBoundary"]
|
|
@@ -11,7 +11,7 @@ f:I[68027,[],"default"]
|
|
|
11
11
|
:HL["/_next/static/chunks/4bbca8cd642026de.css","style"]
|
|
12
12
|
:HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
13
13
|
:HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
14
|
-
0:{"P":null,"b":"config-doc-build","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/4bbca8cd642026de.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"ja","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/
|
|
14
|
+
0:{"P":null,"b":"config-doc-build","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/4bbca8cd642026de.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"ja","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/54e2bd8f072e7d4e.js","async":true,"nonce":"$undefined"}]],["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$f",[]],"S":true}
|
|
15
15
|
6:{}
|
|
16
16
|
7:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
17
17
|
c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[47257,["/_next/static/chunks/4fd93823156e59e8.js"],"ClientPageRoot"]
|
|
3
|
-
3:I[31713,["/_next/static/chunks/
|
|
3
|
+
3:I[31713,["/_next/static/chunks/54e2bd8f072e7d4e.js"],"default"]
|
|
4
4
|
6:I[97367,["/_next/static/chunks/4fd93823156e59e8.js"],"OutletBoundary"]
|
|
5
5
|
7:"$Sreact.suspense"
|
|
6
|
-
0:{"buildId":"config-doc-build","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/
|
|
6
|
+
0:{"buildId":"config-doc-build","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/54e2bd8f072e7d4e.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
|
|
7
7
|
4:{}
|
|
8
8
|
5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
9
9
|
8:null
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
2:I[39756,["/_next/static/chunks/4fd93823156e59e8.js"],"default"]
|
|
3
3
|
3:I[37457,["/_next/static/chunks/4fd93823156e59e8.js"],"default"]
|
|
4
4
|
4:I[47257,["/_next/static/chunks/4fd93823156e59e8.js"],"ClientPageRoot"]
|
|
5
|
-
5:I[31713,["/_next/static/chunks/
|
|
5
|
+
5:I[31713,["/_next/static/chunks/54e2bd8f072e7d4e.js"],"default"]
|
|
6
6
|
8:I[97367,["/_next/static/chunks/4fd93823156e59e8.js"],"OutletBoundary"]
|
|
7
7
|
9:"$Sreact.suspense"
|
|
8
8
|
b:I[97367,["/_next/static/chunks/4fd93823156e59e8.js"],"ViewportBoundary"]
|
|
@@ -11,7 +11,7 @@ f:I[68027,[],"default"]
|
|
|
11
11
|
:HL["/_next/static/chunks/4bbca8cd642026de.css","style"]
|
|
12
12
|
:HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
13
13
|
:HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
14
|
-
0:{"P":null,"b":"config-doc-build","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/4bbca8cd642026de.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"ja","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/
|
|
14
|
+
0:{"P":null,"b":"config-doc-build","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/4bbca8cd642026de.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"ja","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/54e2bd8f072e7d4e.js","async":true,"nonce":"$undefined"}]],["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$f",[]],"S":true}
|
|
15
15
|
6:{}
|
|
16
16
|
7:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
17
17
|
c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/app/page.tsx <module evaluation>":{"id":31713,"name":"*","chunks":["/_next/static/chunks/
|
|
2
|
+
globalThis.__RSC_MANIFEST["/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/4fd93823156e59e8.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/app/page.tsx <module evaluation>":{"id":31713,"name":"*","chunks":["/_next/static/chunks/54e2bd8f072e7d4e.js"],"async":false},"[project]/app/page.tsx":{"id":31713,"name":"*","chunks":["/_next/static/chunks/54e2bd8f072e7d4e.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__e7e161a9._.js","server/chunks/ssr/node_modules_next_dist_75125036._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__e7e161a9._.js","server/chunks/ssr/node_modules_next_dist_75125036._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__e7e161a9._.js","server/chunks/ssr/node_modules_next_dist_75125036._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__e7e161a9._.js","server/chunks/ssr/node_modules_next_dist_75125036._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__e7e161a9._.js","server/chunks/ssr/node_modules_next_dist_75125036._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__e7e161a9._.js","server/chunks/ssr/node_modules_next_dist_75125036._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__e7e161a9._.js","server/chunks/ssr/node_modules_next_dist_75125036._.js"],"async":false}},"68027":{"*":{"id":40622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__a457c799._.js"],"async":false}},"31713":{"*":{"id":60350,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__f2872e68._.js","server/chunks/ssr/app_page_tsx_55b2e5ee._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"31713":{"*":{"id":83897,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/icon.svg":[],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/app/layout":[{"path":"static/chunks/4bbca8cd642026de.css","inlined":false}],"[project]/app/page":[{"path":"static/chunks/4bbca8cd642026de.css","inlined":false}]},"entryJSFiles":{"[project]/app/icon.svg":["static/chunks/4fd93823156e59e8.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/app/layout":[],"[project]/app/page":["static/chunks/54e2bd8f072e7d4e.js"]}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[47482,e=>{"use strict";var t=e.i(47909),
|
|
1
|
+
module.exports=[47482,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),a=e.i(59756),o=e.i(61916),i=e.i(74677),l=e.i(69741),s=e.i(16795),c=e.i(87718),d=e.i(95169),p=e.i(47587),f=e.i(66012),u=e.i(70101),h=e.i(26937),g=e.i(10372),m=e.i(93695);e.i(52474);var b=e.i(220),y=e.i(89171),v=e.i(27637),x=e.i(21127);function w(e){return e.replace(/\|/g,"\\|").replace(/\n/g,"<br>").replace(/\r/g,"")}function C(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}class E{fsService;storageService;constructor(e){this.fsService=new v.FileSystemService(e),this.storageService=new x.StorageService(this.fsService)}async generateHtml(){let e=await this.fsService.loadProjectSettings();if(!e||!e.configFiles||0===e.configFiles.length)return this.generateEmptyHtml();let t=[];for(let r of e.configFiles)try{let e=r.split(/[/\\]/).pop()||"config.json",n=this.storageService.getDocsFileName(r),a=await this.fsService.loadConfigFile(r),o=await this.fsService.loadConfigDocs(n);t.push({filePath:r,fileName:e,configData:a,docs:o||{configFilePath:r,lastModified:new Date().toISOString(),properties:{}}})}catch(e){console.error(`Failed to load config: ${r}`,e)}let r={projectName:e.projectName,createdAt:"",lastModified:new Date().toISOString(),configFiles:[]};return this.generateFullHtml(r,t)}generateEmptyHtml(){return`<!DOCTYPE html>
|
|
2
2
|
<html lang="ja">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
@@ -17,7 +17,7 @@ module.exports=[47482,e=>{"use strict";var t=e.i(47909),n=e.i(74017),r=e.i(96250
|
|
|
17
17
|
</main>
|
|
18
18
|
</div>
|
|
19
19
|
</body>
|
|
20
|
-
</html>`}generateFullHtml(e,t){let
|
|
20
|
+
</html>`}generateFullHtml(e,t){let r=JSON.stringify(t,null,2);return`<!DOCTYPE html>
|
|
21
21
|
<html lang="ja">
|
|
22
22
|
<head>
|
|
23
23
|
<meta charset="UTF-8">
|
|
@@ -51,7 +51,7 @@ module.exports=[47482,e=>{"use strict";var t=e.i(47909),n=e.i(74017),r=e.i(96250
|
|
|
51
51
|
</div>
|
|
52
52
|
|
|
53
53
|
<script>
|
|
54
|
-
const configs = ${
|
|
54
|
+
const configs = ${r};
|
|
55
55
|
let activeConfigIndex = 0;
|
|
56
56
|
let selectedPath = '';
|
|
57
57
|
let currentSearchQuery = '';
|
|
@@ -148,13 +148,15 @@ module.exports=[47482,e=>{"use strict";var t=e.i(47909),n=e.i(74017),r=e.i(96250
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.config-tab {
|
|
151
|
-
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
gap: 2px;
|
|
154
|
+
padding: 10px 12px;
|
|
152
155
|
background: #f9fafb;
|
|
153
156
|
border: 1px solid #e5e7eb;
|
|
154
157
|
border-radius: 4px;
|
|
155
158
|
cursor: pointer;
|
|
156
159
|
transition: all 0.2s;
|
|
157
|
-
font-size: 0.9rem;
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
.config-tab:hover {
|
|
@@ -167,10 +169,28 @@ module.exports=[47482,e=>{"use strict";var t=e.i(47909),n=e.i(74017),r=e.i(96250
|
|
|
167
169
|
border-color: #2563eb;
|
|
168
170
|
}
|
|
169
171
|
|
|
172
|
+
.config-tab.active .config-tab-path {
|
|
173
|
+
color: rgba(255, 255, 255, 0.8);
|
|
174
|
+
}
|
|
175
|
+
|
|
170
176
|
.config-tab.hidden {
|
|
171
177
|
display: none;
|
|
172
178
|
}
|
|
173
179
|
|
|
180
|
+
.config-tab-filename {
|
|
181
|
+
font-weight: 500;
|
|
182
|
+
font-size: 0.9rem;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.config-tab-path {
|
|
186
|
+
font-size: 0.75rem;
|
|
187
|
+
color: #9ca3af;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
text-overflow: ellipsis;
|
|
190
|
+
white-space: nowrap;
|
|
191
|
+
max-width: 100%;
|
|
192
|
+
}
|
|
193
|
+
|
|
174
194
|
.tree-container {
|
|
175
195
|
padding: 10px;
|
|
176
196
|
max-height: 600px;
|
|
@@ -288,6 +308,20 @@ module.exports=[47482,e=>{"use strict";var t=e.i(47909),n=e.i(74017),r=e.i(96250
|
|
|
288
308
|
border-bottom: 2px solid #e5e7eb;
|
|
289
309
|
}
|
|
290
310
|
|
|
311
|
+
.property-file {
|
|
312
|
+
font-size: 0.85rem;
|
|
313
|
+
color: #6b7280;
|
|
314
|
+
background: #f9fafb;
|
|
315
|
+
padding: 6px 10px;
|
|
316
|
+
border-radius: 4px;
|
|
317
|
+
margin-bottom: 12px;
|
|
318
|
+
font-family: 'Courier New', monospace;
|
|
319
|
+
overflow: hidden;
|
|
320
|
+
text-overflow: ellipsis;
|
|
321
|
+
white-space: nowrap;
|
|
322
|
+
cursor: help;
|
|
323
|
+
}
|
|
324
|
+
|
|
291
325
|
.property-path {
|
|
292
326
|
background: #f3f4f6;
|
|
293
327
|
padding: 10px 15px;
|
|
@@ -506,6 +540,7 @@ module.exports=[47482,e=>{"use strict";var t=e.i(47909),n=e.i(74017),r=e.i(96250
|
|
|
506
540
|
const doc = config.docs.properties && config.docs.properties[node.path];
|
|
507
541
|
|
|
508
542
|
let html = \`<h2>\${escapeHtml(node.key)}</h2>\`;
|
|
543
|
+
html += \`<div class="property-file" title="\${escapeHtml(config.filePath)}">ファイル: \${escapeHtml(config.filePath)}</div>\`;
|
|
509
544
|
html += \`<div class="property-path">パス: \${escapeHtml(node.path)}</div>\`;
|
|
510
545
|
html += \`<div class="property-value">値: \${escapeHtml(JSON.stringify(node.value, null, 2))}</div>\`;
|
|
511
546
|
|
|
@@ -566,7 +601,10 @@ module.exports=[47482,e=>{"use strict";var t=e.i(47909),n=e.i(74017),r=e.i(96250
|
|
|
566
601
|
}
|
|
567
602
|
|
|
568
603
|
tab.className = className;
|
|
569
|
-
tab.
|
|
604
|
+
tab.innerHTML = \`
|
|
605
|
+
<div class="config-tab-filename">\${escapeHtml(config.fileName)}</div>
|
|
606
|
+
<div class="config-tab-path" title="\${escapeHtml(config.filePath)}">\${escapeHtml(config.filePath)}</div>
|
|
607
|
+
\`;
|
|
570
608
|
tab.addEventListener('click', () => {
|
|
571
609
|
activeConfigIndex = index;
|
|
572
610
|
renderConfigTabs(matchedConfigIndexes);
|
|
@@ -578,6 +616,7 @@ module.exports=[47482,e=>{"use strict";var t=e.i(47909),n=e.i(74017),r=e.i(96250
|
|
|
578
616
|
});
|
|
579
617
|
tabsEl.appendChild(tab);
|
|
580
618
|
});
|
|
619
|
+
|
|
581
620
|
}
|
|
582
621
|
|
|
583
622
|
// 現在の設定を描画
|
|
@@ -716,38 +755,38 @@ module.exports=[47482,e=>{"use strict";var t=e.i(47909),n=e.i(74017),r=e.i(96250
|
|
|
716
755
|
renderCurrentConfig();
|
|
717
756
|
setupSearch();
|
|
718
757
|
}
|
|
719
|
-
`}}class S{rootPath;constructor(e){this.rootPath=e}async generateMarkdown(){let e=new
|
|
758
|
+
`}}class S{static flattenConfig(e,t=""){let r={};for(let n in e){let a=t?`${t}:${n}`:n,o=e[n];o&&"object"==typeof o?Array.isArray(o)?o.some(e=>e&&"object"==typeof e&&!Array.isArray(e))?o.forEach((e,t)=>{e&&"object"==typeof e&&!Array.isArray(e)&&Object.assign(r,this.flattenConfig(e,`${a}[${t}]`))}):r[a]=o:Object.assign(r,this.flattenConfig(o,a)):r[a]=o}return r}static getAllPropertyPaths(e,t=""){let r=[];for(let n in e){let a=t?`${t}:${n}`:n,o=e[n];r.push(a),o&&"object"==typeof o&&(Array.isArray(o)?o.some(e=>e&&"object"==typeof e&&!Array.isArray(e))&&o.forEach((e,t)=>{if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${a}[${t}]`;r.push(n),r.push(...this.getAllPropertyPaths(e,n))}}):r.push(...this.getAllPropertyPaths(o,a)))}return r}static buildTree(e,t=""){let r=[];for(let n in e){let a=t?`${t}:${n}`:n,o=e[n];if(o&&"object"==typeof o)if(Array.isArray(o))if(o.some(e=>e&&"object"==typeof e&&!Array.isArray(e))){let e=[];o.forEach((t,r)=>{t&&"object"==typeof t&&!Array.isArray(t)&&e.push({key:`[${r}]`,fullPath:`${a}[${r}]`,value:t,children:this.buildTree(t,`${a}[${r}]`),hasDocumentation:!1,type:"object"})}),r.push({key:n,fullPath:a,value:o,children:e.length>0?e:void 0,hasDocumentation:!1,type:"array"})}else r.push({key:n,fullPath:a,value:o,hasDocumentation:!1,type:"array"});else r.push({key:n,fullPath:a,value:o,children:this.buildTree(o,a),hasDocumentation:!1,type:"object"});else r.push({key:n,fullPath:a,value:o,hasDocumentation:!1,type:typeof o})}return r}}class P{rootPath;constructor(e){this.rootPath=e}async generateMarkdown(){let e=new v.FileSystemService(this.rootPath),t=new x.StorageService(e),r=await e.loadProjectSettings();if(!r||0===r.configFiles.length)return"# 設定ファイルドキュメント\n\nドキュメント化された設定ファイルがありません。\n";let n="# 設定ファイルドキュメント\n\n";for(let a of(n+=`プロジェクト: **${r.projectName}**
|
|
720
759
|
|
|
721
760
|
最終更新: ${new Date().toLocaleString("ja-JP")}
|
|
722
761
|
|
|
723
762
|
---
|
|
724
763
|
|
|
725
|
-
`,
|
|
764
|
+
`,r.configFiles)){let r=a.split(/[/\\]/).pop()||"config.json",o=await t.loadAllDocs(a),i=await e.loadConfigFile(a);n+=`## ${r}
|
|
726
765
|
|
|
727
|
-
**ファイルパス:** \`${
|
|
766
|
+
**ファイルパス:** \`${a}\`
|
|
728
767
|
|
|
729
|
-
`;let
|
|
768
|
+
`;let l=S.getAllPropertyPaths(i);if(0===l.length){n+="*プロパティがありません。*\n\n";continue}for(let e of(n+="### プロパティ一覧\n\n",l)){let t=o.properties[e];n+=`#### \`${e}\`
|
|
730
769
|
|
|
731
|
-
`,t.tags&&t.tags.length>0&&(
|
|
770
|
+
`,t?(t.tags&&t.tags.length>0&&(n+=`**タグ:** ${t.tags.map(e=>`\`${e}\``).join(", ")}
|
|
732
771
|
|
|
733
|
-
`),Object.entries(t.fields).forEach(([e,t])=>{t&&(
|
|
772
|
+
`),t.fields&&Object.entries(t.fields).forEach(([e,t])=>{t&&(n+=`**${e}:**
|
|
734
773
|
|
|
735
774
|
${t}
|
|
736
775
|
|
|
737
|
-
`)}),
|
|
738
|
-
*このドキュメントは
|
|
739
|
-
`}}class
|
|
776
|
+
`)})):n+="*ドキュメントなし*\n\n",n+="---\n\n"}}return n+=`
|
|
777
|
+
*このドキュメントは ConfigDoc により自動生成されました。*
|
|
778
|
+
`}}class ${rootPath;constructor(e){this.rootPath=e}async generateMarkdownTable(){let e=new v.FileSystemService(this.rootPath),t=new x.StorageService(e),r=await e.loadProjectSettings();if(!r||0===r.configFiles.length)return"# 設定ファイルドキュメント\n\nドキュメント化された設定ファイルがありません。\n";let n="# 設定ファイルドキュメント\n\n";for(let a of(n+=`プロジェクト: **${r.projectName}**
|
|
740
779
|
|
|
741
780
|
最終更新: ${new Date().toLocaleString("ja-JP")}
|
|
742
781
|
|
|
743
782
|
---
|
|
744
783
|
|
|
745
|
-
`,
|
|
784
|
+
`,r.configFiles)){let r=a.split(/[/\\]/).pop()||"config.json",o=await t.loadAllDocs(a),i=await e.loadConfigFile(a);n+=`## ${r}
|
|
746
785
|
|
|
747
786
|
**ファイルパス:** \`${a}\`
|
|
748
787
|
|
|
749
|
-
`;let l=
|
|
750
|
-
*このドキュメントは
|
|
751
|
-
`}getPropertyValue(e,t){var
|
|
788
|
+
`;let l=S.getAllPropertyPaths(i);if(0===l.length){n+="*プロパティがありません。*\n\n";continue}let s=new Set;l.forEach(e=>{let t=o.properties[e];t&&t.fields&&Object.keys(t.fields).forEach(e=>{"説明"!==e&&s.add(e)})});let c=Array.from(s).sort();for(let e of(n+="| プロパティ名 | タグ | 値 |",c.forEach(e=>{n+=` ${e} |`}),n+="\n|-------------|------|-----|",c.forEach(()=>{n+="------|"}),n+="\n",l)){let t=o.properties[e],r=w(e),a=t&&t.tags&&t.tags.length>0?w(t.tags.map(e=>`\`${e}\``).join(", ")):"-",l=w(this.getPropertyValue(i,e));n+=`| ${r} | ${a} | ${l} |`,c.forEach(e=>{let r=t&&t.fields&&t.fields[e]||"-";n+=` ${w(r)} |`}),n+="\n"}n+="\n"}return n+=`
|
|
789
|
+
*このドキュメントは ConfigDoc により自動生成されました。*
|
|
790
|
+
`}getPropertyValue(e,t){var r;return null==(r=function(e,t){let r=t.split(/(?=\[)|:/),n=e;for(let e of r){if(null==n)return;if(e.startsWith("[")&&e.endsWith("]")){let t=parseInt(e.slice(1,-1),10);if(!Array.isArray(n))return;n=n[t]}else if(e&&"object"==typeof n&&e in n)n=n[e];else if(e)return}return n}(e,t))?"-":"object"==typeof r?JSON.stringify(r):String(r)}}var A=e.i(10720),k=e.i(14747),D=e.i(24868);async function j(e){try{let t,r,n=(0,A.getRootPath)();try{t=await e.json()}catch{t={}}let{format:a="html"}=t,o=t.fileName?.trim()||"config-doc",i=t.outputDir?.trim()||"";if("markdown"===a){let e=new P(n);r=await e.generateMarkdown()}else if("markdown-table"===a){let e=new $(n);r=await e.generateMarkdownTable()}else{let e=new E(n);r=await e.generateHtml()}let l=`${o}.${"markdown"===a||"markdown-table"===a?"md":"html"}`,s=new v.FileSystemService(n);await s.ensureConfigDocDir();let c=i?k.default.join(n,i,l):k.default.join(n,l),d=k.default.dirname(c);return await D.default.mkdir(d,{recursive:!0}),await D.default.writeFile(c,r,"utf-8"),y.NextResponse.json({success:!0,message:`${"markdown"===a?"Markdown":"HTML"}ファイルを生成しました`,outputPath:c})}catch(e){return console.error("API Error:",e),y.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["POST",()=>j],49588);var T=e.i(49588);let R=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/export/route",pathname:"/api/export",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/export/route.ts",nextConfigOutput:"standalone",userland:T}),{workAsyncStorage:N,workUnitAsyncStorage:I,serverHooks:H}=R;function F(){return(0,n.patchFetch)({workAsyncStorage:N,workUnitAsyncStorage:I})}async function O(e,t,n){R.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let y="/api/export/route";y=y.replace(/\/index$/,"")||"/";let v=await R.prepare(e,t,{srcPage:y,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:x,params:w,nextConfig:C,parsedUrl:E,isDraftMode:S,prerenderManifest:P,routerServerContext:$,isOnDemandRevalidate:A,revalidateOnlyGenerated:k,resolvedPathname:D,clientReferenceManifest:j,serverActionsManifest:T}=v,N=(0,l.normalizeAppPath)(y),I=!!(P.dynamicRoutes[N]||P.routes[D]),H=async()=>((null==$?void 0:$.render404)?await $.render404(e,t,E,!1):t.end("This page could not be found"),null);if(I&&!S){let e=!!P.routes[D],t=P.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(C.experimental.adapterPath)return await H();throw new m.NoFallbackError}}let F=null;!I||R.isDev||S||(F="/index"===(F=D)?"/":F);let O=!0===R.isDev||!I,L=I&&!O;T&&j&&(0,i.setManifestsSingleton)({page:y,clientReferenceManifest:j,serverActionsManifest:T});let M=e.method||"GET",q=(0,o.getTracer)(),U=q.getActiveScopeSpan(),_={params:w,prerenderManifest:P,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:O,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:C.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>R.onRequestError(e,t,n,a,$)},sharedContext:{buildId:x}},z=new s.NodeNextRequest(e),B=new s.NodeNextResponse(t),K=c.NextRequestAdapter.fromNodeNextRequest(z,(0,c.signalFromNodeResponse)(t));try{let i=async e=>R.handle(K,_).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=q.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${y}`)}),l=!!(0,a.getRequestMeta)(e,"minimalMode"),s=async a=>{var o,s;let c=async({previousCacheEntry:r})=>{try{if(!l&&A&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await i(a);e.fetchMetrics=_.renderOpts.fetchMetrics;let s=_.renderOpts.pendingWaitUntil;s&&n.waitUntil&&(n.waitUntil(s),s=void 0);let c=_.renderOpts.collectedTags;if(!I)return await (0,f.sendResponse)(z,B,o,_.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,u.toNodeOutgoingHttpHeaders)(o.headers);c&&(t[g.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==_.renderOpts.collectedRevalidate&&!(_.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&_.renderOpts.collectedRevalidate,n=void 0===_.renderOpts.collectedExpire||_.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:_.renderOpts.collectedExpire;return{value:{kind:b.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await R.onRequestError(e,t,{routerKind:"App Router",routePath:y,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:L,isOnDemandRevalidate:A})},!1,$),t}},d=await R.handleResponse({req:e,nextConfig:C,cacheKey:F,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:k,responseGenerator:c,waitUntil:n.waitUntil,isMinimalMode:l});if(!I)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==b.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(s=d.value)?void 0:s.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",A?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),S&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,u.fromNodeOutgoingHttpHeaders)(d.value.headers);return l&&I||m.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,f.sendResponse)(z,B,new Response(d.value.body,{headers:m,status:d.value.status||200})),null};U?await s(U):await q.withPropagatedContext(e.headers,()=>q.trace(d.BaseServerSpan.handleRequest,{spanName:`${M} ${y}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},s))}catch(t){if(t instanceof m.NoFallbackError||await R.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:L,isOnDemandRevalidate:A})},!1,$),I)throw t;return await (0,f.sendResponse)(z,B,new Response(null,{status:500})),null}}e.s(["handler",()=>O,"patchFetch",()=>F,"routeModule",()=>R,"serverHooks",()=>H,"workAsyncStorage",()=>N,"workUnitAsyncStorage",()=>I],47482)}];
|
|
752
791
|
|
|
753
792
|
//# sourceMappingURL=node_modules_next_dist_esm_build_templates_app-route_d09de205.js.map
|