aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-05-30 17:17:39 -0700
committerBastien Wirtz <bastien.wirtz@gmail.com>2020-05-30 19:36:35 -0700
commit2301d8919c28eb888ea1eb968d03376b2219a27d (patch)
treea07d421848a33732844f0004d9d91e8c15c9b019
parent1875c17aa5142d90fc03498875e195f2085d9640 (diff)
downloadhomer-2301d8919c28eb888ea1eb968d03376b2219a27d.tar.gz
homer-2301d8919c28eb888ea1eb968d03376b2219a27d.tar.zst
homer-2301d8919c28eb888ea1eb968d03376b2219a27d.zip
Adding PWA icons for proper pwa support
-rw-r--r--.github/workflows/main.yml38
-rw-r--r--README.md2
-rw-r--r--public/assets/icons/android-chrome-192x192.pngbin0 -> 12693 bytes
-rw-r--r--public/assets/icons/android-chrome-512x512.pngbin0 -> 16035 bytes
-rw-r--r--public/assets/icons/android-chrome-maskable-192x192.pngbin0 -> 12693 bytes
-rw-r--r--public/assets/icons/android-chrome-maskable-512x512.pngbin0 -> 16035 bytes
-rw-r--r--public/assets/icons/apple-touch-icon-120x120.pngbin0 -> 6884 bytes
-rw-r--r--public/assets/icons/apple-touch-icon-152x152.pngbin0 -> 9612 bytes
-rw-r--r--public/assets/icons/apple-touch-icon-180x180.pngbin0 -> 11718 bytes
-rw-r--r--public/assets/icons/apple-touch-icon-60x60.pngbin0 -> 3113 bytes
-rw-r--r--public/assets/icons/apple-touch-icon-76x76.pngbin0 -> 4154 bytes
-rw-r--r--public/assets/icons/apple-touch-icon.pngbin0 -> 11718 bytes
-rw-r--r--public/assets/icons/favicon-16x16.pngbin0 -> 425 bytes
-rw-r--r--public/assets/icons/favicon-32x32.pngbin0 -> 1069 bytes
-rw-r--r--public/assets/icons/msapplication-icon-144x144.pngbin0 -> 9041 bytes
-rw-r--r--public/assets/icons/mstile-150x150.pngbin0 -> 9378 bytes
-rw-r--r--public/assets/icons/safari-pinned-tab.svg3
-rw-r--r--public/assets/manifest.json79
-rw-r--r--src/App.vue2
-rw-r--r--vue.config.js3
20 files changed, 124 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..792fe59
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,38 @@
1# Publish pre-build release
2name: Upload Release Asset
3
4on:
5 push:
6 branches: [master]
7
8jobs:
9 build:
10 name: Upload Release Asset
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v2
14 - name: Build project
15 run: |
16 yarn install
17 yarn build
18 zip --junk-paths homer dist/*
19 - name: Create Release
20 id: create_release
21 uses: actions/create-release@v1
22 env:
23 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 with:
25 tag_name: ${{ github.run_id }}
26 release_name: Release ${{ github.run_id }}
27 draft: false
28 prerelease: false
29 - name: Upload Release Asset
30 id: upload-release-asset
31 uses: actions/upload-release-asset@v1
32 env:
33 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 with:
35 upload_url: ${{ steps.create_release.outputs.upload_url }}
36 asset_path: ./homer.zip
37 asset_name: homer.zip
38 asset_content_type: application/zip
diff --git a/README.md b/README.md
index 763e1e6..28a2046 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@ If you need authentication support, you're on your own (it can be secured using
28### Using docker 28### Using docker
29 29
30```sh 30```sh
31sudo docker run -p 8080:8080 -v /your/local/config.yml:/www/config.yml -v /your/local/assets/:/www/assets b4bz/homer:latest 31docker run -p 8080:8080 -v /your/local/config.yml:/www/config.yml -v /your/local/assets/:/www/assets b4bz/homer:latest
32``` 32```
33 33
34### Manually 34### Manually
diff --git a/public/assets/icons/android-chrome-192x192.png b/public/assets/icons/android-chrome-192x192.png
new file mode 100644
index 0000000..f3d4cf4
--- /dev/null
+++ b/public/assets/icons/android-chrome-192x192.png
Binary files differ
diff --git a/public/assets/icons/android-chrome-512x512.png b/public/assets/icons/android-chrome-512x512.png
new file mode 100644
index 0000000..1218c4f
--- /dev/null
+++ b/public/assets/icons/android-chrome-512x512.png
Binary files differ
diff --git a/public/assets/icons/android-chrome-maskable-192x192.png b/public/assets/icons/android-chrome-maskable-192x192.png
new file mode 100644
index 0000000..f3d4cf4
--- /dev/null
+++ b/public/assets/icons/android-chrome-maskable-192x192.png
Binary files differ
diff --git a/public/assets/icons/android-chrome-maskable-512x512.png b/public/assets/icons/android-chrome-maskable-512x512.png
new file mode 100644
index 0000000..1218c4f
--- /dev/null
+++ b/public/assets/icons/android-chrome-maskable-512x512.png
Binary files differ
diff --git a/public/assets/icons/apple-touch-icon-120x120.png b/public/assets/icons/apple-touch-icon-120x120.png
new file mode 100644
index 0000000..7cf6fc6
--- /dev/null
+++ b/public/assets/icons/apple-touch-icon-120x120.png
Binary files differ
diff --git a/public/assets/icons/apple-touch-icon-152x152.png b/public/assets/icons/apple-touch-icon-152x152.png
new file mode 100644
index 0000000..264a739
--- /dev/null
+++ b/public/assets/icons/apple-touch-icon-152x152.png
Binary files differ
diff --git a/public/assets/icons/apple-touch-icon-180x180.png b/public/assets/icons/apple-touch-icon-180x180.png
new file mode 100644
index 0000000..98b4b2a
--- /dev/null
+++ b/public/assets/icons/apple-touch-icon-180x180.png
Binary files differ
diff --git a/public/assets/icons/apple-touch-icon-60x60.png b/public/assets/icons/apple-touch-icon-60x60.png
new file mode 100644
index 0000000..4564921
--- /dev/null
+++ b/public/assets/icons/apple-touch-icon-60x60.png
Binary files differ
diff --git a/public/assets/icons/apple-touch-icon-76x76.png b/public/assets/icons/apple-touch-icon-76x76.png
new file mode 100644
index 0000000..dd8c536
--- /dev/null
+++ b/public/assets/icons/apple-touch-icon-76x76.png
Binary files differ
diff --git a/public/assets/icons/apple-touch-icon.png b/public/assets/icons/apple-touch-icon.png
new file mode 100644
index 0000000..98b4b2a
--- /dev/null
+++ b/public/assets/icons/apple-touch-icon.png
Binary files differ
diff --git a/public/assets/icons/favicon-16x16.png b/public/assets/icons/favicon-16x16.png
new file mode 100644
index 0000000..1b14058
--- /dev/null
+++ b/public/assets/icons/favicon-16x16.png
Binary files differ
diff --git a/public/assets/icons/favicon-32x32.png b/public/assets/icons/favicon-32x32.png
new file mode 100644
index 0000000..0c8efc9
--- /dev/null
+++ b/public/assets/icons/favicon-32x32.png
Binary files differ
diff --git a/public/assets/icons/msapplication-icon-144x144.png b/public/assets/icons/msapplication-icon-144x144.png
new file mode 100644
index 0000000..96889ff
--- /dev/null
+++ b/public/assets/icons/msapplication-icon-144x144.png
Binary files differ
diff --git a/public/assets/icons/mstile-150x150.png b/public/assets/icons/mstile-150x150.png
new file mode 100644
index 0000000..337f1e6
--- /dev/null
+++ b/public/assets/icons/mstile-150x150.png
Binary files differ
diff --git a/public/assets/icons/safari-pinned-tab.svg b/public/assets/icons/safari-pinned-tab.svg
new file mode 100644
index 0000000..ccf5e55
--- /dev/null
+++ b/public/assets/icons/safari-pinned-tab.svg
@@ -0,0 +1,3 @@
1<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512" version="1.1">
2 <path d="M 234 45.125 C 205.687 47.986, 173.877 58.506, 148.747 73.320 C 126.349 86.523, 102.089 108.205, 86.730 128.747 C 29.855 204.817, 29.851 307.105, 86.722 383.253 C 96.590 396.465, 115.594 415.392, 129.265 425.621 C 156.351 445.888, 186.971 458.997, 221.500 465.108 C 240.243 468.426, 271.757 468.426, 290.500 465.108 C 335.678 457.112, 373.822 437.369, 405.533 405.567 C 437.561 373.448, 457.110 335.690, 465.108 290.500 C 467.035 279.614, 467.409 274.004, 467.409 256 C 467.409 237.996, 467.035 232.386, 465.108 221.500 C 457.117 176.350, 437.513 138.460, 405.559 106.402 C 360.303 61, 297.804 38.677, 234 45.125 M 236 69.103 C 171.073 76.402, 114.777 116.345, 86.520 175.161 C 61.996 226.206, 61.996 285.794, 86.520 336.839 C 105.251 375.826, 136.655 407.141, 175.576 425.642 C 246.419 459.316, 329.484 445.672, 386.366 391.019 C 461.142 319.174, 463.217 200.777, 391.019 125.634 C 351.148 84.137, 292.501 62.750, 236 69.103 M 160.321 185.613 C 157.017 187.243, 154 192.200, 154 196 C 154 199.905, 157.036 204.789, 160.478 206.423 C 163.431 207.824, 174.110 208, 256 208 C 358.213 208, 353.195 208.324, 356.423 201.522 C 358.413 197.328, 358.413 194.672, 356.423 190.478 C 353.194 183.674, 358.236 183.998, 255.849 184.023 C 174.036 184.043, 163.137 184.224, 160.321 185.613 M 160.321 245.613 C 157.017 247.243, 154 252.200, 154 256 C 154 259.905, 157.036 264.789, 160.478 266.423 C 163.431 267.824, 174.110 268, 256 268 C 358.213 268, 353.195 268.324, 356.423 261.522 C 358.413 257.328, 358.413 254.672, 356.423 250.478 C 353.194 243.674, 358.236 243.998, 255.849 244.023 C 174.036 244.043, 163.137 244.224, 160.321 245.613 M 160.321 305.613 C 157.017 307.243, 154 312.200, 154 316 C 154 319.905, 157.036 324.789, 160.478 326.423 C 163.431 327.824, 174.110 328, 256 328 C 358.213 328, 353.195 328.324, 356.423 321.522 C 358.413 317.328, 358.413 314.672, 356.423 310.478 C 353.194 303.674, 358.236 303.998, 255.849 304.023 C 174.036 304.043, 163.137 304.224, 160.321 305.613" stroke="none" fill="black" fill-rule="evenodd"/>
3</svg> \ No newline at end of file
diff --git a/public/assets/manifest.json b/public/assets/manifest.json
new file mode 100644
index 0000000..c7a3329
--- /dev/null
+++ b/public/assets/manifest.json
@@ -0,0 +1,79 @@
1{
2 "name": "Dashboard",
3 "short_name": "homer",
4 "theme_color": "#3367D6",
5 "icons": [
6 {
7 "src": "./assets/icons/android-chrome-192x192.png",
8 "sizes": "192x192",
9 "type": "image/png"
10 },
11 {
12 "src": "./assets/icons/android-chrome-512x512.png",
13 "sizes": "512x512",
14 "type": "image/png"
15 },
16 {
17 "src": "./assets/icons/android-chrome-maskable-192x192.png",
18 "sizes": "192x192",
19 "type": "image/png",
20 "purpose": "maskable"
21 },
22 {
23 "src": "./assets/icons/android-chrome-maskable-512x512.png",
24 "sizes": "512x512",
25 "type": "image/png",
26 "purpose": "maskable"
27 },
28 {
29 "src": "./assets/icons/apple-touch-icon-60x60.png",
30 "sizes": "60x60",
31 "type": "image/png"
32 },
33 {
34 "src": "./assets/icons/apple-touch-icon-76x76.png",
35 "sizes": "76x76",
36 "type": "image/png"
37 },
38 {
39 "src": "./assets/icons/apple-touch-icon-120x120.png",
40 "sizes": "120x120",
41 "type": "image/png"
42 },
43 {
44 "src": "./assets/icons/apple-touch-icon-152x152.png",
45 "sizes": "152x152",
46 "type": "image/png"
47 },
48 {
49 "src": "./assets/icons/apple-touch-icon-180x180.png",
50 "sizes": "180x180",
51 "type": "image/png"
52 },
53 {
54 "src": "./assets/icons/apple-touch-icon.png",
55 "sizes": "180x180",
56 "type": "image/png"
57 },
58 {
59 "src": "./assets/icons/favicon-16x16.png",
60 "sizes": "16x16",
61 "type": "image/png"
62 },
63 {
64 "src": "./assets/icons/favicon-32x32.png",
65 "sizes": "32x32",
66 "type": "image/png"
67 },
68 {
69 "src": "./assets/icons/msapplication-icon-144x144.png",
70 "sizes": "144x144",
71 "type": "image/png"
72 },
73 {
74 "src": "./assets/icons/mstile-150x150.png",
75 "sizes": "150x150",
76 "type": "image/png"
77 }
78 ]
79}
diff --git a/src/App.vue b/src/App.vue
index be16234..8185da2 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -151,8 +151,6 @@ export default {
151 let config = await this.getConfig(); 151 let config = await this.getConfig();
152 152
153 this.config = merge(defaults, config); 153 this.config = merge(defaults, config);
154
155 console.log(this.config);
156 this.services = this.config.services; 154 this.services = this.config.services;
157 document.title = `${this.config.title} | ${this.config.subtitle}`; 155 document.title = `${this.config.title} | ${this.config.subtitle}`;
158 } catch (error) { 156 } catch (error) {
diff --git a/vue.config.js b/vue.config.js
index 06a1146..3b104f7 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -7,4 +7,7 @@ module.exports = {
7 .loader("raw-loader") 7 .loader("raw-loader")
8 .end(); 8 .end();
9 }, 9 },
10 pwa: {
11 manifestPath: "assets/manifest.json"
12 }
10}; 13};