@authrim/setup 0.1.73 → 0.1.75
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/web/ui.d.ts.map +1 -1
- package/dist/web/ui.js +7 -5
- package/dist/web/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/web/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,eAAe,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,eAAe,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAqvJnF"}
|
package/dist/web/ui.js
CHANGED
|
@@ -2349,11 +2349,13 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
2349
2349
|
<div id="admin-setup-result" class="hidden" style="margin-top: 1rem; padding: 0.75rem; background: var(--card-bg); border-radius: 6px;">
|
|
2350
2350
|
<div style="font-weight: 500; margin-bottom: 0.5rem;">Setup URL Generated:</div>
|
|
2351
2351
|
<div style="display: flex; gap: 0.5rem; align-items: center;">
|
|
2352
|
-
<input type="text" id="admin-setup-url" readonly style="flex: 1; padding: 0.5rem; border: 1px solid
|
|
2352
|
+
<input type="text" id="admin-setup-url" readonly style="flex: 1; padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; font-family: monospace; font-size: 0.875rem; background: var(--bg); color: var(--text);">
|
|
2353
2353
|
<button class="btn-secondary" id="btn-copy-setup-url" style="white-space: nowrap;">📋 Copy</button>
|
|
2354
|
-
<a id="btn-open-setup-url" href="#" target="_blank" class="btn-primary" style="text-decoration: none; white-space: nowrap;">🔗 Open</a>
|
|
2355
2354
|
</div>
|
|
2356
|
-
<div style="
|
|
2355
|
+
<div style="text-align: center; margin-top: 1rem;">
|
|
2356
|
+
<a id="btn-open-setup-url" href="#" target="_blank" class="btn-primary" style="text-decoration: none; display: inline-block;">🔗 Open Setup</a>
|
|
2357
|
+
</div>
|
|
2358
|
+
<div style="font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; text-align: center;">
|
|
2357
2359
|
This URL is valid for 1 hour. Open it in a browser to register the first admin account.
|
|
2358
2360
|
</div>
|
|
2359
2361
|
</div>
|
|
@@ -2642,7 +2644,7 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
2642
2644
|
|
|
2643
2645
|
// API helpers (with session token authentication)
|
|
2644
2646
|
async function api(endpoint, options = {}) {
|
|
2645
|
-
const { headers: customHeaders, ...restOptions } = options;
|
|
2647
|
+
const { headers: customHeaders, body, ...restOptions } = options;
|
|
2646
2648
|
const response = await fetch('/api' + endpoint, {
|
|
2647
2649
|
...restOptions,
|
|
2648
2650
|
headers: {
|
|
@@ -2650,7 +2652,7 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
2650
2652
|
'X-Session-Token': SESSION_TOKEN,
|
|
2651
2653
|
...(customHeaders || {}),
|
|
2652
2654
|
},
|
|
2653
|
-
body:
|
|
2655
|
+
body: body ? (typeof body === 'string' ? body : JSON.stringify(body)) : undefined,
|
|
2654
2656
|
});
|
|
2655
2657
|
return response.json();
|
|
2656
2658
|
}
|
package/dist/web/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,UAAU,eAAe,CAAC,YAAqB,EAAE,UAAoB;IACzE,gDAAgD;IAChD,MAAM,SAAS,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,EAA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