@authrim/setup 0.1.75 → 0.1.77
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 +15 -6
- 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,CA8vJnF"}
|
package/dist/web/ui.js
CHANGED
|
@@ -762,7 +762,7 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
762
762
|
/* ========================================
|
|
763
763
|
BUTTONS
|
|
764
764
|
======================================== */
|
|
765
|
-
button {
|
|
765
|
+
button, a.btn-primary, a.btn-secondary {
|
|
766
766
|
padding: 0.875rem 1.75rem;
|
|
767
767
|
border-radius: 10px;
|
|
768
768
|
font-family: var(--font-sans);
|
|
@@ -771,6 +771,9 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
771
771
|
cursor: pointer;
|
|
772
772
|
transition: all var(--transition-fast);
|
|
773
773
|
border: none;
|
|
774
|
+
text-decoration: none;
|
|
775
|
+
display: inline-block;
|
|
776
|
+
text-align: center;
|
|
774
777
|
}
|
|
775
778
|
|
|
776
779
|
.btn-primary {
|
|
@@ -2353,7 +2356,7 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
2353
2356
|
<button class="btn-secondary" id="btn-copy-setup-url" style="white-space: nowrap;">📋 Copy</button>
|
|
2354
2357
|
</div>
|
|
2355
2358
|
<div style="text-align: center; margin-top: 1rem;">
|
|
2356
|
-
<a id="btn-open-setup-url" href="#" target="_blank" class="btn-primary"
|
|
2359
|
+
<a id="btn-open-setup-url" href="#" target="_blank" class="btn-primary">🔑 Open Setup</a>
|
|
2357
2360
|
</div>
|
|
2358
2361
|
<div style="font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; text-align: center;">
|
|
2359
2362
|
This URL is valid for 1 hour. Open it in a browser to register the first admin account.
|
|
@@ -3971,7 +3974,7 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
3971
3974
|
<button class="btn-secondary" onclick="navigator.clipboard.writeText('\${result.setupUrl}'); this.textContent='✓ Copied'; setTimeout(() => this.textContent='📋 Copy', 2000);" style="white-space: nowrap;">📋 Copy</button>
|
|
3972
3975
|
</div>
|
|
3973
3976
|
<div style="text-align: center; margin-top: 1rem;">
|
|
3974
|
-
<a href="\${result.setupUrl}" target="_blank" class="btn-primary"
|
|
3977
|
+
<a href="\${result.setupUrl}" target="_blank" class="btn-primary">🔑 Open Setup</a>
|
|
3975
3978
|
</div>
|
|
3976
3979
|
<div class="hint-box" style="margin-top: 0.75rem;">
|
|
3977
3980
|
⚠️ This URL can only be used <strong>once</strong> and expires in <strong>1 hour</strong>.
|
|
@@ -4680,11 +4683,17 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
4680
4683
|
|
|
4681
4684
|
let baseUrl = '';
|
|
4682
4685
|
if (router && router.name) {
|
|
4683
|
-
// Construct URL from worker name
|
|
4684
|
-
|
|
4686
|
+
// Construct URL from worker name with subdomain
|
|
4687
|
+
// Format: https://{worker-name}.{subdomain}.workers.dev
|
|
4688
|
+
if (workersSubdomain) {
|
|
4689
|
+
baseUrl = 'https://' + router.name + '.' + workersSubdomain + '.workers.dev';
|
|
4690
|
+
} else {
|
|
4691
|
+
// Fallback without subdomain (shouldn't happen in practice)
|
|
4692
|
+
baseUrl = 'https://' + router.name + '.workers.dev';
|
|
4693
|
+
}
|
|
4685
4694
|
} else {
|
|
4686
4695
|
// Fallback - ask for URL
|
|
4687
|
-
baseUrl = prompt('Enter the base URL for the router (e.g., https://myenv-ar-router.workers.dev):');
|
|
4696
|
+
baseUrl = prompt('Enter the base URL for the router (e.g., https://myenv-ar-router.subdomain.workers.dev):');
|
|
4688
4697
|
if (!baseUrl) {
|
|
4689
4698
|
btn.disabled = false;
|
|
4690
4699
|
btn.textContent = '🔐 Start Admin Account Setup with Passkey';
|
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,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1E,MAAM,cAAc,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAErD,OAAO
|
|
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,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1E,MAAM,cAAc,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAErD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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