replace new icons

This commit is contained in:
dakkar 2024-11-08 16:28:37 +00:00
parent d6c6ba5531
commit b4e8e78172
2 changed files with 12 additions and 3 deletions

View File

@ -647,8 +647,9 @@ seems to do a decent job)
against Misskey (`git diff misskey/develop`)
* re-generate `misskey-js` (`pnpm build-misskey-js-with-types`) and commit
* build the frontend: `rm -rf built/; NODE_ENV=development pnpm
--filter=frontend --filter=frontend-embed build` (the `development`
tells it to keep some of the original filenames in the built files)
--filter=frontend --filter=frontend-embed --filter=frontend-shared
build` (the `development` tells it to keep some of the original
filenames in the built files)
* make sure there aren't any new `ti-*` classes (Tabler Icons), and
replace them with appropriate `ph-*` ones (Phosphor Icons):
`grep -rP '["'\'']ti[ -](?!fw)' -- built/` should show you what to change.
@ -656,7 +657,8 @@ seems to do a decent job)
alone
after every change, re-build the frontend and check again, until
there are no more `ti-*` classes in the built files
there are no more `ti-*` classes in the built files (you can ignore
the source maps)
commit!
* double-check the new migration, that they won't conflict with our db

View File

@ -204,6 +204,7 @@ export function pluginReplaceIcons() {
'ti ti-confetti': 'ph-confetti ph-bold ph-lg',
'ti ti-cookie': 'ph-cookie ph-bold ph-lg',
'ti ti-copy': 'ph-copy ph-bold ph-lg',
'ti ti-corner-up-right': 'ph-arrow-bend-up-right ph-bold ph-lg',
'ti ti-cpu': 'ph-cpu ph-bold ph-lg',
'ti ti-crop': 'ph-crop ph-bold ph-lg',
'ti ti-crown': 'ph-crown ph-bold ph-lg',
@ -236,6 +237,7 @@ export function pluginReplaceIcons() {
'ti ti-file-text': 'ph-file-text ph-bold ph-lg',
'ti ti-file-zip': 'ph-file-zip ph-bold ph-lg',
'ti ti-filter': 'ph-funnel ph-bold ph-lg',
'ti ti-fingerprint': 'ph-fingerprint ph-bold ph-lg',
'ti ti-flare': 'ph-fire ph-bold ph-lg',
'ti ti-flask': 'ph-flask ph-bold ph-lg',
'ti ti-folder': 'ph-folder ph-bold ph-lg',
@ -254,6 +256,7 @@ export function pluginReplaceIcons() {
'ti ti-hourglass-empty': 'ph-hourglass ph-bold ph-lg',
'ti ti-id': 'ph-identification-card ph-bold ph-lg',
'ti ti-info-circle': 'ph-info ph-bold ph-lg',
'ti ti-json': 'ph-brackets-curly ph-bold ph-lg',
'ti ti-key': 'ph-key ph-bold ph-lg',
'ti ti-language-hiragana': 'ph-translate ph-bold ph-lg',
'ti ti-leaf': 'ph-leaf ph-bold ph-lg',
@ -265,6 +268,7 @@ export function pluginReplaceIcons() {
'ti ti-lock': 'ph-lock ph-bold ph-lg',
'ti ti-lock-open': 'ph-lock-open ph-bold ph-lg',
'ti ti-lock-star': 'ph-shield-star ph-bold ph-lg',
'ti ti-login-2': 'ph-sign-in ph-bold ph-lg',
'ti ti-mail': 'ph-envelope ph-bold ph-lg',
'ti ti-map-pin': 'ph-map-pin ph-bold ph-lg',
'ti ti-maximize': 'ph-frame-corners ph-bold ph-lg',
@ -272,6 +276,7 @@ export function pluginReplaceIcons() {
'ti ti-menu': 'ph-list ph-bold ph-lg',
'ti ti-menu-2': 'ph-list ph-bold ph-lg',
'ti ti-message': 'ph-envelope ph-bold ph-lg',
'ti ti-message-2': 'ph-envelope ph-bold ph-lg',
'ti ti-message-exclamation': 'ph-exclamation ph-bold ph-lg',
'ti ti-message-off': 'ph-bell-slash ph-bold ph-lg',
'ti ti-message-x': 'ph-prohibit ph-bold ph-lg',
@ -333,6 +338,7 @@ export function pluginReplaceIcons() {
'ti ti-share': 'ph-share-network ph-bold ph-lg',
'ti ti-shield': 'ph-shield ph-bold ph-lg',
'ti ti-shield-lock': 'ph-shield ph-bold ph-lg',
'ti ti-slash': 'ph-check-fat ph-bold ph-lg',
'ti ti-snowflake': 'ph-snowflake ph-bold ph-lg',
'ti ti-sparkles': 'ph-sparkle ph-bold ph-lg',
'ti ti-speakerphone': 'ph-megaphone ph-bold ph-lg',
@ -358,6 +364,7 @@ export function pluginReplaceIcons() {
'ti ti-user-search': 'ph-user-circle ph-bold ph-lg',
'ti ti-user-shield': 'ph-newspaper-clipping ph-bold ph-lg',
'ti ti-user-star': 'ph-user-focus ph-bold ph-lg',
'ti ti-user-x': 'ph-prohibit ph-bold ph-lg',
'ti ti-users': 'ph-users ph-bold ph-lg',
'ti ti-video': 'ph-video ph-bold ph-lg',
'ti ti-volume': 'ph-speaker-high ph-bold ph-lg',