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:
parent
25418ffbde
commit
2ba865af2c
@ -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',
|
||||||
|
@ -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': {
|
||||||
|
Loading…
Reference in New Issue
Block a user