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: {
type: 'string',
title: "{{t('Registry url')}}",
default: 'https://registry.npmjs.org/',
default: 'https://npm.daoyoucloud.com/',
'x-decorator': 'FormItem',
'x-component': 'Input',
// required: true,
'x-decorator-props': {
tooltip: 'Example: https://registry.npmjs.org/',
'x-component-props': {
placeholder: 'https://registry.npmjs.org/',
},
// 'x-decorator-props': {
// tooltip: 'Example: https://registry.npmjs.org/',
// },
},
authToken: {
type: 'string',

View File

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