Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
b99e13e667 | |||
2518cf36d0 |
52
CHANGELOG.md
52
CHANGELOG.md
|
@ -1,55 +1,3 @@
|
||||||
## 2024.11.0
|
|
||||||
|
|
||||||
### General
|
|
||||||
- Feat: コンテンツの表示にログインを必須にできるように
|
|
||||||
- Feat: 過去のノートを非公開化/フォロワーのみ表示可能にできるように
|
|
||||||
- Enhance: 依存関係の更新
|
|
||||||
- Enhance: l10nの更新
|
|
||||||
|
|
||||||
### Client
|
|
||||||
- Enhance: Bull DashboardでRelationship Queueの状態も確認できるように
|
|
||||||
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/751)
|
|
||||||
- Enhance: ドライブでソートができるように
|
|
||||||
- Enhance: アイコンデコレーション管理画面の改善
|
|
||||||
- Enhance: 「単なるラッキー」の取得条件を変更
|
|
||||||
- Enhance: 投稿フォームでEscキーを押したときIME入力中ならフォームを閉じないように( #10866 )
|
|
||||||
- Enhance: MiAuth, OAuthの認可画面の改善
|
|
||||||
- どのアカウントで認証しようとしているのかがわかるように
|
|
||||||
- 認証するアカウントを切り替えられるように
|
|
||||||
- Enhance: Self-XSS防止用の警告を追加
|
|
||||||
- Enhance: カタルーニャ語 (ca-ES) に対応
|
|
||||||
- Enhance: 個別お知らせページではMetaタグを出力するように
|
|
||||||
- Fix: 通知の範囲指定の設定項目が必要ない通知設定でも範囲指定の設定がでている問題を修正
|
|
||||||
- Fix: Turnstileが失敗・期限切れした際にも成功扱いとなってしまう問題を修正
|
|
||||||
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/768)
|
|
||||||
- Fix: デッキのタイムラインカラムで「センシティブなファイルを含むノートを表示」設定が使用できなかった問題を修正
|
|
||||||
- Fix: Encode RSS urls with escape sequences before fetching allowing query parameters to be used
|
|
||||||
- Fix: リンク切れを修正
|
|
||||||
= Fix: ノート投稿ボタンにホバー時のスタイルが適用されていないのを修正
|
|
||||||
(Cherry-picked from https://github.com/taiyme/misskey/pull/305)
|
|
||||||
- Fix: メールアドレス登録有効化時の「完了」ダイアログボックスの表示条件を修正
|
|
||||||
|
|
||||||
### Server
|
|
||||||
- Enhance: 起動前の疎通チェックで、DBとメイン以外のRedisの疎通確認も行うように
|
|
||||||
(Based on https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/588)
|
|
||||||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/715)
|
|
||||||
- Enhance: リモートユーザーの照会をオリジナルにリダイレクトするように
|
|
||||||
- Fix: フォロワーへのメッセージの絵文字をemojisに含めるように
|
|
||||||
- Fix: Nested proxy requestsを検出した際にブロックするように
|
|
||||||
[ghsa-gq5q-c77c-v236](https://github.com/misskey-dev/misskey/security/advisories/ghsa-gq5q-c77c-v236)
|
|
||||||
- Fix: 招待コードの発行可能な残り数算出に使用すべきロールポリシーの値が違う問題を修正
|
|
||||||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/706)
|
|
||||||
- Fix: 連合への配信時に、acctの大小文字が区別されてしまい正しくメンションが処理されないことがある問題を修正
|
|
||||||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/711)
|
|
||||||
- Fix: ローカルユーザーへのメンションを含むノートが連合される際に正しいURLに変換されないことがある問題を修正
|
|
||||||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/712)
|
|
||||||
- Fix: FTT無効時にユーザーリストタイムラインが使用できない問題を修正
|
|
||||||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/709)
|
|
||||||
- Fix: User Webhookテスト機能のMock Payloadを修正
|
|
||||||
|
|
||||||
### Misskey.js
|
|
||||||
- Fix: Stream初期化時、別途WebSocketを指定する場合の型定義を修正
|
|
||||||
|
|
||||||
## 2024.10.1
|
## 2024.10.1
|
||||||
|
|
||||||
### Note
|
### Note
|
||||||
|
|
|
@ -64,29 +64,9 @@ Thank you for your PR! Before creating a PR, please check the following:
|
||||||
|
|
||||||
Thanks for your cooperation 🤗
|
Thanks for your cooperation 🤗
|
||||||
|
|
||||||
### Additional things for ActivityPub payload changes
|
|
||||||
*This section is specific to misskey-dev implementation. Other fork or implementation may take different way. A significant difference is that non-"misskey-dev" extension is not described in the misskey-hub's document.*
|
|
||||||
|
|
||||||
If PR includes changes to ActivityPub payload, please reflect it in [misskey-hub's document](https://github.com/misskey-dev/misskey-hub-next/blob/master/content/ns.md) by sending PR.
|
|
||||||
|
|
||||||
The name of purporsed extension property (referred as "extended property" in later) to ActivityPub shall be prefixed by `_misskey_`. (i.e. `_misskey_quote`)
|
|
||||||
|
|
||||||
The extended property in `packages/backend/src/core/activitypub/type.ts` **must** be declared as optional because ActivityPub payloads that comes from older Misskey or other implementation may not contain it.
|
|
||||||
|
|
||||||
The extended property must be included in the context definition. Context is defined in `packages/backend/src/core/activitypub/misc/contexts.ts`.
|
|
||||||
The key shall be same as the name of extended property, and the value shall be same as "short IRI".
|
|
||||||
|
|
||||||
"Short IRI" is defined in misskey-hub's document, but usually takes form of `misskey:<name of extended property>`. (i.e. `misskey:_misskey_quote`)
|
|
||||||
|
|
||||||
One should not add property that has defined before by other implementation, or add custom variant value to "well-known" property.
|
|
||||||
|
|
||||||
## Reviewers guide
|
## Reviewers guide
|
||||||
Be willing to comment on the good points and not just the things you want fixed 💯
|
Be willing to comment on the good points and not just the things you want fixed 💯
|
||||||
|
|
||||||
読んでおくといいやつ
|
|
||||||
- https://blog.lacolaco.net/posts/1e2cf439b3c2/
|
|
||||||
- https://konifar-zatsu.hatenadiary.jp/entry/2024/11/05/192421
|
|
||||||
|
|
||||||
### Review perspective
|
### Review perspective
|
||||||
- Scope
|
- Scope
|
||||||
- Are the goals of the PR clear?
|
- Are the goals of the PR clear?
|
||||||
|
@ -136,8 +116,7 @@ You can improve our translations with your Crowdin account.
|
||||||
Your changes in Crowdin are automatically submitted as a PR (with the title "New Crowdin translations") to the repository.
|
Your changes in Crowdin are automatically submitted as a PR (with the title "New Crowdin translations") to the repository.
|
||||||
The owner [@syuilo](https://github.com/syuilo) merges the PR into the develop branch before the next release.
|
The owner [@syuilo](https://github.com/syuilo) merges the PR into the develop branch before the next release.
|
||||||
|
|
||||||
If your language is not listed in Crowdin, please open an issue. We will add it to Crowdin.
|
If your language is not listed in Crowdin, please open an issue.
|
||||||
For newly added languages, once the translation progress per language exceeds 70%, it will be officially introduced into Misskey and made available to users.
|
|
||||||
|
|
||||||
![Crowdin](https://d322cqt584bo4o.cloudfront.net/misskey/localized.svg)
|
![Crowdin](https://d322cqt584bo4o.cloudfront.net/misskey/localized.svg)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
_lang_: "Català"
|
_lang_: "Català"
|
||||||
headlineMisskey: "Una xarxa connectada per notes"
|
headlineMisskey: "Una xarxa connectada per notes"
|
||||||
introMisskey: "Benvingut! Misskey és un servei de microblogging descentralitzat de codi obert.\nCrea \"notes\" per compartir els teus pensaments amb tots els que t'envolten. 📡\nAmb \"reaccions\", també pots expressar ràpidament els teus sentiments sobre les notes de tothom. 👍\nExplorem un món nou! 🚀"
|
introMisskey: "Benvingut! Misskey és un servei de microblogging descentralitzat de codi obert.\nCrea \"notes\" per compartir els teus pensaments amb tots els que t'envolten. 📡\nAmb \"reaccions\", també pots expressar ràpidament els teus sentiments sobre les notes de tothom. 👍\nExplorem un món nou! 🚀"
|
||||||
poweredByMisskeyDescription: "{name} És un dels serveis (anomenats instàncies de Misskey) que utilitzen la plataforma de codi obert <b>Misskey</b>."
|
poweredByMisskeyDescription: "{name} És un del serveis (anomenats instàncies de Misskey) que utilitzen la plataforma de codi obert <b>Misskey</b>."
|
||||||
monthAndDay: "{day}/{month}"
|
monthAndDay: "{day}/{month}"
|
||||||
search: "Cercar"
|
search: "Cercar"
|
||||||
notifications: "Notificacions"
|
notifications: "Notificacions"
|
||||||
|
@ -10,7 +10,6 @@ username: "Nom d'usuari"
|
||||||
password: "Contrasenya"
|
password: "Contrasenya"
|
||||||
initialPasswordForSetup: "Contrasenya inicial per la configuració inicial"
|
initialPasswordForSetup: "Contrasenya inicial per la configuració inicial"
|
||||||
initialPasswordIsIncorrect: "La contrasenya no és correcta."
|
initialPasswordIsIncorrect: "La contrasenya no és correcta."
|
||||||
initialPasswordForSetupDescription: "Fes servir la contrasenya que has fet servir al fitxer de configuració, si tu mateix has instal·lat Misskey.\nSi fas servir una empresa d'allotjament de Misskey, fes servir la contrasenya que t'han donat.\nSi no has posat cap contrasenya deixar l'espai en blanc."
|
|
||||||
forgotPassword: "Contrasenya oblidada"
|
forgotPassword: "Contrasenya oblidada"
|
||||||
fetchingAsApObject: "Cercant en el Fediverse..."
|
fetchingAsApObject: "Cercant en el Fediverse..."
|
||||||
ok: "OK"
|
ok: "OK"
|
||||||
|
@ -18,7 +17,7 @@ gotIt: "Ho he entès!"
|
||||||
cancel: "Cancel·lar"
|
cancel: "Cancel·lar"
|
||||||
noThankYou: "No, gràcies"
|
noThankYou: "No, gràcies"
|
||||||
enterUsername: "Introdueix el teu nom d'usuari"
|
enterUsername: "Introdueix el teu nom d'usuari"
|
||||||
renotedBy: "Impulsat per {user}"
|
renotedBy: "Impulsat per {usuari}"
|
||||||
noNotes: "Cap nota"
|
noNotes: "Cap nota"
|
||||||
noNotifications: "Cap notificació"
|
noNotifications: "Cap notificació"
|
||||||
instance: "Servidor"
|
instance: "Servidor"
|
||||||
|
@ -947,9 +946,6 @@ oneHour: "1 hora"
|
||||||
oneDay: "Un dia"
|
oneDay: "Un dia"
|
||||||
oneWeek: "Una setmana"
|
oneWeek: "Una setmana"
|
||||||
oneMonth: "Un mes"
|
oneMonth: "Un mes"
|
||||||
threeMonths: "3 mesos"
|
|
||||||
oneYear: "1 any"
|
|
||||||
threeDays: "3 dies"
|
|
||||||
reflectMayTakeTime: "Això pot trigar una estona a tenir efecte"
|
reflectMayTakeTime: "Això pot trigar una estona a tenir efecte"
|
||||||
failedToFetchAccountInformation: "No es pot obtenir la informació del compte"
|
failedToFetchAccountInformation: "No es pot obtenir la informació del compte"
|
||||||
rateLimitExceeded: "S'ha arribat al màxim de peticions"
|
rateLimitExceeded: "S'ha arribat al màxim de peticions"
|
||||||
|
@ -1090,7 +1086,6 @@ retryAllQueuesConfirmTitle: "Tornar a intentar-ho tot?"
|
||||||
retryAllQueuesConfirmText: "Això farà que la càrrega del servidor augmenti temporalment."
|
retryAllQueuesConfirmText: "Això farà que la càrrega del servidor augmenti temporalment."
|
||||||
enableChartsForRemoteUser: "Generar gràfiques d'usuaris remots"
|
enableChartsForRemoteUser: "Generar gràfiques d'usuaris remots"
|
||||||
enableChartsForFederatedInstances: "Generar gràfiques d'instàncies remotes"
|
enableChartsForFederatedInstances: "Generar gràfiques d'instàncies remotes"
|
||||||
enableStatsForFederatedInstances: "Activa les estadístiques de les instàncies remotes federades"
|
|
||||||
showClipButtonInNoteFooter: "Afegir \"Retall\" al menú d'acció de la nota"
|
showClipButtonInNoteFooter: "Afegir \"Retall\" al menú d'acció de la nota"
|
||||||
reactionsDisplaySize: "Mida de les reaccions"
|
reactionsDisplaySize: "Mida de les reaccions"
|
||||||
limitWidthOfReaction: "Limitar l'amplada màxima de la reacció i mostrar-les en una mida reduïda "
|
limitWidthOfReaction: "Limitar l'amplada màxima de la reacció i mostrar-les en una mida reduïda "
|
||||||
|
@ -1292,25 +1287,6 @@ passkeyVerificationSucceededButPasswordlessLoginDisabled: "La verificació de la
|
||||||
messageToFollower: "Missatge als meus seguidors"
|
messageToFollower: "Missatge als meus seguidors"
|
||||||
target: "Assumpte "
|
target: "Assumpte "
|
||||||
testCaptchaWarning: "És una característica dissenyada per a la prova de CAPTCHA. <strong>No l'utilitzes en l'entorn real.</strong>"
|
testCaptchaWarning: "És una característica dissenyada per a la prova de CAPTCHA. <strong>No l'utilitzes en l'entorn real.</strong>"
|
||||||
prohibitedWordsForNameOfUser: "Noms prohibits per escollir noms d'usuari "
|
|
||||||
prohibitedWordsForNameOfUserDescription: "Si qualsevol d'aquestes paraules es troben a un nom d'usuari la creació de l'usuari no es durà a terme. Als moderadors no els afecta aquesta restricció."
|
|
||||||
yourNameContainsProhibitedWords: "El nom conté paraules prohibides "
|
|
||||||
yourNameContainsProhibitedWordsDescription: "Si de veritat vols fer servir aquest nom posat en contacte amb l'administrador."
|
|
||||||
thisContentsAreMarkedAsSigninRequiredByAuthor: "L'autor requereix l'inici de sessió per poder veure"
|
|
||||||
lockdown: "Bloquejat"
|
|
||||||
pleaseSelectAccount: "Seleccionar un compte"
|
|
||||||
_accountSettings:
|
|
||||||
requireSigninToViewContents: "És obligatori l'inici de sessió per poder veure el contingut"
|
|
||||||
requireSigninToViewContentsDescription1: "Es requereix l'inici de sessió per poder veure totes les notes i el contingut que has creat. Amb això esperem evitar que els rastrejadors recopilin informació."
|
|
||||||
requireSigninToViewContentsDescription2: "També es desactivaran les vistes prèvies d'URLS (OGP), la incrustació a pàgines web i la visualització des de servidors que no admetin la citació de notes."
|
|
||||||
requireSigninToViewContentsDescription3: "Aquestes restriccions pot ser que no s'apliquin als continguts federats en servidors remots."
|
|
||||||
makeNotesFollowersOnlyBefore: "Permetre que les notes antigues només es mostrin als seguidors."
|
|
||||||
makeNotesFollowersOnlyBeforeDescription: "Mentre aquesta funció estigui activada, les notes que hagin passat la data i hora fixada o hagi passat els temps establert seran visibles només per als teus seguidors. Quan es desactivi, també es restableix l'estat públic de la nota."
|
|
||||||
makeNotesHiddenBefore: "Fes que les notes antigues siguin privades"
|
|
||||||
makeNotesHiddenBeforeDescription: "Mentres aquesta funció estigui activada les notes que hagin superat una data i hora fixada o hagi passat el temps establert només seran visibles per a tu. Si la desactives es restablirà també l'estat públic de les notes."
|
|
||||||
mayNotEffectForFederatedNotes: "Això pot ser que no afecti les notes federades."
|
|
||||||
notesHavePassedSpecifiedPeriod: "Notes publicades durant un període de temps especificat."
|
|
||||||
notesOlderThanSpecifiedDateAndTime: "Notes més antigues de la data i temps especificat "
|
|
||||||
_abuseUserReport:
|
_abuseUserReport:
|
||||||
forward: "Reenviar "
|
forward: "Reenviar "
|
||||||
forwardDescription: "Reenvia l'informe a una altra instància com un compte del sistema anònima."
|
forwardDescription: "Reenvia l'informe a una altra instància com un compte del sistema anònima."
|
||||||
|
@ -2175,11 +2151,8 @@ _auth:
|
||||||
permissionAsk: "Aquesta aplicació demana els següents permisos"
|
permissionAsk: "Aquesta aplicació demana els següents permisos"
|
||||||
pleaseGoBack: "Si us plau, torna a l'aplicació"
|
pleaseGoBack: "Si us plau, torna a l'aplicació"
|
||||||
callback: "Tornant a l'aplicació"
|
callback: "Tornant a l'aplicació"
|
||||||
accepted: "Accés garantit"
|
|
||||||
denied: "Accés denegat"
|
denied: "Accés denegat"
|
||||||
scopeUser: "Opera com si fossis aquest usuari"
|
|
||||||
pleaseLogin: "Si us plau, identificat per autoritzar l'aplicació."
|
pleaseLogin: "Si us plau, identificat per autoritzar l'aplicació."
|
||||||
byClickingYouWillBeRedirectedToThisUrl: "Si es garanteix l'accés, seràs redirigit automàticament a la següent adreça URL"
|
|
||||||
_antennaSources:
|
_antennaSources:
|
||||||
all: "Totes les publicacions"
|
all: "Totes les publicacions"
|
||||||
homeTimeline: "Publicacions dels usuaris seguits"
|
homeTimeline: "Publicacions dels usuaris seguits"
|
||||||
|
@ -2429,8 +2402,7 @@ _notification:
|
||||||
renotedBySomeUsers: "L'han impulsat {n} usuaris"
|
renotedBySomeUsers: "L'han impulsat {n} usuaris"
|
||||||
followedBySomeUsers: "Et segueixen {n} usuaris"
|
followedBySomeUsers: "Et segueixen {n} usuaris"
|
||||||
flushNotification: "Netejar notificacions"
|
flushNotification: "Netejar notificacions"
|
||||||
exportOfXCompleted: "Completada l'exportació de {x}"
|
exportOfXCompleted: "Completada l'exportació de {n}"
|
||||||
login: "Algú ha iniciat sessió "
|
|
||||||
_types:
|
_types:
|
||||||
all: "Tots"
|
all: "Tots"
|
||||||
note: "Notes noves"
|
note: "Notes noves"
|
||||||
|
@ -2513,8 +2485,6 @@ _webhookSettings:
|
||||||
abuseReport: "Quan reps un nou informe de moderació "
|
abuseReport: "Quan reps un nou informe de moderació "
|
||||||
abuseReportResolved: "Quan resols un informe de moderació "
|
abuseReportResolved: "Quan resols un informe de moderació "
|
||||||
userCreated: "Quan es crea un usuari"
|
userCreated: "Quan es crea un usuari"
|
||||||
inactiveModeratorsWarning: "Quan el compte d'un moderador no té activitat durant un temps"
|
|
||||||
inactiveModeratorsInvitationOnlyChanged: "Quan el compte d'un moderador no té activitat durant un temps, i el servidor es canvia a registre per invitacions"
|
|
||||||
deleteConfirm: "Segur que vols esborrar el webhook?"
|
deleteConfirm: "Segur que vols esborrar el webhook?"
|
||||||
testRemarks: "Si feu clic al botó a la dreta de l'interruptor, podeu enviar un webhook de prova amb dades dummy."
|
testRemarks: "Si feu clic al botó a la dreta de l'interruptor, podeu enviar un webhook de prova amb dades dummy."
|
||||||
_abuseReport:
|
_abuseReport:
|
||||||
|
@ -2642,81 +2612,8 @@ _dataSaver:
|
||||||
description: "Les imatges en miniatura que serveixen com a vista prèvia de les URLs no es tornaran a carregar."
|
description: "Les imatges en miniatura que serveixen com a vista prèvia de les URLs no es tornaran a carregar."
|
||||||
_code:
|
_code:
|
||||||
title: "Ressaltat del codi "
|
title: "Ressaltat del codi "
|
||||||
description: "Quan s'utilitza codi MFM, no es llegeix fins que es copiï. En els punts destacats del codi s'han de llegir els fitxers definits per a cada llengua que resulti alt, però no es poden llegir automàticament, per la qual cosa es poden reduir les quantitats de comunicació."
|
|
||||||
_hemisphere:
|
|
||||||
N: "Hemisferi Nord "
|
|
||||||
S: "Hemisferi Sud"
|
|
||||||
caption: "El fan servir alguns clients per determinar l'estació de l'any."
|
|
||||||
_reversi:
|
_reversi:
|
||||||
reversi: "Reversi"
|
|
||||||
gameSettings: "Opcions del joc"
|
|
||||||
chooseBoard: "Escull un taulell"
|
|
||||||
blackOrWhite: "Negres/Blanques"
|
|
||||||
blackIs: "{name} juga amb negres "
|
|
||||||
rules: "Regles"
|
|
||||||
thisGameIsStartedSoon: "El joc començarà en breu"
|
|
||||||
waitingForOther: "Esperant la tirada de l'oponent "
|
|
||||||
waitingForMe: "Esperant el teu torn"
|
|
||||||
waitingBoth: "Prepara't "
|
|
||||||
ready: "Preparat "
|
|
||||||
cancelReady: " No preparat "
|
|
||||||
opponentTurn: "Torn de l'oponent "
|
|
||||||
myTurn: "El teu torn"
|
|
||||||
turnOf: "Li toca a {name}"
|
|
||||||
pastTurnOf: "Torn de {name}"
|
|
||||||
surrender: "Rendeix-te"
|
|
||||||
surrendered: "T'has rendit"
|
|
||||||
timeout: "Temps esgotat"
|
|
||||||
drawn: "Empat"
|
|
||||||
won: "{name} ha guanyat"
|
|
||||||
black: "Negres"
|
|
||||||
white: "Blanques"
|
|
||||||
total: "Total"
|
total: "Total"
|
||||||
turnCount: "Torn {count}"
|
|
||||||
myGames: "Jugades"
|
|
||||||
allGames: "Totes les jugades"
|
|
||||||
ended: "Acabat"
|
|
||||||
playing: "Jugant"
|
|
||||||
isLlotheo: "Qui tingui menys pedres guanya (Llotheo)"
|
|
||||||
loopedMap: "Mapa de recursiu"
|
|
||||||
canPutEverywhere: "Les fitxes es poden posar a qualsevol lloc"
|
|
||||||
timeLimitForEachTurn: "Temps límit per jugada"
|
|
||||||
freeMatch: "Partida lliure"
|
|
||||||
lookingForPlayer: "Buscant contrincant..."
|
|
||||||
gameCanceled: "La partida s'ha cancel·lat "
|
|
||||||
shareToTlTheGameWhenStart: "Compartir la partida a la línia de temps quan comenci"
|
|
||||||
iStartedAGame: "La partida ha començat! #MisskeyReversi"
|
|
||||||
opponentHasSettingsChanged: "L'oponent h canviat la seva configuració "
|
|
||||||
allowIrregularRules: "Regles irregulars (totalment lliure)"
|
|
||||||
disallowIrregularRules: "Sense regles irregulars"
|
|
||||||
showBoardLabels: "Mostrar el número de línia i columna al tauler de joc"
|
|
||||||
useAvatarAsStone: "Fer servir els avatars dels usuaris com a fitxes"
|
|
||||||
_offlineScreen:
|
|
||||||
title: "Fora de línia - No es pot connectar amb el servidor"
|
|
||||||
header: "Impossible connectar amb el servidor"
|
|
||||||
_urlPreviewSetting:
|
|
||||||
title: "Configuració per a la previsualització de l'URL"
|
|
||||||
enable: "Activa la previsualització de l'URL"
|
|
||||||
timeout: "Temps màxim per carregar la previsualització de l'URL (ms)"
|
|
||||||
timeoutDescription: "Si l'obtenció de la previsualització triga més que el temps establert, no es generarà la vista prèvia."
|
|
||||||
maximumContentLength: "Longitud màxima del contingut (bytes)"
|
|
||||||
maximumContentLengthDescription: "Si la màxima longitud és més gran que aquest valor, la previsualització no es generarà."
|
|
||||||
requireContentLength: "Generar la previsualització només si es pot obtenir la longitud màxima "
|
|
||||||
requireContentLengthDescription: "Si l'altre servidor no proporciona la longitud màxima, la previsualització no es generarà."
|
|
||||||
userAgent: "User-Agent"
|
|
||||||
userAgentDescription: "Estableix l'User-Agent que és farà servir per a la recuperació de la vista prèvia. Si és deixa en blanc es farà servir l'User-Agent per defecte."
|
|
||||||
summaryProxy: "Proxy endpoints per generar vistes prèvies"
|
|
||||||
summaryProxyDescription: "La vista prèvia es genera fent servir Summaly proxy, no la genera el mateix Misskey."
|
|
||||||
summaryProxyDescription2: "Els següents paràmetres són passats al proxy com cadenes de consulta. Si el proxy no els admet, s'ignoren els valors configurats."
|
|
||||||
_mediaControls:
|
|
||||||
pip: "Imatge sobre impressionada "
|
|
||||||
playbackRate: "Velocitat de reproducció "
|
|
||||||
loop: "Reproducció en bucle"
|
|
||||||
_contextMenu:
|
|
||||||
title: "Menú contextual"
|
|
||||||
app: "Aplicació "
|
|
||||||
appWithShift: "Aplicació amb la tecla shift"
|
|
||||||
native: "Interfície del navegador"
|
|
||||||
_embedCodeGen:
|
_embedCodeGen:
|
||||||
title: "Personalitza el codi per incrustar"
|
title: "Personalitza el codi per incrustar"
|
||||||
header: "Mostrar la capçalera"
|
header: "Mostrar la capçalera"
|
||||||
|
@ -2731,9 +2628,3 @@ _embedCodeGen:
|
||||||
generateCode: "Crea el codi per incrustar"
|
generateCode: "Crea el codi per incrustar"
|
||||||
codeGenerated: "Codi generat"
|
codeGenerated: "Codi generat"
|
||||||
codeGeneratedDescription: "Si us plau, enganxeu el codi generat al lloc web."
|
codeGeneratedDescription: "Si us plau, enganxeu el codi generat al lloc web."
|
||||||
_selfXssPrevention:
|
|
||||||
warning: "Advertència "
|
|
||||||
title: "\"Enganxa qualsevol cosa en aquesta finestra\" És tot un engany."
|
|
||||||
description1: "Si posa alguna cosa al seu compte, un usuari malintencionat podria segrestar-la o robar-li les dades."
|
|
||||||
description2: "Si no entens que estàs fent %cpara ara mateix i tanca la finestra."
|
|
||||||
description3: "Per obtenir més informació. {link}"
|
|
||||||
|
|
|
@ -331,6 +331,7 @@ selectFile: "Select a file"
|
||||||
selectFiles: "Select files"
|
selectFiles: "Select files"
|
||||||
selectFolder: "Select a folder"
|
selectFolder: "Select a folder"
|
||||||
selectFolders: "Select folders"
|
selectFolders: "Select folders"
|
||||||
|
fileNotSelected: ""
|
||||||
renameFile: "Rename file"
|
renameFile: "Rename file"
|
||||||
folderName: "Folder name"
|
folderName: "Folder name"
|
||||||
createFolder: "Create a folder"
|
createFolder: "Create a folder"
|
||||||
|
@ -946,9 +947,6 @@ oneHour: "One hour"
|
||||||
oneDay: "One day"
|
oneDay: "One day"
|
||||||
oneWeek: "One week"
|
oneWeek: "One week"
|
||||||
oneMonth: "One month"
|
oneMonth: "One month"
|
||||||
threeMonths: "3 months"
|
|
||||||
oneYear: "1 year"
|
|
||||||
threeDays: "3 days"
|
|
||||||
reflectMayTakeTime: "It may take some time for this to be reflected."
|
reflectMayTakeTime: "It may take some time for this to be reflected."
|
||||||
failedToFetchAccountInformation: "Could not fetch account information"
|
failedToFetchAccountInformation: "Could not fetch account information"
|
||||||
rateLimitExceeded: "Rate limit exceeded"
|
rateLimitExceeded: "Rate limit exceeded"
|
||||||
|
@ -1089,7 +1087,6 @@ retryAllQueuesConfirmTitle: "Really retry all?"
|
||||||
retryAllQueuesConfirmText: "This will temporarily increase the server load."
|
retryAllQueuesConfirmText: "This will temporarily increase the server load."
|
||||||
enableChartsForRemoteUser: "Generate remote user data charts"
|
enableChartsForRemoteUser: "Generate remote user data charts"
|
||||||
enableChartsForFederatedInstances: "Generate remote instance data charts"
|
enableChartsForFederatedInstances: "Generate remote instance data charts"
|
||||||
enableStatsForFederatedInstances: "Receive remote server stats"
|
|
||||||
showClipButtonInNoteFooter: "Add \"Clip\" to note action menu"
|
showClipButtonInNoteFooter: "Add \"Clip\" to note action menu"
|
||||||
reactionsDisplaySize: "Reaction display size"
|
reactionsDisplaySize: "Reaction display size"
|
||||||
limitWidthOfReaction: "Limit the maximum width of reactions and display them in reduced size."
|
limitWidthOfReaction: "Limit the maximum width of reactions and display them in reduced size."
|
||||||
|
@ -1290,26 +1287,6 @@ passkeyVerificationFailed: "Passkey verification has failed."
|
||||||
passkeyVerificationSucceededButPasswordlessLoginDisabled: "Passkey verification has succeeded but password-less login is disabled."
|
passkeyVerificationSucceededButPasswordlessLoginDisabled: "Passkey verification has succeeded but password-less login is disabled."
|
||||||
messageToFollower: "Message to followers"
|
messageToFollower: "Message to followers"
|
||||||
target: "Target"
|
target: "Target"
|
||||||
testCaptchaWarning: "This function is intended for CAPTCHA testing purposes.\n<strong>Do not use in a production environment.</strong>"
|
|
||||||
prohibitedWordsForNameOfUser: "Prohibited words for user names"
|
|
||||||
prohibitedWordsForNameOfUserDescription: "If any of the strings in this list are included in the user's name, the name will be denied. Users with moderator privileges are not affected by this restriction."
|
|
||||||
yourNameContainsProhibitedWords: "Your name contains prohibited words"
|
|
||||||
yourNameContainsProhibitedWordsDescription: "If you wish to use this name, please contact your server administrator."
|
|
||||||
thisContentsAreMarkedAsSigninRequiredByAuthor: "Set by the author to require login to view"
|
|
||||||
lockdown: "Lockdown"
|
|
||||||
pleaseSelectAccount: "Select an account"
|
|
||||||
_accountSettings:
|
|
||||||
requireSigninToViewContents: "Require sign-in to view contents"
|
|
||||||
requireSigninToViewContentsDescription1: "Require login to view all notes and other content you have created. This will have the effect of preventing crawlers from collecting your information."
|
|
||||||
requireSigninToViewContentsDescription2: "Content will not be displayed in URL previews (OGP), embedded in web pages, or on servers that don't support note quotes."
|
|
||||||
requireSigninToViewContentsDescription3: "These restrictions may not apply to federated content from other remote servers."
|
|
||||||
makeNotesFollowersOnlyBefore: "Make past notes to be displayed only to followers"
|
|
||||||
makeNotesFollowersOnlyBeforeDescription: "While this feature is enabled, only followers can see notes past the set date and time or have been visible for a set time. When it is deactivated, the note publication status will also be restored."
|
|
||||||
makeNotesHiddenBefore: "Make past notes private"
|
|
||||||
makeNotesHiddenBeforeDescription: "While this feature is enabled, notes that are past the set date and time or have been visible only to you. When it is deactivated, the note publication status will also be restored."
|
|
||||||
mayNotEffectForFederatedNotes: "Notes federated to a remote server may not be effective."
|
|
||||||
notesHavePassedSpecifiedPeriod: "Note that the specified time has passed"
|
|
||||||
notesOlderThanSpecifiedDateAndTime: "Notes before the specified date and time"
|
|
||||||
_abuseUserReport:
|
_abuseUserReport:
|
||||||
forward: "Forward"
|
forward: "Forward"
|
||||||
forwardDescription: "Forward the report to a remote server as an anonymous system account."
|
forwardDescription: "Forward the report to a remote server as an anonymous system account."
|
||||||
|
@ -1454,7 +1431,6 @@ _serverSettings:
|
||||||
reactionsBufferingDescription: "When enabled, performance during reaction creation will be greatly improved, reducing the load on the database. However, Redis memory usage will increase."
|
reactionsBufferingDescription: "When enabled, performance during reaction creation will be greatly improved, reducing the load on the database. However, Redis memory usage will increase."
|
||||||
inquiryUrl: "Inquiry URL"
|
inquiryUrl: "Inquiry URL"
|
||||||
inquiryUrlDescription: "Specify a URL for the inquiry form to the server maintainer or a web page for the contact information."
|
inquiryUrlDescription: "Specify a URL for the inquiry form to the server maintainer or a web page for the contact information."
|
||||||
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "If no moderator activity is detected for a while, this setting will be automatically turned off to prevent spam."
|
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "Migrate another account to this one"
|
moveFrom: "Migrate another account to this one"
|
||||||
moveFromSub: "Create alias to another account"
|
moveFromSub: "Create alias to another account"
|
||||||
|
@ -2174,11 +2150,8 @@ _auth:
|
||||||
permissionAsk: "This application requests the following permissions"
|
permissionAsk: "This application requests the following permissions"
|
||||||
pleaseGoBack: "Please go back to the application"
|
pleaseGoBack: "Please go back to the application"
|
||||||
callback: "Returning to the application"
|
callback: "Returning to the application"
|
||||||
accepted: "Access granted"
|
|
||||||
denied: "Access denied"
|
denied: "Access denied"
|
||||||
scopeUser: "Operate as the following user"
|
|
||||||
pleaseLogin: "Please log in to authorize applications."
|
pleaseLogin: "Please log in to authorize applications."
|
||||||
byClickingYouWillBeRedirectedToThisUrl: "When access is granted, you will automatically be redirected to the following URL"
|
|
||||||
_antennaSources:
|
_antennaSources:
|
||||||
all: "All notes"
|
all: "All notes"
|
||||||
homeTimeline: "Notes from followed users"
|
homeTimeline: "Notes from followed users"
|
||||||
|
@ -2512,8 +2485,6 @@ _webhookSettings:
|
||||||
abuseReport: "When received a new report"
|
abuseReport: "When received a new report"
|
||||||
abuseReportResolved: "When resolved report"
|
abuseReportResolved: "When resolved report"
|
||||||
userCreated: "When user is created"
|
userCreated: "When user is created"
|
||||||
inactiveModeratorsWarning: "When moderators have been inactive for a while"
|
|
||||||
inactiveModeratorsInvitationOnlyChanged: "When a moderator has been inactive for a while, and the server is changed to invitation-only"
|
|
||||||
deleteConfirm: "Are you sure you want to delete the Webhook?"
|
deleteConfirm: "Are you sure you want to delete the Webhook?"
|
||||||
testRemarks: "Click the button to the right of the switch to send a test Webhook with dummy data."
|
testRemarks: "Click the button to the right of the switch to send a test Webhook with dummy data."
|
||||||
_abuseReport:
|
_abuseReport:
|
||||||
|
|
|
@ -8,8 +8,6 @@ search: "Buscar"
|
||||||
notifications: "Notificaciones"
|
notifications: "Notificaciones"
|
||||||
username: "Nombre de usuario"
|
username: "Nombre de usuario"
|
||||||
password: "Contraseña"
|
password: "Contraseña"
|
||||||
initialPasswordForSetup: "Contraseña para iniciar la inicialización"
|
|
||||||
initialPasswordIsIncorrect: "La contraseña para iniciar la configuración inicial es incorrecta."
|
|
||||||
forgotPassword: "Olvidé mi contraseña"
|
forgotPassword: "Olvidé mi contraseña"
|
||||||
fetchingAsApObject: "Buscando en el fediverso"
|
fetchingAsApObject: "Buscando en el fediverso"
|
||||||
ok: "OK"
|
ok: "OK"
|
||||||
|
@ -504,8 +502,6 @@ uiLanguage: "Idioma de visualización de la interfaz"
|
||||||
aboutX: "Acerca de {x}"
|
aboutX: "Acerca de {x}"
|
||||||
emojiStyle: "Estilo de emoji"
|
emojiStyle: "Estilo de emoji"
|
||||||
native: "Nativo"
|
native: "Nativo"
|
||||||
menuStyle: "Diseño del menú"
|
|
||||||
style: "Diseño"
|
|
||||||
showNoteActionsOnlyHover: "Mostrar acciones de la nota sólo al pasar el cursor"
|
showNoteActionsOnlyHover: "Mostrar acciones de la nota sólo al pasar el cursor"
|
||||||
showReactionsCount: "Mostrar el número de reacciones en las notas"
|
showReactionsCount: "Mostrar el número de reacciones en las notas"
|
||||||
noHistory: "No hay datos en el historial"
|
noHistory: "No hay datos en el historial"
|
||||||
|
@ -929,9 +925,6 @@ oneHour: "1 hora"
|
||||||
oneDay: "1 día"
|
oneDay: "1 día"
|
||||||
oneWeek: "1 semana"
|
oneWeek: "1 semana"
|
||||||
oneMonth: "1 mes"
|
oneMonth: "1 mes"
|
||||||
threeMonths: "Tres meses"
|
|
||||||
oneYear: "Un año"
|
|
||||||
threeDays: "Tres días"
|
|
||||||
reflectMayTakeTime: "Puede pasar un tiempo hasta que se reflejen los cambios"
|
reflectMayTakeTime: "Puede pasar un tiempo hasta que se reflejen los cambios"
|
||||||
failedToFetchAccountInformation: "No se pudo obtener información de la cuenta"
|
failedToFetchAccountInformation: "No se pudo obtener información de la cuenta"
|
||||||
rateLimitExceeded: "Se excedió el límite de peticiones"
|
rateLimitExceeded: "Se excedió el límite de peticiones"
|
||||||
|
@ -1247,14 +1240,6 @@ useNativeUIForVideoAudioPlayer: "Usar la interfaz del navegador cuando se reprod
|
||||||
keepOriginalFilename: "Mantener el nombre original del archivo"
|
keepOriginalFilename: "Mantener el nombre original del archivo"
|
||||||
noDescription: "No hay descripción"
|
noDescription: "No hay descripción"
|
||||||
alwaysConfirmFollow: "Confirmar siempre cuando se sigue a alguien"
|
alwaysConfirmFollow: "Confirmar siempre cuando se sigue a alguien"
|
||||||
inquiry: "Contacto"
|
|
||||||
tryAgain: "Por favor , inténtalo de nuevo"
|
|
||||||
performance: "Rendimiento"
|
|
||||||
unknownWebAuthnKey: "Esto no se ha registrado llave maestra."
|
|
||||||
messageToFollower: "Mensaje a seguidores"
|
|
||||||
_abuseUserReport:
|
|
||||||
accept: "Acepte"
|
|
||||||
reject: "repudio"
|
|
||||||
_delivery:
|
_delivery:
|
||||||
stop: "Suspendido"
|
stop: "Suspendido"
|
||||||
_type:
|
_type:
|
||||||
|
@ -2355,7 +2340,6 @@ _notification:
|
||||||
roleAssigned: "Rol asignado"
|
roleAssigned: "Rol asignado"
|
||||||
achievementEarned: "Logro desbloqueado"
|
achievementEarned: "Logro desbloqueado"
|
||||||
login: "Iniciar sesión"
|
login: "Iniciar sesión"
|
||||||
test: "Pruebas de nofiticaciones"
|
|
||||||
app: "Notificaciones desde aplicaciones"
|
app: "Notificaciones desde aplicaciones"
|
||||||
_actions:
|
_actions:
|
||||||
followBack: "Te sigue de vuelta"
|
followBack: "Te sigue de vuelta"
|
||||||
|
@ -2414,8 +2398,6 @@ _webhookSettings:
|
||||||
renote: "Cuando reciba un \"re-note\""
|
renote: "Cuando reciba un \"re-note\""
|
||||||
reaction: "Cuando se recibe una reacción"
|
reaction: "Cuando se recibe una reacción"
|
||||||
mention: "Cuando hay una mención"
|
mention: "Cuando hay una mención"
|
||||||
_systemEvents:
|
|
||||||
userCreated: "Cuando se crea el usuario."
|
|
||||||
_abuseReport:
|
_abuseReport:
|
||||||
_notificationRecipient:
|
_notificationRecipient:
|
||||||
_recipientType:
|
_recipientType:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
_lang_: "Magyar"
|
_lang_: "Japán"
|
||||||
monthAndDay: "{month}.{day}."
|
monthAndDay: "{month}.{day}."
|
||||||
search: "Keresés"
|
search: "Keresés"
|
||||||
notifications: "Értesítések"
|
notifications: "Értesítések"
|
||||||
|
|
|
@ -196,7 +196,6 @@ followConfirm: "Apakah kamu yakin ingin mengikuti {name}?"
|
||||||
proxyAccount: "Akun proksi"
|
proxyAccount: "Akun proksi"
|
||||||
proxyAccountDescription: "Akun proksi merupakan sebuah akun yang bertindak sebagai pengikut instansi luar untuk pengguna dalam kondisi tertentu. Sebagai contoh, ketika pengguna menambahkan seorang pengguna instansi luar ke dalam daftar, aktivitas dari pengguna instansi luar tidak akan disampaikan ke instansi apabila tidak ada pengguna lokal yang mengikuti pengguna tersebut, dengan begitu akun proksilah yang akan mengikutinya."
|
proxyAccountDescription: "Akun proksi merupakan sebuah akun yang bertindak sebagai pengikut instansi luar untuk pengguna dalam kondisi tertentu. Sebagai contoh, ketika pengguna menambahkan seorang pengguna instansi luar ke dalam daftar, aktivitas dari pengguna instansi luar tidak akan disampaikan ke instansi apabila tidak ada pengguna lokal yang mengikuti pengguna tersebut, dengan begitu akun proksilah yang akan mengikutinya."
|
||||||
host: "Host"
|
host: "Host"
|
||||||
selectSelf: "Pilih diri sendiri"
|
|
||||||
selectUser: "Pilih pengguna"
|
selectUser: "Pilih pengguna"
|
||||||
recipient: "Penerima"
|
recipient: "Penerima"
|
||||||
annotation: "Keterangan konten"
|
annotation: "Keterangan konten"
|
||||||
|
@ -233,7 +232,6 @@ blockedInstances: "Instansi terblokir"
|
||||||
blockedInstancesDescription: "Daftar nama host dari instansi yang diperlukan untuk diblokir. Instansi yang didaftarkan tidak akan dapat berkomunikasi dengan instansi ini."
|
blockedInstancesDescription: "Daftar nama host dari instansi yang diperlukan untuk diblokir. Instansi yang didaftarkan tidak akan dapat berkomunikasi dengan instansi ini."
|
||||||
silencedInstances: "Instansi yang disenyapkan"
|
silencedInstances: "Instansi yang disenyapkan"
|
||||||
silencedInstancesDescription: "Daftar nama host dari instansi yang ingin kamu senyapkan. Semua akun dari instansi yang terdaftar akan diperlakukan sebagai disenyapkan. Hal ini membuat akun hanya dapat membuat permintaan mengikuti, dan tidak dapat menyebutkan akun lokal apabila tidak mengikuti. Hal ini tidak akan mempengaruhi instansi yang diblokir."
|
silencedInstancesDescription: "Daftar nama host dari instansi yang ingin kamu senyapkan. Semua akun dari instansi yang terdaftar akan diperlakukan sebagai disenyapkan. Hal ini membuat akun hanya dapat membuat permintaan mengikuti, dan tidak dapat menyebutkan akun lokal apabila tidak mengikuti. Hal ini tidak akan mempengaruhi instansi yang diblokir."
|
||||||
federationAllowedHosts: "Server yang membolehkan federasi"
|
|
||||||
muteAndBlock: "Bisukan / Blokir"
|
muteAndBlock: "Bisukan / Blokir"
|
||||||
mutedUsers: "Pengguna yang dibisukan"
|
mutedUsers: "Pengguna yang dibisukan"
|
||||||
blockedUsers: "Pengguna yang diblokir"
|
blockedUsers: "Pengguna yang diblokir"
|
||||||
|
@ -332,7 +330,6 @@ renameFolder: "Ubah nama folder"
|
||||||
deleteFolder: "Hapus folder"
|
deleteFolder: "Hapus folder"
|
||||||
folder: "Folder"
|
folder: "Folder"
|
||||||
addFile: "Tambahkan berkas"
|
addFile: "Tambahkan berkas"
|
||||||
showFile: "Tampilkan berkas"
|
|
||||||
emptyDrive: "Drive kosong"
|
emptyDrive: "Drive kosong"
|
||||||
emptyFolder: "Folder kosong"
|
emptyFolder: "Folder kosong"
|
||||||
unableToDelete: "Tidak dapat menghapus"
|
unableToDelete: "Tidak dapat menghapus"
|
||||||
|
@ -507,8 +504,6 @@ uiLanguage: "Bahasa antarmuka pengguna"
|
||||||
aboutX: "Tentang {x}"
|
aboutX: "Tentang {x}"
|
||||||
emojiStyle: "Gaya emoji"
|
emojiStyle: "Gaya emoji"
|
||||||
native: "Native"
|
native: "Native"
|
||||||
menuStyle: "Gaya menu"
|
|
||||||
style: "Gaya"
|
|
||||||
showNoteActionsOnlyHover: "Hanya tampilkan aksi catatan saat ditunjuk"
|
showNoteActionsOnlyHover: "Hanya tampilkan aksi catatan saat ditunjuk"
|
||||||
showReactionsCount: "Lihat jumlah reaksi dalam catatan"
|
showReactionsCount: "Lihat jumlah reaksi dalam catatan"
|
||||||
noHistory: "Tidak ada riwayat"
|
noHistory: "Tidak ada riwayat"
|
||||||
|
@ -932,9 +927,6 @@ oneHour: "1 Jam"
|
||||||
oneDay: "1 Hari"
|
oneDay: "1 Hari"
|
||||||
oneWeek: "1 Bulan"
|
oneWeek: "1 Bulan"
|
||||||
oneMonth: "satu bulan"
|
oneMonth: "satu bulan"
|
||||||
threeMonths: "3 bulan"
|
|
||||||
oneYear: "1 tahun"
|
|
||||||
threeDays: "3 hari"
|
|
||||||
reflectMayTakeTime: "Mungkin perlu beberapa saat untuk dicerminkan."
|
reflectMayTakeTime: "Mungkin perlu beberapa saat untuk dicerminkan."
|
||||||
failedToFetchAccountInformation: "Gagal untuk mendapatkan informasi akun"
|
failedToFetchAccountInformation: "Gagal untuk mendapatkan informasi akun"
|
||||||
rateLimitExceeded: "Batas sudah terlampaui"
|
rateLimitExceeded: "Batas sudah terlampaui"
|
||||||
|
@ -1109,7 +1101,6 @@ preservedUsernames: "Nama pengguna tercadangkan"
|
||||||
preservedUsernamesDescription: "Daftar nama pengguna yang dicadangkan dipisah dengan baris baru. Nama pengguna berikut akan tidak dapat dipakai pada pembuatan akun normal, namun dapat digunakan oleh admin untuk membuat akun baru. Akun yang sudah ada dengan menggunakan nama pengguna ini tidak akan terpengaruh."
|
preservedUsernamesDescription: "Daftar nama pengguna yang dicadangkan dipisah dengan baris baru. Nama pengguna berikut akan tidak dapat dipakai pada pembuatan akun normal, namun dapat digunakan oleh admin untuk membuat akun baru. Akun yang sudah ada dengan menggunakan nama pengguna ini tidak akan terpengaruh."
|
||||||
createNoteFromTheFile: "Buat catatan dari berkas ini"
|
createNoteFromTheFile: "Buat catatan dari berkas ini"
|
||||||
archive: "Arsipkan"
|
archive: "Arsipkan"
|
||||||
archived: "Diarsipkan"
|
|
||||||
channelArchiveConfirmTitle: "Yakin untuk mengarsipkan {name}?"
|
channelArchiveConfirmTitle: "Yakin untuk mengarsipkan {name}?"
|
||||||
channelArchiveConfirmDescription: "Kanal yang diarsipkan tidak akan muncul pada daftar kanal atau hasil pencarian. Postingan baru juga tidak dapat ditambahkan lagi."
|
channelArchiveConfirmDescription: "Kanal yang diarsipkan tidak akan muncul pada daftar kanal atau hasil pencarian. Postingan baru juga tidak dapat ditambahkan lagi."
|
||||||
thisChannelArchived: "Kanal ini telah diarsipkan."
|
thisChannelArchived: "Kanal ini telah diarsipkan."
|
||||||
|
@ -1120,7 +1111,6 @@ preventAiLearning: "Tolak penggunaan Pembelajaran Mesin (AI Generatif)"
|
||||||
preventAiLearningDescription: "Minta perayap web untuk tidak menggunakan materi teks atau gambar yang telah diposting ke dalam set data Pembelajaran Mesin (Prediktif / Generatif). Hal ini dicapai dengan menambahkan flag HTML-Response \"noai\" ke masing-masing konten. Pencegahan penuh mungkin tidak dapat dicapai dengan flag ini, karena juga dapat diabaikan begitu saja."
|
preventAiLearningDescription: "Minta perayap web untuk tidak menggunakan materi teks atau gambar yang telah diposting ke dalam set data Pembelajaran Mesin (Prediktif / Generatif). Hal ini dicapai dengan menambahkan flag HTML-Response \"noai\" ke masing-masing konten. Pencegahan penuh mungkin tidak dapat dicapai dengan flag ini, karena juga dapat diabaikan begitu saja."
|
||||||
options: "Opsi peran"
|
options: "Opsi peran"
|
||||||
specifyUser: "Pengguna spesifik"
|
specifyUser: "Pengguna spesifik"
|
||||||
openTagPageConfirm: "Apakah ingin membuka laman tagar?"
|
|
||||||
failedToPreviewUrl: "Tidak dapat dipratinjau"
|
failedToPreviewUrl: "Tidak dapat dipratinjau"
|
||||||
update: "Perbarui"
|
update: "Perbarui"
|
||||||
rolesThatCanBeUsedThisEmojiAsReaction: "Peran yang dapat menggunakan emoji ini sebagai reaksi"
|
rolesThatCanBeUsedThisEmojiAsReaction: "Peran yang dapat menggunakan emoji ini sebagai reaksi"
|
||||||
|
@ -1253,18 +1243,6 @@ noDescription: "Tidak ada deskripsi"
|
||||||
alwaysConfirmFollow: "Selalu konfirmasi ketika mengikuti"
|
alwaysConfirmFollow: "Selalu konfirmasi ketika mengikuti"
|
||||||
inquiry: "Hubungi kami"
|
inquiry: "Hubungi kami"
|
||||||
tryAgain: "Silahkan coba lagi."
|
tryAgain: "Silahkan coba lagi."
|
||||||
createdLists: "Senarai yang dibuat"
|
|
||||||
createdAntennas: "Antena yang dibuat"
|
|
||||||
fromX: "Dari {x}"
|
|
||||||
noteOfThisUser: "Catatan oleh pengguna ini"
|
|
||||||
clipNoteLimitExceeded: "Klip ini tak bisa ditambahi lagi catatan."
|
|
||||||
performance: "Kinerja"
|
|
||||||
modified: "Diubah"
|
|
||||||
thereAreNChanges: "Ada {n} perubahan"
|
|
||||||
prohibitedWordsForNameOfUser: "Kata yang dilarang untuk nama pengguna"
|
|
||||||
_abuseUserReport:
|
|
||||||
accept: "Setuju"
|
|
||||||
reject: "Tolak"
|
|
||||||
_delivery:
|
_delivery:
|
||||||
status: "Status pengiriman"
|
status: "Status pengiriman"
|
||||||
stop: "Ditangguhkan"
|
stop: "Ditangguhkan"
|
||||||
|
@ -1729,8 +1707,6 @@ _role:
|
||||||
canSearchNotes: "Penggunaan pencarian catatan"
|
canSearchNotes: "Penggunaan pencarian catatan"
|
||||||
canUseTranslator: "Penggunaan penerjemah"
|
canUseTranslator: "Penggunaan penerjemah"
|
||||||
avatarDecorationLimit: "Jumlah maksimum dekorasi avatar yang dapat diterapkan"
|
avatarDecorationLimit: "Jumlah maksimum dekorasi avatar yang dapat diterapkan"
|
||||||
canImportAntennas: "Izinkan mengimpor antena"
|
|
||||||
canImportUserLists: "Izinkan mengimpor senarai"
|
|
||||||
_condition:
|
_condition:
|
||||||
roleAssignedTo: "Ditugaskan ke peran manual"
|
roleAssignedTo: "Ditugaskan ke peran manual"
|
||||||
isLocal: "Pengguna lokal"
|
isLocal: "Pengguna lokal"
|
||||||
|
@ -1967,7 +1943,6 @@ _soundSettings:
|
||||||
driveFileTypeWarnDescription: "Pilih berkas audio"
|
driveFileTypeWarnDescription: "Pilih berkas audio"
|
||||||
driveFileDurationWarn: "Audio ini terlalu panjang"
|
driveFileDurationWarn: "Audio ini terlalu panjang"
|
||||||
driveFileDurationWarnDescription: "Audio panjang dapat mengganggu penggunaan Misskey. Masih ingin melanjutkan?"
|
driveFileDurationWarnDescription: "Audio panjang dapat mengganggu penggunaan Misskey. Masih ingin melanjutkan?"
|
||||||
driveFileError: "Tak bisa memuat audio. Mohon ubah pengaturan"
|
|
||||||
_ago:
|
_ago:
|
||||||
future: "Masa depan"
|
future: "Masa depan"
|
||||||
justNow: "Baru saja"
|
justNow: "Baru saja"
|
||||||
|
@ -2440,8 +2415,6 @@ _abuseReport:
|
||||||
_notificationRecipient:
|
_notificationRecipient:
|
||||||
_recipientType:
|
_recipientType:
|
||||||
mail: "Surel"
|
mail: "Surel"
|
||||||
webhook: "Webhook"
|
|
||||||
keywords: "Kata kunci"
|
|
||||||
_moderationLogTypes:
|
_moderationLogTypes:
|
||||||
createRole: "Peran telah dibuat"
|
createRole: "Peran telah dibuat"
|
||||||
deleteRole: "Peran telah dihapus"
|
deleteRole: "Peran telah dihapus"
|
||||||
|
@ -2479,7 +2452,6 @@ _moderationLogTypes:
|
||||||
deleteAvatarDecoration: "Hapus dekorasi avatar"
|
deleteAvatarDecoration: "Hapus dekorasi avatar"
|
||||||
unsetUserAvatar: "Hapus avatar pengguna"
|
unsetUserAvatar: "Hapus avatar pengguna"
|
||||||
unsetUserBanner: "Hapus banner pengguna"
|
unsetUserBanner: "Hapus banner pengguna"
|
||||||
deleteAccount: "Akun dihapus"
|
|
||||||
_fileViewer:
|
_fileViewer:
|
||||||
title: "Rincian berkas"
|
title: "Rincian berkas"
|
||||||
type: "Jenis berkas"
|
type: "Jenis berkas"
|
||||||
|
|
114
locales/index.d.ts
vendored
114
locales/index.d.ts
vendored
|
@ -3806,18 +3806,6 @@ export interface Locale extends ILocale {
|
||||||
* 1ヶ月
|
* 1ヶ月
|
||||||
*/
|
*/
|
||||||
"oneMonth": string;
|
"oneMonth": string;
|
||||||
/**
|
|
||||||
* 3ヶ月
|
|
||||||
*/
|
|
||||||
"threeMonths": string;
|
|
||||||
/**
|
|
||||||
* 1年
|
|
||||||
*/
|
|
||||||
"oneYear": string;
|
|
||||||
/**
|
|
||||||
* 3日
|
|
||||||
*/
|
|
||||||
"threeDays": string;
|
|
||||||
/**
|
/**
|
||||||
* 反映されるまで時間がかかる場合があります。
|
* 反映されるまで時間がかかる場合があります。
|
||||||
*/
|
*/
|
||||||
|
@ -5202,68 +5190,6 @@ export interface Locale extends ILocale {
|
||||||
* 名前に禁止されている文字列が含まれています。この名前を使用したい場合は、サーバー管理者にお問い合わせください。
|
* 名前に禁止されている文字列が含まれています。この名前を使用したい場合は、サーバー管理者にお問い合わせください。
|
||||||
*/
|
*/
|
||||||
"yourNameContainsProhibitedWordsDescription": string;
|
"yourNameContainsProhibitedWordsDescription": string;
|
||||||
/**
|
|
||||||
* 投稿者により、表示にはログインが必要と設定されています
|
|
||||||
*/
|
|
||||||
"thisContentsAreMarkedAsSigninRequiredByAuthor": string;
|
|
||||||
/**
|
|
||||||
* ロックダウン
|
|
||||||
*/
|
|
||||||
"lockdown": string;
|
|
||||||
/**
|
|
||||||
* アカウントを選択してください
|
|
||||||
*/
|
|
||||||
"pleaseSelectAccount": string;
|
|
||||||
/**
|
|
||||||
* 利用可能なロール
|
|
||||||
*/
|
|
||||||
"availableRoles": string;
|
|
||||||
"_accountSettings": {
|
|
||||||
/**
|
|
||||||
* コンテンツの表示にログインを必須にする
|
|
||||||
*/
|
|
||||||
"requireSigninToViewContents": string;
|
|
||||||
/**
|
|
||||||
* あなたが作成した全てのノートなどのコンテンツを表示するのにログインを必須にします。クローラーに情報が収集されるのを防ぐ効果が期待できます。
|
|
||||||
*/
|
|
||||||
"requireSigninToViewContentsDescription1": string;
|
|
||||||
/**
|
|
||||||
* URLプレビュー(OGP)、Webページへの埋め込み、ノートの引用に対応していないサーバーからの表示も不可になります。
|
|
||||||
*/
|
|
||||||
"requireSigninToViewContentsDescription2": string;
|
|
||||||
/**
|
|
||||||
* リモートサーバーに連合されたコンテンツでは、これらの制限が適用されない場合があります。
|
|
||||||
*/
|
|
||||||
"requireSigninToViewContentsDescription3": string;
|
|
||||||
/**
|
|
||||||
* 過去のノートをフォロワーのみ表示可能にする
|
|
||||||
*/
|
|
||||||
"makeNotesFollowersOnlyBefore": string;
|
|
||||||
/**
|
|
||||||
* この機能が有効になっている間、設定された日時より過去、または設定された時間を経過しているノートがフォロワーのみ表示可能になります。無効に戻すと、ノートの公開状態も元に戻ります。
|
|
||||||
*/
|
|
||||||
"makeNotesFollowersOnlyBeforeDescription": string;
|
|
||||||
/**
|
|
||||||
* 過去のノートを非公開化する
|
|
||||||
*/
|
|
||||||
"makeNotesHiddenBefore": string;
|
|
||||||
/**
|
|
||||||
* この機能が有効になっている間、設定された日時より過去、または設定された時間を経過しているノートが自分のみ表示可能(非公開化)になります。無効に戻すと、ノートの公開状態も元に戻ります。
|
|
||||||
*/
|
|
||||||
"makeNotesHiddenBeforeDescription": string;
|
|
||||||
/**
|
|
||||||
* リモートサーバーに連合されたノートには効果が及ばない場合があります。
|
|
||||||
*/
|
|
||||||
"mayNotEffectForFederatedNotes": string;
|
|
||||||
/**
|
|
||||||
* 指定した時間を経過しているノート
|
|
||||||
*/
|
|
||||||
"notesHavePassedSpecifiedPeriod": string;
|
|
||||||
/**
|
|
||||||
* 指定した日時より前のノート
|
|
||||||
*/
|
|
||||||
"notesOlderThanSpecifiedDateAndTime": string;
|
|
||||||
};
|
|
||||||
"_abuseUserReport": {
|
"_abuseUserReport": {
|
||||||
/**
|
/**
|
||||||
* 転送
|
* 転送
|
||||||
|
@ -8456,26 +8382,14 @@ export interface Locale extends ILocale {
|
||||||
* アプリケーションに戻っています
|
* アプリケーションに戻っています
|
||||||
*/
|
*/
|
||||||
"callback": string;
|
"callback": string;
|
||||||
/**
|
|
||||||
* アクセスを許可しました
|
|
||||||
*/
|
|
||||||
"accepted": string;
|
|
||||||
/**
|
/**
|
||||||
* アクセスを拒否しました
|
* アクセスを拒否しました
|
||||||
*/
|
*/
|
||||||
"denied": string;
|
"denied": string;
|
||||||
/**
|
|
||||||
* 以下のユーザーとして操作しています
|
|
||||||
*/
|
|
||||||
"scopeUser": string;
|
|
||||||
/**
|
/**
|
||||||
* アプリケーションにアクセス許可を与えるには、ログインが必要です。
|
* アプリケーションにアクセス許可を与えるには、ログインが必要です。
|
||||||
*/
|
*/
|
||||||
"pleaseLogin": string;
|
"pleaseLogin": string;
|
||||||
/**
|
|
||||||
* アクセスを許可すると、自動で以下のURLに遷移します
|
|
||||||
*/
|
|
||||||
"byClickingYouWillBeRedirectedToThisUrl": string;
|
|
||||||
};
|
};
|
||||||
"_antennaSources": {
|
"_antennaSources": {
|
||||||
/**
|
/**
|
||||||
|
@ -9357,7 +9271,7 @@ export interface Locale extends ILocale {
|
||||||
*/
|
*/
|
||||||
"youGotQuote": ParameterizedString<"name">;
|
"youGotQuote": ParameterizedString<"name">;
|
||||||
/**
|
/**
|
||||||
* {name}がリノートしました
|
* {name}がRenoteしました
|
||||||
*/
|
*/
|
||||||
"youRenoted": ParameterizedString<"name">;
|
"youRenoted": ParameterizedString<"name">;
|
||||||
/**
|
/**
|
||||||
|
@ -9462,7 +9376,7 @@ export interface Locale extends ILocale {
|
||||||
*/
|
*/
|
||||||
"reply": string;
|
"reply": string;
|
||||||
/**
|
/**
|
||||||
* リノート
|
* Renote
|
||||||
*/
|
*/
|
||||||
"renote": string;
|
"renote": string;
|
||||||
/**
|
/**
|
||||||
|
@ -9520,7 +9434,7 @@ export interface Locale extends ILocale {
|
||||||
*/
|
*/
|
||||||
"reply": string;
|
"reply": string;
|
||||||
/**
|
/**
|
||||||
* リノート
|
* Renote
|
||||||
*/
|
*/
|
||||||
"renote": string;
|
"renote": string;
|
||||||
};
|
};
|
||||||
|
@ -10557,28 +10471,6 @@ export interface Locale extends ILocale {
|
||||||
*/
|
*/
|
||||||
"codeGeneratedDescription": string;
|
"codeGeneratedDescription": string;
|
||||||
};
|
};
|
||||||
"_selfXssPrevention": {
|
|
||||||
/**
|
|
||||||
* 警告
|
|
||||||
*/
|
|
||||||
"warning": string;
|
|
||||||
/**
|
|
||||||
* 「この画面に何か貼り付けろ」はすべて詐欺です。
|
|
||||||
*/
|
|
||||||
"title": string;
|
|
||||||
/**
|
|
||||||
* ここに何かを貼り付けると、悪意のあるユーザーにアカウントを乗っ取られたり、個人情報を盗まれたりする可能性があります。
|
|
||||||
*/
|
|
||||||
"description1": string;
|
|
||||||
/**
|
|
||||||
* 貼り付けようとしているものが何なのかを正確に理解していない場合は、%c今すぐ作業を中止してこのウィンドウを閉じてください。
|
|
||||||
*/
|
|
||||||
"description2": string;
|
|
||||||
/**
|
|
||||||
* 詳しくはこちらをご確認ください。 {link}
|
|
||||||
*/
|
|
||||||
"description3": ParameterizedString<"link">;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
declare const locales: {
|
declare const locales: {
|
||||||
[lang: string]: Locale;
|
[lang: string]: Locale;
|
||||||
|
|
|
@ -15,7 +15,6 @@ const merge = (...args) => args.reduce((a, c) => ({
|
||||||
|
|
||||||
const languages = [
|
const languages = [
|
||||||
'ar-SA',
|
'ar-SA',
|
||||||
'ca-ES',
|
|
||||||
'cs-CZ',
|
'cs-CZ',
|
||||||
'da-DK',
|
'da-DK',
|
||||||
'de-DE',
|
'de-DE',
|
||||||
|
|
|
@ -68,7 +68,7 @@ reply: "Rispondi"
|
||||||
loadMore: "Mostra di più"
|
loadMore: "Mostra di più"
|
||||||
showMore: "Espandi"
|
showMore: "Espandi"
|
||||||
showLess: "Comprimi"
|
showLess: "Comprimi"
|
||||||
youGotNewFollower: "Hai un nuovo Follower"
|
youGotNewFollower: "Adesso ti segue"
|
||||||
receiveFollowRequest: "Hai ricevuto una richiesta di follow"
|
receiveFollowRequest: "Hai ricevuto una richiesta di follow"
|
||||||
followRequestAccepted: "Ha accettato la tua richiesta di follow"
|
followRequestAccepted: "Ha accettato la tua richiesta di follow"
|
||||||
mention: "Menzioni"
|
mention: "Menzioni"
|
||||||
|
@ -80,14 +80,14 @@ export: "Esporta"
|
||||||
files: "Allegati"
|
files: "Allegati"
|
||||||
download: "Scarica"
|
download: "Scarica"
|
||||||
driveFileDeleteConfirm: "Vuoi davvero eliminare il file \"{name}\", e le Note a cui è stato allegato?"
|
driveFileDeleteConfirm: "Vuoi davvero eliminare il file \"{name}\", e le Note a cui è stato allegato?"
|
||||||
unfollowConfirm: "Vuoi davvero togliere il Following a {name}?"
|
unfollowConfirm: "Vuoi davvero smettere di seguire {name}?"
|
||||||
exportRequested: "Hai richiesto un'esportazione, e potrebbe volerci tempo. Quando sarà compiuta, il file verrà aggiunto direttamente al Drive."
|
exportRequested: "Hai richiesto un'esportazione, e potrebbe volerci tempo. Quando sarà compiuta, il file verrà aggiunto direttamente al Drive."
|
||||||
importRequested: "Hai richiesto un'importazione. Potrebbe richiedere un po' di tempo."
|
importRequested: "Hai richiesto un'importazione. Potrebbe richiedere un po' di tempo."
|
||||||
lists: "Liste"
|
lists: "Liste"
|
||||||
noLists: "Nessuna lista"
|
noLists: "Nessuna lista"
|
||||||
note: "Nota"
|
note: "Nota"
|
||||||
notes: "Note"
|
notes: "Note"
|
||||||
following: "Following"
|
following: "Follow"
|
||||||
followers: "Follower"
|
followers: "Follower"
|
||||||
followsYou: "Follower"
|
followsYou: "Follower"
|
||||||
createList: "Aggiungi una nuova lista"
|
createList: "Aggiungi una nuova lista"
|
||||||
|
@ -106,7 +106,7 @@ defaultNoteVisibility: "Privacy predefinita delle note"
|
||||||
follow: "Segui"
|
follow: "Segui"
|
||||||
followRequest: "Richiesta di follow"
|
followRequest: "Richiesta di follow"
|
||||||
followRequests: "Richieste di follow"
|
followRequests: "Richieste di follow"
|
||||||
unfollow: "Togli Following"
|
unfollow: "Smetti di seguire"
|
||||||
followRequestPending: "Richiesta in approvazione"
|
followRequestPending: "Richiesta in approvazione"
|
||||||
enterEmoji: "Inserisci emoji"
|
enterEmoji: "Inserisci emoji"
|
||||||
renote: "Rinota"
|
renote: "Rinota"
|
||||||
|
@ -195,7 +195,7 @@ setWallpaper: "Imposta sfondo"
|
||||||
removeWallpaper: "Elimina lo sfondo"
|
removeWallpaper: "Elimina lo sfondo"
|
||||||
searchWith: "Cerca: {q}"
|
searchWith: "Cerca: {q}"
|
||||||
youHaveNoLists: "Non hai ancora creato nessuna lista"
|
youHaveNoLists: "Non hai ancora creato nessuna lista"
|
||||||
followConfirm: "Confermi il Following a {name}?"
|
followConfirm: "Vuoi seguire {name}?"
|
||||||
proxyAccount: "Profilo proxy"
|
proxyAccount: "Profilo proxy"
|
||||||
proxyAccountDescription: "Un profilo proxy funziona come follower per i profili remoti, sotto certe condizioni. Ad esempio, quando un profilo locale ne inserisce uno remoto in una lista (senza seguirlo), se nessun altro segue quel profilo remoto, le attività non possono essere distribuite. Dunque, il profilo proxy le seguirà per tutti."
|
proxyAccountDescription: "Un profilo proxy funziona come follower per i profili remoti, sotto certe condizioni. Ad esempio, quando un profilo locale ne inserisce uno remoto in una lista (senza seguirlo), se nessun altro segue quel profilo remoto, le attività non possono essere distribuite. Dunque, il profilo proxy le seguirà per tutti."
|
||||||
host: "Host"
|
host: "Host"
|
||||||
|
@ -263,7 +263,7 @@ all: "Tutte"
|
||||||
subscribing: "Iscrizione"
|
subscribing: "Iscrizione"
|
||||||
publishing: "Pubblicazione"
|
publishing: "Pubblicazione"
|
||||||
notResponding: "Nessuna risposta"
|
notResponding: "Nessuna risposta"
|
||||||
instanceFollowing: "Istanza Following"
|
instanceFollowing: "Seguiti dall'istanza"
|
||||||
instanceFollowers: "Follower dell'istanza"
|
instanceFollowers: "Follower dell'istanza"
|
||||||
instanceUsers: "Profili nell'istanza"
|
instanceUsers: "Profili nell'istanza"
|
||||||
changePassword: "Aggiorna Password"
|
changePassword: "Aggiorna Password"
|
||||||
|
@ -615,7 +615,7 @@ unsetUserBannerConfirm: "Vuoi davvero rimuovere l'intestazione dal profilo?"
|
||||||
deleteAllFiles: "Elimina tutti i file"
|
deleteAllFiles: "Elimina tutti i file"
|
||||||
deleteAllFilesConfirm: "Vuoi davvero eliminare tutti i file?"
|
deleteAllFilesConfirm: "Vuoi davvero eliminare tutti i file?"
|
||||||
removeAllFollowing: "Annulla tutti i follow"
|
removeAllFollowing: "Annulla tutti i follow"
|
||||||
removeAllFollowingDescription: "Togli il Following a tutti i profili su {host}. Utile, ad esempio, quando l'istanza non esiste più."
|
removeAllFollowingDescription: "Cancella tutti i follows del server {host}. Per favore, esegui se, ad esempio, l'istanza non esiste più."
|
||||||
userSuspended: "L'utente è in sospensione"
|
userSuspended: "L'utente è in sospensione"
|
||||||
userSilenced: "Profilo silenziato"
|
userSilenced: "Profilo silenziato"
|
||||||
yourAccountSuspendedTitle: "Questo profilo è sospeso"
|
yourAccountSuspendedTitle: "Questo profilo è sospeso"
|
||||||
|
@ -688,7 +688,7 @@ hardWordMute: "Filtro parole forte"
|
||||||
regexpError: "errore regex"
|
regexpError: "errore regex"
|
||||||
regexpErrorDescription: "Si è verificato un errore nell'espressione regolare alla riga {line} della parola muta {tab}:"
|
regexpErrorDescription: "Si è verificato un errore nell'espressione regolare alla riga {line} della parola muta {tab}:"
|
||||||
instanceMute: "Silenziare l'istanza"
|
instanceMute: "Silenziare l'istanza"
|
||||||
userSaysSomething: "{name} ha detto qualcosa"
|
userSaysSomething: "{name} ha parlato"
|
||||||
makeActive: "Attiva"
|
makeActive: "Attiva"
|
||||||
display: "Visualizza"
|
display: "Visualizza"
|
||||||
copy: "Copia"
|
copy: "Copia"
|
||||||
|
@ -703,7 +703,7 @@ notificationSetting: "Impostazioni notifiche"
|
||||||
notificationSettingDesc: "Seleziona il tipo di notifiche da visualizzare."
|
notificationSettingDesc: "Seleziona il tipo di notifiche da visualizzare."
|
||||||
useGlobalSetting: "Usa impostazioni generali"
|
useGlobalSetting: "Usa impostazioni generali"
|
||||||
useGlobalSettingDesc: "Quando attiva, verranno utilizzate le impostazioni notifiche del profilo. Altrimenti si possono segliere impostazioni personalizzate."
|
useGlobalSettingDesc: "Quando attiva, verranno utilizzate le impostazioni notifiche del profilo. Altrimenti si possono segliere impostazioni personalizzate."
|
||||||
other: "Eccetera"
|
other: "Ulteriori"
|
||||||
regenerateLoginToken: "Genera di nuovo un token di connessione"
|
regenerateLoginToken: "Genera di nuovo un token di connessione"
|
||||||
regenerateLoginTokenDescription: "Genera un nuovo token di autenticazione. Solitamente questa operazione non è necessaria: quando si genera un nuovo token, tutti i dispositivi vanno disconnessi."
|
regenerateLoginTokenDescription: "Genera un nuovo token di autenticazione. Solitamente questa operazione non è necessaria: quando si genera un nuovo token, tutti i dispositivi vanno disconnessi."
|
||||||
theKeywordWhenSearchingForCustomEmoji: "Questa sarà la parola chiave durante la ricerca di emoji personalizzate"
|
theKeywordWhenSearchingForCustomEmoji: "Questa sarà la parola chiave durante la ricerca di emoji personalizzate"
|
||||||
|
@ -747,7 +747,7 @@ repliesCount: "Numero di risposte inviate"
|
||||||
renotesCount: "Numero di note che hai ricondiviso"
|
renotesCount: "Numero di note che hai ricondiviso"
|
||||||
repliedCount: "Numero di risposte ricevute"
|
repliedCount: "Numero di risposte ricevute"
|
||||||
renotedCount: "Numero delle tue note ricondivise"
|
renotedCount: "Numero delle tue note ricondivise"
|
||||||
followingCount: "Numero di Following"
|
followingCount: "Numero di profili seguiti"
|
||||||
followersCount: "Numero di profili che ti seguono"
|
followersCount: "Numero di profili che ti seguono"
|
||||||
sentReactionsCount: "Numero di reazioni inviate"
|
sentReactionsCount: "Numero di reazioni inviate"
|
||||||
receivedReactionsCount: "Numero di reazioni ricevute"
|
receivedReactionsCount: "Numero di reazioni ricevute"
|
||||||
|
@ -901,8 +901,8 @@ pubSub: "Publish/Subscribe del profilo"
|
||||||
lastCommunication: "La comunicazione più recente"
|
lastCommunication: "La comunicazione più recente"
|
||||||
resolved: "Risolto"
|
resolved: "Risolto"
|
||||||
unresolved: "Non risolto"
|
unresolved: "Non risolto"
|
||||||
breakFollow: "Rimuovi Follower"
|
breakFollow: "Impedire di seguirmi"
|
||||||
breakFollowConfirm: "Vuoi davvero togliere questo Follower?"
|
breakFollowConfirm: "Vuoi davvero che questo profilo smetta di seguirti?"
|
||||||
itsOn: "Abilitato"
|
itsOn: "Abilitato"
|
||||||
itsOff: "Disabilitato"
|
itsOff: "Disabilitato"
|
||||||
on: "Acceso"
|
on: "Acceso"
|
||||||
|
@ -917,7 +917,7 @@ makeReactionsPublicDescription: "La lista delle reazioni che avete fatto è a di
|
||||||
classic: "Classico"
|
classic: "Classico"
|
||||||
muteThread: "Silenziare conversazione"
|
muteThread: "Silenziare conversazione"
|
||||||
unmuteThread: "Riattiva la conversazione"
|
unmuteThread: "Riattiva la conversazione"
|
||||||
followingVisibility: "Visibilità dei Following"
|
followingVisibility: "Visibilità dei profili seguiti"
|
||||||
followersVisibility: "Visibilità dei profili che ti seguono"
|
followersVisibility: "Visibilità dei profili che ti seguono"
|
||||||
continueThread: "Altre conversazioni"
|
continueThread: "Altre conversazioni"
|
||||||
deleteAccountConfirm: "Così verrà eliminato il profilo. Vuoi procedere?"
|
deleteAccountConfirm: "Così verrà eliminato il profilo. Vuoi procedere?"
|
||||||
|
@ -947,9 +947,6 @@ oneHour: "1 ora"
|
||||||
oneDay: "1 giorno"
|
oneDay: "1 giorno"
|
||||||
oneWeek: "1 settimana"
|
oneWeek: "1 settimana"
|
||||||
oneMonth: "Un mese"
|
oneMonth: "Un mese"
|
||||||
threeMonths: "3 mesi"
|
|
||||||
oneYear: "1 anno"
|
|
||||||
threeDays: "3 giorni"
|
|
||||||
reflectMayTakeTime: "Potrebbe essere necessario un po' di tempo perché ciò abbia effetto."
|
reflectMayTakeTime: "Potrebbe essere necessario un po' di tempo perché ciò abbia effetto."
|
||||||
failedToFetchAccountInformation: "Impossibile recuperare le informazioni sul profilo"
|
failedToFetchAccountInformation: "Impossibile recuperare le informazioni sul profilo"
|
||||||
rateLimitExceeded: "Superato il limite di richieste."
|
rateLimitExceeded: "Superato il limite di richieste."
|
||||||
|
@ -968,7 +965,7 @@ driveCapOverrideLabel: "Modificare la capienza del Drive per questo profilo"
|
||||||
driveCapOverrideCaption: "Se viene specificato meno di 0, viene annullato."
|
driveCapOverrideCaption: "Se viene specificato meno di 0, viene annullato."
|
||||||
requireAdminForView: "Per visualizzarli, è necessario aver effettuato l'accesso con un profilo amministratore."
|
requireAdminForView: "Per visualizzarli, è necessario aver effettuato l'accesso con un profilo amministratore."
|
||||||
isSystemAccount: "Questi profili vengono creati e gestiti automaticamente dal sistema"
|
isSystemAccount: "Questi profili vengono creati e gestiti automaticamente dal sistema"
|
||||||
typeToConfirm: "Digita {x} per continuare"
|
typeToConfirm: "Per eseguire questa operazione, digitare {x}"
|
||||||
deleteAccount: "Eliminazione profilo"
|
deleteAccount: "Eliminazione profilo"
|
||||||
document: "Documento"
|
document: "Documento"
|
||||||
numberOfPageCache: "Numero di pagine cache"
|
numberOfPageCache: "Numero di pagine cache"
|
||||||
|
@ -1023,7 +1020,7 @@ neverShow: "Non mostrare più"
|
||||||
remindMeLater: "Rimanda"
|
remindMeLater: "Rimanda"
|
||||||
didYouLikeMisskey: "Ti piace Misskey?"
|
didYouLikeMisskey: "Ti piace Misskey?"
|
||||||
pleaseDonate: "Misskey è il software libero utilizzato su {host}. Offrendo una donazione è più facile continuare a svilupparlo!"
|
pleaseDonate: "Misskey è il software libero utilizzato su {host}. Offrendo una donazione è più facile continuare a svilupparlo!"
|
||||||
correspondingSourceIsAvailable: "Il codice sorgente corrispondente è disponibile su {anchor}."
|
correspondingSourceIsAvailable: ""
|
||||||
roles: "Ruoli"
|
roles: "Ruoli"
|
||||||
role: "Ruolo"
|
role: "Ruolo"
|
||||||
noRole: "Ruolo non trovato"
|
noRole: "Ruolo non trovato"
|
||||||
|
@ -1133,7 +1130,7 @@ channelArchiveConfirmDescription: "Un canale archiviato non compare nell'elenco
|
||||||
thisChannelArchived: "Questo canale è stato archiviato."
|
thisChannelArchived: "Questo canale è stato archiviato."
|
||||||
displayOfNote: "Visualizzazione delle Note"
|
displayOfNote: "Visualizzazione delle Note"
|
||||||
initialAccountSetting: "Impostazioni iniziali del profilo"
|
initialAccountSetting: "Impostazioni iniziali del profilo"
|
||||||
youFollowing: "Following"
|
youFollowing: "Seguiti"
|
||||||
preventAiLearning: "Impedisci l'apprendimento della IA"
|
preventAiLearning: "Impedisci l'apprendimento della IA"
|
||||||
preventAiLearningDescription: "Aggiungendo il campo \"noai\" alla risposta HTML, si indica ai Robot esterni di non usare testi e allegati per addestrare sistemi di Machine Learning (IA predittiva/generativa). Anche se è impossibile sapere se la richiesta venga onorata o semplicemente ignorata."
|
preventAiLearningDescription: "Aggiungendo il campo \"noai\" alla risposta HTML, si indica ai Robot esterni di non usare testi e allegati per addestrare sistemi di Machine Learning (IA predittiva/generativa). Anche se è impossibile sapere se la richiesta venga onorata o semplicemente ignorata."
|
||||||
options: "Opzioni del ruolo"
|
options: "Opzioni del ruolo"
|
||||||
|
@ -1296,21 +1293,6 @@ prohibitedWordsForNameOfUser: "Parole proibite (nome utente)"
|
||||||
prohibitedWordsForNameOfUserDescription: "Il sistema rifiuta di rinominare un utente, se il nome contiene qualsiasi parola nell'elenco. Sono esenti i profili con privilegi di moderazione."
|
prohibitedWordsForNameOfUserDescription: "Il sistema rifiuta di rinominare un utente, se il nome contiene qualsiasi parola nell'elenco. Sono esenti i profili con privilegi di moderazione."
|
||||||
yourNameContainsProhibitedWords: "Il nome che hai scelto contiene una o più parole vietate"
|
yourNameContainsProhibitedWords: "Il nome che hai scelto contiene una o più parole vietate"
|
||||||
yourNameContainsProhibitedWordsDescription: "Se desideri comunque utilizzare questo nome, contatta l''amministrazione."
|
yourNameContainsProhibitedWordsDescription: "Se desideri comunque utilizzare questo nome, contatta l''amministrazione."
|
||||||
thisContentsAreMarkedAsSigninRequiredByAuthor: "L'autore richiede di iscriversi per vedere il contenuto"
|
|
||||||
lockdown: "Isolamento"
|
|
||||||
pleaseSelectAccount: "Per favore, seleziona un profilo"
|
|
||||||
_accountSettings:
|
|
||||||
requireSigninToViewContents: "Per vedere il contenuto, è necessaria l'iscrizione"
|
|
||||||
requireSigninToViewContentsDescription1: "Richiedere l'iscrizione per visualizzare tutte le Note e gli altri contenuti che hai creato. Probabilmente l'effetto è impedire la raccolta di informazioni da parte dei bot crawler."
|
|
||||||
requireSigninToViewContentsDescription2: "La visualizzazione verrà disabilitata a server che non supportano l'anteprima URL (OGP), all'incorporamento nelle pagine Web e alla citazione delle Note."
|
|
||||||
requireSigninToViewContentsDescription3: "Queste restrizioni potrebbero non applicarsi al contenuto federato su server remoti."
|
|
||||||
makeNotesFollowersOnlyBefore: "Rendi visibili solo ai Follower le Note pubblicate in precedenza"
|
|
||||||
makeNotesFollowersOnlyBeforeDescription: "Mentre questa funzione è abilitata, le Note antecedenti al momento impostato, saranno visibili solo ai profili Follower. Disabilitandola nuovamente, verrà ripristinata anche la visibilità pubblica della Nota."
|
|
||||||
makeNotesHiddenBefore: "Nascondi le Note pubblicate in precedenza"
|
|
||||||
makeNotesHiddenBeforeDescription: "Mentre questa funzione è abilitata, le Note antecedenti al momento impostato, saranno visibili soltanto a te (private). Disabilitandola nuovamente, verrà ripristinata anche la visibilità pubblica della Nota."
|
|
||||||
mayNotEffectForFederatedNotes: "Le Note già federate su server remoti potrebbero non essere modificate."
|
|
||||||
notesHavePassedSpecifiedPeriod: "Note antecedenti al periodo specificato"
|
|
||||||
notesOlderThanSpecifiedDateAndTime: "Note antecedenti al momento specificato"
|
|
||||||
_abuseUserReport:
|
_abuseUserReport:
|
||||||
forward: "Inoltra"
|
forward: "Inoltra"
|
||||||
forwardDescription: "Inoltra il report al server remoto, per mezzo di account di sistema, anonimo."
|
forwardDescription: "Inoltra il report al server remoto, per mezzo di account di sistema, anonimo."
|
||||||
|
@ -1396,7 +1378,7 @@ _initialTutorial:
|
||||||
_timeline:
|
_timeline:
|
||||||
title: "Come funziona la Timeline"
|
title: "Come funziona la Timeline"
|
||||||
description1: "Misskey fornisce alcune Timeline (sequenze cronologiche di Note). Una di queste potrebbe essere stata disattivata dagli amministratori."
|
description1: "Misskey fornisce alcune Timeline (sequenze cronologiche di Note). Una di queste potrebbe essere stata disattivata dagli amministratori."
|
||||||
home: "le Note provenienti dai profili che segui (Following)."
|
home: "le Note provenienti dai profili che segui (follow)."
|
||||||
local: "tutte le Note pubblicate dai profili di questa istanza."
|
local: "tutte le Note pubblicate dai profili di questa istanza."
|
||||||
social: "sia le Note della Timeline Home che quelle della Timeline Locale, insieme!"
|
social: "sia le Note della Timeline Home che quelle della Timeline Locale, insieme!"
|
||||||
global: "le Note da pubblicate da tutte le altre istanze federate con la nostra."
|
global: "le Note da pubblicate da tutte le altre istanze federate con la nostra."
|
||||||
|
@ -1434,7 +1416,7 @@ _initialTutorial:
|
||||||
title: "Il tutorial è finito! 🎉"
|
title: "Il tutorial è finito! 🎉"
|
||||||
description: "Queste sono solamente alcune delle funzionalità principali di Misskey. Per ulteriori informazioni, {link}."
|
description: "Queste sono solamente alcune delle funzionalità principali di Misskey. Per ulteriori informazioni, {link}."
|
||||||
_timelineDescription:
|
_timelineDescription:
|
||||||
home: "Nella Timeline Home, la tua cronologia principale, puoi vedere le Note provenienti dai profili che segui (Following)."
|
home: "Nella Timeline Home, la tua cronologia principale, puoi vedere le Note provenienti dai profili che segui (follow)."
|
||||||
local: "La Timeline Locale, è una cronologia di Note pubblicate da tutti i profili iscritti su questo server."
|
local: "La Timeline Locale, è una cronologia di Note pubblicate da tutti i profili iscritti su questo server."
|
||||||
social: "La Timeline Sociale, unisce in ordine cronologico l'elenco di Note presenti nella Timeline Home e quella Locale."
|
social: "La Timeline Sociale, unisce in ordine cronologico l'elenco di Note presenti nella Timeline Home e quella Locale."
|
||||||
global: "La Timeline Federata ti consente di vedere le Note pubblicate dai profili di tutti gli altri server federati a questo."
|
global: "La Timeline Federata ti consente di vedere le Note pubblicate dai profili di tutti gli altri server federati a questo."
|
||||||
|
@ -1460,7 +1442,7 @@ _accountMigration:
|
||||||
moveFrom: "Migra un altro profilo dentro a questo"
|
moveFrom: "Migra un altro profilo dentro a questo"
|
||||||
moveFromSub: "Crea un alias verso un altro profilo remoto"
|
moveFromSub: "Crea un alias verso un altro profilo remoto"
|
||||||
moveFromLabel: "Profilo da cui migrare #{n}"
|
moveFromLabel: "Profilo da cui migrare #{n}"
|
||||||
moveFromDescription: "Se desideri spostare i Follower da un altro profilo a questo, devi prima creare un alias qui. Assicurati averlo creato PRIMA di eseguire l'attività! Inserisci l'indirizzo del profilo mittente in questo modo: @persona@istanza.it"
|
moveFromDescription: "Se desideri spostare i profili follower da un altro profilo a questo, devi prima creare un alias qui. Assicurati averlo creato PRIMA di eseguire l'attività! Inserisci l'indirizzo del profilo mittente in questo modo: @persona@istanza.it"
|
||||||
moveTo: "Migrare questo profilo verso un un altro"
|
moveTo: "Migrare questo profilo verso un un altro"
|
||||||
moveToLabel: "Profilo verso cui migrare"
|
moveToLabel: "Profilo verso cui migrare"
|
||||||
moveCannotBeUndone: "La migrazione è irreversibile, non può essere interrotta o annullata."
|
moveCannotBeUndone: "La migrazione è irreversibile, non può essere interrotta o annullata."
|
||||||
|
@ -1469,7 +1451,7 @@ _accountMigration:
|
||||||
startMigration: "Avvia la migrazione"
|
startMigration: "Avvia la migrazione"
|
||||||
migrationConfirm: "Vuoi davvero migrare questo profilo su {account}? L'azione è irreversibile e non potrai più utilizzare questo profilo nel suo stato originale.\nInoltre, assicurati di aver già creato un alias sull'account a cui ti stai trasferendo."
|
migrationConfirm: "Vuoi davvero migrare questo profilo su {account}? L'azione è irreversibile e non potrai più utilizzare questo profilo nel suo stato originale.\nInoltre, assicurati di aver già creato un alias sull'account a cui ti stai trasferendo."
|
||||||
movedAndCannotBeUndone: "Il tuo profilo è stato migrato.\nLa migrazione non può essere annullata."
|
movedAndCannotBeUndone: "Il tuo profilo è stato migrato.\nLa migrazione non può essere annullata."
|
||||||
postMigrationNote: "Questo profilo smetterà di seguire gli altri profili remoti a 24 ore dal termine della migrazione.\nSia i Following che i Follower scenderanno a zero. I tuoi Follower saranno comunque in grado di vedere le Note per soli Follower, poiché non smetteranno di seguirti."
|
postMigrationNote: "Questo profilo smetterà di seguire gli altri profili remoti a 24 ore dal termine della migrazione.\nSia i Follow che i Follower scenderanno a zero. I tuoi follower saranno comunque in grado di vedere le Note per soli follower, poiché non smetteranno di seguirti."
|
||||||
movedTo: "Profilo verso cui migrare"
|
movedTo: "Profilo verso cui migrare"
|
||||||
_achievements:
|
_achievements:
|
||||||
earnedAt: "Data di conseguimento"
|
earnedAt: "Data di conseguimento"
|
||||||
|
@ -1862,7 +1844,7 @@ _gallery:
|
||||||
unlike: "Non mi piace più"
|
unlike: "Non mi piace più"
|
||||||
_email:
|
_email:
|
||||||
_follow:
|
_follow:
|
||||||
title: "Follower aggiuntivo"
|
title: "Adesso ti segue"
|
||||||
_receiveFollowRequest:
|
_receiveFollowRequest:
|
||||||
title: "Hai ricevuto una richiesta di follow"
|
title: "Hai ricevuto una richiesta di follow"
|
||||||
_plugin:
|
_plugin:
|
||||||
|
@ -1926,7 +1908,7 @@ _channel:
|
||||||
removeBanner: "Rimuovi intestazione"
|
removeBanner: "Rimuovi intestazione"
|
||||||
featured: "Di tendenza"
|
featured: "Di tendenza"
|
||||||
owned: "I miei canali"
|
owned: "I miei canali"
|
||||||
following: "Following"
|
following: "Seguiti"
|
||||||
usersCount: "{n} partecipanti"
|
usersCount: "{n} partecipanti"
|
||||||
notesCount: "{n} note"
|
notesCount: "{n} note"
|
||||||
nameAndDescription: "Nome e descrizione"
|
nameAndDescription: "Nome e descrizione"
|
||||||
|
@ -2092,7 +2074,7 @@ _permissions:
|
||||||
"read:favorites": "Visualizza i tuoi preferiti"
|
"read:favorites": "Visualizza i tuoi preferiti"
|
||||||
"write:favorites": "Gestisci i tuoi preferiti"
|
"write:favorites": "Gestisci i tuoi preferiti"
|
||||||
"read:following": "Vedi le informazioni di follow"
|
"read:following": "Vedi le informazioni di follow"
|
||||||
"write:following": "Aggiungere e togliere Following"
|
"write:following": "Following di altri profili"
|
||||||
"read:messaging": "Visualizzare la chat"
|
"read:messaging": "Visualizzare la chat"
|
||||||
"write:messaging": "Gestire la chat"
|
"write:messaging": "Gestire la chat"
|
||||||
"read:mutes": "Vedi i profili silenziati"
|
"read:mutes": "Vedi i profili silenziati"
|
||||||
|
@ -2175,14 +2157,11 @@ _auth:
|
||||||
permissionAsk: "Questa app richiede le seguenti autorizzazioni:"
|
permissionAsk: "Questa app richiede le seguenti autorizzazioni:"
|
||||||
pleaseGoBack: "Si prega di ritornare sulla app"
|
pleaseGoBack: "Si prega di ritornare sulla app"
|
||||||
callback: "Ritornando sulla app"
|
callback: "Ritornando sulla app"
|
||||||
accepted: "Accesso concesso"
|
|
||||||
denied: "Accesso negato"
|
denied: "Accesso negato"
|
||||||
scopeUser: "Sto funzionando per il seguente profilo"
|
|
||||||
pleaseLogin: "Per favore accedi al tuo account per cambiare i permessi dell'applicazione"
|
pleaseLogin: "Per favore accedi al tuo account per cambiare i permessi dell'applicazione"
|
||||||
byClickingYouWillBeRedirectedToThisUrl: "Consentendo l'accesso, si verrà reindirizzati presso questo indirizzo URL"
|
|
||||||
_antennaSources:
|
_antennaSources:
|
||||||
all: "Tutte le note"
|
all: "Tutte le note"
|
||||||
homeTimeline: "Note dai tuoi Following"
|
homeTimeline: "Note dagli utenti che segui"
|
||||||
users: "Note dagli utenti selezionati"
|
users: "Note dagli utenti selezionati"
|
||||||
userList: "Note dagli utenti della lista selezionata"
|
userList: "Note dagli utenti della lista selezionata"
|
||||||
userBlacklist: "Tutte le Note tranne quelle di uno o più profili specificati"
|
userBlacklist: "Tutte le Note tranne quelle di uno o più profili specificati"
|
||||||
|
@ -2295,7 +2274,7 @@ _exportOrImport:
|
||||||
allNotes: "Tutte le note"
|
allNotes: "Tutte le note"
|
||||||
favoritedNotes: "Note preferite"
|
favoritedNotes: "Note preferite"
|
||||||
clips: "Clip"
|
clips: "Clip"
|
||||||
followingList: "Following"
|
followingList: "Follow"
|
||||||
muteList: "Elenco profili silenziati"
|
muteList: "Elenco profili silenziati"
|
||||||
blockingList: "Elenco profili bloccati"
|
blockingList: "Elenco profili bloccati"
|
||||||
userLists: "Liste"
|
userLists: "Liste"
|
||||||
|
@ -2411,7 +2390,7 @@ _notification:
|
||||||
youGotReply: "{name} ti ha risposto"
|
youGotReply: "{name} ti ha risposto"
|
||||||
youGotQuote: "{name} ha citato la tua Nota e ha detto"
|
youGotQuote: "{name} ha citato la tua Nota e ha detto"
|
||||||
youRenoted: "{name} ha rinotato"
|
youRenoted: "{name} ha rinotato"
|
||||||
youWereFollowed: "Follower aggiuntivo"
|
youWereFollowed: "Adesso ti segue"
|
||||||
youReceivedFollowRequest: "Hai ricevuto una richiesta di follow"
|
youReceivedFollowRequest: "Hai ricevuto una richiesta di follow"
|
||||||
yourFollowRequestAccepted: "La tua richiesta di follow è stata accettata"
|
yourFollowRequestAccepted: "La tua richiesta di follow è stata accettata"
|
||||||
pollEnded: "Risultati del sondaggio."
|
pollEnded: "Risultati del sondaggio."
|
||||||
|
@ -2434,7 +2413,7 @@ _notification:
|
||||||
_types:
|
_types:
|
||||||
all: "Tutto"
|
all: "Tutto"
|
||||||
note: "Nuove Note"
|
note: "Nuove Note"
|
||||||
follow: "Follower"
|
follow: "Nuovi profili follower"
|
||||||
mention: "Menzioni"
|
mention: "Menzioni"
|
||||||
reply: "Risposte"
|
reply: "Risposte"
|
||||||
renote: "Rinota"
|
renote: "Rinota"
|
||||||
|
@ -2450,7 +2429,7 @@ _notification:
|
||||||
test: "Prova la notifica"
|
test: "Prova la notifica"
|
||||||
app: "Notifiche da applicazioni"
|
app: "Notifiche da applicazioni"
|
||||||
_actions:
|
_actions:
|
||||||
followBack: "Following ricambiato"
|
followBack: "Segui"
|
||||||
reply: "Rispondi"
|
reply: "Rispondi"
|
||||||
renote: "Rinota"
|
renote: "Rinota"
|
||||||
_deck:
|
_deck:
|
||||||
|
@ -2502,7 +2481,7 @@ _webhookSettings:
|
||||||
trigger: "Trigger"
|
trigger: "Trigger"
|
||||||
active: "Attivo"
|
active: "Attivo"
|
||||||
_events:
|
_events:
|
||||||
follow: "Quando aggiungi Following"
|
follow: "Quando segui un profilo"
|
||||||
followed: "Quando ti segue un profilo"
|
followed: "Quando ti segue un profilo"
|
||||||
note: "Quando pubblichi una Nota"
|
note: "Quando pubblichi una Nota"
|
||||||
reply: "Quando rispondono ad una Nota"
|
reply: "Quando rispondono ad una Nota"
|
||||||
|
@ -2731,9 +2710,3 @@ _embedCodeGen:
|
||||||
generateCode: "Crea il codice di incorporamento"
|
generateCode: "Crea il codice di incorporamento"
|
||||||
codeGenerated: "Codice generato"
|
codeGenerated: "Codice generato"
|
||||||
codeGeneratedDescription: "Incolla il codice appena generato sul tuo sito web."
|
codeGeneratedDescription: "Incolla il codice appena generato sul tuo sito web."
|
||||||
_selfXssPrevention:
|
|
||||||
warning: "Avviso"
|
|
||||||
title: "\"Incolla qualcosa su questa schermata\" è tutta una truffa."
|
|
||||||
description1: "Incollando qualcosa qui, malintenzionati potrebbero prendere il controllo del tuo profilo o rubare i tuoi dati personali."
|
|
||||||
description2: "Se non sai esattamente cosa stai facendo, %c smetti subito e chiudi questa finestra."
|
|
||||||
description3: "Per favore, controlla questo collegamento per avere maggiori dettagli. {link}"
|
|
||||||
|
|
|
@ -947,9 +947,6 @@ oneHour: "1時間"
|
||||||
oneDay: "1日"
|
oneDay: "1日"
|
||||||
oneWeek: "1週間"
|
oneWeek: "1週間"
|
||||||
oneMonth: "1ヶ月"
|
oneMonth: "1ヶ月"
|
||||||
threeMonths: "3ヶ月"
|
|
||||||
oneYear: "1年"
|
|
||||||
threeDays: "3日"
|
|
||||||
reflectMayTakeTime: "反映されるまで時間がかかる場合があります。"
|
reflectMayTakeTime: "反映されるまで時間がかかる場合があります。"
|
||||||
failedToFetchAccountInformation: "アカウント情報の取得に失敗しました"
|
failedToFetchAccountInformation: "アカウント情報の取得に失敗しました"
|
||||||
rateLimitExceeded: "レート制限を超えました"
|
rateLimitExceeded: "レート制限を超えました"
|
||||||
|
@ -1296,23 +1293,6 @@ prohibitedWordsForNameOfUser: "禁止ワード(ユーザーの名前)"
|
||||||
prohibitedWordsForNameOfUserDescription: "このリストに含まれる文字列がユーザーの名前に含まれる場合、ユーザーの名前の変更を拒否します。モデレーター権限を持つユーザーはこの制限の影響を受けません。"
|
prohibitedWordsForNameOfUserDescription: "このリストに含まれる文字列がユーザーの名前に含まれる場合、ユーザーの名前の変更を拒否します。モデレーター権限を持つユーザーはこの制限の影響を受けません。"
|
||||||
yourNameContainsProhibitedWords: "変更しようとした名前に禁止された文字列が含まれています"
|
yourNameContainsProhibitedWords: "変更しようとした名前に禁止された文字列が含まれています"
|
||||||
yourNameContainsProhibitedWordsDescription: "名前に禁止されている文字列が含まれています。この名前を使用したい場合は、サーバー管理者にお問い合わせください。"
|
yourNameContainsProhibitedWordsDescription: "名前に禁止されている文字列が含まれています。この名前を使用したい場合は、サーバー管理者にお問い合わせください。"
|
||||||
thisContentsAreMarkedAsSigninRequiredByAuthor: "投稿者により、表示にはログインが必要と設定されています"
|
|
||||||
lockdown: "ロックダウン"
|
|
||||||
pleaseSelectAccount: "アカウントを選択してください"
|
|
||||||
availableRoles: "利用可能なロール"
|
|
||||||
|
|
||||||
_accountSettings:
|
|
||||||
requireSigninToViewContents: "コンテンツの表示にログインを必須にする"
|
|
||||||
requireSigninToViewContentsDescription1: "あなたが作成した全てのノートなどのコンテンツを表示するのにログインを必須にします。クローラーに情報が収集されるのを防ぐ効果が期待できます。"
|
|
||||||
requireSigninToViewContentsDescription2: "URLプレビュー(OGP)、Webページへの埋め込み、ノートの引用に対応していないサーバーからの表示も不可になります。"
|
|
||||||
requireSigninToViewContentsDescription3: "リモートサーバーに連合されたコンテンツでは、これらの制限が適用されない場合があります。"
|
|
||||||
makeNotesFollowersOnlyBefore: "過去のノートをフォロワーのみ表示可能にする"
|
|
||||||
makeNotesFollowersOnlyBeforeDescription: "この機能が有効になっている間、設定された日時より過去、または設定された時間を経過しているノートがフォロワーのみ表示可能になります。無効に戻すと、ノートの公開状態も元に戻ります。"
|
|
||||||
makeNotesHiddenBefore: "過去のノートを非公開化する"
|
|
||||||
makeNotesHiddenBeforeDescription: "この機能が有効になっている間、設定された日時より過去、または設定された時間を経過しているノートが自分のみ表示可能(非公開化)になります。無効に戻すと、ノートの公開状態も元に戻ります。"
|
|
||||||
mayNotEffectForFederatedNotes: "リモートサーバーに連合されたノートには効果が及ばない場合があります。"
|
|
||||||
notesHavePassedSpecifiedPeriod: "指定した時間を経過しているノート"
|
|
||||||
notesOlderThanSpecifiedDateAndTime: "指定した日時より前のノート"
|
|
||||||
|
|
||||||
_abuseUserReport:
|
_abuseUserReport:
|
||||||
forward: "転送"
|
forward: "転送"
|
||||||
|
@ -2219,11 +2199,8 @@ _auth:
|
||||||
permissionAsk: "このアプリは次の権限を要求しています"
|
permissionAsk: "このアプリは次の権限を要求しています"
|
||||||
pleaseGoBack: "アプリケーションに戻ってやっていってください"
|
pleaseGoBack: "アプリケーションに戻ってやっていってください"
|
||||||
callback: "アプリケーションに戻っています"
|
callback: "アプリケーションに戻っています"
|
||||||
accepted: "アクセスを許可しました"
|
|
||||||
denied: "アクセスを拒否しました"
|
denied: "アクセスを拒否しました"
|
||||||
scopeUser: "以下のユーザーとして操作しています"
|
|
||||||
pleaseLogin: "アプリケーションにアクセス許可を与えるには、ログインが必要です。"
|
pleaseLogin: "アプリケーションにアクセス許可を与えるには、ログインが必要です。"
|
||||||
byClickingYouWillBeRedirectedToThisUrl: "アクセスを許可すると、自動で以下のURLに遷移します"
|
|
||||||
|
|
||||||
_antennaSources:
|
_antennaSources:
|
||||||
all: "全てのノート"
|
all: "全てのノート"
|
||||||
|
@ -2471,7 +2448,7 @@ _notification:
|
||||||
youGotMention: "{name}からのメンション"
|
youGotMention: "{name}からのメンション"
|
||||||
youGotReply: "{name}からのリプライ"
|
youGotReply: "{name}からのリプライ"
|
||||||
youGotQuote: "{name}による引用"
|
youGotQuote: "{name}による引用"
|
||||||
youRenoted: "{name}がリノートしました"
|
youRenoted: "{name}がRenoteしました"
|
||||||
youWereFollowed: "フォローされました"
|
youWereFollowed: "フォローされました"
|
||||||
youReceivedFollowRequest: "フォローリクエストが来ました"
|
youReceivedFollowRequest: "フォローリクエストが来ました"
|
||||||
yourFollowRequestAccepted: "フォローリクエストが承認されました"
|
yourFollowRequestAccepted: "フォローリクエストが承認されました"
|
||||||
|
@ -2499,7 +2476,7 @@ _notification:
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
mention: "メンション"
|
mention: "メンション"
|
||||||
reply: "リプライ"
|
reply: "リプライ"
|
||||||
renote: "リノート"
|
renote: "Renote"
|
||||||
quote: "引用"
|
quote: "引用"
|
||||||
reaction: "リアクション"
|
reaction: "リアクション"
|
||||||
pollEnded: "アンケートが終了"
|
pollEnded: "アンケートが終了"
|
||||||
|
@ -2515,7 +2492,7 @@ _notification:
|
||||||
_actions:
|
_actions:
|
||||||
followBack: "フォローバック"
|
followBack: "フォローバック"
|
||||||
reply: "返信"
|
reply: "返信"
|
||||||
renote: "リノート"
|
renote: "Renote"
|
||||||
|
|
||||||
_deck:
|
_deck:
|
||||||
alwaysShowMainColumn: "常にメインカラムを表示"
|
alwaysShowMainColumn: "常にメインカラムを表示"
|
||||||
|
@ -2812,10 +2789,3 @@ _embedCodeGen:
|
||||||
generateCode: "埋め込みコードを作成"
|
generateCode: "埋め込みコードを作成"
|
||||||
codeGenerated: "コードが生成されました"
|
codeGenerated: "コードが生成されました"
|
||||||
codeGeneratedDescription: "生成されたコードをウェブサイトに貼り付けてご利用ください。"
|
codeGeneratedDescription: "生成されたコードをウェブサイトに貼り付けてご利用ください。"
|
||||||
|
|
||||||
_selfXssPrevention:
|
|
||||||
warning: "警告"
|
|
||||||
title: "「この画面に何か貼り付けろ」はすべて詐欺です。"
|
|
||||||
description1: "ここに何かを貼り付けると、悪意のあるユーザーにアカウントを乗っ取られたり、個人情報を盗まれたりする可能性があります。"
|
|
||||||
description2: "貼り付けようとしているものが何なのかを正確に理解していない場合は、%c今すぐ作業を中止してこのウィンドウを閉じてください。"
|
|
||||||
description3: "詳しくはこちらをご確認ください。 {link}"
|
|
||||||
|
|
|
@ -8,9 +8,6 @@ search: "探す"
|
||||||
notifications: "通知"
|
notifications: "通知"
|
||||||
username: "ユーザー名"
|
username: "ユーザー名"
|
||||||
password: "パスワード"
|
password: "パスワード"
|
||||||
initialPasswordForSetup: "初期設定開始用パスワード"
|
|
||||||
initialPasswordIsIncorrect: "初期設定開始用のパスワードがちゃうで。"
|
|
||||||
initialPasswordForSetupDescription: "Miskkeyを自分でインストールしたんやったら、設定ファイルに入れたパスワードを使ってや。\nホスティングサービスを使っとるんやったら、サービスから言われたやつを使うんやで。\n別に何も設定しとらんのやったら、何も入れずに空けといてな。"
|
|
||||||
forgotPassword: "パスワード忘れたん?"
|
forgotPassword: "パスワード忘れたん?"
|
||||||
fetchingAsApObject: "今ちと連合に照会しとるで"
|
fetchingAsApObject: "今ちと連合に照会しとるで"
|
||||||
ok: "ええで"
|
ok: "ええで"
|
||||||
|
@ -239,8 +236,6 @@ silencedInstances: "サーバーサイレンスされてんねん"
|
||||||
silencedInstancesDescription: "サイレンスしたいサーバーのホストを改行で区切って設定すんで。サイレンスされたサーバーに所属するアカウントはすべて「サイレンス」として扱われ、フォローがすべてリクエストになり、フォロワーでないローカルアカウントにはメンションできなくなんねん。ブロックしたインスタンスには影響せーへんで。"
|
silencedInstancesDescription: "サイレンスしたいサーバーのホストを改行で区切って設定すんで。サイレンスされたサーバーに所属するアカウントはすべて「サイレンス」として扱われ、フォローがすべてリクエストになり、フォロワーでないローカルアカウントにはメンションできなくなんねん。ブロックしたインスタンスには影響せーへんで。"
|
||||||
mediaSilencedInstances: "メディアサイレンスしたサーバー"
|
mediaSilencedInstances: "メディアサイレンスしたサーバー"
|
||||||
mediaSilencedInstancesDescription: "メディアサイレンスしたいサーバーのホストを改行で区切って設定するで。メディアサイレンスされたサーバーに所属するアカウントによるファイルはすべてセンシティブとして扱われてな、カスタム絵文字が使えへんようになるで。ブロックしたインスタンスには影響せえへんで。"
|
mediaSilencedInstancesDescription: "メディアサイレンスしたいサーバーのホストを改行で区切って設定するで。メディアサイレンスされたサーバーに所属するアカウントによるファイルはすべてセンシティブとして扱われてな、カスタム絵文字が使えへんようになるで。ブロックしたインスタンスには影響せえへんで。"
|
||||||
federationAllowedHosts: "連合を許すサーバー"
|
|
||||||
federationAllowedHostsDescription: "連合してもいいサーバーのホストを行ごとに区切って設定してや。"
|
|
||||||
muteAndBlock: "ミュートとブロック"
|
muteAndBlock: "ミュートとブロック"
|
||||||
mutedUsers: "ミュートしとるユーザー"
|
mutedUsers: "ミュートしとるユーザー"
|
||||||
blockedUsers: "ブロックしとるユーザー"
|
blockedUsers: "ブロックしとるユーザー"
|
||||||
|
@ -339,7 +334,6 @@ renameFolder: "フォルダー名を変える"
|
||||||
deleteFolder: "フォルダーをほかす"
|
deleteFolder: "フォルダーをほかす"
|
||||||
folder: "フォルダー"
|
folder: "フォルダー"
|
||||||
addFile: "ファイルを追加"
|
addFile: "ファイルを追加"
|
||||||
showFile: "ファイル出す"
|
|
||||||
emptyDrive: "ドライブは空っぽや"
|
emptyDrive: "ドライブは空っぽや"
|
||||||
emptyFolder: "このフォルダーは空や"
|
emptyFolder: "このフォルダーは空や"
|
||||||
unableToDelete: "消せんかったわ"
|
unableToDelete: "消せんかったわ"
|
||||||
|
@ -454,7 +448,6 @@ totpDescription: "認証アプリ使うてワンタイムパスワードを入
|
||||||
moderator: "モデレーター"
|
moderator: "モデレーター"
|
||||||
moderation: "モデレーション"
|
moderation: "モデレーション"
|
||||||
moderationNote: "モデレーションノート"
|
moderationNote: "モデレーションノート"
|
||||||
moderationNoteDescription: "モデレーターの中だけで共有するメモを入れれるで。"
|
|
||||||
addModerationNote: "モデレーションノートを追加するで"
|
addModerationNote: "モデレーションノートを追加するで"
|
||||||
moderationLogs: "モデログ"
|
moderationLogs: "モデログ"
|
||||||
nUsersMentioned: "{n}人が投稿"
|
nUsersMentioned: "{n}人が投稿"
|
||||||
|
@ -516,10 +509,6 @@ uiLanguage: "UIの表示言語"
|
||||||
aboutX: "{x}について"
|
aboutX: "{x}について"
|
||||||
emojiStyle: "絵文字のスタイル"
|
emojiStyle: "絵文字のスタイル"
|
||||||
native: "ネイティブ"
|
native: "ネイティブ"
|
||||||
menuStyle: "メニューのスタイル"
|
|
||||||
style: "スタイル"
|
|
||||||
drawer: "ドロワー"
|
|
||||||
popup: "ポップアップ"
|
|
||||||
showNoteActionsOnlyHover: "ノートの操作部をホバー時のみ表示するで"
|
showNoteActionsOnlyHover: "ノートの操作部をホバー時のみ表示するで"
|
||||||
showReactionsCount: "ノートのリアクション数を表示する"
|
showReactionsCount: "ノートのリアクション数を表示する"
|
||||||
noHistory: "履歴はないわ。"
|
noHistory: "履歴はないわ。"
|
||||||
|
@ -602,8 +591,6 @@ ascendingOrder: "小さい順"
|
||||||
descendingOrder: "大きい順"
|
descendingOrder: "大きい順"
|
||||||
scratchpad: "スクラッチパッド"
|
scratchpad: "スクラッチパッド"
|
||||||
scratchpadDescription: "スクラッチパッドではAiScriptを色々試すことができるんや。Misskeyに対して色々できるコードを書いて動かしてみたり、結果を見たりできるで。"
|
scratchpadDescription: "スクラッチパッドではAiScriptを色々試すことができるんや。Misskeyに対して色々できるコードを書いて動かしてみたり、結果を見たりできるで。"
|
||||||
uiInspector: "UIインスペクター"
|
|
||||||
uiInspectorDescription: "メモリ上にあるUIコンポーネントのインスタンス一覧を見れるで。UIコンポーネントはUi:C:系関数で生成されるで。"
|
|
||||||
output: "出力"
|
output: "出力"
|
||||||
script: "スクリプト"
|
script: "スクリプト"
|
||||||
disablePagesScript: "Pagesのスクリプトを無効にしてや"
|
disablePagesScript: "Pagesのスクリプトを無効にしてや"
|
||||||
|
@ -922,7 +909,6 @@ followersVisibility: "フォロワーの公開範囲"
|
||||||
continueThread: "さらにスレッドを見るで"
|
continueThread: "さらにスレッドを見るで"
|
||||||
deleteAccountConfirm: "アカウントを消すで?ええんか?"
|
deleteAccountConfirm: "アカウントを消すで?ええんか?"
|
||||||
incorrectPassword: "パスワードがちゃうわ。"
|
incorrectPassword: "パスワードがちゃうわ。"
|
||||||
incorrectTotp: "ワンタイムパスワードが間違っとるか、期限が切れとるみたいやな。"
|
|
||||||
voteConfirm: "「{choice}」に投票するんか?"
|
voteConfirm: "「{choice}」に投票するんか?"
|
||||||
hide: "隠す"
|
hide: "隠す"
|
||||||
useDrawerReactionPickerForMobile: "ケータイとかのときドロワーで表示するで"
|
useDrawerReactionPickerForMobile: "ケータイとかのときドロワーで表示するで"
|
||||||
|
@ -1087,7 +1073,6 @@ retryAllQueuesConfirmTitle: "もっかいやってみるか?"
|
||||||
retryAllQueuesConfirmText: "一時的にサーバー重なるかもしれへんで。"
|
retryAllQueuesConfirmText: "一時的にサーバー重なるかもしれへんで。"
|
||||||
enableChartsForRemoteUser: "リモートユーザーのチャートを作る"
|
enableChartsForRemoteUser: "リモートユーザーのチャートを作る"
|
||||||
enableChartsForFederatedInstances: "リモートサーバーのチャートを作る"
|
enableChartsForFederatedInstances: "リモートサーバーのチャートを作る"
|
||||||
enableStatsForFederatedInstances: "リモートサーバの情報を取得"
|
|
||||||
showClipButtonInNoteFooter: "ノートのアクションにクリップを追加"
|
showClipButtonInNoteFooter: "ノートのアクションにクリップを追加"
|
||||||
reactionsDisplaySize: "ツッコミの表示のでかさ"
|
reactionsDisplaySize: "ツッコミの表示のでかさ"
|
||||||
limitWidthOfReaction: "ツッコミの最大横幅を制限して、ちっさく表示するで"
|
limitWidthOfReaction: "ツッコミの最大横幅を制限して、ちっさく表示するで"
|
||||||
|
@ -1274,32 +1259,6 @@ confirmWhenRevealingSensitiveMedia: "センシティブなメディアを表示
|
||||||
sensitiveMediaRevealConfirm: "センシティブなメディアやで。表示するんか?"
|
sensitiveMediaRevealConfirm: "センシティブなメディアやで。表示するんか?"
|
||||||
createdLists: "作成したリスト"
|
createdLists: "作成したリスト"
|
||||||
createdAntennas: "作成したアンテナ"
|
createdAntennas: "作成したアンテナ"
|
||||||
fromX: "{x}から"
|
|
||||||
genEmbedCode: "埋め込みコードを作る"
|
|
||||||
noteOfThisUser: "このユーザーのノート全部"
|
|
||||||
clipNoteLimitExceeded: "これ以上このクリップにノート追加でけへんわ。"
|
|
||||||
performance: "パフォーマンス"
|
|
||||||
modified: "変更あり"
|
|
||||||
discard: "やめる"
|
|
||||||
thereAreNChanges: "{n}個の変更があるみたいや"
|
|
||||||
signinWithPasskey: "パスキーでログイン"
|
|
||||||
unknownWebAuthnKey: "登録されてへんパスキーやな。"
|
|
||||||
passkeyVerificationFailed: "パスキーの検証に失敗したで。"
|
|
||||||
passkeyVerificationSucceededButPasswordlessLoginDisabled: "パスキーの検証は成功したんやけど、パスワードレスログインが無効になっとるわ。"
|
|
||||||
messageToFollower: "フォロワーへのメッセージ"
|
|
||||||
target: "対象"
|
|
||||||
testCaptchaWarning: "CAPTCHAのテストを目的としてるで。<strong>絶対に本番環境で使わんといてな。絶対やで。</strong>"
|
|
||||||
prohibitedWordsForNameOfUser: "禁止ワード(ユーザー名)"
|
|
||||||
prohibitedWordsForNameOfUserDescription: "このリストの中にある文字列がユーザー名に入っとったら、その名前に変更できひんようになるで。モデレーター権限があるユーザーは除外や。"
|
|
||||||
yourNameContainsProhibitedWords: "その名前は禁止した文字列が含まれとるで"
|
|
||||||
yourNameContainsProhibitedWordsDescription: "その名前は禁止した文字列が含まれとるわ。どうしてもって言うなら、サーバー管理者に言うしかないで。"
|
|
||||||
_abuseUserReport:
|
|
||||||
forward: "転送"
|
|
||||||
forwardDescription: "匿名のシステムアカウントってことにして、リモートサーバーに通報を転送するで。"
|
|
||||||
resolve: "解決"
|
|
||||||
accept: "ええよ"
|
|
||||||
reject: "あかんよ"
|
|
||||||
resolveTutorial: "内容がええなら「ええよ」を選ぶんや。肯定的に解決されたことにして記録するで。\n逆に、内容がだめなら「あかんよ」を選びいや。否定的に解決されたって記録しとくで。"
|
|
||||||
_delivery:
|
_delivery:
|
||||||
status: "配信状態"
|
status: "配信状態"
|
||||||
stop: "配信せぇへん"
|
stop: "配信せぇへん"
|
||||||
|
@ -1434,10 +1393,8 @@ _serverSettings:
|
||||||
fanoutTimelineDescription: "入れると、おのおのタイムラインを取得するときにめちゃめちゃ動きが良うなって、データベースが軽くなるわ。でも、Redisのメモリ使う量が増えるから注意な。サーバーのメモリが足りんときとか、動きが変なときは切れるで。"
|
fanoutTimelineDescription: "入れると、おのおのタイムラインを取得するときにめちゃめちゃ動きが良うなって、データベースが軽くなるわ。でも、Redisのメモリ使う量が増えるから注意な。サーバーのメモリが足りんときとか、動きが変なときは切れるで。"
|
||||||
fanoutTimelineDbFallback: "データベースにフォールバックする"
|
fanoutTimelineDbFallback: "データベースにフォールバックする"
|
||||||
fanoutTimelineDbFallbackDescription: "有効にしたら、タイムラインがキャッシュん中に入ってないときにDBにもっかい問い合わせるフォールバック処理ってのをやっとくで。切ったらフォールバック処理をやらんからサーバーはもっと軽くなんねんけど、タイムラインの取得範囲がちょっと減るで。"
|
fanoutTimelineDbFallbackDescription: "有効にしたら、タイムラインがキャッシュん中に入ってないときにDBにもっかい問い合わせるフォールバック処理ってのをやっとくで。切ったらフォールバック処理をやらんからサーバーはもっと軽くなんねんけど、タイムラインの取得範囲がちょっと減るで。"
|
||||||
reactionsBufferingDescription: "有効にしたら、リアクション作るときのパフォーマンスがすっごい上がって、データベースへの負荷が減るで。代わりに、Redisのメモリ使用は増えるで。"
|
|
||||||
inquiryUrl: "問い合わせ先URL"
|
inquiryUrl: "問い合わせ先URL"
|
||||||
inquiryUrlDescription: "サーバー運営者へのお問い合わせフォームのURLや、運営者の連絡先等が記載されたWebページのURLを指定するで。"
|
inquiryUrlDescription: "サーバー運営者へのお問い合わせフォームのURLや、運営者の連絡先等が記載されたWebページのURLを指定するで。"
|
||||||
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "一定期間モデレーターがおらんかったら、スパムを防ぐためにこの設定は勝手に切られるで。"
|
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "別のアカウントからこのアカウントに引っ越す"
|
moveFrom: "別のアカウントからこのアカウントに引っ越す"
|
||||||
moveFromSub: "別のアカウントへエイリアスを作る"
|
moveFromSub: "別のアカウントへエイリアスを作る"
|
||||||
|
@ -1769,11 +1726,6 @@ _role:
|
||||||
canSearchNotes: "ノート探せるかどうか"
|
canSearchNotes: "ノート探せるかどうか"
|
||||||
canUseTranslator: "翻訳使えるかどうか"
|
canUseTranslator: "翻訳使えるかどうか"
|
||||||
avatarDecorationLimit: "アイコンデコのいっちばんつけれる数"
|
avatarDecorationLimit: "アイコンデコのいっちばんつけれる数"
|
||||||
canImportAntennas: "アンテナのインポートを許す"
|
|
||||||
canImportBlocking: "ブロックのインポートを許す"
|
|
||||||
canImportFollowing: "フォローのインポートを許す"
|
|
||||||
canImportMuting: "ミュートのインポートを許す"
|
|
||||||
canImportUserLists: "リストのインポートを許す"
|
|
||||||
_condition:
|
_condition:
|
||||||
roleAssignedTo: "マニュアルロールにアサイン済み"
|
roleAssignedTo: "マニュアルロールにアサイン済み"
|
||||||
isLocal: "ローカルユーザー"
|
isLocal: "ローカルユーザー"
|
||||||
|
@ -2267,9 +2219,6 @@ _profile:
|
||||||
changeBanner: "バナー画像を変更するで"
|
changeBanner: "バナー画像を変更するで"
|
||||||
verifiedLinkDescription: "内容をURLに設定すると、リンク先のwebサイトに自分のプロフのリンクが含まれてる場合に所有者確認済みアイコンを表示させることができるで。"
|
verifiedLinkDescription: "内容をURLに設定すると、リンク先のwebサイトに自分のプロフのリンクが含まれてる場合に所有者確認済みアイコンを表示させることができるで。"
|
||||||
avatarDecorationMax: "最大{max}つまでデコつけれんで"
|
avatarDecorationMax: "最大{max}つまでデコつけれんで"
|
||||||
followedMessage: "フォローされたら返すメッセージ"
|
|
||||||
followedMessageDescription: "フォローされたときに相手に返す短めのメッセージを決めれるで。"
|
|
||||||
followedMessageDescriptionForLockedAccount: "フォローが承認制なら、フォローリクエストをOKしたときに見せるで。"
|
|
||||||
_exportOrImport:
|
_exportOrImport:
|
||||||
allNotes: "全てのノート"
|
allNotes: "全てのノート"
|
||||||
favoritedNotes: "お気に入りにしたノート"
|
favoritedNotes: "お気に入りにしたノート"
|
||||||
|
@ -2362,7 +2311,6 @@ _pages:
|
||||||
eyeCatchingImageSet: "アイキャッチ画像を設定"
|
eyeCatchingImageSet: "アイキャッチ画像を設定"
|
||||||
eyeCatchingImageRemove: "アイキャッチ画像を削除"
|
eyeCatchingImageRemove: "アイキャッチ画像を削除"
|
||||||
chooseBlock: "ブロックを追加"
|
chooseBlock: "ブロックを追加"
|
||||||
enterSectionTitle: "セクションタイトルを入れる"
|
|
||||||
selectType: "種類を選択"
|
selectType: "種類を選択"
|
||||||
contentBlocks: "コンテンツ"
|
contentBlocks: "コンテンツ"
|
||||||
inputBlocks: "入力"
|
inputBlocks: "入力"
|
||||||
|
@ -2408,15 +2356,13 @@ _notification:
|
||||||
renotedBySomeUsers: "{n}人がリノートしたで"
|
renotedBySomeUsers: "{n}人がリノートしたで"
|
||||||
followedBySomeUsers: "{n}人にフォローされたで"
|
followedBySomeUsers: "{n}人にフォローされたで"
|
||||||
flushNotification: "通知の履歴をリセットする"
|
flushNotification: "通知の履歴をリセットする"
|
||||||
exportOfXCompleted: "{x}のエクスポートが終わったわ"
|
|
||||||
login: "ログインしとったで"
|
|
||||||
_types:
|
_types:
|
||||||
all: "すべて"
|
all: "すべて"
|
||||||
note: "あんたらの新規投稿"
|
note: "あんたらの新規投稿"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
mention: "メンション"
|
mention: "メンション"
|
||||||
reply: "リプライ"
|
reply: "リプライ"
|
||||||
renote: "リノート"
|
renote: "Renote"
|
||||||
quote: "引用"
|
quote: "引用"
|
||||||
reaction: "ツッコミ"
|
reaction: "ツッコミ"
|
||||||
pollEnded: "アンケートが終了したで"
|
pollEnded: "アンケートが終了したで"
|
||||||
|
@ -2424,14 +2370,12 @@ _notification:
|
||||||
followRequestAccepted: "フォローが受理されたで"
|
followRequestAccepted: "フォローが受理されたで"
|
||||||
roleAssigned: "ロールが付与された"
|
roleAssigned: "ロールが付与された"
|
||||||
achievementEarned: "実績の獲得"
|
achievementEarned: "実績の獲得"
|
||||||
exportCompleted: "エクスポート終わった"
|
|
||||||
login: "ログイン"
|
login: "ログイン"
|
||||||
test: "通知テスト"
|
|
||||||
app: "連携アプリからの通知や"
|
app: "連携アプリからの通知や"
|
||||||
_actions:
|
_actions:
|
||||||
followBack: "フォローバック"
|
followBack: "フォローバック"
|
||||||
reply: "返事"
|
reply: "返事"
|
||||||
renote: "リノート"
|
renote: "Renote"
|
||||||
_deck:
|
_deck:
|
||||||
alwaysShowMainColumn: "いつもメインカラムを表示"
|
alwaysShowMainColumn: "いつもメインカラムを表示"
|
||||||
columnAlign: "カラムの寄せ"
|
columnAlign: "カラムの寄せ"
|
||||||
|
@ -2492,10 +2436,7 @@ _webhookSettings:
|
||||||
abuseReport: "ユーザーから通報があったとき"
|
abuseReport: "ユーザーから通報があったとき"
|
||||||
abuseReportResolved: "ユーザーからの通報を処理したとき"
|
abuseReportResolved: "ユーザーからの通報を処理したとき"
|
||||||
userCreated: "ユーザーが作成されたとき"
|
userCreated: "ユーザーが作成されたとき"
|
||||||
inactiveModeratorsWarning: "モデレーターがしばらくおらんかったとき"
|
|
||||||
inactiveModeratorsInvitationOnlyChanged: "モデレーターがしばらくおらんかったから、システムが招待制に変えたとき"
|
|
||||||
deleteConfirm: "ほんまにWebhookをほかしてもええんか?"
|
deleteConfirm: "ほんまにWebhookをほかしてもええんか?"
|
||||||
testRemarks: "スイッチ右のボタンを押すとダミーデータを使ったテスト用Webhookを送れるで。"
|
|
||||||
_abuseReport:
|
_abuseReport:
|
||||||
_notificationRecipient:
|
_notificationRecipient:
|
||||||
createRecipient: "通報の通知先を追加"
|
createRecipient: "通報の通知先を追加"
|
||||||
|
@ -2539,8 +2480,6 @@ _moderationLogTypes:
|
||||||
markSensitiveDriveFile: "ファイルをセンシティブ付与"
|
markSensitiveDriveFile: "ファイルをセンシティブ付与"
|
||||||
unmarkSensitiveDriveFile: "ファイルをセンシティブ解除"
|
unmarkSensitiveDriveFile: "ファイルをセンシティブ解除"
|
||||||
resolveAbuseReport: "苦情を解決"
|
resolveAbuseReport: "苦情を解決"
|
||||||
forwardAbuseReport: "通報を転送"
|
|
||||||
updateAbuseReportNote: "通報のモデレーションノート更新"
|
|
||||||
createInvitation: "招待コード作る"
|
createInvitation: "招待コード作る"
|
||||||
createAd: "広告を作んで"
|
createAd: "広告を作んで"
|
||||||
deleteAd: "広告ほかす"
|
deleteAd: "広告ほかす"
|
||||||
|
@ -2552,14 +2491,6 @@ _moderationLogTypes:
|
||||||
unsetUserBanner: "この子のバナー元に戻す"
|
unsetUserBanner: "この子のバナー元に戻す"
|
||||||
createSystemWebhook: "SystemWebhookを作成"
|
createSystemWebhook: "SystemWebhookを作成"
|
||||||
updateSystemWebhook: "SystemWebhookを更新"
|
updateSystemWebhook: "SystemWebhookを更新"
|
||||||
deleteSystemWebhook: "SystemWebhookを削除"
|
|
||||||
createAbuseReportNotificationRecipient: "通報の通知先作る"
|
|
||||||
updateAbuseReportNotificationRecipient: "通報の通知先更新"
|
|
||||||
deleteAbuseReportNotificationRecipient: "通報の通知先消す"
|
|
||||||
deleteAccount: "アカウント消す"
|
|
||||||
deletePage: "ページ消す"
|
|
||||||
deleteFlash: "Playをほかす"
|
|
||||||
deleteGalleryPost: "ギャラリーの投稿をほかす"
|
|
||||||
_fileViewer:
|
_fileViewer:
|
||||||
title: "ファイルの詳しい情報"
|
title: "ファイルの詳しい情報"
|
||||||
type: "ファイルの種類"
|
type: "ファイルの種類"
|
||||||
|
@ -2691,22 +2622,3 @@ _mediaControls:
|
||||||
pip: "ピクチャインピクチャ"
|
pip: "ピクチャインピクチャ"
|
||||||
playbackRate: "再生速度"
|
playbackRate: "再生速度"
|
||||||
loop: "ループ再生"
|
loop: "ループ再生"
|
||||||
_contextMenu:
|
|
||||||
title: "コンテキストメニュー"
|
|
||||||
app: "アプリ"
|
|
||||||
appWithShift: "Shiftキーでアプリ"
|
|
||||||
native: "ブラウザのUI"
|
|
||||||
_embedCodeGen:
|
|
||||||
title: "埋め込みコードをカスタム"
|
|
||||||
header: "ヘッダー出す"
|
|
||||||
autoload: "勝手に続きを読み込む(非推奨)"
|
|
||||||
maxHeight: "高さの最大値"
|
|
||||||
maxHeightDescription: "0は最大値を指定せえへんけど、ウィジェットが伸び続けるから絶対1以上にしといてや。"
|
|
||||||
maxHeightWarn: "高さの最大値が無効になっとるで。意図してへん変更なら、普通の値に戻してや。"
|
|
||||||
previewIsNotActual: "プレビュー画面で出せる範囲をはみ出したから、ホンマの表示とはちゃうとおもうで。"
|
|
||||||
rounded: "角丸める"
|
|
||||||
border: "外枠に枠線つける"
|
|
||||||
applyToPreview: "プレビューに反映"
|
|
||||||
generateCode: "埋め込みコード作る"
|
|
||||||
codeGenerated: "コード作ったで"
|
|
||||||
codeGeneratedDescription: "作ったコードはウェブサイトに貼っつけて使ってや。"
|
|
||||||
|
|
|
@ -468,7 +468,7 @@ tooShort: "억수로 짜립니다"
|
||||||
tooLong: "억수로 집니다"
|
tooLong: "억수로 집니다"
|
||||||
passwordMatched: "맞십니다"
|
passwordMatched: "맞십니다"
|
||||||
passwordNotMatched: "안 맞십니다"
|
passwordNotMatched: "안 맞십니다"
|
||||||
signinWith: "{x} 서 로그인"
|
signinWith: "{n}서 로그인"
|
||||||
signinFailed: "로그인 몬 했십니다. 고 이름이랑 비밀번호 제대로 썼는가 확인해 주이소."
|
signinFailed: "로그인 몬 했십니다. 고 이름이랑 비밀번호 제대로 썼는가 확인해 주이소."
|
||||||
or: "아니면"
|
or: "아니면"
|
||||||
language: "언어"
|
language: "언어"
|
||||||
|
@ -809,13 +809,11 @@ _notification:
|
||||||
_types:
|
_types:
|
||||||
follow: "팔로잉"
|
follow: "팔로잉"
|
||||||
mention: "멘션"
|
mention: "멘션"
|
||||||
renote: "리노트"
|
|
||||||
quote: "따오기"
|
quote: "따오기"
|
||||||
reaction: "반엉"
|
reaction: "반엉"
|
||||||
login: "로그인"
|
login: "로그인"
|
||||||
_actions:
|
_actions:
|
||||||
reply: "답하기"
|
reply: "답하기"
|
||||||
renote: "리노트"
|
|
||||||
_deck:
|
_deck:
|
||||||
_columns:
|
_columns:
|
||||||
notifications: "알림"
|
notifications: "알림"
|
||||||
|
|
|
@ -8,9 +8,6 @@ search: "Поиск"
|
||||||
notifications: "Уведомления"
|
notifications: "Уведомления"
|
||||||
username: "Имя пользователя"
|
username: "Имя пользователя"
|
||||||
password: "Пароль"
|
password: "Пароль"
|
||||||
initialPasswordForSetup: "Пароль для начала настройки"
|
|
||||||
initialPasswordIsIncorrect: "Пароль для запуска настройки неверен"
|
|
||||||
initialPasswordForSetupDescription: "Если вы установили Misskey самостоятельно, используйте пароль, который вы указали в файле конфигурации.\nЕсли вы используете что-то вроде хостинга Misskey, используйте предоставленный пароль.\nЕсли вы не установили пароль, оставьте его пустым и продолжайте."
|
|
||||||
forgotPassword: "Забыли пароль?"
|
forgotPassword: "Забыли пароль?"
|
||||||
fetchingAsApObject: "Приём с других сайтов"
|
fetchingAsApObject: "Приём с других сайтов"
|
||||||
ok: "Подтвердить"
|
ok: "Подтвердить"
|
||||||
|
@ -235,7 +232,6 @@ clearCachedFilesConfirm: "Удалить все закэшированные ф
|
||||||
blockedInstances: "Заблокированные инстансы"
|
blockedInstances: "Заблокированные инстансы"
|
||||||
blockedInstancesDescription: "Введите список инстансов, которые хотите заблокировать. Они больше не смогут обмениваться с вашим инстансом."
|
blockedInstancesDescription: "Введите список инстансов, которые хотите заблокировать. Они больше не смогут обмениваться с вашим инстансом."
|
||||||
silencedInstances: "Заглушённые инстансы"
|
silencedInstances: "Заглушённые инстансы"
|
||||||
federationAllowedHosts: "Серверы, поддерживающие федерацию"
|
|
||||||
muteAndBlock: "Скрытие и блокировка"
|
muteAndBlock: "Скрытие и блокировка"
|
||||||
mutedUsers: "Скрытые пользователи"
|
mutedUsers: "Скрытые пользователи"
|
||||||
blockedUsers: "Заблокированные пользователи"
|
blockedUsers: "Заблокированные пользователи"
|
||||||
|
@ -334,7 +330,6 @@ renameFolder: "Переименовать папку"
|
||||||
deleteFolder: "Удалить папку"
|
deleteFolder: "Удалить папку"
|
||||||
folder: "Папка"
|
folder: "Папка"
|
||||||
addFile: "Добавить файл"
|
addFile: "Добавить файл"
|
||||||
showFile: "Посмотреть файл"
|
|
||||||
emptyDrive: "Диск пуст"
|
emptyDrive: "Диск пуст"
|
||||||
emptyFolder: "Папка пуста"
|
emptyFolder: "Папка пуста"
|
||||||
unableToDelete: "Удаление невозможно"
|
unableToDelete: "Удаление невозможно"
|
||||||
|
@ -448,7 +443,6 @@ totp: "Приложение-аутентификатор"
|
||||||
totpDescription: "Описание приложения-аутентификатора"
|
totpDescription: "Описание приложения-аутентификатора"
|
||||||
moderator: "Модератор"
|
moderator: "Модератор"
|
||||||
moderation: "Модерация"
|
moderation: "Модерация"
|
||||||
moderationNote: "Примечания модератора"
|
|
||||||
moderationLogs: "Журнал модерации"
|
moderationLogs: "Журнал модерации"
|
||||||
nUsersMentioned: "Упомянуло пользователей: {n}"
|
nUsersMentioned: "Упомянуло пользователей: {n}"
|
||||||
securityKeyAndPasskey: "Ключ безопасности и парольная фраза"
|
securityKeyAndPasskey: "Ключ безопасности и парольная фраза"
|
||||||
|
@ -509,8 +503,6 @@ uiLanguage: "Язык интерфейса"
|
||||||
aboutX: "Описание {x}"
|
aboutX: "Описание {x}"
|
||||||
emojiStyle: "Стиль эмодзи"
|
emojiStyle: "Стиль эмодзи"
|
||||||
native: "Системные"
|
native: "Системные"
|
||||||
menuStyle: "Стиль меню"
|
|
||||||
style: "Стиль"
|
|
||||||
showNoteActionsOnlyHover: "Показывать кнопки у заметок только при наведении"
|
showNoteActionsOnlyHover: "Показывать кнопки у заметок только при наведении"
|
||||||
showReactionsCount: "Видеть количество реакций на заметках"
|
showReactionsCount: "Видеть количество реакций на заметках"
|
||||||
noHistory: "История пока пуста"
|
noHistory: "История пока пуста"
|
||||||
|
|
|
@ -8,9 +8,6 @@ search: "ค้นหา"
|
||||||
notifications: "เเจ้งเตือน"
|
notifications: "เเจ้งเตือน"
|
||||||
username: "ชื่อผู้ใช้"
|
username: "ชื่อผู้ใช้"
|
||||||
password: "รหัสผ่าน"
|
password: "รหัสผ่าน"
|
||||||
initialPasswordForSetup: "รหัสผ่านเริ่มต้นสำหรับการตั้งค่า"
|
|
||||||
initialPasswordIsIncorrect: "รหัสผ่านเริ่มต้นสำหรับตั้งค่านั้นไม่ถูกต้องค่ะ"
|
|
||||||
initialPasswordForSetupDescription: "ถ้าหากคุณติดตั้ง Misskey เอง ให้ใช้รหัสผ่านที่คุณป้อนในไฟล์กำหนดค่า \nถ้าหากคุณกำลังใช้บริการโฮสต์ Misskey ให้ใช้รหัสผ่านที่ได้รับมา\nถ้ายังไม่มีรหัสผ่าน ให้ข้ามช่องรหัสผ่านไป แล้วกดต่อไป"
|
|
||||||
forgotPassword: "ลืมรหัสผ่าน"
|
forgotPassword: "ลืมรหัสผ่าน"
|
||||||
fetchingAsApObject: "กำลังดึงข้อมูลจากสหพันธ์..."
|
fetchingAsApObject: "กำลังดึงข้อมูลจากสหพันธ์..."
|
||||||
ok: "ตกลง"
|
ok: "ตกลง"
|
||||||
|
@ -239,8 +236,6 @@ silencedInstances: "ปิดปากเซิร์ฟเวอร์นี้
|
||||||
silencedInstancesDescription: "ระบุโฮสต์ของเซิร์ฟเวอร์ที่ต้องการปิดปาก คั่นด้วยการขึ้นบรรทัดใหม่, บัญชีทั้งหมดของเซิร์ฟเวอร์ดังกล่าวจะถือว่าถูกปิดปากเช่นกัน ทำได้เฉพาะคำขอติดตามเท่านั้น และไม่สามารถกล่าวถึงบัญชีในเซิร์ฟเวอร์นี้ได้หากไม่ได้ถูกติดตามกลับ | สิ่งนี้ไม่มีผลต่ออินสแตนซ์ที่ถูกบล็อก"
|
silencedInstancesDescription: "ระบุโฮสต์ของเซิร์ฟเวอร์ที่ต้องการปิดปาก คั่นด้วยการขึ้นบรรทัดใหม่, บัญชีทั้งหมดของเซิร์ฟเวอร์ดังกล่าวจะถือว่าถูกปิดปากเช่นกัน ทำได้เฉพาะคำขอติดตามเท่านั้น และไม่สามารถกล่าวถึงบัญชีในเซิร์ฟเวอร์นี้ได้หากไม่ได้ถูกติดตามกลับ | สิ่งนี้ไม่มีผลต่ออินสแตนซ์ที่ถูกบล็อก"
|
||||||
mediaSilencedInstances: "เซิร์ฟเวอร์ที่ถูกปิดปากสื่อ"
|
mediaSilencedInstances: "เซิร์ฟเวอร์ที่ถูกปิดปากสื่อ"
|
||||||
mediaSilencedInstancesDescription: "ระบุโฮสต์ของเซิร์ฟเวอร์ที่ต้องการปิดปากสื่อ คั่นด้วยการขึ้นบรรทัดใหม่, ไฟล์ที่ถูกส่งจากบัญชีของเซิร์ฟเวอร์ดังกล่าวจะถือว่าถูกปิดปาก แล้วจะถูกติดเครื่องหมายว่ามีเนื้อหาละเอียดอ่อน และเอโมจิแบบกำหนดเองก็จะใช้ไม่ได้ด้วย | สิ่งนี้ไม่มีผลต่ออินสแตนซ์ที่ถูกบล็อก"
|
mediaSilencedInstancesDescription: "ระบุโฮสต์ของเซิร์ฟเวอร์ที่ต้องการปิดปากสื่อ คั่นด้วยการขึ้นบรรทัดใหม่, ไฟล์ที่ถูกส่งจากบัญชีของเซิร์ฟเวอร์ดังกล่าวจะถือว่าถูกปิดปาก แล้วจะถูกติดเครื่องหมายว่ามีเนื้อหาละเอียดอ่อน และเอโมจิแบบกำหนดเองก็จะใช้ไม่ได้ด้วย | สิ่งนี้ไม่มีผลต่ออินสแตนซ์ที่ถูกบล็อก"
|
||||||
federationAllowedHosts: "เซิร์ฟเวอร์ที่เปิดให้บริการแบบเฟเดอเรชั่น"
|
|
||||||
federationAllowedHostsDescription: "ระบุชื่อโฮสต์ของเซิร์ฟเวอร์ที่คุณต้องการอนุญาตให้เชื่อมต่อแบบเฟเดอเรชั่น โดยต้องเว้นวรรคแต่ละบรรทัด"
|
|
||||||
muteAndBlock: "ปิดเสียงและบล็อก"
|
muteAndBlock: "ปิดเสียงและบล็อก"
|
||||||
mutedUsers: "ผู้ใช้ที่ถูกปิดเสียง"
|
mutedUsers: "ผู้ใช้ที่ถูกปิดเสียง"
|
||||||
blockedUsers: "ผู้ใช้ที่ถูกบล็อก"
|
blockedUsers: "ผู้ใช้ที่ถูกบล็อก"
|
||||||
|
@ -339,7 +334,6 @@ renameFolder: "เปลี่ยนชื่อโฟลเดอร์"
|
||||||
deleteFolder: "ลบโฟลเดอร์"
|
deleteFolder: "ลบโฟลเดอร์"
|
||||||
folder: "โฟลเดอร์"
|
folder: "โฟลเดอร์"
|
||||||
addFile: "เพิ่มไฟล์"
|
addFile: "เพิ่มไฟล์"
|
||||||
showFile: "แสดงไฟล์"
|
|
||||||
emptyDrive: "ไดรฟ์ของคุณว่างเปล่านะ"
|
emptyDrive: "ไดรฟ์ของคุณว่างเปล่านะ"
|
||||||
emptyFolder: "โฟลเดอร์นี้ว่างเปล่า"
|
emptyFolder: "โฟลเดอร์นี้ว่างเปล่า"
|
||||||
unableToDelete: "ไม่สามารถลบออกได้"
|
unableToDelete: "ไม่สามารถลบออกได้"
|
||||||
|
@ -454,7 +448,6 @@ totpDescription: "ใช้แอปยืนยันตัวตนเพื
|
||||||
moderator: "ผู้ควบคุม"
|
moderator: "ผู้ควบคุม"
|
||||||
moderation: "การกลั่นกรอง"
|
moderation: "การกลั่นกรอง"
|
||||||
moderationNote: "โน้ตการกลั่นกรอง"
|
moderationNote: "โน้ตการกลั่นกรอง"
|
||||||
moderationNoteDescription: "คุณสามารถใส่โน้ตส่วนตัวที่เฉพาะผู้ดูแลระบบเท่านั้นที่สามารถเข้าถึงได้"
|
|
||||||
addModerationNote: "เพิ่มโน้ตการกลั่นกรอง"
|
addModerationNote: "เพิ่มโน้ตการกลั่นกรอง"
|
||||||
moderationLogs: "ปูมการควบคุมดูแล"
|
moderationLogs: "ปูมการควบคุมดูแล"
|
||||||
nUsersMentioned: "กล่าวถึงโดยผู้ใช้ {n} ราย"
|
nUsersMentioned: "กล่าวถึงโดยผู้ใช้ {n} ราย"
|
||||||
|
@ -516,10 +509,6 @@ uiLanguage: "ภาษาอินเทอร์เฟซผู้ใช้ง
|
||||||
aboutX: "เกี่ยวกับ {x}"
|
aboutX: "เกี่ยวกับ {x}"
|
||||||
emojiStyle: "สไตล์ของเอโมจิ"
|
emojiStyle: "สไตล์ของเอโมจิ"
|
||||||
native: "ภาษาแม่"
|
native: "ภาษาแม่"
|
||||||
menuStyle: "สไตล์เมนู"
|
|
||||||
style: "สไตล์"
|
|
||||||
drawer: "ตัววาด"
|
|
||||||
popup: "ป๊อปอัพ"
|
|
||||||
showNoteActionsOnlyHover: "แสดงการดำเนินการโน้ตเมื่อโฮเวอร์(วางเมาส์เหนือ)เท่านั้น"
|
showNoteActionsOnlyHover: "แสดงการดำเนินการโน้ตเมื่อโฮเวอร์(วางเมาส์เหนือ)เท่านั้น"
|
||||||
showReactionsCount: "แสดงจำนวนรีแอกชั่นในโน้ต"
|
showReactionsCount: "แสดงจำนวนรีแอกชั่นในโน้ต"
|
||||||
noHistory: "ไม่มีประวัติ"
|
noHistory: "ไม่มีประวัติ"
|
||||||
|
@ -602,8 +591,6 @@ ascendingOrder: "เรียงลำดับขึ้น"
|
||||||
descendingOrder: "เรียงลำดับลง"
|
descendingOrder: "เรียงลำดับลง"
|
||||||
scratchpad: "Scratchpad"
|
scratchpad: "Scratchpad"
|
||||||
scratchpadDescription: "Scratchpad ให้สภาพแวดล้อมสำหรับการทดลอง AiScript คุณสามารถเขียนโค้ด/สั่งดำเนินการ/ตรวจสอบผลลัพธ์ ของการโต้ตอบกับ Misskey ได้"
|
scratchpadDescription: "Scratchpad ให้สภาพแวดล้อมสำหรับการทดลอง AiScript คุณสามารถเขียนโค้ด/สั่งดำเนินการ/ตรวจสอบผลลัพธ์ ของการโต้ตอบกับ Misskey ได้"
|
||||||
uiInspector: "ตัวตรวจสอบ UI"
|
|
||||||
uiInspectorDescription: "คุณสามารถตรวจสอบรายชื่อเซิร์ฟเวอร์ที่เกี่ยวข้องกับส่วนประกอบอินเตอร์เฟซผู้ใช้ (UI) บนหน่วยความจำของระบบ ส่วนประกอบ UI เหล่านี้จะถูกสร้างขึ้นโดยฟังก์ชัน Ui:C:"
|
|
||||||
output: "เอาท์พุต"
|
output: "เอาท์พุต"
|
||||||
script: "สคริปต์"
|
script: "สคริปต์"
|
||||||
disablePagesScript: "ปิดการใช้งาน AiScript บนเพจ"
|
disablePagesScript: "ปิดการใช้งาน AiScript บนเพจ"
|
||||||
|
@ -922,7 +909,6 @@ followersVisibility: "การมองเห็นผู้ที่กำล
|
||||||
continueThread: "ดูความต่อเนื่องเธรด"
|
continueThread: "ดูความต่อเนื่องเธรด"
|
||||||
deleteAccountConfirm: "การดำเนินการนี้จะลบบัญชีของคุณอย่างถาวรเลยนะ แน่ใจหรอดำเนินการ?"
|
deleteAccountConfirm: "การดำเนินการนี้จะลบบัญชีของคุณอย่างถาวรเลยนะ แน่ใจหรอดำเนินการ?"
|
||||||
incorrectPassword: "รหัสผ่านไม่ถูกต้อง"
|
incorrectPassword: "รหัสผ่านไม่ถูกต้อง"
|
||||||
incorrectTotp: "รหัสยืนยันตัวตนแบบใช้ครั้งเดียวที่ท่านได้ระบุมานั้น ไม่ถูกต้องหรือหมดอายุลงแล้วค่ะ"
|
|
||||||
voteConfirm: "ต้องการโหวต “{choice}” ใช่ไหม?"
|
voteConfirm: "ต้องการโหวต “{choice}” ใช่ไหม?"
|
||||||
hide: "ซ่อน"
|
hide: "ซ่อน"
|
||||||
useDrawerReactionPickerForMobile: "แสดง ตัวจิ้มรีแอคชั่น เป็นแบบลิ้นชัก เมื่อใช้บนมือถือ"
|
useDrawerReactionPickerForMobile: "แสดง ตัวจิ้มรีแอคชั่น เป็นแบบลิ้นชัก เมื่อใช้บนมือถือ"
|
||||||
|
@ -1087,7 +1073,6 @@ retryAllQueuesConfirmTitle: "ลองใหม่ทั้งหมดจริ
|
||||||
retryAllQueuesConfirmText: "สิ่งนี้จะเพิ่มการโหลดเซิร์ฟเวอร์ชั่วคราวนะ"
|
retryAllQueuesConfirmText: "สิ่งนี้จะเพิ่มการโหลดเซิร์ฟเวอร์ชั่วคราวนะ"
|
||||||
enableChartsForRemoteUser: "สร้างแผนภูมิข้อมูลผู้ใช้ระยะไกล"
|
enableChartsForRemoteUser: "สร้างแผนภูมิข้อมูลผู้ใช้ระยะไกล"
|
||||||
enableChartsForFederatedInstances: "สร้างแผนภูมิของเซิร์ฟเวอร์ระยะไกล"
|
enableChartsForFederatedInstances: "สร้างแผนภูมิของเซิร์ฟเวอร์ระยะไกล"
|
||||||
enableStatsForFederatedInstances: "ดึงข้อมูลสถิติจากเซิร์ฟเวอร์ที่อยู่ห่างไกล"
|
|
||||||
showClipButtonInNoteFooter: "เพิ่ม “คลิป” ไปยังเมนูสั่งการของโน้ต"
|
showClipButtonInNoteFooter: "เพิ่ม “คลิป” ไปยังเมนูสั่งการของโน้ต"
|
||||||
reactionsDisplaySize: "ขนาดของรีแอคชั่น"
|
reactionsDisplaySize: "ขนาดของรีแอคชั่น"
|
||||||
limitWidthOfReaction: "จำกัดความกว้างสูงสุดของรีแอคชั่นและแสดงให้เล็กลง"
|
limitWidthOfReaction: "จำกัดความกว้างสูงสุดของรีแอคชั่นและแสดงให้เล็กลง"
|
||||||
|
@ -1274,32 +1259,6 @@ confirmWhenRevealingSensitiveMedia: "ตรวจสอบก่อนแสด
|
||||||
sensitiveMediaRevealConfirm: "สื่อนี้มีเนื้อหาละเอียดอ่อน, ต้องการแสดงใช่ไหม?"
|
sensitiveMediaRevealConfirm: "สื่อนี้มีเนื้อหาละเอียดอ่อน, ต้องการแสดงใช่ไหม?"
|
||||||
createdLists: "รายชื่อที่ถูกสร้าง"
|
createdLists: "รายชื่อที่ถูกสร้าง"
|
||||||
createdAntennas: "เสาอากาศที่ถูกสร้าง"
|
createdAntennas: "เสาอากาศที่ถูกสร้าง"
|
||||||
fromX: "จาก {x}"
|
|
||||||
genEmbedCode: "สร้างรหัสฝัง"
|
|
||||||
noteOfThisUser: "โน้ตโดยผู้ใช้นี้"
|
|
||||||
clipNoteLimitExceeded: "ไม่สามารถเพิ่มโน้ตเพิ่มเติมในคลิปนี้ได้อีกแล้ว"
|
|
||||||
performance: "ประสิทธิภาพ"
|
|
||||||
modified: "แก้ไข"
|
|
||||||
discard: "ละทิ้ง"
|
|
||||||
thereAreNChanges: "มีอยู่ {n} เปลี่ยนแปลง(s)"
|
|
||||||
signinWithPasskey: "ลงชื่อเข้าใช้ด้วย Passkey"
|
|
||||||
unknownWebAuthnKey: "พาสคีย์ไม่ถูกต้องค่ะ"
|
|
||||||
passkeyVerificationFailed: "การยืนยันกุญแจดิจิทัลไม่สำเร็จค่ะ"
|
|
||||||
passkeyVerificationSucceededButPasswordlessLoginDisabled: "การยืนยันพาสคีย์สำเร็จแล้ว แต่การลงชื่อเข้าใช้แบบไม่ต้องใส่รหัสผ่านถูกปิดใช้งานแล้ว"
|
|
||||||
messageToFollower: "ข้อความถึงผู้ติดตาม"
|
|
||||||
target: "เป้า"
|
|
||||||
testCaptchaWarning: "ฟังก์ชันนี้มีไว้สำหรับทดสอบ CAPTCHA เท่านั้น\n<strong>ห้ามนำไปใช้ในระบบจริงโดยเด็ดขาด</strong>"
|
|
||||||
prohibitedWordsForNameOfUser: "คำนี้ไม่สามารถใช้เป็นชื่อผู้ใช้ได้"
|
|
||||||
prohibitedWordsForNameOfUserDescription: "หากมีสตริงใดๆ ในรายการนี้ปรากฏอยู่ในชื่อของผู้ใช้ ชื่อนั้นจะถูกปฏิเสธ ผู้ใช้ที่มีสิทธิ์แต่ผู้ดูแลระบบนั้นจะไม่ได้รับผลกระทบใดๆจากข้อจำกัดนี้ค่ะ"
|
|
||||||
yourNameContainsProhibitedWords: "ชื่อของคุณนั้นมีคำที่ต้องห้าม"
|
|
||||||
yourNameContainsProhibitedWordsDescription: "ถ้าหากคุณต้องการใช้ชื่อนี้ กรุณาติดต่อผู้ดูแลระบบของเซิร์ฟเวอร์นะค่ะ"
|
|
||||||
_abuseUserReport:
|
|
||||||
forward: "ส่งต่อ"
|
|
||||||
forwardDescription: "ส่งรายงานไปยังเซิร์ฟเวอร์ระยะไกลโดยใช้บัญชีระบบที่ไม่ระบุตัวตน"
|
|
||||||
resolve: "แก้ไข"
|
|
||||||
accept: "ยอมรับ"
|
|
||||||
reject: "ปฏิเสธ"
|
|
||||||
resolveTutorial: "ถ้าหากรายงานนี้มีเนื้อหาถูกต้อง ให้เลือก \"ยอมรับ\" เพื่อปิดเคสกรณีนี้โดยถือว่าได้รับการแก้ไขแล้ว\nถ้าหากเนื้อหาในรายงานนี้นั้นไม่ถูกต้อง ให้เลือก \"ปฏิเสธ\" เพื่อปิดเคสกรณีนี้โดยถือว่าไม่ได้รับการแก้ไข"
|
|
||||||
_delivery:
|
_delivery:
|
||||||
status: "สถานะการจัดส่ง"
|
status: "สถานะการจัดส่ง"
|
||||||
stop: "ระงับการส่ง"
|
stop: "ระงับการส่ง"
|
||||||
|
@ -1434,10 +1393,8 @@ _serverSettings:
|
||||||
fanoutTimelineDescription: "เพิ่มประสิทธิภาพการดึงข้อมูลไทม์ไลน์อย่างมาก และลดภาระในฐานข้อมูลเมื่อเปิดใช้งาน ในทางกลับกัน การใช้หน่วยความจำของ Redis จะเพิ่มขึ้น ลองปิดการใช้งานนี้ในกรณีที่หน่วยความจำเซิร์ฟเวอร์เหลือน้อยหรือเซิร์ฟเวอร์ไม่เสถียร"
|
fanoutTimelineDescription: "เพิ่มประสิทธิภาพการดึงข้อมูลไทม์ไลน์อย่างมาก และลดภาระในฐานข้อมูลเมื่อเปิดใช้งาน ในทางกลับกัน การใช้หน่วยความจำของ Redis จะเพิ่มขึ้น ลองปิดการใช้งานนี้ในกรณีที่หน่วยความจำเซิร์ฟเวอร์เหลือน้อยหรือเซิร์ฟเวอร์ไม่เสถียร"
|
||||||
fanoutTimelineDbFallback: "ฟอลแบ๊กกลับฐานข้อมูล"
|
fanoutTimelineDbFallback: "ฟอลแบ๊กกลับฐานข้อมูล"
|
||||||
fanoutTimelineDbFallbackDescription: "เมื่อเปิดใช้งาน หากไม่ได้แคชไทม์ไลน์ ไทม์ไลน์จะฟอลแบ๊กไปยังฐานข้อมูลสำหรับการ query เพิ่มเติม การปิดใช้งานจะช่วยลดภาระของเซิร์ฟเวอร์ด้วยการกำจัดกระบวนฟอลแบ๊ก แต่มันก็จะจำกัดช่วงเวลาไทม์ไลน์ที่สามารถดึงข้อมูลได้"
|
fanoutTimelineDbFallbackDescription: "เมื่อเปิดใช้งาน หากไม่ได้แคชไทม์ไลน์ ไทม์ไลน์จะฟอลแบ๊กไปยังฐานข้อมูลสำหรับการ query เพิ่มเติม การปิดใช้งานจะช่วยลดภาระของเซิร์ฟเวอร์ด้วยการกำจัดกระบวนฟอลแบ๊ก แต่มันก็จะจำกัดช่วงเวลาไทม์ไลน์ที่สามารถดึงข้อมูลได้"
|
||||||
reactionsBufferingDescription: "เมื่อเปิดใช้งานฟังก์ชันนี้ก็จะช่วยลด latency ในการสร้างปฏิกิริยา แต่อาจจะส่งผลให้ memory footprint ของ Redis เพิ่มขึ้นนะ"
|
|
||||||
inquiryUrl: "URL สำหรับการติดต่อสอบถาม"
|
inquiryUrl: "URL สำหรับการติดต่อสอบถาม"
|
||||||
inquiryUrlDescription: "ระบุ URL ของหน้าเว็บที่มีแบบฟอร์มสำหรับติดต่อผู้ดูแลเซิร์ฟเวอร์ หรือข้อมูลการติดต่อของผู้ดูแลเซิร์ฟเวอร์"
|
inquiryUrlDescription: "ระบุ URL ของหน้าเว็บที่มีแบบฟอร์มสำหรับติดต่อผู้ดูแลเซิร์ฟเวอร์ หรือข้อมูลการติดต่อของผู้ดูแลเซิร์ฟเวอร์"
|
||||||
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "ถ้าหากไม่มีการตรวจสอบจากผู้ดูแลระบบหรือไม่มีความเคลื่อนไหวมาเป็นระยะเวลาหนึ่ง ระบบจะทำการปิดใช้งานฟังก์ชันนี้โดยอัตโนมัติ เพื่อลดความเสี่ยงในการถูกโจมตีด้วยสแปมและอื่นๆ"
|
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "ย้ายจากบัญชีอื่นมาที่บัญชีนี้"
|
moveFrom: "ย้ายจากบัญชีอื่นมาที่บัญชีนี้"
|
||||||
moveFromSub: "สร้างนามแฝงไปยังบัญชีอื่น"
|
moveFromSub: "สร้างนามแฝงไปยังบัญชีอื่น"
|
||||||
|
@ -1769,11 +1726,6 @@ _role:
|
||||||
canSearchNotes: "การใช้การค้นหาโน้ต"
|
canSearchNotes: "การใช้การค้นหาโน้ต"
|
||||||
canUseTranslator: "การใช้งานแปล"
|
canUseTranslator: "การใช้งานแปล"
|
||||||
avatarDecorationLimit: "จำนวนการตกแต่งไอคอนสูงสุดที่สามารถติดตั้งได้"
|
avatarDecorationLimit: "จำนวนการตกแต่งไอคอนสูงสุดที่สามารถติดตั้งได้"
|
||||||
canImportAntennas: "อนุญาตให้นำเข้าเสาอากาศ"
|
|
||||||
canImportBlocking: "อนุญาตให้นำเข้าการบล็อก"
|
|
||||||
canImportFollowing: "อนุญาตให้นำเข้ารายการต่อไปนี้"
|
|
||||||
canImportMuting: "อนุญาตให้นำเข้าการปิดกั้น"
|
|
||||||
canImportUserLists: "อนุญาตให้นำเข้ารายการ"
|
|
||||||
_condition:
|
_condition:
|
||||||
roleAssignedTo: "มอบหมายให้มีบทบาทแบบทำมือ"
|
roleAssignedTo: "มอบหมายให้มีบทบาทแบบทำมือ"
|
||||||
isLocal: "ผู้ใช้ท้องถิ่น"
|
isLocal: "ผู้ใช้ท้องถิ่น"
|
||||||
|
@ -2267,9 +2219,6 @@ _profile:
|
||||||
changeBanner: "เปลี่ยนแบนเนอร์"
|
changeBanner: "เปลี่ยนแบนเนอร์"
|
||||||
verifiedLinkDescription: "หากป้อน URL ที่มีลิงก์ไปยังโปรไฟล์ของคุณ ไอคอนการยืนยันความเป็นเจ้าของจะแสดงถัดจากฟิลด์นั้น ๆ"
|
verifiedLinkDescription: "หากป้อน URL ที่มีลิงก์ไปยังโปรไฟล์ของคุณ ไอคอนการยืนยันความเป็นเจ้าของจะแสดงถัดจากฟิลด์นั้น ๆ"
|
||||||
avatarDecorationMax: "คุณสามารถเพิ่มการตกแต่งได้สูงสุด {max}"
|
avatarDecorationMax: "คุณสามารถเพิ่มการตกแต่งได้สูงสุด {max}"
|
||||||
followedMessage: "ส่งข้อความเมื่อมีคนกดติดตาม"
|
|
||||||
followedMessageDescription: "ส่งข้อความเมื่อมีคนกดติดตามแล้ว"
|
|
||||||
followedMessageDescriptionForLockedAccount: "ถ้าหากคุณตั้งค่าให้คนอื่นต้องขออนุญาตก่อนที่จะติดตามคุณ ระบบจะขึ้นข้อความนี้ในตอนที่คุณอนุมัติให้เขาติดตาม"
|
|
||||||
_exportOrImport:
|
_exportOrImport:
|
||||||
allNotes: "โน้ตทั้งหมด"
|
allNotes: "โน้ตทั้งหมด"
|
||||||
favoritedNotes: "โน้ตที่ถูกใจไว้"
|
favoritedNotes: "โน้ตที่ถูกใจไว้"
|
||||||
|
@ -2362,7 +2311,6 @@ _pages:
|
||||||
eyeCatchingImageSet: "ตั้งค่าภาพขนาดย่อ"
|
eyeCatchingImageSet: "ตั้งค่าภาพขนาดย่อ"
|
||||||
eyeCatchingImageRemove: "ลบภาพขนาดย่อ"
|
eyeCatchingImageRemove: "ลบภาพขนาดย่อ"
|
||||||
chooseBlock: "เพิ่มบล็อค"
|
chooseBlock: "เพิ่มบล็อค"
|
||||||
enterSectionTitle: "ป้อนชื่อหัวข้อ"
|
|
||||||
selectType: "เลือกชนิด"
|
selectType: "เลือกชนิด"
|
||||||
contentBlocks: "เนื้อหา"
|
contentBlocks: "เนื้อหา"
|
||||||
inputBlocks: "ป้อนข้อมูล"
|
inputBlocks: "ป้อนข้อมูล"
|
||||||
|
@ -2408,8 +2356,6 @@ _notification:
|
||||||
renotedBySomeUsers: "รีโน้ตจากผู้ใช้ {n} ราย"
|
renotedBySomeUsers: "รีโน้ตจากผู้ใช้ {n} ราย"
|
||||||
followedBySomeUsers: "มีผู้ติดตาม {n} ราย"
|
followedBySomeUsers: "มีผู้ติดตาม {n} ราย"
|
||||||
flushNotification: "ล้างประวัติการแจ้งเตือน"
|
flushNotification: "ล้างประวัติการแจ้งเตือน"
|
||||||
exportOfXCompleted: "การดำเนินการส่งออก {x} ได้เสร็จสิ้นลงแล้ว"
|
|
||||||
login: "มีคนล็อกอิน"
|
|
||||||
_types:
|
_types:
|
||||||
all: "ทั้งหมด"
|
all: "ทั้งหมด"
|
||||||
note: "โน้ตใหม่"
|
note: "โน้ตใหม่"
|
||||||
|
@ -2424,9 +2370,7 @@ _notification:
|
||||||
followRequestAccepted: "อนุมัติให้ติดตามแล้ว"
|
followRequestAccepted: "อนุมัติให้ติดตามแล้ว"
|
||||||
roleAssigned: "ให้บทบาท"
|
roleAssigned: "ให้บทบาท"
|
||||||
achievementEarned: "ปลดล็อกความสำเร็จแล้ว"
|
achievementEarned: "ปลดล็อกความสำเร็จแล้ว"
|
||||||
exportCompleted: "กระบวนการส่งออกข้อมูลได้เสร็จสิ้นสมบูรณ์แล้ว"
|
|
||||||
login: "เข้าสู่ระบบ"
|
login: "เข้าสู่ระบบ"
|
||||||
test: "ทดสอบระบบแจ้งเตือน"
|
|
||||||
app: "การแจ้งเตือนจากแอปที่มีลิงก์"
|
app: "การแจ้งเตือนจากแอปที่มีลิงก์"
|
||||||
_actions:
|
_actions:
|
||||||
followBack: "ติดตามกลับด้วย"
|
followBack: "ติดตามกลับด้วย"
|
||||||
|
@ -2492,10 +2436,7 @@ _webhookSettings:
|
||||||
abuseReport: "เมื่อมีการรายงานจากผู้ใช้"
|
abuseReport: "เมื่อมีการรายงานจากผู้ใช้"
|
||||||
abuseReportResolved: "เมื่อมีการจัดการกับการรายงานจากผู้ใช้"
|
abuseReportResolved: "เมื่อมีการจัดการกับการรายงานจากผู้ใช้"
|
||||||
userCreated: "เมื่อผู้ใช้ถูกสร้างขึ้น"
|
userCreated: "เมื่อผู้ใช้ถูกสร้างขึ้น"
|
||||||
inactiveModeratorsWarning: "เมื่อผู้ดูแลระบบไม่ได้ใช้งานมานานระยะหนึ่ง"
|
|
||||||
inactiveModeratorsInvitationOnlyChanged: "เมื่อผู้ดูแลระบบที่ไม่ได้ใช้งานมานาน และเซิร์ฟเวอร์เปลี่ยนเป็นแบบเชิญเข้าร่วมเท่านั้น"
|
|
||||||
deleteConfirm: "ต้องการลบ Webhook ใช่ไหม?"
|
deleteConfirm: "ต้องการลบ Webhook ใช่ไหม?"
|
||||||
testRemarks: "คลิกปุ่มทางด้านขวาของสวิตช์เพื่อส่ง Webhook ทดสอบที่มีข้อมูลจำลอง"
|
|
||||||
_abuseReport:
|
_abuseReport:
|
||||||
_notificationRecipient:
|
_notificationRecipient:
|
||||||
createRecipient: "เพิ่มปลายทางการแจ้งเตือนการรายงาน"
|
createRecipient: "เพิ่มปลายทางการแจ้งเตือนการรายงาน"
|
||||||
|
@ -2539,8 +2480,6 @@ _moderationLogTypes:
|
||||||
markSensitiveDriveFile: "ทำเครื่องหมายไฟล์ว่ามีเนื้อหาละเอียดอ่อน"
|
markSensitiveDriveFile: "ทำเครื่องหมายไฟล์ว่ามีเนื้อหาละเอียดอ่อน"
|
||||||
unmarkSensitiveDriveFile: "ยกเลิกทำเครื่องหมายไฟล์ว่ามีเนื้อหาละเอียดอ่อน"
|
unmarkSensitiveDriveFile: "ยกเลิกทำเครื่องหมายไฟล์ว่ามีเนื้อหาละเอียดอ่อน"
|
||||||
resolveAbuseReport: "รายงานได้รับการแก้ไขแล้ว"
|
resolveAbuseReport: "รายงานได้รับการแก้ไขแล้ว"
|
||||||
forwardAbuseReport: "ได้ส่งรายงานไปแล้ว"
|
|
||||||
updateAbuseReportNote: "โน้ตการกลั่นกรองที่รายงานไปนั้น ได้รับการอัปเดตแล้ว"
|
|
||||||
createInvitation: "สร้างรหัสเชิญ"
|
createInvitation: "สร้างรหัสเชิญ"
|
||||||
createAd: "สร้างโฆษณาแล้ว"
|
createAd: "สร้างโฆษณาแล้ว"
|
||||||
deleteAd: "ลบโฆษณาออกแล้ว"
|
deleteAd: "ลบโฆษณาออกแล้ว"
|
||||||
|
@ -2556,10 +2495,6 @@ _moderationLogTypes:
|
||||||
createAbuseReportNotificationRecipient: "สร้างปลายทางการแจ้งเตือนการรายงาน"
|
createAbuseReportNotificationRecipient: "สร้างปลายทางการแจ้งเตือนการรายงาน"
|
||||||
updateAbuseReportNotificationRecipient: "อัปเดตปลายทางการแจ้งเตือนการรายงาน"
|
updateAbuseReportNotificationRecipient: "อัปเดตปลายทางการแจ้งเตือนการรายงาน"
|
||||||
deleteAbuseReportNotificationRecipient: "ลบปลายทางการแจ้งเตือนการรายงาน"
|
deleteAbuseReportNotificationRecipient: "ลบปลายทางการแจ้งเตือนการรายงาน"
|
||||||
deleteAccount: "บัญชีถูกลบไปแล้ว"
|
|
||||||
deletePage: "เพจถูกลบออกไปแล้ว"
|
|
||||||
deleteFlash: "Play ถูกลบออกไปแล้ว"
|
|
||||||
deleteGalleryPost: "โพสต์แกลเลอรี่ถูกลบออกแล้ว"
|
|
||||||
_fileViewer:
|
_fileViewer:
|
||||||
title: "รายละเอียดไฟล์"
|
title: "รายละเอียดไฟล์"
|
||||||
type: "ประเภทไฟล์"
|
type: "ประเภทไฟล์"
|
||||||
|
@ -2696,17 +2631,3 @@ _contextMenu:
|
||||||
app: "แอปพลิเคชัน"
|
app: "แอปพลิเคชัน"
|
||||||
appWithShift: "แอปฟลิเคชันด้วยปุ่มยกแคร่ (Shift)"
|
appWithShift: "แอปฟลิเคชันด้วยปุ่มยกแคร่ (Shift)"
|
||||||
native: "UI ของเบราว์เซอร์"
|
native: "UI ของเบราว์เซอร์"
|
||||||
_embedCodeGen:
|
|
||||||
title: "ปรับแต่งโค้ดฝัง"
|
|
||||||
header: "แสดงส่วนหัว"
|
|
||||||
autoload: "โหลดเพิ่มโดยอัตโนมัติ (เลิกใช้แล้ว)"
|
|
||||||
maxHeight: "ความสูงสุด"
|
|
||||||
maxHeightDescription: "หากถ้าตั้งค่าเป็น 0 จะทำให้ไม่มีการจำกัดความสูงของวิดเจ็ต แต่ควรตั้งค่าเป็นตัวเลขอื่นๆ เพื่อไม่ให้วิดเจ็ตยืดตัวลงไปเรื่อยๆ"
|
|
||||||
maxHeightWarn: "การจำกัดความสูงสูงสุดถูกปิดใช้งาน (0) หากไม่ได้ตั้งใจให้เป็นเช่นนี้ โปรดตั้งค่าความสูงสูงสุดให้เป็นค่าอื่นๆแทน"
|
|
||||||
previewIsNotActual: "การแสดงผลนั้นต่างจากการฝังจริงเพราะเกินขอบเขตที่แสดงบนหน้าจอตัวอย่างนะ"
|
|
||||||
rounded: "ทำให้มันกลม"
|
|
||||||
border: "เพิ่มขอบให้กับกรอบด้านนอก"
|
|
||||||
applyToPreview: "นำไปใช้กับการแสดงตัวอย่าง"
|
|
||||||
generateCode: "สร้างโค้ดสำหรับการฝัง"
|
|
||||||
codeGenerated: "รหัสถูกสร้างขึ้นแล้ว"
|
|
||||||
codeGeneratedDescription: "นำโค้ดที่สร้างแล้วไปวางในเว็บไซต์ของคุณเพื่อฝังเนื้อหา"
|
|
||||||
|
|
|
@ -213,8 +213,8 @@ charts: "图表"
|
||||||
perHour: "每小时"
|
perHour: "每小时"
|
||||||
perDay: "每天"
|
perDay: "每天"
|
||||||
stopActivityDelivery: "停止发送活动"
|
stopActivityDelivery: "停止发送活动"
|
||||||
blockThisInstance: "封锁此服务器"
|
blockThisInstance: "阻止此服务器向本服务器推流"
|
||||||
silenceThisInstance: "静音此服务器"
|
silenceThisInstance: "使服务器静音"
|
||||||
mediaSilenceThisInstance: "隐藏此服务器的媒体文件"
|
mediaSilenceThisInstance: "隐藏此服务器的媒体文件"
|
||||||
operations: "操作"
|
operations: "操作"
|
||||||
software: "软件"
|
software: "软件"
|
||||||
|
@ -258,7 +258,7 @@ noCustomEmojis: "没有自定义表情符号"
|
||||||
noJobs: "没有任务"
|
noJobs: "没有任务"
|
||||||
federating: "联合中"
|
federating: "联合中"
|
||||||
blocked: "已拉黑"
|
blocked: "已拉黑"
|
||||||
suspended: "停止投递"
|
suspended: "停止推流"
|
||||||
all: "全部"
|
all: "全部"
|
||||||
subscribing: "已订阅"
|
subscribing: "已订阅"
|
||||||
publishing: "投递中"
|
publishing: "投递中"
|
||||||
|
@ -706,7 +706,7 @@ useGlobalSettingDesc: "启用时,将使用账户通知设置。关闭时,则
|
||||||
other: "其他"
|
other: "其他"
|
||||||
regenerateLoginToken: "重新生成登录令牌"
|
regenerateLoginToken: "重新生成登录令牌"
|
||||||
regenerateLoginTokenDescription: "重新生成用于登录的内部令牌。通常您不需要这样做。重新生成后,您将在所有设备上登出。"
|
regenerateLoginTokenDescription: "重新生成用于登录的内部令牌。通常您不需要这样做。重新生成后,您将在所有设备上登出。"
|
||||||
theKeywordWhenSearchingForCustomEmoji: "这将是搜索自定义表情符号时的关键词。"
|
theKeywordWhenSearchingForCustomEmoji: "这将是搜素自定义表情符号时的关键词。"
|
||||||
setMultipleBySeparatingWithSpace: "您可以使用空格分隔多个项目。"
|
setMultipleBySeparatingWithSpace: "您可以使用空格分隔多个项目。"
|
||||||
fileIdOrUrl: "文件 ID 或者 URL"
|
fileIdOrUrl: "文件 ID 或者 URL"
|
||||||
behavior: "行为"
|
behavior: "行为"
|
||||||
|
@ -947,9 +947,6 @@ oneHour: "1 小时"
|
||||||
oneDay: "1 天"
|
oneDay: "1 天"
|
||||||
oneWeek: "1 周"
|
oneWeek: "1 周"
|
||||||
oneMonth: "1 个月"
|
oneMonth: "1 个月"
|
||||||
threeMonths: "3 个月"
|
|
||||||
oneYear: "1 年"
|
|
||||||
threeDays: "3 天"
|
|
||||||
reflectMayTakeTime: "可能需要一些时间才能体现出效果。"
|
reflectMayTakeTime: "可能需要一些时间才能体现出效果。"
|
||||||
failedToFetchAccountInformation: "获取账户信息失败"
|
failedToFetchAccountInformation: "获取账户信息失败"
|
||||||
rateLimitExceeded: "已超过速率限制"
|
rateLimitExceeded: "已超过速率限制"
|
||||||
|
@ -1073,7 +1070,7 @@ nonSensitiveOnlyForLocalLikeOnlyForRemote: "仅限非敏感内容(远程仅点
|
||||||
rolesAssignedToMe: "指派给自己的角色"
|
rolesAssignedToMe: "指派给自己的角色"
|
||||||
resetPasswordConfirm: "确定重置密码?"
|
resetPasswordConfirm: "确定重置密码?"
|
||||||
sensitiveWords: "敏感词"
|
sensitiveWords: "敏感词"
|
||||||
sensitiveWordsDescription: "包含这些词的帖子将只在首页可见。可用换行来设定多个词。"
|
sensitiveWordsDescription: "将包含设置词的帖子的可见范围设置为首页。可以通过用换行符分隔来设置多个。"
|
||||||
sensitiveWordsDescription2: "AND 条件用空格分隔,正则表达式用斜线包裹。"
|
sensitiveWordsDescription2: "AND 条件用空格分隔,正则表达式用斜线包裹。"
|
||||||
prohibitedWords: "禁用词"
|
prohibitedWords: "禁用词"
|
||||||
prohibitedWordsDescription: "发布包含设定词汇的帖子时将出错。可用换行设定多个关键字"
|
prohibitedWordsDescription: "发布包含设定词汇的帖子时将出错。可用换行设定多个关键字"
|
||||||
|
@ -1296,21 +1293,6 @@ prohibitedWordsForNameOfUser: "用户名中禁止的词"
|
||||||
prohibitedWordsForNameOfUserDescription: "更改用户名时,如果用户名中包含此列表里的词汇,用户的改名请求将被拒绝。持有管理员权限的用户不受此限制。"
|
prohibitedWordsForNameOfUserDescription: "更改用户名时,如果用户名中包含此列表里的词汇,用户的改名请求将被拒绝。持有管理员权限的用户不受此限制。"
|
||||||
yourNameContainsProhibitedWords: "目标用户名包含违禁词"
|
yourNameContainsProhibitedWords: "目标用户名包含违禁词"
|
||||||
yourNameContainsProhibitedWordsDescription: "用户名内含有违禁词。若想使用此用户名,请联系服务器管理员。"
|
yourNameContainsProhibitedWordsDescription: "用户名内含有违禁词。若想使用此用户名,请联系服务器管理员。"
|
||||||
thisContentsAreMarkedAsSigninRequiredByAuthor: "根据发帖者的设定,需要登录才能显示"
|
|
||||||
lockdown: "锁定"
|
|
||||||
pleaseSelectAccount: "请选择帐户"
|
|
||||||
_accountSettings:
|
|
||||||
requireSigninToViewContents: "需要登录才能显示内容"
|
|
||||||
requireSigninToViewContentsDescription1: "您发布的所有帖子将变成需要登入后才会显示。有望防止爬虫收集各种信息。"
|
|
||||||
requireSigninToViewContentsDescription2: "没有 URL 预览(OGP)、内嵌网页、引用帖子的功能的服务器也将无法显示。"
|
|
||||||
requireSigninToViewContentsDescription3: "这些限制可能不适用于联合到远程服务器的内容。"
|
|
||||||
makeNotesFollowersOnlyBefore: "可将过去的帖子设为仅关注者可见"
|
|
||||||
makeNotesFollowersOnlyBeforeDescription: "开启此设定时,超过设定的时间或日期后,帖子将变为仅关注者可见。关闭后帖子的公开状态将恢复成原本的设定。"
|
|
||||||
makeNotesHiddenBefore: "将过去的帖子设为私密"
|
|
||||||
makeNotesHiddenBeforeDescription: "开启此设定时,超过设定的时间或日期后,帖子将变为仅自己可见。关闭后帖子的公开状态将恢复成原本的设定。"
|
|
||||||
mayNotEffectForFederatedNotes: "与远程服务器联合的帖子在远端可能会没有效果。"
|
|
||||||
notesHavePassedSpecifiedPeriod: "超过指定时间的帖子"
|
|
||||||
notesOlderThanSpecifiedDateAndTime: "指定日期前的帖子"
|
|
||||||
_abuseUserReport:
|
_abuseUserReport:
|
||||||
forward: "转发"
|
forward: "转发"
|
||||||
forwardDescription: "目标是匿名系统账户,将把举报转发给远程服务器。"
|
forwardDescription: "目标是匿名系统账户,将把举报转发给远程服务器。"
|
||||||
|
@ -2175,11 +2157,8 @@ _auth:
|
||||||
permissionAsk: "这个应用程序需要以下权限"
|
permissionAsk: "这个应用程序需要以下权限"
|
||||||
pleaseGoBack: "请返回到应用程序"
|
pleaseGoBack: "请返回到应用程序"
|
||||||
callback: "回到应用程序"
|
callback: "回到应用程序"
|
||||||
accepted: "已允许访问"
|
|
||||||
denied: "拒绝访问"
|
denied: "拒绝访问"
|
||||||
scopeUser: "以下面的用户进行操作"
|
|
||||||
pleaseLogin: "在对应用进行授权许可之前,请先登录"
|
pleaseLogin: "在对应用进行授权许可之前,请先登录"
|
||||||
byClickingYouWillBeRedirectedToThisUrl: "允许访问后将会自动重定向到以下 URL"
|
|
||||||
_antennaSources:
|
_antennaSources:
|
||||||
all: "所有帖子"
|
all: "所有帖子"
|
||||||
homeTimeline: "已关注用户的帖子"
|
homeTimeline: "已关注用户的帖子"
|
||||||
|
@ -2731,9 +2710,3 @@ _embedCodeGen:
|
||||||
generateCode: "生成嵌入代码"
|
generateCode: "生成嵌入代码"
|
||||||
codeGenerated: "已生成代码"
|
codeGenerated: "已生成代码"
|
||||||
codeGeneratedDescription: "将生成的代码贴到网站上来使用。"
|
codeGeneratedDescription: "将生成的代码贴到网站上来使用。"
|
||||||
_selfXssPrevention:
|
|
||||||
warning: "警告"
|
|
||||||
title: "「在此处粘贴什么东西」是欺诈行为。"
|
|
||||||
description1: "如果在此处粘贴了什么,恶意用户可能会接管账户或者盗取个人资料。"
|
|
||||||
description2: "如果不能完全理解将要粘贴的内容,%c 请立即停止操作并关闭这个窗口。"
|
|
||||||
description3: "详情请看这里。{link}"
|
|
||||||
|
|
|
@ -947,9 +947,6 @@ oneHour: "一小時"
|
||||||
oneDay: "一天"
|
oneDay: "一天"
|
||||||
oneWeek: "一週"
|
oneWeek: "一週"
|
||||||
oneMonth: "一個月"
|
oneMonth: "一個月"
|
||||||
threeMonths: "3 個月"
|
|
||||||
oneYear: "1 年"
|
|
||||||
threeDays: "3 日"
|
|
||||||
reflectMayTakeTime: "可能需要一些時間才會出現效果。"
|
reflectMayTakeTime: "可能需要一些時間才會出現效果。"
|
||||||
failedToFetchAccountInformation: "取得帳戶資訊失敗"
|
failedToFetchAccountInformation: "取得帳戶資訊失敗"
|
||||||
rateLimitExceeded: "已超過速率限制"
|
rateLimitExceeded: "已超過速率限制"
|
||||||
|
@ -1296,21 +1293,6 @@ prohibitedWordsForNameOfUser: "禁止使用的字詞(使用者名稱)"
|
||||||
prohibitedWordsForNameOfUserDescription: "如果使用者名稱包含此清單中的任何字串,則拒絕重新命名使用者。 具有審查員權限的使用者不受此限制的影響。"
|
prohibitedWordsForNameOfUserDescription: "如果使用者名稱包含此清單中的任何字串,則拒絕重新命名使用者。 具有審查員權限的使用者不受此限制的影響。"
|
||||||
yourNameContainsProhibitedWords: "您嘗試更改的名稱包含禁止的字串"
|
yourNameContainsProhibitedWords: "您嘗試更改的名稱包含禁止的字串"
|
||||||
yourNameContainsProhibitedWordsDescription: "名稱中包含禁止使用的字串。 如果您想使用此名稱,請聯絡您的伺服器管理員。"
|
yourNameContainsProhibitedWordsDescription: "名稱中包含禁止使用的字串。 如果您想使用此名稱,請聯絡您的伺服器管理員。"
|
||||||
thisContentsAreMarkedAsSigninRequiredByAuthor: "作者將其設定為需要登入才能顯示。"
|
|
||||||
lockdown: "鎖定"
|
|
||||||
pleaseSelectAccount: "請選擇帳戶"
|
|
||||||
_accountSettings:
|
|
||||||
requireSigninToViewContents: "須登入以顯示內容"
|
|
||||||
requireSigninToViewContentsDescription1: "必須登入才會顯示您建立的貼文等內容。可望有效防止資訊被爬蟲蒐集。"
|
|
||||||
requireSigninToViewContentsDescription2: "來自不支援 URL 預覽 (OGP)、 網頁嵌入和引用貼文的伺服器,也將停止顯示。"
|
|
||||||
requireSigninToViewContentsDescription3: "這些限制可能不適用於被聯邦發送至遠端伺服器的內容。"
|
|
||||||
makeNotesFollowersOnlyBefore: "讓過去的貼文僅對追隨者顯示"
|
|
||||||
makeNotesFollowersOnlyBeforeDescription: "啟用此功能後,超過設定的日期和時間或超過設定時間的貼文將僅對追隨者顯示。 如果您再次停用它,貼文的公開狀態也會恢復原狀。"
|
|
||||||
makeNotesHiddenBefore: "隱藏過去的貼文"
|
|
||||||
makeNotesHiddenBeforeDescription: "啟用此功能後,超過設定的日期和時間或超過設定時間的貼文將僅對自己顯示(私密化)。 如果您再次停用它,貼文的公開狀態也會恢復原狀。"
|
|
||||||
mayNotEffectForFederatedNotes: "聯邦發送至遠端伺服器的貼文可能會不受影響。"
|
|
||||||
notesHavePassedSpecifiedPeriod: "早於指定時間的貼文"
|
|
||||||
notesOlderThanSpecifiedDateAndTime: "指定時間和日期之前的貼文"
|
|
||||||
_abuseUserReport:
|
_abuseUserReport:
|
||||||
forward: "轉發"
|
forward: "轉發"
|
||||||
forwardDescription: "以匿名系統帳戶將檢舉轉發至遠端伺服器。"
|
forwardDescription: "以匿名系統帳戶將檢舉轉發至遠端伺服器。"
|
||||||
|
@ -2175,11 +2157,8 @@ _auth:
|
||||||
permissionAsk: "此應用程式需要以下權限"
|
permissionAsk: "此應用程式需要以下權限"
|
||||||
pleaseGoBack: "請返回至應用程式"
|
pleaseGoBack: "請返回至應用程式"
|
||||||
callback: "回到應用程式"
|
callback: "回到應用程式"
|
||||||
accepted: "已授予存取權限"
|
|
||||||
denied: "拒絕訪問"
|
denied: "拒絕訪問"
|
||||||
scopeUser: "以下列使用者身分操作"
|
|
||||||
pleaseLogin: "必須登入以提供應用程式的存取權限。"
|
pleaseLogin: "必須登入以提供應用程式的存取權限。"
|
||||||
byClickingYouWillBeRedirectedToThisUrl: "如果授予存取權限,就會自動導向到以下的網址"
|
|
||||||
_antennaSources:
|
_antennaSources:
|
||||||
all: "全部貼文"
|
all: "全部貼文"
|
||||||
homeTimeline: "來自已追隨使用者的貼文"
|
homeTimeline: "來自已追隨使用者的貼文"
|
||||||
|
@ -2437,7 +2416,7 @@ _notification:
|
||||||
follow: "追隨中"
|
follow: "追隨中"
|
||||||
mention: "提及"
|
mention: "提及"
|
||||||
reply: "回覆"
|
reply: "回覆"
|
||||||
renote: "轉發"
|
renote: "轉發貼文"
|
||||||
quote: "引用"
|
quote: "引用"
|
||||||
reaction: "反應"
|
reaction: "反應"
|
||||||
pollEnded: "問卷調查結束"
|
pollEnded: "問卷調查結束"
|
||||||
|
@ -2731,9 +2710,3 @@ _embedCodeGen:
|
||||||
generateCode: "建立嵌入程式碼"
|
generateCode: "建立嵌入程式碼"
|
||||||
codeGenerated: "已產生程式碼"
|
codeGenerated: "已產生程式碼"
|
||||||
codeGeneratedDescription: "請將產生的程式碼貼到您的網站上。"
|
codeGeneratedDescription: "請將產生的程式碼貼到您的網站上。"
|
||||||
_selfXssPrevention:
|
|
||||||
warning: "警告"
|
|
||||||
title: "「在此畫面貼上一些內容」完全是個騙局。"
|
|
||||||
description1: "如果您在此處貼上任何內容,惡意使用者可能會接管您的帳戶或竊取您的個人資訊。"
|
|
||||||
description2: "如果您不確切知道要貼上的內容,%c 請立即停止工作並關閉此視窗。"
|
|
||||||
description3: "細節請看這裡。{link}"
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "2024.11.0-alpha.0",
|
"version": "2024.10.1",
|
||||||
"codename": "nasubi",
|
"codename": "nasubi",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
/*
|
|
||||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
*/
|
|
||||||
|
|
||||||
export class SigninRequiredForShowContents1729333924409 {
|
|
||||||
name = 'SigninRequiredForShowContents1729333924409'
|
|
||||||
|
|
||||||
async up(queryRunner) {
|
|
||||||
await queryRunner.query(`ALTER TABLE "user" ADD "requireSigninToViewContents" boolean NOT NULL DEFAULT false`);
|
|
||||||
}
|
|
||||||
|
|
||||||
async down(queryRunner) {
|
|
||||||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "requireSigninToViewContents"`);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
/*
|
|
||||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
*/
|
|
||||||
|
|
||||||
export class MakeNotesHiddenBefore1729486255072 {
|
|
||||||
name = 'MakeNotesHiddenBefore1729486255072'
|
|
||||||
|
|
||||||
async up(queryRunner) {
|
|
||||||
await queryRunner.query(`ALTER TABLE "user" ADD "makeNotesFollowersOnlyBefore" integer`);
|
|
||||||
await queryRunner.query(`ALTER TABLE "user" ADD "makeNotesHiddenBefore" integer`);
|
|
||||||
}
|
|
||||||
|
|
||||||
async down(queryRunner) {
|
|
||||||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "makeNotesHiddenBefore"`);
|
|
||||||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "makeNotesFollowersOnlyBefore"`);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -5,52 +5,11 @@
|
||||||
|
|
||||||
import Redis from 'ioredis';
|
import Redis from 'ioredis';
|
||||||
import { loadConfig } from '../built/config.js';
|
import { loadConfig } from '../built/config.js';
|
||||||
import { createPostgresDataSource } from '../built/postgres.js';
|
|
||||||
|
|
||||||
const config = loadConfig();
|
const config = loadConfig();
|
||||||
|
const redis = new Redis(config.redis);
|
||||||
|
|
||||||
async function connectToPostgres() {
|
redis.on('connect', () => redis.disconnect());
|
||||||
const source = createPostgresDataSource(config);
|
redis.on('error', (e) => {
|
||||||
await source.initialize();
|
throw e;
|
||||||
await source.destroy();
|
|
||||||
}
|
|
||||||
|
|
||||||
async function connectToRedis(redisOptions) {
|
|
||||||
return await new Promise(async (resolve, reject) => {
|
|
||||||
const redis = new Redis({
|
|
||||||
...redisOptions,
|
|
||||||
lazyConnect: true,
|
|
||||||
reconnectOnError: false,
|
|
||||||
showFriendlyErrorStack: true,
|
|
||||||
});
|
});
|
||||||
redis.on('error', e => reject(e));
|
|
||||||
|
|
||||||
try {
|
|
||||||
await redis.connect();
|
|
||||||
resolve();
|
|
||||||
|
|
||||||
} catch (e) {
|
|
||||||
reject(e);
|
|
||||||
|
|
||||||
} finally {
|
|
||||||
redis.disconnect(false);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// If not all of these are defined, the default one gets reused.
|
|
||||||
// so we use a Set to only try connecting once to each **uniq** redis.
|
|
||||||
const promises = Array
|
|
||||||
.from(new Set([
|
|
||||||
config.redis,
|
|
||||||
config.redisForPubsub,
|
|
||||||
config.redisForJobQueue,
|
|
||||||
config.redisForTimelines,
|
|
||||||
config.redisForReactions,
|
|
||||||
]))
|
|
||||||
.map(connectToRedis)
|
|
||||||
.concat([
|
|
||||||
connectToPostgres()
|
|
||||||
]);
|
|
||||||
|
|
||||||
await Promise.allSettled(promises);
|
|
||||||
|
|
|
@ -406,10 +406,8 @@ export class MfmService {
|
||||||
mention: (node) => {
|
mention: (node) => {
|
||||||
const a = doc.createElement('a');
|
const a = doc.createElement('a');
|
||||||
const { username, host, acct } = node.props;
|
const { username, host, acct } = node.props;
|
||||||
const remoteUserInfo = mentionedRemoteUsers.find(remoteUser => remoteUser.username.toLowerCase() === username.toLowerCase() && remoteUser.host?.toLowerCase() === host?.toLowerCase());
|
const remoteUserInfo = mentionedRemoteUsers.find(remoteUser => remoteUser.username === username && remoteUser.host === host);
|
||||||
a.setAttribute('href', remoteUserInfo
|
a.setAttribute('href', remoteUserInfo ? (remoteUserInfo.url ? remoteUserInfo.url : remoteUserInfo.uri) : `${this.config.url}/${acct}`);
|
||||||
? (remoteUserInfo.url ? remoteUserInfo.url : remoteUserInfo.uri)
|
|
||||||
: `${this.config.url}/${acct.endsWith(`@${this.config.url}`) ? acct.substring(0, acct.length - this.config.url.length - 1) : acct}`);
|
|
||||||
a.className = 'u-url mention';
|
a.className = 'u-url mention';
|
||||||
a.textContent = acct;
|
a.textContent = acct;
|
||||||
return a;
|
return a;
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import type { IActivity } from '@/core/activitypub/type.js';
|
import type { IActivity } from '@/core/activitypub/type.js';
|
||||||
import type { MiDriveFile } from '@/models/DriveFile.js';
|
import type { MiDriveFile } from '@/models/DriveFile.js';
|
||||||
import type { MiWebhook, WebhookEventTypes, webhookEventTypes } from '@/models/Webhook.js';
|
import type { MiWebhook, webhookEventTypes } from '@/models/Webhook.js';
|
||||||
import type { MiSystemWebhook, SystemWebhookEventType } from '@/models/SystemWebhook.js';
|
import type { MiSystemWebhook, SystemWebhookEventType } from '@/models/SystemWebhook.js';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
|
@ -35,7 +35,6 @@ import type {
|
||||||
} from './QueueModule.js';
|
} from './QueueModule.js';
|
||||||
import type httpSignature from '@peertube/http-signature';
|
import type httpSignature from '@peertube/http-signature';
|
||||||
import type * as Bull from 'bullmq';
|
import type * as Bull from 'bullmq';
|
||||||
import { type UserWebhookPayload } from './UserWebhookService.js';
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class QueueService {
|
export class QueueService {
|
||||||
|
@ -469,10 +468,10 @@ export class QueueService {
|
||||||
* @see UserWebhookDeliverProcessorService
|
* @see UserWebhookDeliverProcessorService
|
||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public userWebhookDeliver<T extends WebhookEventTypes>(
|
public userWebhookDeliver(
|
||||||
webhook: MiWebhook,
|
webhook: MiWebhook,
|
||||||
type: T,
|
type: typeof webhookEventTypes[number],
|
||||||
content: UserWebhookPayload<T>,
|
content: unknown,
|
||||||
opts?: { attempts?: number },
|
opts?: { attempts?: number },
|
||||||
) {
|
) {
|
||||||
const data: UserWebhookDeliverJobData = {
|
const data: UserWebhookDeliverJobData = {
|
||||||
|
|
|
@ -6,23 +6,11 @@
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import * as Redis from 'ioredis';
|
import * as Redis from 'ioredis';
|
||||||
import { type WebhooksRepository } from '@/models/_.js';
|
import { type WebhooksRepository } from '@/models/_.js';
|
||||||
import { MiWebhook, WebhookEventTypes } from '@/models/Webhook.js';
|
import { MiWebhook } from '@/models/Webhook.js';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { GlobalEvents } from '@/core/GlobalEventService.js';
|
import { GlobalEvents } from '@/core/GlobalEventService.js';
|
||||||
import type { OnApplicationShutdown } from '@nestjs/common';
|
import type { OnApplicationShutdown } from '@nestjs/common';
|
||||||
import type { Packed } from '@/misc/json-schema.js';
|
|
||||||
|
|
||||||
export type UserWebhookPayload<T extends WebhookEventTypes> =
|
|
||||||
T extends 'note' | 'reply' | 'renote' |'mention' ? {
|
|
||||||
note: Packed<'Note'>,
|
|
||||||
} :
|
|
||||||
T extends 'follow' | 'unfollow' ? {
|
|
||||||
user: Packed<'UserDetailedNotMe'>,
|
|
||||||
} :
|
|
||||||
T extends 'followed' ? {
|
|
||||||
user: Packed<'UserLite'>,
|
|
||||||
} : never;
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class UserWebhookService implements OnApplicationShutdown {
|
export class UserWebhookService implements OnApplicationShutdown {
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { MiSystemWebhook, type SystemWebhookEventType } from '@/models/SystemWeb
|
||||||
import { SystemWebhookService } from '@/core/SystemWebhookService.js';
|
import { SystemWebhookService } from '@/core/SystemWebhookService.js';
|
||||||
import { Packed } from '@/misc/json-schema.js';
|
import { Packed } from '@/misc/json-schema.js';
|
||||||
import { type WebhookEventTypes } from '@/models/Webhook.js';
|
import { type WebhookEventTypes } from '@/models/Webhook.js';
|
||||||
import { type UserWebhookPayload, UserWebhookService } from '@/core/UserWebhookService.js';
|
import { UserWebhookService } from '@/core/UserWebhookService.js';
|
||||||
import { QueueService } from '@/core/QueueService.js';
|
import { QueueService } from '@/core/QueueService.js';
|
||||||
import { ModeratorInactivityRemainingTime } from '@/queue/processors/CheckModeratorsActivityProcessorService.js';
|
import { ModeratorInactivityRemainingTime } from '@/queue/processors/CheckModeratorsActivityProcessorService.js';
|
||||||
|
|
||||||
|
@ -83,9 +83,6 @@ function generateDummyUser(override?: Partial<MiUser>): MiUser {
|
||||||
isExplorable: true,
|
isExplorable: true,
|
||||||
isHibernated: false,
|
isHibernated: false,
|
||||||
isDeleted: false,
|
isDeleted: false,
|
||||||
requireSigninToViewContents: false,
|
|
||||||
makeNotesFollowersOnlyBefore: null,
|
|
||||||
makeNotesHiddenBefore: null,
|
|
||||||
emojis: [],
|
emojis: [],
|
||||||
score: 0,
|
score: 0,
|
||||||
host: null,
|
host: null,
|
||||||
|
@ -306,10 +303,10 @@ export class WebhookTestService {
|
||||||
* - 送信対象イベント(on)に関する設定
|
* - 送信対象イベント(on)に関する設定
|
||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public async testUserWebhook<T extends WebhookEventTypes>(
|
public async testUserWebhook(
|
||||||
params: {
|
params: {
|
||||||
webhookId: MiWebhook['id'],
|
webhookId: MiWebhook['id'],
|
||||||
type: T,
|
type: WebhookEventTypes,
|
||||||
override?: Partial<Omit<MiWebhook, 'id'>>,
|
override?: Partial<Omit<MiWebhook, 'id'>>,
|
||||||
},
|
},
|
||||||
sender: MiUser | null,
|
sender: MiUser | null,
|
||||||
|
@ -321,7 +318,7 @@ export class WebhookTestService {
|
||||||
}
|
}
|
||||||
|
|
||||||
const webhook = webhooks[0];
|
const webhook = webhooks[0];
|
||||||
const send = <U extends WebhookEventTypes>(type: U, contents: UserWebhookPayload<U>) => {
|
const send = (contents: unknown) => {
|
||||||
const merged = {
|
const merged = {
|
||||||
...webhook,
|
...webhook,
|
||||||
...params.override,
|
...params.override,
|
||||||
|
@ -329,7 +326,7 @@ export class WebhookTestService {
|
||||||
|
|
||||||
// テスト目的なのでUserWebhookServiceの機能を経由せず直接キューに追加する(チェック処理などをスキップする意図).
|
// テスト目的なのでUserWebhookServiceの機能を経由せず直接キューに追加する(チェック処理などをスキップする意図).
|
||||||
// また、Jobの試行回数も1回だけ.
|
// また、Jobの試行回数も1回だけ.
|
||||||
this.queueService.userWebhookDeliver(merged, type, contents, { attempts: 1 });
|
this.queueService.userWebhookDeliver(merged, params.type, contents, { attempts: 1 });
|
||||||
};
|
};
|
||||||
|
|
||||||
const dummyNote1 = generateDummyNote({
|
const dummyNote1 = generateDummyNote({
|
||||||
|
@ -361,40 +358,33 @@ export class WebhookTestService {
|
||||||
|
|
||||||
switch (params.type) {
|
switch (params.type) {
|
||||||
case 'note': {
|
case 'note': {
|
||||||
send('note', { note: toPackedNote(dummyNote1) });
|
send(toPackedNote(dummyNote1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'reply': {
|
case 'reply': {
|
||||||
send('reply', { note: toPackedNote(dummyReply1) });
|
send(toPackedNote(dummyReply1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'renote': {
|
case 'renote': {
|
||||||
send('renote', { note: toPackedNote(dummyRenote1) });
|
send(toPackedNote(dummyRenote1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'mention': {
|
case 'mention': {
|
||||||
send('mention', { note: toPackedNote(dummyMention1) });
|
send(toPackedNote(dummyMention1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'follow': {
|
case 'follow': {
|
||||||
send('follow', { user: toPackedUserDetailedNotMe(dummyUser1) });
|
send(toPackedUserDetailedNotMe(dummyUser1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'followed': {
|
case 'followed': {
|
||||||
send('followed', { user: toPackedUserLite(dummyUser2) });
|
send(toPackedUserLite(dummyUser2));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'unfollow': {
|
case 'unfollow': {
|
||||||
send('unfollow', { user: toPackedUserDetailedNotMe(dummyUser3) });
|
send(toPackedUserDetailedNotMe(dummyUser3));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// まだ実装されていない (#9485)
|
|
||||||
case 'reaction': return;
|
|
||||||
default: {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
const _exhaustiveAssertion: never = params.type;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -495,9 +495,6 @@ export class ApRendererService {
|
||||||
summary: profile.description ? this.mfmService.toHtml(mfm.parse(profile.description)) : null,
|
summary: profile.description ? this.mfmService.toHtml(mfm.parse(profile.description)) : null,
|
||||||
_misskey_summary: profile.description,
|
_misskey_summary: profile.description,
|
||||||
_misskey_followedMessage: profile.followedMessage,
|
_misskey_followedMessage: profile.followedMessage,
|
||||||
_misskey_requireSigninToViewContents: user.requireSigninToViewContents,
|
|
||||||
_misskey_makeNotesFollowersOnlyBefore: user.makeNotesFollowersOnlyBefore,
|
|
||||||
_misskey_makeNotesHiddenBefore: user.makeNotesHiddenBefore,
|
|
||||||
icon: avatar ? this.renderImage(avatar) : null,
|
icon: avatar ? this.renderImage(avatar) : null,
|
||||||
image: banner ? this.renderImage(banner) : null,
|
image: banner ? this.renderImage(banner) : null,
|
||||||
tag,
|
tag,
|
||||||
|
|
|
@ -555,9 +555,6 @@ const extension_context_definition = {
|
||||||
'_misskey_votes': 'misskey:_misskey_votes',
|
'_misskey_votes': 'misskey:_misskey_votes',
|
||||||
'_misskey_summary': 'misskey:_misskey_summary',
|
'_misskey_summary': 'misskey:_misskey_summary',
|
||||||
'_misskey_followedMessage': 'misskey:_misskey_followedMessage',
|
'_misskey_followedMessage': 'misskey:_misskey_followedMessage',
|
||||||
'_misskey_requireSigninToViewContents': 'misskey:_misskey_requireSigninToViewContents',
|
|
||||||
'_misskey_makeNotesFollowersOnlyBefore': 'misskey:_misskey_makeNotesFollowersOnlyBefore',
|
|
||||||
'_misskey_makeNotesHiddenBefore': 'misskey:_misskey_makeNotesHiddenBefore',
|
|
||||||
'isCat': 'misskey:isCat',
|
'isCat': 'misskey:isCat',
|
||||||
// vcard
|
// vcard
|
||||||
vcard: 'http://www.w3.org/2006/vcard/ns#',
|
vcard: 'http://www.w3.org/2006/vcard/ns#',
|
||||||
|
|
|
@ -232,12 +232,6 @@ export class ApPersonService implements OnModuleInit {
|
||||||
if (user == null) throw new Error('failed to create user: user is null');
|
if (user == null) throw new Error('failed to create user: user is null');
|
||||||
|
|
||||||
const [avatar, banner] = await Promise.all([icon, image].map(img => {
|
const [avatar, banner] = await Promise.all([icon, image].map(img => {
|
||||||
// icon and image may be arrays
|
|
||||||
// see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-icon
|
|
||||||
if (Array.isArray(img)) {
|
|
||||||
img = img.find(item => item && item.url) ?? null;
|
|
||||||
}
|
|
||||||
|
|
||||||
// if we have an explicitly missing image, return an
|
// if we have an explicitly missing image, return an
|
||||||
// explicitly-null set of values
|
// explicitly-null set of values
|
||||||
if ((img == null) || (typeof img === 'object' && img.url == null)) {
|
if ((img == null) || (typeof img === 'object' && img.url == null)) {
|
||||||
|
@ -362,9 +356,6 @@ export class ApPersonService implements OnModuleInit {
|
||||||
tags,
|
tags,
|
||||||
isBot,
|
isBot,
|
||||||
isCat: (person as any).isCat === true,
|
isCat: (person as any).isCat === true,
|
||||||
requireSigninToViewContents: (person as any).requireSigninToViewContents === true,
|
|
||||||
makeNotesFollowersOnlyBefore: (person as any).makeNotesFollowersOnlyBefore ?? null,
|
|
||||||
makeNotesHiddenBefore: (person as any).makeNotesHiddenBefore ?? null,
|
|
||||||
emojis,
|
emojis,
|
||||||
})) as MiRemoteUser;
|
})) as MiRemoteUser;
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,6 @@ export interface IObject {
|
||||||
summary?: string;
|
summary?: string;
|
||||||
_misskey_summary?: string;
|
_misskey_summary?: string;
|
||||||
_misskey_followedMessage?: string | null;
|
_misskey_followedMessage?: string | null;
|
||||||
_misskey_requireSigninToViewContents?: boolean;
|
|
||||||
_misskey_makeNotesFollowersOnlyBefore?: number | null;
|
|
||||||
_misskey_makeNotesHiddenBefore?: number | null;
|
|
||||||
published?: string;
|
published?: string;
|
||||||
cc?: ApObject;
|
cc?: ApObject;
|
||||||
to?: ApObject;
|
to?: ApObject;
|
||||||
|
|
|
@ -102,62 +102,34 @@ export class NoteEntityService implements OnModuleInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
private async hideNote(packedNote: Packed<'Note'>, meId: MiUser['id'] | null): Promise<void> {
|
private async hideNote(packedNote: Packed<'Note'>, meId: MiUser['id'] | null) {
|
||||||
// FIXME: このvisibility変更処理が当関数にあるのは若干不自然かもしれない(関数名を treatVisibility とかに変える手もある)
|
|
||||||
if (packedNote.visibility === 'public' || packedNote.visibility === 'home') {
|
|
||||||
const followersOnlyBefore = packedNote.user.makeNotesFollowersOnlyBefore;
|
|
||||||
if ((followersOnlyBefore != null)
|
|
||||||
&& (
|
|
||||||
(followersOnlyBefore <= 0 && (Date.now() - new Date(packedNote.createdAt).getTime() > 0 - (followersOnlyBefore * 1000)))
|
|
||||||
|| (followersOnlyBefore > 0 && (new Date(packedNote.createdAt).getTime() < followersOnlyBefore * 1000))
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
packedNote.visibility = 'followers';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (meId === packedNote.userId) return;
|
|
||||||
|
|
||||||
// TODO: isVisibleForMe を使うようにしても良さそう(型違うけど)
|
// TODO: isVisibleForMe を使うようにしても良さそう(型違うけど)
|
||||||
let hide = false;
|
let hide = false;
|
||||||
|
|
||||||
if (packedNote.user.requireSigninToViewContents && meId == null) {
|
|
||||||
hide = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!hide) {
|
|
||||||
const hiddenBefore = packedNote.user.makeNotesHiddenBefore;
|
|
||||||
if ((hiddenBefore != null)
|
|
||||||
&& (
|
|
||||||
(hiddenBefore <= 0 && (Date.now() - new Date(packedNote.createdAt).getTime() > 0 - (hiddenBefore * 1000)))
|
|
||||||
|| (hiddenBefore > 0 && (new Date(packedNote.createdAt).getTime() < hiddenBefore * 1000))
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
hide = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// visibility が specified かつ自分が指定されていなかったら非表示
|
// visibility が specified かつ自分が指定されていなかったら非表示
|
||||||
if (!hide) {
|
|
||||||
if (packedNote.visibility === 'specified') {
|
if (packedNote.visibility === 'specified') {
|
||||||
if (meId == null) {
|
if (meId == null) {
|
||||||
hide = true;
|
hide = true;
|
||||||
|
} else if (meId === packedNote.userId) {
|
||||||
|
hide = false;
|
||||||
} else {
|
} else {
|
||||||
// 指定されているかどうか
|
// 指定されているかどうか
|
||||||
const specified = packedNote.visibleUserIds!.some(id => meId === id);
|
const specified = packedNote.visibleUserIds!.some(id => meId === id);
|
||||||
|
|
||||||
if (!specified) {
|
if (specified) {
|
||||||
|
hide = false;
|
||||||
|
} else {
|
||||||
hide = true;
|
hide = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// visibility が followers かつ自分が投稿者のフォロワーでなかったら非表示
|
// visibility が followers かつ自分が投稿者のフォロワーでなかったら非表示
|
||||||
if (!hide) {
|
|
||||||
if (packedNote.visibility === 'followers') {
|
if (packedNote.visibility === 'followers') {
|
||||||
if (meId == null) {
|
if (meId == null) {
|
||||||
hide = true;
|
hide = true;
|
||||||
|
} else if (meId === packedNote.userId) {
|
||||||
|
hide = false;
|
||||||
} else if (packedNote.reply && (meId === packedNote.reply.userId)) {
|
} else if (packedNote.reply && (meId === packedNote.reply.userId)) {
|
||||||
// 自分の投稿に対するリプライ
|
// 自分の投稿に対するリプライ
|
||||||
hide = false;
|
hide = false;
|
||||||
|
@ -166,7 +138,6 @@ export class NoteEntityService implements OnModuleInit {
|
||||||
hide = false;
|
hide = false;
|
||||||
} else {
|
} else {
|
||||||
// フォロワーかどうか
|
// フォロワーかどうか
|
||||||
// TODO: 当関数呼び出しごとにクエリが走るのは重そうだからなんとかする
|
|
||||||
const isFollowing = await this.followingsRepository.exists({
|
const isFollowing = await this.followingsRepository.exists({
|
||||||
where: {
|
where: {
|
||||||
followeeId: packedNote.userId,
|
followeeId: packedNote.userId,
|
||||||
|
@ -177,7 +148,6 @@ export class NoteEntityService implements OnModuleInit {
|
||||||
hide = !isFollowing;
|
hide = !isFollowing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (hide) {
|
if (hide) {
|
||||||
packedNote.visibleUserIds = undefined;
|
packedNote.visibleUserIds = undefined;
|
||||||
|
@ -187,7 +157,6 @@ export class NoteEntityService implements OnModuleInit {
|
||||||
packedNote.poll = undefined;
|
packedNote.poll = undefined;
|
||||||
packedNote.cw = null;
|
packedNote.cw = null;
|
||||||
packedNote.isHidden = true;
|
packedNote.isHidden = true;
|
||||||
// TODO: hiddenReason みたいなのを提供しても良さそう
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -490,9 +490,6 @@ export class UserEntityService implements OnModuleInit {
|
||||||
}))) : [],
|
}))) : [],
|
||||||
isBot: user.isBot,
|
isBot: user.isBot,
|
||||||
isCat: user.isCat,
|
isCat: user.isCat,
|
||||||
requireSigninToViewContents: user.requireSigninToViewContents === false ? undefined : true,
|
|
||||||
makeNotesFollowersOnlyBefore: user.makeNotesFollowersOnlyBefore ?? undefined,
|
|
||||||
makeNotesHiddenBefore: user.makeNotesHiddenBefore ?? undefined,
|
|
||||||
instance: user.host ? this.federatedInstanceService.federatedInstanceCache.fetch(user.host).then(instance => instance ? {
|
instance: user.host ? this.federatedInstanceService.federatedInstanceCache.fetch(user.host).then(instance => instance ? {
|
||||||
name: instance.name,
|
name: instance.name,
|
||||||
softwareName: instance.softwareName,
|
softwareName: instance.softwareName,
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export function sqlLikeEscape(s: string) {
|
export function sqlLikeEscape(s: string) {
|
||||||
return s.replace(/([\\%_])/g, '\\$1');
|
return s.replace(/([%_])/g, '\\$1');
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,23 +202,6 @@ export class MiUser {
|
||||||
})
|
})
|
||||||
public isHibernated: boolean;
|
public isHibernated: boolean;
|
||||||
|
|
||||||
@Column('boolean', {
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
public requireSigninToViewContents: boolean;
|
|
||||||
|
|
||||||
// in sec, マイナスで相対時間
|
|
||||||
@Column('integer', {
|
|
||||||
nullable: true,
|
|
||||||
})
|
|
||||||
public makeNotesFollowersOnlyBefore: number | null;
|
|
||||||
|
|
||||||
// in sec, マイナスで相対時間
|
|
||||||
@Column('integer', {
|
|
||||||
nullable: true,
|
|
||||||
})
|
|
||||||
public makeNotesHiddenBefore: number | null;
|
|
||||||
|
|
||||||
// アカウントが削除されたかどうかのフラグだが、完全に削除される際は物理削除なので実質削除されるまでの「削除が進行しているかどうか」のフラグ
|
// アカウントが削除されたかどうかのフラグだが、完全に削除される際は物理削除なので実質削除されるまでの「削除が進行しているかどうか」のフラグ
|
||||||
@Column('boolean', {
|
@Column('boolean', {
|
||||||
default: false,
|
default: false,
|
||||||
|
|
|
@ -115,18 +115,6 @@ export const packedUserLiteSchema = {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
nullable: false, optional: true,
|
nullable: false, optional: true,
|
||||||
},
|
},
|
||||||
requireSigninToViewContents: {
|
|
||||||
type: 'boolean',
|
|
||||||
nullable: false, optional: true,
|
|
||||||
},
|
|
||||||
makeNotesFollowersOnlyBefore: {
|
|
||||||
type: 'number',
|
|
||||||
nullable: true, optional: true,
|
|
||||||
},
|
|
||||||
makeNotesHiddenBefore: {
|
|
||||||
type: 'number',
|
|
||||||
nullable: true, optional: true,
|
|
||||||
},
|
|
||||||
instance: {
|
instance: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
nullable: false, optional: true,
|
nullable: false, optional: true,
|
||||||
|
|
|
@ -29,7 +29,6 @@ import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { IActivity } from '@/core/activitypub/type.js';
|
import { IActivity } from '@/core/activitypub/type.js';
|
||||||
import { isQuote, isRenote } from '@/misc/is-renote.js';
|
import { isQuote, isRenote } from '@/misc/is-renote.js';
|
||||||
import * as Acct from '@/misc/acct.js';
|
|
||||||
import type { FastifyInstance, FastifyRequest, FastifyReply, FastifyPluginOptions, FastifyBodyParser } from 'fastify';
|
import type { FastifyInstance, FastifyRequest, FastifyReply, FastifyPluginOptions, FastifyBodyParser } from 'fastify';
|
||||||
import type { FindOptionsWhere } from 'typeorm';
|
import type { FindOptionsWhere } from 'typeorm';
|
||||||
|
|
||||||
|
@ -487,16 +486,6 @@ export class ActivityPubServerService {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// リモートだったらリダイレクト
|
|
||||||
if (user.host != null) {
|
|
||||||
if (user.uri == null || this.utilityService.isSelfHost(user.host)) {
|
|
||||||
reply.code(500);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
reply.redirect(user.uri, 301);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
reply.header('Cache-Control', 'public, max-age=180');
|
reply.header('Cache-Control', 'public, max-age=180');
|
||||||
this.setResponseType(request, reply);
|
this.setResponseType(request, reply);
|
||||||
return (this.apRendererService.addContext(await this.apRendererService.renderPerson(user as MiLocalUser)));
|
return (this.apRendererService.addContext(await this.apRendererService.renderPerson(user as MiLocalUser)));
|
||||||
|
@ -665,20 +654,19 @@ export class ActivityPubServerService {
|
||||||
|
|
||||||
const user = await this.usersRepository.findOneBy({
|
const user = await this.usersRepository.findOneBy({
|
||||||
id: userId,
|
id: userId,
|
||||||
|
host: IsNull(),
|
||||||
isSuspended: false,
|
isSuspended: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
return await this.userInfo(request, reply, user);
|
return await this.userInfo(request, reply, user);
|
||||||
});
|
});
|
||||||
|
|
||||||
fastify.get<{ Params: { acct: string; } }>('/@:acct', { constraints: { apOrHtml: 'ap' } }, async (request, reply) => {
|
fastify.get<{ Params: { user: string; } }>('/@:user', { constraints: { apOrHtml: 'ap' } }, async (request, reply) => {
|
||||||
vary(reply.raw, 'Accept');
|
vary(reply.raw, 'Accept');
|
||||||
|
|
||||||
const acct = Acct.parse(request.params.acct);
|
|
||||||
|
|
||||||
const user = await this.usersRepository.findOneBy({
|
const user = await this.usersRepository.findOneBy({
|
||||||
usernameLower: acct.username,
|
usernameLower: request.params.user.toLowerCase(),
|
||||||
host: acct.host ?? IsNull(),
|
host: IsNull(),
|
||||||
isSuspended: false,
|
isSuspended: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -319,12 +319,6 @@ export class FileServerService {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!request.headers['user-agent']) {
|
|
||||||
throw new StatusError('User-Agent is required', 400, 'User-Agent is required');
|
|
||||||
} else if (request.headers['user-agent'].toLowerCase().indexOf('misskey/') !== -1) {
|
|
||||||
throw new StatusError('Refusing to proxy a request from another proxy', 403, 'Proxy is recursive');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create temp file
|
// Create temp file
|
||||||
const file = await this.getStreamAndTypeFromUrl(url);
|
const file = await this.getStreamAndTypeFromUrl(url);
|
||||||
if (file === '404') {
|
if (file === '404') {
|
||||||
|
|
|
@ -39,17 +39,6 @@ export class GetterService {
|
||||||
return note;
|
return note;
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
|
||||||
public async getNoteWithUser(noteId: MiNote['id']) {
|
|
||||||
const note = await this.notesRepository.findOne({ where: { id: noteId }, relations: ['user'] });
|
|
||||||
|
|
||||||
if (note == null) {
|
|
||||||
throw new IdentifiableError('9725d0ce-ba28-4dde-95a7-2cbb2c15de24', 'No such note.');
|
|
||||||
}
|
|
||||||
|
|
||||||
return note;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get user for API processing
|
* Get user for API processing
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
import { Injectable } from '@nestjs/common';
|
import { Injectable } from '@nestjs/common';
|
||||||
import { Endpoint } from '@/server/api/endpoint-base.js';
|
import { Endpoint } from '@/server/api/endpoint-base.js';
|
||||||
import { AvatarDecorationService } from '@/core/AvatarDecorationService.js';
|
import { AvatarDecorationService } from '@/core/AvatarDecorationService.js';
|
||||||
import { IdService } from '@/core/IdService.js';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['admin'],
|
tags: ['admin'],
|
||||||
|
@ -14,49 +13,6 @@ export const meta = {
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
requireRolePolicy: 'canManageAvatarDecorations',
|
requireRolePolicy: 'canManageAvatarDecorations',
|
||||||
kind: 'write:admin:avatar-decorations',
|
kind: 'write:admin:avatar-decorations',
|
||||||
|
|
||||||
res: {
|
|
||||||
type: 'object',
|
|
||||||
optional: false, nullable: false,
|
|
||||||
properties: {
|
|
||||||
id: {
|
|
||||||
type: 'string',
|
|
||||||
optional: false, nullable: false,
|
|
||||||
format: 'id',
|
|
||||||
},
|
|
||||||
createdAt: {
|
|
||||||
type: 'string',
|
|
||||||
optional: false, nullable: false,
|
|
||||||
format: 'date-time',
|
|
||||||
},
|
|
||||||
updatedAt: {
|
|
||||||
type: 'string',
|
|
||||||
optional: false, nullable: true,
|
|
||||||
format: 'date-time',
|
|
||||||
},
|
|
||||||
name: {
|
|
||||||
type: 'string',
|
|
||||||
optional: false, nullable: false,
|
|
||||||
},
|
|
||||||
description: {
|
|
||||||
type: 'string',
|
|
||||||
optional: false, nullable: false,
|
|
||||||
},
|
|
||||||
url: {
|
|
||||||
type: 'string',
|
|
||||||
optional: false, nullable: false,
|
|
||||||
},
|
|
||||||
roleIdsThatCanBeUsedThisDecoration: {
|
|
||||||
type: 'array',
|
|
||||||
optional: false, nullable: false,
|
|
||||||
items: {
|
|
||||||
type: 'string',
|
|
||||||
optional: false, nullable: false,
|
|
||||||
format: 'id',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
|
@ -76,25 +32,14 @@ export const paramDef = {
|
||||||
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
|
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
|
||||||
constructor(
|
constructor(
|
||||||
private avatarDecorationService: AvatarDecorationService,
|
private avatarDecorationService: AvatarDecorationService,
|
||||||
private idService: IdService,
|
|
||||||
) {
|
) {
|
||||||
super(meta, paramDef, async (ps, me) => {
|
super(meta, paramDef, async (ps, me) => {
|
||||||
const created = await this.avatarDecorationService.create({
|
await this.avatarDecorationService.create({
|
||||||
name: ps.name,
|
name: ps.name,
|
||||||
description: ps.description,
|
description: ps.description,
|
||||||
url: ps.url,
|
url: ps.url,
|
||||||
roleIdsThatCanBeUsedThisDecoration: ps.roleIdsThatCanBeUsedThisDecoration,
|
roleIdsThatCanBeUsedThisDecoration: ps.roleIdsThatCanBeUsedThisDecoration,
|
||||||
}, me);
|
}, me);
|
||||||
|
|
||||||
return {
|
|
||||||
id: created.id,
|
|
||||||
createdAt: this.idService.parse(created.id).date.toISOString(),
|
|
||||||
updatedAt: null,
|
|
||||||
name: created.name,
|
|
||||||
description: created.description,
|
|
||||||
url: created.url,
|
|
||||||
roleIdsThatCanBeUsedThisDecoration: created.roleIdsThatCanBeUsedThisDecoration,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
|
import type { AnnouncementsRepository, AnnouncementReadsRepository } from '@/models/_.js';
|
||||||
|
import type { MiAnnouncement } from '@/models/Announcement.js';
|
||||||
import { Endpoint } from '@/server/api/endpoint-base.js';
|
import { Endpoint } from '@/server/api/endpoint-base.js';
|
||||||
|
import { QueryService } from '@/core/QueryService.js';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import { IdService } from '@/core/IdService.js';
|
import { IdService } from '@/core/IdService.js';
|
||||||
import { AvatarDecorationService } from '@/core/AvatarDecorationService.js';
|
import { AvatarDecorationService } from '@/core/AvatarDecorationService.js';
|
||||||
|
|
|
@ -179,9 +179,6 @@ export const paramDef = {
|
||||||
autoAcceptFollowed: { type: 'boolean' },
|
autoAcceptFollowed: { type: 'boolean' },
|
||||||
noCrawle: { type: 'boolean' },
|
noCrawle: { type: 'boolean' },
|
||||||
preventAiLearning: { type: 'boolean' },
|
preventAiLearning: { type: 'boolean' },
|
||||||
requireSigninToViewContents: { type: 'boolean' },
|
|
||||||
makeNotesFollowersOnlyBefore: { type: 'integer', nullable: true },
|
|
||||||
makeNotesHiddenBefore: { type: 'integer', nullable: true },
|
|
||||||
isBot: { type: 'boolean' },
|
isBot: { type: 'boolean' },
|
||||||
isCat: { type: 'boolean' },
|
isCat: { type: 'boolean' },
|
||||||
injectFeaturedNote: { type: 'boolean' },
|
injectFeaturedNote: { type: 'boolean' },
|
||||||
|
@ -337,9 +334,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
if (typeof ps.autoAcceptFollowed === 'boolean') profileUpdates.autoAcceptFollowed = ps.autoAcceptFollowed;
|
if (typeof ps.autoAcceptFollowed === 'boolean') profileUpdates.autoAcceptFollowed = ps.autoAcceptFollowed;
|
||||||
if (typeof ps.noCrawle === 'boolean') profileUpdates.noCrawle = ps.noCrawle;
|
if (typeof ps.noCrawle === 'boolean') profileUpdates.noCrawle = ps.noCrawle;
|
||||||
if (typeof ps.preventAiLearning === 'boolean') profileUpdates.preventAiLearning = ps.preventAiLearning;
|
if (typeof ps.preventAiLearning === 'boolean') profileUpdates.preventAiLearning = ps.preventAiLearning;
|
||||||
if (typeof ps.requireSigninToViewContents === 'boolean') updates.requireSigninToViewContents = ps.requireSigninToViewContents;
|
|
||||||
if ((typeof ps.makeNotesFollowersOnlyBefore === 'number') || (ps.makeNotesFollowersOnlyBefore === null)) updates.makeNotesFollowersOnlyBefore = ps.makeNotesFollowersOnlyBefore;
|
|
||||||
if ((typeof ps.makeNotesHiddenBefore === 'number') || (ps.makeNotesHiddenBefore === null)) updates.makeNotesHiddenBefore = ps.makeNotesHiddenBefore;
|
|
||||||
if (typeof ps.isCat === 'boolean') updates.isCat = ps.isCat;
|
if (typeof ps.isCat === 'boolean') updates.isCat = ps.isCat;
|
||||||
if (typeof ps.injectFeaturedNote === 'boolean') profileUpdates.injectFeaturedNote = ps.injectFeaturedNote;
|
if (typeof ps.injectFeaturedNote === 'boolean') profileUpdates.injectFeaturedNote = ps.injectFeaturedNote;
|
||||||
if (typeof ps.receiveAnnouncementEmail === 'boolean') profileUpdates.receiveAnnouncementEmail = ps.receiveAnnouncementEmail;
|
if (typeof ps.receiveAnnouncementEmail === 'boolean') profileUpdates.receiveAnnouncementEmail = ps.receiveAnnouncementEmail;
|
||||||
|
@ -465,7 +459,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
const newName = updates.name === undefined ? user.name : updates.name;
|
const newName = updates.name === undefined ? user.name : updates.name;
|
||||||
const newDescription = profileUpdates.description === undefined ? profile.description : profileUpdates.description;
|
const newDescription = profileUpdates.description === undefined ? profile.description : profileUpdates.description;
|
||||||
const newFields = profileUpdates.fields === undefined ? profile.fields : profileUpdates.fields;
|
const newFields = profileUpdates.fields === undefined ? profile.fields : profileUpdates.fields;
|
||||||
const newFollowedMessage = profileUpdates.followedMessage === undefined ? profile.followedMessage : profileUpdates.followedMessage;
|
|
||||||
|
|
||||||
if (newName != null) {
|
if (newName != null) {
|
||||||
let hasProhibitedWords = false;
|
let hasProhibitedWords = false;
|
||||||
|
@ -495,11 +488,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newFollowedMessage != null) {
|
|
||||||
const tokens = mfm.parse(newFollowedMessage);
|
|
||||||
emojis = emojis.concat(extractCustomEmojisFromMfm(tokens));
|
|
||||||
}
|
|
||||||
|
|
||||||
updates.emojis = emojis;
|
updates.emojis = emojis;
|
||||||
updates.tags = tags;
|
updates.tags = tags;
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
const policies = await this.roleService.getUserPolicies(me.id);
|
const policies = await this.roleService.getUserPolicies(me.id);
|
||||||
|
|
||||||
const count = policies.inviteLimit ? await this.registrationTicketsRepository.countBy({
|
const count = policies.inviteLimit ? await this.registrationTicketsRepository.countBy({
|
||||||
id: MoreThan(this.idService.gen(Date.now() - (policies.inviteLimitCycle * 60 * 1000))),
|
id: MoreThan(this.idService.gen(Date.now() - (policies.inviteExpirationTime * 60 * 1000))),
|
||||||
createdById: me.id,
|
createdById: me.id,
|
||||||
}) : null;
|
}) : null;
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,6 @@ export const meta = {
|
||||||
code: 'NO_SUCH_NOTE',
|
code: 'NO_SUCH_NOTE',
|
||||||
id: '24fcbfc6-2e37-42b6-8388-c29b3861a08d',
|
id: '24fcbfc6-2e37-42b6-8388-c29b3861a08d',
|
||||||
},
|
},
|
||||||
|
|
||||||
signinRequired: {
|
|
||||||
message: 'Signin required.',
|
|
||||||
code: 'SIGNIN_REQUIRED',
|
|
||||||
id: '8e75455b-738c-471d-9f80-62693f33372e',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
@ -50,15 +44,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
private getterService: GetterService,
|
private getterService: GetterService,
|
||||||
) {
|
) {
|
||||||
super(meta, paramDef, async (ps, me) => {
|
super(meta, paramDef, async (ps, me) => {
|
||||||
const note = await this.getterService.getNoteWithUser(ps.noteId).catch(err => {
|
const note = await this.getterService.getNote(ps.noteId).catch(err => {
|
||||||
if (err.id === '9725d0ce-ba28-4dde-95a7-2cbb2c15de24') throw new ApiError(meta.errors.noSuchNote);
|
if (err.id === '9725d0ce-ba28-4dde-95a7-2cbb2c15de24') throw new ApiError(meta.errors.noSuchNote);
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (note.user!.requireSigninToViewContents && me == null) {
|
|
||||||
throw new ApiError(meta.errors.signinRequired);
|
|
||||||
}
|
|
||||||
|
|
||||||
return await this.noteEntityService.pack(note, me, {
|
return await this.noteEntityService.pack(note, me, {
|
||||||
detail: true,
|
detail: true,
|
||||||
});
|
});
|
||||||
|
|
|
@ -112,7 +112,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
|
|
||||||
this.activeUsersChart.read(me);
|
this.activeUsersChart.read(me);
|
||||||
|
|
||||||
return await this.noteEntityService.packMany(timeline, me);
|
await this.noteEntityService.packMany(timeline, me);
|
||||||
}
|
}
|
||||||
|
|
||||||
const timeline = await this.fanoutTimelineEndpointService.timeline({
|
const timeline = await this.fanoutTimelineEndpointService.timeline({
|
||||||
|
|
|
@ -42,12 +42,6 @@ export const meta = {
|
||||||
code: 'BOTH_WITH_REPLIES_AND_WITH_FILES',
|
code: 'BOTH_WITH_REPLIES_AND_WITH_FILES',
|
||||||
id: '91c8cb9f-36ed-46e7-9ca2-7df96ed6e222',
|
id: '91c8cb9f-36ed-46e7-9ca2-7df96ed6e222',
|
||||||
},
|
},
|
||||||
|
|
||||||
signinRequired: {
|
|
||||||
message: 'Signin required.',
|
|
||||||
code: 'SIGNIN_REQUIRED',
|
|
||||||
id: 'd1588a9e-4b4d-4c07-807f-16f1486577a2',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ import type {
|
||||||
EndedPollNotificationQueue,
|
EndedPollNotificationQueue,
|
||||||
InboxQueue,
|
InboxQueue,
|
||||||
ObjectStorageQueue,
|
ObjectStorageQueue,
|
||||||
RelationshipQueue,
|
|
||||||
SystemQueue,
|
SystemQueue,
|
||||||
UserWebhookDeliverQueue,
|
UserWebhookDeliverQueue,
|
||||||
SystemWebhookDeliverQueue,
|
SystemWebhookDeliverQueue,
|
||||||
|
@ -42,26 +41,13 @@ import { MetaEntityService } from '@/core/entities/MetaEntityService.js';
|
||||||
import { GalleryPostEntityService } from '@/core/entities/GalleryPostEntityService.js';
|
import { GalleryPostEntityService } from '@/core/entities/GalleryPostEntityService.js';
|
||||||
import { ClipEntityService } from '@/core/entities/ClipEntityService.js';
|
import { ClipEntityService } from '@/core/entities/ClipEntityService.js';
|
||||||
import { ChannelEntityService } from '@/core/entities/ChannelEntityService.js';
|
import { ChannelEntityService } from '@/core/entities/ChannelEntityService.js';
|
||||||
import type {
|
import type { ChannelsRepository, ClipsRepository, FlashsRepository, GalleryPostsRepository, MiMeta, NotesRepository, PagesRepository, ReversiGamesRepository, UserProfilesRepository, UsersRepository } from '@/models/_.js';
|
||||||
AnnouncementsRepository,
|
|
||||||
ChannelsRepository,
|
|
||||||
ClipsRepository,
|
|
||||||
FlashsRepository,
|
|
||||||
GalleryPostsRepository,
|
|
||||||
MiMeta,
|
|
||||||
NotesRepository,
|
|
||||||
PagesRepository,
|
|
||||||
ReversiGamesRepository,
|
|
||||||
UserProfilesRepository,
|
|
||||||
UsersRepository,
|
|
||||||
} from '@/models/_.js';
|
|
||||||
import type Logger from '@/logger.js';
|
import type Logger from '@/logger.js';
|
||||||
import { handleRequestRedirectToOmitSearch } from '@/misc/fastify-hook-handlers.js';
|
import { handleRequestRedirectToOmitSearch } from '@/misc/fastify-hook-handlers.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { FlashEntityService } from '@/core/entities/FlashEntityService.js';
|
import { FlashEntityService } from '@/core/entities/FlashEntityService.js';
|
||||||
import { RoleService } from '@/core/RoleService.js';
|
import { RoleService } from '@/core/RoleService.js';
|
||||||
import { ReversiGameEntityService } from '@/core/entities/ReversiGameEntityService.js';
|
import { ReversiGameEntityService } from '@/core/entities/ReversiGameEntityService.js';
|
||||||
import { AnnouncementEntityService } from '@/core/entities/AnnouncementEntityService.js';
|
|
||||||
import { FeedService } from './FeedService.js';
|
import { FeedService } from './FeedService.js';
|
||||||
import { UrlPreviewService } from './UrlPreviewService.js';
|
import { UrlPreviewService } from './UrlPreviewService.js';
|
||||||
import { ClientLoggerService } from './ClientLoggerService.js';
|
import { ClientLoggerService } from './ClientLoggerService.js';
|
||||||
|
@ -116,9 +102,6 @@ export class ClientServerService {
|
||||||
@Inject(DI.reversiGamesRepository)
|
@Inject(DI.reversiGamesRepository)
|
||||||
private reversiGamesRepository: ReversiGamesRepository,
|
private reversiGamesRepository: ReversiGamesRepository,
|
||||||
|
|
||||||
@Inject(DI.announcementsRepository)
|
|
||||||
private announcementsRepository: AnnouncementsRepository,
|
|
||||||
|
|
||||||
private flashEntityService: FlashEntityService,
|
private flashEntityService: FlashEntityService,
|
||||||
private userEntityService: UserEntityService,
|
private userEntityService: UserEntityService,
|
||||||
private noteEntityService: NoteEntityService,
|
private noteEntityService: NoteEntityService,
|
||||||
|
@ -128,7 +111,6 @@ export class ClientServerService {
|
||||||
private clipEntityService: ClipEntityService,
|
private clipEntityService: ClipEntityService,
|
||||||
private channelEntityService: ChannelEntityService,
|
private channelEntityService: ChannelEntityService,
|
||||||
private reversiGameEntityService: ReversiGameEntityService,
|
private reversiGameEntityService: ReversiGameEntityService,
|
||||||
private announcementEntityService: AnnouncementEntityService,
|
|
||||||
private urlPreviewService: UrlPreviewService,
|
private urlPreviewService: UrlPreviewService,
|
||||||
private feedService: FeedService,
|
private feedService: FeedService,
|
||||||
private roleService: RoleService,
|
private roleService: RoleService,
|
||||||
|
@ -139,7 +121,6 @@ export class ClientServerService {
|
||||||
@Inject('queue:deliver') public deliverQueue: DeliverQueue,
|
@Inject('queue:deliver') public deliverQueue: DeliverQueue,
|
||||||
@Inject('queue:inbox') public inboxQueue: InboxQueue,
|
@Inject('queue:inbox') public inboxQueue: InboxQueue,
|
||||||
@Inject('queue:db') public dbQueue: DbQueue,
|
@Inject('queue:db') public dbQueue: DbQueue,
|
||||||
@Inject('queue:relationship') public relationshipQueue: RelationshipQueue,
|
|
||||||
@Inject('queue:objectStorage') public objectStorageQueue: ObjectStorageQueue,
|
@Inject('queue:objectStorage') public objectStorageQueue: ObjectStorageQueue,
|
||||||
@Inject('queue:userWebhookDeliver') public userWebhookDeliverQueue: UserWebhookDeliverQueue,
|
@Inject('queue:userWebhookDeliver') public userWebhookDeliverQueue: UserWebhookDeliverQueue,
|
||||||
@Inject('queue:systemWebhookDeliver') public systemWebhookDeliverQueue: SystemWebhookDeliverQueue,
|
@Inject('queue:systemWebhookDeliver') public systemWebhookDeliverQueue: SystemWebhookDeliverQueue,
|
||||||
|
@ -267,7 +248,6 @@ export class ClientServerService {
|
||||||
this.deliverQueue,
|
this.deliverQueue,
|
||||||
this.inboxQueue,
|
this.inboxQueue,
|
||||||
this.dbQueue,
|
this.dbQueue,
|
||||||
this.relationshipQueue,
|
|
||||||
this.objectStorageQueue,
|
this.objectStorageQueue,
|
||||||
this.userWebhookDeliverQueue,
|
this.userWebhookDeliverQueue,
|
||||||
this.systemWebhookDeliverQueue,
|
this.systemWebhookDeliverQueue,
|
||||||
|
@ -618,15 +598,12 @@ export class ClientServerService {
|
||||||
fastify.get<{ Params: { note: string; } }>('/notes/:note', async (request, reply) => {
|
fastify.get<{ Params: { note: string; } }>('/notes/:note', async (request, reply) => {
|
||||||
vary(reply.raw, 'Accept');
|
vary(reply.raw, 'Accept');
|
||||||
|
|
||||||
const note = await this.notesRepository.findOne({
|
const note = await this.notesRepository.findOneBy({
|
||||||
where: {
|
|
||||||
id: request.params.note,
|
id: request.params.note,
|
||||||
visibility: In(['public', 'home']),
|
visibility: In(['public', 'home']),
|
||||||
},
|
|
||||||
relations: ['user'],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (note && !note.user!.requireSigninToViewContents) {
|
if (note) {
|
||||||
const _note = await this.noteEntityService.pack(note);
|
const _note = await this.noteEntityService.pack(note);
|
||||||
const profile = await this.userProfilesRepository.findOneByOrFail({ userId: note.userId });
|
const profile = await this.userProfilesRepository.findOneByOrFail({ userId: note.userId });
|
||||||
reply.header('Cache-Control', 'public, max-age=15');
|
reply.header('Cache-Control', 'public, max-age=15');
|
||||||
|
@ -793,24 +770,6 @@ export class ClientServerService {
|
||||||
return await renderBase(reply);
|
return await renderBase(reply);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 個別お知らせページ
|
|
||||||
fastify.get<{ Params: { announcementId: string; } }>('/announcements/:announcementId', async (request, reply) => {
|
|
||||||
const announcement = await this.announcementsRepository.findOneBy({
|
|
||||||
id: request.params.announcementId,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (announcement) {
|
|
||||||
const _announcement = await this.announcementEntityService.pack(announcement);
|
|
||||||
reply.header('Cache-Control', 'public, max-age=3600');
|
|
||||||
return await reply.view('announcement', {
|
|
||||||
announcement: _announcement,
|
|
||||||
...await this.generateCommonPugData(this.meta),
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
return await renderBase(reply);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region noindex pages
|
//#region noindex pages
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
extends ./base
|
|
||||||
|
|
||||||
block vars
|
|
||||||
- const title = announcement.title;
|
|
||||||
- const description = announcement.text.length > 100 ? announcement.text.slice(0, 100) + '…' : announcement.text;
|
|
||||||
- const url = `${config.url}/announcements/${announcement.id}`;
|
|
||||||
|
|
||||||
block title
|
|
||||||
= `${title} | ${instanceName}`
|
|
||||||
|
|
||||||
block desc
|
|
||||||
meta(name='description' content=description)
|
|
||||||
|
|
||||||
block og
|
|
||||||
meta(property='og:type' content='article')
|
|
||||||
meta(property='og:title' content= title)
|
|
||||||
meta(property='og:description' content= description)
|
|
||||||
meta(property='og:url' content= url)
|
|
||||||
if announcement.imageUrl
|
|
||||||
meta(property='og:image' content=announcement.imageUrl)
|
|
||||||
meta(property='twitter:card' content='summary_large_image')
|
|
|
@ -2,7 +2,6 @@ block vars
|
||||||
|
|
||||||
block loadClientEntry
|
block loadClientEntry
|
||||||
- const entry = config.frontendEntry;
|
- const entry = config.frontendEntry;
|
||||||
- const baseUrl = config.url;
|
|
||||||
|
|
||||||
doctype html
|
doctype html
|
||||||
|
|
||||||
|
@ -33,7 +32,7 @@ html
|
||||||
link(rel='icon' href= icon || '/favicon.ico')
|
link(rel='icon' href= icon || '/favicon.ico')
|
||||||
link(rel='apple-touch-icon' href= appleTouchIcon || '/apple-touch-icon.png')
|
link(rel='apple-touch-icon' href= appleTouchIcon || '/apple-touch-icon.png')
|
||||||
link(rel='manifest' href='/manifest.json')
|
link(rel='manifest' href='/manifest.json')
|
||||||
link(rel='search' type='application/opensearchdescription+xml' title=(title || "Misskey") href=`${baseUrl}/opensearch.xml`)
|
link(rel='search' type='application/opensearchdescription+xml' title=(title || "Misskey") href=`${url}/opensearch.xml`)
|
||||||
link(rel='prefetch' href=serverErrorImageUrl)
|
link(rel='prefetch' href=serverErrorImageUrl)
|
||||||
link(rel='prefetch' href=infoImageUrl)
|
link(rel='prefetch' href=infoImageUrl)
|
||||||
link(rel='prefetch' href=notFoundImageUrl)
|
link(rel='prefetch' href=notFoundImageUrl)
|
||||||
|
|
|
@ -232,6 +232,7 @@ export async function isFired<C extends keyof Misskey.Channels, T extends keyof
|
||||||
params?: Misskey.Channels[C]['params'],
|
params?: Misskey.Channels[C]['params'],
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
return new Promise<boolean>(async (resolve, reject) => {
|
return new Promise<boolean>(async (resolve, reject) => {
|
||||||
|
// @ts-expect-error TODO: why?
|
||||||
const stream = new Misskey.Stream(`wss://${host}`, { token: user.i }, { WebSocket });
|
const stream = new Misskey.Stream(`wss://${host}`, { token: user.i }, { WebSocket });
|
||||||
const connection = stream.useChannel(channel, params);
|
const connection = stream.useChannel(channel, params);
|
||||||
connection.on(type as any, ((msg: any) => {
|
connection.on(type as any, ((msg: any) => {
|
||||||
|
@ -265,6 +266,7 @@ export async function isNoteUpdatedEventFired(
|
||||||
cond: (msg: Parameters<Misskey.StreamEvents['noteUpdated']>[0]) => boolean,
|
cond: (msg: Parameters<Misskey.StreamEvents['noteUpdated']>[0]) => boolean,
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
return new Promise<boolean>(async (resolve, reject) => {
|
return new Promise<boolean>(async (resolve, reject) => {
|
||||||
|
// @ts-expect-error TODO: why?
|
||||||
const stream = new Misskey.Stream(`wss://${host}`, { token: user.i }, { WebSocket });
|
const stream = new Misskey.Stream(`wss://${host}`, { token: user.i }, { WebSocket });
|
||||||
stream.send('s', { id: noteId });
|
stream.send('s', { id: noteId });
|
||||||
stream.on('noteUpdated', msg => {
|
stream.on('noteUpdated', msg => {
|
||||||
|
|
|
@ -230,7 +230,6 @@ describe('Webリソース', () => {
|
||||||
path: path('xxxxxxxxxx'),
|
path: path('xxxxxxxxxx'),
|
||||||
type: HTML,
|
type: HTML,
|
||||||
}));
|
}));
|
||||||
test.todo('HTMLとしてGETできる。(リモートユーザーでもリダイレクトせず)');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe.each([
|
describe.each([
|
||||||
|
@ -250,7 +249,6 @@ describe('Webリソース', () => {
|
||||||
path: path('xxxxxxxxxx'),
|
path: path('xxxxxxxxxx'),
|
||||||
accept,
|
accept,
|
||||||
}));
|
}));
|
||||||
test.todo('はオリジナルにリダイレクトされる。(リモートユーザー)');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
import { Test, TestingModule } from '@nestjs/testing';
|
import { Test, TestingModule } from '@nestjs/testing';
|
||||||
import { beforeAll, describe, jest } from '@jest/globals';
|
import { beforeAll, describe, jest } from '@jest/globals';
|
||||||
import { WebhookTestService } from '@/core/WebhookTestService.js';
|
import { WebhookTestService } from '@/core/WebhookTestService.js';
|
||||||
import { UserWebhookPayload, UserWebhookService } from '@/core/UserWebhookService.js';
|
import { UserWebhookService } from '@/core/UserWebhookService.js';
|
||||||
import { SystemWebhookService } from '@/core/SystemWebhookService.js';
|
import { SystemWebhookService } from '@/core/SystemWebhookService.js';
|
||||||
import { GlobalModule } from '@/GlobalModule.js';
|
import { GlobalModule } from '@/GlobalModule.js';
|
||||||
import { MiSystemWebhook, MiUser, MiWebhook, UserProfilesRepository, UsersRepository } from '@/models/_.js';
|
import { MiSystemWebhook, MiUser, MiWebhook, UserProfilesRepository, UsersRepository } from '@/models/_.js';
|
||||||
|
@ -122,7 +122,7 @@ describe('WebhookTestService', () => {
|
||||||
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
||||||
expect((calls[0] as any).id).toBe('dummy-webhook');
|
expect((calls[0] as any).id).toBe('dummy-webhook');
|
||||||
expect(calls[1]).toBe('note');
|
expect(calls[1]).toBe('note');
|
||||||
expect((calls[2] as UserWebhookPayload<'note'>).note.id).toBe('dummy-note-1');
|
expect((calls[2] as any).id).toBe('dummy-note-1');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('reply', async () => {
|
test('reply', async () => {
|
||||||
|
@ -131,7 +131,7 @@ describe('WebhookTestService', () => {
|
||||||
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
||||||
expect((calls[0] as any).id).toBe('dummy-webhook');
|
expect((calls[0] as any).id).toBe('dummy-webhook');
|
||||||
expect(calls[1]).toBe('reply');
|
expect(calls[1]).toBe('reply');
|
||||||
expect((calls[2] as UserWebhookPayload<'reply'>).note.id).toBe('dummy-reply-1');
|
expect((calls[2] as any).id).toBe('dummy-reply-1');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('renote', async () => {
|
test('renote', async () => {
|
||||||
|
@ -140,7 +140,7 @@ describe('WebhookTestService', () => {
|
||||||
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
||||||
expect((calls[0] as any).id).toBe('dummy-webhook');
|
expect((calls[0] as any).id).toBe('dummy-webhook');
|
||||||
expect(calls[1]).toBe('renote');
|
expect(calls[1]).toBe('renote');
|
||||||
expect((calls[2] as UserWebhookPayload<'renote'>).note.id).toBe('dummy-renote-1');
|
expect((calls[2] as any).id).toBe('dummy-renote-1');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('mention', async () => {
|
test('mention', async () => {
|
||||||
|
@ -149,7 +149,7 @@ describe('WebhookTestService', () => {
|
||||||
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
||||||
expect((calls[0] as any).id).toBe('dummy-webhook');
|
expect((calls[0] as any).id).toBe('dummy-webhook');
|
||||||
expect(calls[1]).toBe('mention');
|
expect(calls[1]).toBe('mention');
|
||||||
expect((calls[2] as UserWebhookPayload<'mention'>).note.id).toBe('dummy-mention-1');
|
expect((calls[2] as any).id).toBe('dummy-mention-1');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('follow', async () => {
|
test('follow', async () => {
|
||||||
|
@ -158,7 +158,7 @@ describe('WebhookTestService', () => {
|
||||||
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
||||||
expect((calls[0] as any).id).toBe('dummy-webhook');
|
expect((calls[0] as any).id).toBe('dummy-webhook');
|
||||||
expect(calls[1]).toBe('follow');
|
expect(calls[1]).toBe('follow');
|
||||||
expect((calls[2] as UserWebhookPayload<'follow'>).user.id).toBe('dummy-user-1');
|
expect((calls[2] as any).id).toBe('dummy-user-1');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('followed', async () => {
|
test('followed', async () => {
|
||||||
|
@ -167,7 +167,7 @@ describe('WebhookTestService', () => {
|
||||||
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
||||||
expect((calls[0] as any).id).toBe('dummy-webhook');
|
expect((calls[0] as any).id).toBe('dummy-webhook');
|
||||||
expect(calls[1]).toBe('followed');
|
expect(calls[1]).toBe('followed');
|
||||||
expect((calls[2] as UserWebhookPayload<'followed'>).user.id).toBe('dummy-user-2');
|
expect((calls[2] as any).id).toBe('dummy-user-2');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('unfollow', async () => {
|
test('unfollow', async () => {
|
||||||
|
@ -176,7 +176,7 @@ describe('WebhookTestService', () => {
|
||||||
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
const calls = queueService.userWebhookDeliver.mock.calls[0];
|
||||||
expect((calls[0] as any).id).toBe('dummy-webhook');
|
expect((calls[0] as any).id).toBe('dummy-webhook');
|
||||||
expect(calls[1]).toBe('unfollow');
|
expect(calls[1]).toBe('unfollow');
|
||||||
expect((calls[2] as UserWebhookPayload<'unfollow'>).user.id).toBe('dummy-user-3');
|
expect((calls[2] as any).id).toBe('dummy-user-3');
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('NoSuchWebhookError', () => {
|
describe('NoSuchWebhookError', () => {
|
||||||
|
|
|
@ -21,7 +21,6 @@ import { url } from '@@/js/config.js';
|
||||||
import { parseEmbedParams } from '@@/js/embed-page.js';
|
import { parseEmbedParams } from '@@/js/embed-page.js';
|
||||||
import { postMessageToParentWindow, setIframeId } from '@/post-message.js';
|
import { postMessageToParentWindow, setIframeId } from '@/post-message.js';
|
||||||
import { serverContext } from '@/server-context.js';
|
import { serverContext } from '@/server-context.js';
|
||||||
import { i18n } from '@/i18n.js';
|
|
||||||
|
|
||||||
import type { Theme } from '@/theme.js';
|
import type { Theme } from '@/theme.js';
|
||||||
|
|
||||||
|
@ -128,27 +127,6 @@ window.onunhandledrejection = null;
|
||||||
|
|
||||||
removeSplash();
|
removeSplash();
|
||||||
|
|
||||||
//#region Self-XSS 対策メッセージ
|
|
||||||
console.log(
|
|
||||||
`%c${i18n.ts._selfXssPrevention.warning}`,
|
|
||||||
'color: #f00; background-color: #ff0; font-size: 36px; padding: 4px;',
|
|
||||||
);
|
|
||||||
console.log(
|
|
||||||
`%c${i18n.ts._selfXssPrevention.title}`,
|
|
||||||
'color: #f00; font-weight: 900; font-family: "Hiragino Sans W9", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 24px;',
|
|
||||||
);
|
|
||||||
console.log(
|
|
||||||
`%c${i18n.ts._selfXssPrevention.description1}`,
|
|
||||||
'font-size: 16px; font-weight: 700;',
|
|
||||||
);
|
|
||||||
console.log(
|
|
||||||
`%c${i18n.ts._selfXssPrevention.description2}`,
|
|
||||||
'font-size: 16px;',
|
|
||||||
'font-size: 20px; font-weight: 700; color: #f00;',
|
|
||||||
);
|
|
||||||
console.log(i18n.tsx._selfXssPrevention.description3({ link: 'https://misskey-hub.net/docs/for-users/resources/self-xss/' }));
|
|
||||||
//#endregion
|
|
||||||
|
|
||||||
function removeSplash() {
|
function removeSplash() {
|
||||||
const splash = document.getElementById('splash');
|
const splash = document.getElementById('splash');
|
||||||
if (splash) {
|
if (splash) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import '@/style.scss';
|
||||||
import { mainBoot } from '@/boot/main-boot.js';
|
import { mainBoot } from '@/boot/main-boot.js';
|
||||||
import { subBoot } from '@/boot/sub-boot.js';
|
import { subBoot } from '@/boot/sub-boot.js';
|
||||||
|
|
||||||
const subBootPaths = ['/share', '/auth', '/miauth', '/oauth', '/signup-complete'];
|
const subBootPaths = ['/share', '/auth', '/miauth', '/signup-complete'];
|
||||||
|
|
||||||
if (subBootPaths.some(i => location.pathname === i || location.pathname.startsWith(i + '/'))) {
|
if (subBootPaths.some(i => location.pathname === i || location.pathname.startsWith(i + '/'))) {
|
||||||
subBoot();
|
subBoot();
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
|
|
||||||
import { defineAsyncComponent, reactive, ref } from 'vue';
|
import { defineAsyncComponent, reactive, ref } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import { apiUrl } from '@@/js/config.js';
|
|
||||||
import type { MenuItem, MenuButton } from '@/types/menu.js';
|
|
||||||
import { showSuspendedDialog } from '@/scripts/show-suspended-dialog.js';
|
import { showSuspendedDialog } from '@/scripts/show-suspended-dialog.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { miLocalStorage } from '@/local-storage.js';
|
import { miLocalStorage } from '@/local-storage.js';
|
||||||
|
import type { MenuItem, MenuButton } from '@/types/menu.js';
|
||||||
import { del, get, set } from '@/scripts/idb-proxy.js';
|
import { del, get, set } from '@/scripts/idb-proxy.js';
|
||||||
|
import { apiUrl } from '@@/js/config.js';
|
||||||
import { waiting, popup, popupMenu, success, alert } from '@/os.js';
|
import { waiting, popup, popupMenu, success, alert } from '@/os.js';
|
||||||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
||||||
import { unisonReload, reloadChannel } from '@/scripts/unison-reload.js';
|
import { unisonReload, reloadChannel } from '@/scripts/unison-reload.js';
|
||||||
|
@ -22,66 +22,23 @@ type Account = Misskey.entities.MeDetailed & { token: string };
|
||||||
const accountData = miLocalStorage.getItem('account');
|
const accountData = miLocalStorage.getItem('account');
|
||||||
|
|
||||||
// TODO: 外部からはreadonlyに
|
// TODO: 外部からはreadonlyに
|
||||||
/**
|
|
||||||
* Reactive state for the current account. "I" as in "I am logged in".
|
|
||||||
* Initialized from local storage if available, otherwise null.
|
|
||||||
*
|
|
||||||
* @type {Account | null}
|
|
||||||
*/
|
|
||||||
export const $i = accountData ? reactive(JSON.parse(accountData) as Account) : null;
|
export const $i = accountData ? reactive(JSON.parse(accountData) as Account) : null;
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether the current account is a moderator.
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
*/
|
|
||||||
export const iAmModerator = $i != null && ($i.isAdmin === true || $i.isModerator === true);
|
export const iAmModerator = $i != null && ($i.isAdmin === true || $i.isModerator === true);
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether the current account is an administrator.
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
*/
|
|
||||||
export const iAmAdmin = $i != null && $i.isAdmin;
|
export const iAmAdmin = $i != null && $i.isAdmin;
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether it is necessary to sign in; checks if the current
|
|
||||||
* account is null and throws an error if so.
|
|
||||||
*
|
|
||||||
* @throws {Error} If the current account is null
|
|
||||||
* @returns {Account} The current account
|
|
||||||
*/
|
|
||||||
export function signinRequired() {
|
export function signinRequired() {
|
||||||
if ($i == null) throw new Error('signin required');
|
if ($i == null) throw new Error('signin required');
|
||||||
return $i;
|
return $i;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Extracts the current number of notes from the current account.
|
|
||||||
*
|
|
||||||
* Note: This appears to only be used for the "notes1" achievement.
|
|
||||||
*
|
|
||||||
* Also, separating it like this might cause counts to get out-of-sync.
|
|
||||||
*/
|
|
||||||
export let notesCount = $i == null ? 0 : $i.notesCount;
|
export let notesCount = $i == null ? 0 : $i.notesCount;
|
||||||
|
|
||||||
/**
|
|
||||||
* Increments the number of notes by one.
|
|
||||||
*
|
|
||||||
* Documentation TODO: What about $i.notesCount? Why not increment that?
|
|
||||||
*/
|
|
||||||
export function incNotesCount() {
|
export function incNotesCount() {
|
||||||
notesCount++;
|
notesCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function signout() {
|
export async function signout() {
|
||||||
|
if (!$i) return;
|
||||||
// If we're not signed in, there's nothing to do.
|
|
||||||
if (!$i) {
|
|
||||||
// Error log:
|
|
||||||
console.error('signout() called when not signed in');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
waiting();
|
waiting();
|
||||||
miLocalStorage.removeItem('account');
|
miLocalStorage.removeItem('account');
|
||||||
|
@ -208,18 +165,7 @@ function fetchAccount(token: string, id?: string, forceShowDialog?: boolean): Pr
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateAccount(accountData: Account) {
|
export function updateAccount(accountData: Partial<Account>) {
|
||||||
if (!$i) return;
|
|
||||||
for (const key of Object.keys($i)) {
|
|
||||||
delete $i[key];
|
|
||||||
}
|
|
||||||
for (const [key, value] of Object.entries(accountData)) {
|
|
||||||
$i[key] = value;
|
|
||||||
}
|
|
||||||
miLocalStorage.setItem('account', JSON.stringify($i));
|
|
||||||
}
|
|
||||||
|
|
||||||
export function updateAccountPartial(accountData: Partial<Account>) {
|
|
||||||
if (!$i) return;
|
if (!$i) return;
|
||||||
for (const [key, value] of Object.entries(accountData)) {
|
for (const [key, value] of Object.entries(accountData)) {
|
||||||
$i[key] = value;
|
$i[key] = value;
|
||||||
|
@ -278,6 +224,26 @@ export async function openAccountMenu(opts: {
|
||||||
}, ev: MouseEvent) {
|
}, ev: MouseEvent) {
|
||||||
if (!$i) return;
|
if (!$i) return;
|
||||||
|
|
||||||
|
function showSigninDialog() {
|
||||||
|
const { dispose } = popup(defineAsyncComponent(() => import('@/components/MkSigninDialog.vue')), {}, {
|
||||||
|
done: (res: Misskey.entities.SigninFlowResponse & { finished: true }) => {
|
||||||
|
addAccount(res.id, res.i);
|
||||||
|
success();
|
||||||
|
},
|
||||||
|
closed: () => dispose(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function createAccount() {
|
||||||
|
const { dispose } = popup(defineAsyncComponent(() => import('@/components/MkSignupDialog.vue')), {}, {
|
||||||
|
done: (res: Misskey.entities.SignupResponse) => {
|
||||||
|
addAccount(res.id, res.token);
|
||||||
|
switchAccountWithToken(res.token);
|
||||||
|
},
|
||||||
|
closed: () => dispose(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
async function switchAccount(account: Misskey.entities.UserDetailed) {
|
async function switchAccount(account: Misskey.entities.UserDetailed) {
|
||||||
const storedAccounts = await getAccounts();
|
const storedAccounts = await getAccounts();
|
||||||
const found = storedAccounts.find(x => x.id === account.id);
|
const found = storedAccounts.find(x => x.id === account.id);
|
||||||
|
@ -346,22 +312,10 @@ export async function openAccountMenu(opts: {
|
||||||
text: i18n.ts.addAccount,
|
text: i18n.ts.addAccount,
|
||||||
children: [{
|
children: [{
|
||||||
text: i18n.ts.existingAccount,
|
text: i18n.ts.existingAccount,
|
||||||
action: () => {
|
action: () => { showSigninDialog(); },
|
||||||
getAccountWithSigninDialog().then(res => {
|
|
||||||
if (res != null) {
|
|
||||||
success();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}, {
|
}, {
|
||||||
text: i18n.ts.createAccount,
|
text: i18n.ts.createAccount,
|
||||||
action: () => {
|
action: () => { createAccount(); },
|
||||||
getAccountWithSignupDialog().then(res => {
|
|
||||||
if (res != null) {
|
|
||||||
switchAccountWithToken(res.token);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}],
|
}],
|
||||||
}, {
|
}, {
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
@ -382,40 +336,6 @@ export async function openAccountMenu(opts: {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getAccountWithSigninDialog(): Promise<{ id: string, token: string } | null> {
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
const { dispose } = popup(defineAsyncComponent(() => import('@/components/MkSigninDialog.vue')), {}, {
|
|
||||||
done: async (res: Misskey.entities.SigninFlowResponse & { finished: true }) => {
|
|
||||||
await addAccount(res.id, res.i);
|
|
||||||
resolve({ id: res.id, token: res.i });
|
|
||||||
},
|
|
||||||
cancelled: () => {
|
|
||||||
resolve(null);
|
|
||||||
},
|
|
||||||
closed: () => {
|
|
||||||
dispose();
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getAccountWithSignupDialog(): Promise<{ id: string, token: string } | null> {
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
const { dispose } = popup(defineAsyncComponent(() => import('@/components/MkSignupDialog.vue')), {}, {
|
|
||||||
done: async (res: Misskey.entities.SignupResponse) => {
|
|
||||||
await addAccount(res.id, res.token);
|
|
||||||
resolve({ id: res.id, token: res.token });
|
|
||||||
},
|
|
||||||
cancelled: () => {
|
|
||||||
resolve(null);
|
|
||||||
},
|
|
||||||
closed: () => {
|
|
||||||
dispose();
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_DEV_) {
|
if (_DEV_) {
|
||||||
(window as any).$i = $i;
|
(window as any).$i = $i;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,11 @@ import directives from '@/directives/index.js';
|
||||||
import components from '@/components/index.js';
|
import components from '@/components/index.js';
|
||||||
import { applyTheme } from '@/scripts/theme.js';
|
import { applyTheme } from '@/scripts/theme.js';
|
||||||
import { isDeviceDarkmode } from '@/scripts/is-device-darkmode.js';
|
import { isDeviceDarkmode } from '@/scripts/is-device-darkmode.js';
|
||||||
import { updateI18n, i18n } from '@/i18n.js';
|
import { updateI18n } from '@/i18n.js';
|
||||||
import { $i, refreshAccount, login } from '@/account.js';
|
import { $i, refreshAccount, login } from '@/account.js';
|
||||||
import { defaultStore, ColdDeviceStorage } from '@/store.js';
|
import { defaultStore, ColdDeviceStorage } from '@/store.js';
|
||||||
import { fetchInstance, instance } from '@/instance.js';
|
import { fetchInstance, instance } from '@/instance.js';
|
||||||
import { deviceKind, updateDeviceKind } from '@/scripts/device-kind.js';
|
import { deviceKind } from '@/scripts/device-kind.js';
|
||||||
import { reloadChannel } from '@/scripts/unison-reload.js';
|
import { reloadChannel } from '@/scripts/unison-reload.js';
|
||||||
import { getUrlWithoutLoginId } from '@/scripts/login-id.js';
|
import { getUrlWithoutLoginId } from '@/scripts/login-id.js';
|
||||||
import { getAccountFromId } from '@/scripts/get-account-from-id.js';
|
import { getAccountFromId } from '@/scripts/get-account-from-id.js';
|
||||||
|
@ -185,10 +185,6 @@ export async function common(createVue: () => App<Element>) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(defaultStore.reactiveState.overridedDeviceKind, (kind) => {
|
|
||||||
updateDeviceKind(kind);
|
|
||||||
}, { immediate: true });
|
|
||||||
|
|
||||||
watch(defaultStore.reactiveState.useBlurEffectForModal, v => {
|
watch(defaultStore.reactiveState.useBlurEffectForModal, v => {
|
||||||
document.documentElement.style.setProperty('--MI-modalBgFilter', v ? 'blur(4px)' : 'none');
|
document.documentElement.style.setProperty('--MI-modalBgFilter', v ? 'blur(4px)' : 'none');
|
||||||
}, { immediate: true });
|
}, { immediate: true });
|
||||||
|
@ -273,27 +269,6 @@ export async function common(createVue: () => App<Element>) {
|
||||||
|
|
||||||
removeSplash();
|
removeSplash();
|
||||||
|
|
||||||
//#region Self-XSS 対策メッセージ
|
|
||||||
console.log(
|
|
||||||
`%c${i18n.ts._selfXssPrevention.warning}`,
|
|
||||||
'color: #f00; background-color: #ff0; font-size: 36px; padding: 4px;',
|
|
||||||
);
|
|
||||||
console.log(
|
|
||||||
`%c${i18n.ts._selfXssPrevention.title}`,
|
|
||||||
'color: #f00; font-weight: 900; font-family: "Hiragino Sans W9", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 24px;',
|
|
||||||
);
|
|
||||||
console.log(
|
|
||||||
`%c${i18n.ts._selfXssPrevention.description1}`,
|
|
||||||
'font-size: 16px; font-weight: 700;',
|
|
||||||
);
|
|
||||||
console.log(
|
|
||||||
`%c${i18n.ts._selfXssPrevention.description2}`,
|
|
||||||
'font-size: 16px;',
|
|
||||||
'font-size: 20px; font-weight: 700; color: #f00;',
|
|
||||||
);
|
|
||||||
console.log(i18n.tsx._selfXssPrevention.description3({ link: 'https://misskey-hub.net/docs/for-users/resources/self-xss/' }));
|
|
||||||
//#endregion
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isClientUpdated,
|
isClientUpdated,
|
||||||
app,
|
app,
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { createApp, defineAsyncComponent, markRaw } from 'vue';
|
import { createApp, defineAsyncComponent, markRaw } from 'vue';
|
||||||
import { ui } from '@@/js/config.js';
|
|
||||||
import { common } from './common.js';
|
import { common } from './common.js';
|
||||||
import type * as Misskey from 'misskey-js';
|
import type * as Misskey from 'misskey-js';
|
||||||
|
import { ui } from '@@/js/config.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { alert, confirm, popup, post, toast } from '@/os.js';
|
import { alert, confirm, popup, post, toast } from '@/os.js';
|
||||||
import { useStream } from '@/stream.js';
|
import { useStream } from '@/stream.js';
|
||||||
import * as sound from '@/scripts/sound.js';
|
import * as sound from '@/scripts/sound.js';
|
||||||
import { $i, signout, updateAccountPartial } from '@/account.js';
|
import { $i, signout, updateAccount } from '@/account.js';
|
||||||
import { instance } from '@/instance.js';
|
import { instance } from '@/instance.js';
|
||||||
import { ColdDeviceStorage, defaultStore } from '@/store.js';
|
import { ColdDeviceStorage, defaultStore } from '@/store.js';
|
||||||
import { reactionPicker } from '@/scripts/reaction-picker.js';
|
import { reactionPicker } from '@/scripts/reaction-picker.js';
|
||||||
|
@ -231,41 +231,11 @@ export async function mainBoot() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!claimedAchievements.includes('justPlainLucky')) {
|
if (!claimedAchievements.includes('justPlainLucky')) {
|
||||||
let justPlainLuckyTimer: number | null = null;
|
window.setInterval(() => {
|
||||||
let lastVisibilityChangedAt = Date.now();
|
|
||||||
|
|
||||||
function claimPlainLucky() {
|
|
||||||
if (document.visibilityState !== 'visible') {
|
|
||||||
if (justPlainLuckyTimer != null) window.clearTimeout(justPlainLuckyTimer);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Math.floor(Math.random() * 20000) === 0) {
|
if (Math.floor(Math.random() * 20000) === 0) {
|
||||||
claimAchievement('justPlainLucky');
|
claimAchievement('justPlainLucky');
|
||||||
} else {
|
|
||||||
justPlainLuckyTimer = window.setTimeout(claimPlainLucky, 1000 * 10);
|
|
||||||
}
|
}
|
||||||
}
|
}, 1000 * 10);
|
||||||
|
|
||||||
window.addEventListener('visibilitychange', () => {
|
|
||||||
const now = Date.now();
|
|
||||||
|
|
||||||
if (document.visibilityState === 'visible') {
|
|
||||||
// タブを高速で切り替えたら取得処理が何度も走るのを防ぐ
|
|
||||||
if ((now - lastVisibilityChangedAt) < 1000 * 10) {
|
|
||||||
justPlainLuckyTimer = window.setTimeout(claimPlainLucky, 1000 * 10);
|
|
||||||
} else {
|
|
||||||
claimPlainLucky();
|
|
||||||
}
|
|
||||||
} else if (justPlainLuckyTimer != null) {
|
|
||||||
window.clearTimeout(justPlainLuckyTimer);
|
|
||||||
justPlainLuckyTimer = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
lastVisibilityChangedAt = now;
|
|
||||||
}, { passive: true });
|
|
||||||
|
|
||||||
claimPlainLucky();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!claimedAchievements.includes('client30min')) {
|
if (!claimedAchievements.includes('client30min')) {
|
||||||
|
@ -321,11 +291,11 @@ export async function mainBoot() {
|
||||||
|
|
||||||
// 自分の情報が更新されたとき
|
// 自分の情報が更新されたとき
|
||||||
main.on('meUpdated', i => {
|
main.on('meUpdated', i => {
|
||||||
updateAccountPartial(i);
|
updateAccount(i);
|
||||||
});
|
});
|
||||||
|
|
||||||
main.on('readAllNotifications', () => {
|
main.on('readAllNotifications', () => {
|
||||||
updateAccountPartial({
|
updateAccount({
|
||||||
hasUnreadNotification: false,
|
hasUnreadNotification: false,
|
||||||
unreadNotificationsCount: 0,
|
unreadNotificationsCount: 0,
|
||||||
});
|
});
|
||||||
|
@ -333,39 +303,39 @@ export async function mainBoot() {
|
||||||
|
|
||||||
main.on('unreadNotification', () => {
|
main.on('unreadNotification', () => {
|
||||||
const unreadNotificationsCount = ($i?.unreadNotificationsCount ?? 0) + 1;
|
const unreadNotificationsCount = ($i?.unreadNotificationsCount ?? 0) + 1;
|
||||||
updateAccountPartial({
|
updateAccount({
|
||||||
hasUnreadNotification: true,
|
hasUnreadNotification: true,
|
||||||
unreadNotificationsCount,
|
unreadNotificationsCount,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
main.on('unreadMention', () => {
|
main.on('unreadMention', () => {
|
||||||
updateAccountPartial({ hasUnreadMentions: true });
|
updateAccount({ hasUnreadMentions: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
main.on('readAllUnreadMentions', () => {
|
main.on('readAllUnreadMentions', () => {
|
||||||
updateAccountPartial({ hasUnreadMentions: false });
|
updateAccount({ hasUnreadMentions: false });
|
||||||
});
|
});
|
||||||
|
|
||||||
main.on('unreadSpecifiedNote', () => {
|
main.on('unreadSpecifiedNote', () => {
|
||||||
updateAccountPartial({ hasUnreadSpecifiedNotes: true });
|
updateAccount({ hasUnreadSpecifiedNotes: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
main.on('readAllUnreadSpecifiedNotes', () => {
|
main.on('readAllUnreadSpecifiedNotes', () => {
|
||||||
updateAccountPartial({ hasUnreadSpecifiedNotes: false });
|
updateAccount({ hasUnreadSpecifiedNotes: false });
|
||||||
});
|
});
|
||||||
|
|
||||||
main.on('readAllAntennas', () => {
|
main.on('readAllAntennas', () => {
|
||||||
updateAccountPartial({ hasUnreadAntenna: false });
|
updateAccount({ hasUnreadAntenna: false });
|
||||||
});
|
});
|
||||||
|
|
||||||
main.on('unreadAntenna', () => {
|
main.on('unreadAntenna', () => {
|
||||||
updateAccountPartial({ hasUnreadAntenna: true });
|
updateAccount({ hasUnreadAntenna: true });
|
||||||
sound.playMisskeySfx('antenna');
|
sound.playMisskeySfx('antenna');
|
||||||
});
|
});
|
||||||
|
|
||||||
main.on('readAllAnnouncements', () => {
|
main.on('readAllAnnouncements', () => {
|
||||||
updateAccountPartial({ hasUnreadAnnouncement: false });
|
updateAccount({ hasUnreadAnnouncement: false });
|
||||||
});
|
});
|
||||||
|
|
||||||
// 個人宛てお知らせが発行されたとき
|
// 個人宛てお知らせが発行されたとき
|
||||||
|
|
|
@ -29,7 +29,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="_gaps_s">
|
<div :class="$style.root" class="_gaps_s">
|
||||||
<MkFolder :withSpacer="false">
|
<MkFolder :withSpacer="false">
|
||||||
<template #icon><MkAvatar :user="report.targetUser" style="width: 18px; height: 18px;"/></template>
|
<template #icon><MkAvatar :user="report.targetUser" style="width: 18px; height: 18px;"/></template>
|
||||||
<template #label>{{ i18n.ts.target }}: <MkAcct :user="report.targetUser"/></template>
|
<template #label>{{ i18n.ts.target }}: <MkAcct :user="report.targetUser"/></template>
|
||||||
|
@ -151,4 +151,6 @@ function showMenu(ev: MouseEvent) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" module>
|
<style lang="scss" module>
|
||||||
|
.root {
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -29,7 +29,7 @@ import { misskeyApi } from '@/scripts/misskey-api.js';
|
||||||
import MkModal from '@/components/MkModal.vue';
|
import MkModal from '@/components/MkModal.vue';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { $i, updateAccountPartial } from '@/account.js';
|
import { $i, updateAccount } from '@/account.js';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
announcement: Misskey.entities.Announcement;
|
announcement: Misskey.entities.Announcement;
|
||||||
|
@ -51,7 +51,7 @@ async function ok() {
|
||||||
|
|
||||||
modal.value?.close();
|
modal.value?.close();
|
||||||
misskeyApi('i/read-announcement', { announcementId: props.announcement.id });
|
misskeyApi('i/read-announcement', { announcementId: props.announcement.id });
|
||||||
updateAccountPartial({
|
updateAccount({
|
||||||
unreadAnnouncements: $i!.unreadAnnouncements.filter(a => a.id !== props.announcement.id),
|
unreadAnnouncements: $i!.unreadAnnouncements.filter(a => a.id !== props.announcement.id),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,7 @@ async function deleteAntenna() {
|
||||||
function addUser() {
|
function addUser() {
|
||||||
os.selectUser({ includeSelf: true }).then(user => {
|
os.selectUser({ includeSelf: true }).then(user => {
|
||||||
users.value = users.value.trim();
|
users.value = users.value.trim();
|
||||||
users.value += '\n@' + Misskey.acct.toString(user);
|
users.value += '\n@' + Misskey.acct.toString(user as any);
|
||||||
users.value = users.value.trim();
|
users.value = users.value.trim();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
/*
|
|
||||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
*/
|
|
||||||
|
|
||||||
import MkAuthConfirm from './MkAuthConfirm.vue';
|
|
||||||
void MkAuthConfirm;
|
|
|
@ -1,450 +0,0 @@
|
||||||
<!--
|
|
||||||
SPDX-FileCopyrightText: syuilo and misskey-project
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
-->
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div :class="$style.wrapper">
|
|
||||||
<Transition
|
|
||||||
mode="out-in"
|
|
||||||
:enterActiveClass="$style.transition_enterActive"
|
|
||||||
:leaveActiveClass="$style.transition_leaveActive"
|
|
||||||
:enterFromClass="$style.transition_enterFrom"
|
|
||||||
:leaveToClass="$style.transition_leaveTo"
|
|
||||||
|
|
||||||
:inert="_waiting"
|
|
||||||
>
|
|
||||||
<div v-if="phase === 'accountSelect'" key="accountSelect" :class="$style.root" class="_gaps">
|
|
||||||
<div :class="$style.header" class="_gaps_s">
|
|
||||||
<div :class="$style.iconFallback">
|
|
||||||
<i class="ti ti-user"></i>
|
|
||||||
</div>
|
|
||||||
<div :class="$style.headerText">{{ i18n.ts.pleaseSelectAccount }}</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div :class="$style.accountSelectorLabel">{{ i18n.ts.selectAccount }}</div>
|
|
||||||
<div :class="$style.accountSelectorList">
|
|
||||||
<template v-for="[id, user] in users">
|
|
||||||
<input :id="'account-' + id" v-model="selectedUser" type="radio" name="accountSelector" :value="id" :class="$style.accountSelectorRadio"/>
|
|
||||||
<label :for="'account-' + id" :class="$style.accountSelectorItem">
|
|
||||||
<MkAvatar :user="user" :class="$style.accountSelectorAvatar"/>
|
|
||||||
<div :class="$style.accountSelectorBody">
|
|
||||||
<MkUserName :user="user" :class="$style.accountSelectorName"/>
|
|
||||||
<MkAcct :user="user" :class="$style.accountSelectorAcct"/>
|
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
</template>
|
|
||||||
<button class="_button" :class="[$style.accountSelectorItem, $style.accountSelectorAddAccountRoot]" @click="clickAddAccount">
|
|
||||||
<div :class="[$style.accountSelectorAvatar, $style.accountSelectorAddAccountAvatar]">
|
|
||||||
<i class="ti ti-user-plus"></i>
|
|
||||||
</div>
|
|
||||||
<div :class="[$style.accountSelectorBody, $style.accountSelectorName]">{{ i18n.ts.addAccount }}</div>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="_buttonsCenter">
|
|
||||||
<MkButton rounded gradate :disabled="selectedUser === null" @click="clickChooseAccount">{{ i18n.ts.continue }} <i class="ti ti-arrow-right"></i></MkButton>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-else-if="phase === 'consent'" key="consent" :class="$style.root" class="_gaps">
|
|
||||||
<div :class="$style.header" class="_gaps_s">
|
|
||||||
<img v-if="icon" :class="$style.icon" :src="getProxiedImageUrl(icon, 'preview')"/>
|
|
||||||
<div v-else :class="$style.iconFallback">
|
|
||||||
<i class="ti ti-apps"></i>
|
|
||||||
</div>
|
|
||||||
<div :class="$style.headerText">{{ name ? i18n.tsx._auth.shareAccess({ name }) : i18n.ts._auth.shareAccessAsk }}</div>
|
|
||||||
</div>
|
|
||||||
<div v-if="permissions && permissions.length > 0" class="_gaps_s" :class="$style.permissionRoot">
|
|
||||||
<div>{{ name ? i18n.tsx._auth.permission({ name }) : i18n.ts._auth.permissionAsk }}</div>
|
|
||||||
<div :class="$style.permissionListWrapper">
|
|
||||||
<ul :class="$style.permissionList">
|
|
||||||
<li v-for="p in permissions" :key="p">{{ i18n.ts._permissions[p] }}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<slot name="consentAdditionalInfo"></slot>
|
|
||||||
<div>
|
|
||||||
<div :class="$style.accountSelectorLabel">
|
|
||||||
{{ i18n.ts._auth.scopeUser }} <button class="_textButton" @click="clickBackToAccountSelect">{{ i18n.ts.switchAccount }}</button>
|
|
||||||
</div>
|
|
||||||
<div :class="$style.accountSelectorList">
|
|
||||||
<div :class="[$style.accountSelectorItem, $style.static]">
|
|
||||||
<MkAvatar :user="users.get(selectedUser!)!" :class="$style.accountSelectorAvatar"/>
|
|
||||||
<div :class="$style.accountSelectorBody">
|
|
||||||
<MkUserName :user="users.get(selectedUser!)!" :class="$style.accountSelectorName"/>
|
|
||||||
<MkAcct :user="users.get(selectedUser!)!" :class="$style.accountSelectorAcct"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="_buttonsCenter">
|
|
||||||
<MkButton rounded @click="clickCancel">{{ i18n.ts.reject }}</MkButton>
|
|
||||||
<MkButton rounded gradate @click="clickAccept">{{ i18n.ts.accept }}</MkButton>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-else-if="phase === 'success'" key="success" :class="$style.root" class="_gaps_s">
|
|
||||||
<div :class="$style.header" class="_gaps_s">
|
|
||||||
<div :class="$style.iconFallback">
|
|
||||||
<i class="ti ti-check"></i>
|
|
||||||
</div>
|
|
||||||
<div :class="$style.headerText">{{ i18n.ts._auth.accepted }}</div>
|
|
||||||
<div :class="$style.headerTextSub">{{ i18n.ts._auth.pleaseGoBack }}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-else-if="phase === 'denied'" key="denied" :class="$style.root" class="_gaps_s">
|
|
||||||
<div :class="$style.header" class="_gaps_s">
|
|
||||||
<div :class="$style.iconFallback">
|
|
||||||
<i class="ti ti-x"></i>
|
|
||||||
</div>
|
|
||||||
<div :class="$style.headerText">{{ i18n.ts._auth.denied }}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-else-if="phase === 'failed'" key="failed" :class="$style.root" class="_gaps_s">
|
|
||||||
<div :class="$style.header" class="_gaps_s">
|
|
||||||
<div :class="$style.iconFallback">
|
|
||||||
<i class="ti ti-x"></i>
|
|
||||||
</div>
|
|
||||||
<div :class="$style.headerText">{{ i18n.ts.somethingHappened }}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</Transition>
|
|
||||||
<div v-if="_waiting" :class="$style.waitingRoot">
|
|
||||||
<MkLoading/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup lang="ts">
|
|
||||||
import { ref, computed } from 'vue';
|
|
||||||
import * as Misskey from 'misskey-js';
|
|
||||||
|
|
||||||
import MkButton from '@/components/MkButton.vue';
|
|
||||||
|
|
||||||
import { $i, getAccounts, getAccountWithSigninDialog, getAccountWithSignupDialog } from '@/account.js';
|
|
||||||
import { i18n } from '@/i18n.js';
|
|
||||||
import * as os from '@/os.js';
|
|
||||||
import { getProxiedImageUrl } from '@/scripts/media-proxy.js';
|
|
||||||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
|
||||||
|
|
||||||
const props = defineProps<{
|
|
||||||
name?: string;
|
|
||||||
icon?: string;
|
|
||||||
permissions?: (typeof Misskey.permissions[number])[];
|
|
||||||
manualWaiting?: boolean;
|
|
||||||
waitOnDeny?: boolean;
|
|
||||||
}>();
|
|
||||||
|
|
||||||
const emit = defineEmits<{
|
|
||||||
(ev: 'accept', token: string): void;
|
|
||||||
(ev: 'deny', token: string): void;
|
|
||||||
}>();
|
|
||||||
|
|
||||||
const waiting = ref(true);
|
|
||||||
const _waiting = computed(() => waiting.value || props.manualWaiting);
|
|
||||||
const phase = ref<'accountSelect' | 'consent' | 'success' | 'denied' | 'failed'>('accountSelect');
|
|
||||||
|
|
||||||
const selectedUser = ref<string | null>(null);
|
|
||||||
|
|
||||||
const users = ref(new Map<string, Misskey.entities.UserDetailed & { token: string; }>());
|
|
||||||
|
|
||||||
async function init() {
|
|
||||||
waiting.value = true;
|
|
||||||
|
|
||||||
users.value.clear();
|
|
||||||
|
|
||||||
if ($i) {
|
|
||||||
users.value.set($i.id, $i);
|
|
||||||
}
|
|
||||||
|
|
||||||
const accounts = await getAccounts();
|
|
||||||
|
|
||||||
const accountIdsToFetch = accounts.map(a => a.id).filter(id => !users.value.has(id));
|
|
||||||
|
|
||||||
if (accountIdsToFetch.length > 0) {
|
|
||||||
const usersRes = await misskeyApi('users/show', {
|
|
||||||
userIds: accountIdsToFetch,
|
|
||||||
});
|
|
||||||
|
|
||||||
for (const user of usersRes) {
|
|
||||||
if (users.value.has(user.id)) continue;
|
|
||||||
|
|
||||||
users.value.set(user.id, {
|
|
||||||
...user,
|
|
||||||
token: accounts.find(a => a.id === user.id)!.token,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
waiting.value = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
init();
|
|
||||||
|
|
||||||
function clickAddAccount(ev: MouseEvent) {
|
|
||||||
selectedUser.value = null;
|
|
||||||
|
|
||||||
os.popupMenu([{
|
|
||||||
text: i18n.ts.existingAccount,
|
|
||||||
action: () => {
|
|
||||||
getAccountWithSigninDialog().then(async (res) => {
|
|
||||||
if (res != null) {
|
|
||||||
os.success();
|
|
||||||
await init();
|
|
||||||
if (users.value.has(res.id)) {
|
|
||||||
selectedUser.value = res.id;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}, {
|
|
||||||
text: i18n.ts.createAccount,
|
|
||||||
action: () => {
|
|
||||||
getAccountWithSignupDialog().then(async (res) => {
|
|
||||||
if (res != null) {
|
|
||||||
os.success();
|
|
||||||
await init();
|
|
||||||
if (users.value.has(res.id)) {
|
|
||||||
selectedUser.value = res.id;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}], ev.currentTarget ?? ev.target);
|
|
||||||
}
|
|
||||||
|
|
||||||
function clickChooseAccount() {
|
|
||||||
if (selectedUser.value === null) return;
|
|
||||||
|
|
||||||
phase.value = 'consent';
|
|
||||||
}
|
|
||||||
|
|
||||||
function clickBackToAccountSelect() {
|
|
||||||
selectedUser.value = null;
|
|
||||||
phase.value = 'accountSelect';
|
|
||||||
}
|
|
||||||
|
|
||||||
function clickCancel() {
|
|
||||||
if (selectedUser.value === null) return;
|
|
||||||
|
|
||||||
const user = users.value.get(selectedUser.value)!;
|
|
||||||
|
|
||||||
const token = user.token;
|
|
||||||
|
|
||||||
if (props.waitOnDeny) {
|
|
||||||
waiting.value = true;
|
|
||||||
}
|
|
||||||
emit('deny', token);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function clickAccept() {
|
|
||||||
if (selectedUser.value === null) return;
|
|
||||||
|
|
||||||
const user = users.value.get(selectedUser.value)!;
|
|
||||||
|
|
||||||
const token = user.token;
|
|
||||||
|
|
||||||
waiting.value = true;
|
|
||||||
emit('accept', token);
|
|
||||||
}
|
|
||||||
|
|
||||||
function showUI(state: 'success' | 'denied' | 'failed') {
|
|
||||||
phase.value = state;
|
|
||||||
waiting.value = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
defineExpose({
|
|
||||||
showUI,
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" module>
|
|
||||||
.transition_enterActive,
|
|
||||||
.transition_leaveActive {
|
|
||||||
transition: opacity 0.3s cubic-bezier(0,0,.35,1), transform 0.3s cubic-bezier(0,0,.35,1);
|
|
||||||
}
|
|
||||||
.transition_enterFrom {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateX(50px);
|
|
||||||
}
|
|
||||||
.transition_leaveTo {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateX(-50px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper {
|
|
||||||
overflow-x: hidden;
|
|
||||||
overflow-x: clip;
|
|
||||||
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.waitingRoot {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background-color: color-mix(in srgb, var(--MI_THEME-panel), transparent 50%);
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
z-index: 1;
|
|
||||||
cursor: wait;
|
|
||||||
}
|
|
||||||
|
|
||||||
.root {
|
|
||||||
position: relative;
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 100%;
|
|
||||||
padding: 48px 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header {
|
|
||||||
margin: 0 auto;
|
|
||||||
max-width: 320px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon,
|
|
||||||
.iconFallback {
|
|
||||||
display: block;
|
|
||||||
margin: 0 auto;
|
|
||||||
width: 54px;
|
|
||||||
height: 54px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
border-radius: 50%;
|
|
||||||
border: 1px solid var(--MI_THEME-divider);
|
|
||||||
background-color: #fff;
|
|
||||||
object-fit: contain;
|
|
||||||
}
|
|
||||||
|
|
||||||
.iconFallback {
|
|
||||||
border-radius: 50%;
|
|
||||||
background-color: var(--MI_THEME-accentedBg);
|
|
||||||
color: var(--MI_THEME-accent);
|
|
||||||
text-align: center;
|
|
||||||
line-height: 54px;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headerText,
|
|
||||||
.headerTextSub {
|
|
||||||
text-align: center;
|
|
||||||
word-break: normal;
|
|
||||||
word-break: auto-phrase;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headerText {
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.permissionRoot {
|
|
||||||
padding: 16px;
|
|
||||||
border-radius: var(--MI-radius);
|
|
||||||
background-color: var(--MI_THEME-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.permissionListWrapper {
|
|
||||||
max-height: 350px;
|
|
||||||
overflow-y: auto;
|
|
||||||
padding: 12px;
|
|
||||||
border-radius: var(--MI-radius);
|
|
||||||
background-color: var(--MI_THEME-panel);
|
|
||||||
}
|
|
||||||
|
|
||||||
.permissionList {
|
|
||||||
margin: 0 0 0 1.5em;
|
|
||||||
padding: 0;
|
|
||||||
font-size: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorLabel {
|
|
||||||
font-size: 0.85em;
|
|
||||||
opacity: 0.7;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorList {
|
|
||||||
border-radius: var(--MI-radius);
|
|
||||||
border: 1px solid var(--MI_THEME-divider);
|
|
||||||
overflow: hidden;
|
|
||||||
overflow: clip;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorRadio {
|
|
||||||
position: absolute;
|
|
||||||
clip: rect(0, 0, 0, 0);
|
|
||||||
pointer-events: none;
|
|
||||||
|
|
||||||
&:focus-visible + .accountSelectorItem {
|
|
||||||
outline: 2px solid var(--MI_THEME-accent);
|
|
||||||
outline-offset: -4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:checked:focus-visible + .accountSelectorItem {
|
|
||||||
outline-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:checked + .accountSelectorItem {
|
|
||||||
background: var(--MI_THEME-accent);
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorItem {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: 8px;
|
|
||||||
font-size: 14px;
|
|
||||||
-webkit-tap-highlight-color: transparent;
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: var(--MI_THEME-buttonHoverBg);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.static {
|
|
||||||
cursor: unset;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorAddAccountRoot {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorBody {
|
|
||||||
padding: 0 8px;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorAvatar {
|
|
||||||
width: 45px;
|
|
||||||
height: 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorAddAccountAvatar {
|
|
||||||
background-color: var(--MI_THEME-accentedBg);
|
|
||||||
color: var(--MI_THEME-accent);
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 45px;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorName {
|
|
||||||
display: block;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountSelectorAcct {
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -117,8 +117,8 @@ async function requestRender() {
|
||||||
sitekey: props.sitekey,
|
sitekey: props.sitekey,
|
||||||
theme: defaultStore.state.darkMode ? 'dark' : 'light',
|
theme: defaultStore.state.darkMode ? 'dark' : 'light',
|
||||||
callback: callback,
|
callback: callback,
|
||||||
'expired-callback': () => callback(undefined),
|
'expired-callback': callback,
|
||||||
'error-callback': () => callback(undefined),
|
'error-callback': callback,
|
||||||
});
|
});
|
||||||
} else if (props.provider === 'mcaptcha' && props.instanceUrl && props.sitekey) {
|
} else if (props.provider === 'mcaptcha' && props.instanceUrl && props.sitekey) {
|
||||||
const { default: Widget } = await import('@mcaptcha/vanilla-glue');
|
const { default: Widget } = await import('@mcaptcha/vanilla-glue');
|
||||||
|
|
|
@ -47,12 +47,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, ref, watch } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { miLocalStorage } from '@/local-storage.js';
|
import { miLocalStorage } from '@/local-storage.js';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
channel: Misskey.entities.Channel;
|
channel: Record<string, any>;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const getLastReadedAt = (): number | null => {
|
const getLastReadedAt = (): number | null => {
|
||||||
|
|
|
@ -64,30 +64,26 @@ const showBody = ref(props.expanded);
|
||||||
const ignoreOmit = ref(false);
|
const ignoreOmit = ref(false);
|
||||||
const omitted = ref(false);
|
const omitted = ref(false);
|
||||||
|
|
||||||
function enter(el: Element) {
|
function enter(el) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
|
||||||
const elementHeight = el.getBoundingClientRect().height;
|
const elementHeight = el.getBoundingClientRect().height;
|
||||||
el.style.height = '0';
|
el.style.height = 0;
|
||||||
el.offsetHeight; // reflow
|
el.offsetHeight; // reflow
|
||||||
el.style.height = `${Math.min(elementHeight, props.maxHeight ?? Infinity)}px`;
|
el.style.height = Math.min(elementHeight, props.maxHeight ?? Infinity) + 'px';
|
||||||
}
|
}
|
||||||
|
|
||||||
function afterEnter(el: Element) {
|
function afterEnter(el) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
el.style.height = null;
|
||||||
el.style.height = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function leave(el: Element) {
|
function leave(el) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
|
||||||
const elementHeight = el.getBoundingClientRect().height;
|
const elementHeight = el.getBoundingClientRect().height;
|
||||||
el.style.height = `${elementHeight}px`;
|
el.style.height = elementHeight + 'px';
|
||||||
el.offsetHeight; // reflow
|
el.offsetHeight; // reflow
|
||||||
el.style.height = '0';
|
el.style.height = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function afterLeave(el: Element) {
|
function afterLeave(el) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
el.style.height = null;
|
||||||
el.style.height = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const calcOmit = () => {
|
const calcOmit = () => {
|
||||||
|
|
|
@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
:withOkButton="true"
|
:withOkButton="true"
|
||||||
@close="cancel()"
|
@close="cancel()"
|
||||||
@ok="ok()"
|
@ok="ok()"
|
||||||
@closed="emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<template #header>{{ i18n.ts.cropImage }}</template>
|
<template #header>{{ i18n.ts.cropImage }}</template>
|
||||||
<template #default="{ width, height }">
|
<template #default="{ width, height }">
|
||||||
|
|
|
@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<MkModalWindow ref="dialogEl" @close="cancel()" @closed="emit('closed')">
|
<MkModalWindow ref="dialogEl" @close="cancel()" @closed="$emit('closed')">
|
||||||
<template #header>:{{ emoji.name }}:</template>
|
<template #header>:{{ emoji.name }}:</template>
|
||||||
<template #default>
|
<template #default>
|
||||||
<MkSpacer>
|
<MkSpacer>
|
||||||
|
|
|
@ -128,14 +128,14 @@ export default defineComponent({
|
||||||
return children;
|
return children;
|
||||||
};
|
};
|
||||||
|
|
||||||
function onBeforeLeave(el: Element) {
|
function onBeforeLeave(element: Element) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
const el = element as HTMLElement;
|
||||||
el.style.top = `${el.offsetTop}px`;
|
el.style.top = `${el.offsetTop}px`;
|
||||||
el.style.left = `${el.offsetLeft}px`;
|
el.style.left = `${el.offsetLeft}px`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onLeaveCancelled(el: Element) {
|
function onLeaveCancelled(element: Element) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
const el = element as HTMLElement;
|
||||||
el.style.top = '';
|
el.style.top = '';
|
||||||
el.style.left = '';
|
el.style.left = '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<div v-if="(showOkButton || showCancelButton) && !actions" :class="$style.buttons">
|
<div v-if="(showOkButton || showCancelButton) && !actions" :class="$style.buttons">
|
||||||
<MkButton v-if="showOkButton" data-cy-modal-dialog-ok inline primary rounded :autofocus="!input && !select" :disabled="okButtonDisabledReason != null" @click="ok">{{ okText ?? ((showCancelButton || input || select) ? i18n.ts.ok : i18n.ts.gotIt) }}</MkButton>
|
<MkButton v-if="showOkButton" data-cy-modal-dialog-ok inline primary rounded :autofocus="!input && !select" :disabled="okButtonDisabledReason" @click="ok">{{ okText ?? ((showCancelButton || input || select) ? i18n.ts.ok : i18n.ts.gotIt) }}</MkButton>
|
||||||
<MkButton v-if="showCancelButton || input || select" data-cy-modal-dialog-cancel inline rounded @click="cancel">{{ cancelText ?? i18n.ts.cancel }}</MkButton>
|
<MkButton v-if="showCancelButton || input || select" data-cy-modal-dialog-cancel inline rounded @click="cancel">{{ cancelText ?? i18n.ts.cancel }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="actions" :class="$style.buttons">
|
<div v-if="actions" :class="$style.buttons">
|
||||||
|
@ -98,7 +98,7 @@ const props = withDefaults(defineProps<{
|
||||||
text: string;
|
text: string;
|
||||||
primary?: boolean,
|
primary?: boolean,
|
||||||
danger?: boolean,
|
danger?: boolean,
|
||||||
callback: (...args: unknown[]) => void;
|
callback: (...args: any[]) => void;
|
||||||
}[];
|
}[];
|
||||||
showOkButton?: boolean;
|
showOkButton?: boolean;
|
||||||
showCancelButton?: boolean;
|
showCancelButton?: boolean;
|
||||||
|
|
|
@ -157,12 +157,7 @@ const ilFilesObserver = new IntersectionObserver(
|
||||||
(entries) => entries.some((entry) => entry.isIntersecting) && !fetching.value && moreFiles.value && fetchMoreFiles(),
|
(entries) => entries.some((entry) => entry.isIntersecting) && !fetching.value && moreFiles.value && fetchMoreFiles(),
|
||||||
);
|
);
|
||||||
|
|
||||||
const sortModeSelect = ref<NonNullable<Misskey.entities.DriveFilesRequest['sort']>>('+createdAt');
|
|
||||||
|
|
||||||
watch(folder, () => emit('cd', folder.value));
|
watch(folder, () => emit('cd', folder.value));
|
||||||
watch(sortModeSelect, () => {
|
|
||||||
fetch();
|
|
||||||
});
|
|
||||||
|
|
||||||
function onStreamDriveFileCreated(file: Misskey.entities.DriveFile) {
|
function onStreamDriveFileCreated(file: Misskey.entities.DriveFile) {
|
||||||
addFile(file, true);
|
addFile(file, true);
|
||||||
|
@ -198,7 +193,7 @@ function onStreamDriveFolderDeleted(folderId: string) {
|
||||||
removeFolder(folderId);
|
removeFolder(folderId);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDragover(ev: DragEvent) {
|
function onDragover(ev: DragEvent): any {
|
||||||
if (!ev.dataTransfer) return;
|
if (!ev.dataTransfer) return;
|
||||||
|
|
||||||
// ドラッグ元が自分自身の所有するアイテムだったら
|
// ドラッグ元が自分自身の所有するアイテムだったら
|
||||||
|
@ -243,7 +238,7 @@ function onDragleave() {
|
||||||
draghover.value = false;
|
draghover.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDrop(ev: DragEvent) {
|
function onDrop(ev: DragEvent): any {
|
||||||
draghover.value = false;
|
draghover.value = false;
|
||||||
|
|
||||||
if (!ev.dataTransfer) return;
|
if (!ev.dataTransfer) return;
|
||||||
|
@ -332,7 +327,7 @@ function createFolder() {
|
||||||
title: i18n.ts.createFolder,
|
title: i18n.ts.createFolder,
|
||||||
placeholder: i18n.ts.folderName,
|
placeholder: i18n.ts.folderName,
|
||||||
}).then(({ canceled, result: name }) => {
|
}).then(({ canceled, result: name }) => {
|
||||||
if (canceled || name == null) return;
|
if (canceled) return;
|
||||||
misskeyApi('drive/folders/create', {
|
misskeyApi('drive/folders/create', {
|
||||||
name: name,
|
name: name,
|
||||||
parentId: folder.value ? folder.value.id : undefined,
|
parentId: folder.value ? folder.value.id : undefined,
|
||||||
|
@ -563,7 +558,6 @@ async function fetch() {
|
||||||
folderId: folder.value ? folder.value.id : null,
|
folderId: folder.value ? folder.value.id : null,
|
||||||
type: props.type,
|
type: props.type,
|
||||||
limit: filesMax + 1,
|
limit: filesMax + 1,
|
||||||
sort: sortModeSelect.value,
|
|
||||||
}).then(fetchedFiles => {
|
}).then(fetchedFiles => {
|
||||||
if (fetchedFiles.length === filesMax + 1) {
|
if (fetchedFiles.length === filesMax + 1) {
|
||||||
moreFiles.value = true;
|
moreFiles.value = true;
|
||||||
|
@ -613,7 +607,6 @@ function fetchMoreFiles() {
|
||||||
type: props.type,
|
type: props.type,
|
||||||
untilId: files.value.at(-1)?.id,
|
untilId: files.value.at(-1)?.id,
|
||||||
limit: max + 1,
|
limit: max + 1,
|
||||||
sort: sortModeSelect.value,
|
|
||||||
}).then(files => {
|
}).then(files => {
|
||||||
if (files.length === max + 1) {
|
if (files.length === max + 1) {
|
||||||
moreFiles.value = true;
|
moreFiles.value = true;
|
||||||
|
@ -649,43 +642,6 @@ function getMenu() {
|
||||||
type: 'label',
|
type: 'label',
|
||||||
});
|
});
|
||||||
|
|
||||||
menu.push({
|
|
||||||
type: 'parent',
|
|
||||||
text: i18n.ts.sort,
|
|
||||||
icon: 'ti ti-arrows-sort',
|
|
||||||
children: [{
|
|
||||||
text: `${i18n.ts.registeredDate} (${i18n.ts.descendingOrder})`,
|
|
||||||
icon: 'ti ti-sort-descending-letters',
|
|
||||||
action: () => { sortModeSelect.value = '+createdAt'; },
|
|
||||||
active: sortModeSelect.value === '+createdAt',
|
|
||||||
}, {
|
|
||||||
text: `${i18n.ts.registeredDate} (${i18n.ts.ascendingOrder})`,
|
|
||||||
icon: 'ti ti-sort-ascending-letters',
|
|
||||||
action: () => { sortModeSelect.value = '-createdAt'; },
|
|
||||||
active: sortModeSelect.value === '-createdAt',
|
|
||||||
}, {
|
|
||||||
text: `${i18n.ts.size} (${i18n.ts.descendingOrder})`,
|
|
||||||
icon: 'ti ti-sort-descending-letters',
|
|
||||||
action: () => { sortModeSelect.value = '+size'; },
|
|
||||||
active: sortModeSelect.value === '+size',
|
|
||||||
}, {
|
|
||||||
text: `${i18n.ts.size} (${i18n.ts.ascendingOrder})`,
|
|
||||||
icon: 'ti ti-sort-ascending-letters',
|
|
||||||
action: () => { sortModeSelect.value = '-size'; },
|
|
||||||
active: sortModeSelect.value === '-size',
|
|
||||||
}, {
|
|
||||||
text: `${i18n.ts.name} (${i18n.ts.descendingOrder})`,
|
|
||||||
icon: 'ti ti-sort-descending-letters',
|
|
||||||
action: () => { sortModeSelect.value = '+name'; },
|
|
||||||
active: sortModeSelect.value === '+name',
|
|
||||||
}, {
|
|
||||||
text: `${i18n.ts.name} (${i18n.ts.ascendingOrder})`,
|
|
||||||
icon: 'ti ti-sort-ascending-letters',
|
|
||||||
action: () => { sortModeSelect.value = '-name'; },
|
|
||||||
active: sortModeSelect.value === '-name',
|
|
||||||
}],
|
|
||||||
});
|
|
||||||
|
|
||||||
if (folder.value) {
|
if (folder.value) {
|
||||||
menu.push({
|
menu.push({
|
||||||
text: i18n.ts.renameFolder,
|
text: i18n.ts.renameFolder,
|
||||||
|
|
|
@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
:scroll="false"
|
:scroll="false"
|
||||||
:withOkButton="false"
|
:withOkButton="false"
|
||||||
@close="cancel()"
|
@close="cancel()"
|
||||||
@closed="emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<template #header><i class="ti ti-code"></i> {{ i18n.ts._embedCodeGen.title }}</template>
|
<template #header><i class="ti ti-code"></i> {{ i18n.ts._embedCodeGen.title }}</template>
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ function computeButtonTitle(ev: MouseEvent): void {
|
||||||
elm.title = getEmojiName(emoji);
|
elm.title = getEmojiName(emoji);
|
||||||
}
|
}
|
||||||
|
|
||||||
function nestedChosen(emoji: string, ev: MouseEvent) {
|
function nestedChosen(emoji: any, ev: MouseEvent) {
|
||||||
emit('chosen', emoji, ev);
|
emit('chosen', emoji, ev);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -409,7 +409,7 @@ function computeButtonTitle(ev: MouseEvent): void {
|
||||||
elm.title = getEmojiName(emoji);
|
elm.title = getEmojiName(emoji);
|
||||||
}
|
}
|
||||||
|
|
||||||
function chosen(emoji: string | Misskey.entities.EmojiSimple | UnicodeEmojiDef, ev?: MouseEvent) {
|
function chosen(emoji: any, ev?: MouseEvent) {
|
||||||
const el = ev && (ev.currentTarget ?? ev.target) as HTMLElement | null | undefined;
|
const el = ev && (ev.currentTarget ?? ev.target) as HTMLElement | null | undefined;
|
||||||
if (el) {
|
if (el) {
|
||||||
const rect = el.getBoundingClientRect();
|
const rect = el.getBoundingClientRect();
|
||||||
|
@ -426,7 +426,7 @@ function chosen(emoji: string | Misskey.entities.EmojiSimple | UnicodeEmojiDef,
|
||||||
// 最近使った絵文字更新
|
// 最近使った絵文字更新
|
||||||
if (!pinned.value?.includes(key)) {
|
if (!pinned.value?.includes(key)) {
|
||||||
let recents = defaultStore.state.recentlyUsedEmojis;
|
let recents = defaultStore.state.recentlyUsedEmojis;
|
||||||
recents = recents.filter((emoji) => emoji !== key);
|
recents = recents.filter((emoji: any) => emoji !== key);
|
||||||
recents.unshift(key);
|
recents.unshift(key);
|
||||||
defaultStore.set('recentlyUsedEmojis', recents.splice(0, 32));
|
defaultStore.set('recentlyUsedEmojis', recents.splice(0, 32));
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ export type Extension = {
|
||||||
author: string;
|
author: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
permissions?: string[];
|
permissions?: string[];
|
||||||
config?: Record<string, unknown>;
|
config?: Record<string, any>;
|
||||||
};
|
};
|
||||||
} | {
|
} | {
|
||||||
type: 'theme';
|
type: 'theme';
|
||||||
|
|
|
@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div ref="rootEl" :class="$style.root">
|
<div ref="rootEl" :class="$style.root">
|
||||||
<header :class="$style.header" class="_button" @click="showBody = !showBody">
|
<header :class="$style.header" class="_button" :style="{ background: bg }" @click="showBody = !showBody">
|
||||||
<div :class="$style.title"><div><slot name="header"></slot></div></div>
|
<div :class="$style.title"><div><slot name="header"></slot></div></div>
|
||||||
<div :class="$style.divider"></div>
|
<div :class="$style.divider"></div>
|
||||||
<button class="_button" :class="$style.button">
|
<button class="_button" :class="$style.button">
|
||||||
|
@ -32,23 +32,21 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, shallowRef, watch } from 'vue';
|
import { onMounted, ref, shallowRef, watch } from 'vue';
|
||||||
|
import tinycolor from 'tinycolor2';
|
||||||
import { miLocalStorage } from '@/local-storage.js';
|
import { miLocalStorage } from '@/local-storage.js';
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
import { getBgColor } from '@/scripts/get-bg-color.js';
|
|
||||||
|
|
||||||
const miLocalStoragePrefix = 'ui:folder:' as const;
|
const miLocalStoragePrefix = 'ui:folder:' as const;
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
expanded?: boolean;
|
expanded?: boolean;
|
||||||
persistKey?: string | null;
|
persistKey?: string;
|
||||||
}>(), {
|
}>(), {
|
||||||
expanded: true,
|
expanded: true,
|
||||||
persistKey: null,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const rootEl = shallowRef<HTMLElement>();
|
const rootEl = shallowRef<HTMLDivElement>();
|
||||||
const parentBg = ref<string | null>(null);
|
const bg = ref<string>();
|
||||||
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
||||||
const showBody = ref((props.persistKey && miLocalStorage.getItem(`${miLocalStoragePrefix}${props.persistKey}`)) ? (miLocalStorage.getItem(`${miLocalStoragePrefix}${props.persistKey}`) === 't') : props.expanded);
|
const showBody = ref((props.persistKey && miLocalStorage.getItem(`${miLocalStoragePrefix}${props.persistKey}`)) ? (miLocalStorage.getItem(`${miLocalStoragePrefix}${props.persistKey}`) === 't') : props.expanded);
|
||||||
|
|
||||||
watch(showBody, () => {
|
watch(showBody, () => {
|
||||||
|
@ -57,34 +55,47 @@ watch(showBody, () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function enter(el: Element) {
|
function enter(element: Element) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
const el = element as HTMLElement;
|
||||||
const elementHeight = el.getBoundingClientRect().height;
|
const elementHeight = el.getBoundingClientRect().height;
|
||||||
el.style.height = '0';
|
el.style.height = '0';
|
||||||
el.offsetHeight; // reflow
|
el.offsetHeight; // reflow
|
||||||
el.style.height = `${elementHeight}px`;
|
el.style.height = elementHeight + 'px';
|
||||||
}
|
}
|
||||||
|
|
||||||
function afterEnter(el: Element) {
|
function afterEnter(element: Element) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
const el = element as HTMLElement;
|
||||||
el.style.height = '';
|
el.style.height = 'unset';
|
||||||
}
|
}
|
||||||
|
|
||||||
function leave(el: Element) {
|
function leave(element: Element) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
const el = element as HTMLElement;
|
||||||
const elementHeight = el.getBoundingClientRect().height;
|
const elementHeight = el.getBoundingClientRect().height;
|
||||||
el.style.height = `${elementHeight}px`;
|
el.style.height = elementHeight + 'px';
|
||||||
el.offsetHeight; // reflow
|
el.offsetHeight; // reflow
|
||||||
el.style.height = '0';
|
el.style.height = '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
function afterLeave(el: Element) {
|
function afterLeave(element: Element) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
const el = element as HTMLElement;
|
||||||
el.style.height = '';
|
el.style.height = 'unset';
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
parentBg.value = getBgColor(rootEl.value?.parentElement);
|
function getParentBg(el?: HTMLElement | null): string {
|
||||||
|
if (el == null || el.tagName === 'BODY') return 'var(--MI_THEME-bg)';
|
||||||
|
const background = el.style.background || el.style.backgroundColor;
|
||||||
|
if (background) {
|
||||||
|
return background;
|
||||||
|
} else {
|
||||||
|
return getParentBg(el.parentElement);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const rawBg = getParentBg(rootEl.value);
|
||||||
|
const _bg = tinycolor(rawBg.startsWith('var(') ? getComputedStyle(document.documentElement).getPropertyValue(rawBg.slice(4, -1)) : rawBg);
|
||||||
|
_bg.setAlpha(0.85);
|
||||||
|
bg.value = _bg.toRgbString();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -110,7 +121,6 @@ onMounted(() => {
|
||||||
top: var(--MI-stickyTop, 0px);
|
top: var(--MI-stickyTop, 0px);
|
||||||
-webkit-backdrop-filter: var(--MI-blur, blur(8px));
|
-webkit-backdrop-filter: var(--MI-blur, blur(8px));
|
||||||
backdrop-filter: var(--MI-blur, blur(20px));
|
backdrop-filter: var(--MI-blur, blur(20px));
|
||||||
background-color: color(from v-bind("parentBg ?? 'var(--bg)'") srgb r g b / 0.85);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|
|
@ -56,9 +56,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { nextTick, onMounted, ref, shallowRef } from 'vue';
|
import { nextTick, onMounted, shallowRef, ref } from 'vue';
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
import { getBgColor } from '@/scripts/get-bg-color.js';
|
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
defaultOpen?: boolean;
|
defaultOpen?: boolean;
|
||||||
|
@ -70,35 +69,40 @@ const props = withDefaults(defineProps<{
|
||||||
withSpacer: true,
|
withSpacer: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const getBgColor = (el: HTMLElement) => {
|
||||||
|
const style = window.getComputedStyle(el);
|
||||||
|
if (style.backgroundColor && !['rgba(0, 0, 0, 0)', 'rgba(0,0,0,0)', 'transparent'].includes(style.backgroundColor)) {
|
||||||
|
return style.backgroundColor;
|
||||||
|
} else {
|
||||||
|
return el.parentElement ? getBgColor(el.parentElement) : 'transparent';
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const rootEl = shallowRef<HTMLElement>();
|
const rootEl = shallowRef<HTMLElement>();
|
||||||
const bgSame = ref(false);
|
const bgSame = ref(false);
|
||||||
const opened = ref(props.defaultOpen);
|
const opened = ref(props.defaultOpen);
|
||||||
const openedAtLeastOnce = ref(props.defaultOpen);
|
const openedAtLeastOnce = ref(props.defaultOpen);
|
||||||
|
|
||||||
function enter(el: Element) {
|
function enter(el) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
|
||||||
const elementHeight = el.getBoundingClientRect().height;
|
const elementHeight = el.getBoundingClientRect().height;
|
||||||
el.style.height = '0';
|
el.style.height = 0;
|
||||||
el.offsetHeight; // reflow
|
el.offsetHeight; // reflow
|
||||||
el.style.height = `${Math.min(elementHeight, props.maxHeight ?? Infinity)}px`;
|
el.style.height = Math.min(elementHeight, props.maxHeight ?? Infinity) + 'px';
|
||||||
}
|
}
|
||||||
|
|
||||||
function afterEnter(el: Element) {
|
function afterEnter(el) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
el.style.height = null;
|
||||||
el.style.height = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function leave(el: Element) {
|
function leave(el) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
|
||||||
const elementHeight = el.getBoundingClientRect().height;
|
const elementHeight = el.getBoundingClientRect().height;
|
||||||
el.style.height = `${elementHeight}px`;
|
el.style.height = elementHeight + 'px';
|
||||||
el.offsetHeight; // reflow
|
el.offsetHeight; // reflow
|
||||||
el.style.height = '0';
|
el.style.height = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function afterLeave(el: Element) {
|
function afterLeave(el) {
|
||||||
if (!(el instanceof HTMLElement)) return;
|
el.style.height = null;
|
||||||
el.style.height = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle() {
|
function toggle() {
|
||||||
|
@ -113,7 +117,7 @@ function toggle() {
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const computedStyle = getComputedStyle(document.documentElement);
|
const computedStyle = getComputedStyle(document.documentElement);
|
||||||
const parentBg = getBgColor(rootEl.value?.parentElement) ?? 'transparent';
|
const parentBg = getBgColor(rootEl.value!.parentElement!);
|
||||||
const myBg = computedStyle.getPropertyValue('--MI_THEME-panel');
|
const myBg = computedStyle.getPropertyValue('--MI_THEME-panel');
|
||||||
bgSame.value = parentBg === myBg;
|
bgSame.value = parentBg === myBg;
|
||||||
});
|
});
|
||||||
|
|
|
@ -37,13 +37,13 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onBeforeUnmount, onMounted, ref } from 'vue';
|
import { onBeforeUnmount, onMounted, ref } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import { host } from '@@/js/config.js';
|
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
||||||
import { useStream } from '@/stream.js';
|
import { useStream } from '@/stream.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { claimAchievement } from '@/scripts/achievements.js';
|
import { claimAchievement } from '@/scripts/achievements.js';
|
||||||
import { pleaseLogin } from '@/scripts/please-login.js';
|
import { pleaseLogin } from '@/scripts/please-login.js';
|
||||||
|
import { host } from '@@/js/config.js';
|
||||||
import { $i } from '@/account.js';
|
import { $i } from '@/account.js';
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ function onFollowChange(user: Misskey.entities.UserDetailed) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onClick() {
|
async function onClick() {
|
||||||
pleaseLogin({ openOnRemote: { type: 'web', path: `/@${props.user.username}@${props.user.host ?? host}` } });
|
pleaseLogin(undefined, { type: 'web', path: `/@${props.user.username}@${props.user.host ?? host}` });
|
||||||
|
|
||||||
wait.value = true;
|
wait.value = true;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
@click="cancel()"
|
@click="cancel()"
|
||||||
@ok="ok()"
|
@ok="ok()"
|
||||||
@close="cancel()"
|
@close="cancel()"
|
||||||
@closed="emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
{{ title }}
|
{{ title }}
|
||||||
|
|
|
@ -44,7 +44,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, onUnmounted, nextTick, ref, shallowRef, watch, computed, toRefs, InputHTMLAttributes } from 'vue';
|
import { onMounted, onUnmounted, nextTick, ref, shallowRef, watch, computed, toRefs } from 'vue';
|
||||||
import { debounce } from 'throttle-debounce';
|
import { debounce } from 'throttle-debounce';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
import { useInterval } from '@@/js/use-interval.js';
|
import { useInterval } from '@@/js/use-interval.js';
|
||||||
|
@ -53,7 +53,7 @@ import { Autocomplete, SuggestionType } from '@/scripts/autocomplete.js';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: string | number | null;
|
modelValue: string | number | null;
|
||||||
type?: InputHTMLAttributes['type'];
|
type?: 'text' | 'number' | 'password' | 'email' | 'url' | 'date' | 'time' | 'search' | 'datetime-local';
|
||||||
required?: boolean;
|
required?: boolean;
|
||||||
readonly?: boolean;
|
readonly?: boolean;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
|
@ -64,8 +64,8 @@ const props = defineProps<{
|
||||||
mfmAutocomplete?: boolean | SuggestionType[],
|
mfmAutocomplete?: boolean | SuggestionType[],
|
||||||
autocapitalize?: string;
|
autocapitalize?: string;
|
||||||
spellcheck?: boolean;
|
spellcheck?: boolean;
|
||||||
inputmode?: InputHTMLAttributes['inputmode'];
|
inputmode?: 'none' | 'text' | 'search' | 'email' | 'url' | 'numeric' | 'tel' | 'decimal';
|
||||||
step?: InputHTMLAttributes['step'];
|
step?: any;
|
||||||
datalist?: string[];
|
datalist?: string[];
|
||||||
min?: number;
|
min?: number;
|
||||||
max?: number;
|
max?: number;
|
||||||
|
|
|
@ -118,7 +118,7 @@ import { hms } from '@/filters/hms.js';
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { exitFullscreen, requestFullscreen } from '@/scripts/fullscreen.js';
|
import { isFullscreenNotSupported } from '@/scripts/device-kind.js';
|
||||||
import hasAudio from '@/scripts/media-has-audio.js';
|
import hasAudio from '@/scripts/media-has-audio.js';
|
||||||
import MkMediaRange from '@/components/MkMediaRange.vue';
|
import MkMediaRange from '@/components/MkMediaRange.vue';
|
||||||
import { $i, iAmModerator } from '@/account.js';
|
import { $i, iAmModerator } from '@/account.js';
|
||||||
|
@ -334,22 +334,27 @@ function togglePlayPause() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleFullscreen() {
|
function toggleFullscreen() {
|
||||||
if (playerEl.value == null || videoEl.value == null) return;
|
if (isFullscreenNotSupported && videoEl.value) {
|
||||||
if (isFullscreen.value) {
|
if (isFullscreen.value) {
|
||||||
exitFullscreen({
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
videoEl: videoEl.value,
|
//@ts-ignore
|
||||||
});
|
videoEl.value.webkitExitFullscreen();
|
||||||
isFullscreen.value = false;
|
isFullscreen.value = false;
|
||||||
} else {
|
} else {
|
||||||
requestFullscreen({
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
videoEl: videoEl.value,
|
//@ts-ignore
|
||||||
playerEl: playerEl.value,
|
videoEl.value.webkitEnterFullscreen();
|
||||||
options: {
|
|
||||||
navigationUI: 'hide',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
isFullscreen.value = true;
|
isFullscreen.value = true;
|
||||||
}
|
}
|
||||||
|
} else if (playerEl.value) {
|
||||||
|
if (isFullscreen.value) {
|
||||||
|
document.exitFullscreen();
|
||||||
|
isFullscreen.value = false;
|
||||||
|
} else {
|
||||||
|
playerEl.value.requestFullscreen({ navigationUI: 'hide' });
|
||||||
|
isFullscreen.value = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function togglePictureInPicture() {
|
function togglePictureInPicture() {
|
||||||
|
@ -449,10 +454,8 @@ watch(loop, (to) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(hide, (to) => {
|
watch(hide, (to) => {
|
||||||
if (videoEl.value && to && isFullscreen.value) {
|
if (to && isFullscreen.value) {
|
||||||
exitFullscreen({
|
document.exitFullscreen();
|
||||||
videoEl: videoEl.value,
|
|
||||||
});
|
|
||||||
isFullscreen.value = false;
|
isFullscreen.value = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,11 +26,11 @@ import { onMounted, onUnmounted, shallowRef, ref } from 'vue';
|
||||||
import MkModal from './MkModal.vue';
|
import MkModal from './MkModal.vue';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
withOkButton?: boolean;
|
withOkButton: boolean;
|
||||||
withCloseButton?: boolean;
|
withCloseButton: boolean;
|
||||||
okButtonDisabled?: boolean;
|
okButtonDisabled: boolean;
|
||||||
width?: number;
|
width: number;
|
||||||
height?: number;
|
height: number;
|
||||||
}>(), {
|
}>(), {
|
||||||
withOkButton: false,
|
withOkButton: false,
|
||||||
withCloseButton: true,
|
withCloseButton: true,
|
||||||
|
|
|
@ -227,7 +227,6 @@ const emit = defineEmits<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const inTimeline = inject<boolean>('inTimeline', false);
|
const inTimeline = inject<boolean>('inTimeline', false);
|
||||||
const tl_withSensitive = inject<Ref<boolean>>('tl_withSensitive', ref(true));
|
|
||||||
const inChannel = inject('inChannel', null);
|
const inChannel = inject('inChannel', null);
|
||||||
const currentClip = inject<Ref<Misskey.entities.Clip> | null>('currentClip', null);
|
const currentClip = inject<Ref<Misskey.entities.Clip> | null>('currentClip', null);
|
||||||
|
|
||||||
|
@ -292,18 +291,15 @@ function checkMute(noteToCheck: Misskey.entities.Note, mutedWords: Array<string
|
||||||
function checkMute(noteToCheck: Misskey.entities.Note, mutedWords: Array<string | string[]> | undefined | null, checkOnly: false): boolean | 'sensitiveMute';
|
function checkMute(noteToCheck: Misskey.entities.Note, mutedWords: Array<string | string[]> | undefined | null, checkOnly: false): boolean | 'sensitiveMute';
|
||||||
*/
|
*/
|
||||||
function checkMute(noteToCheck: Misskey.entities.Note, mutedWords: Array<string | string[]> | undefined | null, checkOnly = false): boolean | 'sensitiveMute' {
|
function checkMute(noteToCheck: Misskey.entities.Note, mutedWords: Array<string | string[]> | undefined | null, checkOnly = false): boolean | 'sensitiveMute' {
|
||||||
if (mutedWords != null) {
|
if (mutedWords == null) return false;
|
||||||
|
|
||||||
if (checkWordMute(noteToCheck, $i, mutedWords)) return true;
|
if (checkWordMute(noteToCheck, $i, mutedWords)) return true;
|
||||||
if (noteToCheck.reply && checkWordMute(noteToCheck.reply, $i, mutedWords)) return true;
|
if (noteToCheck.reply && checkWordMute(noteToCheck.reply, $i, mutedWords)) return true;
|
||||||
if (noteToCheck.renote && checkWordMute(noteToCheck.renote, $i, mutedWords)) return true;
|
if (noteToCheck.renote && checkWordMute(noteToCheck.renote, $i, mutedWords)) return true;
|
||||||
}
|
|
||||||
|
|
||||||
if (checkOnly) return false;
|
if (checkOnly) return false;
|
||||||
|
|
||||||
if (inTimeline && tl_withSensitive.value === false && noteToCheck.files?.some((v) => v.isSensitive)) {
|
if (inTimeline && !defaultStore.state.tl.filter.withSensitive && noteToCheck.files?.some((v) => v.isSensitive)) return 'sensitiveMute';
|
||||||
return 'sensitiveMute';
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,7 +419,7 @@ if (!props.mock) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function renote(viaKeyboard = false) {
|
function renote(viaKeyboard = false) {
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin(undefined, pleaseLoginContext.value);
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
|
||||||
const { menu } = getRenoteMenu({ note: note.value, renoteButton, mock: props.mock });
|
const { menu } = getRenoteMenu({ note: note.value, renoteButton, mock: props.mock });
|
||||||
|
@ -433,7 +429,7 @@ function renote(viaKeyboard = false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function reply(): void {
|
function reply(): void {
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin(undefined, pleaseLoginContext.value);
|
||||||
if (props.mock) {
|
if (props.mock) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -446,7 +442,7 @@ function reply(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
function react(): void {
|
function react(): void {
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin(undefined, pleaseLoginContext.value);
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
if (appearNote.value.reactionAcceptance === 'likeOnly') {
|
if (appearNote.value.reactionAcceptance === 'likeOnly') {
|
||||||
sound.playMisskeySfx('reaction');
|
sound.playMisskeySfx('reaction');
|
||||||
|
@ -567,7 +563,7 @@ function showRenoteMenu(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMyRenote) {
|
if (isMyRenote) {
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin(undefined, pleaseLoginContext.value);
|
||||||
os.popupMenu([
|
os.popupMenu([
|
||||||
getCopyNoteLinkMenu(note.value, i18n.ts.copyLinkRenote),
|
getCopyNoteLinkMenu(note.value, i18n.ts.copyLinkRenote),
|
||||||
{ type: 'divider' },
|
{ type: 'divider' },
|
||||||
|
|
|
@ -207,7 +207,6 @@ import { computed, inject, onMounted, provide, ref, shallowRef } from 'vue';
|
||||||
import * as mfm from 'mfm-js';
|
import * as mfm from 'mfm-js';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import { isLink } from '@@/js/is-link.js';
|
import { isLink } from '@@/js/is-link.js';
|
||||||
import { host } from '@@/js/config.js';
|
|
||||||
import MkNoteSub from '@/components/MkNoteSub.vue';
|
import MkNoteSub from '@/components/MkNoteSub.vue';
|
||||||
import MkNoteSimple from '@/components/MkNoteSimple.vue';
|
import MkNoteSimple from '@/components/MkNoteSimple.vue';
|
||||||
import MkReactionsViewer from '@/components/MkReactionsViewer.vue';
|
import MkReactionsViewer from '@/components/MkReactionsViewer.vue';
|
||||||
|
@ -231,6 +230,7 @@ import { reactionPicker } from '@/scripts/reaction-picker.js';
|
||||||
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js';
|
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js';
|
||||||
import { $i } from '@/account.js';
|
import { $i } from '@/account.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
|
import { host } from '@@/js/config.js';
|
||||||
import { getNoteClipMenu, getNoteMenu, getRenoteMenu } from '@/scripts/get-note-menu.js';
|
import { getNoteClipMenu, getNoteMenu, getRenoteMenu } from '@/scripts/get-note-menu.js';
|
||||||
import { useNoteCapture } from '@/scripts/use-note-capture.js';
|
import { useNoteCapture } from '@/scripts/use-note-capture.js';
|
||||||
import { deepClone } from '@/scripts/clone.js';
|
import { deepClone } from '@/scripts/clone.js';
|
||||||
|
@ -404,7 +404,7 @@ if (appearNote.value.reactionAcceptance === 'likeOnly') {
|
||||||
}
|
}
|
||||||
|
|
||||||
function renote() {
|
function renote() {
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin(undefined, pleaseLoginContext.value);
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
|
||||||
const { menu } = getRenoteMenu({ note: note.value, renoteButton });
|
const { menu } = getRenoteMenu({ note: note.value, renoteButton });
|
||||||
|
@ -412,7 +412,7 @@ function renote() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function reply(): void {
|
function reply(): void {
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin(undefined, pleaseLoginContext.value);
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
os.post({
|
os.post({
|
||||||
reply: appearNote.value,
|
reply: appearNote.value,
|
||||||
|
@ -423,7 +423,7 @@ function reply(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
function react(): void {
|
function react(): void {
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin(undefined, pleaseLoginContext.value);
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
if (appearNote.value.reactionAcceptance === 'likeOnly') {
|
if (appearNote.value.reactionAcceptance === 'likeOnly') {
|
||||||
sound.playMisskeySfx('reaction');
|
sound.playMisskeySfx('reaction');
|
||||||
|
@ -499,7 +499,7 @@ async function clip(): Promise<void> {
|
||||||
|
|
||||||
function showRenoteMenu(): void {
|
function showRenoteMenu(): void {
|
||||||
if (!isMyRenote) return;
|
if (!isMyRenote) return;
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin(undefined, pleaseLoginContext.value);
|
||||||
os.popupMenu([{
|
os.popupMenu([{
|
||||||
text: i18n.ts.unrenote,
|
text: i18n.ts.unrenote,
|
||||||
icon: 'ti ti-trash',
|
icon: 'ti ti-trash',
|
||||||
|
|
|
@ -53,7 +53,7 @@ const props = withDefaults(defineProps<{
|
||||||
|
|
||||||
const dialog = shallowRef<InstanceType<typeof MkModalWindow>>();
|
const dialog = shallowRef<InstanceType<typeof MkModalWindow>>();
|
||||||
|
|
||||||
const typesMap = notificationTypes.reduce((p, t) => ({ ...p, [t]: ref<boolean>(!props.excludeTypes.includes(t)) }), {} as TypesMap);
|
const typesMap: TypesMap = notificationTypes.reduce((p, t) => ({ ...p, [t]: ref<boolean>(!props.excludeTypes.includes(t)) }), {} as any);
|
||||||
|
|
||||||
function ok() {
|
function ok() {
|
||||||
emit('done', {
|
emit('done', {
|
||||||
|
|
|
@ -39,7 +39,7 @@ import number from '@/filters/number.js';
|
||||||
import XValue from '@/components/MkObjectView.value.vue';
|
import XValue from '@/components/MkObjectView.value.vue';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
value: unknown;
|
value: any;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const collapsed = reactive({});
|
const collapsed = reactive({});
|
||||||
|
@ -50,19 +50,19 @@ if (isObject(props.value)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function isObject(v: unknown): v is Record<PropertyKey, unknown> {
|
function isObject(v): boolean {
|
||||||
return typeof v === 'object' && !Array.isArray(v) && v !== null;
|
return typeof v === 'object' && !Array.isArray(v) && v !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isArray(v: unknown): v is unknown[] {
|
function isArray(v): boolean {
|
||||||
return Array.isArray(v);
|
return Array.isArray(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isEmpty(v: unknown): v is Record<PropertyKey, never> | never[] {
|
function isEmpty(v): boolean {
|
||||||
return (isArray(v) && v.length === 0) || (isObject(v) && Object.keys(v).length === 0);
|
return (isArray(v) && v.length === 0) || (isObject(v) && Object.keys(v).length === 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function collapsable(v: unknown): boolean {
|
function collapsable(v): boolean {
|
||||||
return (isObject(v) || isArray(v)) && !isEmpty(v);
|
return (isObject(v) || isArray(v)) && !isEmpty(v);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -13,7 +13,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
:buttonsLeft="buttonsLeft"
|
:buttonsLeft="buttonsLeft"
|
||||||
:buttonsRight="buttonsRight"
|
:buttonsRight="buttonsRight"
|
||||||
:contextmenu="contextmenu"
|
:contextmenu="contextmenu"
|
||||||
@closed="emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
<template v-if="pageMetadata">
|
<template v-if="pageMetadata">
|
||||||
|
@ -30,17 +30,17 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, onMounted, onUnmounted, provide, ref, shallowRef } from 'vue';
|
import { computed, onMounted, onUnmounted, provide, ref, shallowRef } from 'vue';
|
||||||
import { url } from '@@/js/config.js';
|
|
||||||
import { getScrollContainer } from '@@/js/scroll.js';
|
|
||||||
import RouterView from '@/components/global/RouterView.vue';
|
import RouterView from '@/components/global/RouterView.vue';
|
||||||
import MkWindow from '@/components/MkWindow.vue';
|
import MkWindow from '@/components/MkWindow.vue';
|
||||||
import { popout as _popout } from '@/scripts/popout.js';
|
import { popout as _popout } from '@/scripts/popout.js';
|
||||||
import { copyToClipboard } from '@/scripts/copy-to-clipboard.js';
|
import { copyToClipboard } from '@/scripts/copy-to-clipboard.js';
|
||||||
|
import { url } from '@@/js/config.js';
|
||||||
import { useScrollPositionManager } from '@/nirax.js';
|
import { useScrollPositionManager } from '@/nirax.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { PageMetadata, provideMetadataReceiver, provideReactiveMetadata } from '@/scripts/page-metadata.js';
|
import { PageMetadata, provideMetadataReceiver, provideReactiveMetadata } from '@/scripts/page-metadata.js';
|
||||||
import { openingWindowsCount } from '@/os.js';
|
import { openingWindowsCount } from '@/os.js';
|
||||||
import { claimAchievement } from '@/scripts/achievements.js';
|
import { claimAchievement } from '@/scripts/achievements.js';
|
||||||
|
import { getScrollContainer } from '@@/js/scroll.js';
|
||||||
import { useRouterFactory } from '@/router/supplier.js';
|
import { useRouterFactory } from '@/router/supplier.js';
|
||||||
import { mainRouter } from '@/router/main.js';
|
import { mainRouter } from '@/router/main.js';
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ const props = defineProps<{
|
||||||
initialPath: string;
|
initialPath: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
defineEmits<{
|
||||||
(ev: 'closed'): void;
|
(ev: 'closed'): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ const windowRouter = routerFactory(props.initialPath);
|
||||||
const contents = shallowRef<HTMLElement | null>(null);
|
const contents = shallowRef<HTMLElement | null>(null);
|
||||||
const pageMetadata = ref<null | PageMetadata>(null);
|
const pageMetadata = ref<null | PageMetadata>(null);
|
||||||
const windowEl = shallowRef<InstanceType<typeof MkWindow>>();
|
const windowEl = shallowRef<InstanceType<typeof MkWindow>>();
|
||||||
const history = ref<{ path: string; key: string; }[]>([{
|
const history = ref<{ path: string; key: any; }[]>([{
|
||||||
path: windowRouter.getCurrentPath(),
|
path: windowRouter.getCurrentPath(),
|
||||||
key: windowRouter.getCurrentKey(),
|
key: windowRouter.getCurrentKey(),
|
||||||
}]);
|
}]);
|
||||||
|
|
|
@ -29,14 +29,14 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import { host } from '@@/js/config.js';
|
|
||||||
import { useInterval } from '@@/js/use-interval.js';
|
|
||||||
import type { OpenOnRemoteOptions } from '@/scripts/please-login.js';
|
import type { OpenOnRemoteOptions } from '@/scripts/please-login.js';
|
||||||
import { sum } from '@/scripts/array.js';
|
import { sum } from '@/scripts/array.js';
|
||||||
import { pleaseLogin } from '@/scripts/please-login.js';
|
import { pleaseLogin } from '@/scripts/please-login.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
|
import { host } from '@@/js/config.js';
|
||||||
|
import { useInterval } from '@@/js/use-interval.js';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
noteId: string;
|
noteId: string;
|
||||||
|
@ -85,7 +85,7 @@ if (props.poll.expiresAt) {
|
||||||
const vote = async (id) => {
|
const vote = async (id) => {
|
||||||
if (props.readOnly || closed.value || isVoted.value) return;
|
if (props.readOnly || closed.value || isVoted.value) return;
|
||||||
|
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin(undefined, pleaseLoginContext.value);
|
||||||
|
|
||||||
const { canceled } = await os.confirm({
|
const { canceled } = await os.confirm({
|
||||||
type: 'question',
|
type: 'question',
|
||||||
|
|
|
@ -19,7 +19,7 @@ defineProps<{
|
||||||
items: MenuItem[];
|
items: MenuItem[];
|
||||||
align?: 'center' | string;
|
align?: 'center' | string;
|
||||||
width?: number;
|
width?: number;
|
||||||
src?: HTMLElement | null;
|
src?: any;
|
||||||
returnFocusTo?: HTMLElement | null;
|
returnFocusTo?: HTMLElement | null;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<MkInfo v-if="hasNotSpecifiedMentions" warn :class="$style.hasNotSpecifiedMentions">{{ i18n.ts.notSpecifiedMentionWarning }} - <button class="_textButton" @click="addMissingMention()">{{ i18n.ts.add }}</button></MkInfo>
|
<MkInfo v-if="hasNotSpecifiedMentions" warn :class="$style.hasNotSpecifiedMentions">{{ i18n.ts.notSpecifiedMentionWarning }} - <button class="_textButton" @click="addMissingMention()">{{ i18n.ts.add }}</button></MkInfo>
|
||||||
<input v-show="useCw" ref="cwInputEl" v-model="cw" :class="$style.cw" :placeholder="i18n.ts.annotation" @keydown="onKeydown" @keyup="onKeyup" @compositionend="onCompositionEnd">
|
<input v-show="useCw" ref="cwInputEl" v-model="cw" :class="$style.cw" :placeholder="i18n.ts.annotation" @keydown="onKeydown">
|
||||||
<div :class="[$style.textOuter, { [$style.withCw]: useCw }]">
|
<div :class="[$style.textOuter, { [$style.withCw]: useCw }]">
|
||||||
<div v-if="channel" :class="$style.colorBar" :style="{ background: channel.color }"></div>
|
<div v-if="channel" :class="$style.colorBar" :style="{ background: channel.color }"></div>
|
||||||
<textarea ref="textareaEl" v-model="text" :class="[$style.text]" :disabled="posting || posted" :readonly="textAreaReadOnly" :placeholder="placeholder" data-cy-post-form-text @keydown="onKeydown" @keyup="onKeyup" @paste="onPaste" @compositionupdate="onCompositionUpdate" @compositionend="onCompositionEnd"/>
|
<textarea ref="textareaEl" v-model="text" :class="[$style.text]" :disabled="posting || posted" :readonly="textAreaReadOnly" :placeholder="placeholder" data-cy-post-form-text @keydown="onKeydown" @paste="onPaste" @compositionupdate="onCompositionUpdate" @compositionend="onCompositionEnd"/>
|
||||||
<div v-if="maxTextLength - textLength < 100" :class="['_acrylic', $style.textCount, { [$style.textOver]: textLength > maxTextLength }]">{{ maxTextLength - textLength }}</div>
|
<div v-if="maxTextLength - textLength < 100" :class="['_acrylic', $style.textCount, { [$style.textOver]: textLength > maxTextLength }]">{{ maxTextLength - textLength }}</div>
|
||||||
</div>
|
</div>
|
||||||
<input v-show="withHashtags" ref="hashtagsInputEl" v-model="hashtags" :class="$style.hashtags" :placeholder="i18n.ts.hashtags" list="hashtags">
|
<input v-show="withHashtags" ref="hashtagsInputEl" v-model="hashtags" :class="$style.hashtags" :placeholder="i18n.ts.hashtags" list="hashtags">
|
||||||
|
@ -129,13 +129,25 @@ import { miLocalStorage } from '@/local-storage.js';
|
||||||
import { claimAchievement } from '@/scripts/achievements.js';
|
import { claimAchievement } from '@/scripts/achievements.js';
|
||||||
import { emojiPicker } from '@/scripts/emoji-picker.js';
|
import { emojiPicker } from '@/scripts/emoji-picker.js';
|
||||||
import { mfmFunctionPicker } from '@/scripts/mfm-function-picker.js';
|
import { mfmFunctionPicker } from '@/scripts/mfm-function-picker.js';
|
||||||
import type { PostFormProps } from '@/types/post-form.js';
|
|
||||||
|
|
||||||
const $i = signinRequired();
|
const $i = signinRequired();
|
||||||
|
|
||||||
const modal = inject('modal');
|
const modal = inject('modal');
|
||||||
|
|
||||||
const props = withDefaults(defineProps<PostFormProps & {
|
const props = withDefaults(defineProps<{
|
||||||
|
reply?: Misskey.entities.Note;
|
||||||
|
renote?: Misskey.entities.Note;
|
||||||
|
channel?: Misskey.entities.Channel; // TODO
|
||||||
|
mention?: Misskey.entities.User;
|
||||||
|
specified?: Misskey.entities.UserDetailed;
|
||||||
|
initialText?: string;
|
||||||
|
initialCw?: string;
|
||||||
|
initialVisibility?: (typeof Misskey.noteVisibilities)[number];
|
||||||
|
initialFiles?: Misskey.entities.DriveFile[];
|
||||||
|
initialLocalOnly?: boolean;
|
||||||
|
initialVisibleUsers?: Misskey.entities.UserDetailed[];
|
||||||
|
initialNote?: Misskey.entities.Note;
|
||||||
|
instant?: boolean;
|
||||||
fixed?: boolean;
|
fixed?: boolean;
|
||||||
autofocus?: boolean;
|
autofocus?: boolean;
|
||||||
freezeAfterPosted?: boolean;
|
freezeAfterPosted?: boolean;
|
||||||
|
@ -189,7 +201,6 @@ const recentHashtags = ref(JSON.parse(miLocalStorage.getItem('hashtags') ?? '[]'
|
||||||
const imeText = ref('');
|
const imeText = ref('');
|
||||||
const showingOptions = ref(false);
|
const showingOptions = ref(false);
|
||||||
const textAreaReadOnly = ref(false);
|
const textAreaReadOnly = ref(false);
|
||||||
const justEndedComposition = ref(false);
|
|
||||||
|
|
||||||
const draftKey = computed((): string => {
|
const draftKey = computed((): string => {
|
||||||
let key = props.channel ? `channel:${props.channel.id}` : '';
|
let key = props.channel ? `channel:${props.channel.id}` : '';
|
||||||
|
@ -562,13 +573,7 @@ function clear() {
|
||||||
function onKeydown(ev: KeyboardEvent) {
|
function onKeydown(ev: KeyboardEvent) {
|
||||||
if (ev.key === 'Enter' && (ev.ctrlKey || ev.metaKey) && canPost.value) post();
|
if (ev.key === 'Enter' && (ev.ctrlKey || ev.metaKey) && canPost.value) post();
|
||||||
|
|
||||||
// justEndedComposition.value is for Safari, which keyDown occurs after compositionend.
|
if (ev.key === 'Escape') emit('esc');
|
||||||
// ev.isComposing is for another browsers.
|
|
||||||
if (ev.key === 'Escape' && !justEndedComposition.value && !ev.isComposing) emit('esc');
|
|
||||||
}
|
|
||||||
|
|
||||||
function onKeyup(ev: KeyboardEvent) {
|
|
||||||
justEndedComposition.value = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onCompositionUpdate(ev: CompositionEvent) {
|
function onCompositionUpdate(ev: CompositionEvent) {
|
||||||
|
@ -577,7 +582,6 @@ function onCompositionUpdate(ev: CompositionEvent) {
|
||||||
|
|
||||||
function onCompositionEnd(ev: CompositionEvent) {
|
function onCompositionEnd(ev: CompositionEvent) {
|
||||||
imeText.value = '';
|
imeText.value = '';
|
||||||
justEndedComposition.value = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onPaste(ev: ClipboardEvent) {
|
async function onPaste(ev: ClipboardEvent) {
|
||||||
|
@ -943,8 +947,8 @@ function showActions(ev: MouseEvent) {
|
||||||
action.handler({
|
action.handler({
|
||||||
text: text.value,
|
text: text.value,
|
||||||
cw: cw.value,
|
cw: cw.value,
|
||||||
}, (key, value) => {
|
}, (key, value: any) => {
|
||||||
if (typeof key !== 'string' || typeof value !== 'string') return;
|
if (typeof key !== 'string') return;
|
||||||
if (key === 'text') { text.value = value; }
|
if (key === 'text') { text.value = value; }
|
||||||
if (key === 'cw') { useCw.value = value !== null; cw.value = value; }
|
if (key === 'cw') { useCw.value = value !== null; cw.value = value; }
|
||||||
});
|
});
|
||||||
|
@ -1108,7 +1112,7 @@ defineExpose({
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
||||||
> .submitInner {
|
.submitInner {
|
||||||
outline: 2px solid var(--MI_THEME-fgOnAccent);
|
outline: 2px solid var(--MI_THEME-fgOnAccent);
|
||||||
outline-offset: -4px;
|
outline-offset: -4px;
|
||||||
}
|
}
|
||||||
|
@ -1123,13 +1127,13 @@ defineExpose({
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(:disabled):hover {
|
&:not(:disabled):hover {
|
||||||
> .submitInner {
|
> .inner {
|
||||||
background: linear-gradient(90deg, hsl(from var(--MI_THEME-accent) h s calc(l + 5)), hsl(from var(--MI_THEME-accent) h s calc(l + 5)));
|
background: linear-gradient(90deg, hsl(from var(--MI_THEME-accent) h s calc(l + 5)), hsl(from var(--MI_THEME-accent) h s calc(l + 5)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(:disabled):active {
|
&:not(:disabled):active {
|
||||||
> .submitInner {
|
> .inner {
|
||||||
background: linear-gradient(90deg, hsl(from var(--MI_THEME-accent) h s calc(l + 5)), hsl(from var(--MI_THEME-accent) h s calc(l + 5)));
|
background: linear-gradient(90deg, hsl(from var(--MI_THEME-accent) h s calc(l + 5)), hsl(from var(--MI_THEME-accent) h s calc(l + 5)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,14 +38,14 @@ import type { MenuItem } from '@/types/menu.js';
|
||||||
const Sortable = defineAsyncComponent(() => import('vuedraggable').then(x => x.default));
|
const Sortable = defineAsyncComponent(() => import('vuedraggable').then(x => x.default));
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: Misskey.entities.DriveFile[];
|
modelValue: any[];
|
||||||
detachMediaFn?: (id: string) => void;
|
detachMediaFn?: (id: string) => void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const mock = inject<boolean>('mock', false);
|
const mock = inject<boolean>('mock', false);
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(ev: 'update:modelValue', value: Misskey.entities.DriveFile[]): void;
|
(ev: 'update:modelValue', value: any[]): void;
|
||||||
(ev: 'detach', id: string): void;
|
(ev: 'detach', id: string): void;
|
||||||
(ev: 'changeSensitive', file: Misskey.entities.DriveFile, isSensitive: boolean): void;
|
(ev: 'changeSensitive', file: Misskey.entities.DriveFile, isSensitive: boolean): void;
|
||||||
(ev: 'changeName', file: Misskey.entities.DriveFile, newName: string): void;
|
(ev: 'changeName', file: Misskey.entities.DriveFile, newName: string): void;
|
||||||
|
@ -113,7 +113,7 @@ async function rename(file) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function describe(file: Misskey.entities.DriveFile) {
|
async function describe(file) {
|
||||||
if (mock) return;
|
if (mock) return;
|
||||||
|
|
||||||
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkFileCaptionEditWindow.vue')), {
|
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkFileCaptionEditWindow.vue')), {
|
||||||
|
|
|
@ -11,11 +11,23 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { shallowRef } from 'vue';
|
import { shallowRef } from 'vue';
|
||||||
|
import * as Misskey from 'misskey-js';
|
||||||
import MkModal from '@/components/MkModal.vue';
|
import MkModal from '@/components/MkModal.vue';
|
||||||
import MkPostForm from '@/components/MkPostForm.vue';
|
import MkPostForm from '@/components/MkPostForm.vue';
|
||||||
import type { PostFormProps } from '@/types/post-form.js';
|
|
||||||
|
|
||||||
const props = withDefaults(defineProps<PostFormProps & {
|
const props = withDefaults(defineProps<{
|
||||||
|
reply?: Misskey.entities.Note;
|
||||||
|
renote?: Misskey.entities.Note;
|
||||||
|
channel?: any; // TODO
|
||||||
|
mention?: Misskey.entities.User;
|
||||||
|
specified?: Misskey.entities.UserDetailed;
|
||||||
|
initialText?: string;
|
||||||
|
initialCw?: string;
|
||||||
|
initialVisibility?: (typeof Misskey.noteVisibilities)[number];
|
||||||
|
initialFiles?: Misskey.entities.DriveFile[];
|
||||||
|
initialLocalOnly?: boolean;
|
||||||
|
initialVisibleUsers?: Misskey.entities.UserDetailed[];
|
||||||
|
initialNote?: Misskey.entities.Note;
|
||||||
instant?: boolean;
|
instant?: boolean;
|
||||||
fixed?: boolean;
|
fixed?: boolean;
|
||||||
autofocus?: boolean;
|
autofocus?: boolean;
|
||||||
|
|
|
@ -24,17 +24,17 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup generic="T extends unknown">
|
<script lang="ts" setup>
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: T;
|
modelValue: any;
|
||||||
value: T;
|
value: any;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(ev: 'update:modelValue', value: T): void;
|
(ev: 'update:modelValue', value: any): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const checked = computed(() => props.modelValue === props.value);
|
const checked = computed(() => props.modelValue === props.value);
|
||||||
|
|
|
@ -23,7 +23,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
|
||||||
import { getEmojiName } from '@@/js/emojilist.js';
|
import { getEmojiName } from '@@/js/emojilist.js';
|
||||||
import MkTooltip from './MkTooltip.vue';
|
import MkTooltip from './MkTooltip.vue';
|
||||||
import MkReactionIcon from '@/components/MkReactionIcon.vue';
|
import MkReactionIcon from '@/components/MkReactionIcon.vue';
|
||||||
|
@ -31,7 +30,7 @@ import MkReactionIcon from '@/components/MkReactionIcon.vue';
|
||||||
defineProps<{
|
defineProps<{
|
||||||
showing: boolean;
|
showing: boolean;
|
||||||
reaction: string;
|
reaction: string;
|
||||||
users: Misskey.entities.UserLite[];
|
users: any[]; // TODO
|
||||||
count: number;
|
count: number;
|
||||||
targetElement: HTMLElement;
|
targetElement: HTMLElement;
|
||||||
}>();
|
}>();
|
||||||
|
|
|
@ -16,8 +16,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
@keydown.space.enter="show"
|
@keydown.space.enter="show"
|
||||||
>
|
>
|
||||||
<div ref="prefixEl" :class="$style.prefix"><slot name="prefix"></slot></div>
|
<div ref="prefixEl" :class="$style.prefix"><slot name="prefix"></slot></div>
|
||||||
<div
|
<select
|
||||||
ref="inputEl"
|
ref="inputEl"
|
||||||
|
v-model="v"
|
||||||
v-adaptive-border
|
v-adaptive-border
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
:class="$style.inputCore"
|
:class="$style.inputCore"
|
||||||
|
@ -25,48 +26,55 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
:required="required"
|
:required="required"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
|
@input="onInput"
|
||||||
@mousedown.prevent="() => {}"
|
@mousedown.prevent="() => {}"
|
||||||
@keydown.prevent="() => {}"
|
@keydown.prevent="() => {}"
|
||||||
>
|
>
|
||||||
<div style="pointer-events: none;">{{ currentValueText ?? '' }}</div>
|
|
||||||
<div style="display: none;">
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</select>
|
||||||
</div>
|
|
||||||
<div ref="suffixEl" :class="$style.suffix"><i class="ti ti-chevron-down" :class="[$style.chevron, { [$style.chevronOpening]: opening }]"></i></div>
|
<div ref="suffixEl" :class="$style.suffix"><i class="ti ti-chevron-down" :class="[$style.chevron, { [$style.chevronOpening]: opening }]"></i></div>
|
||||||
</div>
|
</div>
|
||||||
<div :class="$style.caption"><slot name="caption"></slot></div>
|
<div :class="$style.caption"><slot name="caption"></slot></div>
|
||||||
|
|
||||||
|
<MkButton v-if="manualSave && changed" primary :class="$style.save" @click="updated"><i class="ti ti-device-floppy"></i> {{ i18n.ts.save }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, nextTick, ref, watch, computed, toRefs, VNode, useSlots, VNodeChild } from 'vue';
|
import { onMounted, nextTick, ref, watch, computed, toRefs, VNode, useSlots, VNodeChild } from 'vue';
|
||||||
import { useInterval } from '@@/js/use-interval.js';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
import type { MenuItem } from '@/types/menu.js';
|
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
|
import { useInterval } from '@@/js/use-interval.js';
|
||||||
|
import { i18n } from '@/i18n.js';
|
||||||
|
import type { MenuItem } from '@/types/menu.js';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: string | number | null;
|
modelValue: string | null;
|
||||||
required?: boolean;
|
required?: boolean;
|
||||||
readonly?: boolean;
|
readonly?: boolean;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
autofocus?: boolean;
|
autofocus?: boolean;
|
||||||
inline?: boolean;
|
inline?: boolean;
|
||||||
|
manualSave?: boolean;
|
||||||
small?: boolean;
|
small?: boolean;
|
||||||
large?: boolean;
|
large?: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(ev: 'update:modelValue', value: string | number | null): void;
|
(ev: 'changeByUser', value: string | null): void;
|
||||||
|
(ev: 'update:modelValue', value: string | null): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const slots = useSlots();
|
const slots = useSlots();
|
||||||
|
|
||||||
const { modelValue, autofocus } = toRefs(props);
|
const { modelValue, autofocus } = toRefs(props);
|
||||||
|
const v = ref(modelValue.value);
|
||||||
const focused = ref(false);
|
const focused = ref(false);
|
||||||
const opening = ref(false);
|
const opening = ref(false);
|
||||||
const currentValueText = ref<string | null>(null);
|
const changed = ref(false);
|
||||||
|
const invalid = ref(false);
|
||||||
|
const filled = computed(() => v.value !== '' && v.value != null);
|
||||||
const inputEl = ref<HTMLObjectElement | null>(null);
|
const inputEl = ref<HTMLObjectElement | null>(null);
|
||||||
const prefixEl = ref<HTMLElement | null>(null);
|
const prefixEl = ref<HTMLElement | null>(null);
|
||||||
const suffixEl = ref<HTMLElement | null>(null);
|
const suffixEl = ref<HTMLElement | null>(null);
|
||||||
|
@ -77,6 +85,26 @@ const height =
|
||||||
36;
|
36;
|
||||||
|
|
||||||
const focus = () => container.value?.focus();
|
const focus = () => container.value?.focus();
|
||||||
|
const onInput = (ev) => {
|
||||||
|
changed.value = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
const updated = () => {
|
||||||
|
changed.value = false;
|
||||||
|
emit('update:modelValue', v.value);
|
||||||
|
};
|
||||||
|
|
||||||
|
watch(modelValue, newValue => {
|
||||||
|
v.value = newValue;
|
||||||
|
});
|
||||||
|
|
||||||
|
watch(v, () => {
|
||||||
|
if (!props.manualSave) {
|
||||||
|
updated();
|
||||||
|
}
|
||||||
|
|
||||||
|
invalid.value = inputEl.value?.validity.badInput ?? true;
|
||||||
|
});
|
||||||
|
|
||||||
// このコンポーネントが作成された時、非表示状態である場合がある
|
// このコンポーネントが作成された時、非表示状態である場合がある
|
||||||
// 非表示状態だと要素の幅などは0になってしまうので、定期的に計算する
|
// 非表示状態だと要素の幅などは0になってしまうので、定期的に計算する
|
||||||
|
@ -106,31 +134,6 @@ onMounted(() => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(modelValue, () => {
|
|
||||||
const scanOptions = (options: VNodeChild[]) => {
|
|
||||||
for (const vnode of options) {
|
|
||||||
if (typeof vnode !== 'object' || vnode === null || Array.isArray(vnode)) continue;
|
|
||||||
if (vnode.type === 'optgroup') {
|
|
||||||
const optgroup = vnode;
|
|
||||||
if (Array.isArray(optgroup.children)) scanOptions(optgroup.children);
|
|
||||||
} else if (Array.isArray(vnode.children)) { // 何故かフラグメントになってくることがある
|
|
||||||
const fragment = vnode;
|
|
||||||
if (Array.isArray(fragment.children)) scanOptions(fragment.children);
|
|
||||||
} else if (vnode.props == null) { // v-if で条件が false のときにこうなる
|
|
||||||
// nop?
|
|
||||||
} else {
|
|
||||||
const option = vnode;
|
|
||||||
if (option.props?.value === modelValue.value) {
|
|
||||||
currentValueText.value = option.children as string;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
scanOptions(slots.default!());
|
|
||||||
}, { immediate: true });
|
|
||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
if (opening.value) return;
|
if (opening.value) return;
|
||||||
focus();
|
focus();
|
||||||
|
@ -143,9 +146,11 @@ function show() {
|
||||||
const pushOption = (option: VNode) => {
|
const pushOption = (option: VNode) => {
|
||||||
menu.push({
|
menu.push({
|
||||||
text: option.children as string,
|
text: option.children as string,
|
||||||
active: computed(() => modelValue.value === option.props?.value),
|
active: computed(() => v.value === option.props?.value),
|
||||||
action: () => {
|
action: () => {
|
||||||
emit('update:modelValue', option.props?.value);
|
v.value = option.props?.value;
|
||||||
|
changed.value = true;
|
||||||
|
emit('changeByUser', v.value);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -243,8 +248,7 @@ function show() {
|
||||||
.inputCore {
|
.inputCore {
|
||||||
appearance: none;
|
appearance: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
display: flex;
|
display: block;
|
||||||
align-items: center;
|
|
||||||
height: v-bind("height + 'px'");
|
height: v-bind("height + 'px'");
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -24,11 +24,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|
||||||
<div v-if="needCaptcha">
|
<div v-if="needCaptcha">
|
||||||
<MkCaptcha v-if="instance.enableHcaptcha" ref="hcaptcha" v-model="hCaptchaResponse" provider="hcaptcha" :sitekey="instance.hcaptchaSiteKey"/>
|
<MkCaptcha v-if="instance.enableHcaptcha" ref="hcaptcha" v-model="hCaptchaResponse" :class="$style.captcha" provider="hcaptcha" :sitekey="instance.hcaptchaSiteKey"/>
|
||||||
<MkCaptcha v-if="instance.enableMcaptcha" ref="mcaptcha" v-model="mCaptchaResponse" provider="mcaptcha" :sitekey="instance.mcaptchaSiteKey" :instanceUrl="instance.mcaptchaInstanceUrl"/>
|
<MkCaptcha v-if="instance.enableMcaptcha" ref="mcaptcha" v-model="mCaptchaResponse" :class="$style.captcha" provider="mcaptcha" :sitekey="instance.mcaptchaSiteKey" :instanceUrl="instance.mcaptchaInstanceUrl"/>
|
||||||
<MkCaptcha v-if="instance.enableRecaptcha" ref="recaptcha" v-model="reCaptchaResponse" provider="recaptcha" :sitekey="instance.recaptchaSiteKey"/>
|
<MkCaptcha v-if="instance.enableRecaptcha" ref="recaptcha" v-model="reCaptchaResponse" :class="$style.captcha" provider="recaptcha" :sitekey="instance.recaptchaSiteKey"/>
|
||||||
<MkCaptcha v-if="instance.enableTurnstile" ref="turnstile" v-model="turnstileResponse" provider="turnstile" :sitekey="instance.turnstileSiteKey"/>
|
<MkCaptcha v-if="instance.enableTurnstile" ref="turnstile" v-model="turnstileResponse" :class="$style.captcha" provider="turnstile" :sitekey="instance.turnstileSiteKey"/>
|
||||||
<MkCaptcha v-if="instance.enableTestcaptcha" ref="testcaptcha" v-model="testcaptchaResponse" provider="testcaptcha"/>
|
<MkCaptcha v-if="instance.enableTestcaptcha" ref="testcaptcha" v-model="testcaptchaResponse" :class="$style.captcha" provider="testcaptcha"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MkButton type="submit" :disabled="needCaptcha && captchaFailed" large primary rounded style="margin: 0 auto;" data-cy-signin-page-password-continue>{{ i18n.ts.continue }} <i class="ti ti-arrow-right"></i></MkButton>
|
<MkButton type="submit" :disabled="needCaptcha && captchaFailed" large primary rounded style="margin: 0 auto;" data-cy-signin-page-password-continue>{{ i18n.ts.continue }} <i class="ti ti-arrow-right"></i></MkButton>
|
||||||
|
|
|
@ -277,7 +277,7 @@ async function onSubmit(): Promise<void> {
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res && res.ok) {
|
if (res) {
|
||||||
if (res.status === 204 || instance.emailRequiredForSignup) {
|
if (res.status === 204 || instance.emailRequiredForSignup) {
|
||||||
os.alert({
|
os.alert({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
@ -295,8 +295,6 @@ async function onSubmit(): Promise<void> {
|
||||||
await login(resJson.token);
|
await login(resJson.token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
onSignupApiError();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
submitting.value = false;
|
submitting.value = false;
|
||||||
|
|
|
@ -8,8 +8,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
ref="dialog"
|
ref="dialog"
|
||||||
:width="500"
|
:width="500"
|
||||||
:height="600"
|
:height="600"
|
||||||
@close="onClose"
|
@close="dialog?.close()"
|
||||||
@closed="emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<template #header>{{ i18n.ts.signup }}</template>
|
<template #header>{{ i18n.ts.signup }}</template>
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
:leaveToClass="$style.transition_x_leaveTo"
|
:leaveToClass="$style.transition_x_leaveTo"
|
||||||
>
|
>
|
||||||
<template v-if="!isAcceptedServerRule">
|
<template v-if="!isAcceptedServerRule">
|
||||||
<XServerRules @done="isAcceptedServerRule = true" @cancel="onClose"/>
|
<XServerRules @done="isAcceptedServerRule = true" @cancel="dialog?.close()"/>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<XSignup :autoSet="autoSet" @signup="onSignup" @signupEmailPending="onSignupEmailPending"/>
|
<XSignup :autoSet="autoSet" @signup="onSignup" @signupEmailPending="onSignupEmailPending"/>
|
||||||
|
@ -48,7 +48,6 @@ const props = withDefaults(defineProps<{
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(ev: 'done', res: Misskey.entities.SignupResponse): void;
|
(ev: 'done', res: Misskey.entities.SignupResponse): void;
|
||||||
(ev: 'cancelled'): void;
|
|
||||||
(ev: 'closed'): void;
|
(ev: 'closed'): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
@ -56,11 +55,6 @@ const dialog = shallowRef<InstanceType<typeof MkModalWindow>>();
|
||||||
|
|
||||||
const isAcceptedServerRule = ref(false);
|
const isAcceptedServerRule = ref(false);
|
||||||
|
|
||||||
function onClose() {
|
|
||||||
emit('cancelled');
|
|
||||||
dialog.value?.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
function onSignup(res: Misskey.entities.SignupResponse) {
|
function onSignup(res: Misskey.entities.SignupResponse) {
|
||||||
emit('done', res);
|
emit('done', res);
|
||||||
dialog.value?.close();
|
dialog.value?.close();
|
||||||
|
|
|
@ -28,38 +28,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
export type SuperMenuDef = {
|
|
||||||
title?: string;
|
|
||||||
items: ({
|
|
||||||
type: 'a';
|
|
||||||
href: string;
|
|
||||||
target?: string;
|
|
||||||
icon?: string;
|
|
||||||
text: string;
|
|
||||||
danger?: boolean;
|
|
||||||
active?: boolean;
|
|
||||||
} | {
|
|
||||||
type: 'button';
|
|
||||||
icon?: string;
|
|
||||||
text: string;
|
|
||||||
danger?: boolean;
|
|
||||||
active?: boolean;
|
|
||||||
action: (ev: MouseEvent) => void;
|
|
||||||
} | {
|
|
||||||
type: 'link';
|
|
||||||
to: string;
|
|
||||||
icon?: string;
|
|
||||||
text: string;
|
|
||||||
danger?: boolean;
|
|
||||||
active?: boolean;
|
|
||||||
})[];
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { } from 'vue';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
def: SuperMenuDef[];
|
def: any[];
|
||||||
grid?: boolean;
|
grid?: boolean;
|
||||||
}>();
|
}>();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -38,12 +38,10 @@ const props = withDefaults(defineProps<{
|
||||||
sound?: boolean;
|
sound?: boolean;
|
||||||
withRenotes?: boolean;
|
withRenotes?: boolean;
|
||||||
withReplies?: boolean;
|
withReplies?: boolean;
|
||||||
withSensitive?: boolean;
|
|
||||||
onlyFiles?: boolean;
|
onlyFiles?: boolean;
|
||||||
}>(), {
|
}>(), {
|
||||||
withRenotes: true,
|
withRenotes: true,
|
||||||
withReplies: false,
|
withReplies: false,
|
||||||
withSensitive: true,
|
|
||||||
onlyFiles: false,
|
onlyFiles: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -53,7 +51,6 @@ const emit = defineEmits<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
provide('inTimeline', true);
|
provide('inTimeline', true);
|
||||||
provide('tl_withSensitive', computed(() => props.withSensitive));
|
|
||||||
provide('inChannel', computed(() => props.src === 'channel'));
|
provide('inChannel', computed(() => props.src === 'channel'));
|
||||||
|
|
||||||
type TimelineQueryType = {
|
type TimelineQueryType = {
|
||||||
|
@ -251,9 +248,6 @@ function refreshEndpointAndChannel() {
|
||||||
// IDが切り替わったら切り替え先のTLを表示させたい
|
// IDが切り替わったら切り替え先のTLを表示させたい
|
||||||
watch(() => [props.list, props.antenna, props.channel, props.role, props.withRenotes], refreshEndpointAndChannel);
|
watch(() => [props.list, props.antenna, props.channel, props.role, props.withRenotes], refreshEndpointAndChannel);
|
||||||
|
|
||||||
// withSensitiveはクライアントで完結する処理のため、単にリロードするだけでOK
|
|
||||||
watch(() => props.withSensitive, reloadTimeline);
|
|
||||||
|
|
||||||
// 初回表示用
|
// 初回表示用
|
||||||
refreshEndpointAndChannel();
|
refreshEndpointAndChannel();
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
:okButtonDisabled="false"
|
:okButtonDisabled="false"
|
||||||
:canClose="false"
|
:canClose="false"
|
||||||
@close="dialog?.close()"
|
@close="dialog?.close()"
|
||||||
@closed="emit('closed')"
|
@closed="$emit('closed')"
|
||||||
@ok="ok()"
|
@ok="ok()"
|
||||||
>
|
>
|
||||||
<template #header>{{ title || i18n.ts.generateAccessToken }}</template>
|
<template #header>{{ title || i18n.ts.generateAccessToken }}</template>
|
||||||
|
|
|
@ -180,7 +180,7 @@ window.fetch(`/url?url=${encodeURIComponent(requestUrl.href)}&lang=${versatileLa
|
||||||
sensitive.value = info.sensitive ?? false;
|
sensitive.value = info.sensitive ?? false;
|
||||||
});
|
});
|
||||||
|
|
||||||
function adjustTweetHeight(message: MessageEvent) {
|
function adjustTweetHeight(message: any) {
|
||||||
if (message.origin !== 'https://platform.twitter.com') return;
|
if (message.origin !== 'https://platform.twitter.com') return;
|
||||||
const embed = message.data?.['twttr.embed'];
|
const embed = message.data?.['twttr.embed'];
|
||||||
if (embed?.method !== 'twttr.private.resize') return;
|
if (embed?.method !== 'twttr.private.resize') return;
|
||||||
|
@ -193,16 +193,14 @@ function openPlayer(): void {
|
||||||
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkYouTubePlayer.vue')), {
|
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkYouTubePlayer.vue')), {
|
||||||
url: requestUrl.href,
|
url: requestUrl.href,
|
||||||
}, {
|
}, {
|
||||||
closed: () => {
|
// TODO
|
||||||
dispose();
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('message', adjustTweetHeight);
|
(window as any).addEventListener('message', adjustTweetHeight);
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
window.removeEventListener('message', adjustTweetHeight);
|
(window as any).removeEventListener('message', adjustTweetHeight);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
ref="dialog"
|
ref="dialog"
|
||||||
:width="400"
|
:width="400"
|
||||||
@close="dialog?.close()"
|
@close="dialog?.close()"
|
||||||
@closed="emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<template v-if="announcement" #header>:{{ announcement.title }}:</template>
|
<template v-if="announcement" #header>:{{ announcement.title }}:</template>
|
||||||
<template v-else #header>New announcement</template>
|
<template v-else #header>New announcement</template>
|
||||||
|
@ -62,16 +62,9 @@ import MkTextarea from '@/components/MkTextarea.vue';
|
||||||
import MkSwitch from '@/components/MkSwitch.vue';
|
import MkSwitch from '@/components/MkSwitch.vue';
|
||||||
import MkRadios from '@/components/MkRadios.vue';
|
import MkRadios from '@/components/MkRadios.vue';
|
||||||
|
|
||||||
type AdminAnnouncementType = Misskey.entities.AdminAnnouncementsCreateRequest & { id: string; }
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
user: Misskey.entities.User,
|
user: Misskey.entities.User,
|
||||||
announcement?: Required<AdminAnnouncementType>,
|
announcement?: Misskey.entities.Announcement,
|
||||||
}>();
|
|
||||||
|
|
||||||
const emit = defineEmits<{
|
|
||||||
(ev: 'done', v: { deleted?: boolean; updated?: AdminAnnouncementType; created?: AdminAnnouncementType; }): void,
|
|
||||||
(ev: 'closed'): void
|
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const dialog = ref<InstanceType<typeof MkModalWindow> | null>(null);
|
const dialog = ref<InstanceType<typeof MkModalWindow> | null>(null);
|
||||||
|
@ -81,6 +74,11 @@ const icon = ref(props.announcement ? props.announcement.icon : 'info');
|
||||||
const display = ref(props.announcement ? props.announcement.display : 'dialog');
|
const display = ref(props.announcement ? props.announcement.display : 'dialog');
|
||||||
const needConfirmationToRead = ref(props.announcement ? props.announcement.needConfirmationToRead : false);
|
const needConfirmationToRead = ref(props.announcement ? props.announcement.needConfirmationToRead : false);
|
||||||
|
|
||||||
|
const emit = defineEmits<{
|
||||||
|
(ev: 'done', v: { deleted?: boolean; updated?: any; created?: any }): void,
|
||||||
|
(ev: 'closed'): void
|
||||||
|
}>();
|
||||||
|
|
||||||
async function done() {
|
async function done() {
|
||||||
const params = {
|
const params = {
|
||||||
title: title.value,
|
title: title.value,
|
||||||
|
@ -90,7 +88,7 @@ async function done() {
|
||||||
display: display.value,
|
display: display.value,
|
||||||
needConfirmationToRead: needConfirmationToRead.value,
|
needConfirmationToRead: needConfirmationToRead.value,
|
||||||
userId: props.user.id,
|
userId: props.user.id,
|
||||||
} satisfies Misskey.entities.AdminAnnouncementsCreateRequest;
|
};
|
||||||
|
|
||||||
if (props.announcement) {
|
if (props.announcement) {
|
||||||
await os.apiWithDialog('admin/announcements/update', {
|
await os.apiWithDialog('admin/announcements/update', {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue