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: {
 | 
			
		||||
              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',
 | 
			
		||||
 | 
			
		||||
@ -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': {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user