mirror of
				https://github.com/bastienwirtz/homer.git
				synced 2025-10-31 02:15:50 +01:00 
			
		
		
		
	Update paths and style
This commit is contained in:
		| @@ -5,35 +5,35 @@ | |||||||
|   "start_url": "../", |   "start_url": "../", | ||||||
|   "icons": [ |   "icons": [ | ||||||
|     { |     { | ||||||
|       "src": "../assets/icons/favicon-16x16.png", |       "src": "./icons/favicon-16x16.png", | ||||||
|       "sizes": "16x16", |       "sizes": "16x16", | ||||||
|       "type": "image/png" |       "type": "image/png" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "src": "../assets/icons/favicon-32x32.png", |       "src": "./icons/favicon-32x32.png", | ||||||
|       "sizes": "32x32", |       "sizes": "32x32", | ||||||
|       "type": "image/png" |       "type": "image/png" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "src": "../assets/icons/icon-any.png", |       "src": "./icons/icon-any.png", | ||||||
|       "sizes": "512x512", |       "sizes": "512x512", | ||||||
|       "type": "image/png", |       "type": "image/png", | ||||||
|       "purpose": "any" |       "purpose": "any" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "src": "../assets/icons/icon-any.svg", |       "src": "./icons/icon-any.svg", | ||||||
|       "sizes": "any", |       "sizes": "any", | ||||||
|       "type": "image/svg+xml", |       "type": "image/svg+xml", | ||||||
|       "purpose": "any" |       "purpose": "any" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "src": "../assets/icons/icon-maskable.png", |       "src": "./icons/icon-maskable.png", | ||||||
|       "sizes": "512x512", |       "sizes": "512x512", | ||||||
|       "type": "image/png", |       "type": "image/png", | ||||||
|       "purpose": "maskable" |       "purpose": "maskable" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "src": "../assets/icons/safari-pinned-tab.svg", |       "src": "./icons/safari-pinned-tab.svg", | ||||||
|       "sizes": "any", |       "sizes": "any", | ||||||
|       "type": "image/svg+xml", |       "type": "image/svg+xml", | ||||||
|       "purpose": "monochrome" |       "purpose": "monochrome" | ||||||
|   | |||||||
| @@ -161,7 +161,7 @@ export default { | |||||||
|     this.services = this.config.services; |     this.services = this.config.services; | ||||||
|     document.title = `${this.config.title} | ${this.config.subtitle}`; |     document.title = `${this.config.title} | ${this.config.subtitle}`; | ||||||
|     if (this.config.stylesheet) { |     if (this.config.stylesheet) { | ||||||
|       let stylesheet = ''; |       let stylesheet = ""; | ||||||
|       for (const file of this.config.stylesheet) { |       for (const file of this.config.stylesheet) { | ||||||
|         stylesheet += `@import "${file}";`; |         stylesheet += `@import "${file}";`; | ||||||
|       } |       } | ||||||
| @@ -242,8 +242,8 @@ export default { | |||||||
|         }, |         }, | ||||||
|       }; |       }; | ||||||
|     }, |     }, | ||||||
|     createStylesheet: function(css) { |     createStylesheet: function (css) { | ||||||
|       let style = document.createElement('style'); |       let style = document.createElement("style"); | ||||||
|       style.appendChild(document.createTextNode(css)); |       style.appendChild(document.createTextNode(css)); | ||||||
|       document.head.appendChild(style); |       document.head.appendChild(style); | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -1,65 +1,65 @@ | |||||||
| module.exports = { | module.exports = { | ||||||
|   chainWebpack: (config) => { |   chainWebpack: (config) => { | ||||||
|     config.module |     config.module | ||||||
|       .rule('yaml') |       .rule("yaml") | ||||||
|       .test(/\.ya?ml$/) |       .test(/\.ya?ml$/) | ||||||
|       .use('raw-loader') |       .use("raw-loader") | ||||||
|       .loader('raw-loader') |       .loader("raw-loader") | ||||||
|       .end(); |       .end(); | ||||||
|   }, |   }, | ||||||
|   publicPath: '', |   publicPath: "", | ||||||
|   pwa: { |   pwa: { | ||||||
|     manifestPath: 'assets/manifest.json', |     manifestPath: "assets/manifest.json", | ||||||
|     manifestOptions: { |     manifestOptions: { | ||||||
|       start_url: '../', |       start_url: "../", | ||||||
|     }, |     }, | ||||||
|     appleMobileWebAppStatusBarStyle: 'black', |     appleMobileWebAppStatusBarStyle: "black", | ||||||
|     appleMobileWebAppCapable: 'yes', |     appleMobileWebAppCapable: "yes", | ||||||
|     name: 'Homer Dashboard', |     name: "Homer Dashboard", | ||||||
|     short_name: 'Homer', |     short_name: "Homer", | ||||||
|     theme_color: '#3367D6', |     theme_color: "#3367D6", | ||||||
|     icons: [ |     icons: [ | ||||||
|       { |       { | ||||||
|         src: '../assets/icons/favicon-16x16.png', |         src: "./icons/favicon-16x16.png", | ||||||
|         sizes: '16x16', |         sizes: "16x16", | ||||||
|         type: 'image/png', |         type: "image/png", | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         src: '../assets/icons/favicon-32x32.png', |         src: "./icons/favicon-32x32.png", | ||||||
|         sizes: '32x32', |         sizes: "32x32", | ||||||
|         type: 'image/png', |         type: "image/png", | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         src: '../assets/icons/icon-any.png', |         src: "./icons/icon-any.png", | ||||||
|         sizes: '512x512', |         sizes: "512x512", | ||||||
|         type: 'image/png', |         type: "image/png", | ||||||
|         purpose: 'any', |         purpose: "any", | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         src: '../assets/icons/icon-any.svg', |         src: "./icons/icon-any.svg", | ||||||
|         sizes: 'any', |         sizes: "any", | ||||||
|         type: 'image/svg+xml', |         type: "image/svg+xml", | ||||||
|         purpose: 'any', |         purpose: "any", | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         src: '../assets/icons/icon-maskable.png', |         src: "./icons/icon-maskable.png", | ||||||
|         sizes: '512x512', |         sizes: "512x512", | ||||||
|         type: 'image/png', |         type: "image/png", | ||||||
|         purpose: 'maskable', |         purpose: "maskable", | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         src: '../assets/icons/safari-pinned-tab.svg', |         src: "./icons/safari-pinned-tab.svg", | ||||||
|         sizes: 'any', |         sizes: "any", | ||||||
|         type: 'image/svg+xml', |         type: "image/svg+xml", | ||||||
|         purpose: 'monochrome', |         purpose: "monochrome", | ||||||
|       }, |       }, | ||||||
|     ], |     ], | ||||||
|     iconPaths: { |     iconPaths: { | ||||||
|       favicon32: 'assets/icons/favicon-32x32.png', |       favicon32: "assets/icons/favicon-32x32.png", | ||||||
|       favicon16: 'assets/icons/favicon-16x16.png', |       favicon16: "assets/icons/favicon-16x16.png", | ||||||
|       appleTouchIcon: 'assets/icons/icon-maskable.png', |       appleTouchIcon: "assets/icons/icon-maskable.png", | ||||||
|       maskIcon: 'assets/icons/safari-pinned-tab.svg', |       maskIcon: "assets/icons/safari-pinned-tab.svg", | ||||||
|       msTileImage: 'assets/icons/icon-any.png', |       msTileImage: "assets/icons/icon-any.png", | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user