-
-
Notifications
You must be signed in to change notification settings - Fork 813
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Traefik, Wallabag, Olivetin (#838)
* Add Traefik, Wallabag, Olivetin * allow subtitle override * add dummy data for olivetin, traefik, wallabag
- Loading branch information
Showing
7 changed files
with
326 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"Rest": "./api/", | ||
"ShowFooter": true, | ||
"ShowNavigation": true, | ||
"ShowNewVersions": true, | ||
"AvailableVersion": "none", | ||
"CurrentVersion": "2024.11.24", | ||
"PageTitle": "OliveTin", | ||
"SectionNavigationStyle": "sidebar", | ||
"DefaultIconForBack": "«", | ||
"SshFoundKey": "not found at /home/user/.ssh/id_rsa", | ||
"SshFoundConfig": "not found at /home/user/.ssh/config", | ||
"EnableCustomJs": false, | ||
"AuthLoginUrl": "", | ||
"AuthLocalLogin": false, | ||
"AuthOAuth2Providers": null, | ||
"AdditionalLinks": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"Version": "3.1.7", | ||
"Codename": "comte", | ||
"startDate": "2024-11-20T05:55:46.259506879Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"2.6.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<template> | ||
<Generic :item="item"> | ||
<template #content> | ||
<p class="title is-4">{{ item.name }}</p> | ||
<p class="subtitle is-6"> | ||
<template v-if="item.subtitle"> | ||
{{ item.subtitle }} | ||
</template> | ||
<template v-else-if="versionstring"> | ||
Version {{ versionstring }} | ||
</template> | ||
</p> | ||
</template> | ||
<template #indicator> | ||
<div v-if="status" class="status" :class="status"> | ||
{{ status }} | ||
</div> | ||
</template> | ||
</Generic> | ||
</template> | ||
|
||
<script> | ||
import service from "@/mixins/service.js"; | ||
import Generic from "./Generic.vue"; | ||
export default { | ||
name: "Olivetin", | ||
components: { | ||
Generic, | ||
}, | ||
mixins: [service], | ||
props: { | ||
item: Object, | ||
}, | ||
data: () => ({ | ||
status: null, | ||
versionstring: null, | ||
}), | ||
created() { | ||
this.fetchStatus(); | ||
}, | ||
methods: { | ||
fetchStatus: async function () { | ||
this.fetch("/webUiSettings.json") | ||
.then((response) => { | ||
this.status = "online"; | ||
this.versionstring = response.CurrentVersion; | ||
}) | ||
.catch((e) => { | ||
this.status = "offline"; | ||
console.log(e); | ||
}); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.status { | ||
font-size: 0.8rem; | ||
color: var(--text-title); | ||
white-space: nowrap; | ||
margin-left: 0.25rem; | ||
&.online:before { | ||
background-color: #94e185; | ||
border-color: #78d965; | ||
box-shadow: 0 0 5px 1px #94e185; | ||
} | ||
&.offline:before { | ||
background-color: #c9404d; | ||
border-color: #c42c3b; | ||
box-shadow: 0 0 5px 1px #c9404d; | ||
} | ||
&:before { | ||
content: " "; | ||
display: inline-block; | ||
width: 7px; | ||
height: 7px; | ||
margin-right: 10px; | ||
border: 1px solid #000; | ||
border-radius: 7px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<template> | ||
<Generic :item="item"> | ||
<template #content> | ||
<p class="title is-4">{{ item.name }}</p> | ||
<p class="subtitle is-6"> | ||
<template v-if="item.subtitle"> | ||
{{ item.subtitle }} | ||
</template> | ||
<template v-else-if="versionstring"> | ||
Version {{ versionstring }} | ||
</template> | ||
</p> | ||
</template> | ||
<template #indicator> | ||
<div v-if="status" class="status" :class="status"> | ||
{{ status }} | ||
</div> | ||
</template> | ||
</Generic> | ||
</template> | ||
|
||
<script> | ||
import service from "@/mixins/service.js"; | ||
import Generic from "./Generic.vue"; | ||
export default { | ||
name: "Traefik", | ||
components: { | ||
Generic, | ||
}, | ||
mixins: [service], | ||
props: { | ||
item: Object, | ||
}, | ||
data: () => ({ | ||
fetchOk: null, | ||
versionstring: null, | ||
}), | ||
computed: { | ||
status: function () { | ||
return this.fetchOk ? "online" : "offline"; | ||
}, | ||
}, | ||
created() { | ||
this.fetchStatus(); | ||
}, | ||
methods: { | ||
fetchStatus: async function () { | ||
this.fetch("/api/version") | ||
.then((response) => { | ||
this.fetchOk = true; | ||
this.versionstring = response.Version; | ||
}) | ||
.catch((e) => { | ||
this.fetchOk = false; | ||
console.log(e); | ||
}); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.status { | ||
font-size: 0.8rem; | ||
color: var(--text-title); | ||
white-space: nowrap; | ||
margin-left: 0.25rem; | ||
&.online:before { | ||
background-color: #94e185; | ||
border-color: #78d965; | ||
box-shadow: 0 0 5px 1px #94e185; | ||
} | ||
&.offline:before { | ||
background-color: #c9404d; | ||
border-color: #c42c3b; | ||
box-shadow: 0 0 5px 1px #c9404d; | ||
} | ||
&:before { | ||
content: " "; | ||
display: inline-block; | ||
width: 7px; | ||
height: 7px; | ||
margin-right: 10px; | ||
border: 1px solid #000; | ||
border-radius: 7px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<template> | ||
<Generic :item="item"> | ||
<template #content> | ||
<p class="title is-4">{{ item.name }}</p> | ||
<p class="subtitle is-6"> | ||
<template v-if="item.subtitle"> | ||
{{ item.subtitle }} | ||
</template> | ||
<template v-else-if="versionstring"> | ||
Version {{ versionstring }} | ||
</template> | ||
</p> | ||
</template> | ||
<template #indicator> | ||
<div v-if="status" class="status" :class="status"> | ||
{{ status }} | ||
</div> | ||
</template> | ||
</Generic> | ||
</template> | ||
|
||
<script> | ||
import service from "@/mixins/service.js"; | ||
import Generic from "./Generic.vue"; | ||
export default { | ||
name: "Wallabag", | ||
components: { | ||
Generic, | ||
}, | ||
mixins: [service], | ||
props: { | ||
item: Object, | ||
}, | ||
data: () => ({ | ||
status: null, | ||
versionstring: null, | ||
}), | ||
created() { | ||
this.fetchStatus(); | ||
}, | ||
methods: { | ||
fetchStatus: async function () { | ||
this.fetch("/api/version") | ||
.then((response) => { | ||
this.status = "online"; | ||
this.versionstring = response; | ||
}) | ||
.catch((e) => { | ||
this.status = "offline"; | ||
console.log(e); | ||
}); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.status { | ||
font-size: 0.8rem; | ||
color: var(--text-title); | ||
white-space: nowrap; | ||
margin-left: 0.25rem; | ||
&.online:before { | ||
background-color: #94e185; | ||
border-color: #78d965; | ||
box-shadow: 0 0 5px 1px #94e185; | ||
} | ||
&.offline:before { | ||
background-color: #c9404d; | ||
border-color: #c42c3b; | ||
box-shadow: 0 0 5px 1px #c9404d; | ||
} | ||
&:before { | ||
content: " "; | ||
display: inline-block; | ||
width: 7px; | ||
height: 7px; | ||
margin-right: 10px; | ||
border: 1px solid #000; | ||
border-radius: 7px; | ||
} | ||
} | ||
</style> |