Replace old static folder with new static folder
This commit is contained in:
@ -85,7 +85,7 @@ export default {
|
||||
methods: {
|
||||
fetchData() {
|
||||
console.log("[Details][fetchData] Fetching data");
|
||||
fetch(`${SERVER_URL}/api/v1/statuses/${this.$route.params.key}`)
|
||||
fetch(`${this.serverUrl}/api/v1/statuses/${this.$route.params.key}`)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (JSON.stringify(this.serviceStatus) !== JSON.stringify(data)) {
|
||||
@ -96,8 +96,10 @@ export default {
|
||||
if (i === data.events.length-1) {
|
||||
if (event.type === "UNHEALTHY") {
|
||||
event.fancyText = "Service is unhealthy";
|
||||
} else {
|
||||
} else if (event.type === "HEALTHY") {
|
||||
event.fancyText = "Service is healthy";
|
||||
} else if (event.type === "START") {
|
||||
event.fancyText = "Monitoring started";
|
||||
}
|
||||
} else {
|
||||
let nextEvent = data.events[i+1];
|
||||
@ -121,7 +123,7 @@ export default {
|
||||
});
|
||||
},
|
||||
generateBadgeImageURL(duration) {
|
||||
return `${SERVER_URL}/api/v1/badges/uptime/${duration}/${this.serviceStatus.key}`;
|
||||
return `${this.serverUrl}/api/v1/badges/uptime/${duration}/${this.serviceStatus.key}`;
|
||||
},
|
||||
prettifyUptime(uptime) {
|
||||
if (!uptime) {
|
||||
@ -140,7 +142,9 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
serviceStatus: {},
|
||||
events: []
|
||||
events: [],
|
||||
// Since this page isn't at the root, we need to modify the server URL a bit
|
||||
serverUrl: SERVER_URL === '.' ? '..' : SERVER_URL,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
filenameHashing: false,
|
||||
productionSourceMap: false
|
||||
productionSourceMap: false,
|
||||
outputDir: '../static'
|
||||
}
|
3
web/static/css/app.css
Normal file
3
web/static/css/app.css
Normal file
File diff suppressed because one or more lines are too long
BIN
web/static/favicon.ico
Normal file
BIN
web/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
web/static/img/github.png
Normal file
BIN
web/static/img/github.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
web/static/img/logo.png
Normal file
BIN
web/static/img/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
1
web/static/index.html
Normal file
1
web/static/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>Health Dashboard | Gatus</title><link href="/css/app.css" rel="preload" as="style"><link href="/js/app.js" rel="preload" as="script"><link href="/js/chunk-vendors.js" rel="preload" as="script"><link href="/css/app.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.js"></script><script src="/js/app.js"></script></body></html>
|
1
web/static/js/app.js
Normal file
1
web/static/js/app.js
Normal file
File diff suppressed because one or more lines are too long
6
web/static/js/chunk-vendors.js
Normal file
6
web/static/js/chunk-vendors.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user