gitea/web_src/js/modules
silverwind 28e09ffc67
Vendor relative-time-element as local web component (#36853)
Replace the `@github/relative-time-element` npm dependency with a
vendored, simplified implementation.

- Support 24h format rendering [PR
329](https://github.com/github/relative-time-element/pull/329)
- Enable `::selection` styling in Firefox [PR
341](https://github.com/github/relative-time-element/pull/341)
- Remove timezone from tooltips (It's always local timezone)
- Clean up previous `title` workaround in tippy
- Remove unused features
- Use native `Intl.DurationFormat` with fallback for older browsers,
remove dead polyfill
- Add MIT license header to vendored file
- Add unit tests
- Add dedicated devtest page for all component variants

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude claude-opus-4-6 20250630 <noreply@anthropic.com>
2026-03-13 10:43:17 +00:00
..
fomantic Prevent navigation keys from triggering actions during IME composition (#36540) 2026-02-08 14:39:09 +08:00
diff-file.test.ts support the open-icon of folder (#34168) 2025-04-28 19:51:32 -07:00
diff-file.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
fetch.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
fetch.ts Forbid localStorage access in eslint (#36461) 2026-01-27 19:59:51 +00:00
fomantic.ts Fix various Fomantic UI and htmx problems (#33851) 2025-03-11 11:35:05 -07:00
gitea-actions.ts feat: Add workflow dependencies visualization (#36248) 2026-02-23 21:11:33 +08:00
init.ts Update JS deps (#35978) 2025-11-20 21:53:44 +00:00
observer.ts Use first commit title for multi-commit PRs and fix auto-focus title field (#36606) 2026-02-17 09:06:27 +01:00
shortcut.ts Add keyboard shortcuts for repository file and code search (#36416) 2026-02-23 17:20:56 +08:00
sortable.ts Remove and forbid `@ts-expect-error` (#36513) 2026-02-02 01:00:34 +08:00
tippy.ts Vendor relative-time-element as local web component (#36853) 2026-03-13 10:43:17 +00:00
toast.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
toast.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
user-settings.ts Persist actions log time display settings in `localStorage` (#36623) 2026-02-15 19:41:59 +00:00
worker.ts Fix some typescript issues (#32586) 2024-11-21 13:57:42 +00:00