diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/chat_panel/chat_panel.js | 2 | ||||
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 3 | ||||
| -rw-r--r-- | src/components/timeline/timeline.js | 3 | ||||
| -rw-r--r-- | src/i18n/messages.js | 121 | ||||
| -rw-r--r-- | src/main.js | 8 | ||||
| -rw-r--r-- | src/modules/statuses.js | 4 |
6 files changed, 134 insertions, 7 deletions
diff --git a/src/components/chat_panel/chat_panel.js b/src/components/chat_panel/chat_panel.js index d528d0a1..d8736d17 100644 --- a/src/components/chat_panel/chat_panel.js +++ b/src/components/chat_panel/chat_panel.js @@ -3,7 +3,7 @@ const chatPanel = { return { currentMessage: '', channel: null, - collapsed: false + collapsed: true } }, computed: { diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 6c95873c..6bcf1c66 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -32,7 +32,8 @@ const PostStatusForm = { this.resize(this.$refs.textarea) }, data () { - let statusText = '' + const preset = this.$route.query.message + let statusText = preset || '' if (this.replyTo) { const currentUser = this.$store.state.users.currentUser diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 74ab85d3..f24626f9 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -105,7 +105,8 @@ const Timeline = { .then((friends) => this.$store.dispatch('addFriends', { friends })) }, scrollLoad (e) { - const height = Math.max(document.body.offsetHeight, document.body.scrollHeight) + const bodyBRect = document.body.getBoundingClientRect() + const height = Math.max(bodyBRect.height, -(bodyBRect.y)) if (this.timeline.loading === false && this.$store.state.config.autoLoad && this.$el.offsetHeight > 0 && diff --git a/src/i18n/messages.js b/src/i18n/messages.js index 7daa68a0..168548cf 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -1545,6 +1545,124 @@ const ru = { timeline_title: 'Лента пользователя' } } +const nb = { + chat: { + title: 'Chat' + }, + nav: { + chat: 'Lokal Chat', + timeline: 'Tidslinje', + mentions: 'Nevnt', + public_tl: 'Offentlig Tidslinje', + twkn: 'Det hele kjente nettverket' + }, + user_card: { + follows_you: 'Følger deg!', + following: 'Følger!', + follow: 'Følg', + blocked: 'Blokkert!', + block: 'Blokker', + statuses: 'Statuser', + mute: 'Demp', + muted: 'Dempet', + followers: 'Følgere', + followees: 'Følger', + per_day: 'per dag', + remote_follow: 'Følg eksternt' + }, + timeline: { + show_new: 'Vis nye', + error_fetching: 'Feil ved henting av oppdateringer', + up_to_date: 'Oppdatert', + load_older: 'Last eldre statuser', + conversation: 'Samtale', + collapse: 'Sammenfold', + repeated: 'gjentok' + }, + settings: { + user_settings: 'Brukerinstillinger', + name_bio: 'Navn & Biografi', + name: 'Navn', + bio: 'Biografi', + avatar: 'Profilbilde', + current_avatar: 'Ditt nåværende profilbilde', + set_new_avatar: 'Rediger profilbilde', + profile_banner: 'Profil-banner', + current_profile_banner: 'Din nåværende profil-banner', + set_new_profile_banner: 'Sett ny profil-banner', + profile_background: 'Profil-bakgrunn', + set_new_profile_background: 'Rediger profil-bakgrunn', + settings: 'Innstillinger', + theme: 'Tema', + presets: 'Forhåndsdefinerte fargekoder', + theme_help: 'Bruk heksadesimale fargekoder (#rrggbb) til å endre farge-temaet ditt.', + radii_help: 'Bestem hvor runde hjørnene i brukergrensesnittet skal være (i piksler)', + background: 'Bakgrunn', + foreground: 'Framgrunn', + text: 'Tekst', + links: 'Linker', + cBlue: 'Blå (Svar, følg)', + cRed: 'Rød (Avbryt)', + cOrange: 'Oransje (Lik)', + cGreen: 'Grønn (Gjenta)', + btnRadius: 'Knapper', + panelRadius: 'Panel', + avatarRadius: 'Profilbilde', + avatarAltRadius: 'Profilbilde (Varslinger)', + tooltipRadius: 'Verktøytips/advarsler', + attachmentRadius: 'Vedlegg', + filtering: 'Filtrering', + filtering_explanation: 'Alle statuser som inneholder disse ordene vil bli dempet, en kombinasjon av tegn per linje', + attachments: 'Vedlegg', + hide_attachments_in_tl: 'Gjem vedlegg på tidslinje', + hide_attachments_in_convo: 'Gjem vedlegg i samtaler', + nsfw_clickthrough: 'Krev trykk for å vise statuser som kan være upassende', + stop_gifs: 'Spill av GIFs når du holder over dem', + autoload: 'Automatisk lasting når du blar ned til bunnen', + streaming: 'Automatisk strømming av nye statuser når du har bladd til toppen', + reply_link_preview: 'Vis en forhåndsvisning når du holder musen over svar til en status', + follow_import: 'Importer følginger', + import_followers_from_a_csv_file: 'Importer følginger fra en csv fil', + follows_imported: 'Følginger imported! Det vil ta litt tid å behandle de.', + follow_import_error: 'Feil ved importering av følginger.' + }, + notifications: { + notifications: 'Varslinger', + read: 'Les!', + followed_you: 'fulgte deg', + favorited_you: 'likte din status', + repeated_you: 'Gjentok din status' + }, + login: { + login: 'Logg inn', + username: 'Brukernavn', + password: 'Passord', + register: 'Registrer', + logout: 'Logg ut' + }, + registration: { + registration: 'Registrering', + fullname: 'Visningsnavn', + email: 'Epost-adresse', + bio: 'Biografi', + password_confirm: 'Bekreft passord' + }, + post_status: { + posting: 'Publiserer', + default: 'Landet akkurat i L.A.' + }, + finder: { + find_user: 'Finn bruker', + error_fetching_user: 'Feil ved henting av bruker' + }, + general: { + submit: 'Legg ut', + apply: 'Bruk' + }, + user_profile: { + timeline_title: 'Bruker-tidslinje' + } +} const messages = { de, @@ -1561,7 +1679,8 @@ const messages = { pl, es, pt, - ru + ru, + nb } export default messages diff --git a/src/main.js b/src/main.js index 6f8c00f0..7ca34adf 100644 --- a/src/main.js +++ b/src/main.js @@ -98,7 +98,13 @@ window.fetch('/static/config.json') } const routes = [ - { name: 'root', path: '/', redirect: data['defaultPath'] || '/main/all' }, + { name: 'root', + path: '/', + redirect: to => { + var redirectRootLogin = data['redirectRootLogin'] + var redirectRootNoLogin = data['redirectRootNoLogin'] + return (store.state.users.currentUser ? redirectRootLogin : redirectRootNoLogin) || '/main/all' + }}, { path: '/main/all', component: PublicAndExternalTimeline }, { path: '/main/public', component: PublicTimeline }, { path: '/main/friends', component: FriendsTimeline }, diff --git a/src/modules/statuses.js b/src/modules/statuses.js index bd52f161..b493c212 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -45,7 +45,7 @@ export const prepareStatus = (status) => { if (status.nsfw === undefined) { status.nsfw = isNsfw(status) if (status.retweeted_status) { - status.retweeted_status.nsfw = status.nsfw + status.nsfw = status.retweeted_status.nsfw } } @@ -136,7 +136,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us if (result.new) { if (statusType(status) === 'retweet' && status.retweeted_status.user.id === user.id) { - addNotification({ type: 'repeat', status: status.retweeted_status, action: status }) + addNotification({ type: 'repeat', status: status, action: status }) } // We are mentioned in a post |
