添加简洁模式,修正json query,RSS upload 整合到云端

This commit is contained in:
Easy
2022-07-30 21:04:22 +08:00
parent 5f6ba4038e
commit ba0507a137
17 changed files with 108 additions and 22 deletions
+3 -3
View File
@@ -12,9 +12,9 @@
## 最新版本
- 插件·Chrome/Edge2022.07.29.21.17 [下载](ckc.zip) ([Github下载地址,无需注册](https://github.com/easychen/checkchan-dist/raw/master/ckc.zip))
- Docker镜像(云端+远程桌面二合一)2022.07.29.21.07 [Docker Hub](https://hub.docker.com/repository/docker/easychen/checkchan)
- 文档:2022.07.29.21.17
- 插件·Chrome/Edge2022.07.30.21.03 [下载](ckc.zip) ([Github下载地址,无需注册](https://github.com/easychen/checkchan-dist/raw/master/ckc.zip))
- Docker镜像(云端+远程桌面二合一)2022.07.30.20.54 [Docker Hub](https://hub.docker.com/repository/docker/easychen/checkchan)
- 文档:2022.07.30.21.03
- 更新日志:[GitHub](https://github.com/easychen/checkchan-dist/commits/main)
- 生态:RSSHub浏览器插件整合版([源码](https://github.com/easychen/RSSHub-Radar-with-checkchan) | [下载](https://github.com/easychen/RSSHub-Radar-with-checkchan/releases/download/main/1.7.0.with-checkchan.zip)
+1 -1
View File
@@ -1 +1 @@
"2022.07.29.21.17"
"2022.07.30.21.03"
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
"2022.07.29.21.07"
"2022.07.30.20.54"
+9
View File
@@ -41,6 +41,15 @@ app.all(`/`, checkApiKey , (req, res) => {
res.json({"code":0,"message":"it works","version":"1.1",data_write_access});
});
app.post( `/rss/upload`, checkApiKey, (req, res) => {
if( req.body.rss ) {
let rss = req.body.rss;
let rss_file = image_dir+'/rss.xml';
fs.writeFileSync(rss_file,rss);
res.json({"code":0,"message":"保存成功"});
}
});
app.post(`/checks/upload`, checkApiKey , (req, res) => {
const data = { checks: JSON.parse(req.body.checks)||[], cookies: JSON.parse(req.body.cookies) ||{} };
const data_file = get_data_dir()+'/data.json';
@@ -3,7 +3,7 @@
"message": "Check酱"
},
"appDesc": {
"message": "监控页面变动,并发送异动到微信。 Build.2022.07.29.21.17",
"message": "监控页面变动,并发送异动到微信。 Build.2022.07.30.21.03",
"description":"亦支持http status、json和rss监测。配合自架云端,关电脑后也能运行。"
}
}
@@ -1,20 +1,20 @@
{
"files": {
"main.css": "/static/css/main.4402c922.chunk.css",
"main.js": "/static/js/main.3dc32983.chunk.js",
"main.css": "/static/css/main.59857986.chunk.css",
"main.js": "/static/js/main.fc76bc2e.chunk.js",
"runtime-main.js": "/static/js/runtime-main.17191aad.js",
"static/css/2.65280f5c.chunk.css": "/static/css/2.65280f5c.chunk.css",
"static/js/2.2ebc3ddc.chunk.js": "/static/js/2.2ebc3ddc.chunk.js",
"static/js/2.9fb2ad8f.chunk.js": "/static/js/2.9fb2ad8f.chunk.js",
"index.html": "/index.html",
"precache-manifest.5369c3afbc35260526173021501694af.js": "/precache-manifest.5369c3afbc35260526173021501694af.js",
"precache-manifest.d9f248a646e149dd952df82586848a41.js": "/precache-manifest.d9f248a646e149dd952df82586848a41.js",
"service-worker.js": "/service-worker.js",
"static/media/index.scss": "/static/media/icons-20.cef8cdbb.woff"
},
"entrypoints": [
"static/js/runtime-main.17191aad.js",
"static/css/2.65280f5c.chunk.css",
"static/js/2.2ebc3ddc.chunk.js",
"static/css/main.4402c922.chunk.css",
"static/js/main.3dc32983.chunk.js"
"static/js/2.9fb2ad8f.chunk.js",
"static/css/main.59857986.chunk.css",
"static/js/main.fc76bc2e.chunk.js"
]
}
+24
View File
@@ -124,6 +124,30 @@ async function insert_content( host, url, pathname )
}
// message.bilibili.com
if( host === 'message.bilibili.com' )
{
const reg = /#\/(reply)/;
const id = Array.isArray(url.match(reg)) ? url.match(reg)[1]:null;
console.log( "id", id );
if( !id ) return false;
const path = "div#link-message-container > div > div:nth-of-type(2) > div:nth-of-type(2) > div > div > div > div > div > div .center-box";
const ignore_path = "div#link-message-container > div > div:nth-of-type(2) > div:nth-of-type(2) > div > div > div > div > div > div .action-field, div#link-message-container > div > div:nth-of-type(2) > div:nth-of-type(2) > div > div > div > div > div > div textarea";
const button = document.createElement("button");
button.innerHTML = "监测最新回复";
button.style = button_base_style+"padding:5px;";
button.onclick = async()=>{
const icon_url = "https://www.bilibili.com/favicon.ico";
const url = 'index.html#/check/add?path='+encodeURIComponent(path)+'&title='+encodeURIComponent(window.document.title)+'&url='+encodeURIComponent(window.location.href)+'&icon='+encodeURIComponent(icon_url)+'&ignore_path='+encodeURIComponent(ignore_path);
const ret = await chrome.runtime.sendMessage({action: "redirect","url":url,"tabid":null},);
}
document.body?.appendChild( button );
}
// .ep-list-wrapper .ep-item:last-child
if( host === 'www.bilibili.com' )
{
+1 -1
View File
@@ -1 +1 @@
<!doctype html><html lang="zh-cn"><head><meta charset="utf-8"/><link rel="icon" href="/logo.color.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="web content monitor"/><link rel="apple-touch-icon" href="logo.color.png"/><link rel="manifest" href="/manifest.json"/><title>...</title><link rel="stylesheet" href="/tailwind.min.css"><link href="/static/css/2.65280f5c.chunk.css" rel="stylesheet"><link href="/static/css/main.4402c922.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/static/js/runtime-main.17191aad.js"></script><script src="/static/js/2.2ebc3ddc.chunk.js"></script><script src="/static/js/main.3dc32983.chunk.js"></script></body></html>
<!doctype html><html lang="zh-cn"><head><meta charset="utf-8"/><link rel="icon" href="/logo.color.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="web content monitor"/><link rel="apple-touch-icon" href="logo.color.png"/><link rel="manifest" href="/manifest.json"/><title>...</title><link rel="stylesheet" href="/tailwind.min.css"><link href="/static/css/2.65280f5c.chunk.css" rel="stylesheet"><link href="/static/css/main.59857986.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/static/js/runtime-main.17191aad.js"></script><script src="/static/js/2.9fb2ad8f.chunk.js"></script><script src="/static/js/main.fc76bc2e.chunk.js"></script></body></html>
+1 -1
View File
@@ -3,7 +3,7 @@
"name": "__MSG_appTitle__",
"description": "__MSG_appDesc__",
"default_locale": "zh_CN",
"version": "0.9.4",
"version": "0.9.5",
"icons": {
"512": "logo.color.png"
},
@@ -0,0 +1,50 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "1e6f39b8ed9f95565bf96d6504baba0f",
"url": "/index.html"
},
{
"revision": "e26aa8ed6dcd50303cff",
"url": "/static/css/2.65280f5c.chunk.css"
},
{
"revision": "23bc267530ff189a3f59",
"url": "/static/css/main.59857986.chunk.css"
},
{
"revision": "e26aa8ed6dcd50303cff",
"url": "/static/js/2.9fb2ad8f.chunk.js"
},
{
"revision": "23bc267530ff189a3f59",
"url": "/static/js/main.fc76bc2e.chunk.js"
},
{
"revision": "4d30565b04f5f2725c56",
"url": "/static/js/runtime-main.17191aad.js"
},
{
"revision": "05f1cdadfe476395f60e233b15c22155",
"url": "/static/media/icons-16.05f1cdad.eot"
},
{
"revision": "3c1c220e7a18286503fb431c7a7fe183",
"url": "/static/media/icons-16.3c1c220e.woff"
},
{
"revision": "3cde8748332d1de6b1ae1c2dc5850754",
"url": "/static/media/icons-16.3cde8748.ttf"
},
{
"revision": "0a5c76518a68c185baa2c6744456918c",
"url": "/static/media/icons-20.0a5c7651.eot"
},
{
"revision": "51ec31f302d0072808e1f83f85fea4cd",
"url": "/static/media/icons-20.51ec31f3.ttf"
},
{
"revision": "cef8cdbb9d0ba82e6e19fb0eeba2ac3d",
"url": "/static/media/icons-20.cef8cdbb.woff"
}
]);
@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/precache-manifest.5369c3afbc35260526173021501694af.js"
"/precache-manifest.d9f248a646e149dd952df82586848a41.js"
);
self.addEventListener('message', (event) => {
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -20,9 +20,9 @@
</ol>
<h2>最新版本</h2>
<ul>
<li>插件·Chrome/Edge2022.07.29.21.17 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
<li>Docker镜像(云端+远程桌面二合一)2022.07.29.21.07 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
<li>文档:2022.07.29.21.17</li>
<li>插件·Chrome/Edge2022.07.30.21.03 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
<li>Docker镜像(云端+远程桌面二合一)2022.07.30.20.54 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
<li>文档:2022.07.30.21.03</li>
<li>更新日志:<a href="https://github.com/easychen/checkchan-dist/commits/main">GitHub</a></li>
<li>生态:RSSHub浏览器插件整合版(<a href="https://github.com/easychen/RSSHub-Radar-with-checkchan">源码</a> | <a href="https://github.com/easychen/RSSHub-Radar-with-checkchan/releases/download/main/1.7.0.with-checkchan.zip">下载</a></li>
</ul>
+3 -3
View File
@@ -9,9 +9,9 @@
</ol>
<h2>最新版本</h2>
<ul>
<li>插件·Chrome/Edge2022.07.29.21.17 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
<li>Docker镜像(云端+远程桌面二合一)2022.07.29.21.07 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
<li>文档:2022.07.29.21.17</li>
<li>插件·Chrome/Edge2022.07.30.21.03 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
<li>Docker镜像(云端+远程桌面二合一)2022.07.30.20.54 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
<li>文档:2022.07.30.21.03</li>
<li>更新日志:<a href="https://github.com/easychen/checkchan-dist/commits/main">GitHub</a></li>
<li>生态:RSSHub浏览器插件整合版(<a href="https://github.com/easychen/RSSHub-Radar-with-checkchan">源码</a> | <a href="https://github.com/easychen/RSSHub-Radar-with-checkchan/releases/download/main/1.7.0.with-checkchan.zip">下载</a></li>
</ul>