tachybase_todo/packages/plugins/system-settings/src/collections/systemSettings.ts
chenos 4427c70087
feat: compact theme (#1574)
* feat: compact theme

* fix: theme

* fix: styling

* fix: margin

* feat: improve

* fix: remove console.log
2023-03-19 23:40:11 +08:00

47 lines
826 B
TypeScript

import { defineCollection } from '@nocobase/database';
export default defineCollection({
namespace: 'system-settings.systemSettings',
duplicator: 'optional',
name: 'systemSettings',
fields: [
{
type: 'string',
name: 'title',
},
{
type: 'boolean',
name: 'showLogoOnly',
},
{
type: 'boolean',
name: 'allowSignUp',
defaultValue: true,
},
{
type: 'boolean',
name: 'smsAuthEnabled',
defaultValue: false,
},
{
type: 'belongsTo',
name: 'logo',
target: 'attachments',
},
{
type: 'json',
name: 'enabledLanguages',
defaultValue: [],
},
{
type: 'string',
name: 'appLang',
},
{
type: 'json',
name: 'options',
defaultValue: {},
},
],
});