@qwik.dev/devtools 0.0.2 → 0.0.4

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.
Files changed (136) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -47
  3. package/dist/component/_virtual/_commonjsHelpers.qwik.cjs +6 -0
  4. package/dist/component/_virtual/_commonjsHelpers.qwik.mjs +6 -0
  5. package/dist/component/devtools.css.qwik.cjs +3 -0
  6. package/dist/component/devtools.css.qwik.mjs +4 -0
  7. package/dist/component/devtools.qwik.cjs +537 -0
  8. package/dist/component/devtools.qwik.mjs +537 -0
  9. package/dist/component/index.qwik.cjs +4 -0
  10. package/dist/component/index.qwik.mjs +4 -0
  11. package/dist/component/lib-types/devtools/src/index.d.ts +1 -0
  12. package/dist/component/lib-types/devtools/src/utils/location.d.ts +1 -0
  13. package/dist/component/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 +60 -0
  14. package/dist/component/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 +60 -0
  15. package/dist/component/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 +32 -0
  16. package/dist/component/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 +32 -0
  17. package/dist/component/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.qwik.cjs +54 -0
  18. package/dist/component/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.qwik.mjs +54 -0
  19. package/dist/component/node_modules/.pnpm/birpc@0.2.19/node_modules/birpc/dist/index.qwik.cjs +128 -0
  20. package/dist/component/node_modules/.pnpm/birpc@0.2.19/node_modules/birpc/dist/index.qwik.mjs +128 -0
  21. package/dist/component/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.qwik.cjs +149 -0
  22. package/dist/component/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.qwik.mjs +150 -0
  23. package/dist/component/node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.qwik.cjs +36 -0
  24. package/dist/component/node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.qwik.mjs +36 -0
  25. package/dist/component/node_modules/.pnpm/dree@5.1.5/node_modules/dree/bundled/lib/esm/index.esm.qwik.cjs +12 -0
  26. package/dist/component/node_modules/.pnpm/dree@5.1.5/node_modules/dree/bundled/lib/esm/index.esm.qwik.mjs +12 -0
  27. package/dist/component/node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.qwik.cjs +17 -0
  28. package/dist/component/node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.qwik.mjs +17 -0
  29. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.qwik.cjs +12 -0
  30. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.qwik.mjs +12 -0
  31. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.qwik.cjs +513 -0
  32. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.qwik.mjs +513 -0
  33. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.qwik.cjs +110 -0
  34. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.qwik.mjs +110 -0
  35. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.qwik.cjs +6 -0
  36. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.qwik.mjs +6 -0
  37. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.qwik.cjs +738 -0
  38. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.qwik.mjs +738 -0
  39. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.qwik.cjs +6 -0
  40. package/dist/component/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.qwik.mjs +6 -0
  41. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.qwik.cjs +120 -0
  42. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.qwik.mjs +120 -0
  43. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.qwik.cjs +23 -0
  44. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.qwik.mjs +23 -0
  45. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.qwik.cjs +18 -0
  46. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.qwik.mjs +18 -0
  47. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/double-indexed-kv.qwik.cjs +23 -0
  48. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/double-indexed-kv.qwik.mjs +23 -0
  49. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.qwik.cjs +91 -0
  50. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.qwik.mjs +91 -0
  51. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/is.qwik.cjs +51 -0
  52. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/is.qwik.mjs +51 -0
  53. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.qwik.cjs +30 -0
  54. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.qwik.mjs +30 -0
  55. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.qwik.cjs +148 -0
  56. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.qwik.mjs +148 -0
  57. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.qwik.cjs +28 -0
  58. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.qwik.mjs +28 -0
  59. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/transformer.qwik.cjs +203 -0
  60. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/transformer.qwik.mjs +203 -0
  61. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/util.qwik.cjs +47 -0
  62. package/dist/component/node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/util.qwik.mjs +47 -0
  63. package/dist/component/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 +35 -0
  64. package/dist/component/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 +35 -0
  65. package/dist/component/packages/kit/src/client.qwik.cjs +18 -0
  66. package/dist/component/packages/kit/src/client.qwik.mjs +18 -0
  67. package/dist/component/packages/kit/src/context.qwik.cjs +20 -0
  68. package/dist/component/packages/kit/src/context.qwik.mjs +20 -0
  69. package/dist/component/packages/kit/src/globals.qwik.cjs +6 -0
  70. package/dist/component/packages/kit/src/globals.qwik.mjs +6 -0
  71. package/dist/plugin/index.cjs +10504 -0
  72. package/dist/plugin/index.mjs +10492 -0
  73. package/package.json +24 -43
  74. package/lib/index.qwik.cjs +0 -4
  75. package/lib/index.qwik.mjs +0 -4
  76. package/lib/kit/context.qwik.cjs +0 -16
  77. package/lib/kit/context.qwik.mjs +0 -16
  78. package/lib/kit/globals.qwik.cjs +0 -6
  79. package/lib/kit/globals.qwik.mjs +0 -6
  80. package/lib/kit/server.qwik.cjs +0 -18
  81. package/lib/kit/server.qwik.mjs +0 -18
  82. package/lib/plugin/assets/index.qwik.cjs +0 -67
  83. package/lib/plugin/assets/index.qwik.mjs +0 -67
  84. package/lib/plugin/index.qwik.cjs +0 -49
  85. package/lib/plugin/index.qwik.mjs +0 -49
  86. package/lib/plugin/npm/index.qwik.cjs +0 -19
  87. package/lib/plugin/npm/index.qwik.mjs +0 -19
  88. package/lib/plugin/routes/index.qwik.cjs +0 -17
  89. package/lib/plugin/routes/index.qwik.mjs +0 -17
  90. package/lib/plugin/rpc/index.qwik.cjs +0 -14
  91. package/lib/plugin/rpc/index.qwik.mjs +0 -14
  92. package/lib-types/index.d.ts +0 -1
  93. package/lib-types/plugin/assets/index.d.ts +0 -5
  94. package/lib-types/plugin/components/index.d.ts +0 -0
  95. package/lib-types/plugin/index.d.ts +0 -2
  96. package/lib-types/plugin/npm/index.d.ts +0 -5
  97. package/lib-types/plugin/routes/index.d.ts +0 -5
  98. package/lib-types/plugin/rpc/index.d.ts +0 -3
  99. package/lib-types/plugin/types/index.d.ts +0 -5
  100. package/src/devtools.css +0 -558
  101. package/src/devtools.tsx +0 -411
  102. package/src/entry.dev.tsx +0 -17
  103. package/src/entry.ssr.tsx +0 -25
  104. package/src/index.ts +0 -1
  105. package/src/kit/client.ts +0 -21
  106. package/src/kit/constants.ts +0 -1
  107. package/src/kit/context.ts +0 -42
  108. package/src/kit/globals.ts +0 -22
  109. package/src/kit/index.ts +0 -4
  110. package/src/kit/server.ts +0 -21
  111. package/src/kit/shared.ts +0 -11
  112. package/src/kit/types.ts +0 -48
  113. package/src/plugin/assets/index.ts +0 -126
  114. package/src/plugin/components/index.ts +0 -0
  115. package/src/plugin/index.ts +0 -50
  116. package/src/plugin/npm/index.ts +0 -24
  117. package/src/plugin/routes/index.ts +0 -16
  118. package/src/plugin/rpc/index.ts +0 -14
  119. package/src/plugin/types/index.ts +0 -6
  120. package/src/root.tsx +0 -15
  121. /package/{lib-types → dist/component/lib-types/devtools/src}/devtools.d.ts +0 -0
  122. /package/{lib-types → dist/component/lib-types/devtools/src}/entry.dev.d.ts +0 -0
  123. /package/{lib-types → dist/component/lib-types/devtools/src}/entry.ssr.d.ts +0 -0
  124. /package/{lib-types → dist/component/lib-types/devtools/src}/root.d.ts +0 -0
  125. /package/{lib-types/kit → dist/component/lib-types/kit/src}/client.d.ts +0 -0
  126. /package/{lib-types/kit → dist/component/lib-types/kit/src}/constants.d.ts +0 -0
  127. /package/{lib-types/kit → dist/component/lib-types/kit/src}/context.d.ts +0 -0
  128. /package/{lib-types/kit → dist/component/lib-types/kit/src}/globals.d.ts +0 -0
  129. /package/{lib-types/kit → dist/component/lib-types/kit/src}/index.d.ts +0 -0
  130. /package/{lib-types/kit → dist/component/lib-types/kit/src}/server.d.ts +0 -0
  131. /package/{lib-types/kit → dist/component/lib-types/kit/src}/shared.d.ts +0 -0
  132. /package/{lib-types/kit → dist/component/lib-types/kit/src}/types.d.ts +0 -0
  133. /package/{lib/kit → dist/component/packages/kit/src}/constants.qwik.cjs +0 -0
  134. /package/{lib/kit → dist/component/packages/kit/src}/constants.qwik.mjs +0 -0
  135. /package/{lib/kit → dist/component/packages/kit/src}/shared.qwik.cjs +0 -0
  136. /package/{lib/kit → dist/component/packages/kit/src}/shared.qwik.mjs +0 -0
