@qwik.dev/devtools 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugin/index.cjs +40 -1
- package/dist/plugin/index.mjs +40 -1
- package/dist/ui/components/DevtoolsButton/DevtoolsButton.qwik.cjs +21 -0
- package/dist/ui/components/DevtoolsButton/DevtoolsButton.qwik.mjs +21 -0
- package/dist/ui/components/DevtoolsContainer/DevtoolsContainer.qwik.cjs +12 -0
- package/dist/ui/components/DevtoolsContainer/DevtoolsContainer.qwik.mjs +12 -0
- package/dist/ui/components/DevtoolsPanel/DevtoolsPanel.qwik.cjs +34 -0
- package/dist/ui/components/DevtoolsPanel/DevtoolsPanel.qwik.mjs +34 -0
- package/dist/ui/components/Tab/Tab.qwik.cjs +17 -0
- package/dist/ui/components/Tab/Tab.qwik.mjs +17 -0
- package/dist/ui/components/TabContent/TabContent.qwik.cjs +21 -0
- package/dist/ui/components/TabContent/TabContent.qwik.mjs +21 -0
- package/dist/ui/components/TabTitle/TabTitle.qwik.cjs +11 -0
- package/dist/ui/components/TabTitle/TabTitle.qwik.mjs +11 -0
- package/dist/ui/devtools.qwik.cjs +209 -0
- package/dist/ui/devtools.qwik.mjs +209 -0
- package/dist/ui/features/Assets/Assets.qwik.cjs +60 -0
- package/dist/ui/features/Assets/Assets.qwik.mjs +60 -0
- package/dist/ui/features/Overview/Overview.qwik.cjs +165 -0
- package/dist/ui/features/Overview/Overview.qwik.mjs +165 -0
- package/dist/ui/features/Packages/Packages.qwik.cjs +95 -0
- package/dist/ui/features/Packages/Packages.qwik.mjs +95 -0
- package/dist/ui/features/Packages/components/InstallButton/InstallButton.qwik.cjs +36 -0
- package/dist/ui/features/Packages/components/InstallButton/InstallButton.qwik.mjs +36 -0
- package/dist/ui/features/Routes/Routes.qwik.cjs +65 -0
- package/dist/ui/features/Routes/Routes.qwik.mjs +65 -0
- package/dist/ui/global.css.qwik.cjs +3 -0
- package/dist/ui/global.css.qwik.mjs +4 -0
- package/dist/ui/hooks/useDebouncer.qwik.cjs +13 -0
- package/dist/ui/hooks/useDebouncer.qwik.mjs +13 -0
- package/dist/{component → ui}/lib-types/kit/src/types.d.ts +4 -0
- package/dist/ui/lib-types/ui/src/components/DevtoolsButton/DevtoolsButton.d.ts +6 -0
- package/dist/ui/lib-types/ui/src/components/DevtoolsContainer/DevtoolsContainer.d.ts +1 -0
- package/dist/ui/lib-types/ui/src/components/DevtoolsPanel/DevtoolsPanel.d.ts +6 -0
- package/dist/ui/lib-types/ui/src/components/Tab/Tab.d.ts +8 -0
- package/dist/ui/lib-types/ui/src/components/TabContent/TabContent.d.ts +1 -0
- package/dist/ui/lib-types/ui/src/components/TabTitle/TabTitle.d.ts +5 -0
- package/dist/ui/lib-types/ui/src/features/Assets/Assets.d.ts +6 -0
- package/dist/ui/lib-types/ui/src/features/Components/Components.d.ts +1 -0
- package/dist/ui/lib-types/ui/src/features/Overview/Overview.d.ts +6 -0
- package/dist/ui/lib-types/ui/src/features/Packages/Packages.d.ts +1 -0
- package/dist/ui/lib-types/ui/src/features/Packages/components/InstallButton/InstallButton.d.ts +6 -0
- package/dist/ui/lib-types/ui/src/features/Packages/types.d.ts +5 -0
- package/dist/ui/lib-types/ui/src/features/Routes/Routes.d.ts +6 -0
- package/dist/ui/lib-types/ui/src/hooks/useDebouncer.d.ts +2 -0
- package/dist/ui/lib-types/ui/src/index.d.ts +1 -0
- package/dist/ui/lib-types/ui/src/types/state.d.ts +10 -0
- package/package.json +13 -14
- package/LICENSE +0 -21
- package/dist/component/devtools.css.qwik.cjs +0 -3
- package/dist/component/devtools.css.qwik.mjs +0 -4
- package/dist/component/devtools.qwik.cjs +0 -537
- package/dist/component/devtools.qwik.mjs +0 -537
- package/dist/component/lib-types/devtools/src/index.d.ts +0 -1
- /package/dist/{component → ui}/_virtual/_commonjsHelpers.qwik.cjs +0 -0
- /package/dist/{component → ui}/_virtual/_commonjsHelpers.qwik.mjs +0 -0
- /package/dist/{component → ui}/index.qwik.cjs +0 -0
- /package/dist/{component → ui}/index.qwik.mjs +0 -0
- /package/dist/{component → ui}/lib-types/kit/src/client.d.ts +0 -0
- /package/dist/{component → ui}/lib-types/kit/src/constants.d.ts +0 -0
- /package/dist/{component → ui}/lib-types/kit/src/context.d.ts +0 -0
- /package/dist/{component → ui}/lib-types/kit/src/globals.d.ts +0 -0
- /package/dist/{component → ui}/lib-types/kit/src/index.d.ts +0 -0
- /package/dist/{component → ui}/lib-types/kit/src/server.d.ts +0 -0
- /package/dist/{component → ui}/lib-types/kit/src/shared.d.ts +0 -0
- /package/dist/{component/lib-types/devtools → ui/lib-types/ui}/src/devtools.d.ts +0 -0
- /package/dist/{component/lib-types/devtools → ui/lib-types/ui}/src/entry.dev.d.ts +0 -0
- /package/dist/{component/lib-types/devtools → ui/lib-types/ui}/src/entry.ssr.d.ts +0 -0
- /package/dist/{component/lib-types/devtools → ui/lib-types/ui}/src/root.d.ts +0 -0
- /package/dist/{component/lib-types/devtools → ui/lib-types/ui}/src/utils/location.d.ts +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/hi.qwik.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/hi.qwik.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/lu.qwik.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/lu.qwik.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/birpc@0.2.19/node_modules/birpc/dist/index.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/birpc@0.2.19/node_modules/birpc/dist/index.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/dree@5.1.5/node_modules/dree/bundled/lib/esm/index.esm.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/dree@5.1.5/node_modules/dree/bundled/lib/esm/index.esm.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/double-indexed-kv.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/double-indexed-kv.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/is.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/is.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/transformer.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/transformer.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/util.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/util.qwik.mjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/vite-hot-client@0.2.4_vite@5.4.10_@types_node@20.14.11_/node_modules/vite-hot-client/dist/index.qwik.cjs +0 -0
- /package/dist/{component → ui}/node_modules/.pnpm/vite-hot-client@0.2.4_vite@5.4.10_@types_node@20.14.11_/node_modules/vite-hot-client/dist/index.qwik.mjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/client.qwik.cjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/client.qwik.mjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/constants.qwik.cjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/constants.qwik.mjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/context.qwik.cjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/context.qwik.mjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/globals.qwik.cjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/globals.qwik.mjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/shared.qwik.cjs +0 -0
- /package/dist/{component → ui}/packages/kit/src/shared.qwik.mjs +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { jsxs, jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$, useStyles$, useStore, useVisibleTask$, noSerialize } from "@qwik.dev/core";
|
|
3
|
+
import { tryCreateHotContext } from "./node_modules/.pnpm/vite-hot-client@0.2.4_vite@5.4.10_@types_node@20.14.11_/node_modules/vite-hot-client/dist/index.qwik.mjs";
|
|
4
|
+
import { HiBoltOutline, HiCubeOutline, HiPhotoOutline } from "./node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/hi.qwik.qwik.mjs";
|
|
5
|
+
import { LuFolderTree } from "./node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/lu.qwik.qwik.mjs";
|
|
6
|
+
import { createClientRpc } from "./packages/kit/src/client.qwik.mjs";
|
|
7
|
+
import "./node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.qwik.mjs";
|
|
8
|
+
import { setViteClientContext, getViteClientRpc } from "./packages/kit/src/context.qwik.mjs";
|
|
9
|
+
import { Type as re } from "./node_modules/.pnpm/dree@5.1.5/node_modules/dree/bundled/lib/esm/index.esm.qwik.mjs";
|
|
10
|
+
import globalCss from "./global.css.qwik.mjs";
|
|
11
|
+
import { Tab } from "./components/Tab/Tab.qwik.mjs";
|
|
12
|
+
import { TabContent } from "./components/TabContent/TabContent.qwik.mjs";
|
|
13
|
+
import { Overview } from "./features/Overview/Overview.qwik.mjs";
|
|
14
|
+
import { Assets } from "./features/Assets/Assets.qwik.mjs";
|
|
15
|
+
import { Routes } from "./features/Routes/Routes.qwik.mjs";
|
|
16
|
+
import { TabTitle } from "./components/TabTitle/TabTitle.qwik.mjs";
|
|
17
|
+
import { DevtoolsButton } from "./components/DevtoolsButton/DevtoolsButton.qwik.mjs";
|
|
18
|
+
import { DevtoolsContainer } from "./components/DevtoolsContainer/DevtoolsContainer.qwik.mjs";
|
|
19
|
+
import { DevtoolsPanel } from "./components/DevtoolsPanel/DevtoolsPanel.qwik.mjs";
|
|
20
|
+
import { Packages } from "./features/Packages/Packages.qwik.mjs";
|
|
21
|
+
function getClientRpcFunctions() {
|
|
22
|
+
return {
|
|
23
|
+
healthCheck: () => true
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const QwikDevtools = component$(() => {
|
|
27
|
+
useStyles$(globalCss);
|
|
28
|
+
const state = useStore({
|
|
29
|
+
isOpen: false,
|
|
30
|
+
activeTab: "overview",
|
|
31
|
+
npmPackages: [],
|
|
32
|
+
assets: [],
|
|
33
|
+
routes: void 0
|
|
34
|
+
});
|
|
35
|
+
useVisibleTask$(async ({ track }) => {
|
|
36
|
+
const hot = await tryCreateHotContext(void 0, [
|
|
37
|
+
"/"
|
|
38
|
+
]);
|
|
39
|
+
if (!hot) {
|
|
40
|
+
throw new Error("Vite Hot Context not connected");
|
|
41
|
+
}
|
|
42
|
+
setViteClientContext(hot);
|
|
43
|
+
createClientRpc(getClientRpcFunctions());
|
|
44
|
+
track(() => {
|
|
45
|
+
if (state.isOpen) {
|
|
46
|
+
const rpc = getViteClientRpc();
|
|
47
|
+
rpc.getAssetsFromPublicDir().then((data) => {
|
|
48
|
+
state.assets = data;
|
|
49
|
+
});
|
|
50
|
+
rpc.getRoutes().then((data) => {
|
|
51
|
+
const children = data.children || [];
|
|
52
|
+
const directories = children.filter((child) => child.type === "directory");
|
|
53
|
+
const values = [
|
|
54
|
+
{
|
|
55
|
+
relativePath: "",
|
|
56
|
+
name: "index",
|
|
57
|
+
type: re.DIRECTORY,
|
|
58
|
+
path: "",
|
|
59
|
+
isSymbolicLink: false,
|
|
60
|
+
children: void 0
|
|
61
|
+
},
|
|
62
|
+
...directories
|
|
63
|
+
];
|
|
64
|
+
state.routes = noSerialize(values);
|
|
65
|
+
});
|
|
66
|
+
rpc.getQwikPackages().then((data) => {
|
|
67
|
+
state.npmPackages = data;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
return /* @__PURE__ */ jsxs(DevtoolsContainer, {
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsx(DevtoolsButton, {
|
|
75
|
+
state
|
|
76
|
+
}),
|
|
77
|
+
state.isOpen && /* @__PURE__ */ jsxs(DevtoolsPanel, {
|
|
78
|
+
state,
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ jsxs("div", {
|
|
81
|
+
class: "flex flex-col gap-2 border-r border-zinc-700 bg-zinc-900/95 p-3",
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ jsx(Tab, {
|
|
84
|
+
state,
|
|
85
|
+
id: "overview",
|
|
86
|
+
title: "Overview",
|
|
87
|
+
children: /* @__PURE__ */ jsx(HiBoltOutline, {
|
|
88
|
+
class: "h-5 w-5"
|
|
89
|
+
})
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsx(Tab, {
|
|
92
|
+
state,
|
|
93
|
+
id: "packages",
|
|
94
|
+
title: "Packages",
|
|
95
|
+
children: /* @__PURE__ */ jsx(HiCubeOutline, {
|
|
96
|
+
class: "h-5 w-5"
|
|
97
|
+
})
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ jsx(Tab, {
|
|
100
|
+
state,
|
|
101
|
+
id: "routes",
|
|
102
|
+
title: "Routes",
|
|
103
|
+
children: /* @__PURE__ */ jsx(LuFolderTree, {
|
|
104
|
+
class: "h-5 w-5"
|
|
105
|
+
})
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ jsx(Tab, {
|
|
108
|
+
state,
|
|
109
|
+
id: "assets",
|
|
110
|
+
title: "Assets",
|
|
111
|
+
children: /* @__PURE__ */ jsx(HiPhotoOutline, {
|
|
112
|
+
class: "h-5 w-5"
|
|
113
|
+
})
|
|
114
|
+
})
|
|
115
|
+
]
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ jsxs("div", {
|
|
118
|
+
class: "custom-scrollbar flex-1 overflow-y-auto p-4",
|
|
119
|
+
children: [
|
|
120
|
+
state.activeTab === "overview" && /* @__PURE__ */ jsxs(TabContent, {
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ jsxs("div", {
|
|
123
|
+
class: "flex items-center gap-3",
|
|
124
|
+
"q:slot": "title",
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ jsx("img", {
|
|
127
|
+
width: 32,
|
|
128
|
+
height: 32,
|
|
129
|
+
src: "https://qwik.dev/logos/qwik-logo.svg",
|
|
130
|
+
alt: "Qwik Logo",
|
|
131
|
+
class: "h-8 w-8"
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ jsx("h1", {
|
|
134
|
+
class: "text-2xl font-semibold",
|
|
135
|
+
children: "Qwik DevTools"
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ jsx(Overview, {
|
|
140
|
+
state,
|
|
141
|
+
"q:slot": "content"
|
|
142
|
+
})
|
|
143
|
+
]
|
|
144
|
+
}),
|
|
145
|
+
state.activeTab === "assets" && /* @__PURE__ */ jsxs(TabContent, {
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ jsx(TabTitle, {
|
|
148
|
+
title: "Public Assets",
|
|
149
|
+
"q:slot": "title"
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ jsxs("div", {
|
|
152
|
+
class: "flex gap-4 text-sm text-zinc-400",
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ jsxs("span", {
|
|
155
|
+
children: [
|
|
156
|
+
"Total Size:",
|
|
157
|
+
" ",
|
|
158
|
+
(state.assets?.reduce((acc, asset) => acc + asset.size, 0) / 1024).toFixed(2),
|
|
159
|
+
" ",
|
|
160
|
+
"KB"
|
|
161
|
+
]
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ jsxs("span", {
|
|
164
|
+
children: [
|
|
165
|
+
"Count: ",
|
|
166
|
+
state.assets?.length || 0
|
|
167
|
+
]
|
|
168
|
+
})
|
|
169
|
+
]
|
|
170
|
+
}),
|
|
171
|
+
/* @__PURE__ */ jsx(Assets, {
|
|
172
|
+
state,
|
|
173
|
+
"q:slot": "content"
|
|
174
|
+
})
|
|
175
|
+
]
|
|
176
|
+
}),
|
|
177
|
+
state.activeTab === "packages" && /* @__PURE__ */ jsxs(TabContent, {
|
|
178
|
+
children: [
|
|
179
|
+
/* @__PURE__ */ jsx(TabTitle, {
|
|
180
|
+
title: "Install an npm package",
|
|
181
|
+
"q:slot": "title"
|
|
182
|
+
}),
|
|
183
|
+
/* @__PURE__ */ jsx(Packages, {
|
|
184
|
+
"q:slot": "content"
|
|
185
|
+
})
|
|
186
|
+
]
|
|
187
|
+
}),
|
|
188
|
+
state.activeTab === "routes" && /* @__PURE__ */ jsxs(TabContent, {
|
|
189
|
+
children: [
|
|
190
|
+
/* @__PURE__ */ jsx(TabTitle, {
|
|
191
|
+
title: "Application Routes",
|
|
192
|
+
"q:slot": "title"
|
|
193
|
+
}),
|
|
194
|
+
/* @__PURE__ */ jsx(Routes, {
|
|
195
|
+
state,
|
|
196
|
+
"q:slot": "content"
|
|
197
|
+
})
|
|
198
|
+
]
|
|
199
|
+
})
|
|
200
|
+
]
|
|
201
|
+
})
|
|
202
|
+
]
|
|
203
|
+
})
|
|
204
|
+
]
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
export {
|
|
208
|
+
QwikDevtools
|
|
209
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("@qwik.dev/core/jsx-runtime");
|
|
4
|
+
const core = require("@qwik.dev/core");
|
|
5
|
+
const Assets = core.component$(({ state }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
7
|
+
class: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
8
|
+
children: state.assets?.map((asset) => {
|
|
9
|
+
const isImage = asset.path.match(/\.(jpg|jpeg|png|gif|svg|webp)$/i);
|
|
10
|
+
const fileExt = asset.path.split(".").pop()?.toUpperCase();
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
12
|
+
class: "overflow-hidden rounded-xl border border-white/10 bg-white/[0.03] transition-all duration-200 hover:bg-white/[0.05]",
|
|
13
|
+
children: [
|
|
14
|
+
isImage ? /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
15
|
+
class: "aspect-square overflow-hidden bg-black/20",
|
|
16
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
17
|
+
width: 176,
|
|
18
|
+
height: 176,
|
|
19
|
+
src: asset.publicPath,
|
|
20
|
+
alt: asset.path,
|
|
21
|
+
class: "h-full w-full object-cover"
|
|
22
|
+
})
|
|
23
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
24
|
+
class: "flex aspect-square items-center justify-center bg-black/20",
|
|
25
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
26
|
+
class: "font-mono text-2xl text-zinc-400",
|
|
27
|
+
children: fileExt
|
|
28
|
+
})
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
31
|
+
class: "space-y-2 p-4",
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
34
|
+
class: "truncate text-sm",
|
|
35
|
+
title: asset.path,
|
|
36
|
+
children: asset.path.split("/").pop()
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
39
|
+
class: "flex items-center justify-between text-xs text-zinc-400",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", {
|
|
42
|
+
children: [
|
|
43
|
+
(asset.size / 1024).toFixed(2),
|
|
44
|
+
" KB"
|
|
45
|
+
]
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
48
|
+
class: "rounded-full bg-white/5 px-2 py-1",
|
|
49
|
+
children: fileExt
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
}, asset.filePath);
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
exports.Assets = Assets;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx, jsxs } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$ } from "@qwik.dev/core";
|
|
3
|
+
const Assets = component$(({ state }) => {
|
|
4
|
+
return /* @__PURE__ */ jsx("div", {
|
|
5
|
+
class: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
6
|
+
children: state.assets?.map((asset) => {
|
|
7
|
+
const isImage = asset.path.match(/\.(jpg|jpeg|png|gif|svg|webp)$/i);
|
|
8
|
+
const fileExt = asset.path.split(".").pop()?.toUpperCase();
|
|
9
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
10
|
+
class: "overflow-hidden rounded-xl border border-white/10 bg-white/[0.03] transition-all duration-200 hover:bg-white/[0.05]",
|
|
11
|
+
children: [
|
|
12
|
+
isImage ? /* @__PURE__ */ jsx("div", {
|
|
13
|
+
class: "aspect-square overflow-hidden bg-black/20",
|
|
14
|
+
children: /* @__PURE__ */ jsx("img", {
|
|
15
|
+
width: 176,
|
|
16
|
+
height: 176,
|
|
17
|
+
src: asset.publicPath,
|
|
18
|
+
alt: asset.path,
|
|
19
|
+
class: "h-full w-full object-cover"
|
|
20
|
+
})
|
|
21
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
22
|
+
class: "flex aspect-square items-center justify-center bg-black/20",
|
|
23
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
24
|
+
class: "font-mono text-2xl text-zinc-400",
|
|
25
|
+
children: fileExt
|
|
26
|
+
})
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ jsxs("div", {
|
|
29
|
+
class: "space-y-2 p-4",
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsx("div", {
|
|
32
|
+
class: "truncate text-sm",
|
|
33
|
+
title: asset.path,
|
|
34
|
+
children: asset.path.split("/").pop()
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ jsxs("div", {
|
|
37
|
+
class: "flex items-center justify-between text-xs text-zinc-400",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsxs("span", {
|
|
40
|
+
children: [
|
|
41
|
+
(asset.size / 1024).toFixed(2),
|
|
42
|
+
" KB"
|
|
43
|
+
]
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ jsx("span", {
|
|
46
|
+
class: "rounded-full bg-white/5 px-2 py-1",
|
|
47
|
+
children: fileExt
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
}, asset.filePath);
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
Assets
|
|
60
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("@qwik.dev/core/jsx-runtime");
|
|
4
|
+
const core = require("@qwik.dev/core");
|
|
5
|
+
const hi_qwik = require("../../node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/hi.qwik.qwik.cjs");
|
|
6
|
+
const lu_qwik = require("../../node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/lu.qwik.qwik.cjs");
|
|
7
|
+
const Overview = core.component$(({ state }) => {
|
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
11
|
+
class: "grid grid-cols-1 gap-5 md:grid-cols-3",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
14
|
+
class: "flex items-center gap-5 rounded-xl border border-white/10 bg-white/[0.03] p-5 transition-all duration-200 hover:-translate-y-0.5 hover:bg-white/[0.05]",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
17
|
+
class: "rounded-lg border border-white/10 bg-white/5 p-3.5",
|
|
18
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lu_qwik.LuFolderTree, {
|
|
19
|
+
class: "h-6 w-6 text-emerald-500"
|
|
20
|
+
})
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
25
|
+
class: "text-3xl font-semibold",
|
|
26
|
+
children: state.routes?.length
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
29
|
+
class: "text-sm text-zinc-400",
|
|
30
|
+
children: "pages"
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
37
|
+
class: "flex items-center gap-5 rounded-xl border border-white/10 bg-white/[0.03] p-5 transition-all duration-200 hover:-translate-y-0.5 hover:bg-white/[0.05]",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
40
|
+
class: "rounded-lg border border-white/10 bg-white/5 p-3.5",
|
|
41
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(hi_qwik.HiCubeOutline, {
|
|
42
|
+
class: "h-6 w-6 text-emerald-500"
|
|
43
|
+
})
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
48
|
+
class: "text-3xl font-semibold",
|
|
49
|
+
children: state.assets.length
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
52
|
+
class: "text-sm text-zinc-400",
|
|
53
|
+
children: "components"
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
60
|
+
class: "flex items-center gap-5 rounded-xl border border-white/10 bg-white/[0.03] p-5 transition-all duration-200 hover:-translate-y-0.5 hover:bg-white/[0.05]",
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
63
|
+
class: "rounded-lg border border-white/10 bg-white/5 p-3.5",
|
|
64
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(hi_qwik.HiPhotoOutline, {
|
|
65
|
+
class: "h-6 w-6 text-emerald-500"
|
|
66
|
+
})
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
71
|
+
class: "text-3xl font-semibold",
|
|
72
|
+
children: state.assets.length || 0
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
75
|
+
class: "text-sm text-zinc-400",
|
|
76
|
+
children: "assets"
|
|
77
|
+
})
|
|
78
|
+
]
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
85
|
+
class: "space-y-4 rounded-xl border border-white/10 bg-white/[0.03] p-5",
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", {
|
|
88
|
+
class: "text-lg font-semibold",
|
|
89
|
+
children: "Installed Packages"
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
92
|
+
class: "grid grid-cols-1 gap-3 md:grid-cols-2",
|
|
93
|
+
children: state.npmPackages.map(([name, version]) => /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
94
|
+
class: "flex items-center justify-between rounded-lg bg-white/5 p-3",
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
97
|
+
class: "text-sm",
|
|
98
|
+
children: name
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
101
|
+
class: "rounded-full border border-white/10 bg-white/5 px-2 py-1 text-xs text-zinc-400",
|
|
102
|
+
children: version
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
}, name))
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
110
|
+
class: "space-y-4 rounded-xl border border-white/10 bg-white/[0.03] p-5",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", {
|
|
113
|
+
class: "text-lg font-semibold",
|
|
114
|
+
children: "Performance"
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
117
|
+
class: "space-y-3",
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
120
|
+
class: "flex justify-between border-b border-white/10 py-2",
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
123
|
+
class: "text-zinc-400",
|
|
124
|
+
children: "SSR to full load"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
127
|
+
class: "font-medium",
|
|
128
|
+
children: "-"
|
|
129
|
+
})
|
|
130
|
+
]
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
133
|
+
class: "flex justify-between border-b border-white/10 py-2",
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
136
|
+
class: "text-zinc-400",
|
|
137
|
+
children: "Page load"
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
140
|
+
class: "font-medium",
|
|
141
|
+
children: "-"
|
|
142
|
+
})
|
|
143
|
+
]
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
146
|
+
class: "flex justify-between py-2",
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
149
|
+
class: "text-zinc-400",
|
|
150
|
+
children: "Navigation"
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
153
|
+
class: "font-medium",
|
|
154
|
+
children: "-"
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
})
|
|
158
|
+
]
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
exports.Overview = Overview;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$ } from "@qwik.dev/core";
|
|
3
|
+
import { HiCubeOutline, HiPhotoOutline } from "../../node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/hi.qwik.qwik.mjs";
|
|
4
|
+
import { LuFolderTree } from "../../node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@5.4.10_@types_node@20.14.11__/node_modules/@qwikest/icons/lib/lu.qwik.qwik.mjs";
|
|
5
|
+
const Overview = component$(({ state }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
7
|
+
children: [
|
|
8
|
+
/* @__PURE__ */ jsxs("div", {
|
|
9
|
+
class: "grid grid-cols-1 gap-5 md:grid-cols-3",
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ jsxs("div", {
|
|
12
|
+
class: "flex items-center gap-5 rounded-xl border border-white/10 bg-white/[0.03] p-5 transition-all duration-200 hover:-translate-y-0.5 hover:bg-white/[0.05]",
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ jsx("div", {
|
|
15
|
+
class: "rounded-lg border border-white/10 bg-white/5 p-3.5",
|
|
16
|
+
children: /* @__PURE__ */ jsx(LuFolderTree, {
|
|
17
|
+
class: "h-6 w-6 text-emerald-500"
|
|
18
|
+
})
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ jsxs("div", {
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ jsx("div", {
|
|
23
|
+
class: "text-3xl font-semibold",
|
|
24
|
+
children: state.routes?.length
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsx("div", {
|
|
27
|
+
class: "text-sm text-zinc-400",
|
|
28
|
+
children: "pages"
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ jsxs("div", {
|
|
35
|
+
class: "flex items-center gap-5 rounded-xl border border-white/10 bg-white/[0.03] p-5 transition-all duration-200 hover:-translate-y-0.5 hover:bg-white/[0.05]",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx("div", {
|
|
38
|
+
class: "rounded-lg border border-white/10 bg-white/5 p-3.5",
|
|
39
|
+
children: /* @__PURE__ */ jsx(HiCubeOutline, {
|
|
40
|
+
class: "h-6 w-6 text-emerald-500"
|
|
41
|
+
})
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ jsxs("div", {
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ jsx("div", {
|
|
46
|
+
class: "text-3xl font-semibold",
|
|
47
|
+
children: state.assets.length
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ jsx("div", {
|
|
50
|
+
class: "text-sm text-zinc-400",
|
|
51
|
+
children: "components"
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ jsxs("div", {
|
|
58
|
+
class: "flex items-center gap-5 rounded-xl border border-white/10 bg-white/[0.03] p-5 transition-all duration-200 hover:-translate-y-0.5 hover:bg-white/[0.05]",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx("div", {
|
|
61
|
+
class: "rounded-lg border border-white/10 bg-white/5 p-3.5",
|
|
62
|
+
children: /* @__PURE__ */ jsx(HiPhotoOutline, {
|
|
63
|
+
class: "h-6 w-6 text-emerald-500"
|
|
64
|
+
})
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ jsxs("div", {
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ jsx("div", {
|
|
69
|
+
class: "text-3xl font-semibold",
|
|
70
|
+
children: state.assets.length || 0
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ jsx("div", {
|
|
73
|
+
class: "text-sm text-zinc-400",
|
|
74
|
+
children: "assets"
|
|
75
|
+
})
|
|
76
|
+
]
|
|
77
|
+
})
|
|
78
|
+
]
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ jsxs("div", {
|
|
83
|
+
class: "space-y-4 rounded-xl border border-white/10 bg-white/[0.03] p-5",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ jsx("h3", {
|
|
86
|
+
class: "text-lg font-semibold",
|
|
87
|
+
children: "Installed Packages"
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ jsx("div", {
|
|
90
|
+
class: "grid grid-cols-1 gap-3 md:grid-cols-2",
|
|
91
|
+
children: state.npmPackages.map(([name, version]) => /* @__PURE__ */ jsxs("div", {
|
|
92
|
+
class: "flex items-center justify-between rounded-lg bg-white/5 p-3",
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ jsx("div", {
|
|
95
|
+
class: "text-sm",
|
|
96
|
+
children: name
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ jsx("div", {
|
|
99
|
+
class: "rounded-full border border-white/10 bg-white/5 px-2 py-1 text-xs text-zinc-400",
|
|
100
|
+
children: version
|
|
101
|
+
})
|
|
102
|
+
]
|
|
103
|
+
}, name))
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ jsxs("div", {
|
|
108
|
+
class: "space-y-4 rounded-xl border border-white/10 bg-white/[0.03] p-5",
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ jsx("h3", {
|
|
111
|
+
class: "text-lg font-semibold",
|
|
112
|
+
children: "Performance"
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ jsxs("div", {
|
|
115
|
+
class: "space-y-3",
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ jsxs("div", {
|
|
118
|
+
class: "flex justify-between border-b border-white/10 py-2",
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ jsx("span", {
|
|
121
|
+
class: "text-zinc-400",
|
|
122
|
+
children: "SSR to full load"
|
|
123
|
+
}),
|
|
124
|
+
/* @__PURE__ */ jsx("span", {
|
|
125
|
+
class: "font-medium",
|
|
126
|
+
children: "-"
|
|
127
|
+
})
|
|
128
|
+
]
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ jsxs("div", {
|
|
131
|
+
class: "flex justify-between border-b border-white/10 py-2",
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ jsx("span", {
|
|
134
|
+
class: "text-zinc-400",
|
|
135
|
+
children: "Page load"
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ jsx("span", {
|
|
138
|
+
class: "font-medium",
|
|
139
|
+
children: "-"
|
|
140
|
+
})
|
|
141
|
+
]
|
|
142
|
+
}),
|
|
143
|
+
/* @__PURE__ */ jsxs("div", {
|
|
144
|
+
class: "flex justify-between py-2",
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ jsx("span", {
|
|
147
|
+
class: "text-zinc-400",
|
|
148
|
+
children: "Navigation"
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ jsx("span", {
|
|
151
|
+
class: "font-medium",
|
|
152
|
+
children: "-"
|
|
153
|
+
})
|
|
154
|
+
]
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
})
|
|
158
|
+
]
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
export {
|
|
164
|
+
Overview
|
|
165
|
+
};
|