@dudousxd/nestjs-telescope-ui 4.1.0 → 4.2.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/CHANGELOG.md +6 -0
- package/dist/server/console-registration.d.ts.map +1 -1
- package/dist/server/console-registration.js +4 -2
- package/dist/server/console-registration.js.map +1 -1
- package/dist/spa/assets/{index-BXt80gfq.js → index-BNCovQ2Z.js} +50 -50
- package/dist/spa/index.html +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @dudousxd/nestjs-telescope-ui
|
|
2
2
|
|
|
3
|
+
## 4.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#191](https://github.com/DavideCarvalho/nestjs-telescope/pull/191) [`8d40ef6`](https://github.com/DavideCarvalho/nestjs-telescope/commit/8d40ef6c2c9f6e350f86f9881401accffb999294) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Global search across the Aviary consoles, and the switcher's probe marker. A console entry may now expose `search(context, q, limit)`. `GET <path>/api/consoles/search?q=` (behind the console's `authorize`) asks Telescope and every console the viewer may open, 300 ms and 5 same-origin hits each, and reports `partial: true` when one fails or times out. Telescope's own search (`telescopeConsoleSearch`) finds an entry by exact id and tags containing the text, inside the organizations the viewer's `authorize` grants. The command palette shows the hits next to its page shortcuts, and the brand menu gets **Search all consoles**. While the switcher runs other consoles' `authorize` or `search`, the request carries `aviaryProbe: true`. An auditing authorizer can skip those calls with `isConsoleProbe(context)`.
|
|
8
|
+
|
|
3
9
|
## 4.1.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-registration.d.ts","sourceRoot":"","sources":["../../src/server/console-registration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"console-registration.d.ts","sourceRoot":"","sources":["../../src/server/console-registration.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAwB,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAIhG;;;GAGG;AACH,qBACa,4BAA6B,YAAW,YAAY,EAAE,eAAe;;IAIhD,OAAO,CAAC,QAAQ,CAAC,OAAO;IACnC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADE,OAAO,EAAE,wBAAwB,EAC5C,SAAS,EAAE,SAAS;IAGpD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAmBnC,eAAe,IAAI,IAAI;CAIxB"}
|
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
12
|
};
|
|
13
|
-
import { TELESCOPE_CONSOLE_ID, normalizeTelescopePath, registerAviaryConsole, resolveConsoleAuthorize, } from '@dudousxd/nestjs-telescope';
|
|
13
|
+
import { TELESCOPE_CONSOLE_ID, normalizeTelescopePath, registerAviaryConsole, resolveConsoleAuthorize, telescopeConsoleSearch, } from '@dudousxd/nestjs-telescope';
|
|
14
14
|
import { Inject, Injectable, Logger, } from '@nestjs/common';
|
|
15
15
|
import { ModuleRef } from '@nestjs/core';
|
|
16
16
|
import { TELESCOPE_UI_OPTIONS } from './telescope-ui.options.js';
|
|
@@ -31,13 +31,15 @@ let TelescopeConsoleRegistration = class TelescopeConsoleRegistration {
|
|
|
31
31
|
const decide = await resolveConsoleAuthorize(this.options.authorize, this.moduleRef, {
|
|
32
32
|
warnIfMissing: false,
|
|
33
33
|
});
|
|
34
|
+
const path = `/${normalizeTelescopePath(this.options.path)}`;
|
|
34
35
|
this.#unregister = registerAviaryConsole({
|
|
35
36
|
id: TELESCOPE_CONSOLE_ID,
|
|
36
37
|
title: 'Telescope',
|
|
37
38
|
icon: 'telescope',
|
|
38
39
|
order: 20,
|
|
39
|
-
path
|
|
40
|
+
path,
|
|
40
41
|
authorize: decide,
|
|
42
|
+
search: telescopeConsoleSearch(this.moduleRef, decide, path),
|
|
41
43
|
}, logger);
|
|
42
44
|
}
|
|
43
45
|
onModuleDestroy() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-registration.js","sourceRoot":"","sources":["../../src/server/console-registration.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"console-registration.js","sourceRoot":"","sources":["../../src/server/console-registration.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,MAAM,EACN,UAAU,EACV,MAAM,GAGP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAiC,MAAM,2BAA2B,CAAC;AAEhG,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAE/C;;;GAGG;AAEI,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAIU;IACX;IAJtC,WAAW,CAA2B;IAEtC,YACiD,OAAiC,EAC5C,SAAoB;QADT,YAAO,GAAP,OAAO,CAA0B;QAC5C,cAAS,GAAT,SAAS,CAAW;IACvD,CAAC;IAEJ,KAAK,CAAC,YAAY;QAChB,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE;YACnF,aAAa,EAAE,KAAK;SACrB,CAAC,CAAC;QACH,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