* chore: skip yarn install in pm command * feat: dump sub app by sub app name * feat: dump & restore by sub app * chore: enable application name to edit * chore: field belongsTo uiSchema * test: drop schema * feat: uiSchema migrator * fix: test * fix: remove uiSchema * fix: rerun migration * chore: migrate fieldsHistory uiSchema * fix: set uiSchema options * chore: transaction params * fix: sql error in mysql * fix: sql compatibility * feat: collection group api * chore: restore & dump action template * chore: tmp commit * chore: collectionGroupAction * feat: dumpableCollection api * refactor: dump command * fix: remove uiSchemaUid * chore: get uiSchemaUid from tmp field * feat: return dumped file url in dumper.dump * feat: dump api * refactor: collection groyoup * chore: comment * feat: restore command force option * feat: dump with collection groups * refactor: restore command * feat: restore http api * fix: test * fix: test * fix: restore test * chore: volta pin * fix: sub app load collection options * fix: stop sub app * feat: add stopped status to application to prevent duplicate application stop * chore: tmp commit * test: upgrade * feat: pass upgrade event to sub app * fix: app manager client * fix: remove stopped status * fix: emit beforeStop event * feat: support dump & restore subApp through api * chore: dumpable collections api * refactor: getTableNameWithSchema * fix: schema name * feat: cname * refactor: collection 同步实现方式 * refactor: move collection group manager to database * fix: test * fix: remove uiSchema * fix: uiSchema * fix: remove settings * chore: plugin enable & disable event * feat: modal warning * fix: users_jobs namespace * fix: rolesUischemas namespace * fix: am snippet * feat: beforeSubAppInstall event * fix: improve NOCOBASE_LOCALE_KEY & NOCOBASE_ROLE_KEY --------- Co-authored-by: chenos <chenlinxh@gmail.com>
64 lines
1.3 KiB
TypeScript
64 lines
1.3 KiB
TypeScript
import { CollectionOptions } from '@nocobase/database';
|
|
|
|
export default {
|
|
namespace: 'file-manager.storageSetting',
|
|
duplicator: 'optional',
|
|
name: 'storages',
|
|
title: '存储引擎',
|
|
fields: [
|
|
{
|
|
title: '存储引擎名称',
|
|
comment: '存储引擎名称',
|
|
type: 'string',
|
|
name: 'title',
|
|
},
|
|
{
|
|
title: '英文标识',
|
|
// comment: '英文标识,用于代码层面配置',
|
|
type: 'string',
|
|
name: 'name',
|
|
unique: true,
|
|
},
|
|
{
|
|
comment: '类型标识,如 local/ali-oss 等',
|
|
type: 'string',
|
|
name: 'type',
|
|
},
|
|
{
|
|
comment: '配置项',
|
|
type: 'jsonb',
|
|
name: 'options',
|
|
defaultValue: {},
|
|
},
|
|
{
|
|
comment: '文件规则',
|
|
type: 'jsonb',
|
|
name: 'rules',
|
|
defaultValue: {},
|
|
},
|
|
{
|
|
comment: '存储相对路径模板',
|
|
type: 'string',
|
|
name: 'path',
|
|
defaultValue: '',
|
|
},
|
|
{
|
|
comment: '访问地址前缀',
|
|
type: 'string',
|
|
name: 'baseUrl',
|
|
defaultValue: '',
|
|
},
|
|
// TODO(feature): 需要使用一个实现了可设置默认值的字段
|
|
{
|
|
comment: '默认引擎',
|
|
type: 'radio',
|
|
name: 'default',
|
|
defaultValue: false,
|
|
},
|
|
{
|
|
type: 'hasMany',
|
|
name: 'attachments',
|
|
},
|
|
],
|
|
} as CollectionOptions;
|