adonisjs-server-stats 1.16.1 → 1.18.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/README.md +25 -8
- package/dist/core/core/dashboard-api.d.ts +6 -4
- package/dist/core/core/define-config-helpers.d.ts +1 -0
- package/dist/core/core/types-diagnostics.d.ts +2 -0
- package/dist/core/debug/types.d.ts +2 -0
- package/dist/core/index.js +9 -6
- package/dist/core/types.d.ts +55 -4
- package/dist/react/{CacheSection-DkLtukWz.js → CacheSection-B-lSIN8Q.js} +48 -44
- package/dist/react/{CacheTab-DWeXnEBI.js → CacheTab-BN0QgPXz.js} +1 -1
- package/dist/react/{ConfigSection-DaVbFPDg.js → ConfigSection-u_TSfb9f.js} +1 -1
- package/dist/react/{ConfigTab-D4640WJZ.js → ConfigTab-au26s-ON.js} +1 -1
- package/dist/react/{CustomPaneTab-DglmAVMC.js → CustomPaneTab-qvMnh8ss.js} +1 -1
- package/dist/react/{EmailsSection-vYx6ExTb.js → EmailsSection-HfEMeRex.js} +65 -57
- package/dist/react/{EmailsTab-DKDrRmRH.js → EmailsTab-BWwq-CxB.js} +1 -1
- package/dist/react/{EventsSection-CapH5xut.js → EventsSection-CA9b15dJ.js} +1 -1
- package/dist/react/{EventsTab-BNVEySAm.js → EventsTab-CgSdHbKU.js} +1 -1
- package/dist/react/{InternalsContent-C9lIA92C.js → InternalsContent-CI7HvBtH.js} +51 -47
- package/dist/react/{InternalsSection-lOv_UcSV.js → InternalsSection-IEeWXJqP.js} +1 -1
- package/dist/react/{InternalsTab-BygoSorC.js → InternalsTab-CoVLHQbF.js} +1 -1
- package/dist/react/{JobsSection-ZIQsJWid.js → JobsSection-DgsS_VwU.js} +1 -1
- package/dist/react/{JobsTab-DXQzXrDt.js → JobsTab-CzwLSRUC.js} +1 -1
- package/dist/react/{LogEntryRow-BWkHE51-.js → LogEntryRow-VCCzwD1H.js} +1 -1
- package/dist/react/{LogsSection-ConXdBkL.js → LogsSection-BujNn_cO.js} +2 -2
- package/dist/react/{LogsTab-CJM47LPn.js → LogsTab-BtD1h7DM.js} +2 -2
- package/dist/react/{OverviewSection-DOMu2qvl.js → OverviewSection-B28em0gQ.js} +119 -111
- package/dist/react/{QueriesSection-DFsaOSJI.js → QueriesSection-B0tFn_Dc.js} +1 -1
- package/dist/react/{QueriesTab-CY9CG_7L.js → QueriesTab-DJY7aavR.js} +1 -1
- package/dist/react/{RequestsSection-CC-eVHsl.js → RequestsSection-DPmYM7tq.js} +2 -2
- package/dist/react/{RoutesSection-p1DMq41y.js → RoutesSection-Ck-RcFVS.js} +1 -1
- package/dist/react/{RoutesTab-Cnqy8UcK.js → RoutesTab-Ch3PDLzo.js} +1 -1
- package/dist/react/{SplitPaneWrapper-XgkA0QxE.js → SplitPaneWrapper-BZ6VrBr-.js} +1 -1
- package/dist/react/{TimelineTab-1YOERxe5.js → TimelineTab-_byxh2mJ.js} +2 -2
- package/dist/react/components/Dashboard/overview-data-context.d.ts +15 -0
- package/dist/react/components/Dashboard/sections/OverviewSection.d.ts +9 -0
- package/dist/react/{index-DOSlCpZ9.js → index-De7nsWBN.js} +148 -141
- package/dist/react/index.js +1 -1
- package/dist/src/collectors/app_collector.d.ts +11 -0
- package/dist/src/collectors/app_collector.js +11 -0
- package/dist/src/collectors/redis_collector.js +13 -13
- package/dist/src/dashboard/cache_handlers.d.ts +17 -3
- package/dist/src/dashboard/cache_handlers.js +14 -19
- package/dist/src/dashboard/coalesce_cache.d.ts +2 -8
- package/dist/src/dashboard/coalesce_cache.js +25 -0
- package/dist/src/dashboard/dashboard_controller.d.ts +1 -0
- package/dist/src/dashboard/dashboard_controller.js +8 -3
- package/dist/src/dashboard/dashboard_store.d.ts +0 -1
- package/dist/src/dashboard/dashboard_store.js +18 -18
- package/dist/src/dashboard/filter_handlers.js +26 -4
- package/dist/src/dashboard/flush_manager.d.ts +1 -0
- package/dist/src/dashboard/flush_manager.js +6 -1
- package/dist/src/dashboard/format_helpers.d.ts +0 -4
- package/dist/src/dashboard/format_helpers.js +0 -19
- package/dist/src/dashboard/integrations/config_inspector.js +6 -3
- package/dist/src/dashboard/knex_factory.js +8 -0
- package/dist/src/dashboard/migrator.d.ts +7 -2
- package/dist/src/dashboard/migrator.js +140 -6
- package/dist/src/dashboard/migrator_tables.js +8 -0
- package/dist/src/dashboard/paginate_helper.js +21 -11
- package/dist/src/dashboard/sensitive_patterns.d.ts +37 -0
- package/dist/src/dashboard/sensitive_patterns.js +146 -5
- package/dist/src/dashboard/storage_stats.d.ts +5 -0
- package/dist/src/dashboard/storage_stats.js +15 -1
- package/dist/src/dashboard/write_queue.d.ts +20 -21
- package/dist/src/dashboard/write_queue.js +37 -60
- package/dist/src/debug/query_collector.js +6 -1
- package/dist/src/debug/trace_collector.js +26 -13
- package/dist/src/debug/types.d.ts +2 -0
- package/dist/src/define_config.js +2 -0
- package/dist/src/edge/client/dashboard.js +2 -2
- package/dist/src/edge/client/debug-panel-deferred.js +1 -1
- package/dist/src/edge/client-vue/dashboard.js +5 -5
- package/dist/src/edge/client-vue/debug-panel-deferred.js +2 -2
- package/dist/src/edge/views/dashboard.edge +1 -1
- package/dist/src/edge/views/debug-panel.edge +1 -1
- package/dist/src/edge/views/stats-bar.edge +1 -1
- package/dist/src/middleware/request_tracking_middleware.js +7 -2
- package/dist/src/provider/dashboard_init.d.ts +9 -1
- package/dist/src/provider/dashboard_init.js +10 -0
- package/dist/src/provider/dashboard_setup.js +14 -0
- package/dist/src/provider/diagnostics.d.ts +2 -0
- package/dist/src/provider/diagnostics.js +1 -0
- package/dist/src/provider/email_helpers.js +20 -5
- package/dist/src/provider/server_stats_provider.d.ts +10 -0
- package/dist/src/provider/server_stats_provider.js +26 -7
- package/dist/src/provider/shutdown_helpers.js +3 -1
- package/dist/src/provider/toolbar_setup.js +21 -15
- package/dist/src/stubs/config.stub +4 -0
- package/dist/src/types.d.ts +55 -4
- package/dist/vue/CacheSection-z2TQRez9.js +161 -0
- package/dist/vue/{ConfigSection-BiRAiaHj.js → ConfigSection-CFEaig69.js} +1 -1
- package/dist/vue/{EmailsSection-Dl44qyqY.js → EmailsSection-CYohBo62.js} +89 -85
- package/dist/vue/{EventsSection-CWjeitjU.js → EventsSection-B_TuVrGj.js} +1 -1
- package/dist/vue/{InternalsSection-jhTCuK3j.js → InternalsSection-B1P2kNT-.js} +92 -84
- package/dist/vue/{InternalsTab-Z3c82glB.js → InternalsTab-CRI-IFTo.js} +155 -147
- package/dist/vue/{JobsSection-DOBb4LjZ.js → JobsSection-AjkEzyiv.js} +1 -1
- package/dist/vue/{LogsSection-CXx-HOWJ.js → LogsSection-DZD0CCDi.js} +1 -1
- package/dist/vue/{OverviewSection-CyfNQ8uV.js → OverviewSection-BEc4Gktf.js} +1 -1
- package/dist/vue/{QueriesSection-CXBsFp-y.js → QueriesSection-BMImGXTn.js} +1 -1
- package/dist/vue/{RequestsSection-YTIaZGZd.js → RequestsSection-DOI2MUFX.js} +1 -1
- package/dist/vue/{RoutesSection-CDKMey49.js → RoutesSection-C1sxt-AW.js} +1 -1
- package/dist/vue/composables/useDashboardData.d.ts +1 -1
- package/dist/vue/{index-14x39RI_.js → index-BfPAAjL5.js} +95 -95
- package/dist/vue/index.js +1 -1
- package/package.json +12 -3
- package/dist/src/dashboard/explain_query.d.ts +0 -8
- package/dist/src/dashboard/explain_query.js +0 -22
- package/dist/src/provider/boot_initializer.d.ts +0 -28
- package/dist/src/provider/boot_initializer.js +0 -35
- package/dist/vue/CacheSection-CxEBVVkF.js +0 -156
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adonisjs-server-stats",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "Real-time server monitoring for AdonisJS v6 applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adonisjs",
|
|
@@ -11,7 +11,15 @@
|
|
|
11
11
|
"server-stats"
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"author": "",
|
|
14
|
+
"author": "Simon (https://github.com/simulieren)",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/simulieren/adonisjs-server-stats.git"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/simulieren/adonisjs-server-stats#readme",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/simulieren/adonisjs-server-stats/issues"
|
|
22
|
+
},
|
|
15
23
|
"files": [
|
|
16
24
|
"dist",
|
|
17
25
|
"README.md",
|
|
@@ -123,7 +131,8 @@
|
|
|
123
131
|
"format": "oxfmt src/ configure.ts vite.config.*.ts vite-plugins/",
|
|
124
132
|
"format:check": "oxfmt --check src/ configure.ts vite.config.*.ts vite-plugins/",
|
|
125
133
|
"test": "node --import tsx bin/test.ts",
|
|
126
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.react.json && vue-tsc --noEmit -p tsconfig.vue.json"
|
|
134
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.react.json && vue-tsc --noEmit -p tsconfig.vue.json",
|
|
135
|
+
"test:ci": "node scripts/run-tests-split.mjs"
|
|
127
136
|
},
|
|
128
137
|
"devDependencies": {
|
|
129
138
|
"@adonisjs/core": "^6.0.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXPLAIN query execution helper for the DashboardStore.
|
|
3
|
-
*
|
|
4
|
-
* Extracted from DashboardStore to reduce file length.
|
|
5
|
-
*/
|
|
6
|
-
import { CoalesceCache } from './coalesce_cache.js';
|
|
7
|
-
import type { Knex } from 'knex';
|
|
8
|
-
export declare function executeExplain(db: Knex, cache: CoalesceCache, queryId: number, appDb: unknown): Promise<Record<string, unknown> | null>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXPLAIN query execution helper for the DashboardStore.
|
|
3
|
-
*
|
|
4
|
-
* Extracted from DashboardStore to reduce file length.
|
|
5
|
-
*/
|
|
6
|
-
export function executeExplain(db, cache, queryId, appDb) {
|
|
7
|
-
return cache.coalesce('explain:' + queryId, async () => {
|
|
8
|
-
const row = await db('server_stats_queries').where('id', queryId).first();
|
|
9
|
-
if (!row)
|
|
10
|
-
return { error: 'Query not found' };
|
|
11
|
-
const sql = row.sql_text.trim();
|
|
12
|
-
if (!sql.toLowerCase().startsWith('select'))
|
|
13
|
-
return { error: 'EXPLAIN is only supported for SELECT queries' };
|
|
14
|
-
try {
|
|
15
|
-
const r = await appDb.rawQuery(`EXPLAIN ${sql}`);
|
|
16
|
-
return { plan: r.rows || r };
|
|
17
|
-
}
|
|
18
|
-
catch (err) {
|
|
19
|
-
return { error: err.message || 'EXPLAIN failed' };
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Boot initialization helpers for ServerStatsProvider.
|
|
3
|
-
* Pure functions for endpoint derivation, dashboard path computation, and route path collection.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Derive stats and debug endpoint paths from config.
|
|
7
|
-
*/
|
|
8
|
-
export declare function deriveEndpointPaths(endpoint: string | false | undefined, devToolbar?: {
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
debugEndpoint?: string;
|
|
11
|
-
dashboard?: boolean;
|
|
12
|
-
dashboardPath?: string;
|
|
13
|
-
}): {
|
|
14
|
-
statsEndpoint: string | false;
|
|
15
|
-
debugEndpoint: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Compute the dashboard path from toolbar config and dependency availability.
|
|
19
|
-
*/
|
|
20
|
-
export declare function computeDashboardPath(devToolbar?: {
|
|
21
|
-
enabled?: boolean;
|
|
22
|
-
dashboard?: boolean;
|
|
23
|
-
dashboardPath?: string;
|
|
24
|
-
}, depsAvailable?: boolean): string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Collect registered route paths for logging.
|
|
27
|
-
*/
|
|
28
|
-
export declare function collectRegisteredPaths(statsEndpoint: string | false, debugEndpoint?: string, dashboardPath?: string): string[];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Boot initialization helpers for ServerStatsProvider.
|
|
3
|
-
* Pure functions for endpoint derivation, dashboard path computation, and route path collection.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Derive stats and debug endpoint paths from config.
|
|
7
|
-
*/
|
|
8
|
-
export function deriveEndpointPaths(endpoint, devToolbar) {
|
|
9
|
-
const statsEndpoint = typeof endpoint === 'string' ? endpoint : false;
|
|
10
|
-
const debugEndpoint = devToolbar?.enabled
|
|
11
|
-
? (devToolbar.debugEndpoint ?? '/admin/api/debug')
|
|
12
|
-
: undefined;
|
|
13
|
-
return { statsEndpoint, debugEndpoint };
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Compute the dashboard path from toolbar config and dependency availability.
|
|
17
|
-
*/
|
|
18
|
-
export function computeDashboardPath(devToolbar, depsAvailable) {
|
|
19
|
-
if (!devToolbar?.enabled || !devToolbar.dashboard || !depsAvailable)
|
|
20
|
-
return undefined;
|
|
21
|
-
return devToolbar.dashboardPath ?? '/__stats';
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Collect registered route paths for logging.
|
|
25
|
-
*/
|
|
26
|
-
export function collectRegisteredPaths(statsEndpoint, debugEndpoint, dashboardPath) {
|
|
27
|
-
const paths = [];
|
|
28
|
-
if (typeof statsEndpoint === 'string')
|
|
29
|
-
paths.push(statsEndpoint);
|
|
30
|
-
if (debugEndpoint)
|
|
31
|
-
paths.push(debugEndpoint + '/*');
|
|
32
|
-
if (dashboardPath)
|
|
33
|
-
paths.push(dashboardPath + '/*');
|
|
34
|
-
return paths;
|
|
35
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, inject as v, ref as h, onMounted as x, computed as g, openBlock as t, createElementBlock as n, createElementVNode as e, toDisplayString as c, createCommentVNode as w, createVNode as A, unref as y, Fragment as F, renderList as N, withModifiers as B, createBlock as M } from "vue";
|
|
2
|
-
import { u as U } from "./index-14x39RI_.js";
|
|
3
|
-
import { u as H } from "./useResizableTable-BoivAevK.js";
|
|
4
|
-
import { DashboardApi as I, formatCacheSize as j, formatTtl as q } from "adonisjs-server-stats/core";
|
|
5
|
-
import { u as P } from "./useApiClient-BQQ9CF-q.js";
|
|
6
|
-
import { _ as G } from "./JsonViewer.vue_vue_type_script_setup_true_lang-Bid05zpm.js";
|
|
7
|
-
import { _ as J } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
|
|
8
|
-
const O = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "ss-dash-cache-stats"
|
|
11
|
-
}, Q = { class: "ss-dash-cache-stat" }, W = { class: "ss-dash-cache-stat-value" }, X = { class: "ss-dash-cache-stat" }, Y = { class: "ss-dash-cache-stat-value" }, Z = { class: "ss-dash-cache-stat" }, ee = { class: "ss-dash-cache-stat-value" }, se = { class: "ss-dash-cache-stat" }, ae = { class: "ss-dash-cache-stat-value" }, te = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "ss-dash-empty"
|
|
14
|
-
}, le = {
|
|
15
|
-
key: 2,
|
|
16
|
-
class: "ss-dash-empty"
|
|
17
|
-
}, ne = {
|
|
18
|
-
key: 3,
|
|
19
|
-
class: "ss-dash-table-wrap"
|
|
20
|
-
}, oe = ["onClick"], ce = ["title"], ue = { style: { color: "var(--ss-muted)" } }, ie = ["onClick"], de = {
|
|
21
|
-
key: 1,
|
|
22
|
-
class: "ss-dash-empty"
|
|
23
|
-
}, he = {
|
|
24
|
-
key: 4,
|
|
25
|
-
class: "ss-dash-cache-detail"
|
|
26
|
-
}, re = {
|
|
27
|
-
key: 0,
|
|
28
|
-
class: "ss-dash-empty"
|
|
29
|
-
}, ve = {
|
|
30
|
-
key: 1,
|
|
31
|
-
class: "ss-dash-empty",
|
|
32
|
-
style: { color: "var(--ss-red-fg)" }
|
|
33
|
-
}, ge = /* @__PURE__ */ L({
|
|
34
|
-
__name: "CacheSection",
|
|
35
|
-
setup(ye) {
|
|
36
|
-
const z = v("ss-refresh-key", h(0)), m = v("ss-dashboard-endpoint", "/__stats/api"), f = v("ss-auth-token", void 0), b = v("ss-base-url", ""), { data: k, loading: D, setSearch: K, mutate: V } = U(() => "cache", {
|
|
37
|
-
baseUrl: b,
|
|
38
|
-
dashboardEndpoint: m,
|
|
39
|
-
authToken: f,
|
|
40
|
-
refreshKey: z
|
|
41
|
-
});
|
|
42
|
-
let p = null;
|
|
43
|
-
x(() => {
|
|
44
|
-
const a = P(b || "", f);
|
|
45
|
-
p = new I(a(), m || "/__stats/api");
|
|
46
|
-
});
|
|
47
|
-
const C = h(""), u = h(null), d = h(null), _ = h(!1), i = h(null), o = g(() => k.value), r = g(() => o.value?.keys || o.value?.data || []);
|
|
48
|
-
function $(a) {
|
|
49
|
-
C.value = a, K(a);
|
|
50
|
-
}
|
|
51
|
-
async function R(a) {
|
|
52
|
-
if (confirm(`Delete cache key "${a}"?`))
|
|
53
|
-
try {
|
|
54
|
-
await V(`cache/${encodeURIComponent(a)}`, "delete"), u.value === a && (u.value = null, d.value = null, i.value = null);
|
|
55
|
-
} catch {
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const { tableRef: S } = H(() => r.value);
|
|
59
|
-
async function T(a) {
|
|
60
|
-
if (u.value === a) {
|
|
61
|
-
u.value = null, d.value = null, i.value = null;
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
u.value = a, d.value = null, i.value = null, _.value = !0;
|
|
65
|
-
try {
|
|
66
|
-
if (!p) throw new Error("Cache API not initialized");
|
|
67
|
-
const s = await p.fetchCacheKey(a);
|
|
68
|
-
d.value = s.value !== void 0 ? s.value : s.data !== void 0 ? s.data : s, i.value = null;
|
|
69
|
-
} catch {
|
|
70
|
-
d.value = null, i.value = "Failed to fetch key value";
|
|
71
|
-
} finally {
|
|
72
|
-
_.value = !1;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return (a, s) => (t(), n("div", null, [
|
|
76
|
-
o.value?.available && o.value?.stats ? (t(), n("div", O, [
|
|
77
|
-
e("div", Q, [
|
|
78
|
-
s[0] || (s[0] = e("span", { class: "ss-dash-cache-stat-label" }, "Hit Rate:", -1)),
|
|
79
|
-
e("span", W, c((o.value.stats.hitRate ?? 0).toFixed(1)) + "%", 1)
|
|
80
|
-
]),
|
|
81
|
-
e("div", X, [
|
|
82
|
-
s[1] || (s[1] = e("span", { class: "ss-dash-cache-stat-label" }, "Hits:", -1)),
|
|
83
|
-
e("span", Y, c(o.value.stats.hits ?? 0), 1)
|
|
84
|
-
]),
|
|
85
|
-
e("div", Z, [
|
|
86
|
-
s[2] || (s[2] = e("span", { class: "ss-dash-cache-stat-label" }, "Misses:", -1)),
|
|
87
|
-
e("span", ee, c(o.value.stats.misses ?? 0), 1)
|
|
88
|
-
]),
|
|
89
|
-
e("div", se, [
|
|
90
|
-
s[3] || (s[3] = e("span", { class: "ss-dash-cache-stat-label" }, "Keys:", -1)),
|
|
91
|
-
e("span", ae, c(o.value.stats.totalKeys || o.value.stats.keyCount || r.value.length || 0), 1)
|
|
92
|
-
])
|
|
93
|
-
])) : w("", !0),
|
|
94
|
-
A(J, {
|
|
95
|
-
"model-value": C.value,
|
|
96
|
-
placeholder: "Filter cache keys...",
|
|
97
|
-
summary: `${r.value.length} keys`,
|
|
98
|
-
"onUpdate:modelValue": $
|
|
99
|
-
}, null, 8, ["model-value", "summary"]),
|
|
100
|
-
y(D) && !y(k) ? (t(), n("div", te, "Loading cache...")) : !o.value || !o.value.available ? (t(), n("div", le, " Cache inspector not available ")) : (t(), n("div", ne, [
|
|
101
|
-
r.value.length > 0 ? (t(), n("table", {
|
|
102
|
-
key: 0,
|
|
103
|
-
ref_key: "tableRef",
|
|
104
|
-
ref: S,
|
|
105
|
-
class: "ss-dash-table"
|
|
106
|
-
}, [
|
|
107
|
-
s[4] || (s[4] = e("thead", null, [
|
|
108
|
-
e("tr", null, [
|
|
109
|
-
e("th", null, "Key"),
|
|
110
|
-
e("th", null, "Type"),
|
|
111
|
-
e("th", null, "Size"),
|
|
112
|
-
e("th", null, "TTL"),
|
|
113
|
-
e("th")
|
|
114
|
-
])
|
|
115
|
-
], -1)),
|
|
116
|
-
e("tbody", null, [
|
|
117
|
-
(t(!0), n(F, null, N(r.value, (l) => (t(), n("tr", {
|
|
118
|
-
key: l.key,
|
|
119
|
-
class: "ss-dash-clickable",
|
|
120
|
-
onClick: (E) => T(l.key)
|
|
121
|
-
}, [
|
|
122
|
-
e("td", null, [
|
|
123
|
-
e("span", {
|
|
124
|
-
title: l.key,
|
|
125
|
-
style: { color: "var(--ss-sql-color)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", display: "block" }
|
|
126
|
-
}, c(l.key), 9, ce)
|
|
127
|
-
]),
|
|
128
|
-
e("td", null, [
|
|
129
|
-
e("span", ue, c(l.type), 1)
|
|
130
|
-
]),
|
|
131
|
-
e("td", null, c(l.size !== null && l.size !== void 0 && l.size > 0 ? y(j)(l.size) : "-"), 1),
|
|
132
|
-
e("td", null, c(l.ttl > 0 ? y(q)(l.ttl) : "-"), 1),
|
|
133
|
-
e("td", null, [
|
|
134
|
-
e("button", {
|
|
135
|
-
type: "button",
|
|
136
|
-
class: "ss-dash-retry-btn",
|
|
137
|
-
onClick: B((E) => R(l.key), ["stop"])
|
|
138
|
-
}, " Delete ", 8, ie)
|
|
139
|
-
])
|
|
140
|
-
], 8, oe))), 128))
|
|
141
|
-
])
|
|
142
|
-
], 512)) : (t(), n("div", de, "No cache keys found"))
|
|
143
|
-
])),
|
|
144
|
-
u.value ? (t(), n("div", he, [
|
|
145
|
-
e("h4", null, "Key: " + c(u.value), 1),
|
|
146
|
-
_.value ? (t(), n("div", re, "Loading value...")) : i.value ? (t(), n("div", ve, c(i.value), 1)) : (t(), M(G, {
|
|
147
|
-
key: 2,
|
|
148
|
-
value: d.value
|
|
149
|
-
}, null, 8, ["value"]))
|
|
150
|
-
])) : w("", !0)
|
|
151
|
-
]));
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
export {
|
|
155
|
-
ge as default
|
|
156
|
-
};
|