mirror of
https://github.com/soapingtime/diyhrt.git
synced 2026-09-04 20:10:19 +02:00
[automated] update groups.io wiki
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
console.log("stack:", errorObj.stack);
|
||||
stack = errorObj.stack;
|
||||
}
|
||||
console.log("client_id:", "web.web08.828859.1760488829027678057");
|
||||
console.log("client_id:", "web.web09.210384.1761093726634415535");
|
||||
console.log("last_error:", lastError);
|
||||
console.log("stack:", stack);
|
||||
}
|
||||
@@ -127,7 +127,7 @@
|
||||
column: column,
|
||||
stack: stack,
|
||||
last_error: lastError,
|
||||
client_id: "web.web08.828859.1760488829027678057"
|
||||
client_id: "web.web09.210384.1761093726634415535"
|
||||
},
|
||||
success: function() {
|
||||
if (console && console.log) {
|
||||
@@ -199,7 +199,7 @@
|
||||
console.log("FULL PAGE LOAD");
|
||||
</script>
|
||||
</head>
|
||||
<body id="body" class="" hx-headers='{"Accept-Version": "3cb141f13f0daf41d44aeef2df354f3b381d8b9a"}' hx-ext="preload" hx-boost="false">
|
||||
<body id="body" class="" hx-headers='{"Accept-Version": "084a141191da1f3e5bb5d57ab4f8bf00531c5d6b"}' hx-ext="preload" hx-boost="false">
|
||||
|
||||
<script>
|
||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
@@ -712,7 +712,72 @@ function showAutocompleteModal(modalName) {
|
||||
document.removeEventListener('keydown', keydownFunc);
|
||||
}
|
||||
document.body.addEventListener("htmx:historyCacheMiss", removeDrawerCloseFunc, {once: true});
|
||||
|
||||
// Check for passkey enrollment prompt after cross-device authentication
|
||||
$(function() {
|
||||
if (sessionStorage.getItem('passkeyPromptAfterCDA') === 'true') {
|
||||
console.log('Passkey CDA flag detected, showing enrollment modal');
|
||||
|
||||
// Show the modal
|
||||
$('#passkeyEnrollmentModal').modal('show');
|
||||
|
||||
// Clear the flag when modal is dismissed
|
||||
$('#passkeyEnrollmentModal').on('hidden.bs.modal', function() {
|
||||
console.log('Modal dismissed, clearing flag');
|
||||
sessionStorage.removeItem('passkeyPromptAfterCDA');
|
||||
});
|
||||
|
||||
// Set up enrollment button handler
|
||||
var enrollBtn = document.getElementById('enrollLocalPasskeyBtn');
|
||||
if (enrollBtn) {
|
||||
enrollBtn.addEventListener('click', function() {
|
||||
console.log('Enrollment button clicked');
|
||||
// Redirect to settings page where they can add a passkey
|
||||
sessionStorage.removeItem('passkeyPromptAfterCDA');
|
||||
window.location.href = 'https://groups.io/settings/security';
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- Passkey Enrollment Modal -->
|
||||
<div class="modal fade webauthn-only" id="passkeyEnrollmentModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title">
|
||||
<i class="fa fa-fingerprint"></i>
|
||||
Add a Passkey to This Device
|
||||
</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>
|
||||
You logged in using a passkey from another device. For faster access next time, add a passkey to this device.
|
||||
</p>
|
||||
<p>
|
||||
<strong>Benefits:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Faster login with just your fingerprint or face</li>
|
||||
<li>No need to use your phone each time</li>
|
||||
<li>Works even when offline</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">
|
||||
Maybe Later
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" id="enrollLocalPasskeyBtn">
|
||||
<i class="fa fa-plus"></i>
|
||||
Add Passkey Now
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal Dialog for Keyboard Shortcuts -->
|
||||
<div class="modal fade" id="shortcutModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
||||
<div class="modal-dialog" role="document">
|
||||
|
||||
Reference in New Issue
Block a user