aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-10-13 22:23:31 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2022-10-13 22:23:31 +0200
commit81c90009b48f22d65bc8b59944b18c9503fc5676 (patch)
treea694bead62fddc38d9950347372641ffc8cede55
parent494529f0a95641d82ee64b8a2db89826de64edfd (diff)
downloadhomer-81c90009b48f22d65bc8b59944b18c9503fc5676.tar.gz
homer-81c90009b48f22d65bc8b59944b18c9503fc5676.tar.zst
homer-81c90009b48f22d65bc8b59944b18c9503fc5676.zip
Refine demo content
-rw-r--r--dummy-data/README.md2
-rw-r--r--dummy-data/proxmox/api2/json/nodes/node1/qemu35
-rw-r--r--dummy-data/proxmox/api2/json/nodes/node1/qemu/index.html1
-rw-r--r--dummy-data/proxmox/api2/json/nodes/node1/status (renamed from dummy-data/proxmox/api2/json/nodes/node1/status/index.html)0
-rw-r--r--public/assets/config-demo.yml.dist65
5 files changed, 77 insertions, 26 deletions
diff --git a/dummy-data/README.md b/dummy-data/README.md
index deed875..eeff4ec 100644
--- a/dummy-data/README.md
+++ b/dummy-data/README.md
@@ -11,5 +11,5 @@ The principle is simple: save a sample output of the API used in the service in
11Example: 11Example:
12``` 12```
13mkdir pihole 13mkdir pihole
14curl http://my-pihile.me/admin/api.php -o pihole/api.php # /admin is omited because for PiHole, the implementation expect it to be in the base url (`url` or `enpoint` property) 14curl http://my-pihole.me/admin/api.php -o pihole/api.php # /admin is omited because for PiHole, the implementation expect it to be in the base url (`url` or `enpoint` property)
15``` \ No newline at end of file 15``` \ No newline at end of file
diff --git a/dummy-data/proxmox/api2/json/nodes/node1/qemu b/dummy-data/proxmox/api2/json/nodes/node1/qemu
new file mode 100644
index 0000000..35e1d2f
--- /dev/null
+++ b/dummy-data/proxmox/api2/json/nodes/node1/qemu
@@ -0,0 +1,35 @@
1{
2 "data": [{
3 "disk": 0,
4 "mem": 983848043,
5 "cpus": 2,
6 "pid": 1218,
7 "maxdisk": 107374182400,
8 "netin": 43863882954,
9 "diskread": 0,
10 "diskwrite": 0,
11 "name": "HAOS",
12 "netout": 10426448652,
13 "cpu": 0.00879886290177172,
14 "uptime": 3390069,
15 "status": "running",
16 "maxmem": 3221225472,
17 "vmid": 100
18 }, {
19 "cpu": 0.00219971572544293,
20 "name": "debian1",
21 "netout": 919020028,
22 "vmid": 101,
23 "maxmem": 4294967296,
24 "uptime": 3390064,
25 "status": "running",
26 "maxdisk": 107374182400,
27 "pid": 1295,
28 "cpus": 2,
29 "disk": 0,
30 "mem": 2755160795,
31 "diskread": 0,
32 "diskwrite": 0,
33 "netin": 5105600872
34 }]
35} \ No newline at end of file
diff --git a/dummy-data/proxmox/api2/json/nodes/node1/qemu/index.html b/dummy-data/proxmox/api2/json/nodes/node1/qemu/index.html
deleted file mode 100644
index 9ce2e04..0000000
--- a/dummy-data/proxmox/api2/json/nodes/node1/qemu/index.html
+++ /dev/null
@@ -1 +0,0 @@
1{"data":[{"disk":0,"mem":983848043,"cpus":2,"pid":1218,"maxdisk":107374182400,"netin":43863882954,"diskread":0,"diskwrite":0,"name":"HAOS","netout":10426448652,"cpu":0.00879886290177172,"uptime":3390069,"status":"running","maxmem":3221225472,"vmid":100},{"cpu":0.00219971572544293,"name":"debian1","netout":919020028,"vmid":101,"maxmem":4294967296,"uptime":3390064,"status":"running","maxdisk":107374182400,"pid":1295,"cpus":2,"disk":0,"mem":2755160795,"diskread":0,"diskwrite":0,"netin":5105600872}]} \ No newline at end of file
diff --git a/dummy-data/proxmox/api2/json/nodes/node1/status/index.html b/dummy-data/proxmox/api2/json/nodes/node1/status
index 72c06b7..72c06b7 100644
--- a/dummy-data/proxmox/api2/json/nodes/node1/status/index.html
+++ b/dummy-data/proxmox/api2/json/nodes/node1/status
diff --git a/public/assets/config-demo.yml.dist b/public/assets/config-demo.yml.dist
index 5bd9bae..153ff6c 100644
--- a/public/assets/config-demo.yml.dist
+++ b/public/assets/config-demo.yml.dist
@@ -8,7 +8,7 @@ logo: "logo.png"
8# icon: "fas fa-skull-crossbones" # Optional icon 8# icon: "fas fa-skull-crossbones" # Optional icon
9 9
10header: true 10header: true
11footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it. 11footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">Bulma</a>, <a href="https://vuejs.org/">Vue.js</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it.
12 12
13# Optional theme customization 13# Optional theme customization
14theme: default 14theme: default
@@ -42,11 +42,9 @@ colors:
42 42
43# Optional message 43# Optional message
44message: 44message:
45 #url: https://b4bz.io
46 style: "is-dark" # See https://bulma.io/documentation/components/message/#colors for styling options. 45 style: "is-dark" # See https://bulma.io/documentation/components/message/#colors for styling options.
47 title: "Demo !" 46 title: "👋 Welcome !"
48 icon: "fa fa-grin" 47 content: "This demo page shows an overview of Homer possibilities. Feel free to click anywhere!<br /> Find more information on <a href='https://github.com/bastienwirtz/homer'>github.com/bastienwirtz/homer</a>"
49 content: "This is a dummy homepage demo. <br /> Find more information on <a href='https://github.com/bastienwirtz/homer'>github.com/bastienwirtz/homer</a>"
50 48
51# Optional navbar 49# Optional navbar
52# links: [] # Allows for navbar (dark mode, layout, and search) without any links 50# links: [] # Allows for navbar (dark mode, layout, and search) without any links
@@ -55,9 +53,9 @@ links:
55 icon: "fab fa-github" 53 icon: "fab fa-github"
56 url: "https://github.com/bastienwirtz/homer" 54 url: "https://github.com/bastienwirtz/homer"
57 target: "_blank" # optional html a tag target attribute 55 target: "_blank" # optional html a tag target attribute
58 - name: "Wiki" 56 - name: "Documentation"
59 icon: "fas fa-book" 57 icon: "fas fa-book"
60 url: "https://www.wikipedia.org/" 58 url: "https://github.com/bastienwirtz/homer/blob/main/README.md#table-of-contents"
61 # this will link to a second homer page that will load config from additional-page.yml and keep default config values as in config.yml file 59 # this will link to a second homer page that will load config from additional-page.yml and keep default config values as in config.yml file
62 # see url field and assets/additional-page.yml.dist used in this example: 60 # see url field and assets/additional-page.yml.dist used in this example:
63 - name: "another page!" 61 - name: "another page!"
@@ -68,32 +66,51 @@ links:
68# First level array represent a group. 66# First level array represent a group.
69# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed). 67# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
70services: 68services:
71 - name: "Applications" 69 - name: "My apps"
72 icon: "fas fa-cloud" 70 icon: "fas fa-cloud"
73 items: 71 items:
74 - name: "Awesome app"
75 logo: "assets/tools/sample.png"
76 subtitle: "Bookmark example"
77 tag: "app"
78 keywords: "self hosted reddit"
79 url: "https://www.reddit.com/r/selfhosted/"
80 target: "_blank" # optional html a tag target attribute
81 - name: "Another one"
82 logo: "assets/tools/sample2.png"
83 subtitle: "Another application"
84 tag: "app"
85 url: "#"
86 - name: "Pi-hole" 72 - name: "Pi-hole"
87 logo: "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/pihole.png" 73 logo: "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/pihole.png"
88 url: "#" 74 url: "https://pi-hole.net/"
89 endpoint: "https://homer-demo-content.netlify.app/pihole" 75 endpoint: "https://homer-demo-content.netlify.app/pihole"
90 type: "PiHole" 76 type: "PiHole"
91 - name: "Proxmox - Node1" 77 - name: "Proxmox - Node1"
92 logo: "https://camo.githubusercontent.com/2df2ac41e1b8a1484be236c75e395981b31bfd670eff46b5c182ea0be9475310/68747470733a2f2f7777772e70726f786d6f782e636f6d2f696d616765732f70726f786d6f782f50726f786d6f785f73796d626f6c5f7374616e646172645f6865782e706e67" 78 logo: "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/proxmox.png"
93 type: "Proxmox" 79 type: "Proxmox"
94 tag: "sys" 80 tag: "sys"
95 url: "https://homer-demo-content.netlify.app/proxmox" 81 url: "https://www.proxmox.com/en/"
82 endpoint: "https://homer-demo-content.netlify.app/proxmox"
96 node: "node1" 83 node: "node1"
97 warning_value: 50 84 warning_value: 50
98 danger_value: 80 85 danger_value: 80
99 api_token: "PVEAPIToken=root@pam!monitoring=baaaa46c1-7aee-4f13-b3e5-754d856111a9" 86 api_token: "xxxxxxxxxxxx"
87 - name: "An awesome app"
88 logo: "assets/tools/sample.png"
89 subtitle: "Bookmark example"
90 tag: "app"
91 keywords: "self hosted reddit"
92 url: "https://www.reddit.com/r/selfhosted/"
93 - name: "Tools"
94 icon: "fa-solid fa-screwdriver-wrench"
95 items:
96 - name: "Example item"
97 logo: "assets/tools/sample.png"
98 subtitle: "This another example"
99 tag: "app"
100 keywords: "demo"
101 url: "#"
102 target: "_blank"
103 - name: "interesting links"
104 icon: "fas fa-solid fa-arrow-up-right-from-square"
105 items:
106 - name: "r/selfhosted"
107 icon: "fa-brands fa-reddit-alien"
108 subtitle: "Bookmark example"
109 tag: "reddit"
110 url: "https://www.reddit.com/r/selfhosted/"
111 target: "_blank"
112 - name: "Awesome selfhosted"
113 icon: "fa-brands fa-github-alt"
114 subtitle: "Another application"
115 tag: "awesome-list"
116 url: "https://github.com/awesome-selfhosted/awesome-selfhosted"