Skip to content

Commit

Permalink
admin home
Browse files Browse the repository at this point in the history
  • Loading branch information
lizongying committed Nov 17, 2023
1 parent 47f4725 commit 8c69b46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 0 additions & 8 deletions web/ui/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,15 @@
<a-row style="margin: 15px">
<a-col :span="4">
<a-statistic :value="nodesStore.Count" title="Total Nodes"/>
<br>
<a-statistic :value="nodesStore.CountActive" title="Active Nodes"/>
</a-col>
<a-col :span="4">
<a-statistic :value="nodesStore.CountSpider" title="Total Spiders"/>
<br>
<a-statistic :value="nodesStore.CountSpider" title="Enable Spiders"/>
</a-col>
<a-col :span="4">
<a-statistic :value="nodesStore.CountJob" title="Total Jobs"/>
<br>
<a-statistic :value="nodesStore.CountJob" title="Enable Jobs"/>
</a-col>
<a-col :span="4">
<a-statistic :value="nodesStore.CountTask" title="Total Tasks"/>
<br>
<a-statistic :value="nodesStore.CountTask" title="Success Tasks"/>
</a-col>
<a-col :span="4">
<a-statistic :value="nodesStore.CountRecord" title="Total Record"/>
Expand Down
8 changes: 4 additions & 4 deletions web/ui/src/views/RecordsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ const showDrawer = record => {
open.value = true;
more.data = JSON.stringify(JSON.parse(record.data), null, 2)
.replace(/(".*?":)/g, '<span class="key">$1</span>')
.replace(/: "([^"]+)"\n/g, ': "<span class="string">$1</span>":')
.replace(/: \b(\d+)\b\n/g, ': <span class="number">$1</span>')
.replace(/: \b(true|false)\b\n/g, ': <span class="boolean">$1</span>')
.replace(/: \b(null)\b\n/g, ': <span class="null">$1</span>');
.replace(/: "([^"]+)"[\n,]/g, ': "<span class="string">$1</span>":')
.replace(/: \b(\d+)\b[\n,]/g, ': <span class="number">$1</span>')
.replace(/: \b(true|false)\b[\n,]/g, ': <span class="boolean">$1</span>')
.replace(/: \b(null)\b[\n,]/g, ': <span class="null">$1</span>');
};
const activeKey = ref('1');
Expand Down

0 comments on commit 8c69b46

Please sign in to comment.