1.5.2-Fix

This commit is contained in:
RachelOS
2026-04-28 23:14:54 +08:00
parent 6bdc739b07
commit b90ebbc62e
34 changed files with 42 additions and 40 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
.ak-management[data-v-29103d04]{padding:20px}.form-hint[data-v-29103d04]{font-size:12px;color:#999;margin-top:4px}[data-v-29103d04] .text-gray{color:#999}[data-v-29103d04] .arco-table-cell{padding:12px 16px}
@@ -1 +0,0 @@
.ak-management[data-v-389bc881]{padding:20px}.form-hint[data-v-389bc881]{font-size:12px;color:#999;margin-top:4px}[data-v-389bc881] .text-gray{color:#999}[data-v-389bc881] .arco-table-cell{padding:12px 16px}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{b as L}from"./cascade.e0205b41.js";import{_ as U,d as P,r as m,a as v,y as J,b as n,c as r,w as a,M as K,j as c,o as s,u as x,a1 as R,J as _,K as B,e as b,a5 as q,t as l,I as D}from"./index.a75a6e55.js";const G={class:"cascade-feed-status"},H={key:0,class:"tip-message"},O={style:{display:"flex","align-items":"center",gap:"10px"}},Q=["src","alt"],W={key:1,style:{width:"32px",height:"32px","border-radius":"4px",background:"#f2f3f5",display:"flex","align-items":"center","justify-content":"center"}},X={key:1,style:{color:"#999"}},Y={key:0,style:{color:"#165dff"}},Z={key:1,style:{color:"#999"}},$={key:2,style:{color:"#999"}},tt=P({__name:"CascadeFeedStatus",setup(et){const S=[{title:"\u516C\u4F17\u53F7",slotName:"mp_info",dataIndex:"mp_name",ellipsis:!0,sortable:{sortDirections:["ascend","descend"]}},{title:"\u6587\u7AE0\u6570",dataIndex:"article_count",width:100,sortable:{sortDirections:["ascend","descend"]}},{title:"\u66F4\u65B0\u72B6\u6001",slotName:"update_status",dataIndex:"update_status",width:110,sortable:{sortDirections:["ascend","descend"]}},{title:"\u6700\u8FD1\u6587\u7AE0",slotName:"latest_article_time",dataIndex:"latest_article_time",width:160,sortable:{sortDirections:["ascend","descend"]}},{title:"\u6700\u540E\u4EFB\u52A1",slotName:"last_task",width:120},{title:"\u6267\u884C\u8282\u70B9",slotName:"last_task_node",width:120},{title:"\u66F4\u65B0\u65F6\u95F4",slotName:"updated_at",dataIndex:"updated_at",width:160,sortable:{sortDirections:["ascend","descend"]}}],f=m([]),g=m(0),i=m(!1),h=m(!0),u=v({limit:12,offset:0}),d=v({field:"updated_at",order:"descend"}),p=async()=>{try{i.value=!0;const t=await L({limit:u.limit,offset:u.offset,sort_by:d.field,sort_order:d.order==="ascend"?"asc":d.order==="descend"?"desc":void 0});f.value=(t==null?void 0:t.list)||[],g.value=(t==null?void 0:t.total)||0}catch(t){console.error("\u83B7\u53D6\u516C\u4F17\u53F7\u72B6\u6001\u5931\u8D25:",t),K.error("\u83B7\u53D6\u516C\u4F17\u53F7\u72B6\u6001\u5931\u8D25")}finally{i.value=!1}},w=t=>{u.offset=(t-1)*u.limit,p()},E=(t,o)=>{d.field=t,d.order=o,u.offset=0,p()},F=t=>{if(!t)return"-";try{return new Date(t).toLocaleString("zh-CN")}catch{return"-"}},N=t=>({fresh:"green",recent:"blue",stale:"orange",outdated:"red",unknown:"gray"})[t]||"gray",A=t=>({fresh:"\u6700\u65B0",recent:"\u8F83\u65B0",stale:"\u9648\u65E7",outdated:"\u8FC7\u671F",unknown:"\u672A\u77E5"})[t]||t,I=t=>({pending:"orange",executing:"blue",completed:"green",failed:"red"})[t]||"gray",T=t=>({pending:"\u5F85\u8BA4\u9886",claimed:"\u5DF2\u8BA4\u9886",executing:"\u6267\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25",timeout:"\u8D85\u65F6"})[t]||t;return J(()=>{setTimeout(()=>{h.value=!1},3e3),p()}),(t,o)=>{const M=c("a-button"),y=c("a-tag"),V=c("a-table"),j=c("a-empty"),z=c("a-card");return s(),n("div",G,[r(z,{title:"\u516C\u4F17\u53F7\u72B6\u6001",bordered:!1},{extra:a(()=>[r(M,{onClick:p,loading:i.value},{icon:a(()=>[r(x(R))]),default:a(()=>[o[0]||(o[0]=_(" \u5237\u65B0 "))]),_:1,__:[0]},8,["loading"])]),default:a(()=>[h.value?(s(),n("div",H," \u663E\u793A\u7CFB\u7EDF\u4E2D\u6240\u6709\u516C\u4F17\u53F7\u7684\u66F4\u65B0\u72B6\u6001\u548C\u4EFB\u52A1\u6267\u884C\u60C5\u51B5 ")):B("",!0),r(V,{columns:S,data:f.value,loading:i.value,"row-key":"id",pagination:{current:Math.floor(u.offset/u.limit)+1,pageSize:u.limit,total:g.value,showTotal:!0,onChange:w},sorter:{field:d.field,order:d.order},onSorterChange:E},{mp_info:a(({record:e})=>[b("div",O,[e.mp_cover?(s(),n("img",{key:0,src:e.mp_cover,alt:e.mp_name,style:{width:"32px",height:"32px","border-radius":"4px","object-fit":"cover"}},null,8,Q)):(s(),n("span",W,[r(x(q),{style:{color:"#c9cdd4"}})])),b("span",null,l(e.mp_name),1)])]),update_status:a(({record:e})=>[r(y,{color:N(e.update_status)},{default:a(()=>[_(l(A(e.update_status)),1)]),_:2},1032,["color"])]),latest_article_time:a(({record:e})=>[_(l(F(e.latest_article_time)),1)]),last_task:a(({record:e})=>[e.last_task?(s(),D(y,{key:0,color:I(e.last_task.status),size:"small"},{default:a(()=>[_(l(T(e.last_task.status)),1)]),_:2},1032,["color"])):(s(),n("span",X,"-"))]),last_task_node:a(({record:e})=>{var C,k;return[(C=e.last_task)!=null&&C.node_name?(s(),n("span",Y,l(e.last_task.node_name),1)):(k=e.last_task)!=null&&k.node_id?(s(),n("span",Z,l(e.last_task.node_id.substring(0,8))+"... ",1)):(s(),n("span",$,"-"))]}),updated_at:a(({record:e})=>[_(l(F(e.updated_at)),1)]),_:1},8,["data","loading","pagination","sorter"]),!i.value&&f.value.length===0?(s(),D(j,{key:1,description:"\u6682\u65E0\u516C\u4F17\u53F7\u6570\u636E"})):B("",!0)]),_:1})])}}});var ot=U(tt,[["__scopeId","data-v-72f59dce"],["__file","CascadeFeedStatus.vue"]]);export{ot as default};
import{b as L}from"./cascade.addd5deb.js";import{_ as U,d as P,r as m,a as v,y as J,b as n,c as r,w as a,M as K,j as c,o as s,u as x,a1 as R,J as _,K as B,e as b,a5 as q,t as l,I as D}from"./index.a8a038f4.js";const G={class:"cascade-feed-status"},H={key:0,class:"tip-message"},O={style:{display:"flex","align-items":"center",gap:"10px"}},Q=["src","alt"],W={key:1,style:{width:"32px",height:"32px","border-radius":"4px",background:"#f2f3f5",display:"flex","align-items":"center","justify-content":"center"}},X={key:1,style:{color:"#999"}},Y={key:0,style:{color:"#165dff"}},Z={key:1,style:{color:"#999"}},$={key:2,style:{color:"#999"}},tt=P({__name:"CascadeFeedStatus",setup(et){const S=[{title:"\u516C\u4F17\u53F7",slotName:"mp_info",dataIndex:"mp_name",ellipsis:!0,sortable:{sortDirections:["ascend","descend"]}},{title:"\u6587\u7AE0\u6570",dataIndex:"article_count",width:100,sortable:{sortDirections:["ascend","descend"]}},{title:"\u66F4\u65B0\u72B6\u6001",slotName:"update_status",dataIndex:"update_status",width:110,sortable:{sortDirections:["ascend","descend"]}},{title:"\u6700\u8FD1\u6587\u7AE0",slotName:"latest_article_time",dataIndex:"latest_article_time",width:160,sortable:{sortDirections:["ascend","descend"]}},{title:"\u6700\u540E\u4EFB\u52A1",slotName:"last_task",width:120},{title:"\u6267\u884C\u8282\u70B9",slotName:"last_task_node",width:120},{title:"\u66F4\u65B0\u65F6\u95F4",slotName:"updated_at",dataIndex:"updated_at",width:160,sortable:{sortDirections:["ascend","descend"]}}],f=m([]),g=m(0),i=m(!1),h=m(!0),u=v({limit:12,offset:0}),d=v({field:"updated_at",order:"descend"}),p=async()=>{try{i.value=!0;const t=await L({limit:u.limit,offset:u.offset,sort_by:d.field,sort_order:d.order==="ascend"?"asc":d.order==="descend"?"desc":void 0});f.value=(t==null?void 0:t.list)||[],g.value=(t==null?void 0:t.total)||0}catch(t){console.error("\u83B7\u53D6\u516C\u4F17\u53F7\u72B6\u6001\u5931\u8D25:",t),K.error("\u83B7\u53D6\u516C\u4F17\u53F7\u72B6\u6001\u5931\u8D25")}finally{i.value=!1}},w=t=>{u.offset=(t-1)*u.limit,p()},E=(t,o)=>{d.field=t,d.order=o,u.offset=0,p()},F=t=>{if(!t)return"-";try{return new Date(t).toLocaleString("zh-CN")}catch{return"-"}},N=t=>({fresh:"green",recent:"blue",stale:"orange",outdated:"red",unknown:"gray"})[t]||"gray",A=t=>({fresh:"\u6700\u65B0",recent:"\u8F83\u65B0",stale:"\u9648\u65E7",outdated:"\u8FC7\u671F",unknown:"\u672A\u77E5"})[t]||t,I=t=>({pending:"orange",executing:"blue",completed:"green",failed:"red"})[t]||"gray",T=t=>({pending:"\u5F85\u8BA4\u9886",claimed:"\u5DF2\u8BA4\u9886",executing:"\u6267\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25",timeout:"\u8D85\u65F6"})[t]||t;return J(()=>{setTimeout(()=>{h.value=!1},3e3),p()}),(t,o)=>{const M=c("a-button"),y=c("a-tag"),V=c("a-table"),j=c("a-empty"),z=c("a-card");return s(),n("div",G,[r(z,{title:"\u516C\u4F17\u53F7\u72B6\u6001",bordered:!1},{extra:a(()=>[r(M,{onClick:p,loading:i.value},{icon:a(()=>[r(x(R))]),default:a(()=>[o[0]||(o[0]=_(" \u5237\u65B0 "))]),_:1,__:[0]},8,["loading"])]),default:a(()=>[h.value?(s(),n("div",H," \u663E\u793A\u7CFB\u7EDF\u4E2D\u6240\u6709\u516C\u4F17\u53F7\u7684\u66F4\u65B0\u72B6\u6001\u548C\u4EFB\u52A1\u6267\u884C\u60C5\u51B5 ")):B("",!0),r(V,{columns:S,data:f.value,loading:i.value,"row-key":"id",pagination:{current:Math.floor(u.offset/u.limit)+1,pageSize:u.limit,total:g.value,showTotal:!0,onChange:w},sorter:{field:d.field,order:d.order},onSorterChange:E},{mp_info:a(({record:e})=>[b("div",O,[e.mp_cover?(s(),n("img",{key:0,src:e.mp_cover,alt:e.mp_name,style:{width:"32px",height:"32px","border-radius":"4px","object-fit":"cover"}},null,8,Q)):(s(),n("span",W,[r(x(q),{style:{color:"#c9cdd4"}})])),b("span",null,l(e.mp_name),1)])]),update_status:a(({record:e})=>[r(y,{color:N(e.update_status)},{default:a(()=>[_(l(A(e.update_status)),1)]),_:2},1032,["color"])]),latest_article_time:a(({record:e})=>[_(l(F(e.latest_article_time)),1)]),last_task:a(({record:e})=>[e.last_task?(s(),D(y,{key:0,color:I(e.last_task.status),size:"small"},{default:a(()=>[_(l(T(e.last_task.status)),1)]),_:2},1032,["color"])):(s(),n("span",X,"-"))]),last_task_node:a(({record:e})=>{var C,k;return[(C=e.last_task)!=null&&C.node_name?(s(),n("span",Y,l(e.last_task.node_name),1)):(k=e.last_task)!=null&&k.node_id?(s(),n("span",Z,l(e.last_task.node_id.substring(0,8))+"... ",1)):(s(),n("span",$,"-"))]}),updated_at:a(({record:e})=>[_(l(F(e.updated_at)),1)]),_:1},8,["data","loading","pagination","sorter"]),!i.value&&f.value.length===0?(s(),D(j,{key:1,description:"\u6682\u65E0\u516C\u4F17\u53F7\u6570\u636E"})):B("",!0)]),_:1})])}}});var ot=U(tt,[["__scopeId","data-v-72f59dce"],["__file","CascadeFeedStatus.vue"]]);export{ot as default};
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
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
@@ -0,0 +1 @@
.user-management[data-v-07db6c66]{padding:20px}.form-hint[data-v-07db6c66]{font-size:12px;color:#999;margin-top:4px}[data-v-07db6c66] .text-gray{color:#999}[data-v-07db6c66] .arco-table-cell{padding:12px 16px}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{R as t}from"./index.a75a6e55.js";const c=e=>t.post("/wx/cascade/nodes",e),n=e=>{const s={};return e!==void 0&&(s.node_type=e),t.get("/wx/cascade/nodes",{params:s})},o=(e,s)=>t.put(`/wx/cascade/nodes/${e}`,s),d=e=>t.delete(`/wx/cascade/nodes/${e}`),r=e=>t.post(`/wx/cascade/nodes/${e}/credentials`),i=(e,s)=>t.post(`/wx/cascade/nodes/${e}/test-connection`,s),u=e=>t.get("/wx/cascade/sync-logs",{params:e}),l=e=>t.get("/wx/cascade/allocations",{params:e}),g=e=>{const s=e?`/wx/cascade/dispatch-task?task_id=${e}`:"/wx/cascade/dispatch-task";return t.post(s)},p=e=>t.get("/wx/cascade/feed-status",{params:e}),x=()=>t.get("/wx/cascade/pending-allocations");export{l as a,p as b,c,g as d,d as e,r as f,x as g,u as h,n as l,i as t,o as u};
import{R as t}from"./index.a8a038f4.js";const c=e=>t.post("/wx/cascade/nodes",e),n=e=>{const s={};return e!==void 0&&(s.node_type=e),t.get("/wx/cascade/nodes",{params:s})},o=(e,s)=>t.put(`/wx/cascade/nodes/${e}`,s),d=e=>t.delete(`/wx/cascade/nodes/${e}`),r=e=>t.post(`/wx/cascade/nodes/${e}/credentials`),i=(e,s)=>t.post(`/wx/cascade/nodes/${e}/test-connection`,s),u=e=>t.get("/wx/cascade/sync-logs",{params:e}),l=e=>t.get("/wx/cascade/allocations",{params:e}),g=e=>{const s=e?`/wx/cascade/dispatch-task?task_id=${e}`:"/wx/cascade/dispatch-task";return t.post(s)},p=e=>t.get("/wx/cascade/feed-status",{params:e}),x=()=>t.get("/wx/cascade/pending-allocations");export{l as a,p as b,c,g as d,d as e,r as f,x as g,u as h,n as l,i as t,o as u};
@@ -1,4 +1,4 @@
import{a9 as rt}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as rt}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as F}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as F}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as i}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as i}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as d}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as d}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as gt}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as gt}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{conf as t,language as e}from"./typescript.db900574.js";import"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{conf as t,language as e}from"./typescript.c1eb242f.js";import"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as Ot}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as Ot}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as d}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as d}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as d}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as d}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as a}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as a}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as s}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as s}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1 +1 @@
import{R as e}from"./index.a75a6e55.js";const o=t=>e.get("/wx/tags",{params:{offset:(t==null?void 0:t.offset)||0,limit:(t==null?void 0:t.limit)||100}}),n=t=>e.get(`/wx/tags/${t}`),u=t=>e.post("/wx/tags",t),c=(t,g)=>e.put(`/wx/tags/${t}`,g),i=t=>e.delete(`/wx/tags/${t}`);export{u as c,i as d,n as g,o as l,c as u};
import{R as e}from"./index.a8a038f4.js";const o=t=>e.get("/wx/tags",{params:{offset:(t==null?void 0:t.offset)||0,limit:(t==null?void 0:t.limit)||100}}),n=t=>e.get(`/wx/tags/${t}`),u=t=>e.post("/wx/tags",t),c=(t,g)=>e.put(`/wx/tags/${t}`,g),i=t=>e.delete(`/wx/tags/${t}`);export{u as c,i as d,n as g,o as l,c as u};
@@ -1,4 +1,4 @@
import{aa as M,a9 as N}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ah as M,ag as N}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as a}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as a}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as c}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as c}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{a9 as i}from"./index.a75a6e55.js";/*!-----------------------------------------------------------------------------
import{ag as i}from"./index.a8a038f4.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
+2 -2
View File
@@ -23,8 +23,8 @@
document.getElementsByTagName('head')[0].appendChild(meta)
})()
</script>
<script type="module" crossorigin src="/assets/index.a75a6e55.js"></script>
<link rel="stylesheet" href="/assets/index.cd4639c1.css">
<script type="module" crossorigin src="/assets/index.a8a038f4.js"></script>
<link rel="stylesheet" href="/assets/index.22b92f5b.css">
</head>
+1 -1
View File
@@ -49,7 +49,7 @@ document.addEventListener('DOMContentLoaded', function() {
});
// 页面加载时恢复主题
var savedTheme = localStorage.getItem('theme') || 'sepia';
var savedTheme = localStorage.getItem('theme') || 'default';
if (savedTheme !== 'default') {
document.documentElement.setAttribute('data-theme', savedTheme);
}