feat: 更改npm包管理器默认地址, 以及 更改dump-load的file选项为必选 (#740)

Reviewed-on: daoyoucloud/tachycode#740
Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
bai.zixv 2024-04-17 12:14:33 +08:00 committed by sealday
parent 25418ffbde
commit 2ba865af2c
2 changed files with 7 additions and 3 deletions

View File

@ -96,13 +96,16 @@ export const PluginNpmForm: FC<IPluginNpmFormProps> = ({ onClose, isUpgrade, plu
registry: { registry: {
type: 'string', type: 'string',
title: "{{t('Registry url')}}", title: "{{t('Registry url')}}",
default: 'https://registry.npmjs.org/', default: 'https://npm.daoyoucloud.com/',
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-component': 'Input', 'x-component': 'Input',
// required: true, // required: true,
'x-decorator-props': { 'x-component-props': {
tooltip: 'Example: https://registry.npmjs.org/', placeholder: 'https://registry.npmjs.org/',
}, },
// 'x-decorator-props': {
// tooltip: 'Example: https://registry.npmjs.org/',
// },
}, },
authToken: { authToken: {
type: 'string', type: 'string',

View File

@ -220,6 +220,7 @@ const InsertMenuItems = (props) => {
file: { file: {
type: 'object', type: 'object',
title: '{{ t("File") }}', title: '{{ t("File") }}',
required: true,
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-component': 'Upload.Attachment', 'x-component': 'Upload.Attachment',
'x-component-props': { 'x-component-props': {