mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-26 00:00:59 +00:00
feat: Optimize frontend structure (#12475)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import http from '@/api';
|
||||
import { ResPage } from '@/api/interface';
|
||||
import { Alert } from '../interface/alert';
|
||||
import { deepCopy } from '@/utils/util';
|
||||
|
||||
import { deepCopy } from '@/utils/misc';
|
||||
export const SearchAlerts = (req: Alert.AlertSearch) => {
|
||||
return http.post<ResPage<Alert.AlertInfo>>(`/alert/search`, req);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import http from '@/api';
|
||||
import { deepCopy } from '@/utils/util';
|
||||
import { deepCopy } from '@/utils/misc';
|
||||
import { Base64 } from 'js-base64';
|
||||
import { ResPage } from '../interface';
|
||||
import { Backup } from '../interface/backup';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import http from '@/api';
|
||||
import { deepCopy } from '@/utils/util';
|
||||
import { deepCopy } from '@/utils/misc';
|
||||
import { Base64 } from 'js-base64';
|
||||
import { ResPage, DescriptionUpdate } from '../interface';
|
||||
import { Database } from '../interface/database';
|
||||
|
||||
@@ -2,7 +2,7 @@ import http from '@/api';
|
||||
import { ResPage, ReqPage } from '../interface';
|
||||
import { Host } from '../interface/host';
|
||||
import { TimeoutEnum } from '@/enums/http-enum';
|
||||
import { deepCopy } from '@/utils/util';
|
||||
import { deepCopy } from '@/utils/misc';
|
||||
import { Base64 } from 'js-base64';
|
||||
|
||||
// firewall
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import http from '@/api';
|
||||
import { deepCopy } from '@/utils/util';
|
||||
import { deepCopy } from '@/utils/misc';
|
||||
import { Base64 } from 'js-base64';
|
||||
import { ResPage, SearchWithPage, DescriptionUpdate, ReqPage } from '../interface';
|
||||
import { Setting } from '../interface/setting';
|
||||
|
||||
@@ -2,8 +2,7 @@ import http from '@/api';
|
||||
import { ResPage } from '../interface';
|
||||
import { Host } from '../interface/host';
|
||||
import { Base64 } from 'js-base64';
|
||||
import { deepCopy } from '@/utils/util';
|
||||
|
||||
import { deepCopy } from '@/utils/misc';
|
||||
export const searchHosts = (params: Host.SearchWithPage) => {
|
||||
return http.postLocalNode<ResPage<Host.Host>>(`/hosts/search`, params);
|
||||
};
|
||||
|
||||
@@ -3,8 +3,7 @@ import { ReqPage, ResPage, UpdateByFile } from '../interface';
|
||||
import { Toolbox } from '../interface/toolbox';
|
||||
import { Base64 } from 'js-base64';
|
||||
import { TimeoutEnum } from '@/enums/http-enum';
|
||||
import { deepCopy } from '@/utils/util';
|
||||
|
||||
import { deepCopy } from '@/utils/misc';
|
||||
// device
|
||||
export const getDeviceBase = () => {
|
||||
return http.post<Toolbox.DeviceBaseInfo>(`/toolbox/device/base`, {}, TimeoutEnum.T_60S);
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ReqPage, ResPage } from '../interface';
|
||||
import { Website } from '../interface/website';
|
||||
import { File } from '../interface/file';
|
||||
import { TimeoutEnum } from '@/enums/http-enum';
|
||||
import { deepCopy } from '@/utils/util';
|
||||
import { deepCopy } from '@/utils/misc';
|
||||
import { Base64 } from 'js-base64';
|
||||
|
||||
export const searchWebsites = (req: Website.WebSiteSearch, node?: string) => {
|
||||
|
||||
Reference in New Issue
Block a user