mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Idea for #875
This commit is contained in:
parent
188b419910
commit
d65d77ef2f
3 changed files with 42 additions and 23 deletions
|
|
@ -79,6 +79,10 @@ export const
|
|||
* @returns {string}
|
||||
*/
|
||||
themePreviewLink = theme => {
|
||||
if (theme.endsWith('@nextcloud')) {
|
||||
theme = theme.slice(0, theme.length - 10).trim();
|
||||
return OC().webroot + '/themes/' + encodeURI(theme) + '/snappymail.png';
|
||||
}
|
||||
let path = 'webVersionPath';
|
||||
if (theme.endsWith('@custom')) {
|
||||
theme = theme.slice(0, theme.length - 7).trim();
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ export const
|
|||
|
||||
convertThemeName = theme => theme
|
||||
.replace(/@custom$/, '')
|
||||
.replace(/@nextcloud$/, '')
|
||||
.replace(/([A-Z])/g, ' $1')
|
||||
.replace(/[^a-zA-Z0-9]+/g, ' ')
|
||||
.trim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue