enhance: Proxy custom emojis to reduce image size and accelerate the frontend (#9431)
* fix(server): /emoji to accept `@.` host expression * fix(client): use MkEmoji for custom emoji in MkEmojiPicker * change convertToWebp * nanka iroiro * remove * fix * nearLosslessは労多くして益少なしなのでやめる * do not cleanup tmp for development * update sharp.js to 0.31.3 * mixed: true * fix MkAutocomplete of 912791b3 * clean up * https://github.com/misskey-dev/misskey/pull/9431#discussion_r1059215943
Showing
- packages/backend/package.json 1 addition, 1 deletionpackages/backend/package.json
- packages/backend/src/core/CustomEmojiService.ts 1 addition, 6 deletionspackages/backend/src/core/CustomEmojiService.ts
- packages/backend/src/core/DownloadService.ts 1 addition, 1 deletionpackages/backend/src/core/DownloadService.ts
- packages/backend/src/core/ImageProcessingService.ts 14 additions, 6 deletionspackages/backend/src/core/ImageProcessingService.ts
- packages/backend/src/misc/create-temp.ts 2 additions, 2 deletionspackages/backend/src/misc/create-temp.ts
- packages/backend/src/misc/prelude/url.ts 5 additions, 0 deletionspackages/backend/src/misc/prelude/url.ts
- packages/backend/src/server/MediaProxyServerService.ts 19 additions, 6 deletionspackages/backend/src/server/MediaProxyServerService.ts
- packages/backend/src/server/web/ClientServerService.ts 10 additions, 3 deletionspackages/backend/src/server/web/ClientServerService.ts
- packages/frontend/src/components/MkAutocomplete.vue 19 additions, 12 deletionspackages/frontend/src/components/MkAutocomplete.vue
- packages/frontend/src/components/MkEmojiPicker.vue 0 additions, 1 deletionpackages/frontend/src/components/MkEmojiPicker.vue
- packages/frontend/src/components/MkMediaImage.vue 1 addition, 1 deletionpackages/frontend/src/components/MkMediaImage.vue
- packages/frontend/src/components/global/MkAvatar.vue 1 addition, 1 deletionpackages/frontend/src/components/global/MkAvatar.vue
- packages/frontend/src/components/global/MkEmoji.vue 1 addition, 1 deletionpackages/frontend/src/components/global/MkEmoji.vue
- packages/frontend/src/pages/user/index.photos.vue 1 addition, 1 deletionpackages/frontend/src/pages/user/index.photos.vue
- packages/frontend/src/scripts/get-static-image-url.ts 0 additions, 19 deletionspackages/frontend/src/scripts/get-static-image-url.ts
- packages/frontend/src/scripts/media-proxy.ts 33 additions, 1 deletionpackages/frontend/src/scripts/media-proxy.ts
- packages/frontend/src/scripts/url.ts 5 additions, 0 deletionspackages/frontend/src/scripts/url.ts
- packages/frontend/src/widgets/photos.vue 1 addition, 1 deletionpackages/frontend/src/widgets/photos.vue
- packages/sw/src/scripts/url.ts 5 additions, 0 deletionspackages/sw/src/scripts/url.ts
- yarn.lock 20 additions, 29 deletionsyarn.lock
Loading
Please register or sign in to comment