diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-07-10 10:20:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 10:20:11 +0200 |
commit | caf2aaf4f9d38ad441a5562c3b8720f8779d6f78 (patch) | |
tree | 2a93cbfd2aee6089fd334f28dcb47c18a368a6fd /client | |
parent | 27647da17fe53ff24ed27ef8618bc244c0be6b26 (diff) | |
download | PeerTube-caf2aaf4f9d38ad441a5562c3b8720f8779d6f78.tar.gz PeerTube-caf2aaf4f9d38ad441a5562c3b8720f8779d6f78.tar.zst PeerTube-caf2aaf4f9d38ad441a5562c3b8720f8779d6f78.zip |
Add ability to override client assets : logo - favicon - PWA icons - PWA manifest name and description (#2897)
* Add client-overrides storage to config
* Add static-serve for client overrides
* Move backgroun-image logo from bundle to css tag for runtime content hash
* Add dynamic JSON manifest
* Add content hash for manifest, favicon and logo
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/app.component.scss | 2 | ||||
-rw-r--r-- | client/src/index.html | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index d121ebad2..38ec11b5b 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss | |||
@@ -62,7 +62,7 @@ | |||
62 | 62 | ||
63 | .icon.icon-logo { | 63 | .icon.icon-logo { |
64 | display: inline-block; | 64 | display: inline-block; |
65 | background: url('../assets/images/logo.svg') no-repeat; | 65 | background-repeat: no-repeat; |
66 | width: 23px; | 66 | width: 23px; |
67 | height: 24px; | 67 | height: 24px; |
68 | margin-right: .5rem; | 68 | margin-right: .5rem; |
diff --git a/client/src/index.html b/client/src/index.html index 52ae000bb..e5d1569aa 100644 --- a/client/src/index.html +++ b/client/src/index.html | |||
@@ -7,9 +7,16 @@ | |||
7 | <meta name="theme-color" content="#fff" /> | 7 | <meta name="theme-color" content="#fff" /> |
8 | <meta property="og:platform" content="PeerTube" /> | 8 | <meta property="og:platform" content="PeerTube" /> |
9 | <!-- Web Manifest file --> | 9 | <!-- Web Manifest file --> |
10 | <link rel="manifest" href="/manifest.webmanifest"> | 10 | <link rel="manifest" href="/manifest.webmanifest?[manifestContentHash]"> |
11 | 11 | ||
12 | <link rel="icon" type="image/png" href="/client/assets/images/favicon.png" /> | 12 | <link rel="icon" type="image/png" href="/client/assets/images/favicon.png?[faviconContentHash]" /> |
13 | |||
14 | <!-- logo background-image --> | ||
15 | <style type="text/css"> | ||
16 | .icon-logo { | ||
17 | background-image: url(/client/assets/images/logo.svg?[logoContentHash]); | ||
18 | } | ||
19 | </style> | ||
13 | 20 | ||
14 | <!-- base url --> | 21 | <!-- base url --> |
15 | <base href="/"> | 22 | <base href="/"> |