mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 20:57:26 +08:00
improve uptime (#1365)
This commit is contained in:
@@ -151,7 +151,7 @@
|
|||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div style="display: flex; flex-direction: column; gap: 1px; align-items: flex-start;">
|
<div style="display: flex; flex-direction: column; gap: 1px; align-items: flex-start;">
|
||||||
<el-tag v-if="row.version" size="small" style="font-size: 11px; padding: 1px 4px;">{{ row.version
|
<el-tag v-if="row.version" size="small" style="font-size: 11px; padding: 1px 4px;">{{ row.version
|
||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
<span v-else class="text-muted" style="font-size: 11px;">未知</span>
|
<span v-else class="text-muted" style="font-size: 11px;">未知</span>
|
||||||
<el-tag :type="row.allow_relay ? 'success' : 'info'" size="small"
|
<el-tag :type="row.allow_relay ? 'success' : 'info'" size="small"
|
||||||
style="font-size: 9px; padding: 1px 3px;">
|
style="font-size: 9px; padding: 1px 3px;">
|
||||||
@@ -281,7 +281,7 @@ import {
|
|||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const nodes = ref([])
|
const nodes = ref([])
|
||||||
const searchText = ref('')
|
const searchText = ref('')
|
||||||
const statusFilter = ref('true')
|
const statusFilter = ref('')
|
||||||
const protocolFilter = ref('')
|
const protocolFilter = ref('')
|
||||||
const detailDialogVisible = ref(false)
|
const detailDialogVisible = ref(false)
|
||||||
const selectedNode = ref(null)
|
const selectedNode = ref(null)
|
||||||
@@ -292,7 +292,7 @@ const apiUrl = ref(window.location.href)
|
|||||||
// 分页数据
|
// 分页数据
|
||||||
const pagination = reactive({
|
const pagination = reactive({
|
||||||
page: 1,
|
page: 1,
|
||||||
per_page: 20,
|
per_page: 50,
|
||||||
total: 0
|
total: 0
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ pub async fn admin_get_nodes(
|
|||||||
verify_admin_token(&headers)?;
|
verify_admin_token(&headers)?;
|
||||||
|
|
||||||
let page = pagination.page.unwrap_or(1);
|
let page = pagination.page.unwrap_or(1);
|
||||||
let per_page = pagination.per_page.unwrap_or(20);
|
let per_page = pagination.per_page.unwrap_or(200);
|
||||||
let offset = (page - 1) * per_page;
|
let offset = (page - 1) * per_page;
|
||||||
|
|
||||||
let mut query = entity::shared_nodes::Entity::find();
|
let mut query = entity::shared_nodes::Entity::find();
|
||||||
|
|||||||
@@ -436,7 +436,7 @@ impl HealthChecker {
|
|||||||
);
|
);
|
||||||
|
|
||||||
self.instance_mgr
|
self.instance_mgr
|
||||||
.run_network_instance(cfg.clone(), ConfigSource::FFI)
|
.run_network_instance(cfg.clone(), ConfigSource::Web)
|
||||||
.with_context(|| "failed to run network instance")?;
|
.with_context(|| "failed to run network instance")?;
|
||||||
self.inst_id_map.insert(node_id, cfg.get_id());
|
self.inst_id_map.insert(node_id, cfg.get_id());
|
||||||
|
|
||||||
@@ -650,7 +650,7 @@ impl HealthChecker {
|
|||||||
node_id,
|
node_id,
|
||||||
HealthStatus::Unhealthy,
|
HealthStatus::Unhealthy,
|
||||||
None,
|
None,
|
||||||
Some(e.to_string()),
|
Some(format!("inst id: {}, err: {}", inst_id, e)),
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user