gitea/web_src/js
silverwind 817d5e4d30
Use Temporal.PlainDate for absolute dates (#29804) (#29808)
Backport https://github.com/go-gitea/gitea/pull/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.
2024-03-15 11:20:42 +01:00
..
components Use Get but not Post to get actions artifacts (#29734) (#29737) 2024-03-12 17:31:45 +01:00
features Don't show AbortErrors on logout (#29639) (#29667) 2024-03-09 17:22:18 +08:00
markup Use more specific selector for name links (#29679) (#29681) 2024-03-09 08:40:05 +08:00
modules Avoid showing unnecessary JS errors when there are elements with different origin on the page (#29081) (#29089) 2024-02-08 02:48:06 +00:00
render Use vitest globals (#27102) (#27311) 2023-09-27 16:10:08 +02:00
standalone Add toasts to UI (#25449) 2023-06-27 02:45:24 +00:00
test Avoid duplicate JS error messages on UI (#28873) (#28881) 2024-01-21 15:40:26 +00:00
utils Make submit event code work with both jQuery event and native event (#29223) (#29234) 2024-02-18 06:36:41 +00: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) (#29808) 2024-03-15 11:20:42 +01:00
bootstrap.js Suppress error from monaco-editor (#29684) (#29758) 2024-03-13 09:02:00 +01:00
bootstrap.test.js Avoid duplicate JS error messages on UI (#28873) (#28881) 2024-01-21 15:40:26 +00:00
index.js Hide archived labels by default from the suggestions when assigning labels for an issue (#27451) (#27661) 2023-10-17 14:46:35 +00: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 Replace ajax with fetch, improve image diff (#27267) (#27583) 2023-10-11 16:12:31 +02:00
svg.test.js Use vitest globals (#27102) (#27311) 2023-09-27 16:10:08 +02:00
utils.js enforce maxlength in frontend (#29389) (#29396) 2024-02-25 14:56:44 +00:00
utils.test.js Use vitest globals (#27102) (#27311) 2023-09-27 16:10:08 +02:00