@hesed/webui 0.1.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/commands/webui.d.ts +8 -0
- package/dist/commands/webui.js +12 -0
- package/dist/lib/introspect.js +23 -10
- package/dist/lib/server.d.ts +7 -1
- package/dist/lib/server.js +5 -3
- package/dist/web/BUILD_ID +1 -0
- package/{web/.next → dist/web}/app-path-routes-manifest.json +1 -0
- package/dist/web/build-manifest.json +20 -0
- package/dist/web/cache/.previewinfo +1 -0
- package/dist/web/cache/.rscinfo +1 -0
- package/dist/web/cache/.tsbuildinfo +1 -0
- package/dist/web/cache/config.json +7 -0
- package/dist/web/diagnostics/framework.json +1 -0
- package/dist/web/diagnostics/route-bundle-stats.json +27 -0
- package/dist/web/fallback-build-manifest.json +13 -0
- package/{web/.next → dist/web}/images-manifest.json +13 -3
- package/dist/web/next-minimal-server.js.nft.json +1 -0
- package/dist/web/next-server.js.nft.json +1 -0
- package/{web/.next → dist/web}/prerender-manifest.json +27 -3
- package/dist/web/required-server-files.js +333 -0
- package/{web/.next → dist/web}/required-server-files.json +103 -90
- package/{web/.next → dist/web}/routes-manifest.json +12 -2
- package/dist/web/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/dist/web/server/app/_global-error/page/build-manifest.json +16 -0
- package/dist/web/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/dist/web/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/dist/web/server/app/_global-error/page.js +9 -0
- package/dist/web/server/app/_global-error/page.js.map +5 -0
- package/dist/web/server/app/_global-error/page.js.nft.json +1 -0
- package/dist/web/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/dist/web/server/app/_global-error.html +1 -0
- package/dist/web/server/app/_global-error.meta +15 -0
- package/dist/web/server/app/_global-error.rsc +14 -0
- package/dist/web/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/dist/web/server/app/_global-error.segments/_full.segment.rsc +14 -0
- package/dist/web/server/app/_global-error.segments/_head.segment.rsc +5 -0
- package/dist/web/server/app/_global-error.segments/_index.segment.rsc +5 -0
- package/dist/web/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/dist/web/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/dist/web/server/app/_not-found/page/build-manifest.json +16 -0
- package/dist/web/server/app/_not-found/page/next-font-manifest.json +6 -0
- package/dist/web/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/dist/web/server/app/_not-found/page.js +12 -0
- package/dist/web/server/app/_not-found/page.js.map +5 -0
- package/dist/web/server/app/_not-found/page.js.nft.json +1 -0
- package/dist/web/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/dist/web/server/app/_not-found.html +1 -0
- package/{web/.next → dist/web}/server/app/_not-found.meta +9 -1
- package/dist/web/server/app/_not-found.rsc +16 -0
- package/dist/web/server/app/_not-found.segments/_full.segment.rsc +16 -0
- package/dist/web/server/app/_not-found.segments/_head.segment.rsc +5 -0
- package/dist/web/server/app/_not-found.segments/_index.segment.rsc +6 -0
- package/dist/web/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/dist/web/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
- package/dist/web/server/app/_not-found.segments/_tree.segment.rsc +2 -0
- package/dist/web/server/app/index.html +1 -0
- package/dist/web/server/app/index.meta +14 -0
- package/dist/web/server/app/index.rsc +18 -0
- package/dist/web/server/app/index.segments/__PAGE__.segment.rsc +9 -0
- package/dist/web/server/app/index.segments/_full.segment.rsc +18 -0
- package/dist/web/server/app/index.segments/_head.segment.rsc +5 -0
- package/dist/web/server/app/index.segments/_index.segment.rsc +6 -0
- package/dist/web/server/app/index.segments/_tree.segment.rsc +2 -0
- package/dist/web/server/app/page/app-paths-manifest.json +3 -0
- package/dist/web/server/app/page/build-manifest.json +16 -0
- package/dist/web/server/app/page/next-font-manifest.json +6 -0
- package/dist/web/server/app/page/react-loadable-manifest.json +1 -0
- package/dist/web/server/app/page/server-reference-manifest.json +4 -0
- package/dist/web/server/app/page.js +13 -0
- package/dist/web/server/app/page.js.map +5 -0
- package/dist/web/server/app/page.js.nft.json +1 -0
- package/dist/web/server/app/page_client-reference-manifest.js +3 -0
- package/{web/.next → dist/web}/server/app-paths-manifest.json +1 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__0100oqz._.js +19 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__0100oqz._.js.map +1 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__03bqxv9._.js +33 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__03bqxv9._.js.map +1 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__10hrvcf._.js +3 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__10hrvcf._.js.map +1 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__10riywf._.js +3 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__10riywf._.js.map +1 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__17sw5v1._.js +3 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__17sw5v1._.js.map +1 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__1my83lt._.js +33 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__1my83lt._.js.map +1 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__1ujipwi._.js +3 -0
- package/dist/web/server/chunks/ssr/[root-of-the-server]__1ujipwi._.js.map +1 -0
- package/dist/web/server/chunks/ssr/[turbopack]_runtime.js +903 -0
- package/dist/web/server/chunks/ssr/[turbopack]_runtime.js.map +11 -0
- package/dist/web/server/chunks/ssr/node_modules_0h91jdk._.js +33 -0
- package/dist/web/server/chunks/ssr/node_modules_0h91jdk._.js.map +1 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_1vgd_ru._.js +6 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_1vgd_ru._.js.map +1 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js +3 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js.map +1 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js +3 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js.map +1 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0-o-goa.js +3 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0-o-goa.js.map +1 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js +3 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js.map +1 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13nn6g7.js +4 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13nn6g7.js.map +1 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_19--w_z.js +4 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_19--w_z.js.map +1 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1o7-715.js +4 -0
- package/dist/web/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1o7-715.js.map +1 -0
- package/dist/web/server/chunks/ssr/web_0iag39l._.js +3 -0
- package/dist/web/server/chunks/ssr/web_0iag39l._.js.map +1 -0
- package/dist/web/server/chunks/ssr/web__next-internal_server_app__global-error_page_actions_0crg1np.js +3 -0
- package/dist/web/server/chunks/ssr/web__next-internal_server_app__global-error_page_actions_0crg1np.js.map +1 -0
- package/dist/web/server/chunks/ssr/web__next-internal_server_app__not-found_page_actions_19z2-pv.js +3 -0
- package/dist/web/server/chunks/ssr/web__next-internal_server_app__not-found_page_actions_19z2-pv.js.map +1 -0
- package/dist/web/server/chunks/ssr/web__next-internal_server_app_page_actions_1xcff7h.js +3 -0
- package/dist/web/server/chunks/ssr/web__next-internal_server_app_page_actions_1xcff7h.js.map +1 -0
- package/dist/web/server/chunks/ssr/web_app_page_tsx_1-p0-hs._.js +3 -0
- package/dist/web/server/chunks/ssr/web_app_page_tsx_1-p0-hs._.js.map +1 -0
- package/dist/web/server/middleware-build-manifest.js +20 -0
- package/dist/web/server/middleware-manifest.json +6 -0
- package/dist/web/server/next-font-manifest.js +1 -0
- package/dist/web/server/next-font-manifest.json +6 -0
- package/dist/web/server/pages/404.html +1 -0
- package/dist/web/server/pages/500.html +1 -0
- package/dist/web/server/pages-manifest.json +4 -0
- package/dist/web/server/prefetch-hints.json +1 -0
- package/dist/web/server/server-reference-manifest.js +1 -0
- package/dist/web/server/server-reference-manifest.json +5 -0
- package/dist/web/static/PDMigBNKG7RenqXyfgiNr/_buildManifest.js +11 -0
- package/dist/web/static/PDMigBNKG7RenqXyfgiNr/_clientMiddlewareManifest.js +1 -0
- package/dist/web/static/chunks/0atut6a2uuyid.js +5 -0
- package/dist/web/static/chunks/158myu8e_yme3.js +1 -0
- package/dist/web/static/chunks/1_v5h-yjbgzno.js +1 -0
- package/dist/web/static/chunks/1bnss_1e9svpl.css +1 -0
- package/dist/web/static/chunks/1jq4o6yq14o4c.js +31 -0
- package/dist/web/static/chunks/28o7f8wux_ygy.js +1 -0
- package/dist/web/static/chunks/2nykiepra7i1k.js +1 -0
- package/dist/web/static/chunks/turbopack-3i0d1wb0b07u8.js +1 -0
- package/dist/web/trace +1 -0
- package/dist/web/trace-build +1 -0
- package/dist/web/turbopack +0 -0
- package/{web/.next → dist/web}/types/cache-life.d.ts +21 -17
- package/{web/.next → dist/web}/types/validator.ts +4 -4
- package/oclif.manifest.json +1 -1
- package/package.json +5 -10
- package/web/next.config.mjs +11 -6
- package/web/.next/BUILD_ID +0 -1
- package/web/.next/app-build-manifest.json +0 -26
- package/web/.next/build-manifest.json +0 -33
- package/web/.next/cache/.previewinfo +0 -1
- package/web/.next/cache/.rscinfo +0 -1
- package/web/.next/cache/.tsbuildinfo +0 -1
- package/web/.next/cache/eslint/.cache_1ki824o +0 -1
- package/web/.next/cache/webpack/client-development/0.pack.gz +0 -0
- package/web/.next/cache/webpack/client-development/1.pack.gz +0 -0
- package/web/.next/cache/webpack/client-development/index.pack.gz +0 -0
- package/web/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
- package/web/.next/cache/webpack/client-production/0.pack +0 -0
- package/web/.next/cache/webpack/client-production/1.pack +0 -0
- package/web/.next/cache/webpack/client-production/2.pack +0 -0
- package/web/.next/cache/webpack/client-production/3.pack +0 -0
- package/web/.next/cache/webpack/client-production/index.pack +0 -0
- package/web/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/web/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/web/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/web/.next/cache/webpack/server-development/0.pack.gz +0 -0
- package/web/.next/cache/webpack/server-development/index.pack.gz +0 -0
- package/web/.next/cache/webpack/server-production/0.pack +0 -0
- package/web/.next/cache/webpack/server-production/1.pack +0 -0
- package/web/.next/cache/webpack/server-production/index.pack +0 -0
- package/web/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/web/.next/diagnostics/framework.json +0 -1
- package/web/.next/next-minimal-server.js.nft.json +0 -1
- package/web/.next/next-server.js.nft.json +0 -1
- package/web/.next/server/app/_not-found/page.js +0 -2
- package/web/.next/server/app/_not-found/page.js.nft.json +0 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +0 -1
- package/web/.next/server/app/_not-found.html +0 -1
- package/web/.next/server/app/_not-found.rsc +0 -16
- package/web/.next/server/app/index.html +0 -1
- package/web/.next/server/app/index.meta +0 -7
- package/web/.next/server/app/index.rsc +0 -20
- package/web/.next/server/app/page.js +0 -2
- package/web/.next/server/app/page.js.nft.json +0 -1
- package/web/.next/server/app/page_client-reference-manifest.js +0 -1
- package/web/.next/server/chunks/157.js +0 -6
- package/web/.next/server/chunks/799.js +0 -30
- package/web/.next/server/middleware-build-manifest.js +0 -1
- package/web/.next/server/middleware-manifest.json +0 -6
- package/web/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/web/.next/server/next-font-manifest.js +0 -1
- package/web/.next/server/next-font-manifest.json +0 -1
- package/web/.next/server/pages/404.html +0 -1
- package/web/.next/server/pages/500.html +0 -1
- package/web/.next/server/pages/_app.js +0 -1
- package/web/.next/server/pages/_app.js.nft.json +0 -1
- package/web/.next/server/pages/_document.js +0 -1
- package/web/.next/server/pages/_document.js.nft.json +0 -1
- package/web/.next/server/pages/_error.js +0 -19
- package/web/.next/server/pages/_error.js.nft.json +0 -1
- package/web/.next/server/pages-manifest.json +0 -6
- package/web/.next/server/server-reference-manifest.js +0 -1
- package/web/.next/server/server-reference-manifest.json +0 -1
- package/web/.next/server/webpack-runtime.js +0 -1
- package/web/.next/static/LEwu5WvMMaoVEbVj3-KGq/_buildManifest.js +0 -1
- package/web/.next/static/chunks/131-a68a87dd22cef82b.js +0 -1
- package/web/.next/static/chunks/app/_not-found/page-784ddbf5f1a9343a.js +0 -1
- package/web/.next/static/chunks/app/layout-4e0fe443358078fc.js +0 -1
- package/web/.next/static/chunks/app/page-d098bd39f1fcec43.js +0 -1
- package/web/.next/static/chunks/c7879cf7-b5ab1053c1d9a2e7.js +0 -1
- package/web/.next/static/chunks/framework-1934959d81242241.js +0 -1
- package/web/.next/static/chunks/main-a8814cf406d931cd.js +0 -1
- package/web/.next/static/chunks/main-app-a3b742ef05fa17a3.js +0 -1
- package/web/.next/static/chunks/pages/_app-930c2e1cfe9b86bc.js +0 -1
- package/web/.next/static/chunks/pages/_error-2a950c2742f550d2.js +0 -1
- package/web/.next/static/chunks/webpack-3046868c425865e4.js +0 -1
- package/web/.next/static/css/48007c73fe98a161.css +0 -1
- package/web/.next/trace +0 -2
- package/web/.next/types/app/layout.ts +0 -84
- package/web/.next/types/app/page.ts +0 -84
- package/web/.next/types/package.json +0 -1
- package/web/app/globals.css +0 -339
- package/web/app/layout.tsx +0 -20
- package/web/app/page.tsx +0 -57
- package/web/components/command-detail.tsx +0 -160
- package/web/components/command-list.tsx +0 -67
- package/web/components/theme-provider.tsx +0 -12
- package/web/components/theme-toggle.tsx +0 -62
- package/web/lib/types.ts +0 -77
- package/web/tsconfig.json +0 -23
- /package/{web/.next → dist/web}/diagnostics/build-diagnostics.json +0 -0
- /package/{web/.next → dist/web}/export-marker.json +0 -0
- /package/{web/.next → dist/web}/package.json +0 -0
- /package/{web/.next → dist/web/server/app/_global-error/page}/react-loadable-manifest.json +0 -0
- /package/{web/.next/cache/next-devtools-config.json → dist/web/server/app/_not-found/page/react-loadable-manifest.json} +0 -0
- /package/{web/.next → dist/web}/server/functions-config-manifest.json +0 -0
- /package/{web/.next → dist/web}/server/interception-route-rewrite-manifest.js +0 -0
- /package/{web/.next/static/LEwu5WvMMaoVEbVj3-KGq → dist/web/static/PDMigBNKG7RenqXyfgiNr}/_ssgManifest.js +0 -0
- /package/{web/.next/static/chunks/polyfills-42372ed130431b0a.js → dist/web/static/chunks/0cz1d0mv5g_q7.js} +0 -0
- /package/{web/.next → dist/web}/types/routes.d.ts +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import type {CommandMeta} from '../lib/types'
|
|
4
|
-
|
|
5
|
-
import {ThemeToggle} from './theme-toggle'
|
|
6
|
-
|
|
7
|
-
export function CommandList({
|
|
8
|
-
bin,
|
|
9
|
-
commands,
|
|
10
|
-
onSelect,
|
|
11
|
-
query,
|
|
12
|
-
selectedId,
|
|
13
|
-
setQuery,
|
|
14
|
-
version,
|
|
15
|
-
}: {
|
|
16
|
-
bin: string
|
|
17
|
-
commands: CommandMeta[]
|
|
18
|
-
onSelect: (id: string) => void
|
|
19
|
-
query: string
|
|
20
|
-
selectedId?: string
|
|
21
|
-
setQuery: (q: string) => void
|
|
22
|
-
version: string
|
|
23
|
-
}) {
|
|
24
|
-
const filtered = commands.filter((cmd) => {
|
|
25
|
-
if (!query) return true
|
|
26
|
-
const haystack = `${cmd.id} ${cmd.summary ?? ''} ${cmd.description ?? ''}`.toLowerCase()
|
|
27
|
-
return query
|
|
28
|
-
.toLowerCase()
|
|
29
|
-
.split(/\s+/)
|
|
30
|
-
.every((term) => haystack.includes(term))
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<aside className="sidebar">
|
|
35
|
-
<div className="sidebar-header">
|
|
36
|
-
<div className="brand-row">
|
|
37
|
-
<div className="brand">
|
|
38
|
-
{bin || 'sdkck'} <small>web UI · v{version}</small>
|
|
39
|
-
</div>
|
|
40
|
-
<ThemeToggle />
|
|
41
|
-
</div>
|
|
42
|
-
<input
|
|
43
|
-
aria-label="Filter commands"
|
|
44
|
-
className="search"
|
|
45
|
-
onChange={(e) => setQuery(e.target.value)}
|
|
46
|
-
placeholder="Filter commands…"
|
|
47
|
-
type="text"
|
|
48
|
-
value={query}
|
|
49
|
-
/>
|
|
50
|
-
</div>
|
|
51
|
-
<nav className="command-list">
|
|
52
|
-
{filtered.length === 0 && <div className="empty">No commands match.</div>}
|
|
53
|
-
{filtered.map((cmd) => (
|
|
54
|
-
<button
|
|
55
|
-
className={`command-item${cmd.id === selectedId ? ' active' : ''}`}
|
|
56
|
-
key={cmd.id}
|
|
57
|
-
onClick={() => onSelect(cmd.id)}
|
|
58
|
-
type="button"
|
|
59
|
-
>
|
|
60
|
-
<span className="cmd-id">{cmd.id}</span>
|
|
61
|
-
<span className="cmd-summary">{cmd.summary ?? cmd.description ?? ''}</span>
|
|
62
|
-
</button>
|
|
63
|
-
))}
|
|
64
|
-
</nav>
|
|
65
|
-
</aside>
|
|
66
|
-
)
|
|
67
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import {ThemeProvider as NextThemesProvider} from 'next-themes'
|
|
4
|
-
import {type ReactNode} from 'react'
|
|
5
|
-
|
|
6
|
-
export function ThemeProvider({children}: {children: ReactNode}) {
|
|
7
|
-
return (
|
|
8
|
-
<NextThemesProvider attribute="class" defaultTheme="dark" disableTransitionOnChange enableSystem>
|
|
9
|
-
{children}
|
|
10
|
-
</NextThemesProvider>
|
|
11
|
-
)
|
|
12
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import {useTheme} from 'next-themes'
|
|
4
|
-
import {useEffect, useState} from 'react'
|
|
5
|
-
|
|
6
|
-
export function ThemeToggle() {
|
|
7
|
-
const {setTheme, theme} = useTheme()
|
|
8
|
-
const [mounted, setMounted] = useState(false)
|
|
9
|
-
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
setMounted(true)
|
|
12
|
-
}, [])
|
|
13
|
-
|
|
14
|
-
if (!mounted) {
|
|
15
|
-
return <div className="theme-toggle-placeholder" />
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<button
|
|
20
|
-
aria-label="Toggle theme"
|
|
21
|
-
className="theme-toggle"
|
|
22
|
-
onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}
|
|
23
|
-
type="button"
|
|
24
|
-
>
|
|
25
|
-
{theme === 'dark' ? (
|
|
26
|
-
<svg
|
|
27
|
-
fill="none"
|
|
28
|
-
height="15"
|
|
29
|
-
stroke="currentColor"
|
|
30
|
-
strokeLinecap="round"
|
|
31
|
-
strokeLinejoin="round"
|
|
32
|
-
strokeWidth="2"
|
|
33
|
-
viewBox="0 0 24 24"
|
|
34
|
-
width="15"
|
|
35
|
-
>
|
|
36
|
-
<circle cx="12" cy="12" r="4" />
|
|
37
|
-
<path d="M12 2v2" />
|
|
38
|
-
<path d="M12 20v2" />
|
|
39
|
-
<path d="m4.93 4.93 1.41 1.41" />
|
|
40
|
-
<path d="m17.66 17.66 1.41 1.41" />
|
|
41
|
-
<path d="M2 12h2" />
|
|
42
|
-
<path d="M20 12h2" />
|
|
43
|
-
<path d="m6.34 17.66-1.41 1.41" />
|
|
44
|
-
<path d="m19.07 4.93-1.41 1.41" />
|
|
45
|
-
</svg>
|
|
46
|
-
) : (
|
|
47
|
-
<svg
|
|
48
|
-
fill="none"
|
|
49
|
-
height="15"
|
|
50
|
-
stroke="currentColor"
|
|
51
|
-
strokeLinecap="round"
|
|
52
|
-
strokeLinejoin="round"
|
|
53
|
-
strokeWidth="2"
|
|
54
|
-
viewBox="0 0 24 24"
|
|
55
|
-
width="15"
|
|
56
|
-
>
|
|
57
|
-
<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" />
|
|
58
|
-
</svg>
|
|
59
|
-
)}
|
|
60
|
-
</button>
|
|
61
|
-
)
|
|
62
|
-
}
|
package/web/lib/types.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export interface FlagMeta {
|
|
2
|
-
char?: string
|
|
3
|
-
default?: unknown
|
|
4
|
-
description?: string
|
|
5
|
-
multiple: boolean
|
|
6
|
-
name: string
|
|
7
|
-
options?: string[]
|
|
8
|
-
required: boolean
|
|
9
|
-
type: 'boolean' | 'option'
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface ArgMeta {
|
|
13
|
-
default?: unknown
|
|
14
|
-
description?: string
|
|
15
|
-
name: string
|
|
16
|
-
options?: string[]
|
|
17
|
-
required: boolean
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface CommandMeta {
|
|
21
|
-
aliases: string[]
|
|
22
|
-
args: ArgMeta[]
|
|
23
|
-
description?: string
|
|
24
|
-
flags: FlagMeta[]
|
|
25
|
-
id: string
|
|
26
|
-
pluginName?: string
|
|
27
|
-
pluginType?: string
|
|
28
|
-
summary?: string
|
|
29
|
-
usage?: string | string[]
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface CommandsResponse {
|
|
33
|
-
bin: string
|
|
34
|
-
commands: CommandMeta[]
|
|
35
|
-
version: string
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface RunResult {
|
|
39
|
-
durationMs: number
|
|
40
|
-
error?: string
|
|
41
|
-
output: string
|
|
42
|
-
success: boolean
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** Build an oclif-style argv array from form values for a command. */
|
|
46
|
-
export function buildArgv(
|
|
47
|
-
command: CommandMeta,
|
|
48
|
-
argValues: Record<string, string>,
|
|
49
|
-
flagValues: Record<string, boolean | string>,
|
|
50
|
-
): string[] {
|
|
51
|
-
const argv: string[] = []
|
|
52
|
-
|
|
53
|
-
for (const arg of command.args) {
|
|
54
|
-
const value = argValues[arg.name]
|
|
55
|
-
if (value !== undefined && value !== '') argv.push(value)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
for (const flag of command.flags) {
|
|
59
|
-
const value = flagValues[flag.name]
|
|
60
|
-
if (flag.type === 'boolean') {
|
|
61
|
-
if (value === true) argv.push(`--${flag.name}`)
|
|
62
|
-
} else if (typeof value === 'string' && value !== '') {
|
|
63
|
-
if (flag.multiple) {
|
|
64
|
-
for (const part of value
|
|
65
|
-
.split(',')
|
|
66
|
-
.map((s) => s.trim())
|
|
67
|
-
.filter(Boolean)) {
|
|
68
|
-
argv.push(`--${flag.name}`, part)
|
|
69
|
-
}
|
|
70
|
-
} else {
|
|
71
|
-
argv.push(`--${flag.name}`, value)
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return argv
|
|
77
|
-
}
|
package/web/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"jsx": "preserve",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"plugins": [{"name": "next"}],
|
|
17
|
-
"paths": {
|
|
18
|
-
"@/*": ["./*"]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
22
|
-
"exclude": ["node_modules"]
|
|
23
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|