@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
package/dist/plugin/index.cjs
CHANGED
|
@@ -12,6 +12,7 @@ const node_path = require('node:path');
|
|
|
12
12
|
const node_os = require('node:os');
|
|
13
13
|
const node_crypto = require('node:crypto');
|
|
14
14
|
require('node:fs');
|
|
15
|
+
const child_process = require('child_process');
|
|
15
16
|
|
|
16
17
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
17
18
|
|
|
@@ -9464,6 +9465,22 @@ function getRouteFunctions({ config }) {
|
|
|
9464
9465
|
};
|
|
9465
9466
|
}
|
|
9466
9467
|
|
|
9468
|
+
async function detectPackageManager(projectRoot) {
|
|
9469
|
+
try {
|
|
9470
|
+
if (await fsp__default.access(require$$0__default$1.join(projectRoot, "pnpm-lock.yaml")).then(() => true).catch(() => false)) {
|
|
9471
|
+
return "pnpm";
|
|
9472
|
+
}
|
|
9473
|
+
if (await fsp__default.access(require$$0__default$1.join(projectRoot, "yarn.lock")).then(() => true).catch(() => false)) {
|
|
9474
|
+
return "yarn";
|
|
9475
|
+
}
|
|
9476
|
+
if (await fsp__default.access(require$$0__default$1.join(projectRoot, "package-lock.json")).then(() => true).catch(() => false)) {
|
|
9477
|
+
return "npm";
|
|
9478
|
+
}
|
|
9479
|
+
return "pnpm";
|
|
9480
|
+
} catch {
|
|
9481
|
+
return "pnpm";
|
|
9482
|
+
}
|
|
9483
|
+
}
|
|
9467
9484
|
function getNpmFunctions({ config }) {
|
|
9468
9485
|
return {
|
|
9469
9486
|
async getQwikPackages() {
|
|
@@ -9480,6 +9497,28 @@ function getNpmFunctions({ config }) {
|
|
|
9480
9497
|
} catch (error) {
|
|
9481
9498
|
return [];
|
|
9482
9499
|
}
|
|
9500
|
+
},
|
|
9501
|
+
async installPackage(packageName, isDev = true) {
|
|
9502
|
+
try {
|
|
9503
|
+
const projectRoot = require$$0__default$1.dirname(config.configFileDependencies[0]);
|
|
9504
|
+
const pm = await detectPackageManager(projectRoot);
|
|
9505
|
+
const devFlag = isDev ? pm === "npm" ? "--save-dev" : "-D" : "";
|
|
9506
|
+
const command = {
|
|
9507
|
+
npm: `npm install ${devFlag} ${packageName}`,
|
|
9508
|
+
pnpm: `pnpm add ${devFlag} ${packageName}`,
|
|
9509
|
+
yarn: `yarn add ${devFlag} ${packageName}`
|
|
9510
|
+
}[pm];
|
|
9511
|
+
child_process.execSync(command, {
|
|
9512
|
+
cwd: projectRoot,
|
|
9513
|
+
stdio: "pipe"
|
|
9514
|
+
});
|
|
9515
|
+
return { success: true };
|
|
9516
|
+
} catch (error) {
|
|
9517
|
+
return {
|
|
9518
|
+
success: false,
|
|
9519
|
+
error: error instanceof Error ? error.message : "Unknown error occurred"
|
|
9520
|
+
};
|
|
9521
|
+
}
|
|
9483
9522
|
}
|
|
9484
9523
|
};
|
|
9485
9524
|
}
|
|
@@ -10471,7 +10510,7 @@ function qwikDevtools() {
|
|
|
10471
10510
|
handler(code, id) {
|
|
10472
10511
|
_config.env.DEV;
|
|
10473
10512
|
if (id.endsWith("root.tsx")) {
|
|
10474
|
-
const importPath = "@
|
|
10513
|
+
const importPath = "@devtools/ui";
|
|
10475
10514
|
if (!code.includes(importPath)) {
|
|
10476
10515
|
code = `import { QwikDevtools } from '${importPath}';
|
|
10477
10516
|
${code}`;
|
package/dist/plugin/index.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import { resolve as resolve$1, relative as relative$1, basename, extname } from
|
|
|
10
10
|
import { homedir } from 'node:os';
|
|
11
11
|
import { createHash } from 'node:crypto';
|
|
12
12
|
import 'node:fs';
|
|
13
|
+
import { execSync } from 'child_process';
|
|
13
14
|
|
|
14
15
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
15
16
|
|
|
@@ -9452,6 +9453,22 @@ function getRouteFunctions({ config }) {
|
|
|
9452
9453
|
};
|
|
9453
9454
|
}
|
|
9454
9455
|
|
|
9456
|
+
async function detectPackageManager(projectRoot) {
|
|
9457
|
+
try {
|
|
9458
|
+
if (await fsp.access(require$$0$1.join(projectRoot, "pnpm-lock.yaml")).then(() => true).catch(() => false)) {
|
|
9459
|
+
return "pnpm";
|
|
9460
|
+
}
|
|
9461
|
+
if (await fsp.access(require$$0$1.join(projectRoot, "yarn.lock")).then(() => true).catch(() => false)) {
|
|
9462
|
+
return "yarn";
|
|
9463
|
+
}
|
|
9464
|
+
if (await fsp.access(require$$0$1.join(projectRoot, "package-lock.json")).then(() => true).catch(() => false)) {
|
|
9465
|
+
return "npm";
|
|
9466
|
+
}
|
|
9467
|
+
return "pnpm";
|
|
9468
|
+
} catch {
|
|
9469
|
+
return "pnpm";
|
|
9470
|
+
}
|
|
9471
|
+
}
|
|
9455
9472
|
function getNpmFunctions({ config }) {
|
|
9456
9473
|
return {
|
|
9457
9474
|
async getQwikPackages() {
|
|
@@ -9468,6 +9485,28 @@ function getNpmFunctions({ config }) {
|
|
|
9468
9485
|
} catch (error) {
|
|
9469
9486
|
return [];
|
|
9470
9487
|
}
|
|
9488
|
+
},
|
|
9489
|
+
async installPackage(packageName, isDev = true) {
|
|
9490
|
+
try {
|
|
9491
|
+
const projectRoot = require$$0$1.dirname(config.configFileDependencies[0]);
|
|
9492
|
+
const pm = await detectPackageManager(projectRoot);
|
|
9493
|
+
const devFlag = isDev ? pm === "npm" ? "--save-dev" : "-D" : "";
|
|
9494
|
+
const command = {
|
|
9495
|
+
npm: `npm install ${devFlag} ${packageName}`,
|
|
9496
|
+
pnpm: `pnpm add ${devFlag} ${packageName}`,
|
|
9497
|
+
yarn: `yarn add ${devFlag} ${packageName}`
|
|
9498
|
+
}[pm];
|
|
9499
|
+
execSync(command, {
|
|
9500
|
+
cwd: projectRoot,
|
|
9501
|
+
stdio: "pipe"
|
|
9502
|
+
});
|
|
9503
|
+
return { success: true };
|
|
9504
|
+
} catch (error) {
|
|
9505
|
+
return {
|
|
9506
|
+
success: false,
|
|
9507
|
+
error: error instanceof Error ? error.message : "Unknown error occurred"
|
|
9508
|
+
};
|
|
9509
|
+
}
|
|
9471
9510
|
}
|
|
9472
9511
|
};
|
|
9473
9512
|
}
|
|
@@ -10459,7 +10498,7 @@ function qwikDevtools() {
|
|
|
10459
10498
|
handler(code, id) {
|
|
10460
10499
|
_config.env.DEV;
|
|
10461
10500
|
if (id.endsWith("root.tsx")) {
|
|
10462
|
-
const importPath = "@
|
|
10501
|
+
const importPath = "@devtools/ui";
|
|
10463
10502
|
if (!code.includes(importPath)) {
|
|
10464
10503
|
code = `import { QwikDevtools } from '${importPath}';
|
|
10465
10504
|
${code}`;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 DevtoolsButton = core.component$(({ state }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
7
|
+
class: {
|
|
8
|
+
"fixed bottom-4 right-4 flex h-9 w-9 origin-center cursor-pointer items-center justify-center rounded-lg border border-white/10 bg-zinc-900 backdrop-blur-md transition-all duration-300 ease-in-out": true,
|
|
9
|
+
"rotate-90 border-emerald-500/50 bg-zinc-900/95 shadow-lg shadow-emerald-500/35": state.isOpen
|
|
10
|
+
},
|
|
11
|
+
onClick$: () => state.isOpen = !state.isOpen,
|
|
12
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
13
|
+
width: 20,
|
|
14
|
+
height: 20,
|
|
15
|
+
src: "https://qwik.dev/logos/qwik-logo.svg",
|
|
16
|
+
alt: "Qwik Logo",
|
|
17
|
+
class: "h-5 w-5 opacity-90 drop-shadow-md transition-all duration-300 ease-in-out hover:scale-110 hover:opacity-100"
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
exports.DevtoolsButton = DevtoolsButton;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$ } from "@qwik.dev/core";
|
|
3
|
+
const DevtoolsButton = component$(({ state }) => {
|
|
4
|
+
return /* @__PURE__ */ jsx("div", {
|
|
5
|
+
class: {
|
|
6
|
+
"fixed bottom-4 right-4 flex h-9 w-9 origin-center cursor-pointer items-center justify-center rounded-lg border border-white/10 bg-zinc-900 backdrop-blur-md transition-all duration-300 ease-in-out": true,
|
|
7
|
+
"rotate-90 border-emerald-500/50 bg-zinc-900/95 shadow-lg shadow-emerald-500/35": state.isOpen
|
|
8
|
+
},
|
|
9
|
+
onClick$: () => state.isOpen = !state.isOpen,
|
|
10
|
+
children: /* @__PURE__ */ jsx("img", {
|
|
11
|
+
width: 20,
|
|
12
|
+
height: 20,
|
|
13
|
+
src: "https://qwik.dev/logos/qwik-logo.svg",
|
|
14
|
+
alt: "Qwik Logo",
|
|
15
|
+
class: "h-5 w-5 opacity-90 drop-shadow-md transition-all duration-300 ease-in-out hover:scale-110 hover:opacity-100"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
DevtoolsButton
|
|
21
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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 DevtoolsContainer = core.component$(() => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
7
|
+
class: "fixed bottom-0 right-0 z-[9999] font-sans",
|
|
8
|
+
"q:slot": "content",
|
|
9
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {})
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
exports.DevtoolsContainer = DevtoolsContainer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$, Slot } from "@qwik.dev/core";
|
|
3
|
+
const DevtoolsContainer = component$(() => {
|
|
4
|
+
return /* @__PURE__ */ jsx("div", {
|
|
5
|
+
class: "fixed bottom-0 right-0 z-[9999] font-sans",
|
|
6
|
+
"q:slot": "content",
|
|
7
|
+
children: /* @__PURE__ */ jsx(Slot, {})
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
DevtoolsContainer
|
|
12
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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 DevtoolsPanel = core.component$(({ state }) => {
|
|
6
|
+
const panelRef = core.useSignal();
|
|
7
|
+
core.useTask$(({ cleanup }) => {
|
|
8
|
+
const handleKeyPress = (e) => {
|
|
9
|
+
if (e.key === "`" && e.metaKey) {
|
|
10
|
+
state.isOpen = !state.isOpen;
|
|
11
|
+
}
|
|
12
|
+
if (e.key === "Escape" && state.isOpen) {
|
|
13
|
+
state.isOpen = false;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const handleClickOutside = (e) => {
|
|
17
|
+
if (state.isOpen && panelRef.value && !panelRef.value.contains(e.target)) {
|
|
18
|
+
state.isOpen = false;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
window.addEventListener("keydown", handleKeyPress);
|
|
22
|
+
window.addEventListener("mousedown", handleClickOutside);
|
|
23
|
+
cleanup(() => {
|
|
24
|
+
window.removeEventListener("keydown", handleKeyPress);
|
|
25
|
+
window.removeEventListener("mousedown", handleClickOutside);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
29
|
+
ref: panelRef,
|
|
30
|
+
class: "fixed bottom-8 right-6 flex h-[50vh] w-full translate-y-0 transform overflow-hidden rounded-lg border-2 border-white/10 bg-zinc-900 text-white backdrop-blur-lg transition-transform duration-300 ease-in-out md:w-3/5",
|
|
31
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {})
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
exports.DevtoolsPanel = DevtoolsPanel;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$, useSignal, useTask$, Slot } from "@qwik.dev/core";
|
|
3
|
+
const DevtoolsPanel = component$(({ state }) => {
|
|
4
|
+
const panelRef = useSignal();
|
|
5
|
+
useTask$(({ cleanup }) => {
|
|
6
|
+
const handleKeyPress = (e) => {
|
|
7
|
+
if (e.key === "`" && e.metaKey) {
|
|
8
|
+
state.isOpen = !state.isOpen;
|
|
9
|
+
}
|
|
10
|
+
if (e.key === "Escape" && state.isOpen) {
|
|
11
|
+
state.isOpen = false;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const handleClickOutside = (e) => {
|
|
15
|
+
if (state.isOpen && panelRef.value && !panelRef.value.contains(e.target)) {
|
|
16
|
+
state.isOpen = false;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
window.addEventListener("keydown", handleKeyPress);
|
|
20
|
+
window.addEventListener("mousedown", handleClickOutside);
|
|
21
|
+
cleanup(() => {
|
|
22
|
+
window.removeEventListener("keydown", handleKeyPress);
|
|
23
|
+
window.removeEventListener("mousedown", handleClickOutside);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ jsx("div", {
|
|
27
|
+
ref: panelRef,
|
|
28
|
+
class: "fixed bottom-8 right-6 flex h-[50vh] w-full translate-y-0 transform overflow-hidden rounded-lg border-2 border-white/10 bg-zinc-900 text-white backdrop-blur-lg transition-transform duration-300 ease-in-out md:w-3/5",
|
|
29
|
+
children: /* @__PURE__ */ jsx(Slot, {})
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
DevtoolsPanel
|
|
34
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
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 Tab = core.component$(({ state, id, title }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx("button", {
|
|
7
|
+
onClick$: () => state.activeTab = id,
|
|
8
|
+
title,
|
|
9
|
+
class: {
|
|
10
|
+
"flex h-10 w-10 items-center justify-center rounded-lg p-2.5 transition-all duration-200": true,
|
|
11
|
+
"bg-white/5 text-zinc-400 hover:bg-white/10 hover:text-white": state.activeTab !== id,
|
|
12
|
+
"bg-emerald-500 text-white shadow-lg shadow-emerald-500/35": state.activeTab === id
|
|
13
|
+
},
|
|
14
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {})
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
exports.Tab = Tab;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$, Slot } from "@qwik.dev/core";
|
|
3
|
+
const Tab = component$(({ state, id, title }) => {
|
|
4
|
+
return /* @__PURE__ */ jsx("button", {
|
|
5
|
+
onClick$: () => state.activeTab = id,
|
|
6
|
+
title,
|
|
7
|
+
class: {
|
|
8
|
+
"flex h-10 w-10 items-center justify-center rounded-lg p-2.5 transition-all duration-200": true,
|
|
9
|
+
"bg-white/5 text-zinc-400 hover:bg-white/10 hover:text-white": state.activeTab !== id,
|
|
10
|
+
"bg-emerald-500 text-white shadow-lg shadow-emerald-500/35": state.activeTab === id
|
|
11
|
+
},
|
|
12
|
+
children: /* @__PURE__ */ jsx(Slot, {})
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
Tab
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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 TabContent = core.component$(() => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
7
|
+
class: "space-y-6",
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
10
|
+
class: "flex items-center justify-between border-b border-zinc-700 pb-4",
|
|
11
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {
|
|
12
|
+
name: "title"
|
|
13
|
+
})
|
|
14
|
+
}),
|
|
15
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Slot, {
|
|
16
|
+
name: "content"
|
|
17
|
+
})
|
|
18
|
+
]
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
exports.TabContent = TabContent;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsxs, jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$, Slot } from "@qwik.dev/core";
|
|
3
|
+
const TabContent = component$(() => {
|
|
4
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
5
|
+
class: "space-y-6",
|
|
6
|
+
children: [
|
|
7
|
+
/* @__PURE__ */ jsx("div", {
|
|
8
|
+
class: "flex items-center justify-between border-b border-zinc-700 pb-4",
|
|
9
|
+
children: /* @__PURE__ */ jsx(Slot, {
|
|
10
|
+
name: "title"
|
|
11
|
+
})
|
|
12
|
+
}),
|
|
13
|
+
/* @__PURE__ */ jsx(Slot, {
|
|
14
|
+
name: "content"
|
|
15
|
+
})
|
|
16
|
+
]
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
TabContent
|
|
21
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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 TabTitle = core.component$(({ title }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx("h3", {
|
|
7
|
+
class: "text-xl font-semibold",
|
|
8
|
+
children: title
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
exports.TabTitle = TabTitle;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$ } from "@qwik.dev/core";
|
|
3
|
+
const TabTitle = component$(({ title }) => {
|
|
4
|
+
return /* @__PURE__ */ jsx("h3", {
|
|
5
|
+
class: "text-xl font-semibold",
|
|
6
|
+
children: title
|
|
7
|
+
});
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
TabTitle
|
|
11
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
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 index = require("./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");
|
|
6
|
+
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");
|
|
7
|
+
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");
|
|
8
|
+
const client = require("./packages/kit/src/client.qwik.cjs");
|
|
9
|
+
require("./node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.qwik.cjs");
|
|
10
|
+
const context = require("./packages/kit/src/context.qwik.cjs");
|
|
11
|
+
const index_esm = require("./node_modules/.pnpm/dree@5.1.5/node_modules/dree/bundled/lib/esm/index.esm.qwik.cjs");
|
|
12
|
+
const global = require("./global.css.qwik.cjs");
|
|
13
|
+
const Tab = require("./components/Tab/Tab.qwik.cjs");
|
|
14
|
+
const TabContent = require("./components/TabContent/TabContent.qwik.cjs");
|
|
15
|
+
const Overview = require("./features/Overview/Overview.qwik.cjs");
|
|
16
|
+
const Assets = require("./features/Assets/Assets.qwik.cjs");
|
|
17
|
+
const Routes = require("./features/Routes/Routes.qwik.cjs");
|
|
18
|
+
const TabTitle = require("./components/TabTitle/TabTitle.qwik.cjs");
|
|
19
|
+
const DevtoolsButton = require("./components/DevtoolsButton/DevtoolsButton.qwik.cjs");
|
|
20
|
+
const DevtoolsContainer = require("./components/DevtoolsContainer/DevtoolsContainer.qwik.cjs");
|
|
21
|
+
const DevtoolsPanel = require("./components/DevtoolsPanel/DevtoolsPanel.qwik.cjs");
|
|
22
|
+
const Packages = require("./features/Packages/Packages.qwik.cjs");
|
|
23
|
+
function getClientRpcFunctions() {
|
|
24
|
+
return {
|
|
25
|
+
healthCheck: () => true
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
const QwikDevtools = core.component$(() => {
|
|
29
|
+
core.useStyles$(global);
|
|
30
|
+
const state = core.useStore({
|
|
31
|
+
isOpen: false,
|
|
32
|
+
activeTab: "overview",
|
|
33
|
+
npmPackages: [],
|
|
34
|
+
assets: [],
|
|
35
|
+
routes: void 0
|
|
36
|
+
});
|
|
37
|
+
core.useVisibleTask$(async ({ track }) => {
|
|
38
|
+
const hot = await index.tryCreateHotContext(void 0, [
|
|
39
|
+
"/"
|
|
40
|
+
]);
|
|
41
|
+
if (!hot) {
|
|
42
|
+
throw new Error("Vite Hot Context not connected");
|
|
43
|
+
}
|
|
44
|
+
context.setViteClientContext(hot);
|
|
45
|
+
client.createClientRpc(getClientRpcFunctions());
|
|
46
|
+
track(() => {
|
|
47
|
+
if (state.isOpen) {
|
|
48
|
+
const rpc = context.getViteClientRpc();
|
|
49
|
+
rpc.getAssetsFromPublicDir().then((data) => {
|
|
50
|
+
state.assets = data;
|
|
51
|
+
});
|
|
52
|
+
rpc.getRoutes().then((data) => {
|
|
53
|
+
const children = data.children || [];
|
|
54
|
+
const directories = children.filter((child) => child.type === "directory");
|
|
55
|
+
const values = [
|
|
56
|
+
{
|
|
57
|
+
relativePath: "",
|
|
58
|
+
name: "index",
|
|
59
|
+
type: index_esm.Type.DIRECTORY,
|
|
60
|
+
path: "",
|
|
61
|
+
isSymbolicLink: false,
|
|
62
|
+
children: void 0
|
|
63
|
+
},
|
|
64
|
+
...directories
|
|
65
|
+
];
|
|
66
|
+
state.routes = core.noSerialize(values);
|
|
67
|
+
});
|
|
68
|
+
rpc.getQwikPackages().then((data) => {
|
|
69
|
+
state.npmPackages = data;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(DevtoolsContainer.DevtoolsContainer, {
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ jsxRuntime.jsx(DevtoolsButton.DevtoolsButton, {
|
|
77
|
+
state
|
|
78
|
+
}),
|
|
79
|
+
state.isOpen && /* @__PURE__ */ jsxRuntime.jsxs(DevtoolsPanel.DevtoolsPanel, {
|
|
80
|
+
state,
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
83
|
+
class: "flex flex-col gap-2 border-r border-zinc-700 bg-zinc-900/95 p-3",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tab.Tab, {
|
|
86
|
+
state,
|
|
87
|
+
id: "overview",
|
|
88
|
+
title: "Overview",
|
|
89
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(hi_qwik.HiBoltOutline, {
|
|
90
|
+
class: "h-5 w-5"
|
|
91
|
+
})
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tab.Tab, {
|
|
94
|
+
state,
|
|
95
|
+
id: "packages",
|
|
96
|
+
title: "Packages",
|
|
97
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(hi_qwik.HiCubeOutline, {
|
|
98
|
+
class: "h-5 w-5"
|
|
99
|
+
})
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tab.Tab, {
|
|
102
|
+
state,
|
|
103
|
+
id: "routes",
|
|
104
|
+
title: "Routes",
|
|
105
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lu_qwik.LuFolderTree, {
|
|
106
|
+
class: "h-5 w-5"
|
|
107
|
+
})
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tab.Tab, {
|
|
110
|
+
state,
|
|
111
|
+
id: "assets",
|
|
112
|
+
title: "Assets",
|
|
113
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(hi_qwik.HiPhotoOutline, {
|
|
114
|
+
class: "h-5 w-5"
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
]
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
120
|
+
class: "custom-scrollbar flex-1 overflow-y-auto p-4",
|
|
121
|
+
children: [
|
|
122
|
+
state.activeTab === "overview" && /* @__PURE__ */ jsxRuntime.jsxs(TabContent.TabContent, {
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
125
|
+
class: "flex items-center gap-3",
|
|
126
|
+
"q:slot": "title",
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
129
|
+
width: 32,
|
|
130
|
+
height: 32,
|
|
131
|
+
src: "https://qwik.dev/logos/qwik-logo.svg",
|
|
132
|
+
alt: "Qwik Logo",
|
|
133
|
+
class: "h-8 w-8"
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", {
|
|
136
|
+
class: "text-2xl font-semibold",
|
|
137
|
+
children: "Qwik DevTools"
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ jsxRuntime.jsx(Overview.Overview, {
|
|
142
|
+
state,
|
|
143
|
+
"q:slot": "content"
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
}),
|
|
147
|
+
state.activeTab === "assets" && /* @__PURE__ */ jsxRuntime.jsxs(TabContent.TabContent, {
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ jsxRuntime.jsx(TabTitle.TabTitle, {
|
|
150
|
+
title: "Public Assets",
|
|
151
|
+
"q:slot": "title"
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
154
|
+
class: "flex gap-4 text-sm text-zinc-400",
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", {
|
|
157
|
+
children: [
|
|
158
|
+
"Total Size:",
|
|
159
|
+
" ",
|
|
160
|
+
(state.assets?.reduce((acc, asset) => acc + asset.size, 0) / 1024).toFixed(2),
|
|
161
|
+
" ",
|
|
162
|
+
"KB"
|
|
163
|
+
]
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", {
|
|
166
|
+
children: [
|
|
167
|
+
"Count: ",
|
|
168
|
+
state.assets?.length || 0
|
|
169
|
+
]
|
|
170
|
+
})
|
|
171
|
+
]
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ jsxRuntime.jsx(Assets.Assets, {
|
|
174
|
+
state,
|
|
175
|
+
"q:slot": "content"
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
}),
|
|
179
|
+
state.activeTab === "packages" && /* @__PURE__ */ jsxRuntime.jsxs(TabContent.TabContent, {
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ jsxRuntime.jsx(TabTitle.TabTitle, {
|
|
182
|
+
title: "Install an npm package",
|
|
183
|
+
"q:slot": "title"
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ jsxRuntime.jsx(Packages.Packages, {
|
|
186
|
+
"q:slot": "content"
|
|
187
|
+
})
|
|
188
|
+
]
|
|
189
|
+
}),
|
|
190
|
+
state.activeTab === "routes" && /* @__PURE__ */ jsxRuntime.jsxs(TabContent.TabContent, {
|
|
191
|
+
children: [
|
|
192
|
+
/* @__PURE__ */ jsxRuntime.jsx(TabTitle.TabTitle, {
|
|
193
|
+
title: "Application Routes",
|
|
194
|
+
"q:slot": "title"
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ jsxRuntime.jsx(Routes.Routes, {
|
|
197
|
+
state,
|
|
198
|
+
"q:slot": "content"
|
|
199
|
+
})
|
|
200
|
+
]
|
|
201
|
+
})
|
|
202
|
+
]
|
|
203
|
+
})
|
|
204
|
+
]
|
|
205
|
+
})
|
|
206
|
+
]
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
exports.QwikDevtools = QwikDevtools;
|