calckey/src/client/components
Johann150 414f1d1158
fix: truncate image descriptions (#7699)
* move truncate function to separate file to reuse it

* truncate image descriptions

* show image description limit in UI

* correctly treat null

Co-authored-by: nullobsi <me@nullob.si>

* make truncate Unicode-aware

The strings that truncate returns should now be valid Unicode.

PostgreSQL also counts Unicode Code Points instead of bytes so this
should be correct.

* move truncate to internal, validate in API

Truncating could also be done in src/services/drive/add-file.ts or
src/services/drive/upload-from-url.ts but those would also affect
local images. But local images should result in a hard error if the
image comment is too long.

* avoid overwriting

Co-authored-by: nullobsi <me@nullob.si>
2021-09-30 01:44:22 +09:00
..
debobigego 🎨 2021-09-30 01:13:54 +09:00
form refactor components 2021-09-30 00:50:45 +09:00
global Refine UI (#7806) 2021-09-17 22:39:15 +09:00
page refactor components 2021-09-30 00:50:45 +09:00
ui refactor components 2021-09-30 00:50:45 +09:00
abuse-report-window.vue refactor components 2021-09-30 00:50:45 +09:00
analog-clock.vue 🎨 2021-07-19 23:48:22 +09:00
autocomplete.vue chore: clean up 2021-09-26 03:25:52 +09:00
avatars.vue display online status 2021-04-17 23:52:54 +09:00
captcha.vue Fix #7483 2021-04-26 12:47:54 +09:00
channel-follow-button.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
channel-preview.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
code-core.vue MFM のバッククオートで囲ったコードが表示されないのを修正 (#6741) 2020-10-19 08:37:07 +09:00
code.vue Migrate to Vue3 (#6587) 2020-10-17 20:12:00 +09:00
cw-button.vue refactor components 2021-09-30 00:50:45 +09:00
date-separated-list.vue 🎨 2021-08-14 22:35:15 +09:00
dialog.vue refactor components 2021-09-30 00:50:45 +09:00
drive-file-thumbnail.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
drive-select-dialog.vue refactor: Tweak path alias of client 2021-03-23 17:30:14 +09:00
drive-window.vue refactor: Tweak path alias of client 2021-03-23 17:30:14 +09:00
drive.file.vue Improve client 2021-08-08 12:19:10 +09:00
drive.folder.vue Fix #7481 2021-04-25 22:32:46 +09:00
drive.nav-folder.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
drive.vue Improve client 2021-08-08 12:19:10 +09:00
emoji-picker-dialog.vue 🎨 2021-08-09 18:01:12 +09:00
emoji-picker-window.vue Default UI redesign (#7429) 2021-04-10 12:40:50 +09:00
emoji-picker.section.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
emoji-picker.vue 🎨 2021-08-09 18:01:12 +09:00
featured-photos.vue 歓迎ページでバナー画像が表示されない問題を修正 (#7559) 2021-06-08 12:17:17 +09:00
file-type-icon.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
follow-button.vue ストリーミングが不安定な問題を修正 2021-07-26 11:12:06 +09:00
forgot-password.vue refactor components 2021-09-30 00:50:45 +09:00
form-dialog.vue refactor components 2021-09-30 00:50:45 +09:00
formula-core.vue refactor: Tweak path alias of client 2021-03-23 17:30:14 +09:00
formula.vue refactor: Tweak path alias of client 2021-03-23 17:30:14 +09:00
gallery-post-preview.vue Gallery (#7194) 2021-04-24 22:38:24 +09:00
google.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
image-viewer.vue Add image description support (#7518) 2021-05-28 09:38:09 +09:00
img-with-blurhash.vue Tweak UI 2021-04-16 12:06:54 +09:00
index.ts Ad (#7495) 2021-05-04 21:15:57 +09:00
instance-stats.vue refactor components 2021-09-30 00:50:45 +09:00
instance-ticker.vue refactor: Tweak path alias of client 2021-03-23 17:30:14 +09:00
launch-pad.vue Classic UI 2021-07-19 11:36:35 +09:00
link.vue 外部リンクアイコンが表示されない問題を修正 2021-06-08 12:19:55 +09:00
media-banner.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
media-caption.vue fix: truncate image descriptions (#7699) 2021-09-30 01:44:22 +09:00
media-image.vue Add image description support (#7518) 2021-05-28 09:38:09 +09:00
media-list.vue Revert "Resolve #6811" 2021-07-14 00:13:23 +09:00
media-video.vue Fix video (#7594) 2021-07-10 23:19:56 +09:00
mention.vue Fix punycode deprecation warning (#7426) 2021-04-04 13:00:39 +09:00
mfm.ts feat: MFM Sparkle animation (#7813) 2021-09-22 22:09:23 +09:00
mini-chart.vue refactor: Tweak path alias of client 2021-03-23 17:30:14 +09:00
modal-page-window.vue 🎨 2021-08-09 21:41:20 +09:00
note-detailed.vue refactor components 2021-09-30 00:50:45 +09:00
note-header.vue enhance: ノートヘッダーにflex-shrinkを設定し、Acctを優先的に縮小して見栄えをよくするように (#7752) 2021-09-20 22:14:49 +09:00
note-preview.vue refactor components 2021-09-30 00:50:45 +09:00
note.sub.vue refactor components 2021-09-30 00:50:45 +09:00
note.vue refactor components 2021-09-30 00:50:45 +09:00
notes.vue 🎨 2021-08-21 17:40:15 +09:00
notification-setting-window.vue refactor components 2021-09-30 00:50:45 +09:00
notification.vue refactor 2021-08-05 16:34:18 +09:00
notifications.vue 🎨 2021-08-21 17:40:15 +09:00
page-preview.vue refactor 2021-08-05 16:34:18 +09:00
page-window.vue fix style 2021-09-18 21:26:31 +09:00
particle.vue Migrate to Vue3 (#6587) 2020-10-17 20:12:00 +09:00
poll-editor.vue refactor components 2021-09-30 00:50:45 +09:00
poll.vue Rich welcome content (#7588) 2021-07-10 02:55:12 +09:00
post-form-attaches.vue Improve client 2021-08-08 12:19:10 +09:00
post-form-dialog.vue refactor: Tweak path alias of client 2021-03-23 17:30:14 +09:00
post-form.vue fix(client): ノートの「削除して編集」をするとアンケートの選択肢が[object Object]になる問題を修正 2021-08-21 11:16:56 +09:00
reaction-icon.vue 絵文字ピッカーで最近使用した絵文字がバグっているのを修正 2020-11-08 12:08:07 +09:00
reactions-viewer.details.vue カスタム絵文字がつぶれる問題を修正 2020-10-27 18:28:37 +09:00
reactions-viewer.reaction.vue 🎨 2021-08-09 18:55:39 +09:00
reactions-viewer.vue Storage improve (#6976) 2020-12-19 10:55:52 +09:00
remote-caution.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
sample.vue refactor components 2021-09-30 00:50:45 +09:00
signin-dialog.vue refactor: Tweak path alias of client 2021-03-23 17:30:14 +09:00
signin.vue refactor components 2021-09-30 00:50:45 +09:00
signup-dialog.vue Tweak UI 2021-04-13 12:43:19 +09:00
signup.vue refactor components 2021-09-30 00:50:45 +09:00
sparkle.vue feat: MFM Sparkle animation (#7813) 2021-09-22 22:09:23 +09:00
sub-note-content.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
tab.vue refactor components 2021-09-30 00:50:45 +09:00
taskmanager.api-window.vue refactor components 2021-09-30 00:50:45 +09:00
taskmanager.vue refactor components 2021-09-30 00:50:45 +09:00
timeline.vue ストリーミングが不安定な問題を修正 2021-07-26 11:12:06 +09:00
toast.vue Revert "perf: use overflow: clip instead of hidden" (#7273) 2021-03-02 22:57:16 +09:00
token-generate-window.vue refactor components 2021-09-30 00:50:45 +09:00
updated.vue feat(client): Misskey更新時にダイアログを表示するように 2021-08-13 17:59:54 +09:00
url-preview-popup.vue refactor: Tweak path alias of client 2021-03-23 17:30:14 +09:00
url-preview.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
user-info.vue refactor 2021-08-05 16:34:18 +09:00
user-list.vue refactor 2021-08-05 16:34:18 +09:00
user-online-indicator.vue Tweak style 2021-04-20 16:58:05 +09:00
user-preview.vue refactor 2021-08-05 16:34:18 +09:00
user-select-dialog.vue refactor components 2021-09-30 00:50:45 +09:00
users-dialog.vue refactor 2021-08-05 16:34:18 +09:00
visibility-picker.vue Use FontAwesome as web font instead of vue component (#7469) 2021-04-20 23:22:59 +09:00
waiting-dialog.vue fix style 2021-04-23 12:17:04 +09:00
widgets.vue refactor components 2021-09-30 00:50:45 +09:00