Merge branch 'develop' into refactor/notification_settings

This commit is contained in:
Mark Felder 2020-07-15 09:01:40 -05:00
commit 49aaf9dc57
35 changed files with 42 additions and 89 deletions

View File

@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Add colons to the emoji alt text, to make them copyable - Add colons to the emoji alt text, to make them copyable
- Add better visual indication for drag-and-drop for files - Add better visual indication for drag-and-drop for files
- When disabling attachments, the placeholder links now show an icon and the description instead of just IMAGE or VIDEO etc - When disabling attachments, the placeholder links now show an icon and the description instead of just IMAGE or VIDEO etc
- Remove unnecessary options for 'automatic loading when loading older' and 'reply previews'
### Fixed ### Fixed
- Custom Emoji will display in poll options now. - Custom Emoji will display in poll options now.

View File

@ -69,7 +69,7 @@ const MobileNav = {
this.$refs.notifications.markAsSeen() this.$refs.notifications.markAsSeen()
}, },
onScroll ({ target: { scrollTop, clientHeight, scrollHeight } }) { onScroll ({ target: { scrollTop, clientHeight, scrollHeight } }) {
if (this.$store.getters.mergedConfig.autoLoad && scrollTop + clientHeight >= scrollHeight) { if (scrollTop + clientHeight >= scrollHeight) {
this.$refs.notifications.fetchOlderNotifications() this.$refs.notifications.fetchOlderNotifications()
} }
} }

View File

