gitea/web_src/js/features
silverwind 91dc737a35
Replace `tinycolor2` with `colord` (#36673)
[`colord`](https://github.com/omgovich/colord) is significantly smaller
than [`tinycolor2`](https://github.com/bgrins/TinyColor) (~4KB vs ~29KB
minified) and ships its own TypeScript types, removing the need for
`@types/tinycolor2`.

Behaviour is exactly the same for our use cases. By using `.alpha(1)` we
force the function to always output 6-digit hex format (it would output
8-digit for non-opaque colors).

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:43:01 +00:00
..
admin Fix various bugs (#36446) 2026-01-24 11:30:47 +00:00
comp Prevent navigation keys from triggering actions during IME composition (#36540) 2026-02-08 14:39:09 +08:00
captcha.ts Remove and forbid `@ts-expect-error` (#36513) 2026-02-02 01:00:34 +08:00
citation.ts Remove and forbid `@ts-expect-error` (#36513) 2026-02-02 01:00:34 +08:00
clipboard.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
code-frequency.ts
codeeditor.ts Replace `tinycolor2` with `colord` (#36673) 2026-02-20 15:43:01 +00:00
colorpicker.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
common-button.test.ts Fix form property assignment edge case (#35073) 2025-07-14 15:20:17 -07:00
common-button.ts Use first commit title for multi-commit PRs and fix auto-focus title field (#36606) 2026-02-17 09:06:27 +01:00
common-fetch-action.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
common-form.ts Prevent navigation keys from triggering actions during IME composition (#36540) 2026-02-08 14:39:09 +08:00
common-issue-list.test.ts Fix various bugs (#36446) 2026-01-24 11:30:47 +00:00
common-issue-list.ts Fix various bugs (#36446) 2026-01-24 11:30:47 +00:00
common-organization.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
common-page.ts Use first commit title for multi-commit PRs and fix auto-focus title field (#36606) 2026-02-17 09:06:27 +01:00
contributors.ts Add "n commits" link to contributors in contributors graph page (#32799) 2024-12-12 19:02:54 +00:00
copycontent.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
dashboard.ts Enable Typescript `noImplicitThis` (#33250) 2025-01-16 04:26:17 +08:00
dropzone.ts Replace CSRF cookie with `CrossOriginProtection` (#36183) 2025-12-25 12:33:34 +02:00
emoji.ts Improve html escape (#34911) 2025-07-01 21:44:05 +08:00
eventsource.sharedworker.ts Remove and forbid `@ts-expect-error` (#36513) 2026-02-02 01:00:34 +08:00
file-fold.ts Mark parent directory as viewed when all files are viewed (#33958) 2025-04-15 22:35:22 +08:00
file-view.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
heatmap.ts Load heatmap data asynchronously (#36622) 2026-02-17 14:03:55 +00:00
imagediff.ts Fix SVG size calulation, only use `style` attribute (#36133) 2025-12-12 09:39:02 +02:00
install.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
issue.ts Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
notification.ts Migrate to `import.meta.env` and clean up types and eslint (#36362) 2026-01-15 11:01:23 +00:00
oauth2-settings.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
org-team.ts Fix package link setting can only list limited repositories (#35394) 2025-09-11 01:50:17 +02:00
pull-view-file.ts Replace CSRF cookie with `CrossOriginProtection` (#36183) 2025-12-25 12:33:34 +02:00
recent-commits.ts
repo-actions.ts Grey out expired artifact on Artifacts list (#34314) 2025-05-05 21:53:17 -07:00
repo-branch.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-code.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-commit.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-common.test.ts Fix some migration and repo name problems (#33986) 2025-03-24 20:26:58 -07:00
repo-common.ts Fix and enhance comment editor monospace toggle (#36181) 2026-01-26 14:19:47 +00:00
repo-diff-commit.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-diff-commitselect.ts
repo-diff-filetree.ts Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +00:00
repo-diff.ts fix(diff): reprocess htmx content after loading more files (#36568) 2026-02-10 01:20:20 +00:00
repo-editor.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-findfile.test.ts
repo-findfile.ts Add "Go to file", "Delete Directory" to repo file list page (#35911) 2025-11-30 11:58:15 +08:00
repo-graph.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-home.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-issue-content.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-issue-edit.ts Fix state desync in ComboMarkdownEditor (#36625) 2026-02-16 00:49:03 +00:00
repo-issue-list.ts Remove and forbid `@ts-expect-error` (#36513) 2026-02-02 01:00:34 +08:00
repo-issue-pull.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-issue-sidebar-combolist.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-issue-sidebar.md Fix assignee sidebar links and empty placeholder after #32465 refactor (#36559) 2026-02-08 21:00:18 +00:00
repo-issue-sidebar.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-issue.ts Prevent navigation keys from triggering actions during IME composition (#36540) 2026-02-08 14:39:09 +08:00
repo-legacy.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-migrate.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-migration.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-milestone.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-new.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-projects.ts Remove and forbid `@ts-expect-error` (#36513) 2026-02-02 01:00:34 +08:00
repo-release.test.ts Automatic generation of release notes (#35977) 2025-12-17 02:01:19 +00:00
repo-release.ts Automatic generation of release notes (#35977) 2025-12-17 02:01:19 +00:00
repo-search.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-settings-branches.test.ts Remove and forbid `@ts-expect-error` (#36513) 2026-02-02 01:00:34 +08:00
repo-settings-branches.ts Remove and forbid `@ts-expect-error` (#36513) 2026-02-02 01:00:34 +08:00
repo-settings.ts Replace CSRF cookie with `CrossOriginProtection` (#36183) 2025-12-25 12:33:34 +02:00
repo-unicode-escape.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-view-file-tree.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
repo-wiki.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
sshkey-helper.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
stopwatch.ts Migrate to `import.meta.env` and clean up types and eslint (#36362) 2026-01-15 11:01:23 +00:00
tablesort.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
tribute.ts Misc typescript tweaks (#36523) 2026-02-10 05:09:56 +00:00
user-auth-webauthn.ts Fix WebAuthn error checking (#36219) 2025-12-21 18:24:41 +00:00
user-auth.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00
user-settings.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +00:00