1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-25 12:41:54 +01:00
gitea/web_src/js/utils
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
..
color.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
color.ts Replace tinycolor2 with colord (#36673) 2026-02-20 15:43:01 +00:00
dom.test.ts Update JS dependencies, adjust webpack config, misc fixes (#36431) 2026-01-24 07:35:46 +00:00
dom.ts Fix markup code block layout (#36578) 2026-02-11 03:22:33 +00:00
glob.test.ts Misc typescript tweaks (#36523) 2026-02-10 05:09:56 +00:00
glob.test.txt Fix different behavior in status check pattern matching with double stars (#35474) 2025-09-13 11:53:27 +08:00
glob.ts Fix different behavior in status check pattern matching with double stars (#35474) 2025-09-13 11:53:27 +08:00
html.test.ts Improve html escape (#34911) 2025-07-01 21:44:05 +08:00
html.ts Update eslint to v9 (#35485) 2025-09-14 19:15:06 +03:00
image.test.ts Forbid localStorage access in eslint (#36461) 2026-01-27 19:59:51 +00:00
image.ts Update eslint to v9 (#35485) 2025-09-14 19:15:06 +03:00
match.test.ts Load mentionValues asynchronously (#36739) 2026-03-07 12:37:37 -08:00
match.ts Load mentionValues asynchronously (#36739) 2026-03-07 12:37:37 -08:00
testhelper.ts Add elk layout support to mermaid (#36486) 2026-02-07 02:22:57 +00:00
time.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
time.ts Vendor relative-time-element as local web component (#36853) 2026-03-13 10:43:17 +00:00
url.test.ts Enable more markdown paste features in textarea editor (#35494) 2025-09-16 23:55:57 +00:00
url.ts Enable more markdown paste features in textarea editor (#35494) 2025-09-16 23:55:57 +00:00