feat(ui): System Tool

This commit is contained in:
web@ppanel
2024-12-16 21:03:37 +07:00
parent 4c67387eab
commit 1836980691
14 changed files with 269 additions and 3 deletions
+3 -1
View File
@@ -1,5 +1,5 @@
// @ts-ignore
/* eslint-disable */
// API 更新时间:
// API 唯一标识:
import * as announcement from './announcement';
@@ -11,6 +11,7 @@ import * as server from './server';
import * as subscribe from './subscribe';
import * as system from './system';
import * as ticket from './ticket';
import * as tool from './tool';
import * as user from './user';
export default {
announcement,
@@ -22,5 +23,6 @@ export default {
subscribe,
system,
ticket,
tool,
user,
};
+19
View File
@@ -0,0 +1,19 @@
// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';
/** Get System Log GET /v1/admin/tool/log */
export async function getSystemLog(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.LogResponse }>('/v1/admin/tool/log', {
method: 'GET',
...(options || {}),
});
}
/** Restart System GET /v1/admin/tool/restart */
export async function restartSystem(options?: { [key: string]: any }) {
return request<API.Response & { data?: any }>('/v1/admin/tool/restart', {
method: 'GET',
...(options || {}),
});
}
+4
View File
@@ -494,6 +494,10 @@ declare namespace API {
only_first_purchase: boolean;
};
type LogResponse = {
list: Record<string, any>;
};
type NodeConfig = {
node_secret: string;
node_pull_interval: number;