format code

This commit is contained in:
lyc8503 committed 2023-11-06 00:38:30 +08:00
1 parent 6157bc0879
commit eba65bd654
23 files changed
+2380 -2192

No files matched your search

+29 -22
View File
@@ -1,18 +1,18 @@
const config = {
dateLocale: "zh-CN",
timezone: "Asia/Shanghai",
dateLocale: 'zh-CN',
timezone: 'Asia/Shanghai',
page: {
title: "lyc8503's Status Page",
links: [
{ link: 'https://github.com/lyc8503', label: 'GitHub' },
{ link: 'https://blog.lyc8503.site/', label: 'Blog' },
{ link: 'mailto:[email protected]', label: 'Email Me', highlight: true }
]
{ link: 'mailto:[email protected]', label: 'Email Me', highlight: true },
],
},
callback: async (statusChangeMsg: string) => {
await fetch('https://server.lyc8503.site/wepush?key=wepushkey&msg=' + statusChangeMsg)
await fetch(
'https://server.lyc8503.site/wepush?key=wepushkey&msg=' + statusChangeMsg
)
},
monitors: [
{
@@ -23,9 +23,9 @@ const config = {
expectedCode: [200],
timeout: 10000,
headers: {
"User-Agent": "Uptimeflare"
'User-Agent': 'Uptimeflare',
},
body: undefined
body: undefined,
},
{
id: 'cloudflare',
@@ -35,30 +35,30 @@ const config = {
expectedCode: [200],
timeout: 10000,
headers: {
"User-Agent": "Uptimeflare"
'User-Agent': 'Uptimeflare',
},
body: undefined
body: undefined,
},
{
id: 'blog',
name: 'My Blog',
method: 'GET',
target: 'https://blog.lyc8503.site',
timeout: 10000
timeout: 10000,
},
{
id: 'pan',
name: 'My Fileshare',
method: 'GET',
target: 'https://pan.lyc8503.site',
timeout: 10000
timeout: 10000,
},
{
id: 'server',
name: 'My Aliyun Server',
method: 'GET',
target: 'https://server.lyc8503.site',
timeout: 10000
timeout: 10000,
},
{
id: 'homelab',
@@ -67,15 +67,22 @@ const config = {
target: 'https://lyc8503.cn4.quickconnect.cn/webstation/hello.txt',
timeout: 10000,
headers: {
"Cookie": "type=tunnel;"
Cookie: 'type=tunnel;',
},
responseKeyword: 'Hello'
responseKeyword: 'Hello',
},
{
id: 'homessh',
name: 'HomeSSH',
method: 'TCP_PING',
target: '20.24.87.148:22',
timeout: 10000,
},
{
id: 'broken-test',
name: 'Ping 1.1.1.1',
method: 'TCP_PING',
target: '1.1.1.1:1234'
target: '1.1.1.1:1234',
},
{
id: '404test',
@@ -88,7 +95,7 @@ const config = {
name: '404-test2',
method: 'GET',
target: 'https://www.baidu.com/404',
expectedCodes: [404, 405]
expectedCodes: [404, 405],
},
{
id: '404test3',
@@ -96,9 +103,9 @@ const config = {
method: 'GET',
target: 'https://www.baidu.com/404',
expectedCodes: [404],
responseKeyword: 'Hello'
}
]
}
responseKeyword: 'Hello',
},
],
}
export default config