mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
Merge branch 'master' into patch-1
This commit is contained in:
commit
9a9fd41f62
22 changed files with 54 additions and 23 deletions
28
package-lock.json
generated
28
package-lock.json
generated
|
@ -61,6 +61,7 @@
|
||||||
"@vitejs/plugin-vue": "^1.6.2",
|
"@vitejs/plugin-vue": "^1.6.2",
|
||||||
"@vue/compiler-sfc": "^3.2.11",
|
"@vue/compiler-sfc": "^3.2.11",
|
||||||
"core-js": "^3.17.3",
|
"core-js": "^3.17.3",
|
||||||
|
"cross-env": "^7.0.3",
|
||||||
"dns2": "^2.0.1",
|
"dns2": "^2.0.1",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-plugin-vue": "^7.17.0",
|
"eslint-plugin-vue": "^7.17.0",
|
||||||
|
@ -2230,6 +2231,24 @@
|
||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/cross-env": {
|
||||||
|
"version": "7.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
|
||||||
|
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"cross-spawn": "^7.0.1"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"cross-env": "src/bin/cross-env.js",
|
||||||
|
"cross-env-shell": "src/bin/cross-env-shell.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10.14",
|
||||||
|
"npm": ">=6",
|
||||||
|
"yarn": ">=1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/cross-spawn": {
|
"node_modules/cross-spawn": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||||
|
@ -9780,6 +9799,15 @@
|
||||||
"yaml": "^1.10.0"
|
"yaml": "^1.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"cross-env": {
|
||||||
|
"version": "7.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
|
||||||
|
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"cross-spawn": "^7.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"cross-spawn": {
|
"cross-spawn": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -169,7 +169,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -169,7 +169,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -169,7 +169,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Średni ping",
|
"Avg. Ping": "Średni ping",
|
||||||
"Avg. Response": "Średnia odpowiedź",
|
"Avg. Response": "Średnia odpowiedź",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Response": "Resposta Média. ",
|
"Avg. Response": "Resposta Média. ",
|
||||||
"Status Page": "Página de Status",
|
"Status Page": "Página de Status",
|
||||||
"Entry Page": "Página de entrada",
|
"Entry Page": "Página de entrada",
|
||||||
"Status Page Nothing": "Nada aqui, por favor, adicione um grupo ou monitor.",
|
"statusPageNothing": "Nada aqui, por favor, adicione um grupo ou monitor.",
|
||||||
"No Services": "Nenhum Serviço",
|
"No Services": "Nenhum Serviço",
|
||||||
"All Systems Operational": "Todos os Serviços Operacionais",
|
"All Systems Operational": "Todos os Serviços Operacionais",
|
||||||
"Partially Degraded Service": "Serviço parcialmente degradado",
|
"Partially Degraded Service": "Serviço parcialmente degradado",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -169,7 +169,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
"Avg. Ping": "Avg. Ping",
|
"Avg. Ping": "Avg. Ping",
|
||||||
"Avg. Response": "Avg. Response",
|
"Avg. Response": "Avg. Response",
|
||||||
"Entry Page": "Entry Page",
|
"Entry Page": "Entry Page",
|
||||||
"Status Page Nothing": "Nothing here, please add a group or a monitor.",
|
"statusPageNothing": "Nothing here, please add a group or a monitor.",
|
||||||
"No Services": "No Services",
|
"No Services": "No Services",
|
||||||
"All Systems Operational": "All Systems Operational",
|
"All Systems Operational": "All Systems Operational",
|
||||||
"Partially Degraded Service": "Partially Degraded Service",
|
"Partially Degraded Service": "Partially Degraded Service",
|
||||||
|
|
|
@ -185,7 +185,7 @@
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<div v-if="$root.publicGroupList.length === 0 && loadedData" class="text-center">
|
<div v-if="$root.publicGroupList.length === 0 && loadedData" class="text-center">
|
||||||
<!-- 👀 Nothing here, please add a group or a monitor. -->
|
<!-- 👀 Nothing here, please add a group or a monitor. -->
|
||||||
👀 {{ $t("Status Page Nothing") }}
|
👀 {{ $t("statusPageNothing") }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<PublicGroupList :edit-mode="enableEditMode" />
|
<PublicGroupList :edit-mode="enableEditMode" />
|
||||||
|
@ -377,7 +377,7 @@ export default {
|
||||||
|
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
this.hasToken = ("token" in localStorage);
|
this.hasToken = ("token" in this.$root.storage());
|
||||||
|
|
||||||
// Browser change page
|
// Browser change page
|
||||||
// https://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes
|
// https://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes
|
||||||
|
|
|
@ -17,7 +17,10 @@ const routes = [
|
||||||
component: Entry,
|
component: Entry,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/dashboard",
|
// If it is "/dashboard", the active link is not working
|
||||||
|
// If it is "", it overrides the "/" unexpectedly
|
||||||
|
// Give a random name to solve the problem.
|
||||||
|
path: "/empty",
|
||||||
component: Layout,
|
component: Layout,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
@ -26,7 +29,7 @@ const routes = [
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: "DashboardHome",
|
name: "DashboardHome",
|
||||||
path: "",
|
path: "/dashboard",
|
||||||
component: DashboardHome,
|
component: DashboardHome,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue