style: workers page no page container

This commit is contained in:
jialin
2025-12-10 15:50:53 +08:00
parent 04f995b80c
commit dda2213593
5 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ export const DEFAULT_ENTER_PAGE = {
login: '/login'
};
export const GPUSTACK_API_BASE_URL = 'v1';
export const GPUSTACK_API_BASE_URL = 'v2';
export const OPENAI_COMPATIBLE = 'v1';
+1
View File
@@ -31,6 +31,7 @@ export function useUpdateChunkedList(options: {
cacheDataListRef.current = [...(options.dataList || [])];
}, [options.dataList]);
// use to clear the table row selection after delete
const setDeletedIds = (ids: number[]) => {
deletedIdsRef.current = new Set([...deletedIdsRef.current, ...ids]);
};
+1
View File
@@ -117,6 +117,7 @@ export const ExtraContent = (props: { isDarkTheme?: boolean }) => {
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(() => {
return (
initialState?.currentUser?.is_admin &&
+2 -1
View File
@@ -45,7 +45,8 @@ const NO_CONTAINER_PAGES = [
'image',
'text2images',
'clusterDetail',
'clusterCreate'
'clusterCreate',
'workers'
];
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 { convertFileSize } from '@/utils';
import {
CodeOutlined,
DeleteOutlined,
DownloadOutlined,
EditOutlined,
@@ -50,7 +49,7 @@ const ActionList = [
// key: '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',
key: 'delete',