nestlens 0.7.0 → 0.8.1
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 +6 -4
- package/dist/api/api.controller.d.ts +32 -21
- package/dist/api/api.controller.d.ts.map +1 -1
- package/dist/api/api.controller.js +74 -42
- package/dist/api/api.controller.js.map +1 -1
- package/dist/api/api.guard.d.ts.map +1 -1
- package/dist/api/api.guard.js +2 -3
- package/dist/api/api.guard.js.map +1 -1
- package/dist/api/dashboard.controller.d.ts +48 -48
- package/dist/api/dashboard.controller.d.ts.map +1 -1
- package/dist/api/dashboard.controller.js +117 -388
- package/dist/api/dashboard.controller.js.map +1 -1
- package/dist/api/interceptors/api-response.interceptor.d.ts +36 -5
- package/dist/api/interceptors/api-response.interceptor.d.ts.map +1 -1
- package/dist/api/interceptors/api-response.interceptor.js +91 -35
- package/dist/api/interceptors/api-response.interceptor.js.map +1 -1
- package/dist/api/route-path.d.ts +17 -0
- package/dist/api/route-path.d.ts.map +1 -1
- package/dist/api/route-path.js +39 -1
- package/dist/api/route-path.js.map +1 -1
- package/dist/api/tag.controller.d.ts +14 -8
- package/dist/api/tag.controller.d.ts.map +1 -1
- package/dist/api/tag.controller.js +30 -16
- package/dist/api/tag.controller.js.map +1 -1
- package/dist/core/storage/memory.storage.d.ts.map +1 -1
- package/dist/core/storage/memory.storage.js +8 -2
- package/dist/core/storage/memory.storage.js.map +1 -1
- package/dist/core/storage/sqlite.storage.d.ts.map +1 -1
- package/dist/core/storage/sqlite.storage.js +2 -1
- package/dist/core/storage/sqlite.storage.js.map +1 -1
- package/dist/core/storage/storage.factory.d.ts.map +1 -1
- package/dist/core/storage/storage.factory.js +1 -9
- package/dist/core/storage/storage.factory.js.map +1 -1
- package/dist/dashboard/public/assets/{BatchesPage-CxMNNvPB.js → BatchesPage-4fDjEPVU.js} +1 -1
- package/dist/dashboard/public/assets/{CachePage-bCSHrxF4.js → CachePage-DyXA_9O4.js} +1 -1
- package/dist/dashboard/public/assets/{ClickableBadge-tED6n1-E.js → ClickableBadge-CGwJ0t-E.js} +1 -1
- package/dist/dashboard/public/assets/{CommandsPage-B_DVjdZf.js → CommandsPage-B4_JrOsE.js} +1 -1
- package/dist/dashboard/public/assets/{DashboardPage-Ds1BXF9B.js → DashboardPage-CfXmC0Fk.js} +1 -1
- package/dist/dashboard/public/assets/{DumpsPage-D5lFmw7H.js → DumpsPage-yw3vN18d.js} +1 -1
- package/dist/dashboard/public/assets/{EntryDetailPage-CLMls5iQ.js → EntryDetailPage-Byw7OXtX.js} +1 -1
- package/dist/dashboard/public/assets/{EntrySearchInput-CY7PniJH.js → EntrySearchInput-DO37pmR5.js} +1 -1
- package/dist/dashboard/public/assets/{EventsPage-n4Xydb1Y.js → EventsPage-DqoOQX6I.js} +1 -1
- package/dist/dashboard/public/assets/{ExceptionsPage-BybuWw1Z.js → ExceptionsPage-Dk2tkt6w.js} +1 -1
- package/dist/dashboard/public/assets/{GatesPage-B31blvt0.js → GatesPage-BroOilML.js} +1 -1
- package/dist/dashboard/public/assets/{GraphQLPage-BWtB-PGE.js → GraphQLPage-IwnY4Iu2.js} +1 -1
- package/dist/dashboard/public/assets/{HttpClientPage-CwuPZe_t.js → HttpClientPage-CoJ54lqA.js} +1 -1
- package/dist/dashboard/public/assets/{JobsPage-CzgmVjvA.js → JobsPage-C3I8ai4A.js} +1 -1
- package/dist/dashboard/public/assets/{LogsPage-DfqShIZ0.js → LogsPage-DabOQEnH.js} +1 -1
- package/dist/dashboard/public/assets/{MailPage-BqqF1l7c.js → MailPage-DJ6SQneU.js} +1 -1
- package/dist/dashboard/public/assets/{ModelsPage-Dw6ov4fO.js → ModelsPage-C0IDqtRC.js} +1 -1
- package/dist/dashboard/public/assets/{NotificationsPage-DJpp_0i0.js → NotificationsPage-P6U0kg1s.js} +1 -1
- package/dist/dashboard/public/assets/{PageHeader-DiA3Krqw.js → PageHeader-BrOFwCex.js} +1 -1
- package/dist/dashboard/public/assets/{QueriesPage-Bi54SgjS.js → QueriesPage-BWx1miXV.js} +1 -1
- package/dist/dashboard/public/assets/{RedisPage-DBfjRmyi.js → RedisPage-BeKAFkeu.js} +1 -1
- package/dist/dashboard/public/assets/{RequestsPage-CoFD7pb1.js → RequestsPage-DrEnRkFt.js} +1 -1
- package/dist/dashboard/public/assets/{SchedulePage-BIQ5qqiE.js → SchedulePage-DDdPPsmE.js} +1 -1
- package/dist/dashboard/public/assets/{ViewsPage-BipJ5H5b.js → ViewsPage-jxyW8Vuu.js} +1 -1
- package/dist/dashboard/public/assets/{calendar-CMo_t_Lj.js → calendar-m4kq7fjS.js} +1 -1
- package/dist/dashboard/public/assets/{circle-check-big-DTlljTn_.js → circle-check-big-C_s8v666.js} +1 -1
- package/dist/dashboard/public/assets/{eye-Dd78IRyj.js → eye-B7ZboUQP.js} +1 -1
- package/dist/dashboard/public/assets/{index-Bu05f2IL.js → index-Cni5fXTc.js} +2 -2
- package/dist/dashboard/public/assets/{search-Dv95NMlq.js → search-0BGt6GNw.js} +1 -1
- package/dist/dashboard/public/assets/{types-B4KH4dQ2.js → types-CR_0m82s.js} +1 -1
- package/dist/dashboard/public/assets/{zap-CN43tPyF.js → zap-BKSF-DM3.js} +1 -1
- package/dist/dashboard/public/index.html +1 -1
- package/dist/nestlens.config.d.ts +14 -11
- package/dist/nestlens.config.d.ts.map +1 -1
- package/dist/nestlens.config.js +1 -5
- package/dist/nestlens.config.js.map +1 -1
- package/dist/watchers/batch.watcher.d.ts +1 -3
- package/dist/watchers/batch.watcher.d.ts.map +1 -1
- package/dist/watchers/batch.watcher.js +9 -3
- package/dist/watchers/batch.watcher.js.map +1 -1
- package/dist/watchers/cache.watcher.d.ts +12 -2
- package/dist/watchers/cache.watcher.d.ts.map +1 -1
- package/dist/watchers/cache.watcher.js.map +1 -1
- package/dist/watchers/command.watcher.d.ts +5 -2
- package/dist/watchers/command.watcher.d.ts.map +1 -1
- package/dist/watchers/command.watcher.js.map +1 -1
- package/dist/watchers/dump.watcher.d.ts +1 -3
- package/dist/watchers/dump.watcher.d.ts.map +1 -1
- package/dist/watchers/dump.watcher.js +9 -3
- package/dist/watchers/dump.watcher.js.map +1 -1
- package/dist/watchers/event.watcher.d.ts +1 -3
- package/dist/watchers/event.watcher.d.ts.map +1 -1
- package/dist/watchers/event.watcher.js +12 -5
- package/dist/watchers/event.watcher.js.map +1 -1
- package/dist/watchers/gate.watcher.d.ts +1 -3
- package/dist/watchers/gate.watcher.d.ts.map +1 -1
- package/dist/watchers/gate.watcher.js +9 -3
- package/dist/watchers/gate.watcher.js.map +1 -1
- package/dist/watchers/http-client.watcher.d.ts +2 -4
- package/dist/watchers/http-client.watcher.d.ts.map +1 -1
- package/dist/watchers/http-client.watcher.js +19 -21
- package/dist/watchers/http-client.watcher.js.map +1 -1
- package/dist/watchers/job.watcher.d.ts +3 -6
- package/dist/watchers/job.watcher.d.ts.map +1 -1
- package/dist/watchers/job.watcher.js +25 -15
- package/dist/watchers/job.watcher.js.map +1 -1
- package/dist/watchers/mail.watcher.d.ts +2 -4
- package/dist/watchers/mail.watcher.d.ts.map +1 -1
- package/dist/watchers/mail.watcher.js +9 -7
- package/dist/watchers/mail.watcher.js.map +1 -1
- package/dist/watchers/model.watcher.d.ts +2 -4
- package/dist/watchers/model.watcher.d.ts.map +1 -1
- package/dist/watchers/model.watcher.js +28 -24
- package/dist/watchers/model.watcher.js.map +1 -1
- package/dist/watchers/notification.watcher.d.ts +1 -3
- package/dist/watchers/notification.watcher.d.ts.map +1 -1
- package/dist/watchers/notification.watcher.js +9 -3
- package/dist/watchers/notification.watcher.js.map +1 -1
- package/dist/watchers/redis.watcher.d.ts +1 -3
- package/dist/watchers/redis.watcher.d.ts.map +1 -1
- package/dist/watchers/redis.watcher.js +9 -3
- package/dist/watchers/redis.watcher.js.map +1 -1
- package/dist/watchers/schedule.watcher.d.ts +13 -0
- package/dist/watchers/schedule.watcher.d.ts.map +1 -1
- package/dist/watchers/schedule.watcher.js +64 -39
- package/dist/watchers/schedule.watcher.js.map +1 -1
- package/dist/watchers/view.watcher.d.ts +10 -2
- package/dist/watchers/view.watcher.d.ts.map +1 -1
- package/dist/watchers/view.watcher.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,19 @@ const core_1 = require("@nestjs/core");
|
|
|
20
20
|
const nestlens_config_1 = require("../nestlens.config");
|
|
21
21
|
const api_guard_1 = require("./api.guard");
|
|
22
22
|
const route_path_1 = require("./route-path");
|
|
23
|
+
/** Set by reverse proxies that serve the application under a stripped path. */
|
|
24
|
+
const FORWARDED_PREFIX_HEADER = 'x-forwarded-prefix';
|
|
25
|
+
/**
|
|
26
|
+
* Cache policies for the bundled dashboard.
|
|
27
|
+
*
|
|
28
|
+
* Vite fingerprints everything under `assets/` (`index-Bu05f2IL.js`), so a
|
|
29
|
+
* changed file always arrives under a new URL and the old one can be kept
|
|
30
|
+
* forever. Everything else — `index.html` and the root-level icons — keeps its
|
|
31
|
+
* name across releases, and `index.html` additionally carries a mount point
|
|
32
|
+
* injected per request, so it must be revalidated every time.
|
|
33
|
+
*/
|
|
34
|
+
const IMMUTABLE = 'public, max-age=31536000, immutable';
|
|
35
|
+
const NO_CACHE = 'no-cache';
|
|
23
36
|
const escapeHtmlAttribute = (value) => value.replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>');
|
|
24
37
|
/**
|
|
25
38
|
* Content-Type lookup for the static dashboard assets.
|
|
@@ -49,143 +62,36 @@ const MIME_TYPES = {
|
|
|
49
62
|
// The prefix here is only the default; `NestLensModule.forRoot()` rewrites it
|
|
50
63
|
// from `config.path` before Nest resolves routes.
|
|
51
64
|
let DashboardController = class DashboardController {
|
|
52
|
-
constructor(config, applicationConfig) {
|
|
65
|
+
constructor(config, applicationConfig, httpAdapterHost) {
|
|
53
66
|
this.config = config;
|
|
54
67
|
this.applicationConfig = applicationConfig;
|
|
68
|
+
this.httpAdapterHost = httpAdapterHost;
|
|
69
|
+
this.fileCache = new Map();
|
|
55
70
|
// Dashboard static files are bundled in dist/dashboard/public
|
|
56
71
|
this.dashboardPath = (0, path_1.join)(__dirname, '..', 'dashboard', 'public');
|
|
57
72
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// a plain handler makes it work identically on Express and Fastify.
|
|
61
|
-
serveDashboard() {
|
|
62
|
-
return this.serveIndexHtml();
|
|
63
|
-
}
|
|
64
|
-
serveAssets(filename) {
|
|
65
|
-
return this.streamFile((0, path_1.join)('assets', filename), 'Asset not found');
|
|
66
|
-
}
|
|
67
|
-
// Serve static files like favicon
|
|
68
|
-
serveStaticFile(filename) {
|
|
69
|
-
return this.streamFile(`${filename}.svg`, 'File not found');
|
|
70
|
-
}
|
|
71
|
-
// SPA routes - serve index.html for client-side routing
|
|
72
|
-
serveRequestsRoute() {
|
|
73
|
-
return this.serveIndexHtml();
|
|
74
|
-
}
|
|
75
|
-
serveQueriesRoute() {
|
|
76
|
-
return this.serveIndexHtml();
|
|
77
|
-
}
|
|
78
|
-
serveExceptionsRoute() {
|
|
79
|
-
return this.serveIndexHtml();
|
|
80
|
-
}
|
|
81
|
-
serveLogsRoute() {
|
|
82
|
-
return this.serveIndexHtml();
|
|
83
|
-
}
|
|
84
|
-
serveEntryDetailRoute() {
|
|
85
|
-
return this.serveIndexHtml();
|
|
86
|
-
}
|
|
87
|
-
serveEventsRoute() {
|
|
88
|
-
return this.serveIndexHtml();
|
|
89
|
-
}
|
|
90
|
-
serveEventDetailRoute() {
|
|
91
|
-
return this.serveIndexHtml();
|
|
92
|
-
}
|
|
93
|
-
serveJobsRoute() {
|
|
94
|
-
return this.serveIndexHtml();
|
|
95
|
-
}
|
|
96
|
-
serveJobDetailRoute() {
|
|
97
|
-
return this.serveIndexHtml();
|
|
98
|
-
}
|
|
99
|
-
serveCacheRoute() {
|
|
100
|
-
return this.serveIndexHtml();
|
|
101
|
-
}
|
|
102
|
-
serveCacheDetailRoute() {
|
|
103
|
-
return this.serveIndexHtml();
|
|
104
|
-
}
|
|
105
|
-
serveMailRoute() {
|
|
106
|
-
return this.serveIndexHtml();
|
|
107
|
-
}
|
|
108
|
-
serveMailDetailRoute() {
|
|
109
|
-
return this.serveIndexHtml();
|
|
110
|
-
}
|
|
111
|
-
serveScheduleRoute() {
|
|
112
|
-
return this.serveIndexHtml();
|
|
113
|
-
}
|
|
114
|
-
serveScheduleDetailRoute() {
|
|
115
|
-
return this.serveIndexHtml();
|
|
116
|
-
}
|
|
117
|
-
serveHttpClientRoute() {
|
|
118
|
-
return this.serveIndexHtml();
|
|
119
|
-
}
|
|
120
|
-
serveHttpClientDetailRoute() {
|
|
121
|
-
return this.serveIndexHtml();
|
|
122
|
-
}
|
|
123
|
-
serveRequestDetailRoute() {
|
|
124
|
-
return this.serveIndexHtml();
|
|
125
|
-
}
|
|
126
|
-
serveQueryDetailRoute() {
|
|
127
|
-
return this.serveIndexHtml();
|
|
128
|
-
}
|
|
129
|
-
serveExceptionDetailRoute() {
|
|
130
|
-
return this.serveIndexHtml();
|
|
131
|
-
}
|
|
132
|
-
serveLogDetailRoute() {
|
|
133
|
-
return this.serveIndexHtml();
|
|
134
|
-
}
|
|
135
|
-
// New Advanced Routes
|
|
136
|
-
serveRedisRoute() {
|
|
137
|
-
return this.serveIndexHtml();
|
|
138
|
-
}
|
|
139
|
-
serveRedisDetailRoute() {
|
|
140
|
-
return this.serveIndexHtml();
|
|
141
|
-
}
|
|
142
|
-
serveModelsRoute() {
|
|
143
|
-
return this.serveIndexHtml();
|
|
144
|
-
}
|
|
145
|
-
serveModelDetailRoute() {
|
|
146
|
-
return this.serveIndexHtml();
|
|
147
|
-
}
|
|
148
|
-
serveNotificationsRoute() {
|
|
149
|
-
return this.serveIndexHtml();
|
|
150
|
-
}
|
|
151
|
-
serveNotificationDetailRoute() {
|
|
152
|
-
return this.serveIndexHtml();
|
|
153
|
-
}
|
|
154
|
-
serveViewsRoute() {
|
|
155
|
-
return this.serveIndexHtml();
|
|
156
|
-
}
|
|
157
|
-
serveViewDetailRoute() {
|
|
158
|
-
return this.serveIndexHtml();
|
|
159
|
-
}
|
|
160
|
-
serveCommandsRoute() {
|
|
161
|
-
return this.serveIndexHtml();
|
|
162
|
-
}
|
|
163
|
-
serveCommandDetailRoute() {
|
|
164
|
-
return this.serveIndexHtml();
|
|
73
|
+
serveAssets(filename, res) {
|
|
74
|
+
this.sendFile(res, (0, path_1.join)('assets', filename), 'Asset not found', IMMUTABLE);
|
|
165
75
|
}
|
|
166
|
-
|
|
167
|
-
|
|
76
|
+
// Favicon and other root-level static files.
|
|
77
|
+
serveStaticFile(filename, res) {
|
|
78
|
+
this.sendFile(res, `${filename}.svg`, 'File not found', NO_CACHE);
|
|
168
79
|
}
|
|
169
|
-
|
|
170
|
-
|
|
80
|
+
serveDashboard(res, forwarded) {
|
|
81
|
+
this.sendIndexHtml(res, forwarded);
|
|
171
82
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
serveGraphQLRoute() {
|
|
185
|
-
return this.serveIndexHtml();
|
|
186
|
-
}
|
|
187
|
-
serveGraphQLDetailRoute() {
|
|
188
|
-
return this.serveIndexHtml();
|
|
83
|
+
/**
|
|
84
|
+
* Every other path under the mount point belongs to the SPA's client-side
|
|
85
|
+
* router, so it gets index.html and React decides what to render — including
|
|
86
|
+
* its own not-found page. Declared last so the asset and SVG routes above win.
|
|
87
|
+
*
|
|
88
|
+
* The pattern is a bare `*` because that is the only form both routers accept:
|
|
89
|
+
* Fastify rejects anything after the star ("Wildcard must be the last
|
|
90
|
+
* character in the route"), which rules out Express/path-to-regexp v8's
|
|
91
|
+
* named `*path`.
|
|
92
|
+
*/
|
|
93
|
+
serveSpaRoute(res, forwarded) {
|
|
94
|
+
this.sendIndexHtml(res, forwarded);
|
|
189
95
|
}
|
|
190
96
|
/**
|
|
191
97
|
* The dashboard bundle is built once but can be mounted anywhere, so the
|
|
@@ -193,12 +99,53 @@ let DashboardController = class DashboardController {
|
|
|
193
99
|
* the bundle's relative asset URLs, and `window.__NESTLENS_BASE__` tells the
|
|
194
100
|
* SPA where to put its router basename and API calls.
|
|
195
101
|
*/
|
|
196
|
-
|
|
102
|
+
sendIndexHtml(res, forwardedPrefix) {
|
|
197
103
|
const absolutePath = this.resolveDashboardFile('index.html', 'Dashboard not found');
|
|
198
|
-
const html = (
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
104
|
+
const html = this.injectBasePath(this.readCached(absolutePath).toString('utf8'), forwardedPrefix);
|
|
105
|
+
this.send(res, html, MIME_TYPES['.html'], NO_CACHE);
|
|
106
|
+
}
|
|
107
|
+
sendFile(res, relativePath, notFoundMessage, cacheControl) {
|
|
108
|
+
const absolutePath = this.resolveDashboardFile(relativePath, notFoundMessage);
|
|
109
|
+
this.send(res, this.readCached(absolutePath), this.contentTypeFor(absolutePath), cacheControl);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Reads a bundled file once and keeps it in memory.
|
|
113
|
+
*
|
|
114
|
+
* Writing the response ourselves means handing the adapter a complete body
|
|
115
|
+
* rather than a stream, so without this the whole ~1 MB bundle would be read
|
|
116
|
+
* synchronously on every dashboard load — 34 files, blocking the event loop
|
|
117
|
+
* of the application NestLens is supposed to be observing.
|
|
118
|
+
*
|
|
119
|
+
* The bundle ships inside the package and cannot change while the process is
|
|
120
|
+
* running, so caching it is safe. Existence is still checked per request, so
|
|
121
|
+
* a deleted file still 404s.
|
|
122
|
+
*/
|
|
123
|
+
readCached(absolutePath) {
|
|
124
|
+
const cached = this.fileCache.get(absolutePath);
|
|
125
|
+
if (cached)
|
|
126
|
+
return cached;
|
|
127
|
+
const contents = (0, fs_1.readFileSync)(absolutePath);
|
|
128
|
+
this.fileCache.set(absolutePath, contents);
|
|
129
|
+
return contents;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Writes the response directly instead of returning it.
|
|
133
|
+
*
|
|
134
|
+
* A value returned from a handler passes through the host application's
|
|
135
|
+
* global interceptors, and a typical "wrap every response" interceptor turns
|
|
136
|
+
* this HTML into JSON — the dashboard then loads nothing. Taking over the
|
|
137
|
+
* response keeps NestLens's own surface out of that pipeline.
|
|
138
|
+
*/
|
|
139
|
+
send(res, body, contentType, cacheControl) {
|
|
140
|
+
const adapter = this.httpAdapterHost.httpAdapter;
|
|
141
|
+
const payload = Buffer.isBuffer(body) ? body : Buffer.from(body, 'utf8');
|
|
142
|
+
adapter.setHeader(res, 'Content-Type', contentType);
|
|
143
|
+
adapter.setHeader(res, 'Cache-Control', cacheControl);
|
|
144
|
+
// A raw Buffer cannot go through `reply()`: Express treats any object as
|
|
145
|
+
// JSON and serialises it to `{"type":"Buffer","data":[...]}`, which turns
|
|
146
|
+
// every script and font into garbage. StreamableFile is the shape both
|
|
147
|
+
// adapters special-case for binary payloads.
|
|
148
|
+
adapter.reply(res, new common_1.StreamableFile(payload, { length: payload.length }), 200);
|
|
202
149
|
}
|
|
203
150
|
/**
|
|
204
151
|
* Where the dashboard actually lives, from the browser's point of view.
|
|
@@ -207,20 +154,30 @@ let DashboardController = class DashboardController {
|
|
|
207
154
|
* NestLens route to `/api/nestlens` without the module knowing, and the
|
|
208
155
|
* injected `<base href>` would then point the bundle at `/nestlens/assets/*` —
|
|
209
156
|
* a 404 for every asset, leaving a blank page while the API kept working.
|
|
157
|
+
*
|
|
158
|
+
* A reverse proxy that strips a path segment adds a second discrepancy, and it
|
|
159
|
+
* sits outside the application entirely: `X-Forwarded-Prefix` is the only
|
|
160
|
+
* signal that the browser is really at `/tools/nestlens`. It goes in front of
|
|
161
|
+
* the global prefix, because that is the order the browser sees — the proxy's
|
|
162
|
+
* segment, then everything the application itself adds.
|
|
210
163
|
*/
|
|
211
|
-
mountPoint() {
|
|
164
|
+
mountPoint(forwardedPrefix) {
|
|
165
|
+
const proxyPrefix = this.config.trustProxy ? (0, route_path_1.toForwardedPrefix)(forwardedPrefix) : '';
|
|
212
166
|
const dashboardPath = (0, route_path_1.toBaseHref)(this.config.path);
|
|
213
167
|
const globalPrefix = this.applicationConfig.getGlobalPrefix().replace(/^\/|\/$/g, '');
|
|
214
168
|
if (!globalPrefix)
|
|
215
|
-
return dashboardPath
|
|
169
|
+
return `${proxyPrefix}${dashboardPath}`;
|
|
216
170
|
// A route listed under `exclude` keeps the global prefix off, so the
|
|
217
|
-
// dashboard stays where `config.path` put it.
|
|
171
|
+
// dashboard stays where `config.path` put it. The proxy prefix is not part
|
|
172
|
+
// of what Nest matched against, so it is excluded from this test.
|
|
218
173
|
const exclusions = this.applicationConfig.getGlobalPrefixOptions().exclude ?? [];
|
|
219
174
|
const isExcluded = exclusions.some((route) => route.pathRegex?.test(dashboardPath.length > 0 ? dashboardPath : '/'));
|
|
220
|
-
return isExcluded
|
|
175
|
+
return isExcluded
|
|
176
|
+
? `${proxyPrefix}${dashboardPath}`
|
|
177
|
+
: `${proxyPrefix}/${globalPrefix}${dashboardPath}`;
|
|
221
178
|
}
|
|
222
|
-
injectBasePath(html) {
|
|
223
|
-
const baseHref = this.mountPoint();
|
|
179
|
+
injectBasePath(html, forwardedPrefix) {
|
|
180
|
+
const baseHref = this.mountPoint(forwardedPrefix);
|
|
224
181
|
const injection = `<base href="${escapeHtmlAttribute(`${baseHref}/`)}" />` +
|
|
225
182
|
`<script>window.__NESTLENS_BASE__=${JSON.stringify(baseHref)}</script>`;
|
|
226
183
|
return html.replace('<head>', `<head>${injection}`);
|
|
@@ -243,273 +200,45 @@ let DashboardController = class DashboardController {
|
|
|
243
200
|
contentTypeFor(absolutePath) {
|
|
244
201
|
return MIME_TYPES[(0, path_1.extname)(absolutePath).toLowerCase()] ?? 'application/octet-stream';
|
|
245
202
|
}
|
|
246
|
-
/** Stream a dashboard file. Adapter-agnostic via StreamableFile. */
|
|
247
|
-
streamFile(relativePath, notFoundMessage) {
|
|
248
|
-
const absolutePath = this.resolveDashboardFile(relativePath, notFoundMessage);
|
|
249
|
-
return new common_1.StreamableFile((0, fs_1.createReadStream)(absolutePath), {
|
|
250
|
-
type: this.contentTypeFor(absolutePath),
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
203
|
};
|
|
254
204
|
exports.DashboardController = DashboardController;
|
|
255
|
-
__decorate([
|
|
256
|
-
(0, common_1.Get)(),
|
|
257
|
-
__metadata("design:type", Function),
|
|
258
|
-
__metadata("design:paramtypes", []),
|
|
259
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
260
|
-
], DashboardController.prototype, "serveDashboard", null);
|
|
261
205
|
__decorate([
|
|
262
206
|
(0, common_1.Get)('assets/:filename'),
|
|
263
207
|
__param(0, (0, common_1.Param)('filename')),
|
|
208
|
+
__param(1, (0, common_1.Res)()),
|
|
264
209
|
__metadata("design:type", Function),
|
|
265
|
-
__metadata("design:paramtypes", [String]),
|
|
266
|
-
__metadata("design:returntype",
|
|
210
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
211
|
+
__metadata("design:returntype", void 0)
|
|
267
212
|
], DashboardController.prototype, "serveAssets", null);
|
|
268
213
|
__decorate([
|
|
269
214
|
(0, common_1.Get)(':filename.svg'),
|
|
270
215
|
__param(0, (0, common_1.Param)('filename')),
|
|
216
|
+
__param(1, (0, common_1.Res)()),
|
|
271
217
|
__metadata("design:type", Function),
|
|
272
|
-
__metadata("design:paramtypes", [String]),
|
|
273
|
-
__metadata("design:returntype",
|
|
218
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
219
|
+
__metadata("design:returntype", void 0)
|
|
274
220
|
], DashboardController.prototype, "serveStaticFile", null);
|
|
275
221
|
__decorate([
|
|
276
|
-
(0, common_1.Get)(
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
280
|
-
], DashboardController.prototype, "serveRequestsRoute", null);
|
|
281
|
-
__decorate([
|
|
282
|
-
(0, common_1.Get)('queries'),
|
|
283
|
-
__metadata("design:type", Function),
|
|
284
|
-
__metadata("design:paramtypes", []),
|
|
285
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
286
|
-
], DashboardController.prototype, "serveQueriesRoute", null);
|
|
287
|
-
__decorate([
|
|
288
|
-
(0, common_1.Get)('exceptions'),
|
|
289
|
-
__metadata("design:type", Function),
|
|
290
|
-
__metadata("design:paramtypes", []),
|
|
291
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
292
|
-
], DashboardController.prototype, "serveExceptionsRoute", null);
|
|
293
|
-
__decorate([
|
|
294
|
-
(0, common_1.Get)('logs'),
|
|
295
|
-
__metadata("design:type", Function),
|
|
296
|
-
__metadata("design:paramtypes", []),
|
|
297
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
298
|
-
], DashboardController.prototype, "serveLogsRoute", null);
|
|
299
|
-
__decorate([
|
|
300
|
-
(0, common_1.Get)('entries/:id'),
|
|
301
|
-
__metadata("design:type", Function),
|
|
302
|
-
__metadata("design:paramtypes", []),
|
|
303
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
304
|
-
], DashboardController.prototype, "serveEntryDetailRoute", null);
|
|
305
|
-
__decorate([
|
|
306
|
-
(0, common_1.Get)('events'),
|
|
307
|
-
__metadata("design:type", Function),
|
|
308
|
-
__metadata("design:paramtypes", []),
|
|
309
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
310
|
-
], DashboardController.prototype, "serveEventsRoute", null);
|
|
311
|
-
__decorate([
|
|
312
|
-
(0, common_1.Get)('events/:id'),
|
|
313
|
-
__metadata("design:type", Function),
|
|
314
|
-
__metadata("design:paramtypes", []),
|
|
315
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
316
|
-
], DashboardController.prototype, "serveEventDetailRoute", null);
|
|
317
|
-
__decorate([
|
|
318
|
-
(0, common_1.Get)('jobs'),
|
|
319
|
-
__metadata("design:type", Function),
|
|
320
|
-
__metadata("design:paramtypes", []),
|
|
321
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
322
|
-
], DashboardController.prototype, "serveJobsRoute", null);
|
|
323
|
-
__decorate([
|
|
324
|
-
(0, common_1.Get)('jobs/:id'),
|
|
325
|
-
__metadata("design:type", Function),
|
|
326
|
-
__metadata("design:paramtypes", []),
|
|
327
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
328
|
-
], DashboardController.prototype, "serveJobDetailRoute", null);
|
|
329
|
-
__decorate([
|
|
330
|
-
(0, common_1.Get)('cache'),
|
|
331
|
-
__metadata("design:type", Function),
|
|
332
|
-
__metadata("design:paramtypes", []),
|
|
333
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
334
|
-
], DashboardController.prototype, "serveCacheRoute", null);
|
|
335
|
-
__decorate([
|
|
336
|
-
(0, common_1.Get)('cache/:id'),
|
|
337
|
-
__metadata("design:type", Function),
|
|
338
|
-
__metadata("design:paramtypes", []),
|
|
339
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
340
|
-
], DashboardController.prototype, "serveCacheDetailRoute", null);
|
|
341
|
-
__decorate([
|
|
342
|
-
(0, common_1.Get)('mail'),
|
|
343
|
-
__metadata("design:type", Function),
|
|
344
|
-
__metadata("design:paramtypes", []),
|
|
345
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
346
|
-
], DashboardController.prototype, "serveMailRoute", null);
|
|
347
|
-
__decorate([
|
|
348
|
-
(0, common_1.Get)('mail/:id'),
|
|
349
|
-
__metadata("design:type", Function),
|
|
350
|
-
__metadata("design:paramtypes", []),
|
|
351
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
352
|
-
], DashboardController.prototype, "serveMailDetailRoute", null);
|
|
353
|
-
__decorate([
|
|
354
|
-
(0, common_1.Get)('schedule'),
|
|
355
|
-
__metadata("design:type", Function),
|
|
356
|
-
__metadata("design:paramtypes", []),
|
|
357
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
358
|
-
], DashboardController.prototype, "serveScheduleRoute", null);
|
|
359
|
-
__decorate([
|
|
360
|
-
(0, common_1.Get)('schedule/:id'),
|
|
361
|
-
__metadata("design:type", Function),
|
|
362
|
-
__metadata("design:paramtypes", []),
|
|
363
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
364
|
-
], DashboardController.prototype, "serveScheduleDetailRoute", null);
|
|
365
|
-
__decorate([
|
|
366
|
-
(0, common_1.Get)('http-client'),
|
|
367
|
-
__metadata("design:type", Function),
|
|
368
|
-
__metadata("design:paramtypes", []),
|
|
369
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
370
|
-
], DashboardController.prototype, "serveHttpClientRoute", null);
|
|
371
|
-
__decorate([
|
|
372
|
-
(0, common_1.Get)('http-client/:id'),
|
|
373
|
-
__metadata("design:type", Function),
|
|
374
|
-
__metadata("design:paramtypes", []),
|
|
375
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
376
|
-
], DashboardController.prototype, "serveHttpClientDetailRoute", null);
|
|
377
|
-
__decorate([
|
|
378
|
-
(0, common_1.Get)('requests/:id'),
|
|
379
|
-
__metadata("design:type", Function),
|
|
380
|
-
__metadata("design:paramtypes", []),
|
|
381
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
382
|
-
], DashboardController.prototype, "serveRequestDetailRoute", null);
|
|
383
|
-
__decorate([
|
|
384
|
-
(0, common_1.Get)('queries/:id'),
|
|
385
|
-
__metadata("design:type", Function),
|
|
386
|
-
__metadata("design:paramtypes", []),
|
|
387
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
388
|
-
], DashboardController.prototype, "serveQueryDetailRoute", null);
|
|
389
|
-
__decorate([
|
|
390
|
-
(0, common_1.Get)('exceptions/:id'),
|
|
391
|
-
__metadata("design:type", Function),
|
|
392
|
-
__metadata("design:paramtypes", []),
|
|
393
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
394
|
-
], DashboardController.prototype, "serveExceptionDetailRoute", null);
|
|
395
|
-
__decorate([
|
|
396
|
-
(0, common_1.Get)('logs/:id'),
|
|
397
|
-
__metadata("design:type", Function),
|
|
398
|
-
__metadata("design:paramtypes", []),
|
|
399
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
400
|
-
], DashboardController.prototype, "serveLogDetailRoute", null);
|
|
401
|
-
__decorate([
|
|
402
|
-
(0, common_1.Get)('redis'),
|
|
403
|
-
__metadata("design:type", Function),
|
|
404
|
-
__metadata("design:paramtypes", []),
|
|
405
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
406
|
-
], DashboardController.prototype, "serveRedisRoute", null);
|
|
407
|
-
__decorate([
|
|
408
|
-
(0, common_1.Get)('redis/:id'),
|
|
409
|
-
__metadata("design:type", Function),
|
|
410
|
-
__metadata("design:paramtypes", []),
|
|
411
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
412
|
-
], DashboardController.prototype, "serveRedisDetailRoute", null);
|
|
413
|
-
__decorate([
|
|
414
|
-
(0, common_1.Get)('models'),
|
|
415
|
-
__metadata("design:type", Function),
|
|
416
|
-
__metadata("design:paramtypes", []),
|
|
417
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
418
|
-
], DashboardController.prototype, "serveModelsRoute", null);
|
|
419
|
-
__decorate([
|
|
420
|
-
(0, common_1.Get)('models/:id'),
|
|
421
|
-
__metadata("design:type", Function),
|
|
422
|
-
__metadata("design:paramtypes", []),
|
|
423
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
424
|
-
], DashboardController.prototype, "serveModelDetailRoute", null);
|
|
425
|
-
__decorate([
|
|
426
|
-
(0, common_1.Get)('notifications'),
|
|
427
|
-
__metadata("design:type", Function),
|
|
428
|
-
__metadata("design:paramtypes", []),
|
|
429
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
430
|
-
], DashboardController.prototype, "serveNotificationsRoute", null);
|
|
431
|
-
__decorate([
|
|
432
|
-
(0, common_1.Get)('notifications/:id'),
|
|
433
|
-
__metadata("design:type", Function),
|
|
434
|
-
__metadata("design:paramtypes", []),
|
|
435
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
436
|
-
], DashboardController.prototype, "serveNotificationDetailRoute", null);
|
|
437
|
-
__decorate([
|
|
438
|
-
(0, common_1.Get)('views'),
|
|
439
|
-
__metadata("design:type", Function),
|
|
440
|
-
__metadata("design:paramtypes", []),
|
|
441
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
442
|
-
], DashboardController.prototype, "serveViewsRoute", null);
|
|
443
|
-
__decorate([
|
|
444
|
-
(0, common_1.Get)('views/:id'),
|
|
445
|
-
__metadata("design:type", Function),
|
|
446
|
-
__metadata("design:paramtypes", []),
|
|
447
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
448
|
-
], DashboardController.prototype, "serveViewDetailRoute", null);
|
|
449
|
-
__decorate([
|
|
450
|
-
(0, common_1.Get)('commands'),
|
|
451
|
-
__metadata("design:type", Function),
|
|
452
|
-
__metadata("design:paramtypes", []),
|
|
453
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
454
|
-
], DashboardController.prototype, "serveCommandsRoute", null);
|
|
455
|
-
__decorate([
|
|
456
|
-
(0, common_1.Get)('commands/:id'),
|
|
457
|
-
__metadata("design:type", Function),
|
|
458
|
-
__metadata("design:paramtypes", []),
|
|
459
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
460
|
-
], DashboardController.prototype, "serveCommandDetailRoute", null);
|
|
461
|
-
__decorate([
|
|
462
|
-
(0, common_1.Get)('gates'),
|
|
463
|
-
__metadata("design:type", Function),
|
|
464
|
-
__metadata("design:paramtypes", []),
|
|
465
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
466
|
-
], DashboardController.prototype, "serveGatesRoute", null);
|
|
467
|
-
__decorate([
|
|
468
|
-
(0, common_1.Get)('gates/:id'),
|
|
469
|
-
__metadata("design:type", Function),
|
|
470
|
-
__metadata("design:paramtypes", []),
|
|
471
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
472
|
-
], DashboardController.prototype, "serveGateDetailRoute", null);
|
|
473
|
-
__decorate([
|
|
474
|
-
(0, common_1.Get)('batches'),
|
|
475
|
-
__metadata("design:type", Function),
|
|
476
|
-
__metadata("design:paramtypes", []),
|
|
477
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
478
|
-
], DashboardController.prototype, "serveBatchesRoute", null);
|
|
479
|
-
__decorate([
|
|
480
|
-
(0, common_1.Get)('batches/:id'),
|
|
481
|
-
__metadata("design:type", Function),
|
|
482
|
-
__metadata("design:paramtypes", []),
|
|
483
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
484
|
-
], DashboardController.prototype, "serveBatchDetailRoute", null);
|
|
485
|
-
__decorate([
|
|
486
|
-
(0, common_1.Get)('dumps'),
|
|
487
|
-
__metadata("design:type", Function),
|
|
488
|
-
__metadata("design:paramtypes", []),
|
|
489
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
490
|
-
], DashboardController.prototype, "serveDumpsRoute", null);
|
|
491
|
-
__decorate([
|
|
492
|
-
(0, common_1.Get)('dumps/:id'),
|
|
493
|
-
__metadata("design:type", Function),
|
|
494
|
-
__metadata("design:paramtypes", []),
|
|
495
|
-
__metadata("design:returntype", common_1.StreamableFile)
|
|
496
|
-
], DashboardController.prototype, "serveDumpDetailRoute", null);
|
|
497
|
-
__decorate([
|
|
498
|
-
(0, common_1.Get)('graphql'),
|
|
222
|
+
(0, common_1.Get)(),
|
|
223
|
+
__param(0, (0, common_1.Res)()),
|
|
224
|
+
__param(1, (0, common_1.Headers)(FORWARDED_PREFIX_HEADER)),
|
|
499
225
|
__metadata("design:type", Function),
|
|
500
|
-
__metadata("design:paramtypes", []),
|
|
501
|
-
__metadata("design:returntype",
|
|
502
|
-
], DashboardController.prototype, "
|
|
226
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
227
|
+
__metadata("design:returntype", void 0)
|
|
228
|
+
], DashboardController.prototype, "serveDashboard", null);
|
|
503
229
|
__decorate([
|
|
504
|
-
(0, common_1.Get)('
|
|
230
|
+
(0, common_1.Get)('*'),
|
|
231
|
+
__param(0, (0, common_1.Res)()),
|
|
232
|
+
__param(1, (0, common_1.Headers)(FORWARDED_PREFIX_HEADER)),
|
|
505
233
|
__metadata("design:type", Function),
|
|
506
|
-
__metadata("design:paramtypes", []),
|
|
507
|
-
__metadata("design:returntype",
|
|
508
|
-
], DashboardController.prototype, "
|
|
234
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
235
|
+
__metadata("design:returntype", void 0)
|
|
236
|
+
], DashboardController.prototype, "serveSpaRoute", null);
|
|
509
237
|
exports.DashboardController = DashboardController = __decorate([
|
|
510
238
|
(0, common_1.Controller)('nestlens'),
|
|
511
239
|
(0, common_1.UseGuards)(api_guard_1.NestLensGuard),
|
|
512
240
|
__param(0, (0, common_1.Inject)(nestlens_config_1.NESTLENS_CONFIG)),
|
|
513
|
-
__metadata("design:paramtypes", [Object, core_1.ApplicationConfig
|
|
241
|
+
__metadata("design:paramtypes", [Object, core_1.ApplicationConfig,
|
|
242
|
+
core_1.HttpAdapterHost])
|
|
514
243
|
], DashboardController);
|
|
515
244
|
//# sourceMappingURL=dashboard.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.controller.js","sourceRoot":"","sources":["../../src/api/dashboard.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"dashboard.controller.js","sourceRoot":"","sources":["../../src/api/dashboard.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,2BAA8C;AAC9C,+BAAmD;AACnD,uCAAkE;AAClE,wDAAqE;AACrE,2CAA4C;AAC5C,6CAA6D;AAE7D,+EAA+E;AAC/E,MAAM,uBAAuB,GAAG,oBAAoB,CAAC;AAErD;;;;;;;;GAQG;AACH,MAAM,SAAS,GAAG,qCAAqC,CAAC;AACxD,MAAM,QAAQ,GAAG,UAAU,CAAC;AAE5B,MAAM,mBAAmB,GAAG,CAAC,KAAa,EAAU,EAAE,CACpD,KAAK,C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