From 81fe3c67c5d70e69aa2d965a41afd7331cd4fb76 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 2 Jun 2020 17:53:32 +0200 Subject: [PATCH] fix duplicate id in svg, empty alt in base email --- .../about-peertube.component.html | 4 +- client/src/app/app.component.ts | 15 +- ...stance-config-warning-modal.component.html | 6 +- client/src/assets/images/global/add.svg | 17 +- client/src/assets/images/global/alert.svg | 17 +- .../src/assets/images/global/circle-tick.svg | 15 +- client/src/assets/images/global/clock.svg | 19 +- .../assets/images/global/cloud-download.svg | 17 +- .../src/assets/images/global/cloud-error.svg | 15 +- client/src/assets/images/global/cog.svg | 11 +- client/src/assets/images/global/cross.svg | 14 +- client/src/assets/images/global/delete.svg | 19 +- client/src/assets/images/global/download.svg | 16 +- client/src/assets/images/global/edit.svg | 15 +- .../assets/images/global/exit-fullscreen.svg | 17 +- client/src/assets/images/global/folder.svg | 15 +- .../src/assets/images/global/fullscreen.svg | 18 +- client/src/assets/images/global/help.svg | 15 +- client/src/assets/images/global/history.svg | 17 +- .../src/assets/images/global/im-with-her.svg | 15 +- .../src/assets/images/global/inbox-full.svg | 23 +- .../assets/images/global/more-horizontal.svg | 11 +- .../assets/images/global/more-vertical.svg | 13 +- client/src/assets/images/global/no.svg | 15 +- client/src/assets/images/global/npm.svg | 2 +- client/src/assets/images/global/play.svg | 11 +- client/src/assets/images/global/playlists.svg | 11 +- client/src/assets/images/global/refresh.svg | 12 +- client/src/assets/images/global/repeat.svg | 19 +- client/src/assets/images/global/search.svg | 16 +- client/src/assets/images/global/server.svg | 24 +- client/src/assets/images/global/sign-out.svg | 5 +- client/src/assets/images/global/sparkle.svg | 15 +- .../src/assets/images/global/syndication.svg | 58 +-- client/src/assets/images/global/tick.svg | 12 +- client/src/assets/images/global/undo.svg | 11 +- client/src/assets/images/global/user-add.svg | 17 +- client/src/assets/images/global/user.svg | 15 +- client/src/assets/images/global/users.svg | 15 +- client/src/assets/images/global/validate.svg | 17 +- .../src/assets/images/global/video-lang.svg | 18 +- client/src/assets/images/global/videos.svg | 21 +- client/src/assets/images/header/menu.svg | 18 +- client/src/assets/images/header/search.svg | 17 +- client/src/assets/images/logo.svg | 123 +----- client/src/assets/images/mascot/arguing.svg | 383 ++---------------- client/src/assets/images/mascot/default.svg | 324 ++------------- client/src/assets/images/mascot/defeated.svg | 354 ++-------------- client/src/assets/images/mascot/happy.svg | 372 ++--------------- client/src/assets/images/mascot/oh.svg | 310 ++------------ client/src/assets/images/mascot/pointing.svg | 334 ++------------- client/src/assets/images/menu/eye-closed.svg | 20 +- client/src/assets/images/menu/eye.svg | 21 +- client/src/assets/images/menu/globe.svg | 19 +- client/src/assets/images/menu/go.svg | 17 +- client/src/assets/images/menu/home.svg | 16 +- client/src/assets/images/menu/language.svg | 17 +- client/src/assets/images/menu/p2p.svg | 14 +- .../src/assets/images/menu/recently-added.svg | 18 +- .../src/assets/images/menu/subscriptions.svg | 40 +- client/src/assets/images/menu/trending.svg | 18 +- client/src/assets/images/search/filter.svg | 26 +- client/src/assets/images/video/dislike.svg | 17 +- client/src/assets/images/video/like.svg | 15 +- .../src/assets/images/video/playlist-add.svg | 13 +- client/src/assets/images/video/share.svg | 16 +- client/src/assets/images/video/upload.svg | 17 +- .../src/assets/player/images/fullscreen.svg | 19 +- client/src/sass/include/_mixins.scss | 22 +- client/yarn.lock | 2 +- server/lib/emails/common/base.pug | 2 +- 71 files changed, 603 insertions(+), 2639 deletions(-) diff --git a/client/src/app/+about/about-peertube/about-peertube.component.html b/client/src/app/+about/about-peertube/about-peertube.component.html index e5a8b2097..1dbad3096 100644 --- a/client/src/app/+about/about-peertube/about-peertube.component.html +++ b/client/src/app/+about/about-peertube/about-peertube.component.html @@ -3,11 +3,11 @@ What is PeerTube? - mascot + mascot

- PeerTube is a self hosted federated (ActivityPub) video streaming platform using P2P directly in the web browser. + PeerTube is a self-hosted ActivityPub-federated video streaming platform using P2P directly in your web browser.

diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index aba91aad2..c77dc97de 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, ViewChild, AfterViewInit, Inject } from '@angular/core' +import { Component, OnInit, ViewChild, AfterViewInit, Inject, LOCALE_ID } from '@angular/core' import { DomSanitizer, SafeHtml } from '@angular/platform-browser' import { Event, GuardsCheckStart, NavigationEnd, Router, Scroll } from '@angular/router' import { AuthService, RedirectService, ServerService, ThemeService } from '@app/core' @@ -43,6 +43,7 @@ export class AppComponent implements OnInit, AfterViewInit { constructor ( @Inject(DOCUMENT) private document: Document, + @Inject(LOCALE_ID) private localeId: string, private i18n: I18n, private viewportScroller: ViewportScroller, private router: Router, @@ -97,6 +98,8 @@ export class AppComponent implements OnInit, AfterViewInit { this.location.onPopState(() => this.modalService.dismissAll(POP_STATE_MODAL_DISMISS)) this.openModalsIfNeeded() + + this.document.documentElement.lang = getShortLocale(this.localeId) } ngAfterViewInit () { @@ -171,16 +174,6 @@ export class AppComponent implements OnInit, AfterViewInit { filter(pathname => !pathname || pathname === '/' || is18nPath(pathname)) ).subscribe(() => this.redirectService.redirectToHomepage(true)) - navigationEndEvent.pipe( - map(() => window.location.pathname), - ).subscribe(pathname => { - if (is18nPath(pathname)) { - this.document.documentElement.lang = getShortLocale(pathname.split('/')[1]) - } else { - this.document.documentElement.lang = 'en' - } - }) - navigationEndEvent.subscribe(e => { this.hooks.runAction('action:router.navigation-end', 'common', { path: e.url }) }) diff --git a/client/src/app/modal/instance-config-warning-modal.component.html b/client/src/app/modal/instance-config-warning-modal.component.html index 44c994bc8..5a8290cda 100644 --- a/client/src/app/modal/instance-config-warning-modal.component.html +++ b/client/src/app/modal/instance-config-warning-modal.component.html @@ -5,7 +5,7 @@