fix: can not paste a text in env vars input box

This commit is contained in:
jialin
2025-03-19 20:09:43 +08:00
parent 2ceefab18c
commit b8f58b2cc1
4 changed files with 28 additions and 53 deletions
+19 -1
View File
@@ -3,7 +3,8 @@ import HotKeys from '@/config/hotkeys';
import {
DeleteOutlined,
EditOutlined,
ExperimentOutlined
ExperimentOutlined,
ThunderboltOutlined
} from '@ant-design/icons';
import _ from 'lodash';
import React from 'react';
@@ -13,6 +14,7 @@ const icons = {
EditOutlined: React.createElement(EditOutlined),
ExperimentOutlined: React.createElement(ExperimentOutlined),
DeleteOutlined: React.createElement(DeleteOutlined),
ThunderboltOutlined: React.createElement(ThunderboltOutlined),
Stop: React.createElement(IconFont, { type: 'icon-stop1' }),
Play: React.createElement(IconFont, { type: 'icon-outline-play' }),
Catalog: React.createElement(IconFont, { type: 'icon-catalog' }),
@@ -184,6 +186,22 @@ export const setModelActionList = (record: any) => {
});
};
export const modelFileActions = [
{
label: 'common.button.deploy',
key: 'deploy',
icon: icons.ThunderboltOutlined
},
{
label: 'common.button.delete',
key: 'delete',
props: {
danger: true
},
icon: icons.DeleteOutlined
}
];
export const categoryToPathMap: Record<string, string> = {
[modelCategoriesMap.llm]: '/playground/chat',
[modelCategoriesMap.image]: '/playground/text-to-image',