mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 09:49:05 +01:00
Gay Yarn-ing: Update Yarn to 4.1.1. Update Phosphor Icons to 2.1.1, Unified Messaging: Change Description from Chat to Messenger, Add Channels Tab to Messenger, Change Icon to Tornado
This commit is contained in:
parent
b0c3da3ff0
commit
622b922eff
8
.pnp.cjs
generated
8
.pnp.cjs
generated
@ -2805,10 +2805,10 @@ const RAW_RUNTIME_STATE =
|
||||
}]\
|
||||
]],\
|
||||
["@phosphor-icons/web", [\
|
||||
["npm:2.0.3", {\
|
||||
"packageLocation": "./.yarn/cache/@phosphor-icons-web-npm-2.0.3-92e5ef0d58-319a1aa953.zip/node_modules/@phosphor-icons/web/",\
|
||||
["npm:2.1.1", {\
|
||||
"packageLocation": "./.yarn/cache/@phosphor-icons-web-npm-2.1.1-9f02e5c0cb-64c6670df0.zip/node_modules/@phosphor-icons/web/",\
|
||||
"packageDependencies": [\
|
||||
["@phosphor-icons/web", "npm:2.0.3"]\
|
||||
["@phosphor-icons/web", "npm:2.1.1"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
@ -8316,7 +8316,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@discordapp/twemoji", "npm:14.1.2"],\
|
||||
["@eslint-sets/eslint-config-vue3", "virtual:658502eb4296e93abedc18b6aa9b26978f434f08d98e21ebb0e725354b8bb54b62db9c4a1893e460c694ff7500ff5cbafa4457b0dfd26b5838868666c861e990#npm:5.7.0"],\
|
||||
["@eslint-sets/eslint-config-vue3-ts", "virtual:658502eb4296e93abedc18b6aa9b26978f434f08d98e21ebb0e725354b8bb54b62db9c4a1893e460c694ff7500ff5cbafa4457b0dfd26b5838868666c861e990#npm:3.3.0"],\
|
||||
["@phosphor-icons/web", "npm:2.0.3"],\
|
||||
["@phosphor-icons/web", "npm:2.1.1"],\
|
||||
["@rollup/plugin-alias", "virtual:658502eb4296e93abedc18b6aa9b26978f434f08d98e21ebb0e725354b8bb54b62db9c4a1893e460c694ff7500ff5cbafa4457b0dfd26b5838868666c861e990#npm:5.1.0"],\
|
||||
["@rollup/plugin-json", "virtual:658502eb4296e93abedc18b6aa9b26978f434f08d98e21ebb0e725354b8bb54b62db9c4a1893e460c694ff7500ff5cbafa4457b0dfd26b5838868666c861e990#npm:6.0.1"],\
|
||||
["@rollup/pluginutils", "virtual:658502eb4296e93abedc18b6aa9b26978f434f08d98e21ebb0e725354b8bb54b62db9c4a1893e460c694ff7500ff5cbafa4457b0dfd26b5838868666c861e990#npm:5.1.0"],\
|
||||
|
Binary file not shown.
BIN
.yarn/cache/@phosphor-icons-web-npm-2.1.1-9f02e5c0cb-64c6670df0.zip
vendored
Normal file
BIN
.yarn/cache/@phosphor-icons-web-npm-2.1.1-9f02e5c0cb-64c6670df0.zip
vendored
Normal file
Binary file not shown.
@ -1,10 +1,12 @@
|
||||
checksumBehavior: update
|
||||
|
||||
compressionLevel: mixed
|
||||
|
||||
enableGlobalCache: false
|
||||
|
||||
nodeLinker: pnp
|
||||
enableImmutableInstalls: true
|
||||
|
||||
checksumBehavior: update
|
||||
nodeLinker: pnp
|
||||
|
||||
npmScopes:
|
||||
trashposs:
|
||||
|
@ -231,7 +231,7 @@ removeAreYouSure: "متأكد من أنك تريد حذف {x}؟"
|
||||
deleteAreYouSure: "متأكد من أنك تريد حذف {x}؟"
|
||||
resetAreYouSure: "هل تريد إعادة التعيين؟"
|
||||
saved: "حُفظ"
|
||||
messaging: "المحادثة"
|
||||
messaging: "Messenger"
|
||||
upload: "ارفع"
|
||||
keepOriginalUploading: "ابق الصورة الأصلية"
|
||||
keepOriginalUploadingDescription: "يحفظ الصور المرفوعة على حالتها الأصلية، وان عطّل ستولد نسخة مخصصة من الصورة."
|
||||
|
@ -235,7 +235,7 @@ removeAreYouSure: "আপনি কি \"{x}\" সরানোর ব্যা
|
||||
deleteAreYouSure: "আপনি কি \"{x}\" সরানোর ব্যাপারে নিশ্চিত?"
|
||||
resetAreYouSure: "রিসেট করার ব্যাপারে নিশ্চিত?"
|
||||
saved: "সংরক্ষিত হয়েছে"
|
||||
messaging: "চ্যাট"
|
||||
messaging: "Messenger"
|
||||
upload: "আপলোড"
|
||||
keepOriginalUploading: "আসল ছবি রাখুন"
|
||||
keepOriginalUploadingDescription: "ছবিটি আপলোড করার সময় আসল সংস্করণটি রাখুন। অপশনটি বন্ধ থাকলে, আপলোডের সময় ওয়েব প্রকাশনার জন্য ছবি ব্রাউজারে তৈরি করা হবে।"
|
||||
|
@ -579,7 +579,7 @@ startMessaging: Започване на нов чат
|
||||
uploadFromUrl: Качване от URL адрес
|
||||
imageUrl: URL адрес на изображение
|
||||
fromUrl: От URL адрес
|
||||
messaging: Чат
|
||||
messaging: Messenger
|
||||
avatar: Профилна снимка
|
||||
instanceName: Име на сървъра
|
||||
instanceDescription: Описание на сървъра
|
||||
|
@ -877,7 +877,7 @@ deleteAreYouSure: Segur que vols eliminar "{x}"?
|
||||
resetAreYouSure: Segur que vols restablir?
|
||||
fromUrl: Des d'una URL
|
||||
saved: S'ha desat
|
||||
messaging: Xat
|
||||
messaging: Messenger
|
||||
upload: Puja
|
||||
keepOriginalUploading: Desa la imatge original
|
||||
keepOriginalUploadingDescription: Desa la imatge original pujada tal com es. Si es
|
||||
|
@ -237,7 +237,7 @@ removeAreYouSure: "Jste si jistí že chcete smazat \"{x}\"?"
|
||||
deleteAreYouSure: "Jste si jistí že chcete smazat \"{x}\"?"
|
||||
resetAreYouSure: "Opravdu resetovat?"
|
||||
saved: "Uloženo"
|
||||
messaging: "Zprávy"
|
||||
messaging: "Messenger"
|
||||
upload: "Nahrát soubory"
|
||||
fromDrive: "Z disku"
|
||||
fromUrl: "Z URL"
|
||||
|
@ -264,7 +264,7 @@ removeAreYouSure: "Sind Sie sicher, dass Sie \"{x}\" entfernen wollen?"
|
||||
deleteAreYouSure: "Sind Sie sicher, dass Sie \"{x}\" löschen wollen?"
|
||||
resetAreYouSure: "Wirklich zurücksetzen?"
|
||||
saved: "Gespeichert"
|
||||
messaging: "Chat"
|
||||
messaging: "Messenger"
|
||||
upload: "Hochladen"
|
||||
keepOriginalUploading: "Originalbild behalten"
|
||||
keepOriginalUploadingDescription: "Speichert das ursprünglich hochgeladene Bild so,
|
||||
|
@ -169,7 +169,7 @@ imageUrl: "URL εικόνας"
|
||||
remove: "Διαγραφή"
|
||||
removed: "Η διαγραφή ολοκληρώθηκε επιτυχώς"
|
||||
saved: "Αποθηκεύτηκε"
|
||||
messaging: "Συνομιλία"
|
||||
messaging: "Messenger"
|
||||
upload: "Ανεβάστε"
|
||||
fromDrive: "Από τον Αποθηκευτικό Χώρο"
|
||||
fromUrl: "Από URL"
|
||||
|
@ -289,7 +289,7 @@ removeAreYouSure: "Are you sure you want to remove \"{x}\"?"
|
||||
deleteAreYouSure: "Are you sure you want to delete \"{x}\"?"
|
||||
resetAreYouSure: "Are you sure you want to reset?"
|
||||
saved: "Saved"
|
||||
messaging: "Chat"
|
||||
messaging: "Messenger"
|
||||
upload: "Upload"
|
||||
keepOriginalUploading: "Keep original image"
|
||||
keepOriginalUploadingDescription: "Saves the originally uploaded image as-is. If turned
|
||||
|
@ -256,7 +256,7 @@ removeAreYouSure: "¿Estás seguro de querer borrar \"{x}\"?"
|
||||
deleteAreYouSure: "¿Estás seguro de querer borrar \"{x}\"?"
|
||||
resetAreYouSure: "¿Estás seguro de que quieres reestablecer?"
|
||||
saved: "Guardado"
|
||||
messaging: "Chat"
|
||||
messaging: "Messenger"
|
||||
upload: "Subir"
|
||||
keepOriginalUploading: "Mantener la imagen original"
|
||||
keepOriginalUploadingDescription: "Mantener la versión original al cargar imágenes.
|
||||
|
@ -283,7 +283,7 @@ removed: Onnistuneesti poistettu
|
||||
removeAreYouSure: Oletko varma, että haluat poistaa " {x}"?
|
||||
resetAreYouSure: Haluatko nollata?
|
||||
saved: Tallennettu
|
||||
messaging: Juttele
|
||||
messaging: Messenger
|
||||
upload: Lataa ylös
|
||||
fromUrl: URL:stä
|
||||
uploadFromUrl: Ylöslataa URL:stä
|
||||
|
@ -261,7 +261,7 @@ removeAreYouSure: "Êtes-vous sûr·e de vouloir supprimer «{x}» ?"
|
||||
deleteAreYouSure: "Êtes-vous sûr·e de vouloir supprimer «{x}» ?"
|
||||
resetAreYouSure: "Êtes-vous sûr de vouloir réinitialiser ?"
|
||||
saved: "Enregistré"
|
||||
messaging: "Discuter"
|
||||
messaging: "Messenger"
|
||||
upload: "Téléverser"
|
||||
keepOriginalUploading: "Garder l’image d’origine"
|
||||
fromDrive: "Depuis le Drive"
|
||||
|
@ -259,7 +259,7 @@ removeAreYouSure: "Apakah kamu yakin ingin menghapus \"{x}\"?"
|
||||
deleteAreYouSure: "Apakah kamu yakin ingin menghapus \"{x}\"?"
|
||||
resetAreYouSure: "Yakin mau atur ulang?"
|
||||
saved: "Telah disimpan"
|
||||
messaging: "Pesan"
|
||||
messaging: "Messenger"
|
||||
upload: "Unggah"
|
||||
keepOriginalUploading: "Simpan gambar asli"
|
||||
keepOriginalUploadingDescription: "Simpan gambar yang diunggah sebagaimana gambar\
|
||||
|
@ -254,7 +254,7 @@ removeAreYouSure: "Eliminare \"{x}\"?"
|
||||
deleteAreYouSure: "Eliminare \"{x}\"?"
|
||||
resetAreYouSure: "Reimposta"
|
||||
saved: "Salvato"
|
||||
messaging: "Messaggi"
|
||||
messaging: "Messenger"
|
||||
upload: "Carica"
|
||||
fromDrive: "Dal Drive"
|
||||
fromUrl: "Dall'URL"
|
||||
|
@ -252,7 +252,7 @@ removeAreYouSure: "「{x}」を削除しますか?"
|
||||
deleteAreYouSure: "「{x}」を削除しますか?"
|
||||
resetAreYouSure: "リセットしますか?"
|
||||
saved: "保存しました"
|
||||
messaging: "チャット"
|
||||
messaging: "Messenger"
|
||||
upload: "アップロード"
|
||||
keepOriginalUploading: "オリジナル画像を保持"
|
||||
keepOriginalUploadingDescription: "画像をアップロードする時にオリジナル版を保持します。オフにするとアップロード時にブラウザでWeb公開用画像を生成します。"
|
||||
|
@ -236,7 +236,7 @@ removeAreYouSure: "「{x}」はほかしてええか?"
|
||||
deleteAreYouSure: "「{x}」はほかしてええか?"
|
||||
resetAreYouSure: "リセットしてええん?"
|
||||
saved: "保存したで!"
|
||||
messaging: "チャット"
|
||||
messaging: "Messenger"
|
||||
upload: "アップロード"
|
||||
keepOriginalUploading: "Retain the original image. "
|
||||
keepOriginalUploadingDescription: "When uploading the clip, the original version will be retained. Turning it of then uploading will produce images for public use. "
|
||||
|
@ -236,7 +236,7 @@ removeAreYouSure: "\"{x}\" 을(를) 삭제하시겠습니까?"
|
||||
deleteAreYouSure: "\"{x}\" 을(를) 삭제하시겠습니까?"
|
||||
resetAreYouSure: "초기화 하시겠습니까?"
|
||||
saved: "저장하였습니다"
|
||||
messaging: "대화"
|
||||
messaging: "Messenger"
|
||||
upload: "업로드"
|
||||
keepOriginalUploading: "원본 이미지를 유지"
|
||||
keepOriginalUploadingDescription: "이미지를 업로드할 때에 원본을 그대로 유지합니다. 비활성화하면 업로드할 때 브라우저에서 웹 공개용 이미지를 생성합니다."
|
||||
|
@ -241,7 +241,7 @@ removeAreYouSure: "Weet je zeker dat je \"{x}\" wil verwijderen?"
|
||||
deleteAreYouSure: "Weet je zeker dat je \"{x}\" wil verwijderen?"
|
||||
resetAreYouSure: "Weet je zeker dat je wilt resetten?"
|
||||
saved: "Opgeslagen"
|
||||
messaging: "Chat"
|
||||
messaging: "Messenger"
|
||||
upload: "Uploaden"
|
||||
keepOriginalUploading: "Origineel beeld behouden."
|
||||
keepOriginalUploadingDescription: "Bewaar de originele versie bij het uploaden van
|
||||
|
@ -249,7 +249,7 @@ removeAreYouSure: "Czy na pewno chcesz usunąć „{x}”?"
|
||||
deleteAreYouSure: "Czy na pewno chcesz usunąć „{x}”?"
|
||||
resetAreYouSure: "Czy na pewno chcesz zresetować?"
|
||||
saved: "Zapisano"
|
||||
messaging: "Wiadomości"
|
||||
messaging: "Messenger"
|
||||
upload: "Wyślij"
|
||||
keepOriginalUploading: "Zachowaj oryginalny obraz"
|
||||
fromDrive: "Z dysku"
|
||||
|
@ -236,7 +236,7 @@ removeAreYouSure: "Deseja excluir \"{x}\"?"
|
||||
deleteAreYouSure: "Deseja excluir \"{x}\"?"
|
||||
resetAreYouSure: "Redefinir agora?"
|
||||
saved: "Salvo"
|
||||
messaging: "Chat"
|
||||
messaging: "Messenger"
|
||||
upload: "Enviando"
|
||||
keepOriginalUploading: "Manter a imagem original"
|
||||
keepOriginalUploadingDescription: "Mantenha a versão original ao carregar a imagem. Quando desligado, a imagem para publicação na web será gerada no navegador no momento do upload."
|
||||
|
@ -235,7 +235,7 @@ removeAreYouSure: "Ești sigur că vrei să înlături {x}?"
|
||||
deleteAreYouSure: "Ești sigur că vrei să ștergi {x}?"
|
||||
resetAreYouSure: "Sigur vrei să resetezi?"
|
||||
saved: "Salvat"
|
||||
messaging: "Chat"
|
||||
messaging: "Messenger"
|
||||
upload: "Încarcă"
|
||||
keepOriginalUploading: "Păstrează imaginea originală"
|
||||
keepOriginalUploadingDescription: "Salvează imaginea originala încărcată fără modificări. Dacă e oprită, o versiune pentru afișarea pe web va fi generată la încărcare."
|
||||
|
@ -252,7 +252,7 @@ removeAreYouSure: "Хотите удалить «{x}»?"
|
||||
deleteAreYouSure: "Хотите удалить «{x}»?"
|
||||
resetAreYouSure: "На самом деле сбросить?"
|
||||
saved: "Сохранено"
|
||||
messaging: "Сообщения"
|
||||
messaging: "Messenger"
|
||||
upload: "Загрузить"
|
||||
keepOriginalUploading: "Сохранить исходное изображение"
|
||||
keepOriginalUploadingDescription: "Сохраняет исходную версию при загрузке изображений.
|
||||
|
@ -236,7 +236,7 @@ removeAreYouSure: "Naozaj chcete odstrániť \"{x}\"?"
|
||||
deleteAreYouSure: "Naozaj chcete odstrániť \"{x}\"?"
|
||||
resetAreYouSure: "Naozaj resetovať?"
|
||||
saved: "Uložené"
|
||||
messaging: "Chat"
|
||||
messaging: "Messenger"
|
||||
upload: "Nahrať súbor"
|
||||
keepOriginalUploading: "Zachovať pôvodný obrázok"
|
||||
keepOriginalUploadingDescription: "Uloží pôvodný obrázok ako je. Ak je vypnuté, verzia pre web sa vygeneruje pri nahratí."
|
||||
|
@ -235,7 +235,7 @@ removeAreYouSure: "Är du säker att du vill radera \"{x}\"?"
|
||||
deleteAreYouSure: "Är du säker att du vill radera \"{x}\"?"
|
||||
resetAreYouSure: "Vill du återställa?"
|
||||
saved: "Sparad"
|
||||
messaging: "Chatt"
|
||||
messaging: "Messenger"
|
||||
upload: "Ladda upp"
|
||||
keepOriginalUploading: "Behåll originalbild"
|
||||
nsfw: "Känsligt innehåll"
|
||||
|
@ -236,7 +236,7 @@ removeAreYouSure: "นายแน่ใจจริงหรอว่าต้
|
||||
deleteAreYouSure: "นายแน่ใจจริงหรอว่าต้องการที่จะลบออก \"{x}\""
|
||||
resetAreYouSure: "รีเซ็ตเลยไหม"
|
||||
saved: "บันทึกแล้ว"
|
||||
messaging: "แชท"
|
||||
messaging: "Messenger"
|
||||
upload: "อัพโหลด"
|
||||
keepOriginalUploading: "เก็บภาพต้นฉบับ"
|
||||
keepOriginalUploadingDescription: "บันทึกรูปภาพที่อัพโหลดต้นฉบับตามที่เป็นอยู่ ถ้าหากปิดอยู่ ระบบจะสร้างเวอร์ชั่นที่จะแสดงบนเว็บเมื่ออัพโหลดนะ"
|
||||
|
@ -744,7 +744,7 @@ removeAreYouSure: '"{x}" kaldırmak istediğinize emin misiniz?'
|
||||
keepOriginalUploading: Orjinal resmi sakla
|
||||
messageRead: Oku
|
||||
deleteAreYouSure: '"{x}" silmek istediğinize emin misiniz?'
|
||||
messaging: Sohbet
|
||||
messaging: Messenger
|
||||
upload: Yükle
|
||||
fromUrl: URL'den
|
||||
agreeTo: '{0} kabul ediyorum'
|
||||
|
@ -254,7 +254,7 @@ removeAreYouSure: "Ви впевнені, що хочете прибрати \"{
|
||||
deleteAreYouSure: "Ви впевнені, що хочете видалити \"{x}\"?"
|
||||
resetAreYouSure: "Ви впевнені, що хочете скинути?"
|
||||
saved: "Збережено"
|
||||
messaging: "Чати"
|
||||
messaging: "Messenger"
|
||||
upload: "Завантажити"
|
||||
keepOriginalUploading: "Зберегти оригінальне зображення"
|
||||
keepOriginalUploadingDescription: "Зберігає початково завантажене зображення як є.
|
||||
|
@ -236,7 +236,7 @@ removeAreYouSure: "Bạn có chắc muốn gỡ \"{x}\"?"
|
||||
deleteAreYouSure: "Bạn có chắc muốn xóa \"{x}\"?"
|
||||
resetAreYouSure: "Bạn có chắc muốn đặt lại?"
|
||||
saved: "Đã lưu"
|
||||
messaging: "Trò chuyện"
|
||||
messaging: "Messenger"
|
||||
upload: "Tải lên"
|
||||
keepOriginalUploading: "Giữ hình ảnh gốc"
|
||||
keepOriginalUploadingDescription: "Giữ nguyên như hình ảnh được tải lên ban đầu. Nếu tắt, một phiên bản để hiển thị trên web sẽ được tạo khi tải lên."
|
||||
|
@ -240,7 +240,7 @@ removeAreYouSure: "确定要删除「{x}」吗?"
|
||||
deleteAreYouSure: "确定要删除「{x}」吗?"
|
||||
resetAreYouSure: "确定重置为默认设置?"
|
||||
saved: "已保存"
|
||||
messaging: "聊天"
|
||||
messaging: "Messenger"
|
||||
upload: "本地上传"
|
||||
keepOriginalUploading: "保留原图"
|
||||
keepOriginalUploadingDescription: "上传图片时保留原始图片。如果关闭,会在上传时生成一张用于 web 发布的图片。"
|
||||
|
@ -239,7 +239,7 @@ removeAreYouSure: "確定要刪掉「{x}」嗎?"
|
||||
deleteAreYouSure: "確定要刪掉「{x}」嗎?"
|
||||
resetAreYouSure: "確定要重設嗎?"
|
||||
saved: "已儲存"
|
||||
messaging: "訊息"
|
||||
messaging: "Messenger"
|
||||
upload: "上傳"
|
||||
keepOriginalUploading: "保留原圖"
|
||||
keepOriginalUploadingDescription: "上傳圖片時保留原始圖片。關閉時,瀏覽器會在上傳時自動產生用於貼文發布的圖片。"
|
||||
|
@ -71,7 +71,7 @@
|
||||
"typescript": "5.1.6",
|
||||
"yaml": "^2.3.4"
|
||||
},
|
||||
"packageManager": "yarn@4.1.0",
|
||||
"packageManager": "yarn@4.1.1",
|
||||
"dependenciesMeta": {
|
||||
"@discordapp/twemoji@14.1.2": {
|
||||
"unplugged": true
|
||||
|
@ -13,7 +13,7 @@
|
||||
"@discordapp/twemoji": "14.1.2",
|
||||
"@eslint-sets/eslint-config-vue3": "^5.6.1",
|
||||
"@eslint-sets/eslint-config-vue3-ts": "^3.3.0",
|
||||
"@phosphor-icons/web": "^2.0.3",
|
||||
"@phosphor-icons/web": "^2.1.1",
|
||||
"@rollup/plugin-alias": "^5.1.0",
|
||||
"@rollup/plugin-json": "^6.0.1",
|
||||
"@rollup/pluginutils": "^5.1.0",
|
||||
|
@ -20,7 +20,7 @@ export const navbarItemDef = reactive({
|
||||
},
|
||||
messaging: {
|
||||
title: "messaging",
|
||||
icon: "ph-chats-teardrop ph-bold ph-lg",
|
||||
icon: "ph-tornado ph-bold ph-lg",
|
||||
show: computed(() => $i != null),
|
||||
indicated: computed(() => $i?.hasUnreadMessagingMessage),
|
||||
to: "/my/messaging",
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<MkStickyContainer>
|
||||
<template #header
|
||||
><MkPageHeader :actions="headerActions" :tabs="headerTabs"
|
||||
><MkPageHeader :actions="headerActions" :tabs="headerTabs" :display-back-button="true"
|
||||
/></template>
|
||||
<MkSpacer :content-max="800">
|
||||
<MkPagination
|
||||
|
@ -81,6 +81,30 @@
|
||||
</MkPagination>
|
||||
</div>
|
||||
</swiper-slide>
|
||||
<swiper-slide>
|
||||
<div class="_content yweeujhr channels">
|
||||
<MkButton
|
||||
primary
|
||||
class="start"
|
||||
v-if="!isMobile"
|
||||
@click="createChannel"
|
||||
><i class="ph-plus ph-bold ph-lg"></i>
|
||||
{{ i18n.ts._channel.create }}</MkButton
|
||||
>
|
||||
<MkButton
|
||||
primary
|
||||
class="start"
|
||||
v-if="!isMobile"
|
||||
@click="visitAnnouncements"
|
||||
><i class="ph-megaphone-simple ph-bold ph-lg"></i>
|
||||
{{ i18n.ts.announcements }}</MkButton
|
||||
>
|
||||
<MkChannelList
|
||||
key="owned"
|
||||
:pagination="channelsPagination"
|
||||
/>
|
||||
</div>
|
||||
</swiper-slide>
|
||||
</swiper>
|
||||
</MkSpacer>
|
||||
</div>
|
||||
@ -94,6 +118,8 @@ import { Virtual } from "swiper/modules";
|
||||
import { Swiper, SwiperSlide } from "swiper/vue";
|
||||
import MkButton from "@/components/MkButton.vue";
|
||||
import MkChatPreview from "@/components/MkChatPreview.vue";
|
||||
import MkChannelPreview from "@/components/MkChannelPreview.vue";
|
||||
import MkChannelList from "@/components/MkChannelList.vue";
|
||||
import MkPagination from "@/components/MkPagination.vue";
|
||||
import * as os from "@/os";
|
||||
import { stream } from "@/stream";
|
||||
@ -111,7 +137,7 @@ const router = useRouter();
|
||||
let messages = $ref([]);
|
||||
let connection = $ref(null);
|
||||
|
||||
const tabs = ["dms", "groups"];
|
||||
const tabs = ["dms", "groups", "channels"];
|
||||
let tab = $ref(tabs[0]);
|
||||
watch($$(tab), () => syncSlide(tabs.indexOf(tab)));
|
||||
|
||||
@ -147,11 +173,16 @@ const headerTabs = $computed(() => [
|
||||
title: i18n.ts._messaging.groups,
|
||||
icon: "ph-users-three ph-bold ph-lg",
|
||||
},
|
||||
{
|
||||
key: "channels",
|
||||
title: i18n.ts.channel,
|
||||
icon: "ph-megaphone-simple ph-bold ph-lg",
|
||||
},
|
||||
]);
|
||||
|
||||
definePageMetadata({
|
||||
title: i18n.ts.messaging,
|
||||
icon: "ph-chats-teardrop ph-bold ph-lg",
|
||||
icon: "ph-tornado ph-bold ph-lg",
|
||||
});
|
||||
|
||||
const dmsPagination = {
|
||||
@ -168,6 +199,10 @@ const groupsPagination = {
|
||||
group: true,
|
||||
},
|
||||
};
|
||||
const channelsPagination = {
|
||||
endpoint: "channels/followed" as const,
|
||||
limit: 10,
|
||||
};
|
||||
|
||||
function onMessage(message): void {
|
||||
if (message.recipientId) {
|
||||
@ -251,6 +286,14 @@ async function startGroup(): void {
|
||||
router.push(`/my/messaging/group/${group.id}`);
|
||||
}
|
||||
|
||||
function createChannel() {
|
||||
router.push("/channels/new");
|
||||
}
|
||||
|
||||
function visitAnnouncements() {
|
||||
router.push("/announcements");
|
||||
}
|
||||
|
||||
let swiperRef = null;
|
||||
|
||||
function setSwiperRef(swiper) {
|
||||
|
@ -122,6 +122,7 @@ import {
|
||||
} from "@/scripts/scroll";
|
||||
import * as os from "@/os";
|
||||
import { stream } from "@/stream";
|
||||
import { useRouter } from "@/router";
|
||||
import * as sound from "@/scripts/sound";
|
||||
import { i18n } from "@/i18n";
|
||||
import { $i } from "@/account";
|
||||
@ -134,6 +135,8 @@ const props = defineProps<{
|
||||
groupId?: string;
|
||||
}>();
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
let rootEl = $ref<HTMLDivElement>();
|
||||
let formEl = $ref<InstanceType<typeof XForm>>();
|
||||
let pagingComponent = $ref<InstanceType<typeof MkPagination>>();
|
||||
@ -350,7 +353,7 @@ onMounted(() => {
|
||||
definePageMetadata(
|
||||
computed(() => ({
|
||||
title: group != null ? group.name : user?.name ?? 'Chat',
|
||||
icon: "ph-chats-teardrop ph-bold ph-lg",
|
||||
icon: "ph-tornado ph-bold ph-lg",
|
||||
})),
|
||||
);
|
||||
});
|
||||
@ -363,9 +366,9 @@ onBeforeUnmount(() => {
|
||||
|
||||
function info() {
|
||||
if (group) {
|
||||
window.location.href = `/my/groups/${group.id}`;
|
||||
router.push(`/my/groups/${group.id}`);
|
||||
} else if (user) {
|
||||
window.location.href = `/@${user.id}`;
|
||||
router.push(`/@${user.id}`)
|
||||
}
|
||||
}
|
||||
|
||||
@ -381,7 +384,7 @@ const headerActions = $computed(() => [
|
||||
definePageMetadata(
|
||||
computed(() => ({
|
||||
title: group != null ? group.name : user?.name ?? 'Chat',
|
||||
icon: "ph-chats-teardrop ph-bold ph-lg",
|
||||
icon: "ph-tornado ph-bold ph-lg",
|
||||
})),
|
||||
);
|
||||
|
||||
|
@ -290,7 +290,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
||||
meId !== user.id
|
||||
? {
|
||||
type: "link",
|
||||
icon: "ph-chats-teardrop ph-bold ph-lg",
|
||||
icon: "ph-tornado ph-bold ph-lg",
|
||||
text: i18n.ts.startMessaging,
|
||||
to: `/my/messaging/${Acct.toString(user)}`,
|
||||
}
|
||||
|
@ -94,7 +94,7 @@
|
||||
class="button-wrapper"
|
||||
:class="buttonAnimIndex === 2 ? 'on' : ''"
|
||||
>
|
||||
<i class="ph-chats-teardrop ph-bold ph-lg"></i
|
||||
<i class="ph-tornado ph-bold ph-lg"></i
|
||||
><span
|
||||
v-if="$i?.hasUnreadMessagingMessage"
|
||||
class="indicator"
|
||||
|
@ -164,7 +164,7 @@ const choose = async (ev) => {
|
||||
},
|
||||
{
|
||||
text: i18n.ts._timelines.local,
|
||||
icon: "ph-chats-teardrop ph-bold ph-lg",
|
||||
icon: "ph-tornado ph-bold ph-lg",
|
||||
action: () => {
|
||||
setSrc("local");
|
||||
},
|
||||
|
10
yarn.lock
10
yarn.lock
@ -1964,10 +1964,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@phosphor-icons/web@npm:^2.0.3":
|
||||
version: 2.0.3
|
||||
resolution: "@phosphor-icons/web@npm:2.0.3"
|
||||
checksum: 10/319a1aa9537a36ffee63754d53b28f25a8c40dba90b93c8a8a5a39322316776aea9c962b3e97f05a185168a13354bee4a3dc5d67a455bc1f107a1d46414e438c
|
||||
"@phosphor-icons/web@npm:^2.1.1":
|
||||
version: 2.1.1
|
||||
resolution: "@phosphor-icons/web@npm:2.1.1"
|
||||
checksum: 10/64c6670df0fbcf828635e72456c0b8d12f25ccef885ab3df036b3c10c4d38afffebceee8e8af921678138aa9cfd504e9b443aa7913b90ad7f42a147b9af25952
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -6473,7 +6473,7 @@ __metadata:
|
||||
"@discordapp/twemoji": "npm:14.1.2"
|
||||
"@eslint-sets/eslint-config-vue3": "npm:^5.6.1"
|
||||
"@eslint-sets/eslint-config-vue3-ts": "npm:^3.3.0"
|
||||
"@phosphor-icons/web": "npm:^2.0.3"
|
||||
"@phosphor-icons/web": "npm:^2.1.1"
|
||||
"@rollup/plugin-alias": "npm:^5.1.0"
|
||||
"@rollup/plugin-json": "npm:^6.0.1"
|
||||
"@rollup/pluginutils": "npm:^5.1.0"
|
||||
|
Loading…
Reference in New Issue
Block a user