style: workers page no page container
This commit is contained in:
@@ -7,5 +7,5 @@ export const DEFAULT_ENTER_PAGE = {
|
|||||||
login: '/login'
|
login: '/login'
|
||||||
};
|
};
|
||||||
|
|
||||||
export const GPUSTACK_API_BASE_URL = 'v1';
|
export const GPUSTACK_API_BASE_URL = 'v2';
|
||||||
export const OPENAI_COMPATIBLE = 'v1';
|
export const OPENAI_COMPATIBLE = 'v1';
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ export function useUpdateChunkedList(options: {
|
|||||||
cacheDataListRef.current = [...(options.dataList || [])];
|
cacheDataListRef.current = [...(options.dataList || [])];
|
||||||
}, [options.dataList]);
|
}, [options.dataList]);
|
||||||
|
|
||||||
|
// use to clear the table row selection after delete
|
||||||
const setDeletedIds = (ids: number[]) => {
|
const setDeletedIds = (ids: number[]) => {
|
||||||
deletedIdsRef.current = new Set([...deletedIdsRef.current, ...ids]);
|
deletedIdsRef.current = new Set([...deletedIdsRef.current, ...ids]);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ export const ExtraContent = (props: { isDarkTheme?: boolean }) => {
|
|||||||
|
|
||||||
const loginPath = DEFAULT_ENTER_PAGE.login;
|
const loginPath = DEFAULT_ENTER_PAGE.login;
|
||||||
|
|
||||||
|
// only admin can see upgrade info, and current version is a prod version(exclude dev/rc)
|
||||||
const showUpgrade = useMemo(() => {
|
const showUpgrade = useMemo(() => {
|
||||||
return (
|
return (
|
||||||
initialState?.currentUser?.is_admin &&
|
initialState?.currentUser?.is_admin &&
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ const NO_CONTAINER_PAGES = [
|
|||||||
'image',
|
'image',
|
||||||
'text2images',
|
'text2images',
|
||||||
'clusterDetail',
|
'clusterDetail',
|
||||||
'clusterCreate'
|
'clusterCreate',
|
||||||
|
'workers'
|
||||||
];
|
];
|
||||||
|
|
||||||
const loginPath = DEFAULT_ENTER_PAGE.login;
|
const loginPath = DEFAULT_ENTER_PAGE.login;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import InfoColumn from '@/components/simple-table/info-column';
|
|||||||
import StatusTag from '@/components/status-tag';
|
import StatusTag from '@/components/status-tag';
|
||||||
import { convertFileSize } from '@/utils';
|
import { convertFileSize } from '@/utils';
|
||||||
import {
|
import {
|
||||||
CodeOutlined,
|
|
||||||
DeleteOutlined,
|
DeleteOutlined,
|
||||||
DownloadOutlined,
|
DownloadOutlined,
|
||||||
EditOutlined,
|
EditOutlined,
|
||||||
@@ -50,7 +49,7 @@ const ActionList = [
|
|||||||
// key: 'logs',
|
// key: 'logs',
|
||||||
// icon: <IconFont type="icon-logs" />
|
// icon: <IconFont type="icon-logs" />
|
||||||
// },
|
// },
|
||||||
{ label: 'common.button.terminal', key: 'terminal', icon: <CodeOutlined /> },
|
// { label: 'common.button.terminal', key: 'terminal', icon: <CodeOutlined /> },
|
||||||
{
|
{
|
||||||
label: 'common.button.delete',
|
label: 'common.button.delete',
|
||||||
key: 'delete',
|
key: 'delete',
|
||||||
|
|||||||
Reference in New Issue
Block a user