{{ $t("No Monitors, please") }} {{ $t("add one") }}
@@ -163,56 +163,6 @@ export default {
max-width: 15em;
}
-.list {
- &.scrollbar {
- min-height: calc(100vh - 240px);
- max-height: calc(100vh - 30px);
- overflow-y: auto;
- position: sticky;
- top: 10px;
- }
-
- .item {
- display: block;
- text-decoration: none;
- padding: 13px 15px 10px 15px;
- border-radius: 10px;
- transition: all ease-in-out 0.15s;
-
- &.disabled {
- opacity: 0.3;
- }
-
- .info {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- &:hover {
- background-color: $highlight-white;
- }
-
- &.active {
- background-color: #cdf8f4;
- }
- }
-}
-
-.dark {
- .list {
- .item {
- &:hover {
- background-color: $dark-bg2;
- }
-
- &.active {
- background-color: $dark-bg2;
- }
- }
- }
-}
-
.monitorItem {
width: 100%;
}
diff --git a/src/components/PublicGroupList.vue b/src/components/PublicGroupList.vue
new file mode 100644
index 000000000..23d19e6cd
--- /dev/null
+++ b/src/components/PublicGroupList.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("No Monitors") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ monitor.element.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/i18n.js b/src/i18n.js
index fe2612fbc..633a53acb 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -3,6 +3,7 @@ import daDK from "./languages/da-DK";
import deDE from "./languages/de-DE";
import en from "./languages/en";
import esEs from "./languages/es-ES";
+import ptBR from "./languages/pt-BR";
import etEE from "./languages/et-EE";
import frFR from "./languages/fr-FR";
import itIT from "./languages/it-IT";
@@ -24,6 +25,7 @@ const languageList = {
"de-DE": deDE,
"nl-NL": nlNL,
"es-ES": esEs,
+ "pt-BR": ptBR,
"fr-FR": frFR,
"it-IT": itIT,
"ja": ja,
@@ -43,6 +45,6 @@ export const i18n = createI18n({
locale: localStorage.locale || "en",
fallbackLocale: "en",
silentFallbackWarn: true,
- silentTranslationWarn: false,
+ silentTranslationWarn: true,
messages: languageList,
});
diff --git a/src/icon.js b/src/icon.js
index c824210b2..67eb2a769 100644
--- a/src/icon.js
+++ b/src/icon.js
@@ -1,4 +1,8 @@
import { library } from "@fortawesome/fontawesome-svg-core";
+import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
+
+// Add Free Font Awesome Icons
+// https://fontawesome.com/v5.15/icons?d=gallery&p=2&s=solid&m=free
import {
faArrowAltCircleUp,
faCog,
@@ -12,13 +16,19 @@ import {
faSearch,
faTachometerAlt,
faTimes,
- faTrash
+ faTimesCircle,
+ faTrash,
+ faCheckCircle,
+ faStream,
+ faSave,
+ faExclamationCircle,
+ faBullhorn,
+ faArrowsAltV,
+ faUnlink,
+ faQuestionCircle,
+ faImages, faUpload,
} from "@fortawesome/free-solid-svg-icons";
-//import { fa } from '@fortawesome/free-regular-svg-icons'
-import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
-// Add Free Font Awesome Icons here
-// https://fontawesome.com/v5.15/icons?d=gallery&p=2&s=solid&m=free
library.add(
faArrowAltCircleUp,
faCog,
@@ -32,7 +42,18 @@ library.add(
faSearch,
faTachometerAlt,
faTimes,
+ faTimesCircle,
faTrash,
+ faCheckCircle,
+ faStream,
+ faSave,
+ faExclamationCircle,
+ faBullhorn,
+ faArrowsAltV,
+ faUnlink,
+ faQuestionCircle,
+ faImages,
+ faUpload,
);
export { FontAwesomeIcon };
diff --git a/src/languages/da-DK.js b/src/languages/da-DK.js
index eaba6e2cb..b778c8189 100644
--- a/src/languages/da-DK.js
+++ b/src/languages/da-DK.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/de-DE.js b/src/languages/de-DE.js
index 8f8792853..4014d0533 100644
--- a/src/languages/de-DE.js
+++ b/src/languages/de-DE.js
@@ -168,4 +168,14 @@ export default {
"Export Backup": "Export Backup",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/en.js b/src/languages/en.js
index 37704225a..b79660f1b 100644
--- a/src/languages/en.js
+++ b/src/languages/en.js
@@ -168,6 +168,16 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
"telegram": "Telegram",
"webhook": "Webhook",
"smtp": "Email (SMTP)",
@@ -185,4 +195,4 @@ export default {
"pushbullet": "Pushbullet",
"line": "Line Messenger",
"mattermost": "Mattermost",
-}
+};
diff --git a/src/languages/es-ES.js b/src/languages/es-ES.js
index cb8733792..7571b1308 100644
--- a/src/languages/es-ES.js
+++ b/src/languages/es-ES.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/et-EE.js b/src/languages/et-EE.js
index 991a6a35e..b7d9722c3 100644
--- a/src/languages/et-EE.js
+++ b/src/languages/et-EE.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/fr-FR.js b/src/languages/fr-FR.js
index 0050c5c02..370de5947 100644
--- a/src/languages/fr-FR.js
+++ b/src/languages/fr-FR.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/it-IT.js b/src/languages/it-IT.js
index 09d0bece6..599761a23 100644
--- a/src/languages/it-IT.js
+++ b/src/languages/it-IT.js
@@ -168,4 +168,14 @@ export default {
"Search...": "Cerca...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/ja.js b/src/languages/ja.js
index 44f96ee44..bf8e3129a 100644
--- a/src/languages/ja.js
+++ b/src/languages/ja.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/ko-KR.js b/src/languages/ko-KR.js
index 70948a31d..fb3d65ea3 100644
--- a/src/languages/ko-KR.js
+++ b/src/languages/ko-KR.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/nl-NL.js b/src/languages/nl-NL.js
index 7ec386d01..354429155 100644
--- a/src/languages/nl-NL.js
+++ b/src/languages/nl-NL.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/pl.js b/src/languages/pl.js
index 2b34492e6..65f43aac1 100644
--- a/src/languages/pl.js
+++ b/src/languages/pl.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Szukaj...",
"Avg. Ping": "Średni ping",
"Avg. Response": "Średnia odpowiedź",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/pt-BR.js b/src/languages/pt-BR.js
new file mode 100644
index 000000000..4fc22fefd
--- /dev/null
+++ b/src/languages/pt-BR.js
@@ -0,0 +1,182 @@
+export default {
+ languageName: "Português (Brasileiro)",
+ checkEverySecond: "Verificar cada {0} segundos.",
+ retryCheckEverySecond: "Tentar novamente a cada {0} segundos.",
+ retriesDescription: "Máximo de tentativas antes que o serviço seja marcado como inativo e uma notificação seja enviada",
+ ignoreTLSError: "Ignorar erros TLS/SSL para sites HTTPS",
+ upsideDownModeDescription: "Inverta o status de cabeça para baixo. Se o serviço estiver acessível, ele está OFFLINE.",
+ maxRedirectDescription: "Número máximo de redirecionamentos a seguir. Defina como 0 para desativar redirecionamentos.",
+ acceptedStatusCodesDescription: "Selecione os códigos de status que são considerados uma resposta bem-sucedida.",
+ passwordNotMatchMsg: "A senha repetida não corresponde.",
+ notificationDescription: "Atribua uma notificação ao (s) monitor (es) para que funcione.",
+ keywordDescription: "Pesquise a palavra-chave em html simples ou resposta JSON e diferencia maiúsculas de minúsculas",
+ pauseDashboardHome: "Pausar",
+ deleteMonitorMsg: "Tem certeza de que deseja excluir este monitor?",
+ deleteNotificationMsg: "Tem certeza de que deseja excluir esta notificação para todos os monitores?",
+ resoverserverDescription: "Cloudflare é o servidor padrão, você pode alterar o servidor resolvedor a qualquer momento.",
+ rrtypeDescription: "Selecione o RR-Type que você deseja monitorar",
+ pauseMonitorMsg: "Tem certeza que deseja fazer uma pausa?",
+ enableDefaultNotificationDescription: "Para cada novo monitor, esta notificação será habilitada por padrão. Você ainda pode desativar a notificação separadamente para cada monitor.",
+ clearEventsMsg: "Tem certeza de que deseja excluir todos os eventos deste monitor?",
+ clearHeartbeatsMsg: "Tem certeza de que deseja excluir todos os heartbeats deste monitor?",
+ confirmClearStatisticsMsg: "Tem certeza que deseja excluir TODAS as estatísticas?",
+ importHandleDescription: "Escolha 'Ignorar existente' se quiser ignorar todos os monitores ou notificações com o mesmo nome. 'Substituir' excluirá todos os monitores e notificações existentes.",
+ confirmImportMsg: "Tem certeza que deseja importar o backup? Certifique-se de que selecionou a opção de importação correta.",
+ twoFAVerifyLabel: "Digite seu token para verificar se 2FA está funcionando",
+ tokenValidSettingsMsg: "O token é válido! Agora você pode salvar as configurações 2FA.",
+ confirmEnableTwoFAMsg: "Tem certeza de que deseja habilitar 2FA?",
+ confirmDisableTwoFAMsg: "Tem certeza de que deseja desativar 2FA?",
+ Settings: "Configurações",
+ Dashboard: "Dashboard",
+ "New Update": "Nova Atualização",
+ Language: "Linguagem",
+ Appearance: "Aparência",
+ Theme: "Tema",
+ General: "Geral",
+ Version: "Versão",
+ "Check Update On GitHub": "Verificar atualização no Github",
+ List: "Lista",
+ Add: "Adicionar",
+ "Add New Monitor": "Adicionar novo monitor",
+ "Quick Stats": "Estatísticas rápidas",
+ Up: "On",
+ Down: "Off",
+ Pending: "Pendente",
+ Unknown: "Desconhecido",
+ Pause: "Pausar",
+ Name: "Nome",
+ Status: "Status",
+ DateTime: "Data hora",
+ Message: "Mensagem",
+ "No important events": "Nenhum evento importante",
+ Resume: "Resumo",
+ Edit: "Editar",
+ Delete: "Deletar",
+ Current: "Atual",
+ Uptime: "Tempo de atividade",
+ "Cert Exp.": "Cert Exp.",
+ days: "dias",
+ day: "dia",
+ "-day": "-dia",
+ hour: "hora",
+ "-hour": "-hora",
+ Response: "Resposta",
+ Ping: "Ping",
+ "Monitor Type": "Tipo de Monitor",
+ Keyword: "Palavra-Chave",
+ "Friendly Name": "Nome Amigável",
+ URL: "URL",
+ Hostname: "Hostname",
+ Port: "Porta",
+ "Heartbeat Interval": "Intervalo de Heartbeat",
+ Retries: "Novas tentativas",
+ "Heartbeat Retry Interval": "Intervalo de repetição de Heartbeat",
+ Advanced: "Avançado",
+ "Upside Down Mode": "Modo de cabeça para baixo",
+ "Max. Redirects": "Redirecionamento Máx.",
+ "Accepted Status Codes": "Status Code Aceitáveis",
+ Save: "Salvar",
+ Notifications: "Notificações",
+ "Not available, please setup.": "Não disponível, por favor configure.",
+ "Setup Notification": "Configurar Notificação",
+ Light: "Claro",
+ Dark: "Escuro",
+ Auto: "Auto",
+ "Theme - Heartbeat Bar": "Tema - Barra de Heartbeat",
+ Normal: "Normal",
+ Bottom: "Inferior",
+ None: "Nenhum",
+ Timezone: "Fuso horário",
+ "Search Engine Visibility": "Visibilidade do mecanismo de pesquisa",
+ "Allow indexing": "Permitir Indexação",
+ "Discourage search engines from indexing site": "Desencoraje os motores de busca de indexar o site",
+ "Change Password": "Mudar senha",
+ "Current Password": "Senha atual",
+ "New Password": "Nova Senha",
+ "Repeat New Password": "Repetir Nova Senha",
+ "Update Password": "Atualizar Senha",
+ "Disable Auth": "Desativar Autenticação",
+ "Enable Auth": "Ativar Autenticação",
+ Logout: "Deslogar",
+ Leave: "Sair",
+ "I understand, please disable": "Eu entendo, por favor desative.",
+ Confirm: "Confirmar",
+ Yes: "Sim",
+ No: "Não",
+ Username: "Usuário",
+ Password: "Senha",
+ "Remember me": "Lembre-me",
+ Login: "Autenticar",
+ "No Monitors, please": "Nenhum monitor, por favor",
+ "add one": "adicionar um",
+ "Notification Type": "Tipo de Notificação",
+ Email: "Email",
+ Test: "Testar",
+ "Certificate Info": "Info. do Certificado ",
+ "Resolver Server": "Resolver Servidor",
+ "Resource Record Type": "Tipo de registro de aplicação",
+ "Last Result": "Último resultado",
+ "Create your admin account": "Crie sua conta de admin",
+ "Repeat Password": "Repita a senha",
+ "Import Backup": "Importar Backup",
+ "Export Backup": "Exportar Backup",
+ Export: "Exportar",
+ Import: "Importar",
+ respTime: "Tempo de Resp. (ms)",
+ notAvailableShort: "N/A",
+ "Default enabled": "Padrão habilitado",
+ "Apply on all existing monitors": "Aplicar em todos os monitores existentes",
+ Create: "Criar",
+ "Clear Data": "Limpar Dados",
+ Events: "Eventos",
+ Heartbeats: "Heartbeats",
+ "Auto Get": "Obter Automático",
+ backupDescription: "Você pode fazer backup de todos os monitores e todas as notificações em um arquivo JSON.",
+ backupDescription2: "OBS: Os dados do histórico e do evento não estão incluídos.",
+ backupDescription3: "Dados confidenciais, como tokens de notificação, estão incluídos no arquivo de exportação, mantenha-o com cuidado.",
+ alertNoFile: "Selecione um arquivo para importar.",
+ alertWrongFileType: "Selecione um arquivo JSON.",
+ "Clear all statistics": "Limpar todas as estatísticas",
+ "Skip existing": "Pular existente",
+ Overwrite: "Sobrescrever",
+ Options: "Opções",
+ "Keep both": "Manter os dois",
+ "Verify Token": "Verificar Token",
+ "Setup 2FA": "Configurar 2FA",
+ "Enable 2FA": "Ativar 2FA",
+ "Disable 2FA": "Desativar 2FA",
+ "2FA Settings": "Configurações do 2FA ",
+ "Two Factor Authentication": "Autenticação e Dois Fatores",
+ Active: "Ativo",
+ Inactive: "Inativo",
+ Token: "Token",
+ "Show URI": "Mostrar URI",
+ Tags: "Tag",
+ "Add New below or Select...": "Adicionar Novo abaixo ou Selecionar ...",
+ "Tag with this name already exist.": "Já existe uma etiqueta com este nome.",
+ "Tag with this value already exist.": "Já existe uma etiqueta com este valor.",
+ color: "cor",
+ "value (optional)": "valor (opcional)",
+ Gray: "Cinza",
+ Red: "Vermelho",
+ Orange: "Laranja",
+ Green: "Verde",
+ Blue: "Azul",
+ Indigo: "Índigo",
+ Purple: "Roxo",
+ Pink: "Rosa",
+ "Search...": "Buscar...",
+ "Avg. Ping": "Ping Médio.",
+ "Avg. Response": "Resposta Média. ",
+ "Status Page": "Página de Status",
+ "Entry Page": "Página de entrada",
+ "statusPageNothing": "Nada aqui, por favor, adicione um grupo ou monitor.",
+ "No Services": "Nenhum Serviço",
+ "All Systems Operational": "Todos os Serviços Operacionais",
+ "Partially Degraded Service": "Serviço parcialmente degradado",
+ "Degraded Service": "Serviço Degradado",
+ "Add Group": "Adicionar Grupo",
+ "Add a monitor": "Adicionar um monitor",
+ "Edit Status Page": "Editar Página de Status",
+ "Go to Dashboard": "Ir para a dashboard",
+};
diff --git a/src/languages/ru-RU.js b/src/languages/ru-RU.js
index 956235de4..b27baad13 100644
--- a/src/languages/ru-RU.js
+++ b/src/languages/ru-RU.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Поиск...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/sr-latn.js b/src/languages/sr-latn.js
index 2ebeb32fd..51cb7f8f0 100644
--- a/src/languages/sr-latn.js
+++ b/src/languages/sr-latn.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/sr.js b/src/languages/sr.js
index b5cf1cb87..0c8b6ef44 100644
--- a/src/languages/sr.js
+++ b/src/languages/sr.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/sv-SE.js b/src/languages/sv-SE.js
index f4c42627e..de4fbcc7d 100644
--- a/src/languages/sv-SE.js
+++ b/src/languages/sv-SE.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/tr-TR.js b/src/languages/tr-TR.js
index c521680c9..c73775bb1 100644
--- a/src/languages/tr-TR.js
+++ b/src/languages/tr-TR.js
@@ -168,4 +168,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/zh-CN.js b/src/languages/zh-CN.js
index c2b3dcc59..cf393cc79 100644
--- a/src/languages/zh-CN.js
+++ b/src/languages/zh-CN.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/languages/zh-HK.js b/src/languages/zh-HK.js
index 1e1e0c7dc..92714d713 100644
--- a/src/languages/zh-HK.js
+++ b/src/languages/zh-HK.js
@@ -169,4 +169,14 @@ export default {
"Search...": "Search...",
"Avg. Ping": "Avg. Ping",
"Avg. Response": "Avg. Response",
-}
+ "Entry Page": "Entry Page",
+ "statusPageNothing": "Nothing here, please add a group or a monitor.",
+ "No Services": "No Services",
+ "All Systems Operational": "All Systems Operational",
+ "Partially Degraded Service": "Partially Degraded Service",
+ "Degraded Service": "Degraded Service",
+ "Add Group": "Add Group",
+ "Add a monitor": "Add a monitor",
+ "Edit Status Page": "Edit Status Page",
+ "Go to Dashboard": "Go to Dashboard",
+};
diff --git a/src/layouts/Layout.vue b/src/layouts/Layout.vue
index 467ae53a2..6228d4fb8 100644
--- a/src/layouts/Layout.vue
+++ b/src/layouts/Layout.vue
@@ -18,7 +18,12 @@
- -
+
-
+
+ {{ $t("Status Page") }}
+
+
+ -
{{ $t("Dashboard") }}
@@ -81,7 +86,7 @@ export default {
},
data() {
- return {}
+ return {};
},
computed: {
@@ -105,29 +110,29 @@ export default {
},
watch: {
- $route(to, from) {
- this.init();
- },
+
},
mounted() {
- this.init();
+
},
methods: {
- init() {
- if (this.$route.name === "root") {
- this.$router.push("/dashboard")
- }
- },
+
},
-}
+};
diff --git a/src/router.js b/src/router.js
index 66d1bc937..078c446b4 100644
--- a/src/router.js
+++ b/src/router.js
@@ -8,14 +8,22 @@ import EditMonitor from "./pages/EditMonitor.vue";
import List from "./pages/List.vue";
import Settings from "./pages/Settings.vue";
import Setup from "./pages/Setup.vue";
+import StatusPage from "./pages/StatusPage.vue";
+import Entry from "./pages/Entry.vue";
const routes = [
{
path: "/",
+ component: Entry,
+ },
+ {
+ // 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,
children: [
{
- name: "root",
path: "",
component: Dashboard,
children: [
@@ -54,15 +62,17 @@ const routes = [
},
],
},
-
],
-
},
{
path: "/setup",
component: Setup,
},
-]
+ {
+ path: "/status-page",
+ component: StatusPage,
+ },
+];
export const router = createRouter({
linkActiveClass: "active",
diff --git a/src/util-frontend.js b/src/util-frontend.js
index 333a12fbf..412ec9203 100644
--- a/src/util-frontend.js
+++ b/src/util-frontend.js
@@ -3,8 +3,8 @@ import timezone from "dayjs/plugin/timezone";
import utc from "dayjs/plugin/utc";
import timezones from "timezones-list";
-dayjs.extend(utc)
-dayjs.extend(timezone)
+dayjs.extend(utc);
+dayjs.extend(timezone);
function getTimezoneOffset(timeZone) {
const now = new Date();
@@ -28,7 +28,7 @@ export function timezoneList() {
name: `(UTC${display}) ${timezone.tzCode}`,
value: timezone.tzCode,
time: getTimezoneOffset(timezone.tzCode),
- })
+ });
} catch (e) {
console.log("Skip Timezone: " + timezone.tzCode);
}
@@ -44,7 +44,7 @@ export function timezoneList() {
}
return 0;
- })
+ });
return result;
}
diff --git a/src/util.js b/src/util.js
index 14c683218..7e60b3122 100644
--- a/src/util.js
+++ b/src/util.js
@@ -1,70 +1,104 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.getRandomInt = exports.getRandomArbitrary = exports.TimeLogger = exports.polyfill = exports.debug = exports.ucfirst = exports.sleep = exports.flipStatus = exports.PENDING = exports.UP = exports.DOWN = exports.appName = exports.isDev = void 0;
-const _dayjs = require("dayjs");
-const dayjs = _dayjs;
-exports.isDev = process.env.NODE_ENV === "development";
-exports.appName = "Uptime Kuma";
-exports.DOWN = 0;
-exports.UP = 1;
-exports.PENDING = 2;
-function flipStatus(s) {
- if (s === exports.UP) {
- return exports.DOWN;
- }
- if (s === exports.DOWN) {
- return exports.UP;
- }
- return s;
-}
-exports.flipStatus = flipStatus;
-function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
-}
-exports.sleep = sleep;
-function ucfirst(str) {
- if (!str) {
- return str;
- }
- const firstLetter = str.substr(0, 1);
- return firstLetter.toUpperCase() + str.substr(1);
-}
-exports.ucfirst = ucfirst;
-function debug(msg) {
- if (exports.isDev) {
- console.log(msg);
- }
-}
-exports.debug = debug;
-function polyfill() {
- if (!String.prototype.replaceAll) {
- String.prototype.replaceAll = function (str, newStr) {
- if (Object.prototype.toString.call(str).toLowerCase() === "[object regexp]") {
- return this.replace(str, newStr);
- }
- return this.replace(new RegExp(str, "g"), newStr);
- };
- }
-}
-exports.polyfill = polyfill;
-class TimeLogger {
- constructor() {
- this.startTime = dayjs().valueOf();
- }
- print(name) {
- if (exports.isDev) {
- console.log(name + ": " + (dayjs().valueOf() - this.startTime) + "ms");
- }
- }
-}
-exports.TimeLogger = TimeLogger;
-function getRandomArbitrary(min, max) {
- return Math.random() * (max - min) + min;
-}
-exports.getRandomArbitrary = getRandomArbitrary;
-function getRandomInt(min, max) {
- min = Math.ceil(min);
- max = Math.floor(max);
- return Math.floor(Math.random() * (max - min + 1)) + min;
-}
-exports.getRandomInt = getRandomInt;
+"use strict";
+// Common Util for frontend and backend
+//
+// DOT NOT MODIFY util.js!
+// Need to run "tsc" to compile if there are any changes.
+//
+// Backend uses the compiled file util.js
+// Frontend uses util.ts
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.getRandomInt = exports.getRandomArbitrary = exports.TimeLogger = exports.polyfill = exports.debug = exports.ucfirst = exports.sleep = exports.flipStatus = exports.STATUS_PAGE_PARTIAL_DOWN = exports.STATUS_PAGE_ALL_UP = exports.STATUS_PAGE_ALL_DOWN = exports.PENDING = exports.UP = exports.DOWN = exports.appName = exports.isDev = void 0;
+const _dayjs = require("dayjs");
+const dayjs = _dayjs;
+exports.isDev = process.env.NODE_ENV === "development";
+exports.appName = "Uptime Kuma";
+exports.DOWN = 0;
+exports.UP = 1;
+exports.PENDING = 2;
+exports.STATUS_PAGE_ALL_DOWN = 0;
+exports.STATUS_PAGE_ALL_UP = 1;
+exports.STATUS_PAGE_PARTIAL_DOWN = 2;
+function flipStatus(s) {
+ if (s === exports.UP) {
+ return exports.DOWN;
+ }
+ if (s === exports.DOWN) {
+ return exports.UP;
+ }
+ return s;
+}
+exports.flipStatus = flipStatus;
+function sleep(ms) {
+ return new Promise(resolve => setTimeout(resolve, ms));
+}
+exports.sleep = sleep;
+/**
+ * PHP's ucfirst
+ * @param str
+ */
+function ucfirst(str) {
+ if (!str) {
+ return str;
+ }
+ const firstLetter = str.substr(0, 1);
+ return firstLetter.toUpperCase() + str.substr(1);
+}
+exports.ucfirst = ucfirst;
+function debug(msg) {
+ if (exports.isDev) {
+ console.log(msg);
+ }
+}
+exports.debug = debug;
+function polyfill() {
+ /**
+ * String.prototype.replaceAll() polyfill
+ * https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/
+ * @author Chris Ferdinandi
+ * @license MIT
+ */
+ if (!String.prototype.replaceAll) {
+ String.prototype.replaceAll = function (str, newStr) {
+ // If a regex pattern
+ if (Object.prototype.toString.call(str).toLowerCase() === "[object regexp]") {
+ return this.replace(str, newStr);
+ }
+ // If a string
+ return this.replace(new RegExp(str, "g"), newStr);
+ };
+ }
+}
+exports.polyfill = polyfill;
+class TimeLogger {
+ constructor() {
+ this.startTime = dayjs().valueOf();
+ }
+ print(name) {
+ if (exports.isDev) {
+ console.log(name + ": " + (dayjs().valueOf() - this.startTime) + "ms");
+ }
+ }
+}
+exports.TimeLogger = TimeLogger;
+/**
+ * Returns a random number between min (inclusive) and max (exclusive)
+ */
+function getRandomArbitrary(min, max) {
+ return Math.random() * (max - min) + min;
+}
+exports.getRandomArbitrary = getRandomArbitrary;
+/**
+ * From: https://stackoverflow.com/questions/1527803/generating-random-whole-numbers-in-javascript-in-a-specific-range
+ *
+ * Returns a random integer between min (inclusive) and max (inclusive).
+ * The value is no lower than min (or the next integer greater than min
+ * if min isn't an integer) and no greater than max (or the next integer
+ * lower than max if max isn't an integer).
+ * Using Math.round() will give you a non-uniform distribution!
+ */
+function getRandomInt(min, max) {
+ min = Math.ceil(min);
+ max = Math.floor(max);
+ return Math.floor(Math.random() * (max - min + 1)) + min;
+}
+exports.getRandomInt = getRandomInt;
diff --git a/src/util.ts b/src/util.ts
index 3b96f7b94..4d68ab4e5 100644
--- a/src/util.ts
+++ b/src/util.ts
@@ -1,7 +1,10 @@
// Common Util for frontend and backend
+//
+// DOT NOT MODIFY util.js!
+// Need to run "tsc" to compile if there are any changes.
+//
// Backend uses the compiled file util.js
// Frontend uses util.ts
-// Need to run "tsc" to compile if there are any changes.
import * as _dayjs from "dayjs";
const dayjs = _dayjs;
@@ -12,6 +15,11 @@ export const DOWN = 0;
export const UP = 1;
export const PENDING = 2;
+export const STATUS_PAGE_ALL_DOWN = 0;
+export const STATUS_PAGE_ALL_UP = 1;
+export const STATUS_PAGE_PARTIAL_DOWN = 2;
+
+
export function flipStatus(s: number) {
if (s === UP) {
return DOWN;
@@ -59,7 +67,6 @@ export function polyfill() {
*/
if (!String.prototype.replaceAll) {
String.prototype.replaceAll = function (str: string, newStr: string) {
-
// If a regex pattern
if (Object.prototype.toString.call(str).toLowerCase() === "[object regexp]") {
return this.replace(str, newStr);
@@ -67,7 +74,6 @@ export function polyfill() {
// If a string
return this.replace(new RegExp(str, "g"), newStr);
-
};
}
}
diff --git a/tsconfig.json b/tsconfig.json
index 41db8c524..b7637c3c9 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -7,7 +7,7 @@
"es2020",
"DOM",
],
- "removeComments": true,
+ "removeComments": false,
"preserveConstEnums": true,
"sourceMap": false,
"strict": true