gitea/web_src/js
a1012112796 822ee60bae
fix webAuthn insecure error view (#36165)
as you seen, in cureent status `initUserAuthWebAuthn` will prcheck
`window.isSecureContext`, if not ok, will hide the `passkey` btton and
return directly. I think it's not right, first, not show any error
message looks not a good ui, and it's looks will make an empty container
was show if the registion button was disabled also (maybe f-i-x #36115),
then initUserAuthWebAuthn has `window.isSecureContext` check also which
looks duplcate ref:

26602fd207/web_src/js/features/user-auth-webauthn.ts (L202-L206)

so I'd like move hideElem(elSignInPasskeyBtn); to
`detectWebAuthnSupport` failed routs to make it simple and show insecure
error corectly.

![联想截图_20251215184757](https://github.com/user-attachments/assets/0eff43a0-18a6-4978-aa27-b4574fcf2601)

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-12-15 21:03:52 +01:00
..
components Refactor FileTreeItem type (#36137) 2025-12-13 13:03:51 +00:00
features fix webAuthn insecure error view (#36165) 2025-12-15 21:03:52 +01:00
markup Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
modules Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
render Update eslint to v9 (#35485) 2025-09-14 19:15:06 +03:00
standalone Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
utils Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
vendor
webcomponents Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
bootstrap.test.ts
bootstrap.ts Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
globals.d.ts Refactor FileTreeItem type (#36137) 2025-12-13 13:03:51 +00:00
globals.ts Merge index.js (#34963) 2025-07-06 04:55:16 +00:00
htmx.ts Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
index-domready.ts Add "Go to file", "Delete Directory" to repo file list page (#35911) 2025-11-30 11:58:15 +08:00
index.ts Load jQuery as early as possible to support custom scripts (#35926) 2025-11-12 00:11:46 +08:00
svg.test.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +02:00
svg.ts Fix a number of strictNullChecks-related issues (#35795) 2025-11-03 20:17:06 +00:00
types.ts Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
utils.test.ts Use git diff-tree for DiffFileTree on diff pages (#33514) 2025-02-28 00:58:25 +00:00
utils.ts Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
vitest.setup.ts