Okay Wish I could say I know exactly. Will do better next time promise lol
This commit is contained in:
26
mkdocs/docs/comments/callback.md
Normal file
26
mkdocs/docs/comments/callback.md
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
title: Signing in...
|
||||
comments: false
|
||||
template: main.html
|
||||
hide:
|
||||
- navigation
|
||||
- toc
|
||||
- footer
|
||||
---
|
||||
|
||||
<div id="oauth-callback-status" style="text-align: center; padding: 3rem 1rem;">
|
||||
<p style="font-size: 1.1rem;">Completing sign in...</p>
|
||||
<p style="color: var(--md-default-fg-color--light); font-size: 0.875rem;">You will be redirected back to the page you were on.</p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// The docs-comments.js widget handles the OAuth callback automatically.
|
||||
// This page just provides a loading state while the code exchange happens.
|
||||
// If JS is disabled or the exchange fails, show a fallback message.
|
||||
setTimeout(function() {
|
||||
var el = document.getElementById('oauth-callback-status');
|
||||
if (el && !sessionStorage.getItem('docs-comment-gitea-token')) {
|
||||
el.innerHTML = '<p>Sign in failed or timed out.</p><p><a href="/">Return to documentation</a></p>';
|
||||
}
|
||||
}, 10000);
|
||||
</script>
|
||||
Reference in New Issue
Block a user