style: прогнать prettier по frontend
This commit is contained in:
@@ -23,7 +23,9 @@ export function getAdminInfoApi(): AxiosPromise<AdminInfo> {
|
||||
});
|
||||
}
|
||||
|
||||
export function adminChangePasswordApi(data: AdminChangePasswordDto): AxiosPromise {
|
||||
export function adminChangePasswordApi(
|
||||
data: AdminChangePasswordDto
|
||||
): AxiosPromise {
|
||||
return request({
|
||||
url: "/admin/change-password",
|
||||
method: "post",
|
||||
|
||||
@@ -24,4 +24,3 @@ export interface AdminChangePasswordDto {
|
||||
export interface AdminSecurityVo {
|
||||
forcePasswordChange: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -110,5 +110,3 @@ export function uploadCertFileApi(data: FormData): AxiosPromise<string> {
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -300,5 +300,3 @@ export interface Hysteria2AcmePathVo {
|
||||
crtPath: string;
|
||||
keyPath: string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,9 @@ export function dashboardSummaryApi(): AxiosPromise<DashboardSummaryVo> {
|
||||
});
|
||||
}
|
||||
|
||||
export function dashboardTimeseriesApi(range = "24h"): AxiosPromise<DashboardTimeseriesVo> {
|
||||
export function dashboardTimeseriesApi(
|
||||
range = "24h"
|
||||
): AxiosPromise<DashboardTimeseriesVo> {
|
||||
return request({
|
||||
url: "/dashboard/timeseries",
|
||||
method: "get",
|
||||
@@ -22,7 +24,10 @@ export function dashboardTimeseriesApi(range = "24h"): AxiosPromise<DashboardTim
|
||||
});
|
||||
}
|
||||
|
||||
export function dashboardTopPeersApi(range = "24h", limit = 10): AxiosPromise<DashboardTopPeerVo[]> {
|
||||
export function dashboardTopPeersApi(
|
||||
range = "24h",
|
||||
limit = 10
|
||||
): AxiosPromise<DashboardTopPeerVo[]> {
|
||||
return request({
|
||||
url: "/dashboard/top-peers",
|
||||
method: "get",
|
||||
@@ -36,4 +41,3 @@ export function dashboardSecurityApi(): AxiosPromise<SecurityRiskVo[]> {
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -69,4 +69,3 @@ export interface DashboardTopPeerVo {
|
||||
upload: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,5 +33,3 @@ export function exportLogApi(data: LogExportDto): AxiosPromise {
|
||||
responseType: "blob",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,5 +22,3 @@ export interface LogHysteria2Vo {
|
||||
msg: string;
|
||||
time: string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -96,4 +96,3 @@ export function exportPeerApi(): AxiosPromise {
|
||||
responseType: "blob",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user