gitea/web_src/js/utils
silverwind 4a9ac53862
Migrate to `import.meta.env` and clean up types and eslint (#36362)
`import.meta.env` is supported in both vitest and webpack [as of
recent](https://github.com/webpack/webpack/pull/19996), so replace all
previous use of `process.env` with it. Current usage is limited to test
files, I've also verified it works in actual frontend code.

`webpack/module` is added to typescript types which includes the
definition for `import.meta.env`. I've also made the eslint globals more
precise. Finally, `__webpack_public_path__` is removed from our type
definitions because `webpack/module` also provides it.
2026-01-15 11:01:23 +00:00
..
color.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
color.ts Change function description comments to tsdoc style (#35185) 2025-07-31 15:59:34 -07:00
dom.test.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
dom.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
glob.test.ts Update eslint to v9 (#35485) 2025-09-14 19:15:06 +03: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 Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
image.ts Update eslint to v9 (#35485) 2025-09-14 19:15:06 +03:00
match.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
match.ts Change typescript `module` to `nodenext` (#32757) 2024-12-10 08:44:39 +00:00
testhelper.ts Migrate to `import.meta.env` and clean up types and eslint (#36362) 2026-01-15 11:01:23 +00:00
time.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
time.ts Update eslint to v9 (#35485) 2025-09-14 19:15:06 +03: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