@adonis-agora/durable 0.27.0 → 0.28.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 +25 -0
- package/dist/assets/spa/assets/index-Db5aPtlJ.js +16 -0
- package/dist/assets/spa/assets/index-Db5aPtlJ.js.map +1 -0
- package/dist/assets/spa/index.html +1 -1
- package/dist/providers/dashboard_provider.d.ts +3 -9
- package/dist/providers/dashboard_provider.d.ts.map +1 -1
- package/dist/providers/dashboard_provider.js +3 -18
- package/dist/providers/dashboard_provider.js.map +1 -1
- package/dist/src/dashboard/compat-view.d.ts +1 -1
- package/dist/src/dashboard/compat-view.d.ts.map +1 -1
- package/dist/src/dashboard/compat-view.js +1 -1
- package/dist/src/dashboard/compat-view.js.map +1 -1
- package/dist/src/dashboard/handlers.d.ts +3 -3
- package/dist/src/dashboard/handlers.js +2 -2
- package/dist/src/dashboard/index.d.ts +1 -2
- package/dist/src/dashboard/index.d.ts.map +1 -1
- package/dist/src/dashboard/index.js +1 -2
- package/dist/src/dashboard/index.js.map +1 -1
- package/dist/src/dashboard/login_page.d.ts +1 -1
- package/dist/src/dashboard/login_page.js +1 -1
- package/dist/src/dashboard/spa.d.ts +21 -4
- package/dist/src/dashboard/spa.d.ts.map +1 -1
- package/dist/src/dashboard/spa.js +19 -5
- package/dist/src/dashboard/spa.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/package.json +3 -3
- package/dist/assets/dashboard.html +0 -559
- package/dist/assets/spa/assets/index-CS0tc60i.js +0 -16
- package/dist/assets/spa/assets/index-CS0tc60i.js.map +0 -1
- package/dist/src/dashboard/html.d.ts +0 -7
- package/dist/src/dashboard/html.d.ts.map +0 -1
- package/dist/src/dashboard/html.js +0 -24
- package/dist/src/dashboard/html.js.map +0 -1
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Render the dashboard HTML with the JSON API base path injected, so the
|
|
3
|
-
* single-page client knows where to fetch from regardless of the configured
|
|
4
|
-
* mount prefix.
|
|
5
|
-
*/
|
|
6
|
-
export declare function renderDashboard(apiBase: string): string;
|
|
7
|
-
//# sourceMappingURL=html.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/dashboard/html.ts"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'node:fs';
|
|
2
|
-
import { fileURLToPath } from 'node:url';
|
|
3
|
-
/**
|
|
4
|
-
* The dashboard HTML, loaded once from the bundled asset. The build copies
|
|
5
|
-
* `assets/dashboard.html` into `dist/assets/`, so this resolves relative to the
|
|
6
|
-
* compiled `dist/src/dashboard/html.js`.
|
|
7
|
-
*/
|
|
8
|
-
let template;
|
|
9
|
-
function load() {
|
|
10
|
-
if (template === undefined) {
|
|
11
|
-
const assetUrl = new URL('../../assets/dashboard.html', import.meta.url);
|
|
12
|
-
template = readFileSync(fileURLToPath(assetUrl), 'utf8');
|
|
13
|
-
}
|
|
14
|
-
return template;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Render the dashboard HTML with the JSON API base path injected, so the
|
|
18
|
-
* single-page client knows where to fetch from regardless of the configured
|
|
19
|
-
* mount prefix.
|
|
20
|
-
*/
|
|
21
|
-
export function renderDashboard(apiBase) {
|
|
22
|
-
return load().replaceAll('__API_BASE__', apiBase);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=html.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/dashboard/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;GAIG;AACH,IAAI,QAA4B,CAAC;AAEjC,SAAS,IAAI;IACX,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,6BAA6B,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACzE,QAAQ,GAAG,YAAY,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,OAAO,IAAI,EAAE,CAAC,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC"}
|