-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Clean up WebAuthn javascript code and remove JQuery code #22697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 24 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
df2adb2
Fix Uncaught DOMException: Failed to execute 'atob' on 'Window'
zeripath f40e516
Update web_src/js/features/user-auth-webauthn.js
zeripath 07e40bd
Merge branch 'main' into fix-atob-on-window
zeripath dcd6307
Include findings from #22654
zeripath 4a910b9
Merge remote-tracking branch 'zeripath/fix-atob-on-window' into fix-a…
zeripath f038244
As per wxiaoguang
zeripath 6326456
Merge branch 'main' into fix-atob-on-window
zeripath 7864ed8
Merge branch 'main' into fix-atob-on-window
zeripath b37e6a1
fix test
zeripath 104a864
Clean up WebAuthn javascript code and remove JQuery code
zeripath 7acd2a3
Merge branch 'main' into follow-up-fix-atob-on-window
zeripath 834c30f
as per silverwind
zeripath dbfdea9
Update user-auth-webauthn.js
zeripath 983c6d3
fix-broken-suggestion
zeripath 0414113
Merge remote-tracking branch 'origin/main' into follow-up-fix-atob-on…
zeripath 4ff437c
Merge remote-tracking branch 'origin/main' into follow-up-fix-atob-on…
zeripath b8c6827
move base64 functions, add test
silverwind 074173c
Merge remote-tracking branch 'origin/main' into follow-up-fix-atob-on…
zeripath 2961333
as per reviews
zeripath e402020
more reviews
zeripath c4fd5bb
add more testcases
zeripath 43c616e
Merge branch 'main' into follow-up-fix-atob-on-window
zeripath 1abde48
Merge branch 'main' into follow-up-fix-atob-on-window
silverwind f500353
Merge branch 'main' into follow-up-fix-atob-on-window
GiteaBot 3026b5b
Merge branch 'main' into follow-up-fix-atob-on-window
GiteaBot 3f918f8
Merge branch 'main' into follow-up-fix-atob-on-window
GiteaBot d412383
Update web_src/js/features/user-auth-webauthn.js
silverwind 90575a0
Merge branch 'main' into follow-up-fix-atob-on-window
silverwind 63e417e
remove p tags, remove stange box-shadow
silverwind fd08d9e
add message header colors
silverwind 93ba232
use showElem, hideElem
silverwind 41dba0c
reformat html
silverwind 1ce6d71
Merge branch 'main' into follow-up-fix-atob-on-window
GiteaBot 33de52e
Merge branch 'main' into follow-up-fix-atob-on-window
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
<div class="ui small modal" id="webauthn-error"> | ||
<div class="header">{{.locale.Tr "webauthn_error"}}</div> | ||
<div class="content"> | ||
<div class="ui negative message"> | ||
<div class="header"> | ||
<div id="webauthn-error" class="ui small gt-hidden"> | ||
<div class="content ui negative message"> | ||
<div class="header"> | ||
{{.locale.Tr "webauthn_error"}} | ||
</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="browser"><p>{{.locale.Tr "webauthn_unsupported_browser"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="unknown"><p>{{.locale.Tr "webauthn_error_unknown"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="insecure"><p>{{.locale.Tr "webauthn_error_insecure"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="unable-to-process"><p>{{.locale.Tr "webauthn_error_unable_to_process"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="duplicated"><p>{{.locale.Tr "webauthn_error_duplicated"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="empty"><p>{{.locale.Tr "webauthn_error_empty"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="timeout"><p>{{.locale.Tr "webauthn_error_timeout"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="general"></div> | ||
</div> | ||
</div> | ||
<div class="actions"> | ||
<button onclick="window.location.reload()" class="success ui button gt-hidden webauthn_error_timeout">{{.locale.Tr "webauthn_reload"}}</button> | ||
<button class="ui cancel button">{{.locale.Tr "cancel"}}</button> | ||
<div id="webauthn-error-msg" class=""> | ||
</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="browser"><p>{{.locale.Tr "webauthn_unsupported_browser"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="unknown"><p>{{.locale.Tr "webauthn_error_unknown"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="insecure"><p>{{.locale.Tr "webauthn_error_insecure"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="unable-to-process"><p>{{.locale.Tr "webauthn_error_unable_to_process"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="duplicated"><p>{{.locale.Tr "webauthn_error_duplicated"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="empty"><p>{{.locale.Tr "webauthn_error_empty"}}</div> | ||
<div class="gt-hidden" data-webauthn-error-msg="timeout"><p>{{.locale.Tr "webauthn_error_timeout"}}</div> | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.