build: sync config

This commit is contained in:
jialin
2026-04-24 14:28:30 +08:00
committed by jialin
parent 48b357b1c6
commit 6c161c6ae7
55 changed files with 731 additions and 90 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { StatusMaps } from '@/config';
import { StatusType } from '@/config/types';
import icons from '@gpustack/core-ui/lib/components/icon-font/icons';
import { icons } from '@gpustack/core-ui';
export const TargetStatusValueMap: Record<string, string> = {
Active: 'active',
+8 -4
View File
@@ -1,10 +1,14 @@
import { PageAction } from '@/config';
import { PageActionType } from '@/config/types';
import { modelCategoriesMap } from '@/pages/llmodels/config';
import { CollapsePanel, IconFont, ScrollSpyTabs } from '@gpustack/core-ui';
import { useWrapperContext } from '@gpustack/core-ui/lib/components/column-wrapper/use-wrapper-context';
import useFinishFailed from '@gpustack/core-ui/lib/components/scroll-spy-tabs/use-finish-failed';
import useScrollActiveChange from '@gpustack/core-ui/lib/components/scroll-spy-tabs/use-scroll-active-change';
import {
CollapsePanel,
IconFont,
ScrollSpyTabs,
useFinishFailed,
useScrollActiveChange,
useWrapperContext
} from '@gpustack/core-ui';
import { useIntl } from '@umijs/max';
import { Form } from 'antd';
import _ from 'lodash';
@@ -1,8 +1,11 @@
// columns.ts
import { tableSorter } from '@/config/settings';
import ModelTag from '@/pages/_components/model-tag';
import { AutoTooltip, DropdownButtons } from '@gpustack/core-ui';
import { type ColumnProps } from '@gpustack/core-ui/lib/components/table/types';
import {
AutoTooltip,
DropdownButtons,
type TableColumnProps
} from '@gpustack/core-ui';
import { useIntl } from '@umijs/max';
import dayjs from 'dayjs';
import { useMemo } from 'react';
@@ -11,7 +14,7 @@ import { RouteItem } from '../config/types';
const useAccessColumns = (
handleSelect: (val: string, record: RouteItem) => void,
onCellClick?: (record: RouteItem, dataIndex: string) => void
): ColumnProps[] => {
): TableColumnProps[] => {
const intl = useIntl();
const filterActions = (record: RouteItem) => {
+1 -1
View File
@@ -11,9 +11,9 @@ import {
FilterBar,
IconFont,
Table as SealTable,
TableOrder,
TableProvider
} from '@gpustack/core-ui';
import { TableOrder } from '@gpustack/core-ui/lib/components/table/types';
import { useIntl } from '@umijs/max';
import { useMemoizedFn } from 'ahooks';
import { message } from 'antd';