mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-17 02:59:03 +01:00
Merge branch 'develop'
This commit is contained in:
commit
3b1669fb6b
165 changed files with 4032 additions and 2784 deletions
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -2,6 +2,7 @@
|
||||||
## 12.x.x (unreleased)
|
## 12.x.x (unreleased)
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
|
- Client: Preferences Registry
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
-
|
-
|
||||||
|
@ -9,6 +10,19 @@
|
||||||
You should also include the user name that made the change.
|
You should also include the user name that made the change.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## 12.118.0 (2022/08/07)
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
- Client: 設定のバックアップ/リストア機能
|
||||||
|
- Client: Add vi-VN language support
|
||||||
|
- Client: Add unix time widget @syuilo
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
- Server: リモートユーザーを正しくブロックできるように修正する @xianonn
|
||||||
|
- Client: 一度作ったwebhookの設定画面を開こうとするとページがフリーズする @syuilo
|
||||||
|
- Client: MiAuth認証ページが機能していない @syuilo
|
||||||
|
- Client: 一部のアプリからファイルを投稿フォームへドロップできない場合がある問題を修正 @m-hayabusa
|
||||||
|
|
||||||
## 12.117.1 (2022/07/19)
|
## 12.117.1 (2022/07/19)
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|
|
@ -140,6 +140,34 @@ Misskey uses Vue(v3) as its front-end framework.
|
||||||
- **When creating a new component, please use the Composition API (with [setup sugar](https://v3.vuejs.org/api/sfc-script-setup.html) and [ref sugar](https://github.com/vuejs/rfcs/discussions/369)) instead of the Options API.**
|
- **When creating a new component, please use the Composition API (with [setup sugar](https://v3.vuejs.org/api/sfc-script-setup.html) and [ref sugar](https://github.com/vuejs/rfcs/discussions/369)) instead of the Options API.**
|
||||||
- Some of the existing components are implemented in the Options API, but it is an old implementation. Refactors that migrate those components to the Composition API are also welcome.
|
- Some of the existing components are implemented in the Options API, but it is an old implementation. Refactors that migrate those components to the Composition API are also welcome.
|
||||||
|
|
||||||
|
## nirax
|
||||||
|
niraxは、Misskeyで使用しているオリジナルのフロントエンドルーティングシステムです。
|
||||||
|
**vue-routerから影響を多大に受けているので、まずはvue-routerについて学ぶことをお勧めします。**
|
||||||
|
|
||||||
|
### ルート定義
|
||||||
|
ルート定義は、以下の形式のオブジェクトの配列です。
|
||||||
|
|
||||||
|
``` ts
|
||||||
|
{
|
||||||
|
name?: string;
|
||||||
|
path: string;
|
||||||
|
component: Component;
|
||||||
|
query?: Record<string, string>;
|
||||||
|
loginRequired?: boolean;
|
||||||
|
hash?: string;
|
||||||
|
globalCacheKey?: string;
|
||||||
|
children?: RouteDef[];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Warning**
|
||||||
|
> 現状、ルートは定義された順に評価されます。
|
||||||
|
> たとえば、`/foo/:id`ルート定義の次に`/foo/bar`ルート定義がされていた場合、後者がマッチすることはありません。
|
||||||
|
|
||||||
|
### 複数のルーター
|
||||||
|
vue-routerとの最大の違いは、niraxは複数のルーターが存在することを許可している点です。
|
||||||
|
これにより、アプリ内ウィンドウでブラウザとは個別にルーティングすることなどが可能になります。
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
### How to resolve conflictions occurred at yarn.lock?
|
### How to resolve conflictions occurred at yarn.lock?
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "ابحث عن مستخدمين"
|
||||||
reply: "رد"
|
reply: "رد"
|
||||||
loadMore: "عرض المزيد"
|
loadMore: "عرض المزيد"
|
||||||
showMore: "عرض المزيد"
|
showMore: "عرض المزيد"
|
||||||
|
showLess: "اغلق"
|
||||||
youGotNewFollower: "يتابعك"
|
youGotNewFollower: "يتابعك"
|
||||||
receiveFollowRequest: "تلقيت طلب متابعة"
|
receiveFollowRequest: "تلقيت طلب متابعة"
|
||||||
followRequestAccepted: "قُبل طلب المتابعة"
|
followRequestAccepted: "قُبل طلب المتابعة"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "ব্যবহারকারী খুঁজুন..."
|
||||||
reply: "জবাব"
|
reply: "জবাব"
|
||||||
loadMore: "আরও দেখুন"
|
loadMore: "আরও দেখুন"
|
||||||
showMore: "আরও দেখুন"
|
showMore: "আরও দেখুন"
|
||||||
|
showLess: "বন্ধ"
|
||||||
youGotNewFollower: "আপনাকে অনুসরণ করছে"
|
youGotNewFollower: "আপনাকে অনুসরণ করছে"
|
||||||
receiveFollowRequest: "অনুসরণ করার জন্য অনুরোধ পাওয়া গেছে"
|
receiveFollowRequest: "অনুসরণ করার জন্য অনুরোধ পাওয়া গেছে"
|
||||||
followRequestAccepted: "অনুসরণ করার অনুরোধ গৃহীত হয়েছে"
|
followRequestAccepted: "অনুসরণ করার অনুরোধ গৃহীত হয়েছে"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Vyhledat uživatele"
|
||||||
reply: "Odpovědět"
|
reply: "Odpovědět"
|
||||||
loadMore: "Zobrazit více"
|
loadMore: "Zobrazit více"
|
||||||
showMore: "Zobrazit více"
|
showMore: "Zobrazit více"
|
||||||
|
showLess: "Zavřít"
|
||||||
youGotNewFollower: "Máte nového následovníka"
|
youGotNewFollower: "Máte nového následovníka"
|
||||||
receiveFollowRequest: "Žádost o sledování přijata"
|
receiveFollowRequest: "Žádost o sledování přijata"
|
||||||
followRequestAccepted: "Žádost o sledování přijata"
|
followRequestAccepted: "Žádost o sledování přijata"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Nach einem Benutzer suchen"
|
||||||
reply: "Antworten"
|
reply: "Antworten"
|
||||||
loadMore: "Mehr laden"
|
loadMore: "Mehr laden"
|
||||||
showMore: "Mehr anzeigen"
|
showMore: "Mehr anzeigen"
|
||||||
|
showLess: "Schließen"
|
||||||
youGotNewFollower: "ist dir gefolgt"
|
youGotNewFollower: "ist dir gefolgt"
|
||||||
receiveFollowRequest: "Follow-Anfrage erhalten"
|
receiveFollowRequest: "Follow-Anfrage erhalten"
|
||||||
followRequestAccepted: "Follow-Anfrage akzeptiert"
|
followRequestAccepted: "Follow-Anfrage akzeptiert"
|
||||||
|
@ -561,6 +562,7 @@ author: "Autor"
|
||||||
leaveConfirm: "Es gibt unspeicherte Änderungen. Möchtest du diese verwerfen?"
|
leaveConfirm: "Es gibt unspeicherte Änderungen. Möchtest du diese verwerfen?"
|
||||||
manage: "Verwaltung"
|
manage: "Verwaltung"
|
||||||
plugins: "Plugins"
|
plugins: "Plugins"
|
||||||
|
preferencesBackups: "Einstellungsbackups"
|
||||||
deck: "Deck"
|
deck: "Deck"
|
||||||
undeck: "Deck verlassen"
|
undeck: "Deck verlassen"
|
||||||
useBlurEffectForModal: "Weichzeichnungseffekt für Modals verwenden"
|
useBlurEffectForModal: "Weichzeichnungseffekt für Modals verwenden"
|
||||||
|
@ -862,7 +864,7 @@ requireAdminForView: "Melde dich mit einem Administratorkonto an, um dies einzus
|
||||||
isSystemAccount: "Ein Benutzerkonto, dass durch das System erstellt und automatisch kontrolliert wird."
|
isSystemAccount: "Ein Benutzerkonto, dass durch das System erstellt und automatisch kontrolliert wird."
|
||||||
typeToConfirm: "Bitte gib zur Bestätigung {x} ein"
|
typeToConfirm: "Bitte gib zur Bestätigung {x} ein"
|
||||||
deleteAccount: "Benutzerkonto löschen"
|
deleteAccount: "Benutzerkonto löschen"
|
||||||
document: "Dokument"
|
document: "Dokumentation"
|
||||||
numberOfPageCache: "Seitencachegröße"
|
numberOfPageCache: "Seitencachegröße"
|
||||||
numberOfPageCacheDescription: "Das Erhöhen dieses Caches führt zu einer angenehmerern Benutzererfahrung, erhöht aber Serverlast und Arbeitsspeicherauslastung."
|
numberOfPageCacheDescription: "Das Erhöhen dieses Caches führt zu einer angenehmerern Benutzererfahrung, erhöht aber Serverlast und Arbeitsspeicherauslastung."
|
||||||
logoutConfirm: "Wirklich abmelden?"
|
logoutConfirm: "Wirklich abmelden?"
|
||||||
|
@ -941,6 +943,24 @@ _plugin:
|
||||||
install: "Plugins installieren"
|
install: "Plugins installieren"
|
||||||
installWarn: "Installiere bitte nur vertrauenswürdige Plugins."
|
installWarn: "Installiere bitte nur vertrauenswürdige Plugins."
|
||||||
manage: "Plugins verwalten"
|
manage: "Plugins verwalten"
|
||||||
|
_preferencesBackups:
|
||||||
|
list: "Erstellte Backups"
|
||||||
|
saveNew: "Neu erstellen"
|
||||||
|
loadFile: "Von Datei laden"
|
||||||
|
apply: "Auf dieses Gerät anwenden"
|
||||||
|
save: "Speichern"
|
||||||
|
inputName: "Gib einen Namen für dieses Backup ein"
|
||||||
|
cannotSave: "Speichern fehlgeschlagen"
|
||||||
|
nameAlreadyExists: "Es existiert bereits ein Backup unter dem Namen \"{name}\". Bitte gib einen anderen Namen ein."
|
||||||
|
applyConfirm: "Wirklich das Backup \"{name}\" auf dieses Gerät anwenden? Bestehende Einstellungen darauf werden überschrieben."
|
||||||
|
saveConfirm: "Als {name} speichern?"
|
||||||
|
deleteConfirm: "Das Backup {name} löschen?"
|
||||||
|
renameConfirm: "Soll dieses Backup von \"{old}\" zu \"{new}\" umbenannt werden?"
|
||||||
|
noBackups: "Keine Backups existieren. Backups können über \"Neu erstellen\" erstelllt werden."
|
||||||
|
createdAt: "Erstellt am: {date} {time}"
|
||||||
|
updatedAt: "Aktualisiert am: {date} {time}"
|
||||||
|
cannotLoad: "Laden fehlgeschlagen"
|
||||||
|
invalidFile: "Ungültiges Dateiformat."
|
||||||
_registry:
|
_registry:
|
||||||
scope: "Scope"
|
scope: "Scope"
|
||||||
key: "Schlüssel"
|
key: "Schlüssel"
|
||||||
|
@ -1024,6 +1044,8 @@ _mfm:
|
||||||
sparkleDescription: "Verleiht Inhalt einen glitzernden Partikeleffekt."
|
sparkleDescription: "Verleiht Inhalt einen glitzernden Partikeleffekt."
|
||||||
rotate: "Drehen"
|
rotate: "Drehen"
|
||||||
rotateDescription: "Dreht den Inhalt um einen angegebenen Winkel."
|
rotateDescription: "Dreht den Inhalt um einen angegebenen Winkel."
|
||||||
|
plain: "Schlicht"
|
||||||
|
plainDescription: "Deaktiviert jegliche MFM-Syntax, die sich innerhalb dieses MFM-Effekts befindet."
|
||||||
_instanceTicker:
|
_instanceTicker:
|
||||||
none: "Nie anzeigen"
|
none: "Nie anzeigen"
|
||||||
remote: "Für Benutzer fremder Instanzen anzeigen"
|
remote: "Für Benutzer fremder Instanzen anzeigen"
|
||||||
|
@ -1257,6 +1279,7 @@ _widgets:
|
||||||
activity: "Aktivität"
|
activity: "Aktivität"
|
||||||
photos: "Fotos"
|
photos: "Fotos"
|
||||||
digitalClock: "Digitaluhr"
|
digitalClock: "Digitaluhr"
|
||||||
|
unixClock: "UNIX-Uhr"
|
||||||
federation: "Föderation"
|
federation: "Föderation"
|
||||||
instanceCloud: "Instanzwolke"
|
instanceCloud: "Instanzwolke"
|
||||||
postForm: "Notizfenster"
|
postForm: "Notizfenster"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Search for a user"
|
||||||
reply: "Reply"
|
reply: "Reply"
|
||||||
loadMore: "Load more"
|
loadMore: "Load more"
|
||||||
showMore: "Show more"
|
showMore: "Show more"
|
||||||
|
showLess: "Close"
|
||||||
youGotNewFollower: "followed you"
|
youGotNewFollower: "followed you"
|
||||||
receiveFollowRequest: "Follow request received"
|
receiveFollowRequest: "Follow request received"
|
||||||
followRequestAccepted: "Follow request accepted"
|
followRequestAccepted: "Follow request accepted"
|
||||||
|
@ -561,6 +562,7 @@ author: "Author"
|
||||||
leaveConfirm: "There are unsaved changes. Do you want to discard them?"
|
leaveConfirm: "There are unsaved changes. Do you want to discard them?"
|
||||||
manage: "Management"
|
manage: "Management"
|
||||||
plugins: "Plugins"
|
plugins: "Plugins"
|
||||||
|
preferencesBackups: "Preference backups"
|
||||||
deck: "Deck"
|
deck: "Deck"
|
||||||
undeck: "Leave Deck"
|
undeck: "Leave Deck"
|
||||||
useBlurEffectForModal: "Use blur effect for modals"
|
useBlurEffectForModal: "Use blur effect for modals"
|
||||||
|
@ -862,7 +864,7 @@ requireAdminForView: "You must log in with an administrator account to view this
|
||||||
isSystemAccount: "An account created and automatically operated by the system."
|
isSystemAccount: "An account created and automatically operated by the system."
|
||||||
typeToConfirm: "Please enter {x} to confirm"
|
typeToConfirm: "Please enter {x} to confirm"
|
||||||
deleteAccount: "Delete account"
|
deleteAccount: "Delete account"
|
||||||
document: "Document"
|
document: "Documentation"
|
||||||
numberOfPageCache: "Number of cached pages"
|
numberOfPageCache: "Number of cached pages"
|
||||||
numberOfPageCacheDescription: "Increasing this number will improve convenience for users but cause more server load as well as more memory to be used."
|
numberOfPageCacheDescription: "Increasing this number will improve convenience for users but cause more server load as well as more memory to be used."
|
||||||
logoutConfirm: "Really log out?"
|
logoutConfirm: "Really log out?"
|
||||||
|
@ -941,6 +943,24 @@ _plugin:
|
||||||
install: "Install plugins"
|
install: "Install plugins"
|
||||||
installWarn: "Please do not install untrustworthy plugins."
|
installWarn: "Please do not install untrustworthy plugins."
|
||||||
manage: "Manage plugins"
|
manage: "Manage plugins"
|
||||||
|
_preferencesBackups:
|
||||||
|
list: "Created backups"
|
||||||
|
saveNew: "Save new backup"
|
||||||
|
loadFile: "Load from file"
|
||||||
|
apply: "Apply to this device"
|
||||||
|
save: "Save changes"
|
||||||
|
inputName: "Please enter a name for this backup"
|
||||||
|
cannotSave: "Saving failed"
|
||||||
|
nameAlreadyExists: "A backup called \"{name}\" already exists. Please enter a different name."
|
||||||
|
applyConfirm: "Do you really want to apply the \"{name}\" backup to this device? Existing settings of this device will be overwritten."
|
||||||
|
saveConfirm: "Save backup as {name}?"
|
||||||
|
deleteConfirm: "Delete the {name} backup?"
|
||||||
|
renameConfirm: "Rename this backup from \"{old}\" to \"{new}\"?"
|
||||||
|
noBackups: "No backups exist. You may backup your client settings on this server by using \"Create new backup\"."
|
||||||
|
createdAt: "Created at: {date} {time}"
|
||||||
|
updatedAt: "Updated at: {date} {time}"
|
||||||
|
cannotLoad: "Loading failed"
|
||||||
|
invalidFile: "Invalid file format"
|
||||||
_registry:
|
_registry:
|
||||||
scope: "Scope"
|
scope: "Scope"
|
||||||
key: "Key"
|
key: "Key"
|
||||||
|
@ -1024,6 +1044,8 @@ _mfm:
|
||||||
sparkleDescription: "Gives content a sparkling particle effect."
|
sparkleDescription: "Gives content a sparkling particle effect."
|
||||||
rotate: "Rotate"
|
rotate: "Rotate"
|
||||||
rotateDescription: "Turns content by a specified angle."
|
rotateDescription: "Turns content by a specified angle."
|
||||||
|
plain: "Plain"
|
||||||
|
plainDescription: "Deactivates the effects of all MFM contained within this MFM effect."
|
||||||
_instanceTicker:
|
_instanceTicker:
|
||||||
none: "Never show"
|
none: "Never show"
|
||||||
remote: "Show for remote users"
|
remote: "Show for remote users"
|
||||||
|
@ -1257,6 +1279,7 @@ _widgets:
|
||||||
activity: "Activity"
|
activity: "Activity"
|
||||||
photos: "Photos"
|
photos: "Photos"
|
||||||
digitalClock: "Digital clock"
|
digitalClock: "Digital clock"
|
||||||
|
unixClock: "UNIX clock"
|
||||||
federation: "Federation"
|
federation: "Federation"
|
||||||
instanceCloud: "Instance cloud"
|
instanceCloud: "Instance cloud"
|
||||||
postForm: "Posting form"
|
postForm: "Posting form"
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
---
|
---
|
||||||
_lang_: "Español"
|
_lang_: "Español"
|
||||||
headlineMisskey: "Red conectada por notas"
|
headlineMisskey: "Red conectada por notas"
|
||||||
introMisskey: "¡Bienvenido/a! Misskey es un servicio de microblogging descentralizado de código abierto.\nEscribe \"notas\" para compartir lo que te ocurre ahora o para contar sobre ti a todos 📡\nCon la función de \"reacciones\", puedes también añadir una reacción rápida a las notas de todos 👍\nExplora un nuevo mundo 🚀"
|
introMisskey: "¡Bienvenido/a! Misskey es un servicio de microblogging descentralizado de código abierto.\nEscribe \"notas\" para compartir lo que te ocurre ahora o para contar sobre ti a todos 📡\nCon la función de \"reacciones\", puedes también añadir una reacción rápida a las notas de todos 👍\n¡Exploremos juntos un nuevo mundo! 🚀"
|
||||||
monthAndDay: "{day}/{month}"
|
monthAndDay: "{day}/{month}"
|
||||||
search: "Buscar"
|
search: "Buscar"
|
||||||
notifications: "Notificaciones"
|
notifications: "Notificaciones"
|
||||||
username: "Nombre de usuario"
|
username: "Nombre de usuario"
|
||||||
password: "Contraseña"
|
password: "Contraseña"
|
||||||
forgotPassword: "Olvidé mi Contraseña"
|
forgotPassword: "Olvidé mi Contraseña"
|
||||||
fetchingAsApObject: "Buscando en el fediverso"
|
fetchingAsApObject: "Recuperando desde el Fediverso..."
|
||||||
ok: "OK"
|
ok: "OK"
|
||||||
gotIt: "Entendido"
|
gotIt: "¡Lo tengo!"
|
||||||
cancel: "Cancelar"
|
cancel: "Cancelar"
|
||||||
enterUsername: "Introduce el nombre de usuario"
|
enterUsername: "Introduce el nombre de usuario"
|
||||||
renotedBy: "Renotado por {user}"
|
renotedBy: "Renotado por {user}"
|
||||||
|
@ -22,36 +22,37 @@ basicSettings: "Configuración Básica"
|
||||||
otherSettings: "Configuración avanzada"
|
otherSettings: "Configuración avanzada"
|
||||||
openInWindow: "Abrir en una ventana"
|
openInWindow: "Abrir en una ventana"
|
||||||
profile: "Perfil"
|
profile: "Perfil"
|
||||||
timeline: "Linea de tiempo"
|
timeline: "Línea de tiempo"
|
||||||
noAccountDescription: "Este usuario no tiene una descripción"
|
noAccountDescription: "Este usuario no ha escrito su biografía aún"
|
||||||
login: "Iniciar sesión"
|
login: "Iniciar sesión"
|
||||||
loggingIn: "Iniciando sesión"
|
loggingIn: "Iniciando sesión"
|
||||||
logout: "Cerrar sesión"
|
logout: "Cerrar sesión"
|
||||||
signup: "Registrarse"
|
signup: "Registrarse"
|
||||||
uploading: "Cargando"
|
uploading: "Cargando..."
|
||||||
save: "Guardar"
|
save: "Guardar"
|
||||||
users: "Usuarios"
|
users: "Usuarios"
|
||||||
addUser: "Agregar usuario"
|
addUser: "Agregar usuario"
|
||||||
favorite: "Favorito"
|
favorite: "Añadir a favoritos"
|
||||||
favorites: "Favoritos"
|
favorites: "Favoritos"
|
||||||
unfavorite: "Quitar de favoritos"
|
unfavorite: "Quitar de favoritos"
|
||||||
favorited: "Añadido a favoritos"
|
favorited: "Añadido a favoritos."
|
||||||
alreadyFavorited: "Ya había sido añadido a favoritos"
|
alreadyFavorited: "Ya había sido añadido a favoritos"
|
||||||
cantFavorite: "No fue añadido a favoritos"
|
cantFavorite: "No se puede añadir a favoritos."
|
||||||
pin: "Fijar"
|
pin: "Fijar al perfil"
|
||||||
unpin: "Desfijar"
|
unpin: "Desfijar"
|
||||||
copyContent: "Copiar contenido"
|
copyContent: "Copiar contenido"
|
||||||
copyLink: "Copiar enlace"
|
copyLink: "Copiar enlace"
|
||||||
delete: "Borrar"
|
delete: "Borrar"
|
||||||
deleteAndEdit: "Borrar y editar"
|
deleteAndEdit: "Borrar y editar"
|
||||||
deleteAndEditConfirm: "¿Quieres borrar y editar este nota? Las reacciones, renotes, respuestas y todo desaparecerán."
|
deleteAndEditConfirm: "¿Estás seguro de que quieres borrar esta nota y editarla? Perderás todas las reacciones, renotas y respuestas."
|
||||||
addToList: "Agregar a lista"
|
addToList: "Agregar a lista"
|
||||||
sendMessage: "Énviar mensaje"
|
sendMessage: "Enviar un mensaje"
|
||||||
copyUsername: "Copiar nombre de usuario"
|
copyUsername: "Copiar nombre de usuario"
|
||||||
searchUser: "Búsqueda de usuarios"
|
searchUser: "Buscar un usuario"
|
||||||
reply: "Responder"
|
reply: "Responder"
|
||||||
loadMore: "Ver más"
|
loadMore: "Ver más"
|
||||||
showMore: "Ver más"
|
showMore: "Ver más"
|
||||||
|
showLess: "Cerrar"
|
||||||
youGotNewFollower: "te ha seguido"
|
youGotNewFollower: "te ha seguido"
|
||||||
receiveFollowRequest: "Recibiste una solicitud de seguimiento"
|
receiveFollowRequest: "Recibiste una solicitud de seguimiento"
|
||||||
followRequestAccepted: "La solicitud de seguimiento fue aceptada"
|
followRequestAccepted: "La solicitud de seguimiento fue aceptada"
|
||||||
|
@ -87,11 +88,11 @@ enterListName: "Ingrese nombre de lista"
|
||||||
privacy: "Privacidad"
|
privacy: "Privacidad"
|
||||||
makeFollowManuallyApprove: "Aprobar manualmente las solicitudes de seguimiento"
|
makeFollowManuallyApprove: "Aprobar manualmente las solicitudes de seguimiento"
|
||||||
defaultNoteVisibility: "Visibilidad por defecto"
|
defaultNoteVisibility: "Visibilidad por defecto"
|
||||||
follow: "Sigue"
|
follow: "Seguir"
|
||||||
followRequest: "Solicitud de seguimiento"
|
followRequest: "Enviar solicitud de seguimiento"
|
||||||
followRequests: "Solicitudes de seguimiento"
|
followRequests: "Solicitudes de seguimiento"
|
||||||
unfollow: "Dejar de seguir"
|
unfollow: "Dejar de seguir"
|
||||||
followRequestPending: "Solicitudes de seguimiento pendientes"
|
followRequestPending: "Solicitudes de seguimiento pendiente"
|
||||||
enterEmoji: "Ingresar emojis"
|
enterEmoji: "Ingresar emojis"
|
||||||
renote: "Renotar"
|
renote: "Renotar"
|
||||||
unrenote: "Quitar renota"
|
unrenote: "Quitar renota"
|
||||||
|
@ -100,7 +101,7 @@ cantRenote: "No se puede renotar este post"
|
||||||
cantReRenote: "No se puede renotar una renota"
|
cantReRenote: "No se puede renotar una renota"
|
||||||
quote: "Citar"
|
quote: "Citar"
|
||||||
pinnedNote: "Nota fijada"
|
pinnedNote: "Nota fijada"
|
||||||
pinned: "Fijar"
|
pinned: "Fijar al perfil"
|
||||||
you: "Tú"
|
you: "Tú"
|
||||||
clickToShow: "Click para ver"
|
clickToShow: "Click para ver"
|
||||||
sensitive: "Marcado como sensible"
|
sensitive: "Marcado como sensible"
|
||||||
|
@ -203,6 +204,7 @@ done: "Terminado"
|
||||||
processing: "Procesando"
|
processing: "Procesando"
|
||||||
preview: "Vista previa"
|
preview: "Vista previa"
|
||||||
default: "Predeterminado"
|
default: "Predeterminado"
|
||||||
|
defaultValueIs: "Predeterminado"
|
||||||
noCustomEmojis: "No hay emojis personalizados"
|
noCustomEmojis: "No hay emojis personalizados"
|
||||||
noJobs: "No hay trabajos"
|
noJobs: "No hay trabajos"
|
||||||
federating: "Federando"
|
federating: "Federando"
|
||||||
|
@ -381,6 +383,7 @@ administrator: "Administrador"
|
||||||
token: "Token"
|
token: "Token"
|
||||||
twoStepAuthentication: "Autenticación de dos factores"
|
twoStepAuthentication: "Autenticación de dos factores"
|
||||||
moderator: "Moderador"
|
moderator: "Moderador"
|
||||||
|
moderation: "Moderación"
|
||||||
nUsersMentioned: "{n} usuarios mencionados"
|
nUsersMentioned: "{n} usuarios mencionados"
|
||||||
securityKey: "Clave de seguridad"
|
securityKey: "Clave de seguridad"
|
||||||
securityKeyName: "Nombre de la Clave"
|
securityKeyName: "Nombre de la Clave"
|
||||||
|
@ -559,6 +562,7 @@ author: "Autor"
|
||||||
leaveConfirm: "Hay modificaciones sin guardar. ¿Desea descartarlas?"
|
leaveConfirm: "Hay modificaciones sin guardar. ¿Desea descartarlas?"
|
||||||
manage: "Administrar"
|
manage: "Administrar"
|
||||||
plugins: "Plugins"
|
plugins: "Plugins"
|
||||||
|
preferencesBackups: "Respaldo de preferencias"
|
||||||
deck: "Deck"
|
deck: "Deck"
|
||||||
undeck: "Quitar deck"
|
undeck: "Quitar deck"
|
||||||
useBlurEffectForModal: "Usar efecto borroso en modales"
|
useBlurEffectForModal: "Usar efecto borroso en modales"
|
||||||
|
@ -854,6 +858,9 @@ noEmailServerWarning: "No se ha configurado un servidor de correo electrónico."
|
||||||
thereIsUnresolvedAbuseReportWarning: "Hay reportes sin resolver"
|
thereIsUnresolvedAbuseReportWarning: "Hay reportes sin resolver"
|
||||||
recommended: "Recomendado"
|
recommended: "Recomendado"
|
||||||
check: "Verificar"
|
check: "Verificar"
|
||||||
|
driveCapOverrideLabel: "Cambiar la capacidad de la unidad para este usuario"
|
||||||
|
driveCapOverrideCaption: "Restablecer la capacidad a su predeterminado ingresando un valor de 0 o menos"
|
||||||
|
requireAdminForView: "Necesitas iniciar sesión como administrador para ver esto."
|
||||||
isSystemAccount: "Cuenta creada y operada automáticamente por el sistema"
|
isSystemAccount: "Cuenta creada y operada automáticamente por el sistema"
|
||||||
typeToConfirm: "Ingrese {x} para confirmar"
|
typeToConfirm: "Ingrese {x} para confirmar"
|
||||||
deleteAccount: "Borrar cuenta"
|
deleteAccount: "Borrar cuenta"
|
||||||
|
@ -861,11 +868,39 @@ document: "Documento"
|
||||||
numberOfPageCache: "Cantidad de páginas cacheadas"
|
numberOfPageCache: "Cantidad de páginas cacheadas"
|
||||||
numberOfPageCacheDescription: "Al aumentar el número mejora la conveniencia pero tambien puede aumentar la carga y la memoria a usarse"
|
numberOfPageCacheDescription: "Al aumentar el número mejora la conveniencia pero tambien puede aumentar la carga y la memoria a usarse"
|
||||||
logoutConfirm: "¿Cerrar sesión?"
|
logoutConfirm: "¿Cerrar sesión?"
|
||||||
|
lastActiveDate: "Utilizado por última vez el"
|
||||||
|
statusbar: "Barra de estado"
|
||||||
|
pleaseSelect: "Selecciona una opción"
|
||||||
reverse: "Echar de un capirotazo"
|
reverse: "Echar de un capirotazo"
|
||||||
colored: "Color"
|
colored: "Color"
|
||||||
|
refreshInterval: "Intervalo de actualización"
|
||||||
label: "Etiqueta"
|
label: "Etiqueta"
|
||||||
|
type: "Tipo"
|
||||||
|
speed: "Velocidad"
|
||||||
|
slow: "Lento"
|
||||||
|
fast: "Rápido"
|
||||||
|
sensitiveMediaDetection: "Detección de contenido NSFW"
|
||||||
localOnly: "Solo local"
|
localOnly: "Solo local"
|
||||||
|
remoteOnly: "Sólo remoto"
|
||||||
|
failedToUpload: "La subida falló"
|
||||||
|
cannotUploadBecauseInappropriate: "Este archivo no se puede subir debido a que algunas partes han sido detectadas comoNSFW."
|
||||||
|
cannotUploadBecauseNoFreeSpace: "La subida falló debido a falta de espacio libre en la unidad del usuario."
|
||||||
|
beta: "Beta"
|
||||||
|
enableAutoSensitive: "Marcar automáticamente contenido NSFW"
|
||||||
|
enableAutoSensitiveDescription: "Permite la detección y marcado automático de contenido NSFW usando 'Machine Learning' cuando sea posible. Incluso si esta opción está desactivada, puede ser activado para toda la instancia."
|
||||||
|
activeEmailValidationDescription: "Habilita la validación estricta de direcciones de correo electrónico, lo cual incluye la revisión de direcciones desechables y si se puede comunicar con éstas. Cuando está deshabilitado, sólo el formato de la dirección es validado."
|
||||||
|
navbar: "Barra de navegación"
|
||||||
|
shuffle: "Aleatorio"
|
||||||
account: "Cuentas"
|
account: "Cuentas"
|
||||||
|
move: "Mover"
|
||||||
|
_sensitiveMediaDetection:
|
||||||
|
description: "Reduce el esfuerzo de la moderación el el servidor a través del reconocimiento automático de contenido NSFW usando 'Machine Learning'. Esto puede incrementar ligeramente la carga en el servidor."
|
||||||
|
sensitivity: "Sensibilidad de detección"
|
||||||
|
sensitivityDescription: "Reducir la sensibilidad puede acarrear a varios falsos positivos, mientras que incrementarla puede reducir las detecciones (falsos negativos)."
|
||||||
|
setSensitiveFlagAutomatically: "Marcar como NSFW"
|
||||||
|
setSensitiveFlagAutomaticallyDescription: "Los resultados de la detección interna pueden ser retenidos incluso si la opción está desactivada."
|
||||||
|
analyzeVideos: "Habilitar el análisis de videos"
|
||||||
|
analyzeVideosDescription: "Analizar videos en adición a las imágenes. Esto puede incrementar ligeramente la carga del servidor."
|
||||||
_emailUnavailable:
|
_emailUnavailable:
|
||||||
used: "Ya fue usado"
|
used: "Ya fue usado"
|
||||||
format: "Formato no válido."
|
format: "Formato no válido."
|
||||||
|
@ -908,6 +943,24 @@ _plugin:
|
||||||
install: "Instalar plugins"
|
install: "Instalar plugins"
|
||||||
installWarn: "Por favor no instale plugins que no son de confianza"
|
installWarn: "Por favor no instale plugins que no son de confianza"
|
||||||
manage: "Gestionar plugins"
|
manage: "Gestionar plugins"
|
||||||
|
_preferencesBackups:
|
||||||
|
list: "Respaldos creados"
|
||||||
|
saveNew: "Guardar nuevo respaldo"
|
||||||
|
loadFile: "Cargar desde archivo"
|
||||||
|
apply: "Aplicar a este dispositivo"
|
||||||
|
save: "Guardar cambios"
|
||||||
|
inputName: "Por favor, ingresa un nombre para este respaldo"
|
||||||
|
cannotSave: "Fallo al guardar"
|
||||||
|
nameAlreadyExists: "Un respaldo llamado \"{name}\" ya existe. Por favor ingresa un nombre diferente"
|
||||||
|
applyConfirm: "¿Realmente quieres aplicar los cambios desde el archivo \"{name}\" a este dispositivo? Las configuraciones existentes serán sobreescritas. "
|
||||||
|
saveConfirm: "¿Guardar respaldo como \"{name}\"?"
|
||||||
|
deleteConfirm: "¿Borrar el respaldo \"{name}\"?"
|
||||||
|
renameConfirm: "¿Renombrar este respaldo de \"{old}\" a \"{new}\"?"
|
||||||
|
noBackups: "No existen respaldos. Deberás respaldar las configuraciones del cliente en este servidor usando \"Crear nuevo respaldo\""
|
||||||
|
createdAt: "Creado: {date} {time}"
|
||||||
|
updatedAt: "Actualizado: {date} {time}"
|
||||||
|
cannotLoad: "La carga falló"
|
||||||
|
invalidFile: "Formato de archivo inválido"
|
||||||
_registry:
|
_registry:
|
||||||
scope: "Alcance"
|
scope: "Alcance"
|
||||||
key: "Clave"
|
key: "Clave"
|
||||||
|
@ -991,6 +1044,8 @@ _mfm:
|
||||||
sparkleDescription: "Aplica un efecto de partículas parpadeantes"
|
sparkleDescription: "Aplica un efecto de partículas parpadeantes"
|
||||||
rotate: "Rotar"
|
rotate: "Rotar"
|
||||||
rotateDescription: "Rota el contenido a un ángulo especificado."
|
rotateDescription: "Rota el contenido a un ángulo especificado."
|
||||||
|
plain: "Plano"
|
||||||
|
plainDescription: "Desactiva los efectos de todo el contenido MFM con este efecto MFM."
|
||||||
_instanceTicker:
|
_instanceTicker:
|
||||||
none: "No mostrar"
|
none: "No mostrar"
|
||||||
remote: "Mostrar a usuarios remotos"
|
remote: "Mostrar a usuarios remotos"
|
||||||
|
@ -1220,9 +1275,11 @@ _widgets:
|
||||||
trends: "Tendencias"
|
trends: "Tendencias"
|
||||||
clock: "Reloj"
|
clock: "Reloj"
|
||||||
rss: "Lector RSS"
|
rss: "Lector RSS"
|
||||||
|
rssTicker: "Ticker-RSS"
|
||||||
activity: "Actividad"
|
activity: "Actividad"
|
||||||
photos: "Fotos"
|
photos: "Fotos"
|
||||||
digitalClock: "Reloj digital"
|
digitalClock: "Reloj digital"
|
||||||
|
unixClock: "Reloj UNIX"
|
||||||
federation: "Federación"
|
federation: "Federación"
|
||||||
instanceCloud: "Nube de palabras de la instancia"
|
instanceCloud: "Nube de palabras de la instancia"
|
||||||
postForm: "Formulario"
|
postForm: "Formulario"
|
||||||
|
@ -1663,6 +1720,7 @@ _deck:
|
||||||
alwaysShowMainColumn: "Siempre mostrar la columna principal"
|
alwaysShowMainColumn: "Siempre mostrar la columna principal"
|
||||||
columnAlign: "Alinear columnas"
|
columnAlign: "Alinear columnas"
|
||||||
addColumn: "Agregar columna"
|
addColumn: "Agregar columna"
|
||||||
|
configureColumn: "Ajustes de columna"
|
||||||
swapLeft: "Mover a la izquierda"
|
swapLeft: "Mover a la izquierda"
|
||||||
swapRight: "Mover a la derecha"
|
swapRight: "Mover a la derecha"
|
||||||
swapUp: "Mover arriba"
|
swapUp: "Mover arriba"
|
||||||
|
@ -1670,6 +1728,11 @@ _deck:
|
||||||
stackLeft: "Apilar a la izquierda"
|
stackLeft: "Apilar a la izquierda"
|
||||||
popRight: "Sacar a la derecha"
|
popRight: "Sacar a la derecha"
|
||||||
profile: "Perfil"
|
profile: "Perfil"
|
||||||
|
newProfile: "Nuevo perfil"
|
||||||
|
deleteProfile: "Eliminar perfil"
|
||||||
|
introduction: "¡Crea la interfaz perfecta para tí organizando las columnas libremente!"
|
||||||
|
introduction2: "Presiona en la + de la derecha de la pantalla para añadir nuevas columnas donde quieras."
|
||||||
|
widgetsIntroduction: "Por favor selecciona \"Editar Widgets\" en el menú columna y agrega un widget."
|
||||||
_columns:
|
_columns:
|
||||||
main: "Principal"
|
main: "Principal"
|
||||||
widgets: "Widgets"
|
widgets: "Widgets"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Chercher un·e utilisateur·rice"
|
||||||
reply: "Répondre"
|
reply: "Répondre"
|
||||||
loadMore: "Afficher plus …"
|
loadMore: "Afficher plus …"
|
||||||
showMore: "Afficher plus …"
|
showMore: "Afficher plus …"
|
||||||
|
showLess: "Fermer"
|
||||||
youGotNewFollower: "Vous suit"
|
youGotNewFollower: "Vous suit"
|
||||||
receiveFollowRequest: "Demande d’abonnement reçue"
|
receiveFollowRequest: "Demande d’abonnement reçue"
|
||||||
followRequestAccepted: "La demande d’abonnement a été acceptée"
|
followRequestAccepted: "La demande d’abonnement a été acceptée"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Cari pengguna"
|
||||||
reply: "Balas"
|
reply: "Balas"
|
||||||
loadMore: "Selebihnya"
|
loadMore: "Selebihnya"
|
||||||
showMore: "Selebihnya"
|
showMore: "Selebihnya"
|
||||||
|
showLess: "Tutup"
|
||||||
youGotNewFollower: "Mengikuti kamu"
|
youGotNewFollower: "Mengikuti kamu"
|
||||||
receiveFollowRequest: "Ingin mengikuti kamu"
|
receiveFollowRequest: "Ingin mengikuti kamu"
|
||||||
followRequestAccepted: "Permintaan mengikuti telah disetujui"
|
followRequestAccepted: "Permintaan mengikuti telah disetujui"
|
||||||
|
|
|
@ -36,6 +36,7 @@ const languages = [
|
||||||
'sk-SK',
|
'sk-SK',
|
||||||
'ug-CN',
|
'ug-CN',
|
||||||
'uk-UA',
|
'uk-UA',
|
||||||
|
'vi-VN',
|
||||||
'zh-CN',
|
'zh-CN',
|
||||||
'zh-TW',
|
'zh-TW',
|
||||||
];
|
];
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Cerca utente"
|
||||||
reply: "Rispondi"
|
reply: "Rispondi"
|
||||||
loadMore: "Mostra di più"
|
loadMore: "Mostra di più"
|
||||||
showMore: "Mostra di più"
|
showMore: "Mostra di più"
|
||||||
|
showLess: "Chiudi"
|
||||||
youGotNewFollower: "Ha iniziato a seguirti"
|
youGotNewFollower: "Ha iniziato a seguirti"
|
||||||
receiveFollowRequest: "Hai ricevuto una richiesta di follow."
|
receiveFollowRequest: "Hai ricevuto una richiesta di follow."
|
||||||
followRequestAccepted: "Richiesta di follow accettata"
|
followRequestAccepted: "Richiesta di follow accettata"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "ユーザーを検索"
|
||||||
reply: "返信"
|
reply: "返信"
|
||||||
loadMore: "もっと見る"
|
loadMore: "もっと見る"
|
||||||
showMore: "もっと見る"
|
showMore: "もっと見る"
|
||||||
|
showLess: "閉じる"
|
||||||
youGotNewFollower: "フォローされました"
|
youGotNewFollower: "フォローされました"
|
||||||
receiveFollowRequest: "フォローリクエストされました"
|
receiveFollowRequest: "フォローリクエストされました"
|
||||||
followRequestAccepted: "フォローが承認されました"
|
followRequestAccepted: "フォローが承認されました"
|
||||||
|
@ -561,6 +562,7 @@ author: "作者"
|
||||||
leaveConfirm: "未保存の変更があります。破棄しますか?"
|
leaveConfirm: "未保存の変更があります。破棄しますか?"
|
||||||
manage: "管理"
|
manage: "管理"
|
||||||
plugins: "プラグイン"
|
plugins: "プラグイン"
|
||||||
|
preferencesBackups: "設定のバックアップ"
|
||||||
deck: "デッキ"
|
deck: "デッキ"
|
||||||
undeck: "デッキ解除"
|
undeck: "デッキ解除"
|
||||||
useBlurEffectForModal: "モーダルにぼかし効果を使用"
|
useBlurEffectForModal: "モーダルにぼかし効果を使用"
|
||||||
|
@ -952,6 +954,25 @@ _plugin:
|
||||||
installWarn: "信頼できないプラグインはインストールしないでください。"
|
installWarn: "信頼できないプラグインはインストールしないでください。"
|
||||||
manage: "プラグインの管理"
|
manage: "プラグインの管理"
|
||||||
|
|
||||||
|
_preferencesBackups:
|
||||||
|
list: "作成したバックアップ"
|
||||||
|
saveNew: "新規保存"
|
||||||
|
loadFile: "ファイルを読み込み"
|
||||||
|
apply: "このデバイスに適用"
|
||||||
|
save: "上書き保存"
|
||||||
|
inputName: "バックアップ名を入力"
|
||||||
|
cannotSave: "保存できません"
|
||||||
|
nameAlreadyExists: "バックアップ名「{name}」は既に存在します。違う名前を指定してください。"
|
||||||
|
applyConfirm: "バックアップ「{name}」を現在のデバイスに適用しますか?現在のデバイス設定は失われます。"
|
||||||
|
saveConfirm: "{name}に上書き保存しますか?"
|
||||||
|
deleteConfirm: "{name}を削除しますか?"
|
||||||
|
renameConfirm: "「{old}」を「{new}」に変更しますか?"
|
||||||
|
noBackups: "バックアップはありません。「新規保存」で現在のクライアント設定をサーバーに保存できます。"
|
||||||
|
createdAt: "作成日時: {date} {time}"
|
||||||
|
updatedAt: "更新日時: {date} {time}"
|
||||||
|
cannotLoad: "読み込みできません"
|
||||||
|
invalidFile: "ファイル形式が違います。"
|
||||||
|
|
||||||
_registry:
|
_registry:
|
||||||
scope: "スコープ"
|
scope: "スコープ"
|
||||||
key: "キー"
|
key: "キー"
|
||||||
|
@ -1291,6 +1312,7 @@ _widgets:
|
||||||
activity: "アクティビティ"
|
activity: "アクティビティ"
|
||||||
photos: "フォト"
|
photos: "フォト"
|
||||||
digitalClock: "デジタル時計"
|
digitalClock: "デジタル時計"
|
||||||
|
unixClock: "UNIX時計"
|
||||||
federation: "連合"
|
federation: "連合"
|
||||||
instanceCloud: "インスタンスクラウド"
|
instanceCloud: "インスタンスクラウド"
|
||||||
postForm: "投稿フォーム"
|
postForm: "投稿フォーム"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "ユーザーを検索"
|
||||||
reply: "返事"
|
reply: "返事"
|
||||||
loadMore: "まだまだあるで!"
|
loadMore: "まだまだあるで!"
|
||||||
showMore: "まだまだあるで!"
|
showMore: "まだまだあるで!"
|
||||||
|
showLess: "閉じる"
|
||||||
youGotNewFollower: "フォローされたで"
|
youGotNewFollower: "フォローされたで"
|
||||||
receiveFollowRequest: "フォローリクエストされたで"
|
receiveFollowRequest: "フォローリクエストされたで"
|
||||||
followRequestAccepted: "フォローが承認されたで"
|
followRequestAccepted: "フォローが承認されたで"
|
||||||
|
@ -203,6 +204,7 @@ done: "でけた"
|
||||||
processing: "処理しとる"
|
processing: "処理しとる"
|
||||||
preview: "プレビュー"
|
preview: "プレビュー"
|
||||||
default: "デフォルト"
|
default: "デフォルト"
|
||||||
|
defaultValueIs: "デフォルト"
|
||||||
noCustomEmojis: "絵文字はあらへん"
|
noCustomEmojis: "絵文字はあらへん"
|
||||||
noJobs: "ジョブはあらへん"
|
noJobs: "ジョブはあらへん"
|
||||||
federating: "連合しとる"
|
federating: "連合しとる"
|
||||||
|
@ -317,6 +319,8 @@ monthX: "{month}月"
|
||||||
yearX: "{year}年"
|
yearX: "{year}年"
|
||||||
pages: "ページ"
|
pages: "ページ"
|
||||||
integration: "連携"
|
integration: "連携"
|
||||||
|
connectService: "つなげるで"
|
||||||
|
disconnectService: "切るで"
|
||||||
enableLocalTimeline: "ローカルタイムラインを使えるようにする"
|
enableLocalTimeline: "ローカルタイムラインを使えるようにする"
|
||||||
enableGlobalTimeline: "グローバルタイムラインを使えるようにする"
|
enableGlobalTimeline: "グローバルタイムラインを使えるようにする"
|
||||||
disablingTimelinesInfo: "ここらへんのタイムラインを使えんようにしてしもても、管理者とモデレーターは使えるままになってるで、そうやなかったら不便やからな。"
|
disablingTimelinesInfo: "ここらへんのタイムラインを使えんようにしてしもても、管理者とモデレーターは使えるままになってるで、そうやなかったら不便やからな。"
|
||||||
|
@ -328,10 +332,13 @@ driveCapacityPerRemoteAccount: "リモートユーザーひとりあたりのド
|
||||||
inMb: "メガバイト単位"
|
inMb: "メガバイト単位"
|
||||||
iconUrl: "アイコン画像のURL"
|
iconUrl: "アイコン画像のURL"
|
||||||
bannerUrl: "バナー画像のURL"
|
bannerUrl: "バナー画像のURL"
|
||||||
|
backgroundImageUrl: "背景画像のURL"
|
||||||
basicInfo: "基本情報"
|
basicInfo: "基本情報"
|
||||||
pinnedUsers: "ピン留めしたユーザー"
|
pinnedUsers: "ピン留めしたユーザー"
|
||||||
pinnedUsersDescription: "「みつける」ページとかにピン留めしたいユーザーをここに書けばええんやで。他ん人との名前は改行で区切ればええんやで。"
|
pinnedUsersDescription: "「みつける」ページとかにピン留めしたいユーザーをここに書けばええんやで。他ん人との名前は改行で区切ればええんやで。"
|
||||||
pinnedPages: "ピン留めページ"
|
pinnedPages: "ピン留めページ"
|
||||||
|
pinnedPagesDescription: "インスタンスのいっちゃん上にピン留めしたいページのパスを改行で区切って記述してな"
|
||||||
|
pinnedClipId: "ピン留めするクリップのID"
|
||||||
pinnedNotes: "ピン留めされとるノート"
|
pinnedNotes: "ピン留めされとるノート"
|
||||||
hcaptcha: "hCaptcha(キャプチャ)"
|
hcaptcha: "hCaptcha(キャプチャ)"
|
||||||
enableHcaptcha: "hCaptcha(キャプチャ)をつけとく"
|
enableHcaptcha: "hCaptcha(キャプチャ)をつけとく"
|
||||||
|
@ -376,6 +383,7 @@ administrator: "管理者"
|
||||||
token: "トークン"
|
token: "トークン"
|
||||||
twoStepAuthentication: "二段階認証"
|
twoStepAuthentication: "二段階認証"
|
||||||
moderator: "モデレーター"
|
moderator: "モデレーター"
|
||||||
|
moderation: "モデレーション"
|
||||||
nUsersMentioned: "{n}人が投稿"
|
nUsersMentioned: "{n}人が投稿"
|
||||||
securityKey: "セキュリティキー"
|
securityKey: "セキュリティキー"
|
||||||
securityKeyName: "キーの名前"
|
securityKeyName: "キーの名前"
|
||||||
|
@ -435,13 +443,17 @@ strongPassword: "ええ感じのパスワード"
|
||||||
passwordMatched: "よし!一致や!"
|
passwordMatched: "よし!一致や!"
|
||||||
passwordNotMatched: "一致しとらんで?"
|
passwordNotMatched: "一致しとらんで?"
|
||||||
signinWith: "{x}でログイン"
|
signinWith: "{x}でログイン"
|
||||||
|
signinFailed: "ログインできんかったで。もっかいユーザー名とパスワードを確認してみてな。"
|
||||||
|
tapSecurityKey: "セキュリティキーにタッチしてな"
|
||||||
or: "それか"
|
or: "それか"
|
||||||
language: "言語"
|
language: "言語"
|
||||||
uiLanguage: "UIの表示言語"
|
uiLanguage: "UIの表示言語"
|
||||||
groupInvited: "グループに招待されとるで"
|
groupInvited: "グループに招待されとるで"
|
||||||
aboutX: "{x}について"
|
aboutX: "{x}について"
|
||||||
useOsNativeEmojis: "OSネイティブの絵文字を使う"
|
useOsNativeEmojis: "OSネイティブの絵文字を使う"
|
||||||
|
disableDrawer: "メニューをドロワーで表示せぇへん"
|
||||||
youHaveNoGroups: "グループがあらへんねぇ。"
|
youHaveNoGroups: "グループがあらへんねぇ。"
|
||||||
|
joinOrCreateGroup: "既存のグループに招待してもらうか、新しくグループ作ってからやってな"
|
||||||
noHistory: "履歴はあらへんねぇ。"
|
noHistory: "履歴はあらへんねぇ。"
|
||||||
signinHistory: "ログイン履歴"
|
signinHistory: "ログイン履歴"
|
||||||
disableAnimatedMfm: "動きがやかましいMFMを止める"
|
disableAnimatedMfm: "動きがやかましいMFMを止める"
|
||||||
|
@ -450,6 +462,7 @@ category: "カテゴリ"
|
||||||
tags: "タグ"
|
tags: "タグ"
|
||||||
docSource: "このドキュメントのソース"
|
docSource: "このドキュメントのソース"
|
||||||
createAccount: "アカウントを作成"
|
createAccount: "アカウントを作成"
|
||||||
|
existingAccount: "既存のアカウント"
|
||||||
regenerate: "再生成"
|
regenerate: "再生成"
|
||||||
fontSize: "フォントサイズ"
|
fontSize: "フォントサイズ"
|
||||||
noFollowRequests: "フォロー申請はあらへんで"
|
noFollowRequests: "フォロー申請はあらへんで"
|
||||||
|
@ -473,10 +486,15 @@ useObjectStorage: "オブジェクトストレージを使う"
|
||||||
objectStorageBaseUrl: "Base URL"
|
objectStorageBaseUrl: "Base URL"
|
||||||
objectStorageBaseUrlDesc: "参照に使うにURLやで。CDNやProxyを使用してるんならそのURL、S3: 'https://<bucket>.s3.amazonaws.com'、GCSとかなら: 'https://storage.googleapis.com/<bucket>'。"
|
objectStorageBaseUrlDesc: "参照に使うにURLやで。CDNやProxyを使用してるんならそのURL、S3: 'https://<bucket>.s3.amazonaws.com'、GCSとかなら: 'https://storage.googleapis.com/<bucket>'。"
|
||||||
objectStorageBucket: "Bucket"
|
objectStorageBucket: "Bucket"
|
||||||
|
objectStorageBucketDesc: "使ってるサービスのbucket名を選んでな"
|
||||||
objectStoragePrefix: "Prefix"
|
objectStoragePrefix: "Prefix"
|
||||||
|
objectStoragePrefixDesc: "このprefixのディレクトリ下に格納されるで"
|
||||||
objectStorageEndpoint: "Endpoint"
|
objectStorageEndpoint: "Endpoint"
|
||||||
|
objectStorageEndpointDesc: "S3のときは空、それ以外は各サービスのendpointを指定してなー。'<host>'ってやるか'<host>:<port>'みたいに指定するんやで。"
|
||||||
objectStorageRegion: "Region"
|
objectStorageRegion: "Region"
|
||||||
|
objectStorageRegionDesc: "'xx-east-1'みたいなregionを指定したってやー。使ってるサービスにregionの概念がないときは、空か'us-east-1'にするんやで。"
|
||||||
objectStorageUseSSL: "SSLを使う"
|
objectStorageUseSSL: "SSLを使う"
|
||||||
|
objectStorageUseSSLDesc: "API接続にhttpsを使わん場合はオフにするんやで"
|
||||||
objectStorageUseProxy: "Proxyを使う"
|
objectStorageUseProxy: "Proxyを使う"
|
||||||
objectStorageUseProxyDesc: "API接続にproxy使わんのやったら切ってくれへん?"
|
objectStorageUseProxyDesc: "API接続にproxy使わんのやったら切ってくれへん?"
|
||||||
objectStorageSetPublicRead: "アップロードした時に'public-read'を設定してや"
|
objectStorageSetPublicRead: "アップロードした時に'public-read'を設定してや"
|
||||||
|
@ -517,29 +535,52 @@ removeAllFollowing: "フォローを全解除"
|
||||||
removeAllFollowingDescription: "{host}からのフォローをすべて解除するで。そのインスタンスが消えて無くなった時とかには便利な機能やで。"
|
removeAllFollowingDescription: "{host}からのフォローをすべて解除するで。そのインスタンスが消えて無くなった時とかには便利な機能やで。"
|
||||||
userSuspended: "このユーザーは...凍結されとる。"
|
userSuspended: "このユーザーは...凍結されとる。"
|
||||||
userSilenced: "このユーザーは...サイレンスされとる。"
|
userSilenced: "このユーザーは...サイレンスされとる。"
|
||||||
|
yourAccountSuspendedTitle: "あんたのアカウント凍結されとるで"
|
||||||
|
yourAccountSuspendedDescription: "あんたのアカウントは、サーバーの利用規約に違反したとかの理由で、凍結されとるで。細かいことは管理者までお問い合わせたってなー。絶対に新しいアカウント作ったらあかんで。絶対やで。"
|
||||||
|
menu: "メニュー"
|
||||||
divider: "分割線"
|
divider: "分割線"
|
||||||
|
addItem: "項目を追加"
|
||||||
relays: "リレー"
|
relays: "リレー"
|
||||||
addRelay: "リレーの追加"
|
addRelay: "リレーの追加"
|
||||||
inboxUrl: "inboxのURL"
|
inboxUrl: "inboxのURL"
|
||||||
addedRelays: "追加済みのリレー"
|
addedRelays: "追加済みのリレー"
|
||||||
|
serviceworkerInfo: "プッシュ通知をするんなら有効にせなあかんで。"
|
||||||
|
deletedNote: "消された投稿"
|
||||||
|
invisibleNote: "非公開の投稿"
|
||||||
|
enableInfiniteScroll: "自動でもっと見る"
|
||||||
|
visibility: "公開範囲"
|
||||||
poll: "アンケート"
|
poll: "アンケート"
|
||||||
|
useCw: "内容を隠す"
|
||||||
enablePlayer: "プレイヤーを開く"
|
enablePlayer: "プレイヤーを開く"
|
||||||
disablePlayer: "プレイヤーを閉じる"
|
disablePlayer: "プレイヤーを閉じる"
|
||||||
expandTweet: "ツイートを展開する"
|
expandTweet: "ツイートを展開する"
|
||||||
themeEditor: "テーマエディター"
|
themeEditor: "テーマエディター"
|
||||||
description: "説明"
|
description: "説明"
|
||||||
|
describeFile: "キャプションを付ける"
|
||||||
|
enterFileDescription: "キャプションを入力"
|
||||||
author: "作者"
|
author: "作者"
|
||||||
leaveConfirm: "未保存の変更があるで!ほかしてええか?"
|
leaveConfirm: "未保存の変更があるで!ほかしてええか?"
|
||||||
manage: "管理"
|
manage: "管理"
|
||||||
plugins: "プラグイン"
|
plugins: "プラグイン"
|
||||||
deck: "デッキ"
|
deck: "デッキ"
|
||||||
undeck: "デッキ解除"
|
undeck: "デッキ解除"
|
||||||
|
useBlurEffectForModal: "モーダルにぼかし効果を使用"
|
||||||
|
useFullReactionPicker: "フル機能にリアクションピッカーを使用"
|
||||||
width: "幅"
|
width: "幅"
|
||||||
height: "高さ"
|
height: "高さ"
|
||||||
large: "大"
|
large: "大"
|
||||||
medium: "中"
|
medium: "中"
|
||||||
small: "小"
|
small: "小"
|
||||||
|
generateAccessToken: "アクセストークンの発行"
|
||||||
|
permission: "権限"
|
||||||
|
enableAll: "全部使えるようにする"
|
||||||
|
disableAll: "全部使えへんようにする"
|
||||||
|
tokenRequested: "アカウントへのアクセス許可"
|
||||||
|
pluginTokenRequestedDescription: "このプラグインはここで設定した権限を使えるようになるで。"
|
||||||
|
notificationType: "通知の種類"
|
||||||
edit: "編集"
|
edit: "編集"
|
||||||
|
useStarForReactionFallback: "リアクションがようわからん場合、★を使う"
|
||||||
|
emailServer: "メールサーバー"
|
||||||
enableEmail: "メール配信を受け取る"
|
enableEmail: "メール配信を受け取る"
|
||||||
emailConfigInfo: "メールアドレスの確認とかパスワードリセットの時に使うで"
|
emailConfigInfo: "メールアドレスの確認とかパスワードリセットの時に使うで"
|
||||||
email: "メール"
|
email: "メール"
|
||||||
|
@ -551,8 +592,12 @@ smtpUser: "ユーザー名"
|
||||||
smtpPass: "パスワード"
|
smtpPass: "パスワード"
|
||||||
emptyToDisableSmtpAuth: "ユーザー名とパスワードになんも入れんかったら、SMTP認証を無効化するで"
|
emptyToDisableSmtpAuth: "ユーザー名とパスワードになんも入れんかったら、SMTP認証を無効化するで"
|
||||||
smtpSecure: "SMTP 接続に暗黙的なSSL/TLSを使用する"
|
smtpSecure: "SMTP 接続に暗黙的なSSL/TLSを使用する"
|
||||||
|
smtpSecureInfo: "STARTTLS使っとる時はオフにするで。"
|
||||||
testEmail: "配信テスト"
|
testEmail: "配信テスト"
|
||||||
wordMute: "ワードミュート"
|
wordMute: "ワードミュート"
|
||||||
|
regexpError: "正規表現エラー"
|
||||||
|
regexpErrorDescription: "{tab}ワードミュートの{line}行目の正規表現にエラーが出てきたで:"
|
||||||
|
instanceMute: "インスタンスミュート"
|
||||||
userSaysSomething: "{name}が何か言ったようやで"
|
userSaysSomething: "{name}が何か言ったようやで"
|
||||||
makeActive: "使うで"
|
makeActive: "使うで"
|
||||||
display: "表示"
|
display: "表示"
|
||||||
|
@ -567,13 +612,24 @@ create: "作成"
|
||||||
notificationSetting: "通知設定"
|
notificationSetting: "通知設定"
|
||||||
notificationSettingDesc: "表示する通知の種類えらんでや。"
|
notificationSettingDesc: "表示する通知の種類えらんでや。"
|
||||||
useGlobalSetting: "グローバル設定を使ってや"
|
useGlobalSetting: "グローバル設定を使ってや"
|
||||||
|
useGlobalSettingDesc: "オンにすると、アカウントの通知設定が使われるで。オフにすると、別々に設定できるようになるで。"
|
||||||
other: "その他"
|
other: "その他"
|
||||||
regenerateLoginToken: "ログイントークンを再生成"
|
regenerateLoginToken: "ログイントークンを再生成"
|
||||||
|
regenerateLoginTokenDescription: "ログインに使われる内部トークンをもっかい作るで。いつもならこれをやる必要はないで。もっかい作ると、全部のデバイスでログアウトされるで気ぃつけてなー。"
|
||||||
|
setMultipleBySeparatingWithSpace: "スペースで区切って複数設定できるで。"
|
||||||
|
fileIdOrUrl: "ファイルIDかURL"
|
||||||
behavior: "動作"
|
behavior: "動作"
|
||||||
sample: "サンプル"
|
sample: "サンプル"
|
||||||
abuseReports: "通報"
|
abuseReports: "通報"
|
||||||
reportAbuse: "通報"
|
reportAbuse: "通報"
|
||||||
reportAbuseOf: "{name}を通報する"
|
reportAbuseOf: "{name}を通報する"
|
||||||
|
fillAbuseReportDescription: "細かい通報理由を書いてなー。対象ノートがある時はそのURLも書いといてなー。"
|
||||||
|
abuseReported: "無事内容が送信されたみたいやで。おおきに〜。"
|
||||||
|
reporter: "通報者"
|
||||||
|
reporteeOrigin: "通報先"
|
||||||
|
reporterOrigin: "通報元"
|
||||||
|
forwardReport: "リモートインスタンスに通報を転送するで"
|
||||||
|
forwardReportIsAnonymous: "リモートインスタンスからはあんたの情報は見れへんくって、匿名のシステムアカウントとして表示されるで。"
|
||||||
send: "送信"
|
send: "送信"
|
||||||
abuseMarkAsResolved: "対応したで"
|
abuseMarkAsResolved: "対応したで"
|
||||||
openInNewTab: "新しいタブで開く"
|
openInNewTab: "新しいタブで開く"
|
||||||
|
@ -587,22 +643,57 @@ system: "システム"
|
||||||
switchUi: "UI切り替え"
|
switchUi: "UI切り替え"
|
||||||
desktop: "デスクトップ"
|
desktop: "デスクトップ"
|
||||||
clip: "クリップ"
|
clip: "クリップ"
|
||||||
|
createNew: "新しく作るで"
|
||||||
|
optional: "任意"
|
||||||
|
createNewClip: "新しいクリップを作るで"
|
||||||
|
unclip: "クリップ解除するで"
|
||||||
|
confirmToUnclipAlreadyClippedNote: "このノートはすでにクリップ「{name}」に含まれとるで。ノートをこのクリップから除外したる?"
|
||||||
|
public: "パブリック"
|
||||||
|
i18nInfo: "Misskeyは有志によっていろんな言語に翻訳されとるで。{link}で翻訳に協力したってやー。"
|
||||||
|
manageAccessTokens: "アクセストークンの管理"
|
||||||
|
accountInfo: "アカウント情報"
|
||||||
|
notesCount: "ノートの数やで"
|
||||||
|
repliesCount: "返信した数やで"
|
||||||
|
renotesCount: "Renoteした数やで"
|
||||||
|
repliedCount: "返信された数やで"
|
||||||
|
renotedCount: "Renoteされた数やで"
|
||||||
|
followingCount: "フォロー数やで"
|
||||||
|
followersCount: "フォロワー数やで"
|
||||||
|
sentReactionsCount: "リアクションした数やで"
|
||||||
receivedReactionsCount: "リアクションされた数"
|
receivedReactionsCount: "リアクションされた数"
|
||||||
pollVotesCount: "アンケートに投票した数"
|
pollVotesCount: "アンケートに投票した数"
|
||||||
pollVotedCount: "アンケートに投票された数"
|
pollVotedCount: "アンケートに投票された数"
|
||||||
yes: "はい"
|
yes: "はい"
|
||||||
no: "いいえ"
|
no: "いいえ"
|
||||||
driveFilesCount: "ドライブのファイル数"
|
driveFilesCount: "ドライブのファイル数"
|
||||||
|
driveUsage: "ドライブ使用量やで"
|
||||||
|
noCrawle: "クローラーによるインデックスを拒否するで"
|
||||||
|
noCrawleDescription: "検索エンジンにあんたのユーザーページ、ノート、Pagesとかのコンテンツを登録(インデックス)せぇへんように頼むで。"
|
||||||
|
lockedAccountInfo: "フォローを承認制にしとっても、ノートの公開範囲を「フォロワー」にせぇへん限り、誰でもあんたのノートを見れるで。"
|
||||||
|
alwaysMarkSensitive: "デフォルトでメディアを閲覧注意にするで"
|
||||||
|
loadRawImages: "添付画像のサムネイルをオリジナル画質にするで"
|
||||||
|
disableShowingAnimatedImages: "アニメーション画像を再生しやへんで"
|
||||||
|
verificationEmailSent: "無事確認のメールを送れたで。メールに書いてあるリンクにアクセスして、設定を完了してなー。"
|
||||||
|
notSet: "未設定"
|
||||||
emailVerified: "メールアドレスは確認されたで"
|
emailVerified: "メールアドレスは確認されたで"
|
||||||
|
noteFavoritesCount: "お気に入りノートの数やで"
|
||||||
pageLikesCount: "Pageにええやんと思った数"
|
pageLikesCount: "Pageにええやんと思った数"
|
||||||
pageLikedCount: "Pageにええやんと思ってくれた数"
|
pageLikedCount: "Pageにええやんと思ってくれた数"
|
||||||
|
contact: "連絡先"
|
||||||
|
useSystemFont: "システムのデフォルトのフォントを使うで"
|
||||||
clips: "クリップ"
|
clips: "クリップ"
|
||||||
|
experimentalFeatures: "実験的機能やで"
|
||||||
|
developer: "開発者やで"
|
||||||
|
makeExplorable: "アカウントを見つけやすくするで"
|
||||||
|
makeExplorableDescription: "オフにすると、「みつける」にアカウントが載らんくなるで。"
|
||||||
|
showGapBetweenNotesInTimeline: "タイムラインのノートを放して表示するで"
|
||||||
duplicate: "複製"
|
duplicate: "複製"
|
||||||
left: "左"
|
left: "左"
|
||||||
center: "中央"
|
center: "中央"
|
||||||
wide: "広い"
|
wide: "広い"
|
||||||
narrow: "狭い"
|
narrow: "狭い"
|
||||||
reloadToApplySetting: "設定はページリロード後に反映されるで。今リロードしとくか?"
|
reloadToApplySetting: "設定はページリロード後に反映されるで。今リロードしとくか?"
|
||||||
|
needReloadToApply: "反映には再起動せなあかんで"
|
||||||
showTitlebar: "タイトルバーを見せる"
|
showTitlebar: "タイトルバーを見せる"
|
||||||
clearCache: "キャッシュをほかす"
|
clearCache: "キャッシュをほかす"
|
||||||
onlineUsersCount: "{n}人が起きとるで"
|
onlineUsersCount: "{n}人が起きとるで"
|
||||||
|
@ -621,6 +712,7 @@ createdAt: "作成した日"
|
||||||
updatedAt: "更新日時"
|
updatedAt: "更新日時"
|
||||||
saveConfirm: "保存するで?"
|
saveConfirm: "保存するで?"
|
||||||
deleteConfirm: "ホンマに削除するで?"
|
deleteConfirm: "ホンマに削除するで?"
|
||||||
|
invalidValue: "有効な値じゃないみたいやで。"
|
||||||
registry: "レジストリ"
|
registry: "レジストリ"
|
||||||
closeAccount: "アカウントを閉鎖する"
|
closeAccount: "アカウントを閉鎖する"
|
||||||
currentVersion: "現在のバージョン"
|
currentVersion: "現在のバージョン"
|
||||||
|
@ -634,6 +726,7 @@ editCode: "コードを編集"
|
||||||
apply: "適用"
|
apply: "適用"
|
||||||
receiveAnnouncementFromInstance: "インスタンスからのお知らせを受け取る"
|
receiveAnnouncementFromInstance: "インスタンスからのお知らせを受け取る"
|
||||||
emailNotification: "メール通知"
|
emailNotification: "メール通知"
|
||||||
|
publish: "公開"
|
||||||
inChannelSearch: "チャンネル内検索"
|
inChannelSearch: "チャンネル内検索"
|
||||||
useReactionPickerForContextMenu: "右クリックでリアクションピッカーを開くようにする"
|
useReactionPickerForContextMenu: "右クリックでリアクションピッカーを開くようにする"
|
||||||
typingUsers: "{users}が今書きよるで"
|
typingUsers: "{users}が今書きよるで"
|
||||||
|
@ -642,23 +735,121 @@ showingPastTimeline: "過去のタイムラインを表示してるで"
|
||||||
clear: "クリア"
|
clear: "クリア"
|
||||||
markAllAsRead: "もうみな読んでもうたわ"
|
markAllAsRead: "もうみな読んでもうたわ"
|
||||||
goBack: "戻る"
|
goBack: "戻る"
|
||||||
|
unlikeConfirm: "いいね解除するんか?"
|
||||||
|
fullView: "フルビュー"
|
||||||
|
quitFullView: "フルビュー解除"
|
||||||
|
addDescription: "説明を追加するで"
|
||||||
|
userPagePinTip: "個々のノートのメニューから「ピン留め」を選んどくと、ここにノートを表示しておけるで。"
|
||||||
|
notSpecifiedMentionWarning: "宛先に含まれてへんメンションがあるで"
|
||||||
info: "情報"
|
info: "情報"
|
||||||
|
userInfo: "ユーザー情報やで"
|
||||||
|
unknown: "不明"
|
||||||
|
onlineStatus: "オンライン状態"
|
||||||
|
hideOnlineStatus: "オンライン状態を隠すで"
|
||||||
|
hideOnlineStatusDescription: "オンライン状態を隠すと、検索とかの一部の機能で使いにくくなるかもしれんよ。"
|
||||||
|
online: "オンライン"
|
||||||
|
active: "アクティブ"
|
||||||
|
offline: "オフライン"
|
||||||
|
notRecommended: "あんま推奨しやんで"
|
||||||
|
botProtection: "Botプロテクション"
|
||||||
|
instanceBlocking: "インスタンスブロック"
|
||||||
|
selectAccount: "アカウントを選んでなー"
|
||||||
|
switchAccount: "アカウントを変えるで"
|
||||||
|
enabled: "有効"
|
||||||
|
disabled: "無効"
|
||||||
|
quickAction: "クイックアクション"
|
||||||
user: "ユーザー"
|
user: "ユーザー"
|
||||||
administration: "管理"
|
administration: "管理"
|
||||||
|
accounts: "アカウント"
|
||||||
|
switch: "切り替え"
|
||||||
|
noMaintainerInformationWarning: "管理者情報が設定されてへんで"
|
||||||
|
noBotProtectionWarning: "Botプロテクションが設定されてへんで。"
|
||||||
|
configure: "設定する"
|
||||||
|
postToGallery: "ギャラリーへ投稿"
|
||||||
|
gallery: "ギャラリー"
|
||||||
|
recentPosts: "最近の投稿"
|
||||||
|
popularPosts: "人気の投稿"
|
||||||
|
shareWithNote: "ノートで共有"
|
||||||
ads: "広告"
|
ads: "広告"
|
||||||
expiration: "期限"
|
expiration: "期限"
|
||||||
memo: "メモ"
|
memo: "メモ"
|
||||||
|
priority: "優先度"
|
||||||
high: "高い"
|
high: "高い"
|
||||||
middle: "中"
|
middle: "中"
|
||||||
low: "低い"
|
low: "低い"
|
||||||
|
emailNotConfiguredWarning: "メアドの設定がされてへんで。"
|
||||||
|
ratio: "比率"
|
||||||
|
previewNoteText: "本文を下見するで"
|
||||||
|
customCss: "カスタムCSS"
|
||||||
|
customCssWarn: "この設定は必ず知識のある人がやらなあかんで。あんま良くない設定をしたるとクライアントがちゃんと使えへんくなってくで。"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
|
squareAvatars: "アイコンを四角形で表示するで"
|
||||||
sent: "送信"
|
sent: "送信"
|
||||||
|
received: "受信"
|
||||||
|
searchResult: "検索結果やで"
|
||||||
hashtags: "ハッシュタグ"
|
hashtags: "ハッシュタグ"
|
||||||
|
troubleshooting: "トラブルシューティング"
|
||||||
|
useBlurEffect: "UIにぼかし効果を使うで"
|
||||||
|
learnMore: "詳しく"
|
||||||
|
misskeyUpdated: "Misskeyが更新されたで!\nモデレーターの人らに感謝せなあかんで"
|
||||||
|
whatIsNew: "更新情報を見るで"
|
||||||
|
translate: "翻訳"
|
||||||
|
translatedFrom: "{x}から翻訳するで"
|
||||||
|
accountDeletionInProgress: "アカウント削除しとるで待っとってなー"
|
||||||
|
usernameInfo: "サーバー上であんたのアカウントをあんたやと分かるようにするための名前やで。アルファベット(a~z, A~Z)、数字(0~9)、それとアンダーバー(_)が使って考えてな。この名前は後から変更することはできへんからちゃんと考えるんやで。"
|
||||||
|
aiChanMode: "藍モードやで"
|
||||||
|
keepCw: "CWを維持するで"
|
||||||
|
pubSub: "Pub/Subのアカウント"
|
||||||
|
lastCommunication: "直近の通信"
|
||||||
|
resolved: "解決したで"
|
||||||
|
unresolved: "まだ解決してないで"
|
||||||
|
breakFollow: "フォロワーを解除するで"
|
||||||
|
itsOn: "オンになっとるよ"
|
||||||
hide: "隠す"
|
hide: "隠す"
|
||||||
searchByGoogle: "探す"
|
searchByGoogle: "探す"
|
||||||
indefinitely: "無期限"
|
indefinitely: "無期限"
|
||||||
file: "ファイル"
|
file: "ファイル"
|
||||||
|
requireAdminForView: "これを見るには管理者アカウントでログインしとらなあかんで。"
|
||||||
|
isSystemAccount: "システムが自動で作成・管理しとるアカウントやで。"
|
||||||
|
typeToConfirm: "この操作をやるんなら {x} と入力してなー"
|
||||||
|
deleteAccount: "アカウント削除するで"
|
||||||
|
document: "ドキュメント"
|
||||||
|
numberOfPageCache: "ページキャッシュ数やで"
|
||||||
|
numberOfPageCacheDescription: "増やすと使いやすくなる、負荷とメモリ使用量が増えてくで。一長一短やな。"
|
||||||
|
logoutConfirm: "ログアウトしまっか?"
|
||||||
|
lastActiveDate: "最後に使った日時"
|
||||||
|
statusbar: "ステータスバー"
|
||||||
|
pleaseSelect: "選択したってやー"
|
||||||
|
reverse: "反転"
|
||||||
colored: "色付き"
|
colored: "色付き"
|
||||||
|
refreshInterval: "更新間隔"
|
||||||
|
label: "ラベル"
|
||||||
|
type: "タイプ"
|
||||||
|
speed: "速度"
|
||||||
|
slow: "遅い"
|
||||||
|
fast: "速い"
|
||||||
|
sensitiveMediaDetection: "センシティブなメディアの検出"
|
||||||
|
localOnly: "ローカルのみ"
|
||||||
|
remoteOnly: "リモートのみ"
|
||||||
|
failedToUpload: "アップロードに失敗したで"
|
||||||
|
cannotUploadBecauseInappropriate: "不適切な内容を含むかもしれへんって判定されたでアップロードできまへん。"
|
||||||
|
cannotUploadBecauseNoFreeSpace: "ドライブの空き容量が無いでアップロードできまへん。"
|
||||||
|
beta: "ベータ"
|
||||||
|
enableAutoSensitive: "自動NSFW判定"
|
||||||
|
enableAutoSensitiveDescription: "使える時は、機械学習を使って自動でメディアにNSFWフラグを設定するで。この機能をオフにしても、インスタンスによっては自動で設定されることがあるで。"
|
||||||
|
activeEmailValidationDescription: "ユーザーのメールアドレスのバリデーションを、捨てアドかどうかや実際に通信可能かどうかとかを判定して積極的に行うで。オフにすると単に文字列として正しいかどうかだけチェックするで。"
|
||||||
|
navbar: "ナビゲーションバー"
|
||||||
|
shuffle: "シャッフルするで"
|
||||||
|
account: "アカウント"
|
||||||
|
move: "移動するで"
|
||||||
|
_sensitiveMediaDetection:
|
||||||
|
description: "機械学習を使って自動でセンシティブなメディアを検出して、モデレーションに役立てることができるで。サーバーの負荷が少し増えてまうなあ。"
|
||||||
|
sensitivity: "検出感度やで"
|
||||||
|
sensitivityDescription: "感度を低くすると、誤検知(偽陽性)が減るで。感度を高くすると、検知漏れ(偽陰性)が減るで。"
|
||||||
|
setSensitiveFlagAutomatically: "NSFWフラグを設定するで"
|
||||||
|
setSensitiveFlagAutomaticallyDescription: "この設定をオフにしても内部的に判定結果は保持されるで。"
|
||||||
|
_ffVisibility:
|
||||||
|
public: "公開"
|
||||||
_ad:
|
_ad:
|
||||||
back: "戻る"
|
back: "戻る"
|
||||||
_gallery:
|
_gallery:
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "사용자 검색"
|
||||||
reply: "답글"
|
reply: "답글"
|
||||||
loadMore: "더 보기"
|
loadMore: "더 보기"
|
||||||
showMore: "더 보기"
|
showMore: "더 보기"
|
||||||
|
showLess: "닫기"
|
||||||
youGotNewFollower: "새로운 팔로워가 있습니다"
|
youGotNewFollower: "새로운 팔로워가 있습니다"
|
||||||
receiveFollowRequest: "새로운 팔로우 요청이 있습니다"
|
receiveFollowRequest: "새로운 팔로우 요청이 있습니다"
|
||||||
followRequestAccepted: "팔로우가 수락되었습니다"
|
followRequestAccepted: "팔로우가 수락되었습니다"
|
||||||
|
@ -889,6 +890,7 @@ activeEmailValidationDescription: "유저가 입력한 메일 주소가 일회
|
||||||
navbar: "네비게이션 바"
|
navbar: "네비게이션 바"
|
||||||
shuffle: "셔플"
|
shuffle: "셔플"
|
||||||
account: "계정"
|
account: "계정"
|
||||||
|
move: "이동"
|
||||||
_sensitiveMediaDetection:
|
_sensitiveMediaDetection:
|
||||||
description: "기계학습을 통해 자동으로 민감한 미디어를 탐지하여, 모더레이션에 참고할 수 있도록 합니다. 서버의 부하를 약간 증가시킵니다."
|
description: "기계학습을 통해 자동으로 민감한 미디어를 탐지하여, 모더레이션에 참고할 수 있도록 합니다. 서버의 부하를 약간 증가시킵니다."
|
||||||
sensitivity: "탐지 민감도"
|
sensitivity: "탐지 민감도"
|
||||||
|
@ -1022,6 +1024,8 @@ _mfm:
|
||||||
sparkleDescription: "반짝이는 파티클 효과를 추가합니다."
|
sparkleDescription: "반짝이는 파티클 효과를 추가합니다."
|
||||||
rotate: "회전"
|
rotate: "회전"
|
||||||
rotateDescription: "지정한 각도로 회전시킵니다."
|
rotateDescription: "지정한 각도로 회전시킵니다."
|
||||||
|
plain: "평문"
|
||||||
|
plainDescription: "안에 있는 MFM 구문을 모두 무시하고 평문으로 표시합니다."
|
||||||
_instanceTicker:
|
_instanceTicker:
|
||||||
none: "보이지 않음"
|
none: "보이지 않음"
|
||||||
remote: "리모트 유저에게만 보이기"
|
remote: "리모트 유저에게만 보이기"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Wyszukiwanie użytkowników"
|
||||||
reply: "Odpowiedz"
|
reply: "Odpowiedz"
|
||||||
loadMore: "Załaduj więcej"
|
loadMore: "Załaduj więcej"
|
||||||
showMore: "Załaduj więcej"
|
showMore: "Załaduj więcej"
|
||||||
|
showLess: "Zamknij"
|
||||||
youGotNewFollower: "Zaobserwował(a) Cię"
|
youGotNewFollower: "Zaobserwował(a) Cię"
|
||||||
receiveFollowRequest: "Otrzymano prośbę o możliwość obserwacji"
|
receiveFollowRequest: "Otrzymano prośbę o możliwość obserwacji"
|
||||||
followRequestAccepted: "Zaakceptowano prośbę o możliwość obserwacji"
|
followRequestAccepted: "Zaakceptowano prośbę o możliwość obserwacji"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Pesquisar utilizador"
|
||||||
reply: "Responder"
|
reply: "Responder"
|
||||||
loadMore: "Carregar mais"
|
loadMore: "Carregar mais"
|
||||||
showMore: "Ver mais"
|
showMore: "Ver mais"
|
||||||
|
showLess: "Fechar"
|
||||||
youGotNewFollower: "Você tem um novo seguidor"
|
youGotNewFollower: "Você tem um novo seguidor"
|
||||||
receiveFollowRequest: "Pedido de seguimento recebido"
|
receiveFollowRequest: "Pedido de seguimento recebido"
|
||||||
followRequestAccepted: "Pedido de seguir aceito"
|
followRequestAccepted: "Pedido de seguir aceito"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Caută un utilizator"
|
||||||
reply: "Răspunde"
|
reply: "Răspunde"
|
||||||
loadMore: "Incarcă mai mult"
|
loadMore: "Incarcă mai mult"
|
||||||
showMore: "Arată mai mult"
|
showMore: "Arată mai mult"
|
||||||
|
showLess: "Închide"
|
||||||
youGotNewFollower: "te-a urmărit"
|
youGotNewFollower: "te-a urmărit"
|
||||||
receiveFollowRequest: "Cerere de urmărire primită"
|
receiveFollowRequest: "Cerere de urmărire primită"
|
||||||
followRequestAccepted: "Cerere de urmărire acceptată"
|
followRequestAccepted: "Cerere de urmărire acceptată"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Поиск людей"
|
||||||
reply: "Ответить"
|
reply: "Ответить"
|
||||||
loadMore: "Показать еще"
|
loadMore: "Показать еще"
|
||||||
showMore: "Показать еще"
|
showMore: "Показать еще"
|
||||||
|
showLess: "Закрыть"
|
||||||
youGotNewFollower: "Новый подписчик"
|
youGotNewFollower: "Новый подписчик"
|
||||||
receiveFollowRequest: "Получен запрос на подписку"
|
receiveFollowRequest: "Получен запрос на подписку"
|
||||||
followRequestAccepted: "Запрос на подписку принят"
|
followRequestAccepted: "Запрос на подписку принят"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Hľadať používateľov"
|
||||||
reply: "Odpovedať"
|
reply: "Odpovedať"
|
||||||
loadMore: "Zobraziť viac"
|
loadMore: "Zobraziť viac"
|
||||||
showMore: "Zobraziť viac"
|
showMore: "Zobraziť viac"
|
||||||
|
showLess: "Zavrieť"
|
||||||
youGotNewFollower: "Máte nového sledujúceho"
|
youGotNewFollower: "Máte nového sledujúceho"
|
||||||
receiveFollowRequest: "Žiadosť o sledovanie prijatá"
|
receiveFollowRequest: "Žiadosť o sledovanie prijatá"
|
||||||
followRequestAccepted: "Žiadosť o sledovanie akceptovaná"
|
followRequestAccepted: "Žiadosť o sledovanie akceptovaná"
|
||||||
|
@ -561,6 +562,7 @@ author: "Autor"
|
||||||
leaveConfirm: "Máte neuložené zmeny. Chcete ich zahodiť?"
|
leaveConfirm: "Máte neuložené zmeny. Chcete ich zahodiť?"
|
||||||
manage: "Administrácia"
|
manage: "Administrácia"
|
||||||
plugins: "Pluginy"
|
plugins: "Pluginy"
|
||||||
|
preferencesBackups: "Zálohy nastavení"
|
||||||
deck: "Deck"
|
deck: "Deck"
|
||||||
useBlurEffectForModal: "Použiť efekt rozmazania na okná"
|
useBlurEffectForModal: "Použiť efekt rozmazania na okná"
|
||||||
useFullReactionPicker: "Použiť plnú veľkosť výberu reakcií"
|
useFullReactionPicker: "Použiť plnú veľkosť výberu reakcií"
|
||||||
|
@ -936,6 +938,24 @@ _plugin:
|
||||||
install: "Inštalova pluginy"
|
install: "Inštalova pluginy"
|
||||||
installWarn: "Prosím neinštalujte nedôveryhodné pluginy."
|
installWarn: "Prosím neinštalujte nedôveryhodné pluginy."
|
||||||
manage: "Spravovanie pluginov"
|
manage: "Spravovanie pluginov"
|
||||||
|
_preferencesBackups:
|
||||||
|
list: "Vytvorené zálohy"
|
||||||
|
saveNew: "Uložiť novú"
|
||||||
|
loadFile: "Nahrať súbor"
|
||||||
|
apply: "Použiť na toto zariadenie"
|
||||||
|
save: "Uložiť"
|
||||||
|
inputName: "Názov zálohy"
|
||||||
|
cannotSave: "Nedá sa uložiť"
|
||||||
|
nameAlreadyExists: "Záloha s názvom \"{name}\" už existuje. Zadajte iný názov."
|
||||||
|
applyConfirm: "Chcete použiť zálohu '{name}' na aktuálne zariadenie? Aktuálne nastavenia zariadenia sa stratia."
|
||||||
|
saveConfirm: "Chcete prepísať {name}?"
|
||||||
|
deleteConfirm: "Naozaj chcete odstrániť \"{name}\"?"
|
||||||
|
renameConfirm: "Chcete zmeniť \"{old}\" na \"{new}\"?"
|
||||||
|
noBackups: "Nie je k dispozícii žiadna záloha. \"Uložiť novú\" umožňuje uložiť aktuálnu konfiguráciu zariadenia na server."
|
||||||
|
createdAt: "Dátum vytvorenia: {date} {time}"
|
||||||
|
updatedAt: "Dátum úpravy: {date} {time}"
|
||||||
|
cannotLoad: "Nedá sa nahrať"
|
||||||
|
invalidFile: "Neplatný formát súboru"
|
||||||
_registry:
|
_registry:
|
||||||
scope: "Oblasť"
|
scope: "Oblasť"
|
||||||
key: "Kľúč"
|
key: "Kľúč"
|
||||||
|
@ -1019,6 +1039,8 @@ _mfm:
|
||||||
sparkleDescription: "Obsahu dodá trblietajúci efekt."
|
sparkleDescription: "Obsahu dodá trblietajúci efekt."
|
||||||
rotate: "Otáčať"
|
rotate: "Otáčať"
|
||||||
rotateDescription: "Otočí obsah o určitý uhol."
|
rotateDescription: "Otočí obsah o určitý uhol."
|
||||||
|
plain: "Obyčajné"
|
||||||
|
plainDescription: "Bez akejkoľvej syntaxe"
|
||||||
_instanceTicker:
|
_instanceTicker:
|
||||||
none: "Nikdy nezobrazovať"
|
none: "Nikdy nezobrazovať"
|
||||||
remote: "Zobraziť pre vzdialených používateľov"
|
remote: "Zobraziť pre vzdialených používateľov"
|
||||||
|
@ -1252,6 +1274,7 @@ _widgets:
|
||||||
activity: "Aktivita"
|
activity: "Aktivita"
|
||||||
photos: "Fotky"
|
photos: "Fotky"
|
||||||
digitalClock: "Digitálne hodiny"
|
digitalClock: "Digitálne hodiny"
|
||||||
|
unixClock: "UNIX čas"
|
||||||
federation: "Federácia"
|
federation: "Federácia"
|
||||||
instanceCloud: "Cloud serverov"
|
instanceCloud: "Cloud serverov"
|
||||||
postForm: "Napísať poznámku"
|
postForm: "Napísať poznámku"
|
||||||
|
|
|
@ -203,6 +203,7 @@ done: "Klar"
|
||||||
processing: "Bearbetar..."
|
processing: "Bearbetar..."
|
||||||
preview: "Förhandsvisning"
|
preview: "Förhandsvisning"
|
||||||
default: "Standard"
|
default: "Standard"
|
||||||
|
defaultValueIs: "Standard: {value}"
|
||||||
noCustomEmojis: "Det finns ingen emoji"
|
noCustomEmojis: "Det finns ingen emoji"
|
||||||
noJobs: "Det finns inga jobb"
|
noJobs: "Det finns inga jobb"
|
||||||
federating: "Federerar"
|
federating: "Federerar"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "ค้นหาผู้ใช้งาน"
|
||||||
reply: "ตอบกลับ"
|
reply: "ตอบกลับ"
|
||||||
loadMore: "โหลดเพิ่มเติม"
|
loadMore: "โหลดเพิ่มเติม"
|
||||||
showMore: "แสดงเพิ่มเติม"
|
showMore: "แสดงเพิ่มเติม"
|
||||||
|
showLess: "ปิด"
|
||||||
youGotNewFollower: "ได้ติดตามคุณ"
|
youGotNewFollower: "ได้ติดตามคุณ"
|
||||||
receiveFollowRequest: "คำขอผู้ติดตามที่ได้รับ"
|
receiveFollowRequest: "คำขอผู้ติดตามที่ได้รับ"
|
||||||
followRequestAccepted: "ผู้ติดตามได้ตอบรับคำขอร้องของคุณแล้ว"
|
followRequestAccepted: "ผู้ติดตามได้ตอบรับคำขอร้องของคุณแล้ว"
|
||||||
|
@ -835,10 +836,83 @@ themeColor: "อินสแตนซ์ Ticker Color"
|
||||||
size: "ขนาด"
|
size: "ขนาด"
|
||||||
numberOfColumn: "จำนวนคอลัมน์"
|
numberOfColumn: "จำนวนคอลัมน์"
|
||||||
searchByGoogle: "ค้นหา"
|
searchByGoogle: "ค้นหา"
|
||||||
|
instanceDefaultLightTheme: "ธีมสว่างค่าเริ่มต้นสำหรับอินสแตนซ์"
|
||||||
|
instanceDefaultDarkTheme: "ธีมมืดค่าเริ่มต้นอินสแตนซ์"
|
||||||
|
instanceDefaultThemeDescription: "ป้อนรหัสธีมในรูปแบบออบเจ็กต์"
|
||||||
|
mutePeriod: "ระยะเวลาปิดเสียง"
|
||||||
|
indefinitely: "ตลอดไป"
|
||||||
|
tenMinutes: "10 นาที"
|
||||||
|
oneHour: "1 ชั่วโมง"
|
||||||
|
oneDay: "1 วัน"
|
||||||
|
oneWeek: "1 สัปดาห์"
|
||||||
|
reflectMayTakeTime: "อาจจำเป็นต้องใช้เวลาสักระยะหนึ่งจึงจะเห็นแสดงผลได้นะ"
|
||||||
|
failedToFetchAccountInformation: "ไม่สามารถเรียกดึงข้อมูลบัญชีได้"
|
||||||
|
rateLimitExceeded: "เกินขีดจำกัดอัตรา"
|
||||||
|
cropImage: "ครอบตัดรูปภาพ"
|
||||||
|
cropImageAsk: "คุณต้องการครอบตัดรูปภาพนี้อย่างงั้นหรือ?"
|
||||||
file: "ไฟล์"
|
file: "ไฟล์"
|
||||||
|
recentNHours: "ล่าสุด {n} ชั่วโมงที่แล้ว"
|
||||||
|
recentNDays: "ล่าสุด {n} วันที่แล้ว"
|
||||||
|
noEmailServerWarning: "ไม่ได้กำหนดค่าเซิร์ฟเวอร์อีเมลนี้"
|
||||||
|
thereIsUnresolvedAbuseReportWarning: "มีรายงานที่ยังไม่ได้แก้ไข"
|
||||||
|
recommended: "แนะนำ"
|
||||||
|
check: "ตรวจสอบ"
|
||||||
|
driveCapOverrideLabel: "เปลี่ยนความจุของไดรฟ์สำหรับผู้ใช้รายนี้"
|
||||||
|
driveCapOverrideCaption: "รีเซ็ตความจุเป็นค่าเริ่มต้นโดยการป้อนค่าเป็น 0 หรือ ต่ำกว่า"
|
||||||
|
requireAdminForView: "คุณจำเป็นต้องเข้าสู่ระบบด้วยบัญชีผู้ดูแลระบบเพื่อเข้าดูสิ่งนี้"
|
||||||
|
isSystemAccount: "บัญชีที่ถูกสร้างมานั้น และถูกดำเนินการโดยอัตโนมัติด้วยระบบ"
|
||||||
|
typeToConfirm: "โปรดป้อน {x} เพื่อยืนยัน"
|
||||||
|
deleteAccount: "ลบบัญชี"
|
||||||
|
document: "เอกสาร"
|
||||||
|
numberOfPageCache: "จำนวนหน้าเพจที่แคช"
|
||||||
|
numberOfPageCacheDescription: "การเพิ่มจำนวนนี้จะช่วยเพิ่มความสะดวกให้กับผู้ใช้งาน แต่จะทำให้เซิร์ฟเวอร์โหลดมากขึ้นและต้องใช้หน่วยความจำมากขึ้นอีกด้วย"
|
||||||
|
logoutConfirm: "คุณแน่ใจว่าต้องการออกจากระบบ?"
|
||||||
|
lastActiveDate: "ใช้งานล่าสุดที่"
|
||||||
|
statusbar: "ไอคอนบนแถบสถานะ"
|
||||||
|
pleaseSelect: "ตัวเลือก"
|
||||||
|
reverse: "ย้อนกลับ"
|
||||||
|
colored: "สี"
|
||||||
|
refreshInterval: "รอบการอัพเดต"
|
||||||
|
label: "ป้ายชื่อ"
|
||||||
|
type: "รูปแบบ"
|
||||||
|
speed: "ความเร็ว"
|
||||||
|
slow: "ช้า"
|
||||||
|
fast: "เร็ว"
|
||||||
|
sensitiveMediaDetection: "การตรวจจับของสื่อ NSFW"
|
||||||
|
localOnly: "เฉพาะท้องถิ่น"
|
||||||
|
remoteOnly: "รีโมทเท่านั้น"
|
||||||
|
failedToUpload: "การอัปโหลดล้มเหลว"
|
||||||
|
cannotUploadBecauseInappropriate: "ไม่สามารถอัปโหลดไฟล์นี้ได้เนื่องจากระบบตรวจพบบางส่วนของไฟล์ว่านี้อาจจะเป็น NSFW"
|
||||||
|
cannotUploadBecauseNoFreeSpace: "การอัปโหลดนั้นล้มเหลวเนื่องจากไม่มีความจุของไดรฟ์"
|
||||||
|
beta: "เบต้า"
|
||||||
|
enableAutoSensitive: "ทำเครื่องหมาย NSFW อัตโนมัติ"
|
||||||
|
enableAutoSensitiveDescription: "อนุญาตให้ตรวจหาและทำเครื่องหมายสื่อ NSFW โดยอัตโนมัติผ่านการเรียนรู้ของเครื่องหากเป็นไปได้ แม้ว่าตัวเลือกนี้จะถูกปิดใช้งาน แต่ก็สามารถเปิดใช้งานได้ทั้งอินสแตนซ์นี้"
|
||||||
|
activeEmailValidationDescription: "เปิดใช้งานการตรวจสอบที่อยู่อีเมลให้มีความเข้มงวดยิ่งขึ้น ซึ่งอาจจะรวมไปถึงการตรวจสอบที่อยู่อีเมล์ที่ใช้แล้วทิ้งและโดยให้พิจารณาว่าสามารถสื่อสารด้วยได้หรือไม่ เมื่อไม่เลือกระบบจะตรวจสอบเฉพาะรูปแบบของอีเมลเท่านั้น"
|
||||||
|
navbar: "แถบนำทาง"
|
||||||
|
shuffle: "สลับ"
|
||||||
account: "บัญชีผู้ใช้"
|
account: "บัญชีผู้ใช้"
|
||||||
|
move: "ย้าย"
|
||||||
|
_sensitiveMediaDetection:
|
||||||
|
description: "ลดความพยายามในการดูแลเซิร์ฟเวอร์ผ่านการจดจำสื่อ NSFW โดยอัตโนมัติผ่านการเรียนรู้ของเครื่อง การทำสิ่งนี้อาจจะเพิ่มภาระบนเซิร์ฟเวอร์เล็กน้อย"
|
||||||
|
sensitivity: "การตรวจจับความไว"
|
||||||
|
sensitivityDescription: "การลดความไวนั้นจะนำไปสู่การตรวจจับที่ผิดพลาดน้อยลง (ผลบวกที่ผิดพลาด) แต่ในขณะที่การเพิ่มนั้นจะนำไปสู่การตรวจหาที่พลาดน้อยลง (ผลลบเท็จ)"
|
||||||
|
setSensitiveFlagAutomatically: "ทำเครื่องหมายว่าเป็น NSFW"
|
||||||
|
setSensitiveFlagAutomaticallyDescription: "ผลลัพธ์ของการตรวจจับภายในนั้นจะยังคงอยู่ ถึงแม้ว่าจะปิดตัวเลือกนี้"
|
||||||
|
analyzeVideos: "เปิดใช้งานวิเคราะห์ของวิดีโอ"
|
||||||
|
analyzeVideosDescription: "การวิเคราะห์วิดีโอนอกเหนือจากรูปภาพนั้น การทำสิ่งนี้จะทำให้เพิ่มภาระบนเซิร์ฟเวอร์เล็กน้อย"
|
||||||
|
_emailUnavailable:
|
||||||
|
used: "ที่อยู่อีเมลนี้ได้ถูกใช้ไปแล้ว"
|
||||||
|
format: "รูปแบบของที่อยู่อีเมลนี้ไม่ถูกต้อง"
|
||||||
|
disposable: "ที่อยู่อีเมลที่ใช้แล้วทิ้งนั้นไม่สามารถใช้ได้"
|
||||||
|
mx: "เซิร์ฟเวอร์อีเมลนี้ไม่ถูกต้อง"
|
||||||
|
smtp: "เซิร์ฟเวอร์อีเมลนี้ไม่มีการตอบสนอง"
|
||||||
_ffVisibility:
|
_ffVisibility:
|
||||||
public: "เผยแพร่"
|
public: "เผยแพร่"
|
||||||
|
followers: "ปรากฏให้แก่ผู้ติดตามเท่านั้น"
|
||||||
|
private: "ส่วนตัว"
|
||||||
|
_signup:
|
||||||
|
almostThere: "เกือบจะมี"
|
||||||
|
emailAddressInfo: "โปรดกรอกอีเมลของคุณ มันจะไม่เปิดเผยต่อสาธารณะ"
|
||||||
_ad:
|
_ad:
|
||||||
back: "ย้อนกลับ"
|
back: "ย้อนกลับ"
|
||||||
_email:
|
_email:
|
||||||
|
@ -846,9 +920,22 @@ _email:
|
||||||
title: "ได้ติดตามคุณ"
|
title: "ได้ติดตามคุณ"
|
||||||
_mfm:
|
_mfm:
|
||||||
mention: "กล่าวถึง"
|
mention: "กล่าวถึง"
|
||||||
|
centerDescription: "แสดงผลเนื้อหาเป็นศูนย์กลาง"
|
||||||
|
inlineCode: "โค้ด (อินไลน์)"
|
||||||
|
inlineCodeDescription: "แสดงผลการเน้นไวยากรณ์แบบอินไลน์สำหรับโค้ด (โปรแกรม)"
|
||||||
|
blockCode: "โค้ด (บล็อก)"
|
||||||
|
blockCodeDescription: "แสดงผลการเน้นไวยากรณ์สำหรับโค้ดหลายบรรทัด (โปรแกรม) ในบล็อก"
|
||||||
|
inlineMath: "คณิต (อินไลน์)"
|
||||||
|
inlineMathDescription: "แสดงผลสูตรคณิต (KaTeX) ในบรรทัด"
|
||||||
|
blockMath: "คณิต (บล็อก)"
|
||||||
|
blockMathDescription: "แสดงผลสูตรคณิตหลายบรรทัด (KaTeX) ในบล็อก"
|
||||||
quote: "อ้างคำพูด"
|
quote: "อ้างคำพูด"
|
||||||
|
quoteDescription: "แสดงผลเนื้อหาเป็นใบเสนอราคา"
|
||||||
emoji: "กำหนดอีโมจิเอง"
|
emoji: "กำหนดอีโมจิเอง"
|
||||||
|
emojiDescription: "โดยล้อมรอบชื่ออีโมจิที่กำหนดเองด้วยเครื่องหมายทวิภาค จะสามารถแสดงผลอีโมจิที่กำหนดเองได้"
|
||||||
search: "ค้นหา"
|
search: "ค้นหา"
|
||||||
|
searchDescription: "แสดงผลกล่องค้นหาพร้อมกับข้อความที่ป้อนไว้ล่วงหน้า"
|
||||||
|
flip: "พลิก"
|
||||||
_theme:
|
_theme:
|
||||||
description: "รายละเอียด"
|
description: "รายละเอียด"
|
||||||
keys:
|
keys:
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Пошук користувачів"
|
||||||
reply: "Відповісти"
|
reply: "Відповісти"
|
||||||
loadMore: "Показати більше"
|
loadMore: "Показати більше"
|
||||||
showMore: "Показати більше"
|
showMore: "Показати більше"
|
||||||
|
showLess: "Закрити"
|
||||||
youGotNewFollower: "Новий підписник"
|
youGotNewFollower: "Новий підписник"
|
||||||
receiveFollowRequest: "Отримано запит на підписку"
|
receiveFollowRequest: "Отримано запит на підписку"
|
||||||
followRequestAccepted: "Підписка прийнята"
|
followRequestAccepted: "Підписка прийнята"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "Tìm kiếm người dùng"
|
||||||
reply: "Trả lời"
|
reply: "Trả lời"
|
||||||
loadMore: "Tải thêm"
|
loadMore: "Tải thêm"
|
||||||
showMore: "Xem thêm"
|
showMore: "Xem thêm"
|
||||||
|
showLess: "Đóng"
|
||||||
youGotNewFollower: "đã theo dõi bạn"
|
youGotNewFollower: "đã theo dõi bạn"
|
||||||
receiveFollowRequest: "Đã yêu cầu theo dõi"
|
receiveFollowRequest: "Đã yêu cầu theo dõi"
|
||||||
followRequestAccepted: "Đã chấp nhận yêu cầu theo dõi"
|
followRequestAccepted: "Đã chấp nhận yêu cầu theo dõi"
|
||||||
|
@ -561,6 +562,7 @@ author: "Tác giả"
|
||||||
leaveConfirm: "Có những thay đổi chưa được lưu. Bạn có muốn bỏ chúng không?"
|
leaveConfirm: "Có những thay đổi chưa được lưu. Bạn có muốn bỏ chúng không?"
|
||||||
manage: "Quản lý"
|
manage: "Quản lý"
|
||||||
plugins: "Plugin"
|
plugins: "Plugin"
|
||||||
|
preferencesBackups: "Sao lưu thiết lập"
|
||||||
deck: "Deck"
|
deck: "Deck"
|
||||||
undeck: "Bỏ Deck"
|
undeck: "Bỏ Deck"
|
||||||
useBlurEffectForModal: "Sử dụng hiệu ứng mờ cho các hộp thoại"
|
useBlurEffectForModal: "Sử dụng hiệu ứng mờ cho các hộp thoại"
|
||||||
|
@ -890,6 +892,7 @@ activeEmailValidationDescription: "Cho phép xác minh địa chỉ email chặt
|
||||||
navbar: "Thanh điều hướng"
|
navbar: "Thanh điều hướng"
|
||||||
shuffle: "Xáo trộn"
|
shuffle: "Xáo trộn"
|
||||||
account: "Tài khoản của bạn"
|
account: "Tài khoản của bạn"
|
||||||
|
move: "Di chuyển"
|
||||||
_sensitiveMediaDetection:
|
_sensitiveMediaDetection:
|
||||||
description: "Giảm nỗ lực kiểm duyệt máy chủ thông qua việc tự động nhận dạng media NSFW thông qua học máy. Điều này sẽ làm tăng một chút áp lực trên máy chủ."
|
description: "Giảm nỗ lực kiểm duyệt máy chủ thông qua việc tự động nhận dạng media NSFW thông qua học máy. Điều này sẽ làm tăng một chút áp lực trên máy chủ."
|
||||||
sensitivity: "Phát hiện nhạy cảm"
|
sensitivity: "Phát hiện nhạy cảm"
|
||||||
|
@ -940,6 +943,24 @@ _plugin:
|
||||||
install: "Cài đặt tiện ích"
|
install: "Cài đặt tiện ích"
|
||||||
installWarn: "Vui lòng không cài đặt những tiện ích đáng ngờ."
|
installWarn: "Vui lòng không cài đặt những tiện ích đáng ngờ."
|
||||||
manage: "Quản lý plugin"
|
manage: "Quản lý plugin"
|
||||||
|
_preferencesBackups:
|
||||||
|
list: "Tạo sao lưu"
|
||||||
|
saveNew: "Lưu bản sao lưu"
|
||||||
|
loadFile: "Nhập tập tin"
|
||||||
|
apply: "Áp dụng lên thiết bị này"
|
||||||
|
save: "Lưu thay đổi"
|
||||||
|
inputName: "Nhập tên bản sao lưu"
|
||||||
|
cannotSave: "Không thể lưu"
|
||||||
|
nameAlreadyExists: "Bản sao lưu \"{name}\" đã tồn tại. Xin nhập tên khác."
|
||||||
|
applyConfirm: "Bạn có chắc muốn áp dụng bản sao lưu \"{name}\" cho thiết bị này? Thiết lập hiện tại sẽ bị ghi đè."
|
||||||
|
saveConfirm: "Lưu bản sao lưu {name}?"
|
||||||
|
deleteConfirm: "Xóa bản sao lưu {name}?"
|
||||||
|
renameConfirm: "Đổi tên bản sao lưu \"{old}\" thành \"{new}\"?"
|
||||||
|
noBackups: "Chưa có bản sao lưu. Bạn có thể sao lưu thiết lập trên máy chủ này bằng cách sử dụng \"Tạo sao lưu\"."
|
||||||
|
createdAt: "Tạo vào: {time} {date}"
|
||||||
|
updatedAt: "Cập nhật: {time} {date}"
|
||||||
|
cannotLoad: "Tải thất bại"
|
||||||
|
invalidFile: "Sai định dạng tập tin"
|
||||||
_registry:
|
_registry:
|
||||||
scope: "Phạm vi"
|
scope: "Phạm vi"
|
||||||
key: "Mã"
|
key: "Mã"
|
||||||
|
@ -1023,6 +1044,8 @@ _mfm:
|
||||||
sparkleDescription: "Làm cho nội dung hiệu ứng hạt lấp lánh."
|
sparkleDescription: "Làm cho nội dung hiệu ứng hạt lấp lánh."
|
||||||
rotate: "Xoay"
|
rotate: "Xoay"
|
||||||
rotateDescription: "Xoay nội dung theo một góc cụ thể."
|
rotateDescription: "Xoay nội dung theo một góc cụ thể."
|
||||||
|
plain: "Đơn giản"
|
||||||
|
plainDescription: "Vô hiệu hóa mọi hiệu ứng MFM chứa trong hiệu ứng MFM này."
|
||||||
_instanceTicker:
|
_instanceTicker:
|
||||||
none: "Không hiển thị"
|
none: "Không hiển thị"
|
||||||
remote: "Hiện cho người dùng từ máy chủ khác"
|
remote: "Hiện cho người dùng từ máy chủ khác"
|
||||||
|
@ -1256,6 +1279,7 @@ _widgets:
|
||||||
activity: "Hoạt động"
|
activity: "Hoạt động"
|
||||||
photos: "Kho ảnh"
|
photos: "Kho ảnh"
|
||||||
digitalClock: "Đồng hồ số"
|
digitalClock: "Đồng hồ số"
|
||||||
|
unixClock: "Đồng hồ UNIX"
|
||||||
federation: "Liên hợp"
|
federation: "Liên hợp"
|
||||||
instanceCloud: "Instance cloud"
|
instanceCloud: "Instance cloud"
|
||||||
postForm: "Mẫu đăng"
|
postForm: "Mẫu đăng"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "搜索用户"
|
||||||
reply: "回复"
|
reply: "回复"
|
||||||
loadMore: "查看更多"
|
loadMore: "查看更多"
|
||||||
showMore: "查看更多"
|
showMore: "查看更多"
|
||||||
|
showLess: "关闭"
|
||||||
youGotNewFollower: "你有新的关注者"
|
youGotNewFollower: "你有新的关注者"
|
||||||
receiveFollowRequest: "您收到了关注请求"
|
receiveFollowRequest: "您收到了关注请求"
|
||||||
followRequestAccepted: "您的关注请求被通过了"
|
followRequestAccepted: "您的关注请求被通过了"
|
||||||
|
@ -483,13 +484,13 @@ showFeaturedNotesInTimeline: "在时间线上显示热门推荐"
|
||||||
objectStorage: "对象存储"
|
objectStorage: "对象存储"
|
||||||
useObjectStorage: "使用对象存储"
|
useObjectStorage: "使用对象存储"
|
||||||
objectStorageBaseUrl: "Base URL"
|
objectStorageBaseUrl: "Base URL"
|
||||||
objectStorageBaseUrlDesc: "URL前缀,用于构造URL到对象(媒体)的引用,如果您使用的是CDN或反向代理,请指定其URL,否则请根据您使用的服务指定可公开访问的地址。例如“https://<bucket>.s3.amazonaws.com”用于AWS S3,“https://storage.googleapis.com/<bucket>”用于GCS"
|
objectStorageBaseUrlDesc: "用于引用的URL。如果您正在使用CDN或反向代理,请指定其URL,例如S3:“https://<bucket>.s3.amazonaws.com”,GCS:“https://storage.googleapis.com/<bucket>”"
|
||||||
objectStorageBucket: "存储桶"
|
objectStorageBucket: "存储桶"
|
||||||
objectStorageBucketDesc: "请指定使用的对象存储服务的存储桶名称。"
|
objectStorageBucketDesc: "请指定使用的对象存储服务的存储桶名称。"
|
||||||
objectStoragePrefix: "前缀"
|
objectStoragePrefix: "前缀"
|
||||||
objectStoragePrefixDesc: "文件将存储在此前缀的目录下。"
|
objectStoragePrefixDesc: "文件将存储在此前缀的目录下。"
|
||||||
objectStorageEndpoint: "端点"
|
objectStorageEndpoint: "端点"
|
||||||
objectStorageEndpointDesc: "如果你希望使用AWS S3请留空。否则请根据你使用的服务来进行设置,指定端点形式为“<host>”或“<host>:<port>”。"
|
objectStorageEndpointDesc: "如果你使用AWS S3请留空。否则请根据你使用的服务商的说明来进行设置,指定端点形式为“<host>”或“<host>:<port>”。"
|
||||||
objectStorageRegion: "可用区"
|
objectStorageRegion: "可用区"
|
||||||
objectStorageRegionDesc: "指定一个可用区,例如“xx-east-1”。 如果您的对象存储服务没有可用区概念,请将其留空或填写“us-east-1”。"
|
objectStorageRegionDesc: "指定一个可用区,例如“xx-east-1”。 如果您的对象存储服务没有可用区概念,请将其留空或填写“us-east-1”。"
|
||||||
objectStorageUseSSL: "使用SSL"
|
objectStorageUseSSL: "使用SSL"
|
||||||
|
@ -561,6 +562,7 @@ author: "作者"
|
||||||
leaveConfirm: "存在未保存的更改。要放弃更改吗?"
|
leaveConfirm: "存在未保存的更改。要放弃更改吗?"
|
||||||
manage: "管理"
|
manage: "管理"
|
||||||
plugins: "插件"
|
plugins: "插件"
|
||||||
|
preferencesBackups: "备份设置"
|
||||||
deck: "Deck"
|
deck: "Deck"
|
||||||
undeck: "取消Deck"
|
undeck: "取消Deck"
|
||||||
useBlurEffectForModal: "对话框使用模糊效果"
|
useBlurEffectForModal: "对话框使用模糊效果"
|
||||||
|
@ -846,6 +848,7 @@ oneDay: "1天"
|
||||||
oneWeek: "1周"
|
oneWeek: "1周"
|
||||||
reflectMayTakeTime: "可能需要一些时间才能体现出效果。"
|
reflectMayTakeTime: "可能需要一些时间才能体现出效果。"
|
||||||
failedToFetchAccountInformation: "获取账户信息失败"
|
failedToFetchAccountInformation: "获取账户信息失败"
|
||||||
|
rateLimitExceeded: "已超過速率限制"
|
||||||
cropImage: "剪裁图像"
|
cropImage: "剪裁图像"
|
||||||
cropImageAsk: "是否要裁剪图像?"
|
cropImageAsk: "是否要裁剪图像?"
|
||||||
file: "文件"
|
file: "文件"
|
||||||
|
@ -855,6 +858,7 @@ noEmailServerWarning: "电子邮件服务器未设置。"
|
||||||
thereIsUnresolvedAbuseReportWarning: "有未解决的报告"
|
thereIsUnresolvedAbuseReportWarning: "有未解决的报告"
|
||||||
recommended: "推荐"
|
recommended: "推荐"
|
||||||
check: "检查"
|
check: "检查"
|
||||||
|
driveCapOverrideLabel: "變更此用戶的雲端硬碟容量上限"
|
||||||
driveCapOverrideCaption: "设定为 0 以下则会解除此限制。"
|
driveCapOverrideCaption: "设定为 0 以下则会解除此限制。"
|
||||||
requireAdminForView: "需要使用管理员账户登录才能查看。"
|
requireAdminForView: "需要使用管理员账户登录才能查看。"
|
||||||
isSystemAccount: "该账号由系统自动创建和管理。"
|
isSystemAccount: "该账号由系统自动创建和管理。"
|
||||||
|
@ -883,9 +887,12 @@ cannotUploadBecauseInappropriate: "因为可能含有不适宜的内容,无法
|
||||||
cannotUploadBecauseNoFreeSpace: "因为已无可用空间,无法上传。"
|
cannotUploadBecauseNoFreeSpace: "因为已无可用空间,无法上传。"
|
||||||
beta: "测试"
|
beta: "测试"
|
||||||
enableAutoSensitive: "自动 NSFW 识别"
|
enableAutoSensitive: "自动 NSFW 识别"
|
||||||
|
enableAutoSensitiveDescription: "如果可用,请使用机器学习在媒体上自动设置 NSFW 标志。即使关闭此功能,也可能会根据实例自动设置。"
|
||||||
|
activeEmailValidationDescription: "积极地验证用户的电子邮件地址,判断它是一次性的电子邮件地址,还是可以实际通信的地址。关闭时,则只检查字符串是否正确。"
|
||||||
navbar: "导航栏"
|
navbar: "导航栏"
|
||||||
shuffle: "随机"
|
shuffle: "随机"
|
||||||
account: "账户"
|
account: "账户"
|
||||||
|
move: "移动"
|
||||||
_sensitiveMediaDetection:
|
_sensitiveMediaDetection:
|
||||||
description: "可以使用机器学习技术自动检测敏感媒体,以便进行审核。服务器负载将略微增加。"
|
description: "可以使用机器学习技术自动检测敏感媒体,以便进行审核。服务器负载将略微增加。"
|
||||||
sensitivity: "检测敏感度"
|
sensitivity: "检测敏感度"
|
||||||
|
@ -936,6 +943,24 @@ _plugin:
|
||||||
install: "安装插件"
|
install: "安装插件"
|
||||||
installWarn: "请不要安装不可信的插件。"
|
installWarn: "请不要安装不可信的插件。"
|
||||||
manage: "管理插件..."
|
manage: "管理插件..."
|
||||||
|
_preferencesBackups:
|
||||||
|
list: "已创建的备份"
|
||||||
|
saveNew: "另存为"
|
||||||
|
loadFile: "导入文件"
|
||||||
|
apply: "应用于本设备"
|
||||||
|
save: "覆盖存档"
|
||||||
|
inputName: "请输入备份的名称"
|
||||||
|
cannotSave: "无法保存"
|
||||||
|
nameAlreadyExists: "备份名称\"{name}\"已经存在,请指定其他名称。"
|
||||||
|
applyConfirm: "您是否要将备份\"{name}\"应用到当前设备上?当前设备现有配置将被丢弃。"
|
||||||
|
saveConfirm: "您确定要覆盖保存 {name} 吗?"
|
||||||
|
deleteConfirm: "您确定要删除 {name} 吗?"
|
||||||
|
renameConfirm: "您确定要把“{old}”改为“{new}”吗?"
|
||||||
|
noBackups: "当前没有备份,“另存为”允许您在服务器上保存当前客户端的配置。"
|
||||||
|
createdAt: "创建日期:{date} {time}"
|
||||||
|
updatedAt: "更新日期:{date} {time}"
|
||||||
|
cannotLoad: "无法加载"
|
||||||
|
invalidFile: "无效的的文件格式。"
|
||||||
_registry:
|
_registry:
|
||||||
scope: "范围"
|
scope: "范围"
|
||||||
key: "主要"
|
key: "主要"
|
||||||
|
@ -1019,6 +1044,8 @@ _mfm:
|
||||||
sparkleDescription: "添加发光粒子效果。"
|
sparkleDescription: "添加发光粒子效果。"
|
||||||
rotate: "旋转"
|
rotate: "旋转"
|
||||||
rotateDescription: "旋转指定的角度。"
|
rotateDescription: "旋转指定的角度。"
|
||||||
|
plain: "简洁"
|
||||||
|
plainDescription: "禁用所有内部语法。"
|
||||||
_instanceTicker:
|
_instanceTicker:
|
||||||
none: "不显示"
|
none: "不显示"
|
||||||
remote: "仅远程用户"
|
remote: "仅远程用户"
|
||||||
|
@ -1248,9 +1275,11 @@ _widgets:
|
||||||
trends: "趋势"
|
trends: "趋势"
|
||||||
clock: "时钟"
|
clock: "时钟"
|
||||||
rss: "RSS阅读器"
|
rss: "RSS阅读器"
|
||||||
|
rssTicker: "RSS Ticker"
|
||||||
activity: "活动"
|
activity: "活动"
|
||||||
photos: "照片"
|
photos: "照片"
|
||||||
digitalClock: "数字时钟"
|
digitalClock: "数字时钟"
|
||||||
|
unixClock: "UNIX时钟"
|
||||||
federation: "联邦宇宙"
|
federation: "联邦宇宙"
|
||||||
instanceCloud: "实例云"
|
instanceCloud: "实例云"
|
||||||
postForm: "投稿窗口"
|
postForm: "投稿窗口"
|
||||||
|
@ -1701,6 +1730,9 @@ _deck:
|
||||||
profile: "配置文件"
|
profile: "配置文件"
|
||||||
newProfile: "新建配置文件"
|
newProfile: "新建配置文件"
|
||||||
deleteProfile: "删除配置文件"
|
deleteProfile: "删除配置文件"
|
||||||
|
introduction: "将各列进行组合以创建您自己的界面!"
|
||||||
|
introduction2: "您可以随时通过屏幕右侧的 + 来添加列"
|
||||||
|
widgetsIntroduction: "从列菜单中,选择“小工具编辑”来添加小工具"
|
||||||
_columns:
|
_columns:
|
||||||
main: "主列"
|
main: "主列"
|
||||||
widgets: "小工具"
|
widgets: "小工具"
|
||||||
|
|
|
@ -52,6 +52,7 @@ searchUser: "搜尋使用者"
|
||||||
reply: "回覆"
|
reply: "回覆"
|
||||||
loadMore: "載入更多"
|
loadMore: "載入更多"
|
||||||
showMore: "載入更多"
|
showMore: "載入更多"
|
||||||
|
showLess: "關閉"
|
||||||
youGotNewFollower: "您有新的追隨者"
|
youGotNewFollower: "您有新的追隨者"
|
||||||
receiveFollowRequest: "您有新的追隨請求"
|
receiveFollowRequest: "您有新的追隨請求"
|
||||||
followRequestAccepted: "追隨請求已接受"
|
followRequestAccepted: "追隨請求已接受"
|
||||||
|
@ -561,6 +562,7 @@ author: "作者"
|
||||||
leaveConfirm: "有未保存的更改。要放棄嗎?"
|
leaveConfirm: "有未保存的更改。要放棄嗎?"
|
||||||
manage: "管理"
|
manage: "管理"
|
||||||
plugins: "外掛"
|
plugins: "外掛"
|
||||||
|
preferencesBackups: "備份設定檔"
|
||||||
deck: "多欄模式"
|
deck: "多欄模式"
|
||||||
undeck: "取消多欄模式"
|
undeck: "取消多欄模式"
|
||||||
useBlurEffectForModal: "在模態框使用模糊效果"
|
useBlurEffectForModal: "在模態框使用模糊效果"
|
||||||
|
@ -888,7 +890,9 @@ enableAutoSensitive: "自動NSFW判定"
|
||||||
enableAutoSensitiveDescription: "如果可用,請利用機器學習在媒體上自動設置 NSFW 旗標。 即使關閉此功能,依實例而定也可能會自動設置。"
|
enableAutoSensitiveDescription: "如果可用,請利用機器學習在媒體上自動設置 NSFW 旗標。 即使關閉此功能,依實例而定也可能會自動設置。"
|
||||||
activeEmailValidationDescription: "積極地驗證用戶的電子郵件地址,判斷它是否為免洗地址,或者它是否可以通信。 若關閉,則只會檢查字元是否正確。"
|
activeEmailValidationDescription: "積極地驗證用戶的電子郵件地址,判斷它是否為免洗地址,或者它是否可以通信。 若關閉,則只會檢查字元是否正確。"
|
||||||
navbar: "導覽列"
|
navbar: "導覽列"
|
||||||
|
shuffle: "隨機"
|
||||||
account: "帳戶"
|
account: "帳戶"
|
||||||
|
move: "移動 "
|
||||||
_sensitiveMediaDetection:
|
_sensitiveMediaDetection:
|
||||||
description: "您可以使用機器學習自動檢測敏感媒體並將其用於審核。 伺服器的負荷會稍微增加。"
|
description: "您可以使用機器學習自動檢測敏感媒體並將其用於審核。 伺服器的負荷會稍微增加。"
|
||||||
sensitivity: "檢測敏感度"
|
sensitivity: "檢測敏感度"
|
||||||
|
@ -939,6 +943,24 @@ _plugin:
|
||||||
install: "安裝外掛組件"
|
install: "安裝外掛組件"
|
||||||
installWarn: "請不要安裝來源不明的外掛組件。"
|
installWarn: "請不要安裝來源不明的外掛組件。"
|
||||||
manage: "管理外掛"
|
manage: "管理外掛"
|
||||||
|
_preferencesBackups:
|
||||||
|
list: "已備份的設定檔"
|
||||||
|
saveNew: "另存新檔"
|
||||||
|
loadFile: "讀取檔案"
|
||||||
|
apply: "套用在此裝置"
|
||||||
|
save: "覆蓋存檔"
|
||||||
|
inputName: "輸入備份檔名稱"
|
||||||
|
cannotSave: "無法儲存"
|
||||||
|
nameAlreadyExists: "備份檔名稱「{name}」已經存在。請指定不同的名稱。"
|
||||||
|
applyConfirm: "將備份檔「{name}」套用在現在的裝置嗎?現在的裝置設定將會消失。"
|
||||||
|
saveConfirm: "要覆蓋存檔{name}嗎?"
|
||||||
|
deleteConfirm: "要刪除{name}嗎?"
|
||||||
|
renameConfirm: "要將「{old}」變更為「{new}」嗎?"
|
||||||
|
noBackups: "沒有備份檔。您可以用「另存新檔」將現在的客戶端設定儲存在伺服器上。"
|
||||||
|
createdAt: "建立日期:{date} {time}"
|
||||||
|
updatedAt: "更新日期:{date} {time}"
|
||||||
|
cannotLoad: "無法讀取"
|
||||||
|
invalidFile: "檔案形式錯誤。"
|
||||||
_registry:
|
_registry:
|
||||||
scope: "範圍"
|
scope: "範圍"
|
||||||
key: "機碼"
|
key: "機碼"
|
||||||
|
@ -1022,6 +1044,8 @@ _mfm:
|
||||||
sparkleDescription: "添加閃閃發光的粒子效果。"
|
sparkleDescription: "添加閃閃發光的粒子效果。"
|
||||||
rotate: "旋轉"
|
rotate: "旋轉"
|
||||||
rotateDescription: "以指定的角度旋轉。"
|
rotateDescription: "以指定的角度旋轉。"
|
||||||
|
plain: "簡潔"
|
||||||
|
plainDescription: "停用全部的內部語法。"
|
||||||
_instanceTicker:
|
_instanceTicker:
|
||||||
none: "隱藏"
|
none: "隱藏"
|
||||||
remote: "向遠端使用者顯示"
|
remote: "向遠端使用者顯示"
|
||||||
|
@ -1255,6 +1279,7 @@ _widgets:
|
||||||
activity: "動態"
|
activity: "動態"
|
||||||
photos: "照片"
|
photos: "照片"
|
||||||
digitalClock: "電子時鐘"
|
digitalClock: "電子時鐘"
|
||||||
|
unixClock: "UNIX時間"
|
||||||
federation: "聯邦宇宙"
|
federation: "聯邦宇宙"
|
||||||
instanceCloud: "實例雲"
|
instanceCloud: "實例雲"
|
||||||
postForm: "發佈窗口"
|
postForm: "發佈窗口"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "12.117.1",
|
"version": "12.118.0",
|
||||||
"codename": "indigo",
|
"codename": "indigo",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -41,9 +41,9 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/gulp": "4.0.9",
|
"@types/gulp": "4.0.9",
|
||||||
"@types/gulp-rename": "2.0.1",
|
"@types/gulp-rename": "2.0.1",
|
||||||
"@typescript-eslint/parser": "5.30.6",
|
"@typescript-eslint/parser": "5.31.0",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"cypress": "10.3.0",
|
"cypress": "10.3.1",
|
||||||
"start-server-and-test": "1.14.0",
|
"start-server-and-test": "1.14.0",
|
||||||
"typescript": "4.7.4"
|
"typescript": "4.7.4"
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
"lodash": "^4.17.21"
|
"lodash": "^4.17.21"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@tensorflow/tfjs-node": "3.18.0"
|
"@tensorflow/tfjs-node": "3.19.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bull-board/koa": "4.0.0",
|
"@bull-board/koa": "4.1.1",
|
||||||
"@discordapp/twemoji": "14.0.2",
|
"@discordapp/twemoji": "14.0.2",
|
||||||
"@elastic/elasticsearch": "7.11.0",
|
"@elastic/elasticsearch": "7.11.0",
|
||||||
"@koa/cors": "3.1.0",
|
"@koa/cors": "3.1.0",
|
||||||
|
@ -26,15 +26,14 @@
|
||||||
"@peertube/http-signature": "1.6.0",
|
"@peertube/http-signature": "1.6.0",
|
||||||
"@sinonjs/fake-timers": "9.1.2",
|
"@sinonjs/fake-timers": "9.1.2",
|
||||||
"@syuilo/aiscript": "0.11.1",
|
"@syuilo/aiscript": "0.11.1",
|
||||||
"abort-controller": "3.0.0",
|
|
||||||
"ajv": "8.11.0",
|
"ajv": "8.11.0",
|
||||||
"archiver": "5.3.1",
|
"archiver": "5.3.1",
|
||||||
"autobind-decorator": "2.4.0",
|
"autobind-decorator": "2.4.0",
|
||||||
"autwh": "0.1.0",
|
"autwh": "0.1.0",
|
||||||
"aws-sdk": "2.1165.0",
|
"aws-sdk": "2.1185.0",
|
||||||
"bcryptjs": "2.4.3",
|
"bcryptjs": "2.4.3",
|
||||||
"blurhash": "1.1.5",
|
"blurhash": "1.1.5",
|
||||||
"bull": "4.8.4",
|
"bull": "4.8.5",
|
||||||
"cacheable-lookup": "6.0.4",
|
"cacheable-lookup": "6.0.4",
|
||||||
"cbor": "8.1.0",
|
"cbor": "8.1.0",
|
||||||
"chalk": "5.0.1",
|
"chalk": "5.0.1",
|
||||||
|
@ -43,13 +42,13 @@
|
||||||
"cli-highlight": "2.1.11",
|
"cli-highlight": "2.1.11",
|
||||||
"color-convert": "2.0.1",
|
"color-convert": "2.0.1",
|
||||||
"content-disposition": "0.5.4",
|
"content-disposition": "0.5.4",
|
||||||
"date-fns": "2.28.0",
|
"date-fns": "2.29.1",
|
||||||
"deep-email-validator": "0.1.21",
|
"deep-email-validator": "0.1.21",
|
||||||
"escape-regexp": "0.0.1",
|
"escape-regexp": "0.0.1",
|
||||||
"feed": "4.2.2",
|
"feed": "4.2.2",
|
||||||
"file-type": "17.1.2",
|
"file-type": "17.1.4",
|
||||||
"fluent-ffmpeg": "2.1.2",
|
"fluent-ffmpeg": "2.1.2",
|
||||||
"got": "12.1.0",
|
"got": "12.3.0",
|
||||||
"hpagent": "0.1.2",
|
"hpagent": "0.1.2",
|
||||||
"ioredis": "4.28.5",
|
"ioredis": "4.28.5",
|
||||||
"ip-cidr": "3.0.10",
|
"ip-cidr": "3.0.10",
|
||||||
|
@ -59,7 +58,7 @@
|
||||||
"json5": "2.2.1",
|
"json5": "2.2.1",
|
||||||
"json5-loader": "4.0.1",
|
"json5-loader": "4.0.1",
|
||||||
"jsonld": "6.0.0",
|
"jsonld": "6.0.0",
|
||||||
"jsrsasign": "10.5.25",
|
"jsrsasign": "10.5.26",
|
||||||
"koa": "2.13.4",
|
"koa": "2.13.4",
|
||||||
"koa-bodyparser": "4.3.0",
|
"koa-bodyparser": "4.3.0",
|
||||||
"koa-favicon": "2.1.0",
|
"koa-favicon": "2.1.0",
|
||||||
|
@ -69,14 +68,14 @@
|
||||||
"koa-send": "5.0.1",
|
"koa-send": "5.0.1",
|
||||||
"koa-slow": "2.1.0",
|
"koa-slow": "2.1.0",
|
||||||
"koa-views": "7.0.2",
|
"koa-views": "7.0.2",
|
||||||
"mfm-js": "0.23.0-canary.1",
|
"mfm-js": "0.23.0",
|
||||||
"mime-types": "2.1.35",
|
"mime-types": "2.1.35",
|
||||||
"misskey-js": "0.0.14",
|
"misskey-js": "0.0.14",
|
||||||
"mocha": "10.0.0",
|
"mocha": "10.0.0",
|
||||||
"ms": "3.0.0-canary.1",
|
"ms": "3.0.0-canary.1",
|
||||||
"multer": "1.4.4",
|
"multer": "1.4.4",
|
||||||
"nested-property": "4.0.0",
|
"nested-property": "4.0.0",
|
||||||
"node-fetch": "3.2.8",
|
"node-fetch": "3.2.10",
|
||||||
"nodemailer": "6.7.7",
|
"nodemailer": "6.7.7",
|
||||||
"nsfwjs": "2.4.1",
|
"nsfwjs": "2.4.1",
|
||||||
"os-utils": "0.0.14",
|
"os-utils": "0.0.14",
|
||||||
|
@ -88,32 +87,30 @@
|
||||||
"pug": "3.0.2",
|
"pug": "3.0.2",
|
||||||
"punycode": "2.1.1",
|
"punycode": "2.1.1",
|
||||||
"pureimage": "0.3.14",
|
"pureimage": "0.3.14",
|
||||||
"qrcode": "1.5.0",
|
"qrcode": "1.5.1",
|
||||||
"random-seed": "0.3.0",
|
"random-seed": "0.3.0",
|
||||||
"ratelimiter": "3.4.1",
|
"ratelimiter": "3.4.1",
|
||||||
"re2": "1.17.7",
|
"re2": "1.17.7",
|
||||||
"redis-lock": "0.1.4",
|
"redis-lock": "0.1.4",
|
||||||
"reflect-metadata": "0.1.13",
|
"reflect-metadata": "0.1.13",
|
||||||
"rename": "1.0.4",
|
"rename": "1.0.4",
|
||||||
"require-all": "3.0.0",
|
|
||||||
"rndstr": "1.0.0",
|
"rndstr": "1.0.0",
|
||||||
"rss-parser": "3.12.0",
|
"rss-parser": "3.12.0",
|
||||||
"s-age": "1.1.2",
|
"s-age": "1.1.2",
|
||||||
"sanitize-html": "2.7.0",
|
"sanitize-html": "2.7.1",
|
||||||
"semver": "7.3.7",
|
"semver": "7.3.7",
|
||||||
"sharp": "0.29.3",
|
"sharp": "0.29.3",
|
||||||
"speakeasy": "2.0.0",
|
"speakeasy": "2.0.0",
|
||||||
"strict-event-emitter-types": "2.0.0",
|
"strict-event-emitter-types": "2.0.0",
|
||||||
"stringz": "2.1.0",
|
"stringz": "2.1.0",
|
||||||
"style-loader": "3.3.1",
|
|
||||||
"summaly": "2.7.0",
|
"summaly": "2.7.0",
|
||||||
"syslog-pro": "1.0.0",
|
"syslog-pro": "1.0.0",
|
||||||
"systeminformation": "5.12.0",
|
"systeminformation": "5.12.1",
|
||||||
"tinycolor2": "1.4.2",
|
"tinycolor2": "1.4.2",
|
||||||
"tmp": "0.2.1",
|
"tmp": "0.2.1",
|
||||||
"ts-loader": "9.3.1",
|
"ts-loader": "9.3.1",
|
||||||
"ts-node": "10.8.2",
|
"ts-node": "10.9.1",
|
||||||
"tsc-alias": "1.6.11",
|
"tsc-alias": "1.7.0",
|
||||||
"tsconfig-paths": "4.0.0",
|
"tsconfig-paths": "4.0.0",
|
||||||
"twemoji-parser": "14.0.0",
|
"twemoji-parser": "14.0.0",
|
||||||
"typeorm": "0.3.7",
|
"typeorm": "0.3.7",
|
||||||
|
@ -122,21 +119,20 @@
|
||||||
"uuid": "8.3.2",
|
"uuid": "8.3.2",
|
||||||
"web-push": "3.5.0",
|
"web-push": "3.5.0",
|
||||||
"websocket": "1.0.34",
|
"websocket": "1.0.34",
|
||||||
"ws": "8.8.0",
|
"ws": "8.8.1",
|
||||||
"xev": "3.0.2"
|
"xev": "3.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@redocly/openapi-core": "1.0.0-beta.97",
|
"@redocly/openapi-core": "1.0.0-beta.105",
|
||||||
"@types/bcryptjs": "2.4.2",
|
"@types/bcryptjs": "2.4.2",
|
||||||
"@types/bull": "3.15.8",
|
"@types/bull": "3.15.9",
|
||||||
"@types/cbor": "6.0.0",
|
"@types/cbor": "6.0.0",
|
||||||
"@types/escape-regexp": "0.0.1",
|
"@types/escape-regexp": "0.0.1",
|
||||||
"@types/fluent-ffmpeg": "2.1.20",
|
"@types/fluent-ffmpeg": "2.1.20",
|
||||||
"@types/is-url": "1.2.30",
|
|
||||||
"@types/js-yaml": "4.0.5",
|
"@types/js-yaml": "4.0.5",
|
||||||
"@types/jsdom": "16.2.14",
|
"@types/jsdom": "16.2.14",
|
||||||
"@types/jsonld": "1.5.6",
|
"@types/jsonld": "1.5.6",
|
||||||
"@types/jsrsasign": "10.5.1",
|
"@types/jsrsasign": "10.5.2",
|
||||||
"@types/koa": "2.13.5",
|
"@types/koa": "2.13.5",
|
||||||
"@types/koa-bodyparser": "4.3.7",
|
"@types/koa-bodyparser": "4.3.7",
|
||||||
"@types/koa-cors": "0.0.2",
|
"@types/koa-cors": "0.0.2",
|
||||||
|
@ -149,7 +145,7 @@
|
||||||
"@types/koa__multer": "2.0.4",
|
"@types/koa__multer": "2.0.4",
|
||||||
"@types/koa__router": "8.0.11",
|
"@types/koa__router": "8.0.11",
|
||||||
"@types/mocha": "9.1.1",
|
"@types/mocha": "9.1.1",
|
||||||
"@types/node": "18.0.3",
|
"@types/node": "18.6.3",
|
||||||
"@types/node-fetch": "3.0.3",
|
"@types/node-fetch": "3.0.3",
|
||||||
"@types/nodemailer": "6.4.4",
|
"@types/nodemailer": "6.4.4",
|
||||||
"@types/oauth": "0.9.1",
|
"@types/oauth": "0.9.1",
|
||||||
|
@ -171,10 +167,10 @@
|
||||||
"@types/web-push": "3.3.2",
|
"@types/web-push": "3.3.2",
|
||||||
"@types/websocket": "1.0.5",
|
"@types/websocket": "1.0.5",
|
||||||
"@types/ws": "8.5.3",
|
"@types/ws": "8.5.3",
|
||||||
"@typescript-eslint/eslint-plugin": "5.30.6",
|
"@typescript-eslint/eslint-plugin": "5.31.0",
|
||||||
"@typescript-eslint/parser": "5.30.6",
|
"@typescript-eslint/parser": "5.31.0",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"eslint": "8.19.0",
|
"eslint": "8.20.0",
|
||||||
"eslint-plugin-import": "2.26.0",
|
"eslint-plugin-import": "2.26.0",
|
||||||
"execa": "6.1.0",
|
"execa": "6.1.0",
|
||||||
"typescript": "4.7.4"
|
"typescript": "4.7.4"
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { Blocking } from '@/models/entities/blocking.js';
|
||||||
* @param block The block to be rendered. The blockee relation must be loaded.
|
* @param block The block to be rendered. The blockee relation must be loaded.
|
||||||
*/
|
*/
|
||||||
export function renderBlock(block: Blocking) {
|
export function renderBlock(block: Blocking) {
|
||||||
if (block.blockee?.url == null) {
|
if (block.blockee?.uri == null) {
|
||||||
throw new Error('renderBlock: missing blockee uri');
|
throw new Error('renderBlock: missing blockee uri');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ export const meta = {
|
||||||
|
|
||||||
limit: {
|
limit: {
|
||||||
duration: 60000,
|
duration: 60000,
|
||||||
max: 10,
|
max: 15,
|
||||||
},
|
},
|
||||||
|
|
||||||
kind: 'read:notifications',
|
kind: 'read:notifications',
|
||||||
|
|
|
@ -138,6 +138,8 @@
|
||||||
</button>
|
</button>
|
||||||
<p class="dont-worry">Don't worry, it's (probably) not your fault.</p>
|
<p class="dont-worry">Don't worry, it's (probably) not your fault.</p>
|
||||||
<p>If the problem persists after refreshing, please contact your instance's administrator.<br>You may also try the following options:</p>
|
<p>If the problem persists after refreshing, please contact your instance's administrator.<br>You may also try the following options:</p>
|
||||||
|
<p>Update your os and browser.</p>
|
||||||
|
<p>Disable an adblocker.</p>
|
||||||
<a href="/flush">
|
<a href="/flush">
|
||||||
<button class="button-small">
|
<button class="button-small">
|
||||||
<span class="button-label-small">Clear preferences and cache</span>
|
<span class="button-label-small">Clear preferences and cache</span>
|
||||||
|
|
|
@ -27,7 +27,7 @@ html
|
||||||
.then(registrations => {
|
.then(registrations => {
|
||||||
return Promise.all(registrations.map(registration => registration.unregister()));
|
return Promise.all(registrations.map(registration => registration.unregister()));
|
||||||
})
|
})
|
||||||
.catch(e => { throw Error(e) });
|
.catch(e => { throw new Error(e) });
|
||||||
}
|
}
|
||||||
|
|
||||||
message(successText);
|
message(successText);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"target": "es2017",
|
"target": "es2021",
|
||||||
"module": "es2020",
|
"module": "es2020",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
"target": "es2017",
|
"target": "es2021",
|
||||||
"module": "es2020",
|
"module": "es2020",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -11,102 +11,79 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordapp/twemoji": "14.0.2",
|
"@discordapp/twemoji": "14.0.2",
|
||||||
"@fortawesome/fontawesome-free": "6.1.1",
|
"@fortawesome/fontawesome-free": "6.1.2",
|
||||||
"@rollup/plugin-alias": "3.1.9",
|
"@rollup/plugin-alias": "3.1.9",
|
||||||
"@rollup/plugin-json": "4.1.0",
|
"@rollup/plugin-json": "4.1.0",
|
||||||
"@syuilo/aiscript": "0.11.1",
|
"@syuilo/aiscript": "0.11.1",
|
||||||
"@vitejs/plugin-vue": "3.0.1",
|
"@vitejs/plugin-vue": "3.0.1",
|
||||||
"@vue/compiler-sfc": "3.2.37",
|
"@vue/compiler-sfc": "3.2.37",
|
||||||
"abort-controller": "3.0.0",
|
|
||||||
"autobind-decorator": "2.4.0",
|
"autobind-decorator": "2.4.0",
|
||||||
"autosize": "5.0.1",
|
"autosize": "5.0.1",
|
||||||
"autwh": "0.1.0",
|
|
||||||
"blurhash": "1.1.5",
|
"blurhash": "1.1.5",
|
||||||
"broadcast-channel": "4.13.0",
|
"broadcast-channel": "4.14.0",
|
||||||
"browser-image-resizer": "git+https://github.com/misskey-dev/browser-image-resizer#v2.2.1-misskey.2",
|
"browser-image-resizer": "git+https://github.com/misskey-dev/browser-image-resizer#v2.2.1-misskey.2",
|
||||||
"chart.js": "3.8.0",
|
"chart.js": "3.8.2",
|
||||||
"chartjs-adapter-date-fns": "2.0.0",
|
"chartjs-adapter-date-fns": "2.0.0",
|
||||||
"chartjs-plugin-gradient": "0.5.0",
|
"chartjs-plugin-gradient": "0.5.0",
|
||||||
"chartjs-plugin-zoom": "1.2.1",
|
"chartjs-plugin-zoom": "1.2.1",
|
||||||
"compare-versions": "4.1.3",
|
"compare-versions": "4.1.3",
|
||||||
"content-disposition": "0.5.4",
|
|
||||||
"cropperjs": "2.0.0-beta",
|
"cropperjs": "2.0.0-beta",
|
||||||
"date-fns": "2.28.0",
|
"date-fns": "2.29.1",
|
||||||
"escape-regexp": "0.0.1",
|
"escape-regexp": "0.0.1",
|
||||||
"eventemitter3": "4.0.7",
|
"eventemitter3": "4.0.7",
|
||||||
"feed": "4.2.2",
|
|
||||||
"idb-keyval": "6.2.0",
|
"idb-keyval": "6.2.0",
|
||||||
"insert-text-at-cursor": "0.3.0",
|
"insert-text-at-cursor": "0.3.0",
|
||||||
"json5": "2.2.1",
|
"json5": "2.2.1",
|
||||||
"katex": "0.15.6",
|
"katex": "0.15.6",
|
||||||
"matter-js": "0.18.0",
|
"matter-js": "0.18.0",
|
||||||
"mfm-js": "0.23.0-canary.1",
|
"mfm-js": "0.23.0",
|
||||||
"misskey-js": "0.0.14",
|
"misskey-js": "0.0.14",
|
||||||
"mocha": "10.0.0",
|
"photoswipe": "5.3.0",
|
||||||
"ms": "2.1.3",
|
|
||||||
"nested-property": "4.0.0",
|
|
||||||
"photoswipe": "5.2.8",
|
|
||||||
"prismjs": "1.28.0",
|
"prismjs": "1.28.0",
|
||||||
"private-ip": "2.3.3",
|
|
||||||
"promise-limit": "2.7.0",
|
|
||||||
"pug": "3.0.2",
|
|
||||||
"punycode": "2.1.1",
|
"punycode": "2.1.1",
|
||||||
"qrcode": "1.5.0",
|
|
||||||
"querystring": "0.2.1",
|
"querystring": "0.2.1",
|
||||||
"random-seed": "0.3.0",
|
|
||||||
"reflect-metadata": "0.1.13",
|
|
||||||
"rndstr": "1.0.0",
|
"rndstr": "1.0.0",
|
||||||
"s-age": "1.1.2",
|
"s-age": "1.1.2",
|
||||||
"sass": "1.53.0",
|
"sass": "1.54.0",
|
||||||
"seedrandom": "3.0.5",
|
"seedrandom": "3.0.5",
|
||||||
"strict-event-emitter-types": "2.0.0",
|
"strict-event-emitter-types": "2.0.0",
|
||||||
"stringz": "2.1.0",
|
"stringz": "2.1.0",
|
||||||
"syuilo-password-strength": "0.0.1",
|
"syuilo-password-strength": "0.0.1",
|
||||||
"textarea-caret": "3.1.0",
|
"textarea-caret": "3.1.0",
|
||||||
"three": "0.142.0",
|
"three": "0.143.0",
|
||||||
"throttle-debounce": "5.0.0",
|
"throttle-debounce": "5.0.0",
|
||||||
"tinycolor2": "1.4.2",
|
"tinycolor2": "1.4.2",
|
||||||
"tsc-alias": "1.6.11",
|
"tsc-alias": "1.7.0",
|
||||||
"tsconfig-paths": "4.0.0",
|
"tsconfig-paths": "4.0.0",
|
||||||
"twemoji-parser": "14.0.0",
|
"twemoji-parser": "14.0.0",
|
||||||
"typescript": "4.7.4",
|
"typescript": "4.7.4",
|
||||||
"uuid": "8.3.2",
|
"uuid": "8.3.2",
|
||||||
"v-debounce": "0.1.2",
|
|
||||||
"vanilla-tilt": "1.7.2",
|
"vanilla-tilt": "1.7.2",
|
||||||
"vite": "3.0.2",
|
"vite": "3.0.4",
|
||||||
"vue": "3.2.37",
|
"vue": "3.2.37",
|
||||||
"vue-prism-editor": "2.0.0-alpha.2",
|
"vue-prism-editor": "2.0.0-alpha.2",
|
||||||
"vuedraggable": "4.0.1",
|
"vuedraggable": "4.0.1"
|
||||||
"websocket": "1.0.34",
|
|
||||||
"ws": "8.8.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/escape-regexp": "0.0.1",
|
"@types/escape-regexp": "0.0.1",
|
||||||
"@types/glob": "7.2.0",
|
"@types/glob": "7.2.0",
|
||||||
"@types/gulp": "4.0.9",
|
"@types/gulp": "4.0.9",
|
||||||
"@types/gulp-rename": "2.0.1",
|
"@types/gulp-rename": "2.0.1",
|
||||||
"@types/is-url": "1.2.30",
|
|
||||||
"@types/katex": "0.14.0",
|
"@types/katex": "0.14.0",
|
||||||
"@types/matter-js": "0.17.7",
|
"@types/matter-js": "0.17.7",
|
||||||
"@types/mocha": "9.1.1",
|
|
||||||
"@types/oauth": "0.9.1",
|
|
||||||
"@types/punycode": "2.1.0",
|
"@types/punycode": "2.1.0",
|
||||||
"@types/qrcode": "1.4.2",
|
|
||||||
"@types/random-seed": "0.3.3",
|
|
||||||
"@types/seedrandom": "3.0.2",
|
"@types/seedrandom": "3.0.2",
|
||||||
"@types/throttle-debounce": "5.0.0",
|
"@types/throttle-debounce": "5.0.0",
|
||||||
"@types/tinycolor2": "1.4.3",
|
"@types/tinycolor2": "1.4.3",
|
||||||
"@types/uuid": "8.3.4",
|
"@types/uuid": "8.3.4",
|
||||||
"@types/websocket": "1.0.5",
|
"@typescript-eslint/eslint-plugin": "5.31.0",
|
||||||
"@types/ws": "8.5.3",
|
"@typescript-eslint/parser": "5.31.0",
|
||||||
"@typescript-eslint/eslint-plugin": "5.30.6",
|
|
||||||
"@typescript-eslint/parser": "5.30.6",
|
|
||||||
"rollup": "2.76.0",
|
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"cypress": "10.3.0",
|
"cypress": "10.3.1",
|
||||||
"eslint": "8.19.0",
|
"eslint": "8.20.0",
|
||||||
"eslint-plugin-import": "2.26.0",
|
"eslint-plugin-import": "2.26.0",
|
||||||
"eslint-plugin-vue": "9.2.0",
|
"eslint-plugin-vue": "9.3.0",
|
||||||
|
"rollup": "2.77.2",
|
||||||
"start-server-and-test": "1.14.0"
|
"start-server-and-test": "1.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<XNoteHeader class="header" :note="note" :mini="true"/>
|
<XNoteHeader class="header" :note="note" :mini="true"/>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<p v-if="note.cw != null" class="cw">
|
<p v-if="note.cw != null" class="cw">
|
||||||
<Mfm v-if="note.cw != ''" class="text" :text="note.cw" :author="note.user" :i="$i" :custom-emojis="note.emojis" />
|
<Mfm v-if="note.cw != ''" class="text" :text="note.cw" :author="note.user" :i="$i" :custom-emojis="note.emojis"/>
|
||||||
<XCwButton v-model="showContent" :note="note"/>
|
<XCwButton v-model="showContent" :note="note"/>
|
||||||
</p>
|
</p>
|
||||||
<div v-show="note.cw == null || showContent" class="content">
|
<div v-show="note.cw == null || showContent" class="content">
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<MkNoteSub v-for="reply in replies" :key="reply.id" :note="reply" class="reply" :detail="true" :depth="depth + 1"/>
|
<MkNoteSub v-for="reply in replies" :key="reply.id" :note="reply" class="reply" :detail="true" :depth="depth + 1"/>
|
||||||
</template>
|
</template>
|
||||||
<div v-else class="more">
|
<div v-else class="more">
|
||||||
<MkA class="text _link" :to="notePage(note)">{{ $ts.continueThread }} <i class="fas fa-angle-double-right"></i></MkA>
|
<MkA class="text _link" :to="notePage(note)">{{ i18n.ts.continueThread }} <i class="fas fa-angle-double-right"></i></MkA>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -27,11 +27,12 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import * as misskey from 'misskey-js';
|
import * as misskey from 'misskey-js';
|
||||||
import { notePage } from '@/filters/note';
|
|
||||||
import XNoteHeader from './note-header.vue';
|
import XNoteHeader from './note-header.vue';
|
||||||
import MkNoteSubNoteContent from './sub-note-content.vue';
|
import MkNoteSubNoteContent from './sub-note-content.vue';
|
||||||
import XCwButton from './cw-button.vue';
|
import XCwButton from './cw-button.vue';
|
||||||
|
import { notePage } from '@/filters/note';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
note: misskey.entities.Note;
|
note: misskey.entities.Note;
|
||||||
|
@ -49,7 +50,7 @@ let replies: misskey.entities.Note[] = $ref([]);
|
||||||
if (props.detail) {
|
if (props.detail) {
|
||||||
os.api('notes/children', {
|
os.api('notes/children', {
|
||||||
noteId: props.note.id,
|
noteId: props.note.id,
|
||||||
limit: 5
|
limit: 5,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
replies = res;
|
replies = res;
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
</MkA>
|
</MkA>
|
||||||
<MkKeyValue class="_formBlock">
|
<MkKeyValue class="_formBlock">
|
||||||
<template #key>{{ $ts.registeredDate }}</template>
|
<template #key>{{ i18n.ts.registeredDate }}</template>
|
||||||
<template #value>{{ new Date(report.targetUser.createdAt).toLocaleString() }} (<MkTime :time="report.targetUser.createdAt"/>)</template>
|
<template #value>{{ new Date(report.targetUser.createdAt).toLocaleString() }} (<MkTime :time="report.targetUser.createdAt"/>)</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,18 +18,18 @@
|
||||||
<Mfm :text="report.comment"/>
|
<Mfm :text="report.comment"/>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div>{{ $ts.reporter }}: <MkAcct :user="report.reporter"/></div>
|
<div>{{ i18n.ts.reporter }}: <MkAcct :user="report.reporter"/></div>
|
||||||
<div v-if="report.assignee">
|
<div v-if="report.assignee">
|
||||||
{{ $ts.moderator }}:
|
{{ i18n.ts.moderator }}:
|
||||||
<MkAcct :user="report.assignee"/>
|
<MkAcct :user="report.assignee"/>
|
||||||
</div>
|
</div>
|
||||||
<div><MkTime :time="report.createdAt"/></div>
|
<div><MkTime :time="report.createdAt"/></div>
|
||||||
<div class="action">
|
<div class="action">
|
||||||
<MkSwitch v-model="forward" :disabled="report.targetUser.host == null || report.resolved">
|
<MkSwitch v-model="forward" :disabled="report.targetUser.host == null || report.resolved">
|
||||||
{{ $ts.forwardReport }}
|
{{ i18n.ts.forwardReport }}
|
||||||
<template #caption>{{ $ts.forwardReportIsAnonymous }}</template>
|
<template #caption>{{ i18n.ts.forwardReportIsAnonymous }}</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
<MkButton v-if="!report.resolved" primary @click="resolve">{{ $ts.abuseMarkAsResolved }}</MkButton>
|
<MkButton v-if="!report.resolved" primary @click="resolve">{{ i18n.ts.abuseMarkAsResolved }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,6 +41,7 @@ import MkSwitch from '@/components/form/switch.vue';
|
||||||
import MkKeyValue from '@/components/key-value.vue';
|
import MkKeyValue from '@/components/key-value.vue';
|
||||||
import { acct, userPage } from '@/filters/user';
|
import { acct, userPage } from '@/filters/user';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
report: any;
|
report: any;
|
||||||
|
|
|
@ -1,12 +1,30 @@
|
||||||
<template>
|
<template>
|
||||||
<svg class="mbcofsoe" viewBox="0 0 10 10" preserveAspectRatio="none">
|
<svg class="mbcofsoe" viewBox="0 0 10 10" preserveAspectRatio="none">
|
||||||
<circle v-for="(angle, i) in graduations"
|
<template v-if="props.graduations === 'dots'">
|
||||||
:key="i"
|
<circle
|
||||||
|
v-for="(angle, i) in graduationsMajor"
|
||||||
:cx="5 + (Math.sin(angle) * (5 - graduationsPadding))"
|
:cx="5 + (Math.sin(angle) * (5 - graduationsPadding))"
|
||||||
:cy="5 - (Math.cos(angle) * (5 - graduationsPadding))"
|
:cy="5 - (Math.cos(angle) * (5 - graduationsPadding))"
|
||||||
:r="i % 5 == 0 ? 0.125 : 0.05"
|
:r="0.125"
|
||||||
:fill="i % 5 == 0 ? majorGraduationColor : minorGraduationColor"
|
:fill="(props.twentyfour ? h : h % 12) === i ? nowColor : majorGraduationColor"
|
||||||
|
:opacity="!props.fadeGraduations || (props.twentyfour ? h : h % 12) === i ? 1 : Math.max(0, 1 - (angleDiff(hAngle, angle) / Math.PI) - numbersOpacityFactor)"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template v-else-if="props.graduations === 'numbers'">
|
||||||
|
<text
|
||||||
|
v-for="(angle, i) in texts"
|
||||||
|
:x="5 + (Math.sin(angle) * (5 - textsPadding))"
|
||||||
|
:y="5 - (Math.cos(angle) * (5 - textsPadding))"
|
||||||
|
text-anchor="middle"
|
||||||
|
dominant-baseline="middle"
|
||||||
|
:font-size="(props.twentyfour ? h : h % 12) === i ? 1 : 0.7"
|
||||||
|
:font-weight="(props.twentyfour ? h : h % 12) === i ? 'bold' : 'normal'"
|
||||||
|
:fill="(props.twentyfour ? h : h % 12) === i ? nowColor : 'currentColor'"
|
||||||
|
:opacity="!props.fadeGraduations || (props.twentyfour ? h : h % 12) === i ? 1 : Math.max(0, 1 - (angleDiff(hAngle, angle) / Math.PI) - numbersOpacityFactor)"
|
||||||
|
>
|
||||||
|
{{ i === 0 ? (props.twentyfour ? '24' : '12') : i }}
|
||||||
|
</text>
|
||||||
|
</template>
|
||||||
|
|
||||||
<line
|
<line
|
||||||
:x1="5 - (Math.sin(sAngle) * (sHandLengthRatio * handsTailLength))"
|
:x1="5 - (Math.sin(sAngle) * (sHandLengthRatio * handsTailLength))"
|
||||||
|
@ -41,63 +59,116 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, computed, onMounted, onBeforeUnmount } from 'vue';
|
import { ref, computed, onMounted, onBeforeUnmount, shallowRef } from 'vue';
|
||||||
import tinycolor from 'tinycolor2';
|
import tinycolor from 'tinycolor2';
|
||||||
|
import { globalEvents } from '@/events.js';
|
||||||
|
|
||||||
withDefaults(defineProps<{
|
// https://stackoverflow.com/questions/1878907/how-can-i-find-the-difference-between-two-angles
|
||||||
thickness: number;
|
const angleDiff = (a: number, b: number) => {
|
||||||
|
const x = Math.abs(a - b);
|
||||||
|
return Math.abs((x + Math.PI) % (Math.PI * 2) - Math.PI);
|
||||||
|
};
|
||||||
|
|
||||||
|
const graduationsPadding = 0.5;
|
||||||
|
const textsPadding = 0.6;
|
||||||
|
const handsPadding = 1;
|
||||||
|
const handsTailLength = 0.7;
|
||||||
|
const hHandLengthRatio = 0.75;
|
||||||
|
const mHandLengthRatio = 1;
|
||||||
|
const sHandLengthRatio = 1;
|
||||||
|
const numbersOpacityFactor = 0.35;
|
||||||
|
|
||||||
|
const props = withDefaults(defineProps<{
|
||||||
|
thickness?: number;
|
||||||
|
offset?: number;
|
||||||
|
twentyfour?: boolean;
|
||||||
|
graduations?: 'none' | 'dots' | 'numbers';
|
||||||
|
fadeGraduations?: boolean;
|
||||||
}>(), {
|
}>(), {
|
||||||
|
numbers: false,
|
||||||
thickness: 0.1,
|
thickness: 0.1,
|
||||||
|
offset: 0 - new Date().getTimezoneOffset(),
|
||||||
|
twentyfour: false,
|
||||||
|
graduations: 'dots',
|
||||||
|
fadeGraduations: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const now = ref(new Date());
|
const graduationsMajor = computed(() => {
|
||||||
const enabled = ref(true);
|
|
||||||
const graduationsPadding = ref(0.5);
|
|
||||||
const handsPadding = ref(1);
|
|
||||||
const handsTailLength = ref(0.7);
|
|
||||||
const hHandLengthRatio = ref(0.75);
|
|
||||||
const mHandLengthRatio = ref(1);
|
|
||||||
const sHandLengthRatio = ref(1);
|
|
||||||
const computedStyle = getComputedStyle(document.documentElement);
|
|
||||||
|
|
||||||
const dark = computed(() => tinycolor(computedStyle.getPropertyValue('--bg')).isDark());
|
|
||||||
const majorGraduationColor = computed(() => dark.value ? 'rgba(255, 255, 255, 0.3)' : 'rgba(0, 0, 0, 0.3)');
|
|
||||||
const minorGraduationColor = computed(() => dark.value ? 'rgba(255, 255, 255, 0.2)' : 'rgba(0, 0, 0, 0.2)');
|
|
||||||
const sHandColor = computed(() => dark.value ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.3)');
|
|
||||||
const mHandColor = computed(() => tinycolor(computedStyle.getPropertyValue('--fg')).toHexString());
|
|
||||||
const hHandColor = computed(() => tinycolor(computedStyle.getPropertyValue('--accent')).toHexString());
|
|
||||||
const s = computed(() => now.value.getSeconds());
|
|
||||||
const m = computed(() => now.value.getMinutes());
|
|
||||||
const h = computed(() => now.value.getHours());
|
|
||||||
const hAngle = computed(() => Math.PI * (h.value % 12 + (m.value + s.value / 60) / 60) / 6);
|
|
||||||
const mAngle = computed(() => Math.PI * (m.value + s.value / 60) / 30);
|
|
||||||
const sAngle = computed(() => Math.PI * s.value / 30);
|
|
||||||
const graduations = computed(() => {
|
|
||||||
const angles: number[] = [];
|
const angles: number[] = [];
|
||||||
for (let i = 0; i < 60; i++) {
|
const times = props.twentyfour ? 24 : 12;
|
||||||
const angle = Math.PI * i / 30;
|
for (let i = 0; i < times; i++) {
|
||||||
|
const angle = Math.PI * i / (times / 2);
|
||||||
|
angles.push(angle);
|
||||||
|
}
|
||||||
|
return angles;
|
||||||
|
});
|
||||||
|
const texts = computed(() => {
|
||||||
|
const angles: number[] = [];
|
||||||
|
const times = props.twentyfour ? 24 : 12;
|
||||||
|
for (let i = 0; i < times; i++) {
|
||||||
|
const angle = Math.PI * i / (times / 2);
|
||||||
angles.push(angle);
|
angles.push(angle);
|
||||||
}
|
}
|
||||||
|
|
||||||
return angles;
|
return angles;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let enabled = true;
|
||||||
|
let majorGraduationColor = $ref<string>();
|
||||||
|
//let minorGraduationColor = $ref<string>();
|
||||||
|
let sHandColor = $ref<string>();
|
||||||
|
let mHandColor = $ref<string>();
|
||||||
|
let hHandColor = $ref<string>();
|
||||||
|
let nowColor = $ref<string>();
|
||||||
|
let h = $ref<number>(0);
|
||||||
|
let m = $ref<number>(0);
|
||||||
|
let s = $ref<number>(0);
|
||||||
|
let hAngle = $ref<number>(0);
|
||||||
|
let mAngle = $ref<number>(0);
|
||||||
|
let sAngle = $ref<number>(0);
|
||||||
|
|
||||||
function tick() {
|
function tick() {
|
||||||
now.value = new Date();
|
const now = new Date();
|
||||||
|
now.setMinutes(now.getMinutes() + (new Date().getTimezoneOffset() + props.offset));
|
||||||
|
s = now.getSeconds();
|
||||||
|
m = now.getMinutes();
|
||||||
|
h = now.getHours();
|
||||||
|
hAngle = Math.PI * (h % (props.twentyfour ? 24 : 12) + (m + s / 60) / 60) / (props.twentyfour ? 12 : 6);
|
||||||
|
mAngle = Math.PI * (m + s / 60) / 30;
|
||||||
|
sAngle = Math.PI * s / 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tick();
|
||||||
|
|
||||||
|
function calcColors() {
|
||||||
|
const computedStyle = getComputedStyle(document.documentElement);
|
||||||
|
const dark = tinycolor(computedStyle.getPropertyValue('--bg')).isDark();
|
||||||
|
const accent = tinycolor(computedStyle.getPropertyValue('--accent')).toHexString();
|
||||||
|
majorGraduationColor = dark ? 'rgba(255, 255, 255, 0.3)' : 'rgba(0, 0, 0, 0.3)';
|
||||||
|
//minorGraduationColor = dark ? 'rgba(255, 255, 255, 0.2)' : 'rgba(0, 0, 0, 0.2)';
|
||||||
|
sHandColor = dark ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.3)';
|
||||||
|
mHandColor = tinycolor(computedStyle.getPropertyValue('--fg')).toHexString();
|
||||||
|
hHandColor = accent;
|
||||||
|
nowColor = accent;
|
||||||
|
}
|
||||||
|
|
||||||
|
calcColors();
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const update = () => {
|
const update = () => {
|
||||||
if (enabled.value) {
|
if (enabled) {
|
||||||
tick();
|
tick();
|
||||||
window.setTimeout(update, 1000);
|
window.setTimeout(update, 1000);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
update();
|
update();
|
||||||
|
|
||||||
|
globalEvents.on('themeChanged', calcColors);
|
||||||
});
|
});
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
enabled.value = false;
|
enabled = false;
|
||||||
|
|
||||||
|
globalEvents.off('themeChanged', calcColors);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
@ok="ok()"
|
@ok="ok()"
|
||||||
@closed="$emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<template #header>{{ $ts.cropImage }}</template>
|
<template #header>{{ i18n.ts.cropImage }}</template>
|
||||||
<template #default="{ width, height }">
|
<template #default="{ width, height }">
|
||||||
<div class="mk-cropper-dialog" :style="`--vw: ${width}px; --vh: ${height}px;`">
|
<div class="mk-cropper-dialog" :style="`--vw: ${width}px; --vh: ${height}px;`">
|
||||||
<Transition name="fade">
|
<Transition name="fade">
|
||||||
|
@ -36,6 +36,7 @@ import { $i } from '@/account';
|
||||||
import { defaultStore } from '@/store';
|
import { defaultStore } from '@/store';
|
||||||
import { apiUrl, url } from '@/config';
|
import { apiUrl, url } from '@/config';
|
||||||
import { query } from '@/scripts/url';
|
import { query } from '@/scripts/url';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(ev: 'ok', cropped: misskey.entities.DriveFile): void;
|
(ev: 'ok', cropped: misskey.entities.DriveFile): void;
|
||||||
|
|
77
packages/client/src/components/digital-clock.vue
Normal file
77
packages/client/src/components/digital-clock.vue
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
<template>
|
||||||
|
<span class="zjobosdg">
|
||||||
|
<span v-text="hh"></span>
|
||||||
|
<span class="colon" :class="{ showColon }">:</span>
|
||||||
|
<span v-text="mm"></span>
|
||||||
|
<span v-if="showS" class="colon" :class="{ showColon }">:</span>
|
||||||
|
<span v-if="showS" v-text="ss"></span>
|
||||||
|
<span v-if="showMs" class="colon" :class="{ showColon }">:</span>
|
||||||
|
<span v-if="showMs" v-text="ms"></span>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { onUnmounted, ref, watch } from 'vue';
|
||||||
|
|
||||||
|
const props = withDefaults(defineProps<{
|
||||||
|
showS?: boolean;
|
||||||
|
showMs?: boolean;
|
||||||
|
offset?: number;
|
||||||
|
}>(), {
|
||||||
|
showS: true,
|
||||||
|
showMs: false,
|
||||||
|
offset: 0 - new Date().getTimezoneOffset(),
|
||||||
|
});
|
||||||
|
|
||||||
|
let intervalId;
|
||||||
|
const hh = ref('');
|
||||||
|
const mm = ref('');
|
||||||
|
const ss = ref('');
|
||||||
|
const ms = ref('');
|
||||||
|
const showColon = ref(false);
|
||||||
|
let prevSec: number | null = null;
|
||||||
|
|
||||||
|
watch(showColon, (v) => {
|
||||||
|
if (v) {
|
||||||
|
window.setTimeout(() => {
|
||||||
|
showColon.value = false;
|
||||||
|
}, 30);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const tick = () => {
|
||||||
|
const now = new Date();
|
||||||
|
now.setMinutes(now.getMinutes() + (new Date().getTimezoneOffset() + props.offset));
|
||||||
|
hh.value = now.getHours().toString().padStart(2, '0');
|
||||||
|
mm.value = now.getMinutes().toString().padStart(2, '0');
|
||||||
|
ss.value = now.getSeconds().toString().padStart(2, '0');
|
||||||
|
ms.value = Math.floor(now.getMilliseconds() / 10).toString().padStart(2, '0');
|
||||||
|
if (now.getSeconds() !== prevSec) showColon.value = true;
|
||||||
|
prevSec = now.getSeconds();
|
||||||
|
};
|
||||||
|
|
||||||
|
tick();
|
||||||
|
|
||||||
|
watch(() => props.showMs, () => {
|
||||||
|
if (intervalId) window.clearInterval(intervalId);
|
||||||
|
intervalId = window.setInterval(tick, props.showMs ? 10 : 1000);
|
||||||
|
}, { immediate: true });
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
window.clearInterval(intervalId);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.zjobosdg {
|
||||||
|
> .colon {
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 1s ease;
|
||||||
|
|
||||||
|
&.showColon {
|
||||||
|
opacity: 1;
|
||||||
|
transition: opacity 0s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -9,7 +9,7 @@
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@keydown.enter="toggle"
|
@keydown.enter="toggle"
|
||||||
>
|
>
|
||||||
<span ref="button" v-adaptive-border v-tooltip="checked ? $ts.itsOn : $ts.itsOff" class="button" @click.prevent="toggle">
|
<span ref="button" v-adaptive-border v-tooltip="checked ? i18n.ts.itsOn : i18n.ts.itsOff" class="button" @click.prevent="toggle">
|
||||||
<i class="check fas fa-check"></i>
|
<i class="check fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="label">
|
<span class="label">
|
||||||
|
@ -24,6 +24,7 @@
|
||||||
import { toRefs, Ref } from 'vue';
|
import { toRefs, Ref } from 'vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import Ripple from '@/components/ripple.vue';
|
import Ripple from '@/components/ripple.vue';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: boolean | Ref<boolean>;
|
modelValue: boolean | Ref<boolean>;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="caption"><slot name="caption"></slot></div>
|
<div class="caption"><slot name="caption"></slot></div>
|
||||||
|
|
||||||
<MkButton v-if="manualSave && changed" primary class="save" @click="updated"><i class="fas fa-check"></i> {{ $ts.save }}</MkButton>
|
<MkButton v-if="manualSave && changed" primary class="save" @click="updated"><i class="fas fa-check"></i> {{ i18n.ts.save }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ import { onMounted, onUnmounted, nextTick, ref, watch, computed, toRefs } from '
|
||||||
import { debounce } from 'throttle-debounce';
|
import { debounce } from 'throttle-debounce';
|
||||||
import MkButton from '@/components/ui/button.vue';
|
import MkButton from '@/components/ui/button.vue';
|
||||||
import { useInterval } from '@/scripts/use-interval';
|
import { useInterval } from '@/scripts/use-interval';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: string | number;
|
modelValue: string | number;
|
||||||
|
|
|
@ -19,33 +19,16 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import { defineComponent } from 'vue';
|
import { } from 'vue';
|
||||||
|
|
||||||
export default defineComponent({
|
const props = defineProps<{
|
||||||
props: {
|
to: string;
|
||||||
to: {
|
active?: boolean;
|
||||||
type: String,
|
external?: boolean;
|
||||||
required: true
|
behavior?: null | 'window' | 'browser' | 'modalWindow';
|
||||||
},
|
inline?: boolean;
|
||||||
active: {
|
}>();
|
||||||
type: Boolean,
|
|
||||||
required: false
|
|
||||||
},
|
|
||||||
external: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false
|
|
||||||
},
|
|
||||||
behavior: {
|
|
||||||
type: String,
|
|
||||||
required: false,
|
|
||||||
},
|
|
||||||
inline: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -61,7 +44,7 @@ export default defineComponent({
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 12px 14px 12px 14px;
|
padding: 10px 14px;
|
||||||
background: var(--buttonBg);
|
background: var(--buttonBg);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
|
|
@ -18,34 +18,25 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import { defineComponent } from 'vue';
|
import { } from 'vue';
|
||||||
|
|
||||||
export default defineComponent({
|
const props = defineProps<{
|
||||||
props: {
|
modelValue: any;
|
||||||
modelValue: {
|
value: any;
|
||||||
required: false,
|
disabled: boolean;
|
||||||
},
|
}>();
|
||||||
value: {
|
|
||||||
required: false,
|
const emit = defineEmits<{
|
||||||
},
|
(ev: 'update:modelValue', value: any): void;
|
||||||
disabled: {
|
}>();
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
let checked = $computed(() => props.modelValue === props.value);
|
||||||
},
|
|
||||||
},
|
function toggle(): void {
|
||||||
computed: {
|
if (props.disabled) return;
|
||||||
checked(): boolean {
|
emit('update:modelValue', props.value);
|
||||||
return this.modelValue === this.value;
|
}
|
||||||
},
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
toggle() {
|
|
||||||
if (this.disabled) return;
|
|
||||||
this.$emit('update:modelValue', this.value);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -54,13 +45,13 @@ export default defineComponent({
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 9px 12px;
|
padding: 8px 10px;
|
||||||
min-width: 60px;
|
min-width: 60px;
|
||||||
background-color: var(--panel);
|
background-color: var(--panel);
|
||||||
background-clip: padding-box !important;
|
background-clip: padding-box !important;
|
||||||
border: solid 1px var(--panel);
|
border: solid 1px var(--panel);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
transition: all 0.3s;
|
transition: all 0.2s;
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="caption"><slot name="caption"></slot></div>
|
<div class="caption"><slot name="caption"></slot></div>
|
||||||
|
|
||||||
<MkButton v-if="manualSave && changed" primary @click="updated"><i class="fas fa-save"></i> {{ $ts.save }}</MkButton>
|
<MkButton v-if="manualSave && changed" primary @click="updated"><i class="fas fa-save"></i> {{ i18n.ts.save }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ import { onMounted, onUnmounted, nextTick, ref, watch, computed, toRefs, VNode,
|
||||||
import MkButton from '@/components/ui/button.vue';
|
import MkButton from '@/components/ui/button.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { useInterval } from '@/scripts/use-interval';
|
import { useInterval } from '@/scripts/use-interval';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: string;
|
modelValue: string;
|
||||||
|
@ -144,6 +145,8 @@ const onClick = (ev: MouseEvent) => {
|
||||||
} else if (Array.isArray(vnode.children)) { // 何故かフラグメントになってくることがある
|
} else if (Array.isArray(vnode.children)) { // 何故かフラグメントになってくることがある
|
||||||
const fragment = vnode;
|
const fragment = vnode;
|
||||||
scanOptions(fragment.children);
|
scanOptions(fragment.children);
|
||||||
|
} else if (vnode.props == null) { // v-if で条件が false のときにこうなる
|
||||||
|
// nop?
|
||||||
} else {
|
} else {
|
||||||
const option = vnode;
|
const option = vnode;
|
||||||
pushOption(option);
|
pushOption(option);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@keydown.enter="toggle"
|
@keydown.enter="toggle"
|
||||||
>
|
>
|
||||||
<span ref="button" v-tooltip="checked ? $ts.itsOn : $ts.itsOff" class="button" @click.prevent="toggle">
|
<span ref="button" v-tooltip="checked ? i18n.ts.itsOn : i18n.ts.itsOff" class="button" @click.prevent="toggle">
|
||||||
<div class="knob"></div>
|
<div class="knob"></div>
|
||||||
</span>
|
</span>
|
||||||
<span class="label">
|
<span class="label">
|
||||||
|
@ -23,6 +23,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { toRefs, Ref } from 'vue';
|
import { toRefs, Ref } from 'vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: boolean | Ref<boolean>;
|
modelValue: boolean | Ref<boolean>;
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
<div class="adhpbeos">
|
<div class="adhpbeos">
|
||||||
<div class="label" @click="focus"><slot name="label"></slot></div>
|
<div class="label" @click="focus"><slot name="label"></slot></div>
|
||||||
<div class="input" :class="{ disabled, focused, tall, pre }">
|
<div class="input" :class="{ disabled, focused, tall, pre }">
|
||||||
<textarea ref="inputEl"
|
<textarea
|
||||||
|
ref="inputEl"
|
||||||
v-model="v"
|
v-model="v"
|
||||||
v-adaptive-border
|
v-adaptive-border
|
||||||
:class="{ code, _monospace: code }"
|
:class="{ code, _monospace: code }"
|
||||||
|
@ -21,14 +22,15 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="caption"><slot name="caption"></slot></div>
|
<div class="caption"><slot name="caption"></slot></div>
|
||||||
|
|
||||||
<MkButton v-if="manualSave && changed" primary class="save" @click="updated"><i class="fas fa-save"></i> {{ $ts.save }}</MkButton>
|
<MkButton v-if="manualSave && changed" primary class="save" @click="updated"><i class="fas fa-save"></i> {{ i18n.ts.save }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, onMounted, onUnmounted, nextTick, ref, watch, computed, toRefs } from 'vue';
|
import { defineComponent, onMounted, onUnmounted, nextTick, ref, watch, computed, toRefs } from 'vue';
|
||||||
import MkButton from '@/components/ui/button.vue';
|
|
||||||
import { debounce } from 'throttle-debounce';
|
import { debounce } from 'throttle-debounce';
|
||||||
|
import MkButton from '@/components/ui/button.vue';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
@ -37,66 +39,66 @@ export default defineComponent({
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
modelValue: {
|
modelValue: {
|
||||||
required: true
|
required: true,
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false
|
required: false,
|
||||||
},
|
},
|
||||||
required: {
|
required: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false
|
required: false,
|
||||||
},
|
},
|
||||||
readonly: {
|
readonly: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false
|
required: false,
|
||||||
},
|
},
|
||||||
disabled: {
|
disabled: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false
|
required: false,
|
||||||
},
|
},
|
||||||
pattern: {
|
pattern: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false
|
required: false,
|
||||||
},
|
},
|
||||||
placeholder: {
|
placeholder: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false
|
required: false,
|
||||||
},
|
},
|
||||||
autofocus: {
|
autofocus: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: false
|
default: false,
|
||||||
},
|
},
|
||||||
autocomplete: {
|
autocomplete: {
|
||||||
required: false
|
required: false,
|
||||||
},
|
},
|
||||||
spellcheck: {
|
spellcheck: {
|
||||||
required: false
|
required: false,
|
||||||
},
|
},
|
||||||
code: {
|
code: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false
|
required: false,
|
||||||
},
|
},
|
||||||
tall: {
|
tall: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: false
|
default: false,
|
||||||
},
|
},
|
||||||
pre: {
|
pre: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: false
|
default: false,
|
||||||
},
|
},
|
||||||
debounce: {
|
debounce: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: false
|
default: false,
|
||||||
},
|
},
|
||||||
manualSave: {
|
manualSave: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: false
|
default: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -166,6 +168,7 @@ export default defineComponent({
|
||||||
onInput,
|
onInput,
|
||||||
onKeydown,
|
onKeydown,
|
||||||
updated,
|
updated,
|
||||||
|
i18n,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,14 +2,15 @@
|
||||||
<transition :name="$store.state.animation ? 'zoom' : ''" appear>
|
<transition :name="$store.state.animation ? 'zoom' : ''" appear>
|
||||||
<div class="mjndxjcg">
|
<div class="mjndxjcg">
|
||||||
<img src="https://xn--931a.moe/assets/error.jpg" class="_ghost"/>
|
<img src="https://xn--931a.moe/assets/error.jpg" class="_ghost"/>
|
||||||
<p><i class="fas fa-exclamation-triangle"></i> {{ $ts.somethingHappened }}</p>
|
<p><i class="fas fa-exclamation-triangle"></i> {{ i18n.ts.somethingHappened }}</p>
|
||||||
<MkButton class="button" @click="() => $emit('retry')">{{ $ts.retry }}</MkButton>
|
<MkButton class="button" @click="() => $emit('retry')">{{ i18n.ts.retry }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import MkButton from '@/components/ui/button.vue';
|
import MkButton from '@/components/ui/button.vue';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
@ -1,12 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<KeepAlive :max="defaultStore.state.numberOfPageCache">
|
<KeepAlive :max="defaultStore.state.numberOfPageCache">
|
||||||
|
<Suspense>
|
||||||
<component :is="currentPageComponent" :key="key" v-bind="Object.fromEntries(currentPageProps)"/>
|
<component :is="currentPageComponent" :key="key" v-bind="Object.fromEntries(currentPageProps)"/>
|
||||||
|
|
||||||
|
<template #fallback>
|
||||||
|
Loading...
|
||||||
|
</template>
|
||||||
|
</Suspense>
|
||||||
</KeepAlive>
|
</KeepAlive>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { inject, nextTick, onMounted, onUnmounted, watch } from 'vue';
|
import { inject, nextTick, onBeforeUnmount, onMounted, onUnmounted, provide, watch } from 'vue';
|
||||||
import { Router } from '@/nirax';
|
import { Resolved, Router } from '@/nirax';
|
||||||
import { defaultStore } from '@/store';
|
import { defaultStore } from '@/store';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
@ -19,19 +25,37 @@ if (router == null) {
|
||||||
throw new Error('no router provided');
|
throw new Error('no router provided');
|
||||||
}
|
}
|
||||||
|
|
||||||
let currentPageComponent = $shallowRef(router.getCurrentComponent());
|
const currentDepth = inject('routerCurrentDepth', 0);
|
||||||
let currentPageProps = $ref(router.getCurrentProps());
|
provide('routerCurrentDepth', currentDepth + 1);
|
||||||
let key = $ref(router.getCurrentKey());
|
|
||||||
|
|
||||||
function onChange({ route, props: newProps, key: newKey }) {
|
function resolveNested(current: Resolved, d = 0): Resolved | null {
|
||||||
currentPageComponent = route.component;
|
if (d === currentDepth) {
|
||||||
currentPageProps = newProps;
|
return current;
|
||||||
key = newKey;
|
} else {
|
||||||
|
if (current.child) {
|
||||||
|
return resolveNested(current.child, d + 1);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const current = resolveNested(router.current)!;
|
||||||
|
let currentPageComponent = $shallowRef(current.route.component);
|
||||||
|
let currentPageProps = $ref(current.props);
|
||||||
|
let key = $ref(current.route.path + JSON.stringify(Object.fromEntries(current.props)));
|
||||||
|
|
||||||
|
function onChange({ resolved, key: newKey }) {
|
||||||
|
const current = resolveNested(resolved);
|
||||||
|
if (current == null) return;
|
||||||
|
currentPageComponent = current.route.component;
|
||||||
|
currentPageProps = current.props;
|
||||||
|
key = current.route.path + JSON.stringify(Object.fromEntries(current.props));
|
||||||
}
|
}
|
||||||
|
|
||||||
router.addListener('change', onChange);
|
router.addListener('change', onChange);
|
||||||
|
|
||||||
onUnmounted(() => {
|
onBeforeUnmount(() => {
|
||||||
router.removeListener('change', onChange);
|
router.removeListener('change', onChange);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -20,7 +20,7 @@ const props = withDefaults(defineProps<{
|
||||||
const _time = typeof props.time === 'string' ? new Date(props.time) : props.time;
|
const _time = typeof props.time === 'string' ? new Date(props.time) : props.time;
|
||||||
const absolute = _time.toLocaleString();
|
const absolute = _time.toLocaleString();
|
||||||
|
|
||||||
let now = $ref(new Date());
|
let now = $shallowRef(new Date());
|
||||||
const relative = $computed(() => {
|
const relative = $computed(() => {
|
||||||
const ago = (now.getTime() - _time.getTime()) / 1000/*ms*/;
|
const ago = (now.getTime() - _time.getTime()) / 1000/*ms*/;
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -4,29 +4,29 @@
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<div class="selects" style="display: flex;">
|
<div class="selects" style="display: flex;">
|
||||||
<MkSelect v-model="chartSrc" style="margin: 0; flex: 1;">
|
<MkSelect v-model="chartSrc" style="margin: 0; flex: 1;">
|
||||||
<optgroup :label="$ts.federation">
|
<optgroup :label="i18n.ts.federation">
|
||||||
<option value="federation">{{ $ts._charts.federation }}</option>
|
<option value="federation">{{ i18n.ts._charts.federation }}</option>
|
||||||
<option value="ap-request">{{ $ts._charts.apRequest }}</option>
|
<option value="ap-request">{{ i18n.ts._charts.apRequest }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$ts.users">
|
<optgroup :label="i18n.ts.users">
|
||||||
<option value="users">{{ $ts._charts.usersIncDec }}</option>
|
<option value="users">{{ i18n.ts._charts.usersIncDec }}</option>
|
||||||
<option value="users-total">{{ $ts._charts.usersTotal }}</option>
|
<option value="users-total">{{ i18n.ts._charts.usersTotal }}</option>
|
||||||
<option value="active-users">{{ $ts._charts.activeUsers }}</option>
|
<option value="active-users">{{ i18n.ts._charts.activeUsers }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$ts.notes">
|
<optgroup :label="i18n.ts.notes">
|
||||||
<option value="notes">{{ $ts._charts.notesIncDec }}</option>
|
<option value="notes">{{ i18n.ts._charts.notesIncDec }}</option>
|
||||||
<option value="local-notes">{{ $ts._charts.localNotesIncDec }}</option>
|
<option value="local-notes">{{ i18n.ts._charts.localNotesIncDec }}</option>
|
||||||
<option value="remote-notes">{{ $ts._charts.remoteNotesIncDec }}</option>
|
<option value="remote-notes">{{ i18n.ts._charts.remoteNotesIncDec }}</option>
|
||||||
<option value="notes-total">{{ $ts._charts.notesTotal }}</option>
|
<option value="notes-total">{{ i18n.ts._charts.notesTotal }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$ts.drive">
|
<optgroup :label="i18n.ts.drive">
|
||||||
<option value="drive-files">{{ $ts._charts.filesIncDec }}</option>
|
<option value="drive-files">{{ i18n.ts._charts.filesIncDec }}</option>
|
||||||
<option value="drive">{{ $ts._charts.storageUsageIncDec }}</option>
|
<option value="drive">{{ i18n.ts._charts.storageUsageIncDec }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkSelect v-model="chartSpan" style="margin: 0 0 0 10px;">
|
<MkSelect v-model="chartSpan" style="margin: 0 0 0 10px;">
|
||||||
<option value="hour">{{ $ts.perHour }}</option>
|
<option value="hour">{{ i18n.ts.perHour }}</option>
|
||||||
<option value="day">{{ $ts.perDay }}</option>
|
<option value="day">{{ i18n.ts.perDay }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
</div>
|
</div>
|
||||||
<div class="chart">
|
<div class="chart">
|
||||||
|
@ -71,6 +71,7 @@ import MkSelect from '@/components/form/select.vue';
|
||||||
import MkChart from '@/components/chart.vue';
|
import MkChart from '@/components/chart.vue';
|
||||||
import { useChartTooltip } from '@/scripts/use-chart-tooltip';
|
import { useChartTooltip } from '@/scripts/use-chart-tooltip';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
Chart.register(
|
Chart.register(
|
||||||
ArcElement,
|
ArcElement,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<slot name="value"></slot>
|
<slot name="value"></slot>
|
||||||
<button v-if="copy" v-tooltip="$ts.copy" class="_textButton" style="margin-left: 0.5em;" @click="copy_"><i class="far fa-copy"></i></button>
|
<button v-if="copy" v-tooltip="i18n.ts.copy" class="_textButton" style="margin-left: 0.5em;" @click="copy_"><i class="far fa-copy"></i></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -14,6 +14,7 @@
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import copyToClipboard from '@/scripts/copy-to-clipboard';
|
import copyToClipboard from '@/scripts/copy-to-clipboard';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
copy?: string | null;
|
copy?: string | null;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<div v-if="isRenote" class="renote">
|
<div v-if="isRenote" class="renote">
|
||||||
<MkAvatar class="avatar" :user="note.user"/>
|
<MkAvatar class="avatar" :user="note.user"/>
|
||||||
<i class="fas fa-retweet"></i>
|
<i class="fas fa-retweet"></i>
|
||||||
<I18n :src="$ts.renotedBy" tag="span">
|
<I18n :src="i18n.ts.renotedBy" tag="span">
|
||||||
<template #user>
|
<template #user>
|
||||||
<MkA v-user-preview="note.userId" class="name" :to="userPage(note.user)">
|
<MkA v-user-preview="note.userId" class="name" :to="userPage(note.user)">
|
||||||
<MkUserName :user="note.user"/>
|
<MkUserName :user="note.user"/>
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
</p>
|
</p>
|
||||||
<div v-show="appearNote.cw == null || showContent" class="content">
|
<div v-show="appearNote.cw == null || showContent" class="content">
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<span v-if="appearNote.isHidden" style="opacity: 0.5">({{ $ts.private }})</span>
|
<span v-if="appearNote.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
|
||||||
<MkA v-if="appearNote.replyId" class="reply" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA>
|
<MkA v-if="appearNote.replyId" class="reply" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA>
|
||||||
<Mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/>
|
<Mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/>
|
||||||
<a v-if="appearNote.renote != null" class="rp">RN:</a>
|
<a v-if="appearNote.renote != null" class="rp">RN:</a>
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
<MkNoteSub v-for="note in replies" :key="note.id" :note="note" class="reply" :detail="true"/>
|
<MkNoteSub v-for="note in replies" :key="note.id" :note="note" class="reply" :detail="true"/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="_panel muted" @click="muted = false">
|
<div v-else class="_panel muted" @click="muted = false">
|
||||||
<I18n :src="$ts.userSaysSomething" tag="small">
|
<I18n :src="i18n.ts.userSaysSomething" tag="small">
|
||||||
<template #name>
|
<template #name>
|
||||||
<MkA v-user-preview="appearNote.userId" class="name" :to="userPage(appearNote.user)">
|
<MkA v-user-preview="appearNote.userId" class="name" :to="userPage(appearNote.user)">
|
||||||
<MkUserName :user="appearNote.user"/>
|
<MkUserName :user="appearNote.user"/>
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<Mfm v-if="appearNote.cw != ''" class="text" :text="appearNote.cw" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/>
|
<Mfm v-if="appearNote.cw != ''" class="text" :text="appearNote.cw" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/>
|
||||||
<XCwButton v-model="showContent" :note="appearNote"/>
|
<XCwButton v-model="showContent" :note="appearNote"/>
|
||||||
</p>
|
</p>
|
||||||
<div v-show="appearNote.cw == null || showContent" class="content" :class="{ collapsed }">
|
<div v-show="appearNote.cw == null || showContent" class="content" :class="{ collapsed, isLong }">
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<span v-if="appearNote.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
|
<span v-if="appearNote.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
|
||||||
<MkA v-if="appearNote.replyId" class="reply" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA>
|
<MkA v-if="appearNote.replyId" class="reply" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA>
|
||||||
|
@ -61,9 +61,12 @@
|
||||||
<XPoll v-if="appearNote.poll" ref="pollViewer" :note="appearNote" class="poll"/>
|
<XPoll v-if="appearNote.poll" ref="pollViewer" :note="appearNote" class="poll"/>
|
||||||
<MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="false" class="url-preview"/>
|
<MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="false" class="url-preview"/>
|
||||||
<div v-if="appearNote.renote" class="renote"><XNoteSimple :note="appearNote.renote"/></div>
|
<div v-if="appearNote.renote" class="renote"><XNoteSimple :note="appearNote.renote"/></div>
|
||||||
<button v-if="collapsed" class="fade _button" @click="collapsed = false">
|
<button v-if="isLong && collapsed" class="fade _button" @click="collapsed = false">
|
||||||
<span>{{ i18n.ts.showMore }}</span>
|
<span>{{ i18n.ts.showMore }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
<button v-else-if="isLong && !collapsed" class="showLess _button" @click="collapsed = true">
|
||||||
|
<span>{{ i18n.ts.showLess }}</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<MkA v-if="appearNote.channel && !inChannel" class="channel" :to="`/channels/${appearNote.channel.id}`"><i class="fas fa-satellite-dish"></i> {{ appearNote.channel.name }}</MkA>
|
<MkA v-if="appearNote.channel && !inChannel" class="channel" :to="`/channels/${appearNote.channel.id}`"><i class="fas fa-satellite-dish"></i> {{ appearNote.channel.name }}</MkA>
|
||||||
</div>
|
</div>
|
||||||
|
@ -162,10 +165,11 @@ const reactButton = ref<HTMLElement>();
|
||||||
let appearNote = $computed(() => isRenote ? note.renote as misskey.entities.Note : note);
|
let appearNote = $computed(() => isRenote ? note.renote as misskey.entities.Note : note);
|
||||||
const isMyRenote = $i && ($i.id === note.userId);
|
const isMyRenote = $i && ($i.id === note.userId);
|
||||||
const showContent = ref(false);
|
const showContent = ref(false);
|
||||||
const collapsed = ref(appearNote.cw == null && appearNote.text != null && (
|
const isLong = (appearNote.cw == null && appearNote.text != null && (
|
||||||
(appearNote.text.split('\n').length > 9) ||
|
(appearNote.text.split('\n').length > 9) ||
|
||||||
(appearNote.text.length > 500)
|
(appearNote.text.length > 500)
|
||||||
));
|
));
|
||||||
|
const collapsed = ref(appearNote.cw == null && isLong);
|
||||||
const isDeleted = ref(false);
|
const isDeleted = ref(false);
|
||||||
const muted = ref(checkWordMute(appearNote, $i, defaultStore.state.mutedWords));
|
const muted = ref(checkWordMute(appearNote, $i, defaultStore.state.mutedWords));
|
||||||
const translation = ref(null);
|
const translation = ref(null);
|
||||||
|
@ -442,6 +446,24 @@ function readPromo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
> .content {
|
> .content {
|
||||||
|
&.isLong {
|
||||||
|
> .showLess {
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 1em;
|
||||||
|
position: sticky;
|
||||||
|
bottom: 1em;
|
||||||
|
|
||||||
|
> span {
|
||||||
|
display: inline-block;
|
||||||
|
background: var(--popup);
|
||||||
|
padding: 6px 10px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
border-radius: 999px;
|
||||||
|
box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.collapsed {
|
&.collapsed {
|
||||||
position: relative;
|
position: relative;
|
||||||
max-height: 9em;
|
max-height: 9em;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<div class="_fullinfo">
|
<div class="_fullinfo">
|
||||||
<img src="https://xn--931a.moe/assets/info.jpg" class="_ghost"/>
|
<img src="https://xn--931a.moe/assets/info.jpg" class="_ghost"/>
|
||||||
<div>{{ $ts.noNotes }}</div>
|
<div>{{ i18n.ts.noNotes }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import XNote from '@/components/note.vue';
|
import XNote from '@/components/note.vue';
|
||||||
import XList from '@/components/date-separated-list.vue';
|
import XList from '@/components/date-separated-list.vue';
|
||||||
import MkPagination from '@/components/ui/pagination.vue';
|
import MkPagination, { Paging } from '@/components/ui/pagination.vue';
|
||||||
import { Paging } from '@/components/ui/pagination.vue';
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
pagination: Paging;
|
pagination: Paging;
|
||||||
|
|
|
@ -61,10 +61,10 @@
|
||||||
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="!full" :custom-emojis="notification.note.emojis"/>
|
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="!full" :custom-emojis="notification.note.emojis"/>
|
||||||
<i class="fas fa-quote-right"></i>
|
<i class="fas fa-quote-right"></i>
|
||||||
</MkA>
|
</MkA>
|
||||||
<span v-if="notification.type === 'follow'" class="text" style="opacity: 0.6;">{{ $ts.youGotNewFollower }}<div v-if="full"><MkFollowButton :user="notification.user" :full="true"/></div></span>
|
<span v-if="notification.type === 'follow'" class="text" style="opacity: 0.6;">{{ i18n.ts.youGotNewFollower }}<div v-if="full"><MkFollowButton :user="notification.user" :full="true"/></div></span>
|
||||||
<span v-if="notification.type === 'followRequestAccepted'" class="text" style="opacity: 0.6;">{{ $ts.followRequestAccepted }}</span>
|
<span v-if="notification.type === 'followRequestAccepted'" class="text" style="opacity: 0.6;">{{ i18n.ts.followRequestAccepted }}</span>
|
||||||
<span v-if="notification.type === 'receiveFollowRequest'" class="text" style="opacity: 0.6;">{{ $ts.receiveFollowRequest }}<div v-if="full && !followRequestDone"><button class="_textButton" @click="acceptFollowRequest()">{{ $ts.accept }}</button> | <button class="_textButton" @click="rejectFollowRequest()">{{ $ts.reject }}</button></div></span>
|
<span v-if="notification.type === 'receiveFollowRequest'" class="text" style="opacity: 0.6;">{{ i18n.ts.receiveFollowRequest }}<div v-if="full && !followRequestDone"><button class="_textButton" @click="acceptFollowRequest()">{{ i18n.ts.accept }}</button> | <button class="_textButton" @click="rejectFollowRequest()">{{ i18n.ts.reject }}</button></div></span>
|
||||||
<span v-if="notification.type === 'groupInvited'" class="text" style="opacity: 0.6;">{{ $ts.groupInvited }}: <b>{{ notification.invitation.group.name }}</b><div v-if="full && !groupInviteDone"><button class="_textButton" @click="acceptGroupInvitation()">{{ $ts.accept }}</button> | <button class="_textButton" @click="rejectGroupInvitation()">{{ $ts.reject }}</button></div></span>
|
<span v-if="notification.type === 'groupInvited'" class="text" style="opacity: 0.6;">{{ i18n.ts.groupInvited }}: <b>{{ notification.invitation.group.name }}</b><div v-if="full && !groupInviteDone"><button class="_textButton" @click="acceptGroupInvitation()">{{ i18n.ts.accept }}</button> | <button class="_textButton" @click="rejectGroupInvitation()">{{ i18n.ts.reject }}</button></div></span>
|
||||||
<span v-if="notification.type === 'app'" class="text">
|
<span v-if="notification.type === 'app'" class="text">
|
||||||
<Mfm :text="notification.body" :nowrap="!full"/>
|
<Mfm :text="notification.body" :nowrap="!full"/>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<div class="_fullinfo">
|
<div class="_fullinfo">
|
||||||
<img src="https://xn--931a.moe/assets/info.jpg" class="_ghost"/>
|
<img src="https://xn--931a.moe/assets/info.jpg" class="_ghost"/>
|
||||||
<div>{{ $ts.noNotifications }}</div>
|
<div>{{ i18n.ts.noNotifications }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ import XNote from '@/components/note.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { stream } from '@/stream';
|
import { stream } from '@/stream';
|
||||||
import { $i } from '@/account';
|
import { $i } from '@/account';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
includeTypes?: typeof notificationTypes[number][];
|
includeTypes?: typeof notificationTypes[number][];
|
||||||
|
|
|
@ -114,7 +114,7 @@ function menu(ev) {
|
||||||
|
|
||||||
function back() {
|
function back() {
|
||||||
history.pop();
|
history.pop();
|
||||||
router.change(history[history.length - 1].path, history[history.length - 1].key);
|
router.replace(history[history.length - 1].path, history[history.length - 1].key);
|
||||||
}
|
}
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="zmdxowus">
|
<div class="zmdxowus">
|
||||||
<p v-if="choices.length < 2" class="caution">
|
<p v-if="choices.length < 2" class="caution">
|
||||||
<i class="fas fa-exclamation-triangle"></i>{{ $ts._poll.noOnlyOneChoice }}
|
<i class="fas fa-exclamation-triangle"></i>{{ i18n.ts._poll.noOnlyOneChoice }}
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="(choice, i) in choices" :key="i">
|
<li v-for="(choice, i) in choices" :key="i">
|
||||||
|
@ -12,34 +12,34 @@
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<MkButton v-if="choices.length < 10" class="add" @click="add">{{ $ts.add }}</MkButton>
|
<MkButton v-if="choices.length < 10" class="add" @click="add">{{ i18n.ts.add }}</MkButton>
|
||||||
<MkButton v-else class="add" disabled>{{ $ts._poll.noMore }}</MkButton>
|
<MkButton v-else class="add" disabled>{{ i18n.ts._poll.noMore }}</MkButton>
|
||||||
<MkSwitch v-model="multiple">{{ $ts._poll.canMultipleVote }}</MkSwitch>
|
<MkSwitch v-model="multiple">{{ i18n.ts._poll.canMultipleVote }}</MkSwitch>
|
||||||
<section>
|
<section>
|
||||||
<div>
|
<div>
|
||||||
<MkSelect v-model="expiration" small>
|
<MkSelect v-model="expiration" small>
|
||||||
<template #label>{{ $ts._poll.expiration }}</template>
|
<template #label>{{ i18n.ts._poll.expiration }}</template>
|
||||||
<option value="infinite">{{ $ts._poll.infinite }}</option>
|
<option value="infinite">{{ i18n.ts._poll.infinite }}</option>
|
||||||
<option value="at">{{ $ts._poll.at }}</option>
|
<option value="at">{{ i18n.ts._poll.at }}</option>
|
||||||
<option value="after">{{ $ts._poll.after }}</option>
|
<option value="after">{{ i18n.ts._poll.after }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<section v-if="expiration === 'at'">
|
<section v-if="expiration === 'at'">
|
||||||
<MkInput v-model="atDate" small type="date" class="input">
|
<MkInput v-model="atDate" small type="date" class="input">
|
||||||
<template #label>{{ $ts._poll.deadlineDate }}</template>
|
<template #label>{{ i18n.ts._poll.deadlineDate }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="atTime" small type="time" class="input">
|
<MkInput v-model="atTime" small type="time" class="input">
|
||||||
<template #label>{{ $ts._poll.deadlineTime }}</template>
|
<template #label>{{ i18n.ts._poll.deadlineTime }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
</section>
|
</section>
|
||||||
<section v-else-if="expiration === 'after'">
|
<section v-else-if="expiration === 'after'">
|
||||||
<MkInput v-model="after" small type="number" class="input">
|
<MkInput v-model="after" small type="number" class="input">
|
||||||
<template #label>{{ $ts._poll.duration }}</template>
|
<template #label>{{ i18n.ts._poll.duration }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkSelect v-model="unit" small>
|
<MkSelect v-model="unit" small>
|
||||||
<option value="second">{{ $ts._time.second }}</option>
|
<option value="second">{{ i18n.ts._time.second }}</option>
|
||||||
<option value="minute">{{ $ts._time.minute }}</option>
|
<option value="minute">{{ i18n.ts._time.minute }}</option>
|
||||||
<option value="hour">{{ $ts._time.hour }}</option>
|
<option value="hour">{{ i18n.ts._time.hour }}</option>
|
||||||
<option value="day">{{ $ts._time.day }}</option>
|
<option value="day">{{ i18n.ts._time.day }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,6 +55,7 @@ import MkSwitch from './form/switch.vue';
|
||||||
import MkButton from './ui/button.vue';
|
import MkButton from './ui/button.vue';
|
||||||
import { formatDateTimeString } from '@/scripts/format-time-string';
|
import { formatDateTimeString } from '@/scripts/format-time-string';
|
||||||
import { addTime } from '@/scripts/time';
|
import { addTime } from '@/scripts/time';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: {
|
modelValue: {
|
||||||
|
|
|
@ -13,42 +13,34 @@
|
||||||
<p v-if="!readOnly">
|
<p v-if="!readOnly">
|
||||||
<span>{{ $t('_poll.totalVotes', { n: total }) }}</span>
|
<span>{{ $t('_poll.totalVotes', { n: total }) }}</span>
|
||||||
<span> · </span>
|
<span> · </span>
|
||||||
<a v-if="!closed && !isVoted" @click="showResult = !showResult">{{ showResult ? $ts._poll.vote : $ts._poll.showResult }}</a>
|
<a v-if="!closed && !isVoted" @click="showResult = !showResult">{{ showResult ? i18n.ts._poll.vote : i18n.ts._poll.showResult }}</a>
|
||||||
<span v-if="isVoted">{{ $ts._poll.voted }}</span>
|
<span v-if="isVoted">{{ i18n.ts._poll.voted }}</span>
|
||||||
<span v-else-if="closed">{{ $ts._poll.closed }}</span>
|
<span v-else-if="closed">{{ i18n.ts._poll.closed }}</span>
|
||||||
<span v-if="remaining > 0"> · {{ timer }}</span>
|
<span v-if="remaining > 0"> · {{ timer }}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import { computed, defineComponent, onUnmounted, ref, toRef } from 'vue';
|
import { computed, onUnmounted, ref, toRef } from 'vue';
|
||||||
|
import * as misskey from 'misskey-js';
|
||||||
import { sum } from '@/scripts/array';
|
import { sum } from '@/scripts/array';
|
||||||
import { pleaseLogin } from '@/scripts/please-login';
|
import { pleaseLogin } from '@/scripts/please-login';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
import { useInterval } from '@/scripts/use-interval';
|
import { useInterval } from '@/scripts/use-interval';
|
||||||
|
|
||||||
export default defineComponent({
|
const props = defineProps<{
|
||||||
props: {
|
note: misskey.entities.Note;
|
||||||
note: {
|
readOnly?: boolean;
|
||||||
type: Object,
|
}>();
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
readOnly: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
setup(props) {
|
const remaining = ref(-1);
|
||||||
const remaining = ref(-1);
|
|
||||||
|
|
||||||
const total = computed(() => sum(props.note.poll.choices.map(x => x.votes)));
|
const total = computed(() => sum(props.note.poll.choices.map(x => x.votes)));
|
||||||
const closed = computed(() => remaining.value === 0);
|
const closed = computed(() => remaining.value === 0);
|
||||||
const isVoted = computed(() => !props.note.poll.multiple && props.note.poll.choices.some(c => c.isVoted));
|
const isVoted = computed(() => !props.note.poll.multiple && props.note.poll.choices.some(c => c.isVoted));
|
||||||
const timer = computed(() => i18n.t(
|
const timer = computed(() => i18n.t(
|
||||||
remaining.value >= 86400 ? '_poll.remainingDays' :
|
remaining.value >= 86400 ? '_poll.remainingDays' :
|
||||||
remaining.value >= 3600 ? '_poll.remainingHours' :
|
remaining.value >= 3600 ? '_poll.remainingHours' :
|
||||||
remaining.value >= 60 ? '_poll.remainingMinutes' : '_poll.remainingSeconds', {
|
remaining.value >= 60 ? '_poll.remainingMinutes' : '_poll.remainingSeconds', {
|
||||||
|
@ -58,10 +50,10 @@ export default defineComponent({
|
||||||
d: Math.floor(remaining.value / 86400),
|
d: Math.floor(remaining.value / 86400),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const showResult = ref(props.readOnly || isVoted.value);
|
const showResult = ref(props.readOnly || isVoted.value);
|
||||||
|
|
||||||
// 期限付きアンケート
|
// 期限付きアンケート
|
||||||
if (props.note.poll.expiresAt) {
|
if (props.note.poll.expiresAt) {
|
||||||
const tick = () => {
|
const tick = () => {
|
||||||
remaining.value = Math.floor(Math.max(new Date(props.note.poll.expiresAt).getTime() - Date.now(), 0) / 1000);
|
remaining.value = Math.floor(Math.max(new Date(props.note.poll.expiresAt).getTime() - Date.now(), 0) / 1000);
|
||||||
if (remaining.value === 0) {
|
if (remaining.value === 0) {
|
||||||
|
@ -73,9 +65,9 @@ export default defineComponent({
|
||||||
immediate: true,
|
immediate: true,
|
||||||
afterMounted: false,
|
afterMounted: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const vote = async (id) => {
|
const vote = async (id) => {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
|
|
||||||
if (props.readOnly || closed.value || isVoted.value) return;
|
if (props.readOnly || closed.value || isVoted.value) return;
|
||||||
|
@ -91,19 +83,7 @@ export default defineComponent({
|
||||||
choice: id,
|
choice: id,
|
||||||
});
|
});
|
||||||
if (!showResult.value) showResult.value = !props.note.poll.multiple;
|
if (!showResult.value) showResult.value = !props.note.poll.multiple;
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
|
||||||
remaining,
|
|
||||||
showResult,
|
|
||||||
total,
|
|
||||||
isVoted,
|
|
||||||
closed,
|
|
||||||
timer,
|
|
||||||
vote,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
@ -479,7 +479,22 @@ function onDragover(ev) {
|
||||||
if (isFile || isDriveFile) {
|
if (isFile || isDriveFile) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
draghover = true;
|
draghover = true;
|
||||||
ev.dataTransfer.dropEffect = ev.dataTransfer.effectAllowed === 'all' ? 'copy' : 'move';
|
switch (ev.dataTransfer.effectAllowed) {
|
||||||
|
case 'all':
|
||||||
|
case 'uninitialized':
|
||||||
|
case 'copy':
|
||||||
|
case 'copyLink':
|
||||||
|
case 'copyMove':
|
||||||
|
ev.dataTransfer.dropEffect = 'copy';
|
||||||
|
break;
|
||||||
|
case 'linkMove':
|
||||||
|
case 'move':
|
||||||
|
ev.dataTransfer.dropEffect = 'move';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ev.dataTransfer.dropEffect = 'none';
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="jmgmzlwq _block"><i class="fas fa-exclamation-triangle" style="margin-right: 8px;"></i>{{ $ts.remoteUserCaution }}<a class="link" :href="href" rel="nofollow noopener" target="_blank">{{ $ts.showOnRemote }}</a></div>
|
<div class="jmgmzlwq _block"><i class="fas fa-exclamation-triangle" style="margin-right: 8px;"></i>{{ i18n.ts.remoteUserCaution }}<a class="link" :href="href" rel="nofollow noopener" target="_blank">{{ i18n.ts.showOnRemote }}</a></div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
href: string;
|
href: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<button v-if="canRenote"
|
<button
|
||||||
|
v-if="canRenote"
|
||||||
ref="buttonRef"
|
ref="buttonRef"
|
||||||
class="eddddedb _button canRenote"
|
class="eddddedb _button canRenote"
|
||||||
@click="renote()"
|
@click="renote()"
|
||||||
|
@ -12,8 +13,9 @@
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import { computed, defineComponent, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
|
import * as misskey from 'misskey-js';
|
||||||
import XDetails from '@/components/users-tooltip.vue';
|
import XDetails from '@/components/users-tooltip.vue';
|
||||||
import { pleaseLogin } from '@/scripts/please-login';
|
import { pleaseLogin } from '@/scripts/please-login';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
@ -21,27 +23,19 @@ import { $i } from '@/account';
|
||||||
import { useTooltip } from '@/scripts/use-tooltip';
|
import { useTooltip } from '@/scripts/use-tooltip';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
export default defineComponent({
|
const props = defineProps<{
|
||||||
props: {
|
note: misskey.entities.Note;
|
||||||
count: {
|
count: number;
|
||||||
type: Number,
|
}>();
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
note: {
|
|
||||||
type: Object,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
setup(props) {
|
const buttonRef = ref<HTMLElement>();
|
||||||
const buttonRef = ref<HTMLElement>();
|
|
||||||
|
|
||||||
const canRenote = computed(() => ['public', 'home'].includes(props.note.visibility) || props.note.userId === $i.id);
|
const canRenote = computed(() => ['public', 'home'].includes(props.note.visibility) || props.note.userId === $i.id);
|
||||||
|
|
||||||
useTooltip(buttonRef, async (showing) => {
|
useTooltip(buttonRef, async (showing) => {
|
||||||
const renotes = await os.api('notes/renotes', {
|
const renotes = await os.api('notes/renotes', {
|
||||||
noteId: props.note.id,
|
noteId: props.note.id,
|
||||||
limit: 11
|
limit: 11,
|
||||||
});
|
});
|
||||||
|
|
||||||
const users = renotes.map(x => x.user);
|
const users = renotes.map(x => x.user);
|
||||||
|
@ -52,20 +46,20 @@ export default defineComponent({
|
||||||
showing,
|
showing,
|
||||||
users,
|
users,
|
||||||
count: props.count,
|
count: props.count,
|
||||||
targetElement: buttonRef.value
|
targetElement: buttonRef.value,
|
||||||
}, {}, 'closed');
|
}, {}, 'closed');
|
||||||
});
|
});
|
||||||
|
|
||||||
const renote = (viaKeyboard = false) => {
|
const renote = (viaKeyboard = false) => {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
os.popupMenu([{
|
os.popupMenu([{
|
||||||
text: i18n.ts.renote,
|
text: i18n.ts.renote,
|
||||||
icon: 'fas fa-retweet',
|
icon: 'fas fa-retweet',
|
||||||
action: () => {
|
action: () => {
|
||||||
os.api('notes/create', {
|
os.api('notes/create', {
|
||||||
renoteId: props.note.id
|
renoteId: props.note.id,
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
}, {
|
}, {
|
||||||
text: i18n.ts.quote,
|
text: i18n.ts.quote,
|
||||||
icon: 'fas fa-quote-right',
|
icon: 'fas fa-quote-right',
|
||||||
|
@ -73,19 +67,11 @@ export default defineComponent({
|
||||||
os.post({
|
os.post({
|
||||||
renote: props.note,
|
renote: props.note,
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}], buttonRef.value, {
|
|
||||||
viaKeyboard
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
|
||||||
buttonRef,
|
|
||||||
canRenote,
|
|
||||||
renote,
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
});
|
}], buttonRef.value, {
|
||||||
|
viaKeyboard,
|
||||||
|
});
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<XModalWindow ref="dialog"
|
<XModalWindow
|
||||||
|
ref="dialog"
|
||||||
:width="370"
|
:width="370"
|
||||||
:height="400"
|
:height="400"
|
||||||
@close="onClose"
|
@close="onClose"
|
||||||
@closed="emit('closed')"
|
@closed="emit('closed')"
|
||||||
>
|
>
|
||||||
<template #header>{{ $ts.login }}</template>
|
<template #header>{{ i18n.ts.login }}</template>
|
||||||
|
|
||||||
<MkSignin :auto-set="autoSet" :message="message" @login="onLogin"/>
|
<MkSignin :auto-set="autoSet" :message="message" @login="onLogin"/>
|
||||||
</XModalWindow>
|
</XModalWindow>
|
||||||
|
@ -13,15 +14,16 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import XModalWindow from '@/components/ui/modal-window.vue';
|
|
||||||
import MkSignin from './signin.vue';
|
import MkSignin from './signin.vue';
|
||||||
|
import XModalWindow from '@/components/ui/modal-window.vue';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
autoSet?: boolean;
|
autoSet?: boolean;
|
||||||
message?: string,
|
message?: string,
|
||||||
}>(), {
|
}>(), {
|
||||||
autoSet: false,
|
autoSet: false,
|
||||||
message: ''
|
message: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<XModalWindow ref="dialog"
|
<XModalWindow
|
||||||
|
ref="dialog"
|
||||||
:width="366"
|
:width="366"
|
||||||
:height="500"
|
:height="500"
|
||||||
@close="dialog.close()"
|
@close="dialog.close()"
|
||||||
@closed="$emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<template #header>{{ $ts.signup }}</template>
|
<template #header>{{ i18n.ts.signup }}</template>
|
||||||
|
|
||||||
<div class="_monolithic_">
|
<div class="_monolithic_">
|
||||||
<div class="_section">
|
<div class="_section">
|
||||||
|
@ -17,8 +18,9 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import XModalWindow from '@/components/ui/modal-window.vue';
|
|
||||||
import XSignup from './signup.vue';
|
import XSignup from './signup.vue';
|
||||||
|
import XModalWindow from '@/components/ui/modal-window.vue';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
autoSet?: boolean;
|
autoSet?: boolean;
|
||||||
|
|
|
@ -1,65 +1,65 @@
|
||||||
<template>
|
<template>
|
||||||
<form class="qlvuhzng _formRoot" autocomplete="new-password" @submit.prevent="onSubmit">
|
<form class="qlvuhzng _formRoot" autocomplete="new-password" @submit.prevent="onSubmit">
|
||||||
<MkInput v-if="instance.disableRegistration" v-model="invitationCode" class="_formBlock" type="text" :spellcheck="false" required>
|
<MkInput v-if="instance.disableRegistration" v-model="invitationCode" class="_formBlock" type="text" :spellcheck="false" required>
|
||||||
<template #label>{{ $ts.invitationCode }}</template>
|
<template #label>{{ i18n.ts.invitationCode }}</template>
|
||||||
<template #prefix><i class="fas fa-key"></i></template>
|
<template #prefix><i class="fas fa-key"></i></template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="username" class="_formBlock" type="text" pattern="^[a-zA-Z0-9_]{1,20}$" :spellcheck="false" required data-cy-signup-username @update:modelValue="onChangeUsername">
|
<MkInput v-model="username" class="_formBlock" type="text" pattern="^[a-zA-Z0-9_]{1,20}$" :spellcheck="false" required data-cy-signup-username @update:modelValue="onChangeUsername">
|
||||||
<template #label>{{ $ts.username }} <div v-tooltip:dialog="$ts.usernameInfo" class="_button _help"><i class="far fa-question-circle"></i></div></template>
|
<template #label>{{ i18n.ts.username }} <div v-tooltip:dialog="i18n.ts.usernameInfo" class="_button _help"><i class="far fa-question-circle"></i></div></template>
|
||||||
<template #prefix>@</template>
|
<template #prefix>@</template>
|
||||||
<template #suffix>@{{ host }}</template>
|
<template #suffix>@{{ host }}</template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="usernameState === 'wait'" style="color:#999"><i class="fas fa-spinner fa-pulse fa-fw"></i> {{ $ts.checking }}</span>
|
<span v-if="usernameState === 'wait'" style="color:#999"><i class="fas fa-spinner fa-pulse fa-fw"></i> {{ i18n.ts.checking }}</span>
|
||||||
<span v-else-if="usernameState === 'ok'" style="color: var(--success)"><i class="fas fa-check fa-fw"></i> {{ $ts.available }}</span>
|
<span v-else-if="usernameState === 'ok'" style="color: var(--success)"><i class="fas fa-check fa-fw"></i> {{ i18n.ts.available }}</span>
|
||||||
<span v-else-if="usernameState === 'unavailable'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts.unavailable }}</span>
|
<span v-else-if="usernameState === 'unavailable'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts.unavailable }}</span>
|
||||||
<span v-else-if="usernameState === 'error'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts.error }}</span>
|
<span v-else-if="usernameState === 'error'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts.error }}</span>
|
||||||
<span v-else-if="usernameState === 'invalid-format'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts.usernameInvalidFormat }}</span>
|
<span v-else-if="usernameState === 'invalid-format'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts.usernameInvalidFormat }}</span>
|
||||||
<span v-else-if="usernameState === 'min-range'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts.tooShort }}</span>
|
<span v-else-if="usernameState === 'min-range'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts.tooShort }}</span>
|
||||||
<span v-else-if="usernameState === 'max-range'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts.tooLong }}</span>
|
<span v-else-if="usernameState === 'max-range'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts.tooLong }}</span>
|
||||||
</template>
|
</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-if="instance.emailRequiredForSignup" v-model="email" class="_formBlock" :debounce="true" type="email" :spellcheck="false" required data-cy-signup-email @update:modelValue="onChangeEmail">
|
<MkInput v-if="instance.emailRequiredForSignup" v-model="email" class="_formBlock" :debounce="true" type="email" :spellcheck="false" required data-cy-signup-email @update:modelValue="onChangeEmail">
|
||||||
<template #label>{{ $ts.emailAddress }} <div v-tooltip:dialog="$ts._signup.emailAddressInfo" class="_button _help"><i class="far fa-question-circle"></i></div></template>
|
<template #label>{{ i18n.ts.emailAddress }} <div v-tooltip:dialog="i18n.ts._signup.emailAddressInfo" class="_button _help"><i class="far fa-question-circle"></i></div></template>
|
||||||
<template #prefix><i class="fas fa-envelope"></i></template>
|
<template #prefix><i class="fas fa-envelope"></i></template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="emailState === 'wait'" style="color:#999"><i class="fas fa-spinner fa-pulse fa-fw"></i> {{ $ts.checking }}</span>
|
<span v-if="emailState === 'wait'" style="color:#999"><i class="fas fa-spinner fa-pulse fa-fw"></i> {{ i18n.ts.checking }}</span>
|
||||||
<span v-else-if="emailState === 'ok'" style="color: var(--success)"><i class="fas fa-check fa-fw"></i> {{ $ts.available }}</span>
|
<span v-else-if="emailState === 'ok'" style="color: var(--success)"><i class="fas fa-check fa-fw"></i> {{ i18n.ts.available }}</span>
|
||||||
<span v-else-if="emailState === 'unavailable:used'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts._emailUnavailable.used }}</span>
|
<span v-else-if="emailState === 'unavailable:used'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts._emailUnavailable.used }}</span>
|
||||||
<span v-else-if="emailState === 'unavailable:format'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts._emailUnavailable.format }}</span>
|
<span v-else-if="emailState === 'unavailable:format'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts._emailUnavailable.format }}</span>
|
||||||
<span v-else-if="emailState === 'unavailable:disposable'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts._emailUnavailable.disposable }}</span>
|
<span v-else-if="emailState === 'unavailable:disposable'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts._emailUnavailable.disposable }}</span>
|
||||||
<span v-else-if="emailState === 'unavailable:mx'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts._emailUnavailable.mx }}</span>
|
<span v-else-if="emailState === 'unavailable:mx'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts._emailUnavailable.mx }}</span>
|
||||||
<span v-else-if="emailState === 'unavailable:smtp'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts._emailUnavailable.smtp }}</span>
|
<span v-else-if="emailState === 'unavailable:smtp'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts._emailUnavailable.smtp }}</span>
|
||||||
<span v-else-if="emailState === 'unavailable'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts.unavailable }}</span>
|
<span v-else-if="emailState === 'unavailable'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts.unavailable }}</span>
|
||||||
<span v-else-if="emailState === 'error'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts.error }}</span>
|
<span v-else-if="emailState === 'error'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts.error }}</span>
|
||||||
</template>
|
</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="password" class="_formBlock" type="password" autocomplete="new-password" required data-cy-signup-password @update:modelValue="onChangePassword">
|
<MkInput v-model="password" class="_formBlock" type="password" autocomplete="new-password" required data-cy-signup-password @update:modelValue="onChangePassword">
|
||||||
<template #label>{{ $ts.password }}</template>
|
<template #label>{{ i18n.ts.password }}</template>
|
||||||
<template #prefix><i class="fas fa-lock"></i></template>
|
<template #prefix><i class="fas fa-lock"></i></template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="passwordStrength == 'low'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts.weakPassword }}</span>
|
<span v-if="passwordStrength == 'low'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts.weakPassword }}</span>
|
||||||
<span v-if="passwordStrength == 'medium'" style="color: var(--warn)"><i class="fas fa-check fa-fw"></i> {{ $ts.normalPassword }}</span>
|
<span v-if="passwordStrength == 'medium'" style="color: var(--warn)"><i class="fas fa-check fa-fw"></i> {{ i18n.ts.normalPassword }}</span>
|
||||||
<span v-if="passwordStrength == 'high'" style="color: var(--success)"><i class="fas fa-check fa-fw"></i> {{ $ts.strongPassword }}</span>
|
<span v-if="passwordStrength == 'high'" style="color: var(--success)"><i class="fas fa-check fa-fw"></i> {{ i18n.ts.strongPassword }}</span>
|
||||||
</template>
|
</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="retypedPassword" class="_formBlock" type="password" autocomplete="new-password" required data-cy-signup-password-retype @update:modelValue="onChangePasswordRetype">
|
<MkInput v-model="retypedPassword" class="_formBlock" type="password" autocomplete="new-password" required data-cy-signup-password-retype @update:modelValue="onChangePasswordRetype">
|
||||||
<template #label>{{ $ts.password }} ({{ $ts.retype }})</template>
|
<template #label>{{ i18n.ts.password }} ({{ i18n.ts.retype }})</template>
|
||||||
<template #prefix><i class="fas fa-lock"></i></template>
|
<template #prefix><i class="fas fa-lock"></i></template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<span v-if="passwordRetypeState == 'match'" style="color: var(--success)"><i class="fas fa-check fa-fw"></i> {{ $ts.passwordMatched }}</span>
|
<span v-if="passwordRetypeState == 'match'" style="color: var(--success)"><i class="fas fa-check fa-fw"></i> {{ i18n.ts.passwordMatched }}</span>
|
||||||
<span v-if="passwordRetypeState == 'not-match'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $ts.passwordNotMatched }}</span>
|
<span v-if="passwordRetypeState == 'not-match'" style="color: var(--error)"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ i18n.ts.passwordNotMatched }}</span>
|
||||||
</template>
|
</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkSwitch v-if="instance.tosUrl" v-model="ToSAgreement" class="_formBlock tou">
|
<MkSwitch v-if="instance.tosUrl" v-model="ToSAgreement" class="_formBlock tou">
|
||||||
<I18n :src="$ts.agreeTo">
|
<I18n :src="i18n.ts.agreeTo">
|
||||||
<template #0>
|
<template #0>
|
||||||
<a :href="instance.tosUrl" class="_link" target="_blank">{{ $ts.tos }}</a>
|
<a :href="instance.tosUrl" class="_link" target="_blank">{{ i18n.ts.tos }}</a>
|
||||||
</template>
|
</template>
|
||||||
</I18n>
|
</I18n>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
<MkCaptcha v-if="instance.enableHcaptcha" ref="hcaptcha" v-model="hCaptchaResponse" class="_formBlock captcha" provider="hcaptcha" :sitekey="instance.hcaptchaSiteKey"/>
|
<MkCaptcha v-if="instance.enableHcaptcha" ref="hcaptcha" v-model="hCaptchaResponse" class="_formBlock captcha" provider="hcaptcha" :sitekey="instance.hcaptchaSiteKey"/>
|
||||||
<MkCaptcha v-if="instance.enableRecaptcha" ref="recaptcha" v-model="reCaptchaResponse" class="_formBlock captcha" provider="recaptcha" :sitekey="instance.recaptchaSiteKey"/>
|
<MkCaptcha v-if="instance.enableRecaptcha" ref="recaptcha" v-model="reCaptchaResponse" class="_formBlock captcha" provider="recaptcha" :sitekey="instance.recaptchaSiteKey"/>
|
||||||
<MkButton class="_formBlock" type="submit" :disabled="shouldDisableSubmitting" gradate data-cy-signup-submit>{{ $ts.start }}</MkButton>
|
<MkButton class="_formBlock" type="submit" :disabled="shouldDisableSubmitting" gradate data-cy-signup-submit>{{ i18n.ts.start }}</MkButton>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -63,21 +63,18 @@
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import { defineComponent, onMounted, onUnmounted, ref } from 'vue';
|
import { onMounted, onUnmounted, ref } from 'vue';
|
||||||
import * as os from '@/os';
|
|
||||||
|
|
||||||
export default defineComponent({
|
const particles = ref([]);
|
||||||
setup() {
|
const el = ref<HTMLElement>();
|
||||||
const particles = ref([]);
|
const width = ref(0);
|
||||||
const el = ref<HTMLElement>();
|
const height = ref(0);
|
||||||
const width = ref(0);
|
const colors = ['#FF1493', '#00FFFF', '#FFE202', '#FFE202', '#FFE202'];
|
||||||
const height = ref(0);
|
let stop = false;
|
||||||
const colors = ['#FF1493', '#00FFFF', '#FFE202', '#FFE202', '#FFE202'];
|
let ro: ResizeObserver | undefined;
|
||||||
let stop = false;
|
|
||||||
let ro: ResizeObserver | undefined;
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
ro = new ResizeObserver((entries, observer) => {
|
ro = new ResizeObserver((entries, observer) => {
|
||||||
width.value = el.value?.offsetWidth + 64;
|
width.value = el.value?.offsetWidth + 64;
|
||||||
height.value = el.value?.offsetHeight + 64;
|
height.value = el.value?.offsetHeight + 64;
|
||||||
|
@ -106,20 +103,11 @@ export default defineComponent({
|
||||||
}, 500 + (Math.random() * 500));
|
}, 500 + (Math.random() * 500));
|
||||||
};
|
};
|
||||||
add();
|
add();
|
||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
if (ro) ro.disconnect();
|
if (ro) ro.disconnect();
|
||||||
stop = true;
|
stop = true;
|
||||||
});
|
|
||||||
|
|
||||||
return {
|
|
||||||
el,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
particles,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="wrmlmaau" :class="{ collapsed }">
|
<div class="wrmlmaau" :class="{ collapsed }">
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<span v-if="note.isHidden" style="opacity: 0.5">({{ $ts.private }})</span>
|
<span v-if="note.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
|
||||||
<span v-if="note.deletedAt" style="opacity: 0.5">({{ $ts.deleted }})</span>
|
<span v-if="note.deletedAt" style="opacity: 0.5">({{ i18n.ts.deleted }})</span>
|
||||||
<MkA v-if="note.replyId" class="reply" :to="`/notes/${note.replyId}`"><i class="fas fa-reply"></i></MkA>
|
<MkA v-if="note.replyId" class="reply" :to="`/notes/${note.replyId}`"><i class="fas fa-reply"></i></MkA>
|
||||||
<Mfm v-if="note.text" :text="note.text" :author="note.user" :i="$i" :custom-emojis="note.emojis"/>
|
<Mfm v-if="note.text" :text="note.text" :author="note.user" :i="$i" :custom-emojis="note.emojis"/>
|
||||||
<MkA v-if="note.renoteId" class="rp" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
|
<MkA v-if="note.renoteId" class="rp" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
|
||||||
|
@ -12,20 +12,21 @@
|
||||||
<XMediaList :media-list="note.files"/>
|
<XMediaList :media-list="note.files"/>
|
||||||
</details>
|
</details>
|
||||||
<details v-if="note.poll">
|
<details v-if="note.poll">
|
||||||
<summary>{{ $ts.poll }}</summary>
|
<summary>{{ i18n.ts.poll }}</summary>
|
||||||
<XPoll :note="note"/>
|
<XPoll :note="note"/>
|
||||||
</details>
|
</details>
|
||||||
<button v-if="collapsed" class="fade _button" @click="collapsed = false">
|
<button v-if="collapsed" class="fade _button" @click="collapsed = false">
|
||||||
<span>{{ $ts.showMore }}</span>
|
<span>{{ i18n.ts.showMore }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
|
import * as misskey from 'misskey-js';
|
||||||
import XPoll from './poll.vue';
|
import XPoll from './poll.vue';
|
||||||
import XMediaList from './media-list.vue';
|
import XMediaList from './media-list.vue';
|
||||||
import * as misskey from 'misskey-js';
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
note: misskey.entities.Note;
|
note: misskey.entities.Note;
|
||||||
|
|
|
@ -18,13 +18,13 @@ export default defineComponent({
|
||||||
disabled: this.modelValue === option.props.value,
|
disabled: this.modelValue === option.props.value,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
this.$emit('update:modelValue', option.props.value);
|
this.$emit('update:modelValue', option.props.value);
|
||||||
}
|
},
|
||||||
}, option.children), [
|
}, option.children), [
|
||||||
[resolveDirective('click-anime')]
|
[resolveDirective('click-anime')],
|
||||||
]))), [
|
]))), [
|
||||||
[resolveDirective('size'), { max: [500] }]
|
[resolveDirective('size'), { max: [500] }],
|
||||||
]);
|
]);
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ let tagsEl = $ref<HTMLElement | null>(null);
|
||||||
let width = $ref(300);
|
let width = $ref(300);
|
||||||
|
|
||||||
watch($$(available), () => {
|
watch($$(available), () => {
|
||||||
|
try {
|
||||||
window.TagCanvas.Start(idForCanvas, idForTags, {
|
window.TagCanvas.Start(idForCanvas, idForTags, {
|
||||||
textColour: '#ffffff',
|
textColour: '#ffffff',
|
||||||
outlineColour: tinycolor(computedStyle.getPropertyValue('--accent')).toHexString(),
|
outlineColour: tinycolor(computedStyle.getPropertyValue('--accent')).toHexString(),
|
||||||
|
@ -42,6 +43,7 @@ watch($$(available), () => {
|
||||||
stretchX: 0.8,
|
stretchX: 0.8,
|
||||||
stretchY: 0.8,
|
stretchY: 0.8,
|
||||||
});
|
});
|
||||||
|
} catch (err) {}
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -58,7 +60,7 @@ onMounted(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
window.TagCanvas.Delete(idForCanvas);
|
if (window.TagCanvas) window.TagCanvas.Delete(idForCanvas);
|
||||||
});
|
});
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
|
|
@ -141,7 +141,7 @@ export default defineComponent({
|
||||||
display: block;
|
display: block;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
padding: 8px 14px;
|
padding: 8px 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
<span v-if="items2.length === 0" class="none item">
|
<span v-if="items2.length === 0" class="none item">
|
||||||
<span>{{ $ts.none }}</span>
|
<span>{{ i18n.ts.none }}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="childMenu" class="child">
|
<div v-if="childMenu" class="child">
|
||||||
|
@ -61,6 +61,8 @@ import { focusPrev, focusNext } from '@/scripts/focus';
|
||||||
import FormSwitch from '@/components/form/switch.vue';
|
import FormSwitch from '@/components/form/switch.vue';
|
||||||
import { MenuItem, InnerMenuItem, MenuPending, MenuAction } from '@/types/menu';
|
import { MenuItem, InnerMenuItem, MenuPending, MenuAction } from '@/types/menu';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const XChild = defineAsyncComponent(() => import('./menu.child.vue'));
|
const XChild = defineAsyncComponent(() => import('./menu.child.vue'));
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
@ -335,6 +337,9 @@ onBeforeUnmount(() => {
|
||||||
&.asDrawer {
|
&.asDrawer {
|
||||||
padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 12px) 0;
|
padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 12px) 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
border-radius: 24px;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
|
||||||
> .item {
|
> .item {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<slot name="empty">
|
<slot name="empty">
|
||||||
<div class="_fullinfo">
|
<div class="_fullinfo">
|
||||||
<img src="https://xn--931a.moe/assets/info.jpg" class="_ghost"/>
|
<img src="https://xn--931a.moe/assets/info.jpg" class="_ghost"/>
|
||||||
<div>{{ $ts.nothing }}</div>
|
<div>{{ i18n.ts.nothing }}</div>
|
||||||
</div>
|
</div>
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,14 +16,14 @@
|
||||||
<div v-else ref="rootEl">
|
<div v-else ref="rootEl">
|
||||||
<div v-show="pagination.reversed && more" key="_more_" class="cxiknjgy _gap">
|
<div v-show="pagination.reversed && more" key="_more_" class="cxiknjgy _gap">
|
||||||
<MkButton v-if="!moreFetching" class="button" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" primary @click="fetchMoreAhead">
|
<MkButton v-if="!moreFetching" class="button" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" primary @click="fetchMoreAhead">
|
||||||
{{ $ts.loadMore }}
|
{{ i18n.ts.loadMore }}
|
||||||
</MkButton>
|
</MkButton>
|
||||||
<MkLoading v-else class="loading"/>
|
<MkLoading v-else class="loading"/>
|
||||||
</div>
|
</div>
|
||||||
<slot :items="items"></slot>
|
<slot :items="items"></slot>
|
||||||
<div v-show="!pagination.reversed && more" key="_more_" class="cxiknjgy _gap">
|
<div v-show="!pagination.reversed && more" key="_more_" class="cxiknjgy _gap">
|
||||||
<MkButton v-if="!moreFetching" v-appear="($store.state.enableInfiniteScroll && !disableAutoLoad) ? fetchMore : null" class="button" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" primary @click="fetchMore">
|
<MkButton v-if="!moreFetching" v-appear="($store.state.enableInfiniteScroll && !disableAutoLoad) ? fetchMore : null" class="button" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" primary @click="fetchMore">
|
||||||
{{ $ts.loadMore }}
|
{{ i18n.ts.loadMore }}
|
||||||
</MkButton>
|
</MkButton>
|
||||||
<MkLoading v-else class="loading"/>
|
<MkLoading v-else class="loading"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -37,6 +37,7 @@ import * as misskey from 'misskey-js';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { onScrollTop, isTopVisible, getScrollPosition, getScrollContainer } from '@/scripts/scroll';
|
import { onScrollTop, isTopVisible, getScrollPosition, getScrollContainer } from '@/scripts/scroll';
|
||||||
import MkButton from '@/components/ui/button.vue';
|
import MkButton from '@/components/ui/button.vue';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const SECOND_FETCH_LIMIT = 30;
|
const SECOND_FETCH_LIMIT = 30;
|
||||||
|
|
||||||
|
@ -196,8 +197,9 @@ const prepend = (item: Item): void => {
|
||||||
if (props.pagination.reversed) {
|
if (props.pagination.reversed) {
|
||||||
if (rootEl.value) {
|
if (rootEl.value) {
|
||||||
const container = getScrollContainer(rootEl.value);
|
const container = getScrollContainer(rootEl.value);
|
||||||
if (container == null) return; // TODO?
|
if (container == null) {
|
||||||
|
// TODO?
|
||||||
|
} else {
|
||||||
const pos = getScrollPosition(rootEl.value);
|
const pos = getScrollPosition(rootEl.value);
|
||||||
const viewHeight = container.clientHeight;
|
const viewHeight = container.clientHeight;
|
||||||
const height = container.scrollHeight;
|
const height = container.scrollHeight;
|
||||||
|
@ -214,6 +216,7 @@ const prepend = (item: Item): void => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
items.value.push(item);
|
items.value.push(item);
|
||||||
// TODO
|
// TODO
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -170,6 +170,7 @@ function onHeaderMousedown(evt: MouseEvent) {
|
||||||
beforeClickedAt = Date.now();
|
beforeClickedAt = Date.now();
|
||||||
|
|
||||||
const main = rootEl;
|
const main = rootEl;
|
||||||
|
if (main == null) return;
|
||||||
|
|
||||||
if (!contains(main, document.activeElement)) main.focus();
|
if (!contains(main, document.activeElement)) main.focus();
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<MkModal ref="modal" :z-priority="'middle'" @click="$refs.modal.close()" @closed="$emit('closed')">
|
<MkModal ref="modal" :z-priority="'middle'" @click="$refs.modal.close()" @closed="$emit('closed')">
|
||||||
<div class="ewlycnyt">
|
<div class="ewlycnyt">
|
||||||
<div class="title"><MkSparkle>{{ $ts.misskeyUpdated }}</MkSparkle></div>
|
<div class="title"><MkSparkle>{{ i18n.ts.misskeyUpdated }}</MkSparkle></div>
|
||||||
<div class="version">✨{{ version }}🚀</div>
|
<div class="version">✨{{ version }}🚀</div>
|
||||||
<MkButton full @click="whatIsNew">{{ $ts.whatIsNew }}</MkButton>
|
<MkButton full @click="whatIsNew">{{ i18n.ts.whatIsNew }}</MkButton>
|
||||||
<MkButton class="gotIt" primary full @click="$refs.modal.close()">{{ $ts.gotIt }}</MkButton>
|
<MkButton class="gotIt" primary full @click="$refs.modal.close()">{{ i18n.ts.gotIt }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</MkModal>
|
</MkModal>
|
||||||
</template>
|
</template>
|
||||||
|
@ -15,8 +15,9 @@ import MkModal from '@/components/ui/modal.vue';
|
||||||
import MkButton from '@/components/ui/button.vue';
|
import MkButton from '@/components/ui/button.vue';
|
||||||
import MkSparkle from '@/components/sparkle.vue';
|
import MkSparkle from '@/components/sparkle.vue';
|
||||||
import { version } from '@/config';
|
import { version } from '@/config';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const modal = ref();
|
const modal = ref<InstanceType<typeof MkModal>>();
|
||||||
|
|
||||||
const whatIsNew = () => {
|
const whatIsNew = () => {
|
||||||
modal.value.close();
|
modal.value.close();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-if="playerEnabled" class="player" :style="`padding: ${(player.height || 0) / (player.width || 1) * 100}% 0 0`">
|
<div v-if="playerEnabled" class="player" :style="`padding: ${(player.height || 0) / (player.width || 1) * 100}% 0 0`">
|
||||||
<button class="disablePlayer" :title="$ts.disablePlayer" @click="playerEnabled = false"><i class="fas fa-times"></i></button>
|
<button class="disablePlayer" :title="i18n.ts.disablePlayer" @click="playerEnabled = false"><i class="fas fa-times"></i></button>
|
||||||
<iframe :src="player.url + (player.url.match(/\?/) ? '&autoplay=1&auto_play=1' : '?autoplay=1&auto_play=1')" :width="player.width || '100%'" :heigth="player.height || 250" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen/>
|
<iframe :src="player.url + (player.url.match(/\?/) ? '&autoplay=1&auto_play=1' : '?autoplay=1&auto_play=1')" :width="player.width || '100%'" :heigth="player.height || 250" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="tweetId && tweetExpanded" ref="twitter" class="twitter">
|
<div v-else-if="tweetId && tweetExpanded" ref="twitter" class="twitter">
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
|
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
|
||||||
<component :is="self ? 'MkA' : 'a'" v-if="!fetching" class="link" :class="{ compact }" :[attr]="self ? url.substr(local.length) : url" rel="nofollow noopener" :target="target" :title="url">
|
<component :is="self ? 'MkA' : 'a'" v-if="!fetching" class="link" :class="{ compact }" :[attr]="self ? url.substr(local.length) : url" rel="nofollow noopener" :target="target" :title="url">
|
||||||
<div v-if="thumbnail" class="thumbnail" :style="`background-image: url('${thumbnail}')`">
|
<div v-if="thumbnail" class="thumbnail" :style="`background-image: url('${thumbnail}')`">
|
||||||
<button v-if="!playerEnabled && player.url" class="_button" :title="$ts.enablePlayer" @click.prevent="playerEnabled = true"><i class="fas fa-play-circle"></i></button>
|
<button v-if="!playerEnabled && player.url" class="_button" :title="i18n.ts.enablePlayer" @click.prevent="playerEnabled = true"><i class="fas fa-play-circle"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
</transition>
|
</transition>
|
||||||
<div v-if="tweetId" class="expandTweet">
|
<div v-if="tweetId" class="expandTweet">
|
||||||
<a @click="tweetExpanded = true">
|
<a @click="tweetExpanded = true">
|
||||||
<i class="fab fa-twitter"></i> {{ $ts.expandTweet }}
|
<i class="fab fa-twitter"></i> {{ i18n.ts.expandTweet }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -35,6 +35,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, onUnmounted } from 'vue';
|
import { onMounted, onUnmounted } from 'vue';
|
||||||
import { url as local, lang } from '@/config';
|
import { url as local, lang } from '@/config';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
url: string;
|
url: string;
|
||||||
|
|
|
@ -10,17 +10,17 @@
|
||||||
<div v-if="user.description" class="mfm">
|
<div v-if="user.description" class="mfm">
|
||||||
<Mfm :text="user.description" :author="user" :i="$i" :custom-emojis="user.emojis"/>
|
<Mfm :text="user.description" :author="user" :i="$i" :custom-emojis="user.emojis"/>
|
||||||
</div>
|
</div>
|
||||||
<span v-else style="opacity: 0.7;">{{ $ts.noAccountDescription }}</span>
|
<span v-else style="opacity: 0.7;">{{ i18n.ts.noAccountDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="status">
|
<div class="status">
|
||||||
<div>
|
<div>
|
||||||
<p>{{ $ts.notes }}</p><span>{{ user.notesCount }}</span>
|
<p>{{ i18n.ts.notes }}</p><span>{{ user.notesCount }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p>{{ $ts.following }}</p><span>{{ user.followingCount }}</span>
|
<p>{{ i18n.ts.following }}</p><span>{{ user.followingCount }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p>{{ $ts.followers }}</p><span>{{ user.followersCount }}</span>
|
<p>{{ i18n.ts.followers }}</p><span>{{ user.followersCount }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<MkFollowButton v-if="$i && user.id != $i.id" class="koudoku-button" :user="user" mini/>
|
<MkFollowButton v-if="$i && user.id != $i.id" class="koudoku-button" :user="user" mini/>
|
||||||
|
@ -31,6 +31,7 @@
|
||||||
import * as misskey from 'misskey-js';
|
import * as misskey from 'misskey-js';
|
||||||
import MkFollowButton from './follow-button.vue';
|
import MkFollowButton from './follow-button.vue';
|
||||||
import { userPage } from '@/filters/user';
|
import { userPage } from '@/filters/user';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
user: misskey.entities.UserDetailed;
|
user: misskey.entities.UserDetailed;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<div class="_fullinfo">
|
<div class="_fullinfo">
|
||||||
<img src="https://xn--931a.moe/assets/info.jpg" class="_ghost"/>
|
<img src="https://xn--931a.moe/assets/info.jpg" class="_ghost"/>
|
||||||
<div>{{ $ts.noUsers }}</div>
|
<div>{{ i18n.ts.noUsers }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import MkUserInfo from '@/components/user-info.vue';
|
import MkUserInfo from '@/components/user-info.vue';
|
||||||
import MkPagination from '@/components/ui/pagination.vue';
|
import MkPagination, { Paging } from '@/components/ui/pagination.vue';
|
||||||
import { Paging } from '@/components/ui/pagination.vue';
|
|
||||||
import { userPage } from '@/filters/user';
|
import { userPage } from '@/filters/user';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
pagination: Paging;
|
pagination: Paging;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<XModalWindow ref="dialogEl"
|
<XModalWindow
|
||||||
|
ref="dialogEl"
|
||||||
:with-ok-button="true"
|
:with-ok-button="true"
|
||||||
:ok-button-disabled="selected == null"
|
:ok-button-disabled="selected == null"
|
||||||
@click="cancel()"
|
@click="cancel()"
|
||||||
|
@ -7,16 +8,16 @@
|
||||||
@ok="ok()"
|
@ok="ok()"
|
||||||
@closed="$emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<template #header>{{ $ts.selectUser }}</template>
|
<template #header>{{ i18n.ts.selectUser }}</template>
|
||||||
<div class="tbhwbxda">
|
<div class="tbhwbxda">
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<FormSplit :min-width="170">
|
<FormSplit :min-width="170">
|
||||||
<MkInput v-model="username" :autofocus="true" @update:modelValue="search">
|
<MkInput v-model="username" :autofocus="true" @update:modelValue="search">
|
||||||
<template #label>{{ $ts.username }}</template>
|
<template #label>{{ i18n.ts.username }}</template>
|
||||||
<template #prefix>@</template>
|
<template #prefix>@</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="host" @update:modelValue="search">
|
<MkInput v-model="host" @update:modelValue="search">
|
||||||
<template #label>{{ $ts.host }}</template>
|
<template #label>{{ i18n.ts.host }}</template>
|
||||||
<template #prefix>@</template>
|
<template #prefix>@</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
</FormSplit>
|
</FormSplit>
|
||||||
|
@ -32,7 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="empty">
|
<div v-else class="empty">
|
||||||
<span>{{ $ts.noUsers }}</span>
|
<span>{{ i18n.ts.noUsers }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="username == '' && host == ''" class="recent">
|
<div v-if="username == '' && host == ''" class="recent">
|
||||||
|
@ -58,6 +59,7 @@ import FormSplit from '@/components/form/split.vue';
|
||||||
import XModalWindow from '@/components/ui/modal-window.vue';
|
import XModalWindow from '@/components/ui/modal-window.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { defaultStore } from '@/store';
|
import { defaultStore } from '@/store';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(ev: 'ok', selected: misskey.entities.UserDetailed): void;
|
(ev: 'ok', selected: misskey.entities.UserDetailed): void;
|
||||||
|
@ -81,7 +83,7 @@ const search = () => {
|
||||||
username: username,
|
username: username,
|
||||||
host: host,
|
host: host,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
detail: false
|
detail: false,
|
||||||
}).then(_users => {
|
}).then(_users => {
|
||||||
users = _users;
|
users = _users;
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,37 +4,37 @@
|
||||||
<button key="public" class="_button" :class="{ active: v === 'public' }" data-index="1" @click="choose('public')">
|
<button key="public" class="_button" :class="{ active: v === 'public' }" data-index="1" @click="choose('public')">
|
||||||
<div><i class="fas fa-globe"></i></div>
|
<div><i class="fas fa-globe"></i></div>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ $ts._visibility.public }}</span>
|
<span>{{ i18n.ts._visibility.public }}</span>
|
||||||
<span>{{ $ts._visibility.publicDescription }}</span>
|
<span>{{ i18n.ts._visibility.publicDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button key="home" class="_button" :class="{ active: v === 'home' }" data-index="2" @click="choose('home')">
|
<button key="home" class="_button" :class="{ active: v === 'home' }" data-index="2" @click="choose('home')">
|
||||||
<div><i class="fas fa-home"></i></div>
|
<div><i class="fas fa-home"></i></div>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ $ts._visibility.home }}</span>
|
<span>{{ i18n.ts._visibility.home }}</span>
|
||||||
<span>{{ $ts._visibility.homeDescription }}</span>
|
<span>{{ i18n.ts._visibility.homeDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button key="followers" class="_button" :class="{ active: v === 'followers' }" data-index="3" @click="choose('followers')">
|
<button key="followers" class="_button" :class="{ active: v === 'followers' }" data-index="3" @click="choose('followers')">
|
||||||
<div><i class="fas fa-unlock"></i></div>
|
<div><i class="fas fa-unlock"></i></div>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ $ts._visibility.followers }}</span>
|
<span>{{ i18n.ts._visibility.followers }}</span>
|
||||||
<span>{{ $ts._visibility.followersDescription }}</span>
|
<span>{{ i18n.ts._visibility.followersDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button key="specified" :disabled="localOnly" class="_button" :class="{ active: v === 'specified' }" data-index="4" @click="choose('specified')">
|
<button key="specified" :disabled="localOnly" class="_button" :class="{ active: v === 'specified' }" data-index="4" @click="choose('specified')">
|
||||||
<div><i class="fas fa-envelope"></i></div>
|
<div><i class="fas fa-envelope"></i></div>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ $ts._visibility.specified }}</span>
|
<span>{{ i18n.ts._visibility.specified }}</span>
|
||||||
<span>{{ $ts._visibility.specifiedDescription }}</span>
|
<span>{{ i18n.ts._visibility.specifiedDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<button key="localOnly" class="_button localOnly" :class="{ active: localOnly }" data-index="5" @click="localOnly = !localOnly">
|
<button key="localOnly" class="_button localOnly" :class="{ active: localOnly }" data-index="5" @click="localOnly = !localOnly">
|
||||||
<div><i class="fas fa-biohazard"></i></div>
|
<div><i class="fas fa-biohazard"></i></div>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ $ts._visibility.localOnly }}</span>
|
<span>{{ i18n.ts._visibility.localOnly }}</span>
|
||||||
<span>{{ $ts._visibility.localOnlyDescription }}</span>
|
<span>{{ i18n.ts._visibility.localOnlyDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div><i :class="localOnly ? 'fas fa-toggle-on' : 'fas fa-toggle-off'"></i></div>
|
<div><i :class="localOnly ? 'fas fa-toggle-on' : 'fas fa-toggle-off'"></i></div>
|
||||||
</button>
|
</button>
|
||||||
|
@ -46,6 +46,7 @@
|
||||||
import { nextTick, watch } from 'vue';
|
import { nextTick, watch } from 'vue';
|
||||||
import * as misskey from 'misskey-js';
|
import * as misskey from 'misskey-js';
|
||||||
import MkModal from '@/components/ui/modal.vue';
|
import MkModal from '@/components/ui/modal.vue';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const modal = $ref<InstanceType<typeof MkModal>>();
|
const modal = $ref<InstanceType<typeof MkModal>>();
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
<template v-if="edit">
|
<template v-if="edit">
|
||||||
<header>
|
<header>
|
||||||
<MkSelect v-model="widgetAdderSelected" style="margin-bottom: var(--margin)" class="mk-widget-select">
|
<MkSelect v-model="widgetAdderSelected" style="margin-bottom: var(--margin)" class="mk-widget-select">
|
||||||
<template #label>{{ $ts.selectWidget }}</template>
|
<template #label>{{ i18n.ts.selectWidget }}</template>
|
||||||
<option v-for="widget in widgetDefs" :key="widget" :value="widget">{{ i18n.t(`_widgets.${widget}`) }}</option>
|
<option v-for="widget in widgetDefs" :key="widget" :value="widget">{{ i18n.t(`_widgets.${widget}`) }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkButton inline primary class="mk-widget-add" @click="addWidget"><i class="fas fa-plus"></i> {{ $ts.add }}</MkButton>
|
<MkButton inline primary class="mk-widget-add" @click="addWidget"><i class="fas fa-plus"></i> {{ i18n.ts.add }}</MkButton>
|
||||||
<MkButton inline @click="$emit('exit')">{{ $ts.close }}</MkButton>
|
<MkButton inline @click="$emit('exit')">{{ i18n.ts.close }}</MkButton>
|
||||||
</header>
|
</header>
|
||||||
<XDraggable
|
<XDraggable
|
||||||
v-model="widgets_"
|
v-model="widgets_"
|
||||||
|
|
|
@ -13,6 +13,7 @@ type RouteDef = {
|
||||||
name?: string;
|
name?: string;
|
||||||
hash?: string;
|
hash?: string;
|
||||||
globalCacheKey?: string;
|
globalCacheKey?: string;
|
||||||
|
children?: RouteDef[];
|
||||||
};
|
};
|
||||||
|
|
||||||
type ParsedPath = (string | {
|
type ParsedPath = (string | {
|
||||||
|
@ -22,6 +23,8 @@ type ParsedPath = (string | {
|
||||||
optional?: boolean;
|
optional?: boolean;
|
||||||
})[];
|
})[];
|
||||||
|
|
||||||
|
export type Resolved = { route: RouteDef; props: Map<string, string>; child?: Resolved; };
|
||||||
|
|
||||||
function parsePath(path: string): ParsedPath {
|
function parsePath(path: string): ParsedPath {
|
||||||
const res = [] as ParsedPath;
|
const res = [] as ParsedPath;
|
||||||
|
|
||||||
|
@ -51,8 +54,11 @@ export class Router extends EventEmitter<{
|
||||||
change: (ctx: {
|
change: (ctx: {
|
||||||
beforePath: string;
|
beforePath: string;
|
||||||
path: string;
|
path: string;
|
||||||
route: RouteDef | null;
|
resolved: Resolved;
|
||||||
props: Map<string, string> | null;
|
key: string;
|
||||||
|
}) => void;
|
||||||
|
replace: (ctx: {
|
||||||
|
path: string;
|
||||||
key: string;
|
key: string;
|
||||||
}) => void;
|
}) => void;
|
||||||
push: (ctx: {
|
push: (ctx: {
|
||||||
|
@ -65,12 +71,12 @@ export class Router extends EventEmitter<{
|
||||||
same: () => void;
|
same: () => void;
|
||||||
}> {
|
}> {
|
||||||
private routes: RouteDef[];
|
private routes: RouteDef[];
|
||||||
|
public current: Resolved;
|
||||||
|
public currentRef: ShallowRef<Resolved> = shallowRef();
|
||||||
|
public currentRoute: ShallowRef<RouteDef> = shallowRef();
|
||||||
private currentPath: string;
|
private currentPath: string;
|
||||||
private currentComponent: Component | null = null;
|
|
||||||
private currentProps: Map<string, string> | null = null;
|
|
||||||
private currentKey = Date.now().toString();
|
private currentKey = Date.now().toString();
|
||||||
|
|
||||||
public currentRoute: ShallowRef<RouteDef | null> = shallowRef(null);
|
|
||||||
public navHook: ((path: string, flag?: any) => boolean) | null = null;
|
public navHook: ((path: string, flag?: any) => boolean) | null = null;
|
||||||
|
|
||||||
constructor(routes: Router['routes'], currentPath: Router['currentPath']) {
|
constructor(routes: Router['routes'], currentPath: Router['currentPath']) {
|
||||||
|
@ -78,10 +84,10 @@ export class Router extends EventEmitter<{
|
||||||
|
|
||||||
this.routes = routes;
|
this.routes = routes;
|
||||||
this.currentPath = currentPath;
|
this.currentPath = currentPath;
|
||||||
this.navigate(currentPath, null, true);
|
this.navigate(currentPath, null, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public resolve(path: string): { route: RouteDef; props: Map<string, string>; } | null {
|
public resolve(path: string): Resolved | null {
|
||||||
let queryString: string | null = null;
|
let queryString: string | null = null;
|
||||||
let hash: string | null = null;
|
let hash: string | null = null;
|
||||||
if (path[0] === '/') path = path.substring(1);
|
if (path[0] === '/') path = path.substring(1);
|
||||||
|
@ -96,10 +102,9 @@ export class Router extends EventEmitter<{
|
||||||
|
|
||||||
if (_DEV_) console.log('Routing: ', path, queryString);
|
if (_DEV_) console.log('Routing: ', path, queryString);
|
||||||
|
|
||||||
const _parts = path.split('/').filter(part => part.length !== 0);
|
function check(routes: RouteDef[], _parts: string[]): Resolved | null {
|
||||||
|
|
||||||
forEachRouteLoop:
|
forEachRouteLoop:
|
||||||
for (const route of this.routes) {
|
for (const route of routes) {
|
||||||
let parts = [ ..._parts ];
|
let parts = [ ..._parts ];
|
||||||
const props = new Map<string, string>();
|
const props = new Map<string, string>();
|
||||||
|
|
||||||
|
@ -137,7 +142,19 @@ export class Router extends EventEmitter<{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parts.length !== 0) continue forEachRouteLoop;
|
if (parts.length === 0) {
|
||||||
|
if (route.children) {
|
||||||
|
const child = check(route.children, []);
|
||||||
|
if (child) {
|
||||||
|
return {
|
||||||
|
route,
|
||||||
|
props,
|
||||||
|
child,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
continue forEachRouteLoop;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (route.hash != null && hash != null) {
|
if (route.hash != null && hash != null) {
|
||||||
props.set(route.hash, safeURIDecode(hash));
|
props.set(route.hash, safeURIDecode(hash));
|
||||||
|
@ -159,14 +176,34 @@ export class Router extends EventEmitter<{
|
||||||
route,
|
route,
|
||||||
props,
|
props,
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
if (route.children) {
|
||||||
|
const child = check(route.children, parts);
|
||||||
|
if (child) {
|
||||||
|
return {
|
||||||
|
route,
|
||||||
|
props,
|
||||||
|
child,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
continue forEachRouteLoop;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
continue forEachRouteLoop;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private navigate(path: string, key: string | null | undefined, initial = false) {
|
const _parts = path.split('/').filter(part => part.length !== 0);
|
||||||
|
|
||||||
|
return check(this.routes, _parts);
|
||||||
|
}
|
||||||
|
|
||||||
|
private navigate(path: string, key: string | null | undefined, emitChange = true) {
|
||||||
const beforePath = this.currentPath;
|
const beforePath = this.currentPath;
|
||||||
const beforeRoute = this.currentRoute.value;
|
|
||||||
this.currentPath = path;
|
this.currentPath = path;
|
||||||
|
|
||||||
const res = this.resolve(this.currentPath);
|
const res = this.resolve(this.currentPath);
|
||||||
|
@ -181,28 +218,21 @@ export class Router extends EventEmitter<{
|
||||||
|
|
||||||
const isSamePath = beforePath === path;
|
const isSamePath = beforePath === path;
|
||||||
if (isSamePath && key == null) key = this.currentKey;
|
if (isSamePath && key == null) key = this.currentKey;
|
||||||
this.currentComponent = res.route.component;
|
this.current = res;
|
||||||
this.currentProps = res.props;
|
this.currentRef.value = res;
|
||||||
this.currentRoute.value = res.route;
|
this.currentRoute.value = res.route;
|
||||||
this.currentKey = this.currentRoute.value.globalCacheKey ?? key ?? Date.now().toString();
|
this.currentKey = res.route.globalCacheKey ?? key ?? path;
|
||||||
|
|
||||||
if (!initial) {
|
if (emitChange) {
|
||||||
this.emit('change', {
|
this.emit('change', {
|
||||||
beforePath,
|
beforePath,
|
||||||
path,
|
path,
|
||||||
route: this.currentRoute.value,
|
resolved: res,
|
||||||
props: this.currentProps,
|
|
||||||
key: this.currentKey,
|
key: this.currentKey,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public getCurrentComponent() {
|
return res;
|
||||||
return this.currentComponent;
|
|
||||||
}
|
|
||||||
|
|
||||||
public getCurrentProps() {
|
|
||||||
return this.currentProps;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getCurrentPath() {
|
public getCurrentPath() {
|
||||||
|
@ -223,17 +253,23 @@ export class Router extends EventEmitter<{
|
||||||
const cancel = this.navHook(path, flag);
|
const cancel = this.navHook(path, flag);
|
||||||
if (cancel) return;
|
if (cancel) return;
|
||||||
}
|
}
|
||||||
this.navigate(path, null);
|
const res = this.navigate(path, null);
|
||||||
this.emit('push', {
|
this.emit('push', {
|
||||||
beforePath,
|
beforePath,
|
||||||
path,
|
path,
|
||||||
route: this.currentRoute.value,
|
route: res.route,
|
||||||
props: this.currentProps,
|
props: res.props,
|
||||||
key: this.currentKey,
|
key: this.currentKey,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public change(path: string, key?: string | null) {
|
public replace(path: string, key?: string | null, emitEvent = true) {
|
||||||
this.navigate(path, key);
|
this.navigate(path, key);
|
||||||
|
if (emitEvent) {
|
||||||
|
this.emit('replace', {
|
||||||
|
path,
|
||||||
|
key: this.currentKey,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
7
packages/client/src/pages/_empty_.vue
Normal file
7
packages/client/src/pages/_empty_.vue
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<template>
|
||||||
|
<div></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { } from 'vue';
|
||||||
|
</script>
|
|
@ -3,35 +3,35 @@
|
||||||
<div class="query">
|
<div class="query">
|
||||||
<MkInput v-model="host" :debounce="true" class="">
|
<MkInput v-model="host" :debounce="true" class="">
|
||||||
<template #prefix><i class="fas fa-search"></i></template>
|
<template #prefix><i class="fas fa-search"></i></template>
|
||||||
<template #label>{{ $ts.host }}</template>
|
<template #label>{{ i18n.ts.host }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<FormSplit style="margin-top: var(--margin);">
|
<FormSplit style="margin-top: var(--margin);">
|
||||||
<MkSelect v-model="state">
|
<MkSelect v-model="state">
|
||||||
<template #label>{{ $ts.state }}</template>
|
<template #label>{{ i18n.ts.state }}</template>
|
||||||
<option value="all">{{ $ts.all }}</option>
|
<option value="all">{{ i18n.ts.all }}</option>
|
||||||
<option value="federating">{{ $ts.federating }}</option>
|
<option value="federating">{{ i18n.ts.federating }}</option>
|
||||||
<option value="subscribing">{{ $ts.subscribing }}</option>
|
<option value="subscribing">{{ i18n.ts.subscribing }}</option>
|
||||||
<option value="publishing">{{ $ts.publishing }}</option>
|
<option value="publishing">{{ i18n.ts.publishing }}</option>
|
||||||
<option value="suspended">{{ $ts.suspended }}</option>
|
<option value="suspended">{{ i18n.ts.suspended }}</option>
|
||||||
<option value="blocked">{{ $ts.blocked }}</option>
|
<option value="blocked">{{ i18n.ts.blocked }}</option>
|
||||||
<option value="notResponding">{{ $ts.notResponding }}</option>
|
<option value="notResponding">{{ i18n.ts.notResponding }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkSelect v-model="sort">
|
<MkSelect v-model="sort">
|
||||||
<template #label>{{ $ts.sort }}</template>
|
<template #label>{{ i18n.ts.sort }}</template>
|
||||||
<option value="+pubSub">{{ $ts.pubSub }} ({{ $ts.descendingOrder }})</option>
|
<option value="+pubSub">{{ i18n.ts.pubSub }} ({{ i18n.ts.descendingOrder }})</option>
|
||||||
<option value="-pubSub">{{ $ts.pubSub }} ({{ $ts.ascendingOrder }})</option>
|
<option value="-pubSub">{{ i18n.ts.pubSub }} ({{ i18n.ts.ascendingOrder }})</option>
|
||||||
<option value="+notes">{{ $ts.notes }} ({{ $ts.descendingOrder }})</option>
|
<option value="+notes">{{ i18n.ts.notes }} ({{ i18n.ts.descendingOrder }})</option>
|
||||||
<option value="-notes">{{ $ts.notes }} ({{ $ts.ascendingOrder }})</option>
|
<option value="-notes">{{ i18n.ts.notes }} ({{ i18n.ts.ascendingOrder }})</option>
|
||||||
<option value="+users">{{ $ts.users }} ({{ $ts.descendingOrder }})</option>
|
<option value="+users">{{ i18n.ts.users }} ({{ i18n.ts.descendingOrder }})</option>
|
||||||
<option value="-users">{{ $ts.users }} ({{ $ts.ascendingOrder }})</option>
|
<option value="-users">{{ i18n.ts.users }} ({{ i18n.ts.ascendingOrder }})</option>
|
||||||
<option value="+following">{{ $ts.following }} ({{ $ts.descendingOrder }})</option>
|
<option value="+following">{{ i18n.ts.following }} ({{ i18n.ts.descendingOrder }})</option>
|
||||||
<option value="-following">{{ $ts.following }} ({{ $ts.ascendingOrder }})</option>
|
<option value="-following">{{ i18n.ts.following }} ({{ i18n.ts.ascendingOrder }})</option>
|
||||||
<option value="+followers">{{ $ts.followers }} ({{ $ts.descendingOrder }})</option>
|
<option value="+followers">{{ i18n.ts.followers }} ({{ i18n.ts.descendingOrder }})</option>
|
||||||
<option value="-followers">{{ $ts.followers }} ({{ $ts.ascendingOrder }})</option>
|
<option value="-followers">{{ i18n.ts.followers }} ({{ i18n.ts.ascendingOrder }})</option>
|
||||||
<option value="+caughtAt">{{ $ts.registeredAt }} ({{ $ts.descendingOrder }})</option>
|
<option value="+caughtAt">{{ i18n.ts.registeredAt }} ({{ i18n.ts.descendingOrder }})</option>
|
||||||
<option value="-caughtAt">{{ $ts.registeredAt }} ({{ $ts.ascendingOrder }})</option>
|
<option value="-caughtAt">{{ i18n.ts.registeredAt }} ({{ i18n.ts.ascendingOrder }})</option>
|
||||||
<option value="+lastCommunicatedAt">{{ $ts.lastCommunication }} ({{ $ts.descendingOrder }})</option>
|
<option value="+lastCommunicatedAt">{{ i18n.ts.lastCommunication }} ({{ i18n.ts.descendingOrder }})</option>
|
||||||
<option value="-lastCommunicatedAt">{{ $ts.lastCommunication }} ({{ $ts.ascendingOrder }})</option>
|
<option value="-lastCommunicatedAt">{{ i18n.ts.lastCommunication }} ({{ i18n.ts.ascendingOrder }})</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
</FormSplit>
|
</FormSplit>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MkKeyValue class="_formBlock">
|
<MkKeyValue class="_formBlock">
|
||||||
<template #key>{{ $ts.description }}</template>
|
<template #key>{{ i18n.ts.description }}</template>
|
||||||
<template #value>{{ $instance.description }}</template>
|
<template #value>{{ $instance.description }}</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
|
|
||||||
|
@ -22,33 +22,33 @@
|
||||||
<template #key>Misskey</template>
|
<template #key>Misskey</template>
|
||||||
<template #value>{{ version }}</template>
|
<template #value>{{ version }}</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
<FormLink to="/about-misskey">{{ $ts.aboutMisskey }}</FormLink>
|
<FormLink to="/about-misskey">{{ i18n.ts.aboutMisskey }}</FormLink>
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
<FormSection>
|
<FormSection>
|
||||||
<FormSplit>
|
<FormSplit>
|
||||||
<MkKeyValue class="_formBlock">
|
<MkKeyValue class="_formBlock">
|
||||||
<template #key>{{ $ts.administrator }}</template>
|
<template #key>{{ i18n.ts.administrator }}</template>
|
||||||
<template #value>{{ $instance.maintainerName }}</template>
|
<template #value>{{ $instance.maintainerName }}</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
<MkKeyValue class="_formBlock">
|
<MkKeyValue class="_formBlock">
|
||||||
<template #key>{{ $ts.contact }}</template>
|
<template #key>{{ i18n.ts.contact }}</template>
|
||||||
<template #value>{{ $instance.maintainerEmail }}</template>
|
<template #value>{{ $instance.maintainerEmail }}</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
</FormSplit>
|
</FormSplit>
|
||||||
<FormLink v-if="$instance.tosUrl" :to="$instance.tosUrl" class="_formBlock" external>{{ $ts.tos }}</FormLink>
|
<FormLink v-if="$instance.tosUrl" :to="$instance.tosUrl" class="_formBlock" external>{{ i18n.ts.tos }}</FormLink>
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
<FormSuspense :p="initStats">
|
<FormSuspense :p="initStats">
|
||||||
<FormSection>
|
<FormSection>
|
||||||
<template #label>{{ $ts.statistics }}</template>
|
<template #label>{{ i18n.ts.statistics }}</template>
|
||||||
<FormSplit>
|
<FormSplit>
|
||||||
<MkKeyValue class="_formBlock">
|
<MkKeyValue class="_formBlock">
|
||||||
<template #key>{{ $ts.users }}</template>
|
<template #key>{{ i18n.ts.users }}</template>
|
||||||
<template #value>{{ number(stats.originalUsersCount) }}</template>
|
<template #value>{{ number(stats.originalUsersCount) }}</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
<MkKeyValue class="_formBlock">
|
<MkKeyValue class="_formBlock">
|
||||||
<template #key>{{ $ts.notes }}</template>
|
<template #key>{{ i18n.ts.notes }}</template>
|
||||||
<template #value>{{ number(stats.originalNotesCount) }}</template>
|
<template #value>{{ number(stats.originalNotesCount) }}</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
</FormSplit>
|
</FormSplit>
|
||||||
|
|
|
@ -7,31 +7,31 @@
|
||||||
<div class="_content">
|
<div class="_content">
|
||||||
<div class="inputs" style="display: flex;">
|
<div class="inputs" style="display: flex;">
|
||||||
<MkSelect v-model="state" style="margin: 0; flex: 1;">
|
<MkSelect v-model="state" style="margin: 0; flex: 1;">
|
||||||
<template #label>{{ $ts.state }}</template>
|
<template #label>{{ i18n.ts.state }}</template>
|
||||||
<option value="all">{{ $ts.all }}</option>
|
<option value="all">{{ i18n.ts.all }}</option>
|
||||||
<option value="unresolved">{{ $ts.unresolved }}</option>
|
<option value="unresolved">{{ i18n.ts.unresolved }}</option>
|
||||||
<option value="resolved">{{ $ts.resolved }}</option>
|
<option value="resolved">{{ i18n.ts.resolved }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkSelect v-model="targetUserOrigin" style="margin: 0; flex: 1;">
|
<MkSelect v-model="targetUserOrigin" style="margin: 0; flex: 1;">
|
||||||
<template #label>{{ $ts.reporteeOrigin }}</template>
|
<template #label>{{ i18n.ts.reporteeOrigin }}</template>
|
||||||
<option value="combined">{{ $ts.all }}</option>
|
<option value="combined">{{ i18n.ts.all }}</option>
|
||||||
<option value="local">{{ $ts.local }}</option>
|
<option value="local">{{ i18n.ts.local }}</option>
|
||||||
<option value="remote">{{ $ts.remote }}</option>
|
<option value="remote">{{ i18n.ts.remote }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkSelect v-model="reporterOrigin" style="margin: 0; flex: 1;">
|
<MkSelect v-model="reporterOrigin" style="margin: 0; flex: 1;">
|
||||||
<template #label>{{ $ts.reporterOrigin }}</template>
|
<template #label>{{ i18n.ts.reporterOrigin }}</template>
|
||||||
<option value="combined">{{ $ts.all }}</option>
|
<option value="combined">{{ i18n.ts.all }}</option>
|
||||||
<option value="local">{{ $ts.local }}</option>
|
<option value="local">{{ i18n.ts.local }}</option>
|
||||||
<option value="remote">{{ $ts.remote }}</option>
|
<option value="remote">{{ i18n.ts.remote }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
</div>
|
</div>
|
||||||
<!-- TODO
|
<!-- TODO
|
||||||
<div class="inputs" style="display: flex; padding-top: 1.2em;">
|
<div class="inputs" style="display: flex; padding-top: 1.2em;">
|
||||||
<MkInput v-model="searchUsername" style="margin: 0; flex: 1;" type="text" :spellcheck="false">
|
<MkInput v-model="searchUsername" style="margin: 0; flex: 1;" type="text" :spellcheck="false">
|
||||||
<span>{{ $ts.username }}</span>
|
<span>{{ i18n.ts.username }}</span>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="searchHost" style="margin: 0; flex: 1;" type="text" :spellcheck="false" :disabled="pagination.params().origin === 'local'">
|
<MkInput v-model="searchHost" style="margin: 0; flex: 1;" type="text" :spellcheck="false" :disabled="pagination.params().origin === 'local'">
|
||||||
<span>{{ $ts.host }}</span>
|
<span>{{ i18n.ts.host }}</span>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<FormSuspense :p="init">
|
<FormSuspense :p="init">
|
||||||
<div class="_formRoot">
|
<div class="_formRoot">
|
||||||
<FormRadios v-model="provider" class="_formBlock">
|
<FormRadios v-model="provider" class="_formBlock">
|
||||||
<option :value="null">{{ $ts.none }} ({{ $ts.notRecommended }})</option>
|
<option :value="null">{{ i18n.ts.none }} ({{ i18n.ts.notRecommended }})</option>
|
||||||
<option value="hcaptcha">hCaptcha</option>
|
<option value="hcaptcha">hCaptcha</option>
|
||||||
<option value="recaptcha">reCAPTCHA</option>
|
<option value="recaptcha">reCAPTCHA</option>
|
||||||
</FormRadios>
|
</FormRadios>
|
||||||
|
@ -11,33 +11,33 @@
|
||||||
<template v-if="provider === 'hcaptcha'">
|
<template v-if="provider === 'hcaptcha'">
|
||||||
<FormInput v-model="hcaptchaSiteKey" class="_formBlock">
|
<FormInput v-model="hcaptchaSiteKey" class="_formBlock">
|
||||||
<template #prefix><i class="fas fa-key"></i></template>
|
<template #prefix><i class="fas fa-key"></i></template>
|
||||||
<template #label>{{ $ts.hcaptchaSiteKey }}</template>
|
<template #label>{{ i18n.ts.hcaptchaSiteKey }}</template>
|
||||||
</FormInput>
|
</FormInput>
|
||||||
<FormInput v-model="hcaptchaSecretKey" class="_formBlock">
|
<FormInput v-model="hcaptchaSecretKey" class="_formBlock">
|
||||||
<template #prefix><i class="fas fa-key"></i></template>
|
<template #prefix><i class="fas fa-key"></i></template>
|
||||||
<template #label>{{ $ts.hcaptchaSecretKey }}</template>
|
<template #label>{{ i18n.ts.hcaptchaSecretKey }}</template>
|
||||||
</FormInput>
|
</FormInput>
|
||||||
<FormSlot class="_formBlock">
|
<FormSlot class="_formBlock">
|
||||||
<template #label>{{ $ts.preview }}</template>
|
<template #label>{{ i18n.ts.preview }}</template>
|
||||||
<MkCaptcha provider="hcaptcha" :sitekey="hcaptchaSiteKey || '10000000-ffff-ffff-ffff-000000000001'"/>
|
<MkCaptcha provider="hcaptcha" :sitekey="hcaptchaSiteKey || '10000000-ffff-ffff-ffff-000000000001'"/>
|
||||||
</FormSlot>
|
</FormSlot>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="provider === 'recaptcha'">
|
<template v-else-if="provider === 'recaptcha'">
|
||||||
<FormInput v-model="recaptchaSiteKey" class="_formBlock">
|
<FormInput v-model="recaptchaSiteKey" class="_formBlock">
|
||||||
<template #prefix><i class="fas fa-key"></i></template>
|
<template #prefix><i class="fas fa-key"></i></template>
|
||||||
<template #label>{{ $ts.recaptchaSiteKey }}</template>
|
<template #label>{{ i18n.ts.recaptchaSiteKey }}</template>
|
||||||
</FormInput>
|
</FormInput>
|
||||||
<FormInput v-model="recaptchaSecretKey" class="_formBlock">
|
<FormInput v-model="recaptchaSecretKey" class="_formBlock">
|
||||||
<template #prefix><i class="fas fa-key"></i></template>
|
<template #prefix><i class="fas fa-key"></i></template>
|
||||||
<template #label>{{ $ts.recaptchaSecretKey }}</template>
|
<template #label>{{ i18n.ts.recaptchaSecretKey }}</template>
|
||||||
</FormInput>
|
</FormInput>
|
||||||
<FormSlot v-if="recaptchaSiteKey" class="_formBlock">
|
<FormSlot v-if="recaptchaSiteKey" class="_formBlock">
|
||||||
<template #label>{{ $ts.preview }}</template>
|
<template #label>{{ i18n.ts.preview }}</template>
|
||||||
<MkCaptcha provider="recaptcha" :sitekey="recaptchaSiteKey"/>
|
<MkCaptcha provider="recaptcha" :sitekey="recaptchaSiteKey"/>
|
||||||
</FormSlot>
|
</FormSlot>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<FormButton primary @click="save"><i class="fas fa-save"></i> {{ $ts.save }}</FormButton>
|
<FormButton primary @click="save"><i class="fas fa-save"></i> {{ i18n.ts.save }}</FormButton>
|
||||||
</div>
|
</div>
|
||||||
</FormSuspense>
|
</FormSuspense>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,6 +52,7 @@ import FormSuspense from '@/components/form/suspense.vue';
|
||||||
import FormSlot from '@/components/form/slot.vue';
|
import FormSlot from '@/components/form/slot.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { fetchInstance } from '@/instance';
|
import { fetchInstance } from '@/instance';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const MkCaptcha = defineAsyncComponent(() => import('@/components/captcha.vue'));
|
const MkCaptcha = defineAsyncComponent(() => import('@/components/captcha.vue'));
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<XModalWindow ref="dialog"
|
<XModalWindow
|
||||||
|
ref="dialog"
|
||||||
:width="370"
|
:width="370"
|
||||||
:with-ok-button="true"
|
:with-ok-button="true"
|
||||||
@close="$refs.dialog.close()"
|
@close="$refs.dialog.close()"
|
||||||
|
@ -12,16 +13,16 @@
|
||||||
<div class="yigymqpb _section">
|
<div class="yigymqpb _section">
|
||||||
<img :src="emoji.url" class="img"/>
|
<img :src="emoji.url" class="img"/>
|
||||||
<MkInput v-model="name" class="_formBlock">
|
<MkInput v-model="name" class="_formBlock">
|
||||||
<template #label>{{ $ts.name }}</template>
|
<template #label>{{ i18n.ts.name }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="category" class="_formBlock" :datalist="categories">
|
<MkInput v-model="category" class="_formBlock" :datalist="categories">
|
||||||
<template #label>{{ $ts.category }}</template>
|
<template #label>{{ i18n.ts.category }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="aliases" class="_formBlock">
|
<MkInput v-model="aliases" class="_formBlock">
|
||||||
<template #label>{{ $ts.tags }}</template>
|
<template #label>{{ i18n.ts.tags }}</template>
|
||||||
<template #caption>{{ $ts.setMultipleBySeparatingWithSpace }}</template>
|
<template #caption>{{ i18n.ts.setMultipleBySeparatingWithSpace }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkButton danger @click="del()"><i class="fas fa-trash-alt"></i> {{ $ts.delete }}</MkButton>
|
<MkButton danger @click="del()"><i class="fas fa-trash-alt"></i> {{ i18n.ts.delete }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</XModalWindow>
|
</XModalWindow>
|
||||||
|
@ -70,7 +71,7 @@ async function update() {
|
||||||
name,
|
name,
|
||||||
category,
|
category,
|
||||||
aliases: aliases.split(' '),
|
aliases: aliases.split(' '),
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
dialog.close();
|
dialog.close();
|
||||||
|
@ -84,10 +85,10 @@ async function del() {
|
||||||
if (canceled) return;
|
if (canceled) return;
|
||||||
|
|
||||||
os.api('admin/emoji/delete', {
|
os.api('admin/emoji/delete', {
|
||||||
id: props.emoji.id
|
id: props.emoji.id,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
emit('done', {
|
emit('done', {
|
||||||
deleted: true
|
deleted: true,
|
||||||
});
|
});
|
||||||
dialog.close();
|
dialog.close();
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<div v-if="tab === 'local'" class="local">
|
<div v-if="tab === 'local'" class="local">
|
||||||
<MkInput v-model="query" :debounce="true" type="search">
|
<MkInput v-model="query" :debounce="true" type="search">
|
||||||
<template #prefix><i class="fas fa-search"></i></template>
|
<template #prefix><i class="fas fa-search"></i></template>
|
||||||
<template #label>{{ $ts.search }}</template>
|
<template #label>{{ i18n.ts.search }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkSwitch v-model="selectMode" style="margin: 8px 0;">
|
<MkSwitch v-model="selectMode" style="margin: 8px 0;">
|
||||||
<template #label>Select mode</template>
|
<template #label>Select mode</template>
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
<MkButton inline danger @click="delBulk">Delete</MkButton>
|
<MkButton inline danger @click="delBulk">Delete</MkButton>
|
||||||
</div>
|
</div>
|
||||||
<MkPagination ref="emojisPaginationComponent" :pagination="pagination">
|
<MkPagination ref="emojisPaginationComponent" :pagination="pagination">
|
||||||
<template #empty><span>{{ $ts.noCustomEmojis }}</span></template>
|
<template #empty><span>{{ i18n.ts.noCustomEmojis }}</span></template>
|
||||||
<template #default="{items}">
|
<template #default="{items}">
|
||||||
<div class="ldhfsamy">
|
<div class="ldhfsamy">
|
||||||
<button v-for="emoji in items" :key="emoji.id" class="emoji _panel _button" :class="{ selected: selectedEmojis.includes(emoji.id) }" @click="selectMode ? toggleSelect(emoji) : edit(emoji)">
|
<button v-for="emoji in items" :key="emoji.id" class="emoji _panel _button" :class="{ selected: selectedEmojis.includes(emoji.id) }" @click="selectMode ? toggleSelect(emoji) : edit(emoji)">
|
||||||
|
@ -40,14 +40,14 @@
|
||||||
<FormSplit>
|
<FormSplit>
|
||||||
<MkInput v-model="queryRemote" :debounce="true" type="search">
|
<MkInput v-model="queryRemote" :debounce="true" type="search">
|
||||||
<template #prefix><i class="fas fa-search"></i></template>
|
<template #prefix><i class="fas fa-search"></i></template>
|
||||||
<template #label>{{ $ts.search }}</template>
|
<template #label>{{ i18n.ts.search }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="host" :debounce="true">
|
<MkInput v-model="host" :debounce="true">
|
||||||
<template #label>{{ $ts.host }}</template>
|
<template #label>{{ i18n.ts.host }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
</FormSplit>
|
</FormSplit>
|
||||||
<MkPagination :pagination="remotePagination">
|
<MkPagination :pagination="remotePagination">
|
||||||
<template #empty><span>{{ $ts.noCustomEmojis }}</span></template>
|
<template #empty><span>{{ i18n.ts.noCustomEmojis }}</span></template>
|
||||||
<template #default="{items}">
|
<template #default="{items}">
|
||||||
<div class="ldhfsamy">
|
<div class="ldhfsamy">
|
||||||
<div v-for="emoji in items" :key="emoji.id" class="emoji _panel _button" @click="remoteMenu(emoji, $event)">
|
<div v-for="emoji in items" :key="emoji.id" class="emoji _panel _button" @click="remoteMenu(emoji, $event)">
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="inputs" style="display: flex; gap: var(--margin); flex-wrap: wrap;">
|
<div class="inputs" style="display: flex; gap: var(--margin); flex-wrap: wrap;">
|
||||||
<MkSelect v-model="origin" style="margin: 0; flex: 1;">
|
<MkSelect v-model="origin" style="margin: 0; flex: 1;">
|
||||||
<template #label>{{ $ts.instance }}</template>
|
<template #label>{{ i18n.ts.instance }}</template>
|
||||||
<option value="combined">{{ $ts.all }}</option>
|
<option value="combined">{{ i18n.ts.all }}</option>
|
||||||
<option value="local">{{ $ts.local }}</option>
|
<option value="local">{{ i18n.ts.local }}</option>
|
||||||
<option value="remote">{{ $ts.remote }}</option>
|
<option value="remote">{{ i18n.ts.remote }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkInput v-model="searchHost" :debounce="true" type="search" style="margin: 0; flex: 1;" :disabled="pagination.params.origin === 'local'">
|
<MkInput v-model="searchHost" :debounce="true" type="search" style="margin: 0; flex: 1;" :disabled="pagination.params.origin === 'local'">
|
||||||
<template #label>{{ $ts.host }}</template>
|
<template #label>{{ i18n.ts.host }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
</div>
|
</div>
|
||||||
<div class="inputs" style="display: flex; gap: var(--margin); flex-wrap: wrap; padding-top: 1.2em;">
|
<div class="inputs" style="display: flex; gap: var(--margin); flex-wrap: wrap; padding-top: 1.2em;">
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
<template>
|
<template>
|
||||||
<div ref="el" class="hiyeyicy" :class="{ wide: !narrow }">
|
<div ref="el" class="hiyeyicy" :class="{ wide: !narrow }">
|
||||||
<div v-if="!narrow || initialPage == null" class="nav">
|
<div v-if="!narrow || currentPage?.route.name == null" class="nav">
|
||||||
<MkSpacer :content-max="700" :margin-min="16">
|
<MkSpacer :content-max="700" :margin-min="16">
|
||||||
<div class="lxpfedzu">
|
<div class="lxpfedzu">
|
||||||
<div class="banner">
|
<div class="banner">
|
||||||
<img :src="$instance.iconUrl || '/favicon.ico'" alt="" class="icon"/>
|
<img :src="$instance.iconUrl || '/favicon.ico'" alt="" class="icon"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MkInfo v-if="thereIsUnresolvedAbuseReport" warn class="info">{{ $ts.thereIsUnresolvedAbuseReportWarning }} <MkA to="/admin/abuses" class="_link">{{ $ts.check }}</MkA></MkInfo>
|
<MkInfo v-if="thereIsUnresolvedAbuseReport" warn class="info">{{ i18n.ts.thereIsUnresolvedAbuseReportWarning }} <MkA to="/admin/abuses" class="_link">{{ i18n.ts.check }}</MkA></MkInfo>
|
||||||
<MkInfo v-if="noMaintainerInformation" warn class="info">{{ $ts.noMaintainerInformationWarning }} <MkA to="/admin/settings" class="_link">{{ $ts.configure }}</MkA></MkInfo>
|
<MkInfo v-if="noMaintainerInformation" warn class="info">{{ i18n.ts.noMaintainerInformationWarning }} <MkA to="/admin/settings" class="_link">{{ i18n.ts.configure }}</MkA></MkInfo>
|
||||||
<MkInfo v-if="noBotProtection" warn class="info">{{ $ts.noBotProtectionWarning }} <MkA to="/admin/security" class="_link">{{ $ts.configure }}</MkA></MkInfo>
|
<MkInfo v-if="noBotProtection" warn class="info">{{ i18n.ts.noBotProtectionWarning }} <MkA to="/admin/security" class="_link">{{ i18n.ts.configure }}</MkA></MkInfo>
|
||||||
<MkInfo v-if="noEmailServer" warn class="info">{{ $ts.noEmailServerWarning }} <MkA to="/admin/email-settings" class="_link">{{ $ts.configure }}</MkA></MkInfo>
|
<MkInfo v-if="noEmailServer" warn class="info">{{ i18n.ts.noEmailServerWarning }} <MkA to="/admin/email-settings" class="_link">{{ i18n.ts.configure }}</MkA></MkInfo>
|
||||||
|
|
||||||
<MkSuperMenu :def="menuDef" :grid="initialPage == null"></MkSuperMenu>
|
<MkSuperMenu :def="menuDef" :grid="currentPage?.route.name == null"></MkSuperMenu>
|
||||||
</div>
|
</div>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!(narrow && initialPage == null)" class="main">
|
<div v-if="!(narrow && currentPage?.route.name == null)" class="main">
|
||||||
<component :is="component" :key="initialPage" v-bind="pageProps"/>
|
<RouterView/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -44,15 +44,10 @@ const indexInfo = {
|
||||||
hideHeader: true,
|
hideHeader: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
const props = defineProps<{
|
|
||||||
initialPage?: string,
|
|
||||||
}>();
|
|
||||||
|
|
||||||
provide('shouldOmitHeaderTitle', false);
|
provide('shouldOmitHeaderTitle', false);
|
||||||
|
|
||||||
let INFO = $ref(indexInfo);
|
let INFO = $ref(indexInfo);
|
||||||
let childInfo = $ref(null);
|
let childInfo = $ref(null);
|
||||||
let page = $ref(props.initialPage);
|
|
||||||
let narrow = $ref(false);
|
let narrow = $ref(false);
|
||||||
let view = $ref(null);
|
let view = $ref(null);
|
||||||
let el = $ref(null);
|
let el = $ref(null);
|
||||||
|
@ -61,6 +56,7 @@ let noMaintainerInformation = isEmpty(instance.maintainerName) || isEmpty(instan
|
||||||
let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha;
|
let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha;
|
||||||
let noEmailServer = !instance.enableEmail;
|
let noEmailServer = !instance.enableEmail;
|
||||||
let thereIsUnresolvedAbuseReport = $ref(false);
|
let thereIsUnresolvedAbuseReport = $ref(false);
|
||||||
|
let currentPage = $computed(() => router.currentRef.value.child);
|
||||||
|
|
||||||
os.api('admin/abuse-user-reports', {
|
os.api('admin/abuse-user-reports', {
|
||||||
state: 'unresolved',
|
state: 'unresolved',
|
||||||
|
@ -94,47 +90,47 @@ const menuDef = $computed(() => [{
|
||||||
icon: 'fas fa-tachometer-alt',
|
icon: 'fas fa-tachometer-alt',
|
||||||
text: i18n.ts.dashboard,
|
text: i18n.ts.dashboard,
|
||||||
to: '/admin/overview',
|
to: '/admin/overview',
|
||||||
active: props.initialPage === 'overview',
|
active: currentPage?.route.name === 'overview',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-users',
|
icon: 'fas fa-users',
|
||||||
text: i18n.ts.users,
|
text: i18n.ts.users,
|
||||||
to: '/admin/users',
|
to: '/admin/users',
|
||||||
active: props.initialPage === 'users',
|
active: currentPage?.route.name === 'users',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-laugh',
|
icon: 'fas fa-laugh',
|
||||||
text: i18n.ts.customEmojis,
|
text: i18n.ts.customEmojis,
|
||||||
to: '/admin/emojis',
|
to: '/admin/emojis',
|
||||||
active: props.initialPage === 'emojis',
|
active: currentPage?.route.name === 'emojis',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-globe',
|
icon: 'fas fa-globe',
|
||||||
text: i18n.ts.federation,
|
text: i18n.ts.federation,
|
||||||
to: '/about#federation',
|
to: '/about#federation',
|
||||||
active: props.initialPage === 'federation',
|
active: currentPage?.route.name === 'federation',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-clipboard-list',
|
icon: 'fas fa-clipboard-list',
|
||||||
text: i18n.ts.jobQueue,
|
text: i18n.ts.jobQueue,
|
||||||
to: '/admin/queue',
|
to: '/admin/queue',
|
||||||
active: props.initialPage === 'queue',
|
active: currentPage?.route.name === 'queue',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-cloud',
|
icon: 'fas fa-cloud',
|
||||||
text: i18n.ts.files,
|
text: i18n.ts.files,
|
||||||
to: '/admin/files',
|
to: '/admin/files',
|
||||||
active: props.initialPage === 'files',
|
active: currentPage?.route.name === 'files',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-broadcast-tower',
|
icon: 'fas fa-broadcast-tower',
|
||||||
text: i18n.ts.announcements,
|
text: i18n.ts.announcements,
|
||||||
to: '/admin/announcements',
|
to: '/admin/announcements',
|
||||||
active: props.initialPage === 'announcements',
|
active: currentPage?.route.name === 'announcements',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-audio-description',
|
icon: 'fas fa-audio-description',
|
||||||
text: i18n.ts.ads,
|
text: i18n.ts.ads,
|
||||||
to: '/admin/ads',
|
to: '/admin/ads',
|
||||||
active: props.initialPage === 'ads',
|
active: currentPage?.route.name === 'ads',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-exclamation-circle',
|
icon: 'fas fa-exclamation-circle',
|
||||||
text: i18n.ts.abuseReports,
|
text: i18n.ts.abuseReports,
|
||||||
to: '/admin/abuses',
|
to: '/admin/abuses',
|
||||||
active: props.initialPage === 'abuses',
|
active: currentPage?.route.name === 'abuses',
|
||||||
}],
|
}],
|
||||||
}, {
|
}, {
|
||||||
title: i18n.ts.settings,
|
title: i18n.ts.settings,
|
||||||
|
@ -142,47 +138,47 @@ const menuDef = $computed(() => [{
|
||||||
icon: 'fas fa-cog',
|
icon: 'fas fa-cog',
|
||||||
text: i18n.ts.general,
|
text: i18n.ts.general,
|
||||||
to: '/admin/settings',
|
to: '/admin/settings',
|
||||||
active: props.initialPage === 'settings',
|
active: currentPage?.route.name === 'settings',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-envelope',
|
icon: 'fas fa-envelope',
|
||||||
text: i18n.ts.emailServer,
|
text: i18n.ts.emailServer,
|
||||||
to: '/admin/email-settings',
|
to: '/admin/email-settings',
|
||||||
active: props.initialPage === 'email-settings',
|
active: currentPage?.route.name === 'email-settings',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-cloud',
|
icon: 'fas fa-cloud',
|
||||||
text: i18n.ts.objectStorage,
|
text: i18n.ts.objectStorage,
|
||||||
to: '/admin/object-storage',
|
to: '/admin/object-storage',
|
||||||
active: props.initialPage === 'object-storage',
|
active: currentPage?.route.name === 'object-storage',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-lock',
|
icon: 'fas fa-lock',
|
||||||
text: i18n.ts.security,
|
text: i18n.ts.security,
|
||||||
to: '/admin/security',
|
to: '/admin/security',
|
||||||
active: props.initialPage === 'security',
|
active: currentPage?.route.name === 'security',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-globe',
|
icon: 'fas fa-globe',
|
||||||
text: i18n.ts.relays,
|
text: i18n.ts.relays,
|
||||||
to: '/admin/relays',
|
to: '/admin/relays',
|
||||||
active: props.initialPage === 'relays',
|
active: currentPage?.route.name === 'relays',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-share-alt',
|
icon: 'fas fa-share-alt',
|
||||||
text: i18n.ts.integration,
|
text: i18n.ts.integration,
|
||||||
to: '/admin/integrations',
|
to: '/admin/integrations',
|
||||||
active: props.initialPage === 'integrations',
|
active: currentPage?.route.name === 'integrations',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-ban',
|
icon: 'fas fa-ban',
|
||||||
text: i18n.ts.instanceBlocking,
|
text: i18n.ts.instanceBlocking,
|
||||||
to: '/admin/instance-block',
|
to: '/admin/instance-block',
|
||||||
active: props.initialPage === 'instance-block',
|
active: currentPage?.route.name === 'instance-block',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-ghost',
|
icon: 'fas fa-ghost',
|
||||||
text: i18n.ts.proxyAccount,
|
text: i18n.ts.proxyAccount,
|
||||||
to: '/admin/proxy-account',
|
to: '/admin/proxy-account',
|
||||||
active: props.initialPage === 'proxy-account',
|
active: currentPage?.route.name === 'proxy-account',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-cogs',
|
icon: 'fas fa-cogs',
|
||||||
text: i18n.ts.other,
|
text: i18n.ts.other,
|
||||||
to: '/admin/other-settings',
|
to: '/admin/other-settings',
|
||||||
active: props.initialPage === 'other-settings',
|
active: currentPage?.route.name === 'other-settings',
|
||||||
}],
|
}],
|
||||||
}, {
|
}, {
|
||||||
title: i18n.ts.info,
|
title: i18n.ts.info,
|
||||||
|
@ -190,55 +186,12 @@ const menuDef = $computed(() => [{
|
||||||
icon: 'fas fa-database',
|
icon: 'fas fa-database',
|
||||||
text: i18n.ts.database,
|
text: i18n.ts.database,
|
||||||
to: '/admin/database',
|
to: '/admin/database',
|
||||||
active: props.initialPage === 'database',
|
active: currentPage?.route.name === 'database',
|
||||||
}],
|
}],
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
const component = $computed(() => {
|
|
||||||
if (props.initialPage == null) return null;
|
|
||||||
switch (props.initialPage) {
|
|
||||||
case 'overview': return defineAsyncComponent(() => import('./overview.vue'));
|
|
||||||
case 'users': return defineAsyncComponent(() => import('./users.vue'));
|
|
||||||
case 'emojis': return defineAsyncComponent(() => import('./emojis.vue'));
|
|
||||||
//case 'federation': return defineAsyncComponent(() => import('../federation.vue'));
|
|
||||||
case 'queue': return defineAsyncComponent(() => import('./queue.vue'));
|
|
||||||
case 'files': return defineAsyncComponent(() => import('./files.vue'));
|
|
||||||
case 'announcements': return defineAsyncComponent(() => import('./announcements.vue'));
|
|
||||||
case 'ads': return defineAsyncComponent(() => import('./ads.vue'));
|
|
||||||
case 'database': return defineAsyncComponent(() => import('./database.vue'));
|
|
||||||
case 'abuses': return defineAsyncComponent(() => import('./abuses.vue'));
|
|
||||||
case 'settings': return defineAsyncComponent(() => import('./settings.vue'));
|
|
||||||
case 'email-settings': return defineAsyncComponent(() => import('./email-settings.vue'));
|
|
||||||
case 'object-storage': return defineAsyncComponent(() => import('./object-storage.vue'));
|
|
||||||
case 'security': return defineAsyncComponent(() => import('./security.vue'));
|
|
||||||
case 'relays': return defineAsyncComponent(() => import('./relays.vue'));
|
|
||||||
case 'integrations': return defineAsyncComponent(() => import('./integrations.vue'));
|
|
||||||
case 'instance-block': return defineAsyncComponent(() => import('./instance-block.vue'));
|
|
||||||
case 'proxy-account': return defineAsyncComponent(() => import('./proxy-account.vue'));
|
|
||||||
case 'other-settings': return defineAsyncComponent(() => import('./other-settings.vue'));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
watch(component, () => {
|
|
||||||
pageProps = {};
|
|
||||||
|
|
||||||
nextTick(() => {
|
|
||||||
scroll(el, { top: 0 });
|
|
||||||
});
|
|
||||||
}, { immediate: true });
|
|
||||||
|
|
||||||
watch(() => props.initialPage, () => {
|
|
||||||
if (props.initialPage == null && !narrow) {
|
|
||||||
router.push('/admin/overview');
|
|
||||||
} else {
|
|
||||||
if (props.initialPage == null) {
|
|
||||||
INFO = indexInfo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
watch(narrow, () => {
|
watch(narrow, () => {
|
||||||
if (props.initialPage == null && !narrow) {
|
if (currentPage?.route.name == null && !narrow) {
|
||||||
router.push('/admin/overview');
|
router.push('/admin/overview');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -247,7 +200,7 @@ onMounted(() => {
|
||||||
ro.observe(el);
|
ro.observe(el);
|
||||||
|
|
||||||
narrow = el.offsetWidth < NARROW_THRESHOLD;
|
narrow = el.offsetWidth < NARROW_THRESHOLD;
|
||||||
if (props.initialPage == null && !narrow) {
|
if (currentPage?.route.name == null && !narrow) {
|
||||||
router.push('/admin/overview');
|
router.push('/admin/overview');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<FormSuspense :p="init">
|
<FormSuspense :p="init">
|
||||||
<div class="_formRoot">
|
<div class="_formRoot">
|
||||||
<FormSwitch v-model="enableDiscordIntegration" class="_formBlock">
|
<FormSwitch v-model="enableDiscordIntegration" class="_formBlock">
|
||||||
<template #label>{{ $ts.enable }}</template>
|
<template #label>{{ i18n.ts.enable }}</template>
|
||||||
</FormSwitch>
|
</FormSwitch>
|
||||||
|
|
||||||
<template v-if="enableDiscordIntegration">
|
<template v-if="enableDiscordIntegration">
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
</FormInput>
|
</FormInput>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<FormButton primary class="_formBlock" @click="save"><i class="fas fa-save"></i> {{ $ts.save }}</FormButton>
|
<FormButton primary class="_formBlock" @click="save"><i class="fas fa-save"></i> {{ i18n.ts.save }}</FormButton>
|
||||||
</div>
|
</div>
|
||||||
</FormSuspense>
|
</FormSuspense>
|
||||||
</template>
|
</template>
|
||||||
|
@ -33,6 +33,7 @@ import FormInfo from '@/components/ui/info.vue';
|
||||||
import FormSuspense from '@/components/form/suspense.vue';
|
import FormSuspense from '@/components/form/suspense.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { fetchInstance } from '@/instance';
|
import { fetchInstance } from '@/instance';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
let uri: string = $ref('');
|
let uri: string = $ref('');
|
||||||
let enableDiscordIntegration: boolean = $ref(false);
|
let enableDiscordIntegration: boolean = $ref(false);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<FormSuspense :p="init">
|
<FormSuspense :p="init">
|
||||||
<div class="_formRoot">
|
<div class="_formRoot">
|
||||||
<FormSwitch v-model="enableGithubIntegration" class="_formBlock">
|
<FormSwitch v-model="enableGithubIntegration" class="_formBlock">
|
||||||
<template #label>{{ $ts.enable }}</template>
|
<template #label>{{ i18n.ts.enable }}</template>
|
||||||
</FormSwitch>
|
</FormSwitch>
|
||||||
|
|
||||||
<template v-if="enableGithubIntegration">
|
<template v-if="enableGithubIntegration">
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
</FormInput>
|
</FormInput>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<FormButton primary class="_formBlock" @click="save"><i class="fas fa-save"></i> {{ $ts.save }}</FormButton>
|
<FormButton primary class="_formBlock" @click="save"><i class="fas fa-save"></i> {{ i18n.ts.save }}</FormButton>
|
||||||
</div>
|
</div>
|
||||||
</FormSuspense>
|
</FormSuspense>
|
||||||
</template>
|
</template>
|
||||||
|
@ -33,6 +33,7 @@ import FormInfo from '@/components/ui/info.vue';
|
||||||
import FormSuspense from '@/components/form/suspense.vue';
|
import FormSuspense from '@/components/form/suspense.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { fetchInstance } from '@/instance';
|
import { fetchInstance } from '@/instance';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
let uri: string = $ref('');
|
let uri: string = $ref('');
|
||||||
let enableGithubIntegration: boolean = $ref(false);
|
let enableGithubIntegration: boolean = $ref(false);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<FormSuspense :p="init">
|
<FormSuspense :p="init">
|
||||||
<div class="_formRoot">
|
<div class="_formRoot">
|
||||||
<FormSwitch v-model="enableTwitterIntegration" class="_formBlock">
|
<FormSwitch v-model="enableTwitterIntegration" class="_formBlock">
|
||||||
<template #label>{{ $ts.enable }}</template>
|
<template #label>{{ i18n.ts.enable }}</template>
|
||||||
</FormSwitch>
|
</FormSwitch>
|
||||||
|
|
||||||
<template v-if="enableTwitterIntegration">
|
<template v-if="enableTwitterIntegration">
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
</FormInput>
|
</FormInput>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<FormButton primary class="_formBlock" @click="save"><i class="fas fa-save"></i> {{ $ts.save }}</FormButton>
|
<FormButton primary class="_formBlock" @click="save"><i class="fas fa-save"></i> {{ i18n.ts.save }}</FormButton>
|
||||||
</div>
|
</div>
|
||||||
</FormSuspense>
|
</FormSuspense>
|
||||||
</template>
|
</template>
|
||||||
|
@ -33,6 +33,7 @@ import FormInfo from '@/components/ui/info.vue';
|
||||||
import FormSuspense from '@/components/form/suspense.vue';
|
import FormSuspense from '@/components/form/suspense.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { fetchInstance } from '@/instance';
|
import { fetchInstance } from '@/instance';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
let uri: string = $ref('');
|
let uri: string = $ref('');
|
||||||
let enableTwitterIntegration: boolean = $ref(false);
|
let enableTwitterIntegration: boolean = $ref(false);
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<span style="margin-left: 8px; opacity: 0.7;">({{ number(job[1]) }} jobs)</span>
|
<span style="margin-left: 8px; opacity: 0.7;">({{ number(job[1]) }} jobs)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span v-else style="opacity: 0.5;">{{ $ts.noJobs }}</span>
|
<span v-else style="opacity: 0.5;">{{ i18n.ts.noJobs }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -44,6 +44,7 @@ import XChart from './queue.chart.chart.vue';
|
||||||
import number from '@/filters/number';
|
import number from '@/filters/number';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { stream } from '@/stream';
|
import { stream } from '@/stream';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const connection = markRaw(stream.useChannel('queueStats'));
|
const connection = markRaw(stream.useChannel('queueStats'));
|
||||||
|
|
||||||
|
|
|
@ -7,36 +7,36 @@
|
||||||
<div class="users">
|
<div class="users">
|
||||||
<div class="inputs">
|
<div class="inputs">
|
||||||
<MkSelect v-model="sort" style="flex: 1;">
|
<MkSelect v-model="sort" style="flex: 1;">
|
||||||
<template #label>{{ $ts.sort }}</template>
|
<template #label>{{ i18n.ts.sort }}</template>
|
||||||
<option value="-createdAt">{{ $ts.registeredDate }} ({{ $ts.ascendingOrder }})</option>
|
<option value="-createdAt">{{ i18n.ts.registeredDate }} ({{ i18n.ts.ascendingOrder }})</option>
|
||||||
<option value="+createdAt">{{ $ts.registeredDate }} ({{ $ts.descendingOrder }})</option>
|
<option value="+createdAt">{{ i18n.ts.registeredDate }} ({{ i18n.ts.descendingOrder }})</option>
|
||||||
<option value="-updatedAt">{{ $ts.lastUsed }} ({{ $ts.ascendingOrder }})</option>
|
<option value="-updatedAt">{{ i18n.ts.lastUsed }} ({{ i18n.ts.ascendingOrder }})</option>
|
||||||
<option value="+updatedAt">{{ $ts.lastUsed }} ({{ $ts.descendingOrder }})</option>
|
<option value="+updatedAt">{{ i18n.ts.lastUsed }} ({{ i18n.ts.descendingOrder }})</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkSelect v-model="state" style="flex: 1;">
|
<MkSelect v-model="state" style="flex: 1;">
|
||||||
<template #label>{{ $ts.state }}</template>
|
<template #label>{{ i18n.ts.state }}</template>
|
||||||
<option value="all">{{ $ts.all }}</option>
|
<option value="all">{{ i18n.ts.all }}</option>
|
||||||
<option value="available">{{ $ts.normal }}</option>
|
<option value="available">{{ i18n.ts.normal }}</option>
|
||||||
<option value="admin">{{ $ts.administrator }}</option>
|
<option value="admin">{{ i18n.ts.administrator }}</option>
|
||||||
<option value="moderator">{{ $ts.moderator }}</option>
|
<option value="moderator">{{ i18n.ts.moderator }}</option>
|
||||||
<option value="silenced">{{ $ts.silence }}</option>
|
<option value="silenced">{{ i18n.ts.silence }}</option>
|
||||||
<option value="suspended">{{ $ts.suspend }}</option>
|
<option value="suspended">{{ i18n.ts.suspend }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkSelect v-model="origin" style="flex: 1;">
|
<MkSelect v-model="origin" style="flex: 1;">
|
||||||
<template #label>{{ $ts.instance }}</template>
|
<template #label>{{ i18n.ts.instance }}</template>
|
||||||
<option value="combined">{{ $ts.all }}</option>
|
<option value="combined">{{ i18n.ts.all }}</option>
|
||||||
<option value="local">{{ $ts.local }}</option>
|
<option value="local">{{ i18n.ts.local }}</option>
|
||||||
<option value="remote">{{ $ts.remote }}</option>
|
<option value="remote">{{ i18n.ts.remote }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
</div>
|
</div>
|
||||||
<div class="inputs">
|
<div class="inputs">
|
||||||
<MkInput v-model="searchUsername" style="flex: 1;" type="text" :spellcheck="false" @update:modelValue="$refs.users.reload()">
|
<MkInput v-model="searchUsername" style="flex: 1;" type="text" :spellcheck="false" @update:modelValue="$refs.users.reload()">
|
||||||
<template #prefix>@</template>
|
<template #prefix>@</template>
|
||||||
<template #label>{{ $ts.username }}</template>
|
<template #label>{{ i18n.ts.username }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="searchHost" style="flex: 1;" type="text" :spellcheck="false" :disabled="pagination.params.origin === 'local'" @update:modelValue="$refs.users.reload()">
|
<MkInput v-model="searchHost" style="flex: 1;" type="text" :spellcheck="false" :disabled="pagination.params.origin === 'local'" @update:modelValue="$refs.users.reload()">
|
||||||
<template #prefix>@</template>
|
<template #prefix>@</template>
|
||||||
<template #label>{{ $ts.host }}</template>
|
<template #label>{{ i18n.ts.host }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -4,22 +4,22 @@
|
||||||
<MkSpacer :content-max="700">
|
<MkSpacer :content-max="700">
|
||||||
<div class="_formRoot">
|
<div class="_formRoot">
|
||||||
<MkInput v-model="name" class="_formBlock">
|
<MkInput v-model="name" class="_formBlock">
|
||||||
<template #label>{{ $ts.name }}</template>
|
<template #label>{{ i18n.ts.name }}</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|
||||||
<MkTextarea v-model="description" class="_formBlock">
|
<MkTextarea v-model="description" class="_formBlock">
|
||||||
<template #label>{{ $ts.description }}</template>
|
<template #label>{{ i18n.ts.description }}</template>
|
||||||
</MkTextarea>
|
</MkTextarea>
|
||||||
|
|
||||||
<div class="banner">
|
<div class="banner">
|
||||||
<MkButton v-if="bannerId == null" @click="setBannerImage"><i class="fas fa-plus"></i> {{ $ts._channel.setBanner }}</MkButton>
|
<MkButton v-if="bannerId == null" @click="setBannerImage"><i class="fas fa-plus"></i> {{ i18n.ts._channel.setBanner }}</MkButton>
|
||||||
<div v-else-if="bannerUrl">
|
<div v-else-if="bannerUrl">
|
||||||
<img :src="bannerUrl" style="width: 100%;"/>
|
<img :src="bannerUrl" style="width: 100%;"/>
|
||||||
<MkButton @click="removeBannerImage()"><i class="fas fa-trash-alt"></i> {{ $ts._channel.removeBanner }}</MkButton>
|
<MkButton @click="removeBannerImage()"><i class="fas fa-trash-alt"></i> {{ i18n.ts._channel.removeBanner }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="_formBlock">
|
<div class="_formBlock">
|
||||||
<MkButton primary @click="save()"><i class="fas fa-save"></i> {{ channelId ? $ts.save : $ts.create }}</MkButton>
|
<MkButton primary @click="save()"><i class="fas fa-save"></i> {{ channelId ? i18n.ts.save : i18n.ts.create }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div :style="{ backgroundImage: channel.bannerUrl ? `url(${channel.bannerUrl})` : null }" class="banner">
|
<div :style="{ backgroundImage: channel.bannerUrl ? `url(${channel.bannerUrl})` : null }" class="banner">
|
||||||
<div class="status">
|
<div class="status">
|
||||||
<div><i class="fas fa-users fa-fw"></i><I18n :src="$ts._channel.usersCount" tag="span" style="margin-left: 4px;"><template #n><b>{{ channel.usersCount }}</b></template></I18n></div>
|
<div><i class="fas fa-users fa-fw"></i><I18n :src="i18n.ts._channel.usersCount" tag="span" style="margin-left: 4px;"><template #n><b>{{ channel.usersCount }}</b></template></I18n></div>
|
||||||
<div><i class="fas fa-pencil-alt fa-fw"></i><I18n :src="$ts._channel.notesCount" tag="span" style="margin-left: 4px;"><template #n><b>{{ channel.notesCount }}</b></template></I18n></div>
|
<div><i class="fas fa-pencil-alt fa-fw"></i><I18n :src="i18n.ts._channel.notesCount" tag="span" style="margin-left: 4px;"><template #n><b>{{ channel.notesCount }}</b></template></I18n></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fade"></div>
|
<div class="fade"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,32 +1,32 @@
|
||||||
<template>
|
<template>
|
||||||
<MkSpacer :content-max="1200">
|
<MkSpacer :content-max="1200">
|
||||||
<MkTab v-model="origin" style="margin-bottom: var(--margin);">
|
<MkTab v-model="origin" style="margin-bottom: var(--margin);">
|
||||||
<option value="local">{{ $ts.local }}</option>
|
<option value="local">{{ i18n.ts.local }}</option>
|
||||||
<option value="remote">{{ $ts.remote }}</option>
|
<option value="remote">{{ i18n.ts.remote }}</option>
|
||||||
</MkTab>
|
</MkTab>
|
||||||
<div v-if="origin === 'local'">
|
<div v-if="origin === 'local'">
|
||||||
<template v-if="tag == null">
|
<template v-if="tag == null">
|
||||||
<MkFolder class="_gap" persist-key="explore-pinned-users">
|
<MkFolder class="_gap" persist-key="explore-pinned-users">
|
||||||
<template #header><i class="fas fa-bookmark fa-fw" style="margin-right: 0.5em;"></i>{{ $ts.pinnedUsers }}</template>
|
<template #header><i class="fas fa-bookmark fa-fw" style="margin-right: 0.5em;"></i>{{ i18n.ts.pinnedUsers }}</template>
|
||||||
<XUserList :pagination="pinnedUsers"/>
|
<XUserList :pagination="pinnedUsers"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
<MkFolder class="_gap" persist-key="explore-popular-users">
|
<MkFolder class="_gap" persist-key="explore-popular-users">
|
||||||
<template #header><i class="fas fa-chart-line fa-fw" style="margin-right: 0.5em;"></i>{{ $ts.popularUsers }}</template>
|
<template #header><i class="fas fa-chart-line fa-fw" style="margin-right: 0.5em;"></i>{{ i18n.ts.popularUsers }}</template>
|
||||||
<XUserList :pagination="popularUsers"/>
|
<XUserList :pagination="popularUsers"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
<MkFolder class="_gap" persist-key="explore-recently-updated-users">
|
<MkFolder class="_gap" persist-key="explore-recently-updated-users">
|
||||||
<template #header><i class="fas fa-comment-alt fa-fw" style="margin-right: 0.5em;"></i>{{ $ts.recentlyUpdatedUsers }}</template>
|
<template #header><i class="fas fa-comment-alt fa-fw" style="margin-right: 0.5em;"></i>{{ i18n.ts.recentlyUpdatedUsers }}</template>
|
||||||
<XUserList :pagination="recentlyUpdatedUsers"/>
|
<XUserList :pagination="recentlyUpdatedUsers"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
<MkFolder class="_gap" persist-key="explore-recently-registered-users">
|
<MkFolder class="_gap" persist-key="explore-recently-registered-users">
|
||||||
<template #header><i class="fas fa-plus fa-fw" style="margin-right: 0.5em;"></i>{{ $ts.recentlyRegisteredUsers }}</template>
|
<template #header><i class="fas fa-plus fa-fw" style="margin-right: 0.5em;"></i>{{ i18n.ts.recentlyRegisteredUsers }}</template>
|
||||||
<XUserList :pagination="recentlyRegisteredUsers"/>
|
<XUserList :pagination="recentlyRegisteredUsers"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<MkFolder ref="tagsEl" :foldable="true" :expanded="false" class="_gap">
|
<MkFolder ref="tagsEl" :foldable="true" :expanded="false" class="_gap">
|
||||||
<template #header><i class="fas fa-hashtag fa-fw" style="margin-right: 0.5em;"></i>{{ $ts.popularTags }}</template>
|
<template #header><i class="fas fa-hashtag fa-fw" style="margin-right: 0.5em;"></i>{{ i18n.ts.popularTags }}</template>
|
||||||
|
|
||||||
<div class="vxjfqztj">
|
<div class="vxjfqztj">
|
||||||
<MkA v-for="tag in tagsLocal" :key="'local:' + tag.tag" :to="`/explore/tags/${tag.tag}`" class="local">{{ tag.tag }}</MkA>
|
<MkA v-for="tag in tagsLocal" :key="'local:' + tag.tag" :to="`/explore/tags/${tag.tag}`" class="local">{{ tag.tag }}</MkA>
|
||||||
|
@ -41,15 +41,15 @@
|
||||||
|
|
||||||
<template v-if="tag == null">
|
<template v-if="tag == null">
|
||||||
<MkFolder class="_gap">
|
<MkFolder class="_gap">
|
||||||
<template #header><i class="fas fa-chart-line fa-fw" style="margin-right: 0.5em;"></i>{{ $ts.popularUsers }}</template>
|
<template #header><i class="fas fa-chart-line fa-fw" style="margin-right: 0.5em;"></i>{{ i18n.ts.popularUsers }}</template>
|
||||||
<XUserList :pagination="popularUsersF"/>
|
<XUserList :pagination="popularUsersF"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
<MkFolder class="_gap">
|
<MkFolder class="_gap">
|
||||||
<template #header><i class="fas fa-comment-alt fa-fw" style="margin-right: 0.5em;"></i>{{ $ts.recentlyUpdatedUsers }}</template>
|
<template #header><i class="fas fa-comment-alt fa-fw" style="margin-right: 0.5em;"></i>{{ i18n.ts.recentlyUpdatedUsers }}</template>
|
||||||
<XUserList :pagination="recentlyUpdatedUsersF"/>
|
<XUserList :pagination="recentlyUpdatedUsersF"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
<MkFolder class="_gap">
|
<MkFolder class="_gap">
|
||||||
<template #header><i class="fas fa-rocket fa-fw" style="margin-right: 0.5em;"></i>{{ $ts.recentlyDiscoveredUsers }}</template>
|
<template #header><i class="fas fa-rocket fa-fw" style="margin-right: 0.5em;"></i>{{ i18n.ts.recentlyDiscoveredUsers }}</template>
|
||||||
<XUserList :pagination="recentlyRegisteredUsersF"/>
|
<XUserList :pagination="recentlyRegisteredUsersF"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
</template>
|
</template>
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue