mirror of
https://github.com/rachelos/we-mp-rss.git
synced 2026-09-21 05:44:11 +08:00
1.4.2 1.4.2
This commit is contained in:
@@ -1 +1 @@
|
||||
import{h as g,_ as k,d as E,r as I,o as S,c as _,w as o,a as s,b as p,e as t,f as u,t as a,g as M}from"./index.26430345.js";const P=async()=>await g.get("/wx/sys/info");const $=E({__name:"SysInfo",setup(m){const n=I({os:{name:"",version:"",release:""},python_version:"",uptime:0,system:{node:"",machine:"",processor:""},api_version:"/api/v1/wx",core_version:"",latest_version:"",need_update:!0}),c=d=>{const e=Math.floor(d/86400),i=Math.floor(d%86400/3600),l=Math.floor(d%3600/60);return`${e}\u5929 ${i}\u5C0F\u65F6 ${l}\u5206\u949F`},f=()=>{window.open("https://github.com/rachelos/we-mp-rss","_blank")};return S(async()=>{n.value=await P()}),(d,e)=>{const i=s("desktop-outlined"),l=s("a-descriptions-item"),r=s("code-outlined"),C=s("clock-circle-outlined"),v=s("deployment-unit-outlined"),F=s("api-outlined"),y=s("appstore-outlined"),b=s("cloud-download-outlined"),B=s("a-button"),D=s("a-descriptions"),w=s("a-card"),x=s("a-page-header");return p(),_(x,{title:"\u7CFB\u7EDF\u4FE1\u606F","sub-title":`\u7248\u672C: ${n.value.version}`},{default:o(()=>[t(w,{bordered:!1,class:"sys-info-card"},{default:o(()=>[t(D,{bordered:"",column:{xs:1,sm:1,md:1,lg:2}},{default:o(()=>[t(l,{label:"\u64CD\u4F5C\u7CFB\u7EDF"},{label:o(()=>[t(i),e[0]||(e[0]=u(" \u64CD\u4F5C\u7CFB\u7EDF "))]),default:o(()=>[u(" "+a(n.value.os.name),1)]),_:1}),t(l,{label:"\u7CFB\u7EDF\u7248\u672C"},{label:o(()=>[t(r),e[1]||(e[1]=u(" \u7CFB\u7EDF\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.os.version)+" ("+a(n.value.os.release)+") ",1)]),_:1}),t(l,{label:"Python\u7248\u672C"},{label:o(()=>[t(r),e[2]||(e[2]=u(" Python\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.python_version),1)]),_:1}),t(l,{label:"\u8FD0\u884C\u65F6\u95F4"},{label:o(()=>[t(C),e[3]||(e[3]=u(" \u8FD0\u884C\u65F6\u95F4 "))]),default:o(()=>[u(" "+a(c(n.value.uptime)),1)]),_:1}),t(l,{label:"\u7CFB\u7EDF\u67B6\u6784"},{label:o(()=>[t(v),e[4]||(e[4]=u(" \u7CFB\u7EDF\u67B6\u6784 "))]),default:o(()=>[u(" "+a(n.value.system.node)+" / "+a(n.value.system.machine)+" ("+a(n.value.system.processor)+") ",1)]),_:1}),t(l,{label:"API\u7248\u672C"},{label:o(()=>[t(F),e[5]||(e[5]=u(" API\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.api_version),1)]),_:1}),t(l,{label:"\u6838\u5FC3\u7248\u672C"},{label:o(()=>[t(y),e[6]||(e[6]=u(" \u6838\u5FC3\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.core_version),1)]),_:1}),t(l,{label:"\u6700\u65B0\u7248\u672C"},{label:o(()=>[t(b),e[7]||(e[7]=u(" \u6700\u65B0\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.latest_version)+" ",1),n.value.need_update?(p(),_(B,{key:0,type:"text",size:"small",style:{"margin-left":"8px"},onClick:f},{default:o(()=>e[8]||(e[8]=[u("\u7ACB\u5373\u66F4\u65B0")])),_:1,__:[8]})):M("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["sub-title"])}}});var N=k($,[["__scopeId","data-v-36724f83"]]);export{N as default};
|
||||
import{h as g,_ as k,d as E,r as I,o as S,c as _,w as o,a as s,b as p,e as t,f as u,t as a,g as M}from"./index.cc0a0442.js";const P=async()=>await g.get("/wx/sys/info");const $=E({__name:"SysInfo",setup(m){const n=I({os:{name:"",version:"",release:""},python_version:"",uptime:0,system:{node:"",machine:"",processor:""},api_version:"/api/v1/wx",core_version:"",latest_version:"",need_update:!0}),c=d=>{const e=Math.floor(d/86400),i=Math.floor(d%86400/3600),l=Math.floor(d%3600/60);return`${e}\u5929 ${i}\u5C0F\u65F6 ${l}\u5206\u949F`},f=()=>{window.open("https://github.com/rachelos/we-mp-rss","_blank")};return S(async()=>{n.value=await P()}),(d,e)=>{const i=s("desktop-outlined"),l=s("a-descriptions-item"),r=s("code-outlined"),C=s("clock-circle-outlined"),v=s("deployment-unit-outlined"),F=s("api-outlined"),y=s("appstore-outlined"),b=s("cloud-download-outlined"),B=s("a-button"),D=s("a-descriptions"),w=s("a-card"),x=s("a-page-header");return p(),_(x,{title:"\u7CFB\u7EDF\u4FE1\u606F","sub-title":`\u7248\u672C: ${n.value.version}`},{default:o(()=>[t(w,{bordered:!1,class:"sys-info-card"},{default:o(()=>[t(D,{bordered:"",column:{xs:1,sm:1,md:1,lg:2}},{default:o(()=>[t(l,{label:"\u64CD\u4F5C\u7CFB\u7EDF"},{label:o(()=>[t(i),e[0]||(e[0]=u(" \u64CD\u4F5C\u7CFB\u7EDF "))]),default:o(()=>[u(" "+a(n.value.os.name),1)]),_:1}),t(l,{label:"\u7CFB\u7EDF\u7248\u672C"},{label:o(()=>[t(r),e[1]||(e[1]=u(" \u7CFB\u7EDF\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.os.version)+" ("+a(n.value.os.release)+") ",1)]),_:1}),t(l,{label:"Python\u7248\u672C"},{label:o(()=>[t(r),e[2]||(e[2]=u(" Python\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.python_version),1)]),_:1}),t(l,{label:"\u8FD0\u884C\u65F6\u95F4"},{label:o(()=>[t(C),e[3]||(e[3]=u(" \u8FD0\u884C\u65F6\u95F4 "))]),default:o(()=>[u(" "+a(c(n.value.uptime)),1)]),_:1}),t(l,{label:"\u7CFB\u7EDF\u67B6\u6784"},{label:o(()=>[t(v),e[4]||(e[4]=u(" \u7CFB\u7EDF\u67B6\u6784 "))]),default:o(()=>[u(" "+a(n.value.system.node)+" / "+a(n.value.system.machine)+" ("+a(n.value.system.processor)+") ",1)]),_:1}),t(l,{label:"API\u7248\u672C"},{label:o(()=>[t(F),e[5]||(e[5]=u(" API\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.api_version),1)]),_:1}),t(l,{label:"\u6838\u5FC3\u7248\u672C"},{label:o(()=>[t(y),e[6]||(e[6]=u(" \u6838\u5FC3\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.core_version),1)]),_:1}),t(l,{label:"\u6700\u65B0\u7248\u672C"},{label:o(()=>[t(b),e[7]||(e[7]=u(" \u6700\u65B0\u7248\u672C "))]),default:o(()=>[u(" "+a(n.value.latest_version)+" ",1),n.value.need_update?(p(),_(B,{key:0,type:"text",size:"small",style:{"margin-left":"8px"},onClick:f},{default:o(()=>e[8]||(e[8]=[u("\u7ACB\u5373\u66F4\u65B0")])),_:1,__:[8]})):M("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["sub-title"])}}});var N=k($,[["__scopeId","data-v-36724f83"]]);export{N as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
-2
@@ -5,8 +5,8 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>微信公众号订阅助手</title>
|
||||
<script type="module" crossorigin src="/assets/index.26430345.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.8a951fcc.css">
|
||||
<script type="module" crossorigin src="/assets/index.cc0a0442.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.0a45f842.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
+3
-3
@@ -2,11 +2,11 @@
|
||||
|
||||
:: 设置路径变量
|
||||
set "DIST_DIR=dist"
|
||||
set "TARGET_DIR=..\..\static"
|
||||
set "TARGET_DIR=..\static"
|
||||
:: 执行构建
|
||||
npm run build
|
||||
yarn build
|
||||
|
||||
:: 复制文件到static目录
|
||||
echo 正在复制构建文件到%TARGET_DIR%...
|
||||
rmdir /s /q %TARGET_DIR%
|
||||
xcopy "%DIST_DIR%" "%TARGET_DIR%" /E /Y /I
|
||||
xcopy "%DIST_DIR%\*" "%TARGET_DIR%" /E /Y /I
|
||||
@@ -9,4 +9,5 @@ yarn build
|
||||
|
||||
# 复制文件到static目录
|
||||
echo "正在复制构建文件到$TARGET_DIR..."
|
||||
rm -rf $TARGET_DIR/*
|
||||
cp -rf $DIST_DIR/* $TARGET_DIR/
|
||||
Reference in New Issue
Block a user