feat: improve storage options
This commit is contained in:
parent
b511ef3d8f
commit
8acba12025
@ -11,6 +11,14 @@ const schema = {
|
||||
type: 'string',
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Input',
|
||||
default: 'uploads',
|
||||
},
|
||||
serve: {
|
||||
type: 'string',
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Checkbox',
|
||||
'x-content': '{{t("Use the built-in static file server")}}',
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -34,7 +42,7 @@ const schema = {
|
||||
title: '{{t("AccessKey Secret")}}',
|
||||
type: 'string',
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Input',
|
||||
'x-component': 'Password',
|
||||
required: true,
|
||||
},
|
||||
bucket: {
|
||||
@ -66,7 +74,7 @@ const schema = {
|
||||
title: '{{t("AccessKey Secret")}}',
|
||||
type: 'string',
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Input',
|
||||
'x-component': 'Password',
|
||||
required: true,
|
||||
},
|
||||
bucket: {
|
||||
|
@ -160,7 +160,6 @@ export const storageSchema: ISchema = {
|
||||
options: {
|
||||
type: 'object',
|
||||
'x-component': 'StorageOptions',
|
||||
'x-decorator': 'FormItem',
|
||||
},
|
||||
default: {
|
||||
'x-component': 'CollectionField',
|
||||
@ -293,7 +292,6 @@ export const storageSchema: ISchema = {
|
||||
options: {
|
||||
type: 'object',
|
||||
'x-component': 'StorageOptions',
|
||||
'x-decorator': 'FormItem',
|
||||
},
|
||||
default: {
|
||||
title: '',
|
||||
|
@ -390,4 +390,9 @@ export default {
|
||||
'Add storage': '添加文件存储',
|
||||
'Edit storage': '编辑文件存储',
|
||||
'Storage base URL': 'Base URL',
|
||||
'Destination': '文件路径',
|
||||
'Use the built-in static file server': '使用内置静态文件服务',
|
||||
'Local storage': '本地存储',
|
||||
'Aliyun OSS': '阿里云 OSS',
|
||||
'Amazon S3': '亚马逊 S3',
|
||||
}
|
||||
|
@ -9,11 +9,11 @@ import { i18n, InitOptions } from 'i18next';
|
||||
import Koa from 'koa';
|
||||
import { isBoolean } from 'lodash';
|
||||
import { createACL } from './acl';
|
||||
import { AppManager } from './app-manager';
|
||||
import { createCli } from './commands';
|
||||
import { createDatabase, createI18n, createResourcer, registerMiddlewares } from './helper';
|
||||
import { Plugin } from './plugin';
|
||||
import { PluginManager, InstallOptions } from './plugin-manager';
|
||||
import { AppManager } from './app-manager';
|
||||
import { InstallOptions, PluginManager } from './plugin-manager';
|
||||
|
||||
export type PluginConfiguration = string | [string, any];
|
||||
export type PluginsConfigurations = Array<PluginConfiguration>;
|
||||
|
Loading…
Reference in New Issue
Block a user