@@ -0,0 +1,537 @@
1
+ import { jsxs, jsx } from "@qwik.dev/core/jsx-runtime";
2
+ import { component$, useStyles$, useStore, useSignal, 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 styles from "./devtools.css.qwik.mjs";
11
+ import { useLocation } from "@qwik.dev/router";
12
+ function getClientRpcFunctions() {
13
+ return {
14
+ healthCheck: () => true
15
+ };
16
+ }
17
+ const QwikDevtools = component$(() => {
18
+ useStyles$(styles);
19
+ const state = useStore({
20
+ isOpen: false,
21
+ activeTab: "overview",
22
+ npmPackages: [],
23
+ assets: [],
24
+ routes: void 0
25
+ });
26
+ const panelRef = useSignal();
27
+ const location = useLocation();
28
+ useVisibleTask$(async ({ cleanup, track }) => {
29
+ const hot = await tryCreateHotContext(void 0, [
30
+ "/"
31
+ ]);
32
+ if (!hot) {
33
+ throw new Error("Vite Hot Context not connected");
34
+ }
35
+ setViteClientContext(hot);
36
+ createClientRpc(getClientRpcFunctions());
37
+ track(() => {
38
+ if (state.isOpen) {
39
+ const rpc = getViteClientRpc();
40
+ rpc.getAssetsFromPublicDir().then((data) => {
41
+ state.assets = data;
42
+ });
43
+ rpc.getRoutes().then((data) => {
44
+ const children = data.children || [];
45
+ const directories = children.filter((child) => child.type === "directory");
46
+ const values = [
47
+ {
48
+ relativePath: "",
49
+ name: "index",
50
+ type: re.DIRECTORY,
51
+ path: "",
52
+ isSymbolicLink: false,
53
+ children: void 0
54
+ },
55
+ ...directories
56
+ ];
57
+ state.routes = noSerialize(values);
58
+ });
59
+ rpc.getQwikPackages().then((data) => {
60
+ state.npmPackages = data;
61
+ });
62
+ }
63
+ });
64
+ const handleKeyPress = (e) => {
65
+ if (e.key === "`" && e.metaKey) {
66
+ state.isOpen = !state.isOpen;
67
+ }
68
+ if (e.key === "Escape" && state.isOpen) {
69
+ state.isOpen = false;
70
+ }
71
+ };
72
+ const handleClickOutside = (e) => {
73
+ if (state.isOpen && panelRef.value && !panelRef.value.contains(e.target)) {
74
+ state.isOpen = false;
75
+ }
76
+ };
77
+ window.addEventListener("keydown", handleKeyPress);
78
+ window.addEventListener("mousedown", handleClickOutside);
79
+ cleanup(() => {
80
+ window.removeEventListener("keydown", handleKeyPress);
81
+ window.removeEventListener("mousedown", handleClickOutside);
82
+ });
83
+ });
84
+ return /* @__PURE__ */ jsxs("div", {
85
+ class: {
86
+ "devtools-container": true,
87
+ "devtools-open": state.isOpen
88
+ },
89
+ children: [
90
+ /* @__PURE__ */ jsx("div", {
91
+ class: {
92
+ "devtools-toggle": true,
93
+ "is-open": state.isOpen
94
+ },
95
+ onClick$: () => state.isOpen = !state.isOpen,
96
+ children: /* @__PURE__ */ jsx("img", {
97
+ width: 20,
98
+ height: 20,
99
+ src: "https://qwik.dev/logos/qwik-logo.svg",
100
+ alt: "Qwik Logo",
101
+ class: "toggle-icon"
102
+ })
103
+ }),
104
+ state.isOpen && /* @__PURE__ */ jsxs("div", {
105
+ ref: panelRef,
106
+ class: "devtools-panel",
107
+ children: [
108
+ /* @__PURE__ */ jsxs("div", {
109
+ class: "devtools-tabs",
110
+ children: [
111
+ /* @__PURE__ */ jsx("button", {
112
+ class: {
113
+ "tab-active": state.activeTab === "overview"
114
+ },
115
+ onClick$: () => state.activeTab = "overview",
116
+ title: "Overview",
117
+ children: /* @__PURE__ */ jsx(HiBoltOutline, {
118
+ width: 20,
119
+ height: 20
120
+ })
121
+ }),
122
+ /* @__PURE__ */ jsx("button", {
123
+ class: {
124
+ "tab-active": state.activeTab === "components"
125
+ },
126
+ onClick$: () => state.activeTab = "components",
127
+ title: "Components",
128
+ children: /* @__PURE__ */ jsx(HiCubeOutline, {
129
+ width: 20,
130
+ height: 20
131
+ })
132
+ }),
133
+ /* @__PURE__ */ jsx("button", {
134
+ class: {
135
+ "tab-active": state.activeTab === "routes"
136
+ },
137
+ onClick$: () => state.activeTab = "routes",
138
+ title: "Routes",
139
+ children: /* @__PURE__ */ jsx(LuFolderTree, {
140
+ width: 20,
141
+ height: 20
142
+ })
143
+ }),
144
+ /* @__PURE__ */ jsx("button", {
145
+ class: {
146
+ "tab-active": state.activeTab === "state"
147
+ },
148
+ onClick$: () => state.activeTab = "state",
149
+ title: "State",
150
+ children: /* @__PURE__ */ jsxs("svg", {
151
+ width: "20",
152
+ height: "20",
153
+ viewBox: "0 0 24 24",
154
+ fill: "none",
155
+ xmlns: "http://www.w3.org/2000/svg",
156
+ children: [
157
+ /* @__PURE__ */ jsx("path", {
158
+ d: "M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7zm0 2a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z",
159
+ fill: "currentColor"
160
+ }),
161
+ /* @__PURE__ */ jsx("path", {
162
+ d: "M8 20v1h8v-1H8z",
163
+ fill: "currentColor"
164
+ })
165
+ ]
166
+ })
167
+ }),
168
+ /* @__PURE__ */ jsx("button", {
169
+ class: {
170
+ "tab-active": state.activeTab === "assets"
171
+ },
172
+ onClick$: () => state.activeTab = "assets",
173
+ title: "Assets",
174
+ children: /* @__PURE__ */ jsx(HiPhotoOutline, {
175
+ width: 20,
176
+ height: 20
177
+ })
178
+ })
179
+ ]
180
+ }),
181
+ /* @__PURE__ */ jsxs("div", {
182
+ class: "devtools-content",
183
+ children: [
184
+ state.activeTab === "overview" && /* @__PURE__ */ jsxs("div", {
185
+ class: "tab-content overview",
186
+ children: [
187
+ /* @__PURE__ */ jsxs("div", {
188
+ class: "header-section",
189
+ children: [
190
+ /* @__PURE__ */ jsxs("div", {
191
+ class: "title-container",
192
+ children: [
193
+ /* @__PURE__ */ jsx("img", {
194
+ width: 32,
195
+ height: 32,
196
+ src: "https://qwik.dev/logos/qwik-logo.svg",
197
+ alt: "Qwik Logo",
198
+ class: "qwik-logo"
199
+ }),
200
+ /* @__PURE__ */ jsx("h1", {
201
+ children: "Qwik DevTools"
202
+ })
203
+ ]
204
+ }),
205
+ /* @__PURE__ */ jsxs("div", {
206
+ class: "version",
207
+ children: [
208
+ "v",
209
+ state.npmPackages.find(([name]) => name.includes("core"))?.[1] || "0.0.0"
210
+ ]
211
+ })
212
+ ]
213
+ }),
214
+ /* @__PURE__ */ jsxs("div", {
215
+ class: "metrics-grid",
216
+ children: [
217
+ /* @__PURE__ */ jsxs("div", {
218
+ class: "metric-card",
219
+ children: [
220
+ /* @__PURE__ */ jsx("div", {
221
+ class: "metric-icon",
222
+ children: /* @__PURE__ */ jsx(LuFolderTree, {
223
+ class: "icon"
224
+ })
225
+ }),
226
+ /* @__PURE__ */ jsxs("div", {
227
+ class: "metric-content",
228
+ children: [
229
+ /* @__PURE__ */ jsx("div", {
230
+ class: "metric-value",
231
+ children: state.routes?.length
232
+ }),
233
+ /* @__PURE__ */ jsx("div", {
234
+ class: "metric-label",
235
+ children: "pages"
236
+ })
237
+ ]
238
+ })
239
+ ]
240
+ }),
241
+ /* @__PURE__ */ jsxs("div", {
242
+ class: "metric-card",
243
+ children: [
244
+ /* @__PURE__ */ jsx("div", {
245
+ class: "metric-icon",
246
+ children: /* @__PURE__ */ jsx(HiCubeOutline, {
247
+ class: "icon"
248
+ })
249
+ }),
250
+ /* @__PURE__ */ jsxs("div", {
251
+ class: "metric-content",
252
+ children: [
253
+ /* @__PURE__ */ jsx("div", {
254
+ class: "metric-value",
255
+ children: state.assets.length
256
+ }),
257
+ /* @__PURE__ */ jsx("div", {
258
+ class: "metric-label",
259
+ children: "components"
260
+ })
261
+ ]
262
+ })
263
+ ]
264
+ }),
265
+ /* @__PURE__ */ jsxs("div", {
266
+ class: "metric-card",
267
+ children: [
268
+ /* @__PURE__ */ jsx("div", {
269
+ class: "metric-icon",
270
+ children: /* @__PURE__ */ jsx(HiPhotoOutline, {
271
+ class: "icon"
272
+ })
273
+ }),
274
+ /* @__PURE__ */ jsxs("div", {
275
+ class: "metric-content",
276
+ children: [
277
+ /* @__PURE__ */ jsx("div", {
278
+ class: "metric-value",
279
+ children: state.assets.length || 0
280
+ }),
281
+ /* @__PURE__ */ jsx("div", {
282
+ class: "metric-label",
283
+ children: "assets"
284
+ })
285
+ ]
286
+ })
287
+ ]
288
+ })
289
+ ]
290
+ }),
291
+ /* @__PURE__ */ jsxs("div", {
292
+ class: "packages-section",
293
+ children: [
294
+ /* @__PURE__ */ jsx("h3", {
295
+ children: "Installed Packages"
296
+ }),
297
+ /* @__PURE__ */ jsx("div", {
298
+ class: "packages-grid",
299
+ children: state.npmPackages.map(([name, version]) => /* @__PURE__ */ jsxs("div", {
300
+ class: "package-item",
301
+ children: [
302
+ /* @__PURE__ */ jsx("div", {
303
+ class: "package-name",
304
+ children: name
305
+ }),
306
+ /* @__PURE__ */ jsxs("div", {
307
+ class: "package-version",
308
+ children: [
309
+ "v",
310
+ version
311
+ ]
312
+ })
313
+ ]
314
+ }, name))
315
+ })
316
+ ]
317
+ }),
318
+ /* @__PURE__ */ jsxs("div", {
319
+ class: "performance-section",
320
+ children: [
321
+ /* @__PURE__ */ jsx("h3", {
322
+ children: "Performance"
323
+ }),
324
+ /* @__PURE__ */ jsxs("div", {
325
+ class: "performance-metrics",
326
+ children: [
327
+ /* @__PURE__ */ jsxs("div", {
328
+ class: "perf-item",
329
+ children: [
330
+ /* @__PURE__ */ jsx("span", {
331
+ children: "SSR to full load"
332
+ }),
333
+ /* @__PURE__ */ jsx("span", {
334
+ class: "perf-value",
335
+ children: "-"
336
+ })
337
+ ]
338
+ }),
339
+ /* @__PURE__ */ jsxs("div", {
340
+ class: "perf-item",
341
+ children: [
342
+ /* @__PURE__ */ jsx("span", {
343
+ children: "Page load"
344
+ }),
345
+ /* @__PURE__ */ jsx("span", {
346
+ class: "perf-value",
347
+ children: "-"
348
+ })
349
+ ]
350
+ }),
351
+ /* @__PURE__ */ jsxs("div", {
352
+ class: "perf-item",
353
+ children: [
354
+ /* @__PURE__ */ jsx("span", {
355
+ children: "Navigation"
356
+ }),
357
+ /* @__PURE__ */ jsx("span", {
358
+ class: "perf-value",
359
+ children: "-"
360
+ })
361
+ ]
362
+ })
363
+ ]
364
+ })
365
+ ]
366
+ })
367
+ ]
368
+ }),
369
+ state.activeTab === "assets" && /* @__PURE__ */ jsxs("div", {
370
+ class: "tab-content assets",
371
+ children: [
372
+ /* @__PURE__ */ jsxs("div", {
373
+ class: "header-section",
374
+ children: [
375
+ /* @__PURE__ */ jsx("h3", {
376
+ children: "Public Assets"
377
+ }),
378
+ /* @__PURE__ */ jsxs("div", {
379
+ class: "assets-stats",
380
+ children: [
381
+ /* @__PURE__ */ jsxs("span", {
382
+ class: "stat-item",
383
+ children: [
384
+ "Total Size:",
385
+ " ",
386
+ (state.assets?.reduce((acc, asset) => acc + asset.size, 0) / 1024).toFixed(2),
387
+ " ",
388
+ "KB"
389
+ ]
390
+ }),
391
+ /* @__PURE__ */ jsxs("span", {
392
+ class: "stat-item",
393
+ children: [
394
+ "Count: ",
395
+ state.assets?.length || 0
396
+ ]
397
+ })
398
+ ]
399
+ })
400
+ ]
401
+ }),
402
+ /* @__PURE__ */ jsx("div", {
403
+ class: "assets-grid",
404
+ children: state.assets?.map((asset) => {
405
+ const isImage = asset.path.match(/\.(jpg|jpeg|png|gif|svg|webp)$/i);
406
+ const fileExt = asset.path.split(".").pop()?.toUpperCase();
407
+ return /* @__PURE__ */ jsxs("div", {
408
+ class: "asset-card",
409
+ children: [
410
+ isImage ? /* @__PURE__ */ jsx("div", {
411
+ class: "asset-preview",
412
+ children: /* @__PURE__ */ jsx("img", {
413
+ width: 176,
414
+ height: 176,
415
+ src: asset.publicPath,
416
+ alt: asset.path
417
+ })
418
+ }) : /* @__PURE__ */ jsx("div", {
419
+ class: "file-preview",
420
+ children: /* @__PURE__ */ jsx("span", {
421
+ class: "file-ext",
422
+ children: fileExt
423
+ })
424
+ }),
425
+ /* @__PURE__ */ jsxs("div", {
426
+ class: "asset-info",
427
+ children: [
428
+ /* @__PURE__ */ jsx("div", {
429
+ class: "asset-path",
430
+ title: asset.path,
431
+ children: asset.path.split("/").pop()
432
+ }),
433
+ /* @__PURE__ */ jsxs("div", {
434
+ class: "asset-meta",
435
+ children: [
436
+ /* @__PURE__ */ jsxs("span", {
437
+ class: "asset-size",
438
+ children: [
439
+ (asset.size / 1024).toFixed(2),
440
+ " KB"
441
+ ]
442
+ }),
443
+ /* @__PURE__ */ jsx("span", {
444
+ class: "asset-type",
445
+ children: fileExt
446
+ })
447
+ ]
448
+ })
449
+ ]
450
+ })
451
+ ]
452
+ }, asset.filePath);
453
+ })
454
+ })
455
+ ]
456
+ }),
457
+ state.activeTab === "components" && /* @__PURE__ */ jsx("div", {
458
+ class: "tab-content",
459
+ children: /* @__PURE__ */ jsx("h3", {
460
+ children: "Components"
461
+ })
462
+ }),
463
+ state.activeTab === "routes" && /* @__PURE__ */ jsxs("div", {
464
+ class: "tab-content",
465
+ children: [
466
+ /* @__PURE__ */ jsx("h3", {
467
+ children: "Application Routes"
468
+ }),
469
+ /* @__PURE__ */ jsxs("div", {
470
+ class: "routes-table",
471
+ children: [
472
+ /* @__PURE__ */ jsxs("div", {
473
+ class: "table-header",
474
+ children: [
475
+ /* @__PURE__ */ jsx("div", {
476
+ class: "col-route",
477
+ children: "Route Path"
478
+ }),
479
+ /* @__PURE__ */ jsx("div", {
480
+ class: "col-route",
481
+ children: "Name"
482
+ }),
483
+ /* @__PURE__ */ jsx("div", {
484
+ class: "col-route",
485
+ children: "Middleware"
486
+ }),
487
+ /* @__PURE__ */ jsx("div", {
488
+ class: "col-route",
489
+ children: "Layout"
490
+ })
491
+ ]
492
+ }),
493
+ state.routes?.map((route, i) => {
494
+ const children = route.children || [];
495
+ const layout = route.relativePath !== "" && route.type === "directory" && children.find((child) => child.name.startsWith("layout"));
496
+ return /* @__PURE__ */ jsxs("div", {
497
+ class: "table-row",
498
+ children: [
499
+ /* @__PURE__ */ jsx("div", {
500
+ class: "col-route",
501
+ children: /* @__PURE__ */ jsx("span", {
502
+ class: location.url.pathname === "/" && route.relativePath === "" || location.url.pathname === `/${route.relativePath}/` ? "active-route" : "",
503
+ children: route.relativePath === "" ? "/" : `/${route.relativePath}/`
504
+ })
505
+ }),
506
+ /* @__PURE__ */ jsx("div", {
507
+ class: "col-route",
508
+ children: route.name
509
+ }),
510
+ /* @__PURE__ */ jsx("div", {
511
+ class: "col-route",
512
+ children: "-"
513
+ }),
514
+ /* @__PURE__ */ jsx("div", {
515
+ class: "col-route",
516
+ children: /* @__PURE__ */ jsx("span", {
517
+ class: layout && i > 0 ? "custom-layout" : "",
518
+ children: layout && i > 0 ? `${route.relativePath}/layout` : "default"
519
+ })
520
+ })
521
+ ]
522
+ }, route.relativePath);
523
+ })
524
+ ]
525
+ })
526
+ ]
527
+ })
528
+ ]
529
+ })
530
+ ]
531
+ })
532
+ ]
533
+ });
534
+ });
535
+ export {
536
+ QwikDevtools
537
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const devtools = require("./devtools.qwik.cjs");
4
+ exports.QwikDevtools = devtools.QwikDevtools;
@@ -0,0 +1,4 @@
1
+ import { QwikDevtools } from "./devtools.qwik.mjs";
2
+ export {
3
+ QwikDevtools
4
+ };
@@ -0,0 +1 @@
1
+ export { QwikDevtools } from './devtools';
@@ -0,0 +1 @@
1
+ export declare function getCurrentLocation(): string;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const core = require("@qwik.dev/core");
4
+ const HiBoltOutline = (props) => /* @__PURE__ */ core._jsxS("svg", {
5
+ ...props,
6
+ children: /* @__PURE__ */ core._jsxQ("path", null, {
7
+ d: "M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z",
8
+ "stroke-linecap": "round",
9
+ "stroke-linejoin": "round"
10
+ }, null, 3, null)
11
+ }, {
12
+ "aria-hidden": "true",
13
+ "data-qwikest-icon": true,
14
+ fill: "none",
15
+ height: "1em",
16
+ stroke: "currentColor",
17
+ "stroke-width": "1.5",
18
+ viewBox: "0 0 24 24",
19
+ width: "1em",
20
+ xmlns: "http://www.w3.org/2000/svg"
21
+ }, 0, "z0_0");
22
+ const HiCubeOutline = (props) => /* @__PURE__ */ core._jsxS("svg", {
23
+ ...props,
24
+ children: /* @__PURE__ */ core._jsxQ("path", null, {
25
+ d: "M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9",
26
+ "stroke-linecap": "round",
27
+ "stroke-linejoin": "round"
28
+ }, null, 3, null)
29
+ }, {
30
+ "aria-hidden": "true",
31
+ "data-qwikest-icon": true,
32
+ fill: "none",
33
+ height: "1em",
34
+ stroke: "currentColor",
35
+ "stroke-width": "1.5",
36
+ viewBox: "0 0 24 24",
37
+ width: "1em",
38
+ xmlns: "http://www.w3.org/2000/svg"
39
+ }, 0, "Tf_0");
40
+ const HiPhotoOutline = (props) => /* @__PURE__ */ core._jsxS("svg", {
41
+ ...props,
42
+ children: /* @__PURE__ */ core._jsxQ("path", null, {
43
+ d: "M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z",
44
+ "stroke-linecap": "round",
45
+ "stroke-linejoin": "round"
46
+ }, null, 3, null)
47
+ }, {
48
+ "aria-hidden": "true",
49
+ "data-qwikest-icon": true,
50
+ fill: "none",
51
+ height: "1em",
52
+ stroke: "currentColor",
53
+ "stroke-width": "1.5",
54
+ viewBox: "0 0 24 24",
55
+ width: "1em",
56
+ xmlns: "http://www.w3.org/2000/svg"
57
+ }, 0, "Vu_0");
58
+ exports.HiBoltOutline = HiBoltOutline;
59
+ exports.HiCubeOutline = HiCubeOutline;
60
+ exports.HiPhotoOutline = HiPhotoOutline;
@@ -0,0 +1,60 @@
1
+ import { _jsxS, _jsxQ } from "@qwik.dev/core";
2
+ const HiBoltOutline = (props) => /* @__PURE__ */ _jsxS("svg", {
3
+ ...props,
4
+ children: /* @__PURE__ */ _jsxQ("path", null, {
5
+ d: "M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z",
6
+ "stroke-linecap": "round",
7
+ "stroke-linejoin": "round"
8
+ }, null, 3, null)
9
+ }, {
10
+ "aria-hidden": "true",
11
+ "data-qwikest-icon": true,
12
+ fill: "none",
13
+ height: "1em",
14
+ stroke: "currentColor",
15
+ "stroke-width": "1.5",
16
+ viewBox: "0 0 24 24",
17
+ width: "1em",
18
+ xmlns: "http://www.w3.org/2000/svg"
19
+ }, 0, "z0_0");
20
+ const HiCubeOutline = (props) => /* @__PURE__ */ _jsxS("svg", {
21
+ ...props,
22
+ children: /* @__PURE__ */ _jsxQ("path", null, {
23
+ d: "M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9",
24
+ "stroke-linecap": "round",
25
+ "stroke-linejoin": "round"
26
+ }, null, 3, null)
27
+ }, {
28
+ "aria-hidden": "true",
29
+ "data-qwikest-icon": true,
30
+ fill: "none",
31
+ height: "1em",
32
+ stroke: "currentColor",
33
+ "stroke-width": "1.5",
34
+ viewBox: "0 0 24 24",
35
+ width: "1em",
36
+ xmlns: "http://www.w3.org/2000/svg"
37
+ }, 0, "Tf_0");
38
+ const HiPhotoOutline = (props) => /* @__PURE__ */ _jsxS("svg", {
39
+ ...props,
40
+ children: /* @__PURE__ */ _jsxQ("path", null, {
41
+ d: "M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z",
42
+ "stroke-linecap": "round",
43
+ "stroke-linejoin": "round"
44
+ }, null, 3, null)
45
+ }, {
46
+ "aria-hidden": "true",
47
+ "data-qwikest-icon": true,
48
+ fill: "none",
49
+ height: "1em",
50
+ stroke: "currentColor",
51
+ "stroke-width": "1.5",
52
+ viewBox: "0 0 24 24",
53
+ width: "1em",
54
+ xmlns: "http://www.w3.org/2000/svg"
55
+ }, 0, "Vu_0");
56
+ export {
57
+ HiBoltOutline,
58
+ HiCubeOutline,
59
+ HiPhotoOutline
60
+ };