@ -27,6 +27,11 @@ const buildMentionsString = ({ user, attentions = [] }, currentUser) => {
return mentions.length > 0 ? mentions.join(' ') + ' ' : '' return mentions.length > 0 ? mentions.join(' ') + ' ' : ''
} }
// Converts a string with px to a number like '2px' -> 2
const pxStringToNumber = (str) => {
return Number(str.substring(0, str.length - 2))
}
const PostStatusForm = { const PostStatusForm = {
props: [ props: [
'replyTo', 'replyTo',
@ -423,7 +428,7 @@ const PostStatusForm = {
* scroll is different for `Window` and `Element`s * scroll is different for `Window` and `Element`s
*/ */
const bottomBottomPaddingStr = window.getComputedStyle(bottomRef)['padding-bottom'] const bottomBottomPaddingStr = window.getComputedStyle(bottomRef)['padding-bottom']
const bottomBottomPadding = Number(bottomBottomPaddingStr.substring(0, bottomBottomPaddingStr.length - 2)) const bottomBottomPadding = pxStringToNumber(bottomBottomPaddingStr)
const scrollerRef = this.$el.closest('.sidebar-scroller') || const scrollerRef = this.$el.closest('.sidebar-scroller') ||
this.$el.closest('.post-form-modal-view') || this.$el.closest('.post-form-modal-view') ||
@ -432,10 +437,12 @@ const PostStatusForm = {
// Getting info about padding we have to account for, removing 'px' part // Getting info about padding we have to account for, removing 'px' part
const topPaddingStr = window.getComputedStyle(target)['padding-top'] const topPaddingStr = window.getComputedStyle(target)['padding-top']
const bottomPaddingStr = window.getComputedStyle(target)['padding-bottom'] const bottomPaddingStr = window.getComputedStyle(target)['padding-bottom']
const topPadding = Number(topPaddingStr.substring(0, topPaddingStr.length - 2)) const topPadding = pxStringToNumber(topPaddingStr)
const bottomPadding = Number(bottomPaddingStr.substring(0, bottomPaddingStr.length - 2)) const bottomPadding = pxStringToNumber(bottomPaddingStr)
const vertPadding = topPadding + bottomPadding const vertPadding = topPadding + bottomPadding
const oldHeight = pxStringToNumber(target.style.height)
/* Explanation: /* Explanation:
* *
* https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight * https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight
@ -464,8 +471,13 @@ const PostStatusForm = {
// BEGIN content size update // BEGIN content size update
target.style.height = 'auto' target.style.height = 'auto'
const heightWithoutPadding = target.scrollHeight - vertPadding const heightWithoutPadding = Math.floor(target.scrollHeight - vertPadding)
const newHeight = this.maxHeight ? Math.min(heightWithoutPadding, this.maxHeight) : heightWithoutPadding let newHeight = this.maxHeight ? Math.min(heightWithoutPadding, this.maxHeight) : heightWithoutPadding
// This is a bit of a hack to combat target.scrollHeight being different on every other input
// on some browsers for whatever reason. Don't change the height if difference is 1px or less.
if (Math.abs(newHeight - oldHeight) <= 1) {
newHeight = oldHeight
}
target.style.height = `${newHeight}px` target.style.height = `${newHeight}px`
this.$emit('resize', newHeight) this.$emit('resize', newHeight)
// END content size update // END content size update

View File

@ -53,16 +53,6 @@
</small> </small>
</Checkbox> </Checkbox>
</li> </li>
<li>
<Checkbox v-model="autoLoad">
{{ $t('settings.autoload') }}
</Checkbox>
</li>
<li>
<Checkbox v-model="hoverPreview">
{{ $t('settings.reply_link_preview') }}
</Checkbox>
</li>
<li> <li>
<Checkbox v-model="emojiReactionsOnTimeline"> <Checkbox v-model="emojiReactionsOnTimeline">
{{ $t('settings.emoji_reactions_on_timeline') }} {{ $t('settings.emoji_reactions_on_timeline') }}

View File

@ -148,7 +148,6 @@ const Timeline = {
const bodyBRect = document.body.getBoundingClientRect() const bodyBRect = document.body.getBoundingClientRect()
const height = Math.max(bodyBRect.height, -(bodyBRect.y)) const height = Math.max(bodyBRect.height, -(bodyBRect.y))
if (this.timeline.loading === false && if (this.timeline.loading === false &&
this.$store.getters.mergedConfig.autoLoad &&
this.$el.offsetHeight > 0 && this.$el.offsetHeight > 0 &&
(window.innerHeight + window.pageYOffset) >= (height - 750)) { (window.innerHeight + window.pageYOffset) >= (height - 750)) {
this.fetchOlderStatuses() this.fetchOlderStatuses()

View File

@ -73,7 +73,6 @@
"settings": { "settings": {
"attachmentRadius": "المُرفَقات", "attachmentRadius": "المُرفَقات",
"attachments": "المُرفَقات", "attachments": "المُرفَقات",
"autoload": "",
"avatar": "الصورة الرمزية", "avatar": "الصورة الرمزية",
"avatarAltRadius": "الصور الرمزية (الإشعارات)", "avatarAltRadius": "الصور الرمزية (الإشعارات)",
"avatarRadius": "الصور الرمزية", "avatarRadius": "الصور الرمزية",
@ -147,7 +146,6 @@
"profile_tab": "الملف الشخصي", "profile_tab": "الملف الشخصي",
"radii_help": "", "radii_help": "",
"replies_in_timeline": "الردود على الخيط الزمني", "replies_in_timeline": "الردود على الخيط الزمني",
"reply_link_preview": "",
"reply_visibility_all": "عرض كافة الردود", "reply_visibility_all": "عرض كافة الردود",
"reply_visibility_following": "", "reply_visibility_following": "",
"reply_visibility_self": "", "reply_visibility_self": "",

View File

@ -73,7 +73,6 @@
"settings": { "settings": {
"attachmentRadius": "Adjunts", "attachmentRadius": "Adjunts",
"attachments": "Adjunts", "attachments": "Adjunts",
"autoload": "Recarrega automàticament en arribar a sota de tot.",
"avatar": "Avatar", "avatar": "Avatar",
"avatarAltRadius": "Avatars en les notificacions", "avatarAltRadius": "Avatars en les notificacions",
"avatarRadius": "Avatars", "avatarRadius": "Avatars",
@ -145,7 +144,6 @@
"profile_tab": "Perfil", "profile_tab": "Perfil",
"radii_help": "Configura l'arrodoniment de les vores (en píxels)", "radii_help": "Configura l'arrodoniment de les vores (en píxels)",
"replies_in_timeline": "Replies in timeline", "replies_in_timeline": "Replies in timeline",
"reply_link_preview": "Mostra el missatge citat en passar el ratolí per sobre de l'enllaç de resposta",
"reply_visibility_all": "Mostra totes les respostes", "reply_visibility_all": "Mostra totes les respostes",
"reply_visibility_following": "Mostra només les respostes a entrades meves o d'usuàries que jo segueixo", "reply_visibility_following": "Mostra només les respostes a entrades meves o d'usuàries que jo segueixo",
"reply_visibility_self": "Mostra només les respostes a entrades meves", "reply_visibility_self": "Mostra només les respostes a entrades meves",

View File

@ -112,7 +112,6 @@
"app_name": "Název aplikace", "app_name": "Název aplikace",
"attachmentRadius": "Přílohy", "attachmentRadius": "Přílohy",
"attachments": "Přílohy", "attachments": "Přílohy",
"autoload": "Povolit automatické načítání při rolování dolů",
"avatar": "Avatar", "avatar": "Avatar",
"avatarAltRadius": "Avatary (oznámení)", "avatarAltRadius": "Avatary (oznámení)",
"avatarRadius": "Avatary", "avatarRadius": "Avatary",
@ -206,7 +205,6 @@
"profile_tab": "Profil", "profile_tab": "Profil",
"radii_help": "Nastavit zakulacení rohů rozhraní (v pixelech)", "radii_help": "Nastavit zakulacení rohů rozhraní (v pixelech)",
"replies_in_timeline": "Odpovědi v časové ose", "replies_in_timeline": "Odpovědi v časové ose",
"reply_link_preview": "Povolit náhledy odkazu pro odpověď při přejetí myši",
"reply_visibility_all": "Zobrazit všechny odpovědi", "reply_visibility_all": "Zobrazit všechny odpovědi",
"reply_visibility_following": "Zobrazit pouze odpovědi směřované na mě nebo uživatele, které sleduji", "reply_visibility_following": "Zobrazit pouze odpovědi směřované na mě nebo uživatele, které sleduji",
"reply_visibility_self": "Zobrazit pouze odpovědi směřované na mě", "reply_visibility_self": "Zobrazit pouze odpovědi směřované na mě",

View File

@ -131,7 +131,6 @@
"settings": { "settings": {
"attachmentRadius": "Anhänge", "attachmentRadius": "Anhänge",
"attachments": "Anhänge", "attachments": "Anhänge",
"autoload": "Aktiviere automatisches Laden von älteren Beiträgen beim scrollen",
"avatar": "Avatar", "avatar": "Avatar",
"avatarAltRadius": "Avatare (Benachrichtigungen)", "avatarAltRadius": "Avatare (Benachrichtigungen)",
"avatarRadius": "Avatare", "avatarRadius": "Avatare",
@ -225,7 +224,6 @@
"profile_tab": "Profil", "profile_tab": "Profil",
"radii_help": "Kantenrundung (in Pixel) der Oberfläche anpassen", "radii_help": "Kantenrundung (in Pixel) der Oberfläche anpassen",
"replies_in_timeline": "Antworten in der Zeitleiste", "replies_in_timeline": "Antworten in der Zeitleiste",
"reply_link_preview": "Antwortlink-Vorschau beim Überfahren mit der Maus aktivieren",
"reply_visibility_all": "Alle Antworten zeigen", "reply_visibility_all": "Alle Antworten zeigen",
"reply_visibility_following": "Zeige nur Antworten an mich oder an Benutzer, denen ich folge", "reply_visibility_following": "Zeige nur Antworten an mich oder an Benutzer, denen ich folge",
"reply_visibility_self": "Nur Antworten an mich anzeigen", "reply_visibility_self": "Nur Antworten an mich anzeigen",

View File

@ -265,7 +265,6 @@
"allow_following_move": "Allow auto-follow when following account moves", "allow_following_move": "Allow auto-follow when following account moves",
"attachmentRadius": "Attachments", "attachmentRadius": "Attachments",
"attachments": "Attachments", "attachments": "Attachments",
"autoload": "Enable automatic loading when scrolled to the bottom",
"avatar": "Avatar", "avatar": "Avatar",
"avatarAltRadius": "Avatars (Notifications)", "avatarAltRadius": "Avatars (Notifications)",
"avatarRadius": "Avatars", "avatarRadius": "Avatars",
@ -385,7 +384,6 @@
"profile_tab": "Profile", "profile_tab": "Profile",
"radii_help": "Set up interface edge rounding (in pixels)", "radii_help": "Set up interface edge rounding (in pixels)",
"replies_in_timeline": "Replies in timeline", "replies_in_timeline": "Replies in timeline",
"reply_link_preview": "Enable reply-link preview on mouse hover",
"reply_visibility_all": "Show all replies", "reply_visibility_all": "Show all replies",
"reply_visibility_following": "Only show replies directed at me or users I'm following", "reply_visibility_following": "Only show replies directed at me or users I'm following",
"reply_visibility_self": "Only show replies directed at me", "reply_visibility_self": "Only show replies directed at me",

View File

@ -109,7 +109,6 @@
"app_name": "Nomo de aplikaĵo", "app_name": "Nomo de aplikaĵo",
"attachmentRadius": "Kunsendaĵoj", "attachmentRadius": "Kunsendaĵoj",
"attachments": "Kunsendaĵoj", "attachments": "Kunsendaĵoj",
"autoload": "Ŝalti memfaran enlegadon ĉe subo de paĝo",
"avatar": "Profilbildo", "avatar": "Profilbildo",
"avatarAltRadius": "Profilbildoj (sciigoj)", "avatarAltRadius": "Profilbildoj (sciigoj)",
"avatarRadius": "Profilbildoj", "avatarRadius": "Profilbildoj",
@ -203,7 +202,6 @@
"profile_tab": "Profilo", "profile_tab": "Profilo",
"radii_help": "Agordi fasadan rondigon de randoj (bildere)", "radii_help": "Agordi fasadan rondigon de randoj (bildere)",
"replies_in_timeline": "Respondoj en tempolinio", "replies_in_timeline": "Respondoj en tempolinio",
"reply_link_preview": "Ŝalti respond-ligilan antaŭvidon dum musa ŝvebo",
"reply_visibility_all": "Montri ĉiujn respondojn", "reply_visibility_all": "Montri ĉiujn respondojn",
"reply_visibility_following": "Montri nur respondojn por mi aŭ miaj abonatoj", "reply_visibility_following": "Montri nur respondojn por mi aŭ miaj abonatoj",
"reply_visibility_self": "Montri nur respondojn por mi", "reply_visibility_self": "Montri nur respondojn por mi",

View File

@ -203,7 +203,6 @@
}, },
"attachmentRadius": "Adjuntos", "attachmentRadius": "Adjuntos",
"attachments": "Adjuntos", "attachments": "Adjuntos",
"autoload": "Habilitar carga automática al llegar al final de la página",
"avatar": "Avatar", "avatar": "Avatar",
"avatarAltRadius": "Avatares (Notificaciones)", "avatarAltRadius": "Avatares (Notificaciones)",
"avatarRadius": "Avatares", "avatarRadius": "Avatares",
@ -307,7 +306,6 @@
"profile_tab": "Perfil", "profile_tab": "Perfil",
"radii_help": "Establezca el redondeo de las esquinas de la interfaz (en píxeles)", "radii_help": "Establezca el redondeo de las esquinas de la interfaz (en píxeles)",
"replies_in_timeline": "Réplicas en la línea temporal", "replies_in_timeline": "Réplicas en la línea temporal",
"reply_link_preview": "Activar la previsualización del enlace de responder al pasar el ratón por encima",
"reply_visibility_all": "Mostrar todas las réplicas", "reply_visibility_all": "Mostrar todas las réplicas",
"reply_visibility_following": "Solo mostrar réplicas para mí o usuarios a los que sigo", "reply_visibility_following": "Solo mostrar réplicas para mí o usuarios a los que sigo",
"reply_visibility_self": "Solo mostrar réplicas para mí", "reply_visibility_self": "Solo mostrar réplicas para mí",

View File

@ -116,7 +116,6 @@
}, },
"settings": { "settings": {
"attachments": "Manused", "attachments": "Manused",
"autoload": "Luba ajajoone automaatne uuendamine kui ajajoon on põhja keritud",
"avatar": "Profiilipilt", "avatar": "Profiilipilt",
"bio": "Bio", "bio": "Bio",
"current_avatar": "Sinu praegune profiilipilt", "current_avatar": "Sinu praegune profiilipilt",
@ -130,7 +129,6 @@
"nsfw_clickthrough": "Peida tööks-mittesobivad(NSFW) manuste hiireklõpsu taha", "nsfw_clickthrough": "Peida tööks-mittesobivad(NSFW) manuste hiireklõpsu taha",
"profile_background": "Profiilitaust", "profile_background": "Profiilitaust",
"profile_banner": "Profiilibänner", "profile_banner": "Profiilibänner",
"reply_link_preview": "Luba algpostituse kuvamine vastustes",
"set_new_avatar": "Vali uus profiilipilt", "set_new_avatar": "Vali uus profiilipilt",
"set_new_profile_background": "Vali uus profiilitaust", "set_new_profile_background": "Vali uus profiilitaust",
"set_new_profile_banner": "Vali uus profiilibänner", "set_new_profile_banner": "Vali uus profiilibänner",

View File

@ -203,7 +203,6 @@
}, },
"attachmentRadius": "Eranskinak", "attachmentRadius": "Eranskinak",
"attachments": "Eranskinak", "attachments": "Eranskinak",
"autoload": "Gaitu karga automatikoa beheraino mugitzean",
"avatar": "Avatarra", "avatar": "Avatarra",
"avatarAltRadius": "Avatarra (Aipamenak)", "avatarAltRadius": "Avatarra (Aipamenak)",
"avatarRadius": "Avatarrak", "avatarRadius": "Avatarrak",
@ -307,7 +306,6 @@
"profile_tab": "Profila", "profile_tab": "Profila",
"radii_help": "Konfiguratu interfazearen ertzen biribiltzea (pixeletan)", "radii_help": "Konfiguratu interfazearen ertzen biribiltzea (pixeletan)",
"replies_in_timeline": "Denbora-lerroko erantzunak", "replies_in_timeline": "Denbora-lerroko erantzunak",
"reply_link_preview": "Gaitu erantzun-estekaren aurrebista arratoiarekin",
"reply_visibility_all": "Erakutsi erantzun guztiak", "reply_visibility_all": "Erakutsi erantzun guztiak",
"reply_visibility_following": "Erakutsi bakarrik niri zuzendutako edo nik jarraitutako erabiltzaileen erantzunak", "reply_visibility_following": "Erakutsi bakarrik niri zuzendutako edo nik jarraitutako erabiltzaileen erantzunak",
"reply_visibility_self": "Erakutsi bakarrik niri zuzendutako erantzunak", "reply_visibility_self": "Erakutsi bakarrik niri zuzendutako erantzunak",

View File

@ -163,7 +163,6 @@
"settings": { "settings": {
"attachmentRadius": "Liitteet", "attachmentRadius": "Liitteet",
"attachments": "Liitteet", "attachments": "Liitteet",
"autoload": "Lataa vanhempia viestejä automaattisesti ruudun pohjalla",
"avatar": "Profiilikuva", "avatar": "Profiilikuva",
"avatarAltRadius": "Profiilikuvat (ilmoitukset)", "avatarAltRadius": "Profiilikuvat (ilmoitukset)",
"avatarRadius": "Profiilikuvat", "avatarRadius": "Profiilikuvat",
@ -250,7 +249,6 @@
"profile_tab": "Profiili", "profile_tab": "Profiili",
"radii_help": "Aseta reunojen pyöristys (pikseleinä)", "radii_help": "Aseta reunojen pyöristys (pikseleinä)",
"replies_in_timeline": "Keskustelut aikajanalla", "replies_in_timeline": "Keskustelut aikajanalla",
"reply_link_preview": "Keskusteluiden vastauslinkkien esikatselu",
"reply_visibility_all": "Näytä kaikki vastaukset", "reply_visibility_all": "Näytä kaikki vastaukset",
"reply_visibility_following": "Näytä vain vastaukset minulle tai seuraamilleni käyttäjille", "reply_visibility_following": "Näytä vain vastaukset minulle tai seuraamilleni käyttäjille",
"reply_visibility_self": "Näytä vain vastaukset minulle", "reply_visibility_self": "Näytä vain vastaukset minulle",

View File

@ -182,7 +182,6 @@
}, },
"attachmentRadius": "Pièces jointes", "attachmentRadius": "Pièces jointes",
"attachments": "Pièces jointes", "attachments": "Pièces jointes",
"autoload": "Charger la suite automatiquement une fois le bas de la page atteint",
"avatar": "Avatar", "avatar": "Avatar",
"avatarAltRadius": "Avatars (Notifications)", "avatarAltRadius": "Avatars (Notifications)",
"avatarRadius": "Avatars", "avatarRadius": "Avatars",
@ -282,7 +281,6 @@
"profile_tab": "Profil", "profile_tab": "Profil",
"radii_help": "Vous pouvez ici choisir le niveau d'arrondi des angles de l'interface (en pixels)", "radii_help": "Vous pouvez ici choisir le niveau d'arrondi des angles de l'interface (en pixels)",
"replies_in_timeline": "Réponses au journal", "replies_in_timeline": "Réponses au journal",
"reply_link_preview": "Afficher un aperçu lors du survol de liens vers une réponse",
"reply_visibility_all": "Montrer toutes les réponses", "reply_visibility_all": "Montrer toutes les réponses",
"reply_visibility_following": "Afficher uniquement les réponses adressées à moi ou aux personnes que je suis", "reply_visibility_following": "Afficher uniquement les réponses adressées à moi ou aux personnes que je suis",
"reply_visibility_self": "Afficher uniquement les réponses adressées à moi", "reply_visibility_self": "Afficher uniquement les réponses adressées à moi",

View File

@ -73,7 +73,6 @@
"settings": { "settings": {
"attachmentRadius": "Ceangaltáin", "attachmentRadius": "Ceangaltáin",
"attachments": "Ceangaltáin", "attachments": "Ceangaltáin",
"autoload": "Cumasaigh luchtú uathoibríoch nuair a scrollaítear go bun",
"avatar": "Phictúir phrófíle", "avatar": "Phictúir phrófíle",
"avatarAltRadius": "Phictúirí phrófíle (Fograí)", "avatarAltRadius": "Phictúirí phrófíle (Fograí)",
"avatarRadius": "Phictúirí phrófíle", "avatarRadius": "Phictúirí phrófíle",
@ -147,7 +146,6 @@
"profile_tab": "Próifíl", "profile_tab": "Próifíl",
"radii_help": "Cruinniú imeall comhéadan a chumrú (i bpicteilíní)", "radii_help": "Cruinniú imeall comhéadan a chumrú (i bpicteilíní)",
"replies_in_timeline": "Freagraí sa amlíne", "replies_in_timeline": "Freagraí sa amlíne",
"reply_link_preview": "Cumasaigh réamhamharc nasc freagartha ar chlár na luiche",
"reply_visibility_all": "Taispeáin gach freagra", "reply_visibility_all": "Taispeáin gach freagra",
"reply_visibility_following": "Taispeáin freagraí amháin atá dírithe ar mise nó ar úsáideoirí atá mé ag leanúint", "reply_visibility_following": "Taispeáin freagraí amháin atá dírithe ar mise nó ar úsáideoirí atá mé ag leanúint",
"reply_visibility_self": "Taispeáin freagraí amháin atá dírithe ar mise", "reply_visibility_self": "Taispeáin freagraí amháin atá dírithe ar mise",

View File

@ -140,7 +140,6 @@
"app_name": "שם האפליקציה", "app_name": "שם האפליקציה",
"attachmentRadius": "צירופים", "attachmentRadius": "צירופים",
"attachments": "צירופים", "attachments": "צירופים",
"autoload": "החל טעינה אוטומטית בגלילה לתחתית הדף",
"avatar": "תמונת פרופיל", "avatar": "תמונת פרופיל",
"avatarAltRadius": "תמונות פרופיל (התראות)", "avatarAltRadius": "תמונות פרופיל (התראות)",
"avatarRadius": "תמונות פרופיל", "avatarRadius": "תמונות פרופיל",
@ -240,7 +239,6 @@
"profile_tab": "פרופיל", "profile_tab": "פרופיל",
"radii_help": "קבע מראש עיגול פינות לממשק (בפיקסלים)", "radii_help": "קבע מראש עיגול פינות לממשק (בפיקסלים)",
"replies_in_timeline": "תגובות בציר הזמן", "replies_in_timeline": "תגובות בציר הזמן",
"reply_link_preview": "החל תצוגה מקדימה של לינק-תגובה בעת ריחוף עם העכבר",
"reply_visibility_all": "הראה את כל התגובות", "reply_visibility_all": "הראה את כל התגובות",
"reply_visibility_following": "הראה תגובות שמופנות אליי או לעקובים שלי בלבד", "reply_visibility_following": "הראה תגובות שמופנות אליי או לעקובים שלי בלבד",
"reply_visibility_self": "הראה תגובות שמופנות אליי בלבד", "reply_visibility_self": "הראה תגובות שמופנות אליי בלבד",

View File

@ -38,7 +38,6 @@
}, },
"settings": { "settings": {
"attachments": "Csatolmányok", "attachments": "Csatolmányok",
"autoload": "Autoatikus betöltés engedélyezése lap aljára görgetéskor",
"avatar": "Avatár", "avatar": "Avatár",
"bio": "Bio", "bio": "Bio",
"current_avatar": "Jelenlegi avatár", "current_avatar": "Jelenlegi avatár",
@ -52,7 +51,6 @@
"nsfw_clickthrough": "NSFW átkattintási tartalom elrejtésének engedélyezése", "nsfw_clickthrough": "NSFW átkattintási tartalom elrejtésének engedélyezése",
"profile_background": "Profil háttérkép", "profile_background": "Profil háttérkép",
"profile_banner": "Profil Banner", "profile_banner": "Profil Banner",
"reply_link_preview": "Válasz-link előzetes mutatása egér rátételkor",
"set_new_avatar": "Új avatár", "set_new_avatar": "Új avatár",
"set_new_profile_background": "Új profil háttér beállítása", "set_new_profile_background": "Új profil háttér beállítása",
"set_new_profile_banner": "Új profil banner", "set_new_profile_banner": "Új profil banner",

View File

@ -53,7 +53,6 @@
}, },
"settings": { "settings": {
"attachments": "Allegati", "attachments": "Allegati",
"autoload": "Abilita caricamento automatico quando raggiungi il fondo pagina",
"avatar": "Icona utente", "avatar": "Icona utente",
"bio": "Introduzione", "bio": "Introduzione",
"current_avatar": "La tua icona attuale", "current_avatar": "La tua icona attuale",
@ -67,7 +66,6 @@
"nsfw_clickthrough": "Fai click per visualizzare gli allegati offuscati", "nsfw_clickthrough": "Fai click per visualizzare gli allegati offuscati",
"profile_background": "Sfondo della tua pagina", "profile_background": "Sfondo della tua pagina",
"profile_banner": "Stendardo del tuo profilo", "profile_banner": "Stendardo del tuo profilo",
"reply_link_preview": "Visualizza le risposte al passaggio del cursore",
"set_new_avatar": "Scegli una nuova icona", "set_new_avatar": "Scegli una nuova icona",
"set_new_profile_background": "Scegli un nuovo sfondo per la tua pagina", "set_new_profile_background": "Scegli un nuovo sfondo per la tua pagina",
"set_new_profile_banner": "Scegli un nuovo stendardo per il tuo profilo", "set_new_profile_banner": "Scegli un nuovo stendardo per il tuo profilo",

View File

@ -234,7 +234,6 @@
}, },
"attachmentRadius": "ファイル", "attachmentRadius": "ファイル",
"attachments": "ファイル", "attachments": "ファイル",
"autoload": "したにスクロールしたとき、じどうてきによみこむ。",
"avatar": "アバター", "avatar": "アバター",
"avatarAltRadius": "つうちのアバター", "avatarAltRadius": "つうちのアバター",
"avatarRadius": "アバター", "avatarRadius": "アバター",
@ -343,7 +342,6 @@
"profile_tab": "プロフィール", "profile_tab": "プロフィール",
"radii_help": "インターフェースのまるさをせっていする。", "radii_help": "インターフェースのまるさをせっていする。",
"replies_in_timeline": "タイムラインのリプライ", "replies_in_timeline": "タイムラインのリプライ",
"reply_link_preview": "カーソルをかさねたとき、リプライのプレビューをみる",
"reply_visibility_all": "すべてのリプライをみる", "reply_visibility_all": "すべてのリプライをみる",
"reply_visibility_following": "わたしにあてられたリプライと、フォローしているひとからのリプライをみる", "reply_visibility_following": "わたしにあてられたリプライと、フォローしているひとからのリプライをみる",
"reply_visibility_self": "わたしにあてられたリプライをみる", "reply_visibility_self": "わたしにあてられたリプライをみる",

View File

@ -203,7 +203,6 @@
}, },
"attachmentRadius": "ファイル", "attachmentRadius": "ファイル",
"attachments": "ファイル", "attachments": "ファイル",
"autoload": "下にスクロールしたとき、自動的に読み込む。",
"avatar": "アバター", "avatar": "アバター",
"avatarAltRadius": "通知のアバター", "avatarAltRadius": "通知のアバター",
"avatarRadius": "アバター", "avatarRadius": "アバター",
@ -308,7 +307,6 @@
"profile_tab": "プロフィール", "profile_tab": "プロフィール",
"radii_help": "インターフェースの丸さを設定する。", "radii_help": "インターフェースの丸さを設定する。",
"replies_in_timeline": "タイムラインのリプライ", "replies_in_timeline": "タイムラインのリプライ",
"reply_link_preview": "カーソルを重ねたとき、リプライのプレビューを見る",
"reply_visibility_all": "すべてのリプライを見る", "reply_visibility_all": "すべてのリプライを見る",
"reply_visibility_following": "私に宛てられたリプライと、フォローしている人からのリプライを見る", "reply_visibility_following": "私に宛てられたリプライと、フォローしている人からのリプライを見る",
"reply_visibility_self": "私に宛てられたリプライを見る", "reply_visibility_self": "私に宛てられたリプライを見る",

View File

@ -90,7 +90,6 @@
"settings": { "settings": {
"attachmentRadius": "첨부물", "attachmentRadius": "첨부물",
"attachments": "첨부물", "attachments": "첨부물",
"autoload": "최하단에 도착하면 자동으로 로드 활성화",
"avatar": "아바타", "avatar": "아바타",
"avatarAltRadius": "아바타 (알림)", "avatarAltRadius": "아바타 (알림)",
"avatarRadius": "아바타", "avatarRadius": "아바타",
@ -172,7 +171,6 @@
"profile_tab": "프로필", "profile_tab": "프로필",
"radii_help": "인터페이스 모서리 둥글기 (픽셀 단위)", "radii_help": "인터페이스 모서리 둥글기 (픽셀 단위)",
"replies_in_timeline": "답글을 타임라인에", "replies_in_timeline": "답글을 타임라인에",
"reply_link_preview": "마우스를 올려서 답글 링크 미리보기 활성화",
"reply_visibility_all": "모든 답글 보기", "reply_visibility_all": "모든 답글 보기",
"reply_visibility_following": "나에게 직접 오는 답글이나 내가 팔로우 중인 사람에게서 오는 답글만 표시", "reply_visibility_following": "나에게 직접 오는 답글이나 내가 팔로우 중인 사람에게서 오는 답글만 표시",
"reply_visibility_self": "나에게 직접 전송 된 답글만 보이기", "reply_visibility_self": "나에게 직접 전송 된 답글만 보이기",

View File

@ -193,7 +193,6 @@
}, },
"attachmentRadius": "Vedlegg", "attachmentRadius": "Vedlegg",
"attachments": "Vedlegg", "attachments": "Vedlegg",
"autoload": "Automatisk lasting når du blar ned til bunnen",
"avatar": "Profilbilde", "avatar": "Profilbilde",
"avatarAltRadius": "Profilbilde (Varslinger)", "avatarAltRadius": "Profilbilde (Varslinger)",
"avatarRadius": "Profilbilde", "avatarRadius": "Profilbilde",
@ -293,7 +292,6 @@
"profile_tab": "Profil", "profile_tab": "Profil",
"radii_help": "Bestem hvor runde hjørnene i brukergrensesnittet skal være (i piksler)", "radii_help": "Bestem hvor runde hjørnene i brukergrensesnittet skal være (i piksler)",
"replies_in_timeline": "Svar på tidslinje", "replies_in_timeline": "Svar på tidslinje",
"reply_link_preview": "Vis en forhåndsvisning når du holder musen over svar til en status",
"reply_visibility_all": "Vis alle svar", "reply_visibility_all": "Vis alle svar",
"reply_visibility_following": "Vis bare svar som er til meg eller folk jeg følger", "reply_visibility_following": "Vis bare svar som er til meg eller folk jeg følger",
"reply_visibility_self": "Vis bare svar som er til meg", "reply_visibility_self": "Vis bare svar som er til meg",

View File

@ -136,7 +136,6 @@
"settings": { "settings": {
"attachmentRadius": "Bijlages", "attachmentRadius": "Bijlages",
"attachments": "Bijlages", "attachments": "Bijlages",
"autoload": "Automatisch laden inschakelen wanneer tot de bodem gescrold wordt",
"avatar": "Avatar", "avatar": "Avatar",
"avatarAltRadius": "Avatars (Meldingen)", "avatarAltRadius": "Avatars (Meldingen)",
"avatarRadius": "Avatars", "avatarRadius": "Avatars",
@ -217,7 +216,6 @@
"profile_tab": "Profiel", "profile_tab": "Profiel",
"radii_help": "Stel afronding van hoeken in de interface in (in pixels)", "radii_help": "Stel afronding van hoeken in de interface in (in pixels)",
"replies_in_timeline": "Antwoorden in tijdlijn", "replies_in_timeline": "Antwoorden in tijdlijn",
"reply_link_preview": "Antwoord-link weergave inschakelen bij aanwijzen met muisaanwijzer",
"reply_visibility_all": "Alle antwoorden tonen", "reply_visibility_all": "Alle antwoorden tonen",
"reply_visibility_following": "Enkel antwoorden tonen die aan mij of gevolgde gebruikers gericht zijn", "reply_visibility_following": "Enkel antwoorden tonen die aan mij of gevolgde gebruikers gericht zijn",
"reply_visibility_self": "Enkel antwoorden tonen die aan mij gericht zijn", "reply_visibility_self": "Enkel antwoorden tonen die aan mij gericht zijn",

View File

@ -152,7 +152,6 @@
"app_name": "Nom de laplicacion", "app_name": "Nom de laplicacion",
"attachmentRadius": "Pèças juntas", "attachmentRadius": "Pèças juntas",
"attachments": "Pèças juntas", "attachments": "Pèças juntas",
"autoload": "Activar lo cargament automatic un còp arribat al cap de la pagina",
"avatar": "Avatar", "avatar": "Avatar",
"avatarAltRadius": "Avatars (Notificacions)", "avatarAltRadius": "Avatars (Notificacions)",
"avatarRadius": "Avatars", "avatarRadius": "Avatars",
@ -252,7 +251,6 @@
"profile_tab": "Perfil", "profile_tab": "Perfil",
"radii_help": "Configurar los caires arredondits de linterfàcia (en pixèls)", "radii_help": "Configurar los caires arredondits de linterfàcia (en pixèls)",
"replies_in_timeline": "Responsas del flux", "replies_in_timeline": "Responsas del flux",
"reply_link_preview": "Activar lapercebut en passar la mirga",
"reply_visibility_all": "Mostrar totas las responsas", "reply_visibility_all": "Mostrar totas las responsas",
"reply_visibility_following": "Mostrar pas que las responsas que me son destinada a ieu o un utilizaire que seguissi", "reply_visibility_following": "Mostrar pas que las responsas que me son destinada a ieu o un utilizaire que seguissi",
"reply_visibility_self": "Mostrar pas que las responsas que me son destinadas", "reply_visibility_self": "Mostrar pas que las responsas que me son destinadas",

View File

@ -249,7 +249,6 @@
"allow_following_move": "Zezwalaj na automatyczną obserwację gdy obserwowane konto migruje", "allow_following_move": "Zezwalaj na automatyczną obserwację gdy obserwowane konto migruje",
"attachmentRadius": "Załączniki", "attachmentRadius": "Załączniki",
"attachments": "Załączniki", "attachments": "Załączniki",
"autoload": "Włącz automatyczne ładowanie po przewinięciu do końca strony",
"avatar": "Awatar", "avatar": "Awatar",
"avatarAltRadius": "Awatary (powiadomienia)", "avatarAltRadius": "Awatary (powiadomienia)",
"avatarRadius": "Awatary", "avatarRadius": "Awatary",
@ -362,7 +361,6 @@
"profile_tab": "Profil", "profile_tab": "Profil",
"radii_help": "Ustaw zaokrąglenie krawędzi interfejsu (w pikselach)", "radii_help": "Ustaw zaokrąglenie krawędzi interfejsu (w pikselach)",
"replies_in_timeline": "Odpowiedzi na osi czasu", "replies_in_timeline": "Odpowiedzi na osi czasu",
"reply_link_preview": "Włącz dymek z podglądem postu po najechaniu na znak odpowiedzi",
"reply_visibility_all": "Pokazuj wszystkie odpowiedzi", "reply_visibility_all": "Pokazuj wszystkie odpowiedzi",
"reply_visibility_following": "Pokazuj tylko odpowiedzi skierowane do mnie i osób które obserwuję", "reply_visibility_following": "Pokazuj tylko odpowiedzi skierowane do mnie i osób które obserwuję",
"reply_visibility_self": "Pokazuj tylko odpowiedzi skierowane do mnie", "reply_visibility_self": "Pokazuj tylko odpowiedzi skierowane do mnie",

View File

@ -109,7 +109,6 @@
"app_name": "Nome do aplicativo", "app_name": "Nome do aplicativo",
"attachmentRadius": "Anexos", "attachmentRadius": "Anexos",
"attachments": "Anexos", "attachments": "Anexos",
"autoload": "Habilitar carregamento automático quando a rolagem chegar ao fim.",
"avatar": "Avatar", "avatar": "Avatar",
"avatarAltRadius": "Avatares (Notificações)", "avatarAltRadius": "Avatares (Notificações)",
"avatarRadius": "Avatares", "avatarRadius": "Avatares",
@ -203,7 +202,6 @@
"profile_tab": "Perfil", "profile_tab": "Perfil",
"radii_help": "Arredondar arestas da interface (em pixel)", "radii_help": "Arredondar arestas da interface (em pixel)",
"replies_in_timeline": "Respostas na linha do tempo", "replies_in_timeline": "Respostas na linha do tempo",
"reply_link_preview": "Habilitar a pré-visualização de de respostas ao passar o mouse.",
"reply_visibility_all": "Mostrar todas as respostas", "reply_visibility_all": "Mostrar todas as respostas",
"reply_visibility_following": "Só mostrar respostas direcionadas a mim ou a usuários que sigo", "reply_visibility_following": "Só mostrar respostas direcionadas a mim ou a usuários que sigo",
"reply_visibility_self": "Só mostrar respostas direcionadas a mim", "reply_visibility_self": "Só mostrar respostas direcionadas a mim",

View File

@ -38,7 +38,6 @@
}, },
"settings": { "settings": {
"attachments": "Atașamente", "attachments": "Atașamente",
"autoload": "Permite încărcarea automată când scrolat la capăt",
"avatar": "Avatar", "avatar": "Avatar",
"bio": "Bio", "bio": "Bio",
"current_avatar": "Avatarul curent", "current_avatar": "Avatarul curent",
@ -52,7 +51,6 @@
"nsfw_clickthrough": "Permite ascunderea al atașamentelor NSFW", "nsfw_clickthrough": "Permite ascunderea al atașamentelor NSFW",
"profile_background": "Fundalul de profil", "profile_background": "Fundalul de profil",
"profile_banner": "Banner de profil", "profile_banner": "Banner de profil",
"reply_link_preview": "Permite previzualizarea linkului de răspuns la planarea de mouse",
"set_new_avatar": "Setează avatar nou", "set_new_avatar": "Setează avatar nou",
"set_new_profile_background": "Setează fundal nou", "set_new_profile_background": "Setează fundal nou",
"set_new_profile_banner": "Setează banner nou la profil", "set_new_profile_banner": "Setează banner nou la profil",

View File

@ -124,7 +124,6 @@
}, },
"attachmentRadius": "Прикреплённые файлы", "attachmentRadius": "Прикреплённые файлы",
"attachments": "Вложения", "attachments": "Вложения",
"autoload": "Включить автоматическую загрузку при прокрутке вниз",
"avatar": "Аватар", "avatar": "Аватар",
"avatarAltRadius": "Аватары в уведомлениях", "avatarAltRadius": "Аватары в уведомлениях",
"avatarRadius": "Аватары", "avatarRadius": "Аватары",
@ -211,7 +210,6 @@
"profile_tab": "Профиль", "profile_tab": "Профиль",
"radii_help": "Скругление углов элементов интерфейса (в пикселях)", "radii_help": "Скругление углов элементов интерфейса (в пикселях)",
"replies_in_timeline": "Ответы в ленте", "replies_in_timeline": "Ответы в ленте",
"reply_link_preview": "Включить предварительный просмотр ответа при наведении мыши",
"reply_visibility_all": "Показывать все ответы", "reply_visibility_all": "Показывать все ответы",
"reply_visibility_following": "Показывать только ответы мне или тех на кого я подписан", "reply_visibility_following": "Показывать только ответы мне или тех на кого я подписан",
"reply_visibility_self": "Показывать только ответы мне", "reply_visibility_self": "Показывать только ответы мне",

View File

@ -83,7 +83,6 @@
"settings.app_name": "అనువర్తన పేరు", "settings.app_name": "అనువర్తన పేరు",
"settings.attachmentRadius": "జోడింపులు", "settings.attachmentRadius": "జోడింపులు",
"settings.attachments": "జోడింపులు", "settings.attachments": "జోడింపులు",
"settings.autoload": "క్రిందికి స్క్రోల్ చేయబడినప్పుడు స్వయంచాలక లోడింగ్ని ప్రారంభించు",
"settings.avatar": "అవతారం", "settings.avatar": "అవతారం",
"settings.avatarAltRadius": "అవతారాలు (ప్రకటనలు)", "settings.avatarAltRadius": "అవతారాలు (ప్రకటనలు)",
"settings.avatarRadius": "అవతారాలు", "settings.avatarRadius": "అవతారాలు",
@ -178,7 +177,6 @@
"settings.profile_tab": "Profile", "settings.profile_tab": "Profile",
"settings.radii_help": "Set up interface edge rounding (in pixels)", "settings.radii_help": "Set up interface edge rounding (in pixels)",
"settings.replies_in_timeline": "Replies in timeline", "settings.replies_in_timeline": "Replies in timeline",
"settings.reply_link_preview": "Enable reply-link preview on mouse hover",
"settings.reply_visibility_all": "Show all replies", "settings.reply_visibility_all": "Show all replies",
"settings.reply_visibility_following": "Only show replies directed at me or users I'm following", "settings.reply_visibility_following": "Only show replies directed at me or users I'm following",
"settings.reply_visibility_self": "Only show replies directed at me", "settings.reply_visibility_self": "Only show replies directed at me",

View File

@ -199,7 +199,6 @@
}, },
"attachmentRadius": "附件", "attachmentRadius": "附件",
"attachments": "附件", "attachments": "附件",
"autoload": "启用滚动到底部时的自动加载",
"avatar": "头像", "avatar": "头像",
"avatarAltRadius": "头像(通知)", "avatarAltRadius": "头像(通知)",
"avatarRadius": "头像", "avatarRadius": "头像",
@ -299,7 +298,6 @@
"profile_tab": "个人资料", "profile_tab": "个人资料",
"radii_help": "设置界面边缘的圆角 (单位:像素)", "radii_help": "设置界面边缘的圆角 (单位:像素)",
"replies_in_timeline": "时间线中的回复", "replies_in_timeline": "时间线中的回复",
"reply_link_preview": "启用鼠标悬停时预览回复链接",
"reply_visibility_all": "显示所有回复", "reply_visibility_all": "显示所有回复",
"reply_visibility_following": "只显示发送给我的回复/发送给我关注的用户的回复", "reply_visibility_following": "只显示发送给我的回复/发送给我关注的用户的回复",
"reply_visibility_self": "只显示发送给我的回复", "reply_visibility_self": "只显示发送给我的回复",

View File

@ -31,9 +31,7 @@ export const defaultState = {
preloadImage: true, preloadImage: true,
loopVideo: true, loopVideo: true,
loopVideoSilentOnly: true, loopVideoSilentOnly: true,
autoLoad: true,
streaming: false, streaming: false,
hoverPreview: true,
emojiReactionsOnTimeline: true, emojiReactionsOnTimeline: true,
autohideFloatingPostButton: false, autohideFloatingPostButton: false,
pauseOnUnfocused: true, pauseOnUnfocused: true,

View File

@ -675,23 +675,22 @@ export const SLOT_INHERITANCE = {
depends: ['bg'] depends: ['bg']
}, },
chatMessage: {
depends: ['chatBg']
},
chatMessageIncomingBg: { chatMessageIncomingBg: {
depends: ['chatMessage'], depends: ['chatBg']
layer: 'chatMessage'
}, },
chatMessageIncomingText: { chatMessageIncomingText: {
depends: ['text'], depends: ['text'],
layer: 'text' layer: 'chatMessage',
variant: 'chatMessageIncomingBg',
textColor: true
}, },
chatMessageIncomingLink: { chatMessageIncomingLink: {
depends: ['link'], depends: ['link'],
layer: 'link' layer: 'chatMessage',
variant: 'chatMessageIncomingBg',
textColor: 'preserve'
}, },
chatMessageIncomingBorder: { chatMessageIncomingBorder: {
@ -701,22 +700,27 @@ export const SLOT_INHERITANCE = {
}, },
chatMessageOutgoingBg: { chatMessageOutgoingBg: {
depends: ['chatMessage'], depends: ['chatMessageIncomingBg'],
color: (mod, chatMessage) => brightness(5 * mod, chatMessage).rgb color: (mod, chatMessage) => brightness(5 * mod, chatMessage).rgb
}, },
chatMessageOutgoingText: { chatMessageOutgoingText: {
depends: ['text'], depends: ['text'],
layer: 'text' layer: 'chatMessage',
variant: 'chatMessageOutgoingBg',
textColor: true
}, },
chatMessageOutgoingLink: { chatMessageOutgoingLink: {
depends: ['link'], depends: ['link'],
layer: 'link' layer: 'chatMessage',
variant: 'chatMessageOutgoingBg',
textColor: 'preserve'
}, },
chatMessageOutgoingBorder: { chatMessageOutgoingBorder: {
depends: ['chatMessage'], depends: ['chatMessageOutgoingBg'],
opacity: 'chatMessage' opacity: 'border',
color: (mod, border) => brightness(2 * mod, border).rgb
} }
} }

View File

@ -128,14 +128,17 @@ export const topoSort = (
while (unprocessed.length > 0) { while (unprocessed.length > 0) {
step(unprocessed.pop()) step(unprocessed.pop())
} }
return output.sort((a, b) => {
// The index thing is to make sorting stable on browsers
// where Array.sort() isn't stable
return output.map((data, index) => ({ data, index })).sort(({ data: a, index: ai }, { data: b, index: bi }) => {
const depsA = getDeps(a, inheritance).length const depsA = getDeps(a, inheritance).length
const depsB = getDeps(b, inheritance).length const depsB = getDeps(b, inheritance).length
if (depsA === depsB || (depsB !== 0 && depsA !== 0)) return 0 if (depsA === depsB || (depsB !== 0 && depsA !== 0)) return ai - bi
if (depsA === 0 && depsB !== 0) return -1 if (depsA === 0 && depsB !== 0) return -1
if (depsB === 0 && depsA !== 0) return 1 if (depsB === 0 && depsA !== 0) return 1
}) }).map(({ data }) => data)
} }
const expandSlotValue = (value) => { const expandSlotValue = (value) => {