From b10787d23ca645932e89383ebb39402d1eb84700 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 29 Jan 2018 10:47:26 +0300 Subject: first ver --- src/components/attachment/attachment.js | 4 +++ src/components/attachment/attachment.vue | 2 +- src/components/still-image/still-image.js | 29 +++++++++++++++++ src/components/still-image/still-image.vue | 51 ++++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 src/components/still-image/still-image.js create mode 100644 src/components/still-image/still-image.vue (limited to 'src') diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 8a2a3826..cd72e571 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -1,3 +1,4 @@ +import StillImage from '../still-image/still-image.vue' import nsfwImage from '../../assets/nsfw.png' import fileTypeService from '../../services/file_type/file_type.service.js' @@ -16,6 +17,9 @@ const Attachment = { img: document.createElement('img') } }, + components: { + StillImage + }, computed: { type () { return fileTypeService.fileType(this.attachment.mimetype) diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index d6a51ffd..2810e205 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -8,7 +8,7 @@ - + diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js new file mode 100644 index 00000000..fa027bc4 --- /dev/null +++ b/src/components/still-image/still-image.js @@ -0,0 +1,29 @@ +import fileTypeService from '../../services/file_type/file_type.service.js' + +const StillImage = { + props: [ + 'src', + 'referrerpolicy', + 'mimetype' + ], + data () { + return { + hideNsfwLocal: this.$store.state.config.hideNsfw, + } + }, + computed: { + animated () { + return this.mimetype === 'image/gif' + } + }, + methods: { + drawCanvas() { + const canvas = this.$refs.canvas + if (!canvas) return + const ctx = canvas.getContext('2d') + ctx.drawImage(this.$refs.src, 1, 1, canvas.width, canvas.height) + } + } +} + +export default StillImage diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue new file mode 100644 index 00000000..fa086e51 --- /dev/null +++ b/src/components/still-image/still-image.vue @@ -0,0 +1,51 @@ + + + + + -- cgit v1.2.3-70-g09d2 From 3257991f4196cb6c2c77b3f81ec9f1850e243211 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 3 Feb 2018 19:55:45 +0300 Subject: unfinished fetch() version that doesn't work --- src/components/attachment/attachment.vue | 1 - src/components/status/status.js | 4 +++- src/components/status/status.vue | 26 +++++++++++++++++++++++--- src/components/still-image/still-image.js | 21 ++++++++++++++++----- src/components/still-image/still-image.vue | 5 +++-- 5 files changed, 45 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 2810e205..4ee5153b 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -127,7 +127,6 @@ flex: 1; img { - object-fit: contain; width: 100%; height: 100%; /* If this isn't here, chrome will stretch the images */ max-height: 500px; diff --git a/src/components/status/status.js b/src/components/status/status.js index 12f3bb25..7397e80c 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -4,6 +4,7 @@ import RetweetButton from '../retweet_button/retweet_button.vue' import DeleteButton from '../delete_button/delete_button.vue' import PostStatusForm from '../post_status_form/post_status_form.vue' import UserCardContent from '../user_card_content/user_card_content.vue' +import StillImage from '../still-image/still-image.vue' import { filter, find } from 'lodash' const Status = { @@ -76,7 +77,8 @@ const Status = { RetweetButton, DeleteButton, PostStatusForm, - UserCardContent + UserCardContent, + StillImage }, methods: { linkClicked ({target}) { diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 28272b0b..999adb21 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -34,7 +34,7 @@
@@ -84,7 +84,7 @@
- +

{{ preview.user.name }} @@ -146,6 +146,7 @@ box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5); margin-top: 0.5em; margin-left: 1em; + z-index: 50; .avatar { flex-shrink: 0; @@ -266,7 +267,6 @@ margin: 0.2em 0.3em 0 0; img { float: right; - border-radius: 5px; } } @@ -330,6 +330,17 @@ .status .avatar { width: 48px; height: 48px; + border-radius: 5px; + overflow: hidden; + + img { + width: 100%; + height: 100%; + } + + &.animated::before { + display: none; + } &.retweeted { width: 40px; @@ -339,6 +350,15 @@ } } + .status:hover .animated.avatar { + canvas { + display: none; + } + img { + visibility: visible; + } + } + .status img.avatar-retweeter { width: 24px; height: 24px; diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js index fa027bc4..e674b932 100644 --- a/src/components/still-image/still-image.js +++ b/src/components/still-image/still-image.js @@ -12,16 +12,27 @@ const StillImage = { } }, computed: { - animated () { - return this.mimetype === 'image/gif' + animated: { + get () { + // If mimetype is gif then it is certainly animated, if it's undefined - we don't know YET + return this.mimetype === 'image/gif' ? true : this.mimetype == null ? 'maybe' : false + }, + set (val) { + this.mimetype = val + } } }, methods: { - drawCanvas() { + onLoad () { const canvas = this.$refs.canvas if (!canvas) return - const ctx = canvas.getContext('2d') - ctx.drawImage(this.$refs.src, 1, 1, canvas.width, canvas.height) + canvas.getContext('2d').drawImage(this.$refs.src, 1, 1, canvas.width, canvas.height) + if (this.animated === 'maybe') { + fetch(this.src).then((data) => { + console.log(data) + this.animated = data.type + }) + } } } } diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue index fa086e51..cc426fff 100644 --- a/src/components/still-image/still-image.vue +++ b/src/components/still-image/still-image.vue @@ -1,7 +1,7 @@ @@ -31,9 +31,10 @@ position: absolute; top: 5px; left: 5px; - background: rgba(255,255,255,.5); + background: rgba(127,127,127,.7); display: block; padding: 2px; + border-radius: 3px; z-index: 2; } } -- cgit v1.2.3-70-g09d2 From 55bc1a3414ac15b08554a43c00f7f631ca1d304a Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 3 Feb 2018 20:32:13 +0300 Subject: fixed stretched spurdo in notifications, misc fixes, detect gif by extension for now --- src/components/attachment/attachment.vue | 6 ++++++ src/components/notifications/notifications.scss | 4 ++++ src/components/still-image/still-image.js | 16 ++-------------- src/components/still-image/still-image.vue | 1 + 4 files changed, 13 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 4ee5153b..a1b35d91 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -126,7 +126,13 @@ display: flex; flex: 1; + .still-image { + width: 100%; + height: 100%; + } + img { + object-fit: contain; width: 100%; height: 100%; /* If this isn't here, chrome will stretch the images */ max-height: 500px; diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index 241f10b4..4fda255b 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -104,6 +104,10 @@ max-height: 12em; overflow-y: hidden; //text-overflow: ellipsis; + + img { + object-fit: contain; + } } .notification-gradient { diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js index e674b932..595652f2 100644 --- a/src/components/still-image/still-image.js +++ b/src/components/still-image/still-image.js @@ -12,14 +12,8 @@ const StillImage = { } }, computed: { - animated: { - get () { - // If mimetype is gif then it is certainly animated, if it's undefined - we don't know YET - return this.mimetype === 'image/gif' ? true : this.mimetype == null ? 'maybe' : false - }, - set (val) { - this.mimetype = val - } + animated () { + return this.mimetype === 'image/gif' || this.src.endsWith('.gif') } }, methods: { @@ -27,12 +21,6 @@ const StillImage = { const canvas = this.$refs.canvas if (!canvas) return canvas.getContext('2d').drawImage(this.$refs.src, 1, 1, canvas.width, canvas.height) - if (this.animated === 'maybe') { - fetch(this.src).then((data) => { - console.log(data) - this.animated = data.type - }) - } } } } diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue index cc426fff..b141cdaf 100644 --- a/src/components/still-image/still-image.vue +++ b/src/components/still-image/still-image.vue @@ -11,6 +11,7 @@ @import '../../_variables.scss'; .still-image { position: relative; + line-height: 0; &:hover canvas { display: none; -- cgit v1.2.3-70-g09d2 From 5efd8a4aa6cd4deca287781be24083fc468c563a Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 3 Feb 2018 20:37:27 +0300 Subject: fixes --- src/components/still-image/still-image.js | 7 ------- src/components/still-image/still-image.vue | 7 +++++-- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js index 595652f2..f0b25265 100644 --- a/src/components/still-image/still-image.js +++ b/src/components/still-image/still-image.js @@ -1,16 +1,9 @@ -import fileTypeService from '../../services/file_type/file_type.service.js' - const StillImage = { props: [ 'src', 'referrerpolicy', 'mimetype' ], - data () { - return { - hideNsfwLocal: this.$store.state.config.hideNsfw, - } - }, computed: { animated () { return this.mimetype === 'image/gif' || this.src.endsWith('.gif') diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue index b141cdaf..91d7f77a 100644 --- a/src/components/still-image/still-image.vue +++ b/src/components/still-image/still-image.vue @@ -30,11 +30,14 @@ &::before { content: 'gif'; position: absolute; + line-height: 10px; + font-size: 10px; top: 5px; left: 5px; - background: rgba(127,127,127,.7); + background: rgba(127,127,127,.5); + color: #FFF; display: block; - padding: 2px; + padding: 2px 4px; border-radius: 3px; z-index: 2; } -- cgit v1.2.3-70-g09d2 From 0c4dc26808c3bb7508bf9005f3c3430f1c7e2039 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 12 Mar 2018 02:31:33 +0300 Subject: after nine years of development, hopefully, it has been worth the weight --- src/components/notifications/notifications.js | 3 ++- src/components/notifications/notifications.scss | 18 +++++++++++++++++- src/components/notifications/notifications.vue | 2 +- src/components/settings/settings.js | 6 +++++- src/components/settings/settings.vue | 8 ++++++-- src/components/status/status.vue | 8 ++++---- src/components/still-image/still-image.js | 7 ++++++- src/components/still-image/still-image.vue | 14 ++++++++++---- src/components/user_card_content/user_card_content.js | 4 ++++ src/components/user_card_content/user_card_content.vue | 17 +++++++++++++++-- src/i18n/messages.js | 2 ++ 11 files changed, 72 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index 5f0d7f26..e9b83bf0 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -1,4 +1,5 @@ import Status from '../status/status.vue' +import StillImage from '../still-image/still-image.vue' import { sortBy, take, filter } from 'lodash' @@ -31,7 +32,7 @@ const Notifications = { } }, components: { - Status + Status, StillImage }, watch: { unseenCount (count) { diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index 4fda255b..3c500b36 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -88,10 +88,26 @@ } .avatar { - padding-top: 0.3em; + margin-top: 0.3em; width: 32px; height: 32px; border-radius: 50%; + overflow: hidden; + line-height: 0; + + &.animated::before { + display: none; + } + + } + + &:hover .animated.avatar { + canvas { + display: none; + } + img { + visibility: visible; + } } &:last-child { diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index b341fcef..8e6f12b2 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -10,7 +10,7 @@
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index b88937bb..a26111d6 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -10,7 +10,8 @@ const settings = { muteWordsString: this.$store.state.config.muteWords.join('\n'), autoLoadLocal: this.$store.state.config.autoLoad, streamingLocal: this.$store.state.config.streaming, - hoverPreviewLocal: this.$store.state.config.hoverPreview + hoverPreviewLocal: this.$store.state.config.hoverPreview, + stopGifs: this.$store.state.config.stopGifs } }, components: { @@ -43,6 +44,9 @@ const settings = { muteWordsString (value) { value = filter(value.split('\n'), (word) => trim(word).length > 0) this.$store.dispatch('setOption', { name: 'muteWords', value }) + }, + stopGifs (value) { + this.$store.dispatch('setOption', { name: 'stopGifs', value }) } } } diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue index 8fdd09de..5aa7596a 100644 --- a/src/components/settings/settings.vue +++ b/src/components/settings/settings.vue @@ -29,8 +29,8 @@
  • - - + +
  • @@ -40,6 +40,10 @@
  • +
  • + + +
  • diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 999adb21..d451b67c 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -35,7 +35,7 @@
    @@ -265,7 +265,7 @@ .media-left { margin: 0.2em 0.3em 0 0; - img { + .avatar { float: right; } } @@ -359,7 +359,7 @@ } } - .status img.avatar-retweeter { + .status .avatar-retweeter { width: 24px; height: 24px; position: absolute; @@ -433,7 +433,7 @@ } } - .status img.avatar-retweeter { + .status .avatar-retweeter { width: 22px; height: 22px; position: absolute; diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js index f0b25265..0839aca5 100644 --- a/src/components/still-image/still-image.js +++ b/src/components/still-image/still-image.js @@ -4,9 +4,14 @@ const StillImage = { 'referrerpolicy', 'mimetype' ], + data () { + return { + stopGifs: this.$store.state.config.stopGifs + } + }, computed: { animated () { - return this.mimetype === 'image/gif' || this.src.endsWith('.gif') + return this.stopGifs && (this.mimetype === 'image/gif' || this.src.endsWith('.gif')) } }, methods: { diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue index 91d7f77a..5695c554 100644 --- a/src/components/still-image/still-image.vue +++ b/src/components/still-image/still-image.vue @@ -12,17 +12,23 @@ .still-image { position: relative; line-height: 0; - + overflow: hidden; + &:hover canvas { display: none; } - + + img { + width: 100%; + height: 100% + } + &.animated { &:hover::before, img { - visibility: hidden + visibility: hidden; } - + &:hover img { visibility: visible } diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js index 32d62ebb..8c9ccda1 100644 --- a/src/components/user_card_content/user_card_content.js +++ b/src/components/user_card_content/user_card_content.js @@ -1,3 +1,4 @@ +import StillImage from '../still-image/still-image.vue' import { hex2rgb } from '../../services/color_convert/color_convert.js' export default { @@ -35,6 +36,9 @@ export default { return Math.round(this.user.statuses_count / days) } }, + components: { + StillImage + }, methods: { followUser () { const store = this.$store diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index ef000c94..71a879df 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -7,7 +7,7 @@
    - +
    @@ -135,13 +135,26 @@ overflow: hidden; } - img { + .avatar { border-radius: 5px; flex: 1 0 100%; width: 56px; height: 56px; box-shadow: 0px 1px 8px rgba(0,0,0,0.75); object-fit: cover; + + &.animated::before { + display: none; + } + } + + &:hover .animated.avatar { + canvas { + display: none; + } + img { + visibility: visible; + } } text-shadow: 0px 1px 1.5px rgba(0, 0, 0, 1.0); diff --git a/src/i18n/messages.js b/src/i18n/messages.js index c4a62128..48708539 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -245,6 +245,7 @@ const en = { hide_attachments_in_tl: 'Hide attachments in timeline', hide_attachments_in_convo: 'Hide attachments in conversations', nsfw_clickthrough: 'Enable clickthrough NSFW attachment hiding', + stop_gifs: 'Play-on-hover GIFs', autoload: 'Enable automatic loading when scrolled to the bottom', streaming: 'Enable automatic streaming of new posts when scrolled to the top', reply_link_preview: 'Enable reply-link preview on mouse hover', @@ -1096,6 +1097,7 @@ const ru = { attachments: 'Вложения', hide_attachments_in_tl: 'Прятать вложения в ленте', hide_attachments_in_convo: 'Прятать вложения в разговорах', + stop_gifs: 'Проигрывать GIF анимации только при наведении', nsfw_clickthrough: 'Включить скрытие NSFW вложений', autoload: 'Включить автоматическую загрузку при прокрутке вниз', streaming: 'Включить автоматическую загрузку новых сообщений при прокрутке вверх', -- cgit v1.2.3-70-g09d2 From f6fb592ba11f90298e7bb43fa5b7b68af1088773 Mon Sep 17 00:00:00 2001 From: Sebastian Huebner Date: Mon, 12 Mar 2018 11:11:07 +0100 Subject: updated german translation --- src/i18n/messages.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/i18n/messages.js b/src/i18n/messages.js index a2ce3dff..2a465794 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -20,7 +20,8 @@ const de = { muted: 'Stummgeschaltet', followers: 'Folgende', followees: 'Folgt', - per_day: 'pro Tag' + per_day: 'pro Tag', + remote_follow: 'Remote Follow' }, timeline: { show_new: 'Zeige Neuere', @@ -53,9 +54,9 @@ const de = { filtering: 'Filter', filtering_explanation: 'Alle Beiträge die diese Wörter enthalten werden ausgeblendet. Ein Wort pro Zeile.', attachments: 'Anhänge', - hide_attachments_in_tl: 'Anhänge in der Timeline ausblenden', + hide_attachments_in_tl: 'Anhänge in der Zeitleiste ausblenden', hide_attachments_in_convo: 'Anhänge in Unterhaltungen ausblenden', - nsfw_clickthrough: 'Aktiviere ausblendbares Overlay für als NSFW markierte Anhänge', + nsfw_clickthrough: 'Aktiviere ausblendbares Overlay für Anhänge, die als NSFW markiert sind', autoload: 'Aktiviere automatisches Laden von älteren Beiträgen beim scrollen', streaming: 'Aktiviere automatisches Laden (Streaming) von neuen Beiträgen', reply_link_preview: 'Aktiviere reply-link Vorschau bei Maus-Hover', @@ -94,6 +95,9 @@ const de = { general: { submit: 'Absenden', apply: 'Anwenden' + }, + user_profile: { + timeline_title: 'Beiträge' } } -- cgit v1.2.3-70-g09d2 From d57dec6fb48520c087edbda0e46d01d7eb76b507 Mon Sep 17 00:00:00 2001 From: Daniel Cobalto Date: Tue, 20 Mar 2018 01:24:20 +0000 Subject: Update messages.js for pt fix --- src/i18n/messages.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/i18n/messages.js b/src/i18n/messages.js index a2ce3dff..bd738b5a 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -960,11 +960,12 @@ const pt = { blocked: 'Bloqueado!', block: 'Bloquear', statuses: 'Postagens', - mute: 'Mutar', - muted: 'Mudo', + mute: 'Silenciar', + muted: 'Silenciado', followers: 'Seguidores', followees: 'Seguindo', - per_day: 'por dia' + per_day: 'por dia', + remote_follow: 'Seguidor Remoto' }, timeline: { show_new: 'Mostrar novas', @@ -980,16 +981,16 @@ const pt = { bio: 'Biografia', avatar: 'Avatar', current_avatar: 'Seu avatar atual', - set_new_avatar: 'Mudar avatar', + set_new_avatar: 'Alterar avatar', profile_banner: 'Capa de perfil', current_profile_banner: 'Sua capa de perfil atual', - set_new_profile_banner: 'Mudar capa de perfil', + set_new_profile_banner: 'Alterar capa de perfil', profile_background: 'Plano de fundo de perfil', - set_new_profile_background: 'Mudar o plano de fundo de perfil', + set_new_profile_background: 'Alterar o plano de fundo de perfil', settings: 'Configurações', theme: 'Tema', presets: 'Predefinições', - theme_help: 'Use cores em códigos hexadecimais (#aabbcc) para personalizar seu esquema de cores.', + theme_help: 'Use cores em código hexadecimal (#aabbcc) para personalizar seu esquema de cores.', background: 'Plano de Fundo', foreground: 'Primeiro Plano', text: 'Texto', @@ -1004,9 +1005,9 @@ const pt = { streaming: 'Habilitar o fluxo automático de postagens quando ao topo da página', reply_link_preview: 'Habilitar a pré-visualização de link de respostas ao passar o mouse.', follow_import: 'Importar seguidas', - import_followers_from_a_csv_file: 'Importe os perfis que tu segues apartir de um arquivo CSV', - follows_imported: 'Seguidas importadas! O processamento das mesmas pode demorar um pouco.', - follow_import_error: 'Erro ao importar seguidas' + import_followers_from_a_csv_file: 'Importe seguidores a partir de um arquivo CSV', + follows_imported: 'Seguidores importados! O processamento pode demorar um pouco.', + follow_import_error: 'Erro ao importar seguidores' }, notifications: { notifications: 'Notificações', @@ -1023,7 +1024,7 @@ const pt = { registration: { registration: 'Registro', fullname: 'Nome para exibição', - email: 'Correio eletônico', + email: 'Correio eletrônico', bio: 'Biografia', password_confirm: 'Confirmação de senha' }, -- cgit v1.2.3-70-g09d2 From 0a62341135de7e4f3bc5688c014f3a8e7fdc8347 Mon Sep 17 00:00:00 2001 From: qwexvf Date: Tue, 20 Mar 2018 22:33:43 +0900 Subject: fix typeError in delete_button.js not a big thing just fixes a typeError. --- src/components/delete_button/delete_button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/components/delete_button/delete_button.js b/src/components/delete_button/delete_button.js index 77da1b87..f2920666 100644 --- a/src/components/delete_button/delete_button.js +++ b/src/components/delete_button/delete_button.js @@ -10,7 +10,7 @@ const DeleteButton = { }, computed: { currentUser () { return this.$store.state.users.currentUser }, - canDelete () { return this.currentUser.rights.delete_others_notice || this.status.user.id === this.currentUser.id } + canDelete () { return this.currentUser && this.currentUser.rights.delete_others_notice || this.status.user.id === this.currentUser.id } } } -- cgit v1.2.3-70-g09d2 From 362cde1c03b28d0e9181c67570902a1fa79c3e5b Mon Sep 17 00:00:00 2001 From: Exilat Date: Mon, 2 Apr 2018 09:27:04 +0000 Subject: Update messages.js Occitan language added + corrections in French --- src/i18n/messages.js | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 86 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/i18n/messages.js b/src/i18n/messages.js index a2ce3dff..57dc12d4 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -626,8 +626,8 @@ const fr = { twkn: 'Le réseau connu' }, user_card: { - follows_you: 'Vous suit!', - following: 'Suivi!', + follows_you: 'Vous suit !', + following: 'Suivi !', follow: 'Suivre', blocked: 'Bloqué', block: 'Bloquer', @@ -671,7 +671,7 @@ const fr = { }, notifications: { notifications: 'Notfications', - read: 'Lu!', + read: 'Lu !', followed_you: 'vous a suivi' }, login: { @@ -759,6 +759,89 @@ const it = { } } +const oc = { + nav: { + timeline: 'Jornal', + mentions: 'Notificacions', + public_tl: 'Estatuts locals', + twkn: 'Lo malhum conegut' + }, + user_card: { + follows_you: 'Vos sèc !', + following: 'Seguit !', + follow: 'Seguir', + blocked: 'Blocat', + block: 'Blocar', + statuses: 'Estatuts', + mute: 'En silenci', + muted: 'Mes en silenci', + followers: 'Seguidors', + followees: 'Abonaments', + per_day: 'per jorn' + }, + timeline: { + show_new: 'Ne veire mai', + error_fetching: 'Error en cercant de mesas a jorn', + up_to_date: 'Actualizat', + load_older: 'Ne veire mai', + conversation: 'Conversacion' + }, + settings: { + user_settings: 'Paramètres utilizaire', + name_bio: 'Nom & Bio', + name: 'Nom', + bio: 'Biografia', + avatar: 'Avatar', + current_avatar: 'Vòstre avatar', + set_new_avatar: 'Cambiar l’avatar', + profile_banner: 'Bandièra del perfil', + current_profile_banner: 'Bandièra del perfil', + set_new_profile_banner: 'Cambiar de bandièra', + profile_background: 'Imatge de fons', + set_new_profile_background: 'Cambiar l’imatge de fons', + settings: 'Paramètres', + theme: 'Tèma', + filtering: 'Filtre', + filtering_explanation: 'Totes los estatuts amb aqueles mots seràn en silenci, un mot per linha.', + attachments: 'Pèças juntas', + hide_attachments_in_tl: 'Rescondre las pèças juntas', + hide_attachments_in_convo: 'Rescondre las pèças juntas dins las conversacions', + nsfw_clickthrough: 'Activar lo clic per mostrar los imatges marcats coma pels adults o sensibles', + autoload: 'Activar lo cargament automatic un còp arribat al cap de la pagina', + reply_link_preview: 'Activar l’apercebut en passar la mirga' + }, + notifications: { + notifications: 'Notficacions', + read: 'Legit !', + followed_you: 'vos a seguit' + }, + login: { + login: 'Connexion', + username: 'Nom d’utilizaire', + password: 'Senhal', + register: 'Se marcar', + logout: 'Desconnexion' + }, + registration: { + registration: 'Inscripcion', + fullname: 'Nom complèt', + email: 'Adreça de corrièl', + bio: 'Biografia', + password_confirm: 'Confirmar lo senhal' + }, + post_status: { + posting: 'Mandadís', + default: 'Escrivètz aquí vòstre estatut.' + }, + finder: { + find_user: 'Cercar un utilizaire', + error_fetching_user: 'Error pendent la recèrca d’un utilizaire' + }, + general: { + submit: 'Mandar' + } +} + const pl = { nav: { timeline: 'Oś czasu', -- cgit v1.2.3-70-g09d2 From 83dbb81acdd4dca469c3332afbe6a1c9ce1c47cc Mon Sep 17 00:00:00 2001 From: Exilat Date: Mon, 2 Apr 2018 18:46:56 +0000 Subject: Update messages.js --- src/i18n/messages.js | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/i18n/messages.js b/src/i18n/messages.js index 57dc12d4..d68372eb 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -760,8 +760,12 @@ const it = { } const oc = { + chat: { + title: 'Chat' + }, nav: { - timeline: 'Jornal', + chat: 'Chat local', + timeline: 'Flux d’actualitat', mentions: 'Notificacions', public_tl: 'Estatuts locals', twkn: 'Lo malhum conegut' @@ -777,7 +781,8 @@ const oc = { muted: 'Mes en silenci', followers: 'Seguidors', followees: 'Abonaments', - per_day: 'per jorn' + per_day: 'per jorn', + remote_follow: 'Seguir a distància' }, timeline: { show_new: 'Ne veire mai', @@ -792,15 +797,21 @@ const oc = { name: 'Nom', bio: 'Biografia', avatar: 'Avatar', - current_avatar: 'Vòstre avatar', + current_avatar: 'Vòstre avatar actual', set_new_avatar: 'Cambiar l’avatar', profile_banner: 'Bandièra del perfil', - current_profile_banner: 'Bandièra del perfil', + current_profile_banner: 'Bandièra actula del perfil', set_new_profile_banner: 'Cambiar de bandièra', profile_background: 'Imatge de fons', set_new_profile_background: 'Cambiar l’imatge de fons', settings: 'Paramètres', theme: 'Tèma', + presets: 'Pre-enregistrats', + theme_help: 'Use hex color codes (#aabbcc) to customize your color theme.', + background: 'Rèire plan', + foreground: 'Endavant', + text: 'Tèxte', + links: 'Ligams', filtering: 'Filtre', filtering_explanation: 'Totes los estatuts amb aqueles mots seràn en silenci, un mot per linha.', attachments: 'Pèças juntas', @@ -808,7 +819,12 @@ const oc = { hide_attachments_in_convo: 'Rescondre las pèças juntas dins las conversacions', nsfw_clickthrough: 'Activar lo clic per mostrar los imatges marcats coma pels adults o sensibles', autoload: 'Activar lo cargament automatic un còp arribat al cap de la pagina', - reply_link_preview: 'Activar l’apercebut en passar la mirga' + streaming: 'Activar lo cargament automatic dels novèls estatus en anar amont', + reply_link_preview: 'Activar l’apercebut en passar la mirga', + follow_import: 'Importar los abonaments', + import_followers_from_a_csv_file: 'Importar los seguidors d’un fichièr csv', + follows_imported: 'Seguidors importats. Lo tractament pòt trigar una estona.', + follow_import_error: 'Error en important los seguidors' }, notifications: { notifications: 'Notficacions', @@ -838,7 +854,11 @@ const oc = { error_fetching_user: 'Error pendent la recèrca d’un utilizaire' }, general: { - submit: 'Mandar' + submit: 'Mandar', + apply: 'Aplicar' + }, + user_profile: { + timeline_title: 'Flux a l’utilizaire' } } -- cgit v1.2.3-70-g09d2 From 146538c126e388f60b874937fa29483551f0f651 Mon Sep 17 00:00:00 2001 From: Exilat Date: Mon, 2 Apr 2018 18:48:01 +0000 Subject: Update messages.js --- src/i18n/messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/i18n/messages.js b/src/i18n/messages.js index d68372eb..9ebc4a50 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -800,7 +800,7 @@ const oc = { current_avatar: 'Vòstre avatar actual', set_new_avatar: 'Cambiar l’avatar', profile_banner: 'Bandièra del perfil', - current_profile_banner: 'Bandièra actula del perfil', + current_profile_banner: 'Bandièra actuala del perfil', set_new_profile_banner: 'Cambiar de bandièra', profile_background: 'Imatge de fons', set_new_profile_background: 'Cambiar l’imatge de fons', -- cgit v1.2.3-70-g09d2 From 8cb95be4df381b7e926e5d67d9b84d0ff8607634 Mon Sep 17 00:00:00 2001 From: Exilat Date: Mon, 2 Apr 2018 19:21:39 +0000 Subject: Update messages.js --- src/i18n/messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/i18n/messages.js b/src/i18n/messages.js index 9ebc4a50..38ec87f6 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -807,7 +807,7 @@ const oc = { settings: 'Paramètres', theme: 'Tèma', presets: 'Pre-enregistrats', - theme_help: 'Use hex color codes (#aabbcc) to customize your color theme.', + theme_help: 'Emplegatz los còdis de color hex (#aabbcc) per personalizar vòstre tèma de color.', background: 'Rèire plan', foreground: 'Endavant', text: 'Tèxte', -- cgit v1.2.3-70-g09d2 From f62646c2f0f455705759ed46b3e7dec713133e1b Mon Sep 17 00:00:00 2001 From: Exilat Date: Tue, 3 Apr 2018 16:05:32 +0000 Subject: Update messages.js --- src/i18n/messages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/i18n/messages.js b/src/i18n/messages.js index 38ec87f6..a85dd0aa 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -760,7 +760,7 @@ const it = { } const oc = { - chat: { + chat: { title: 'Chat' }, nav: { @@ -857,7 +857,7 @@ const oc = { submit: 'Mandar', apply: 'Aplicar' }, - user_profile: { + user_profile: { timeline_title: 'Flux a l’utilizaire' } } -- cgit v1.2.3-70-g09d2 From 845bdb3dfb768741b78d2a638e66d05feaa039bd Mon Sep 17 00:00:00 2001 From: Exilat Date: Tue, 3 Apr 2018 16:06:28 +0000 Subject: Update messages.js --- src/i18n/messages.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/i18n/messages.js b/src/i18n/messages.js index a85dd0aa..6867d256 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -1257,6 +1257,7 @@ const messages = { ja, fr, it, + oc, pl, es, pt, -- cgit v1.2.3-70-g09d2 From c72cc431ec53995e526e062645bd5361c373311d Mon Sep 17 00:00:00 2001 From: Hakaba Hitoyo Date: Wed, 4 Apr 2018 05:45:01 +0000 Subject: Add link to original (remote) user profile page --- src/components/user_card_content/user_card_content.vue | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 71a879df..415c9a2d 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -5,6 +5,9 @@ + + +
    -- cgit v1.2.3-70-g09d2 From 02bfea4af3c897d9cb5149b73a758b806d556999 Mon Sep 17 00:00:00 2001 From: hakabahitoyo Date: Wed, 4 Apr 2018 15:04:44 +0900 Subject: Change color --- src/components/user_card_content/user_card_content.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 415c9a2d..549769b6 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -6,7 +6,7 @@ - +
    -- cgit v1.2.3-70-g09d2 From 986dbab3d267541449cd9ba684c632d9fe67ced7 Mon Sep 17 00:00:00 2001 From: Azurolu Date: Sat, 7 Apr 2018 03:28:23 +0000 Subject: Update messages.js: Added "streaming" french translation and corrected typo. --- src/i18n/messages.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/i18n/messages.js b/src/i18n/messages.js index df923be4..d5f3674a 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -631,8 +631,8 @@ const fr = { twkn: 'Le réseau connu' }, user_card: { - follows_you: 'Vous suit !', - following: 'Suivi !', + follows_you: 'Vous suit !', + following: 'Suivi !', follow: 'Suivre', blocked: 'Bloqué', block: 'Bloquer', @@ -672,11 +672,12 @@ const fr = { hide_attachments_in_convo: 'Cacher les pièces jointes dans les conversations', nsfw_clickthrough: 'Activer le clic pour afficher les images marquées comme contenu adulte ou sensible', autoload: 'Activer le chargement automatique une fois le bas de la page atteint', + streaming: 'Activer le chargement automatique de nouveau statuts une fois le haut de la page atteint', reply_link_preview: 'Activer un aperçu sur passage de la souris' }, notifications: { - notifications: 'Notfications', - read: 'Lu !', + notifications: 'Notifications', + read: 'Lu !', followed_you: 'vous a suivi' }, login: { -- cgit v1.2.3-70-g09d2 From aa0564406a95824cc45c815571292716b65806a1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 31 Mar 2018 21:14:36 +0300 Subject: getting rid of baseXX, some small fixes. Seems to be usable. --- src/App.scss | 79 ++++- src/App.vue | 8 +- src/_variables.scss | 7 +- src/components/attachment/attachment.vue | 200 +++++++------ src/components/chat_panel/chat_panel.vue | 4 +- src/components/conversation/conversation.vue | 2 +- src/components/delete_button/delete_button.vue | 5 +- src/components/favorite_button/favorite_button.vue | 6 +- .../instance_specific_panel.vue | 2 +- src/components/login_form/login_form.vue | 62 ++-- src/components/media_upload/media_upload.vue | 4 +- src/components/nav_panel/nav_panel.vue | 81 +++--- src/components/notifications/notifications.js | 2 +- src/components/notifications/notifications.scss | 27 +- src/components/notifications/notifications.vue | 8 +- .../post_status_form/post_status_form.vue | 295 +++++++++---------- src/components/registration/registration.vue | 104 ++++--- src/components/retweet_button/retweet_button.vue | 10 +- src/components/settings/settings.vue | 4 +- src/components/status/status.js | 5 - src/components/status/status.vue | 319 +++++++++++---------- src/components/style_switcher/style_switcher.js | 8 +- src/components/style_switcher/style_switcher.vue | 14 +- src/components/timeline/timeline.vue | 28 +- src/components/user_card/user_card.vue | 34 +-- .../user_card_content/user_card_content.js | 4 +- .../user_card_content/user_card_content.vue | 28 +- src/components/user_finder/user_finder.vue | 8 +- src/components/user_panel/user_panel.vue | 10 +- src/components/user_profile/user_profile.vue | 5 +- src/components/user_settings/user_settings.vue | 36 +-- src/services/style_setter/style_setter.js | 48 ++-- 32 files changed, 791 insertions(+), 666 deletions(-) (limited to 'src') diff --git a/src/App.scss b/src/App.scss index 95a653ce..6e0378db 100644 --- a/src/App.scss +++ b/src/App.scss @@ -33,14 +33,18 @@ body { font-family: sans-serif; font-size: 14px; margin: 0; + color: var(--fg); } a { text-decoration: none; + color: var(--link); } button{ user-select: none; + color: var(--faint); + background-color: var(--btn); border: none; border-radius: 5px; cursor: pointer; @@ -50,6 +54,8 @@ button{ font-size: 14px; font-family: sans-serif; + + &:hover { box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.3); } @@ -58,8 +64,72 @@ button{ cursor: not-allowed; opacity: 0.5; } + + &.pressed { + color: var(--faint); + background-color: var(--bg) + } +} + + +input, textarea, select { + border: none; + border-radius: 5px; + border-bottom: 1px solid rgba(255, 255, 255, 0.2); + border-top: 1px solid rgba(0, 0, 0, 0.2); + box-shadow: 0px 0px 2px black inset; + background-color: var(--lightBg); + color: var(--lightFg); + font-family: sans-serif; + font-size: 14px; + padding: 5px; + + // TODO: Restyle