forgejo/web_src/js
silverwind 1a17c39e00
Use Temporal.PlainDate for absolute dates (#29804)
Use the upcoming
[Temporal.PlainDate](https://tc39.es/proposal-temporal/docs/plaindate.html)
via polyfill. If there is any remaining bugs in `<absolute-date>` this
will iron them out. I opted for the lightweight polyfill because both
seem to achieve our goal of localizeable absolute dates.

- With
[`@js-temporal/polyfill`](https://www.npmjs.com/package/@js-temporal/polyfill)
chunk size goes from 81.4 KiB to 274 KiB
- With
[`temporal-polyfill`](https://www.npmjs.com/package/temporal-polyfill)
chunk size goes from 81.4 KiB to 142 KiB

Also see [this
table](https://github.com/fullcalendar/temporal-polyfill?tab=readme-ov-file#comparison-with-js-temporalpolyfill)
for more comparisons of these polyfills. Soon there will be
[treeshakable
API](https://github.com/fullcalendar/temporal-polyfill?tab=readme-ov-file#tree-shakable-api)
as well which will further reduce size.

(cherry picked from commit 0d3ec8e2adfcf49329b52d74367698b62ffb3f73)
2024-03-20 08:46:29 +01:00
..
components Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
features Fix Citation modal responsiveness and clipboard copy (#29799) 2024-03-20 08:46:29 +01:00
markup Use more specific selector for name links (#29679) 2024-03-11 23:36:59 +07:00
modules Add <overflow-menu>, rename webcomponents (#29400) 2024-03-20 08:46:29 +01:00
render Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
standalone [FRONTEND] fix javascript linting errors 2024-02-25 23:43:58 +01:00
utils Support pasting URLs over markdown text (#29566) 2024-03-11 23:36:59 +07:00
vendor Vendor jquery.are-you-sure with strict mode fixes (#26901) 2023-09-06 00:02:44 +00:00
webcomponents Use Temporal.PlainDate for absolute dates (#29804) 2024-03-20 08:46:29 +01:00
bootstrap.js Suppress error from monaco-editor (#29684) 2024-03-11 23:37:00 +07:00
bootstrap.test.js Avoid duplicate JS error messages on UI (#28873) 2024-01-21 14:23:08 +00:00
htmx.js Auto-update the system status in admin dashboard (#29163) 2024-02-17 23:24:31 +01:00
index.js Filter Repositories by type (#29231) 2024-03-06 12:10:46 +08:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
svg.js Artifact deletion in actions ui (#27172) 2024-02-23 09:06:14 +01:00
svg.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
utils.js enforce maxlength in frontend (#29389) 2024-02-26 22:30:27 +01:00
utils.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
vitest.setup.js [gitea] Move vitest setup file to root (#29097) 2024-02-10 10:53:43 +01:00