This commit is contained in:
qikaile 2022-08-09 11:53:56 +08:00
parent aec8744b27
commit 005b3606a7
15 changed files with 20 additions and 7 deletions

View File

@ -13,7 +13,7 @@ window.Config = {
// 日志天数
// 虽然免费版说仅保存60天日志但测试好像API可以获取90天的
// 不过时间不要设置太长,容易卡,接口请求也容易失败
CountDays: 90,
CountDays: 60,
// 是否显示检测站点的链接
ShowLink: true,

BIN
public/img/icon/128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
public/img/icon/144.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
public/img/icon/180.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
public/img/icon/192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
public/img/icon/32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
public/img/icon/48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
public/img/icon/512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
public/img/icon/72.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
public/img/icon/96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,12 +1,24 @@
<!DOCTYPE html>
<html lang="zh-CN">
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<!-- 基础信息 -->
<meta charset="utf-8">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<!-- 强制 HTTPS若不需要可删除但可能出现问题 -->
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="force-rendering" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#424242" />
<meta name="description" content="云生站点监测">
<meta name="keywords" content="墨明,云生站点监测">
<meta name="author" content="墨明">
<link rel="apple-touch-icon" href="./img/icon/apple-touch-icon.png">
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<!-- PWA -->
<link rel="manifest" href="./manifest.json">
<title>云生站点监测</title>
<script src="./config.js"></script>
</head>

1
public/manifest.json Normal file
View File

@ -0,0 +1 @@
{"name":"云生站点监测","short_name":"云生站点监测","description":"云生の站点监测","display":"standalone","start_url":"/","theme_color":"#424242","background_color":"#424242","icons":[{"src":"img/icon/48.png","sizes":"48x48","type":"image/png","purpose": "any maskable"},{"src":"img/icon/72.png","sizes":"72x72","type":"image/png","purpose": "any maskable"},{"src":"img/icon/96.png","sizes":"96x96","type":"image/png","purpose": "any maskable"},{"src":"img/icon/128.png","sizes":"128x128","type":"image/png","purpose": "any maskable"},{"src":"img/icon/144.png","sizes":"144x144","type":"image/png","purpose": "any maskable"},{"src":"img/icon/192.png","sizes":"192x192","type":"image/png","purpose": "any maskable"},{"src":"img/icon/512.png","sizes":"512x512","type":"image/png","purpose": "any maskable"}]}

View File

@ -330,7 +330,6 @@ a {
justify-content: space-between;
font-size: 13px;
line-height: 15px;
color: #9aa2af;
}
.tooltip {

1
sw.js Normal file
View File

@ -0,0 +1 @@
self.addEventListener("error",function(e){self.clients.matchAll().then(function(t){t&&t.length&&t[0].postMessage({type:"ERROR",msg:e.message||null,stack:e.error?e.error.stack:null})})}),self.addEventListener("unhandledrejection",function(e){self.clients.matchAll().then(function(t){t&&t.length&&t[0].postMessage({type:"REJECTION",msg:e.reason?e.reason.message:null,stack:e.reason?e.reason.stack:null})})}),importScripts("https://g.alicdn.com/kg/workbox/3.3.0/workbox-sw.js"),workbox.setConfig({debug:!1,modulePathPrefix:"https://g.alicdn.com/kg/workbox/3.3.0/"}),workbox.skipWaiting(),workbox.clientsClaim();var cacheList=["/","/index.html"];workbox.routing.registerRoute(new RegExp(/\.(?:html|css)$/),workbox.strategies.networkFirst({cacheName:"ql:html",plugins:[new workbox.expiration.Plugin({maxEntries:10})]})),workbox.routing.registerRoute(new RegExp(/\.(?:js|css)$/),workbox.strategies.staleWhileRevalidate({cacheName:"ql:static",plugins:[new workbox.expiration.Plugin({maxEntries:20})]})),workbox.routing.registerRoute(new RegExp(/\.(?:png|gif|jpg|jpeg|webp|svg|cur|ttf|woff2|woff)$/),workbox.strategies.cacheFirst({cacheName:"ql:img",plugins:[new workbox.cacheableResponse.Plugin({statuses:[0,200]}),new workbox.expiration.Plugin({maxEntries:20,maxAgeSeconds:43200})]}));