mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
6fe2e42490
close AF-1655
55 lines
1.0 KiB
TypeScript
55 lines
1.0 KiB
TypeScript
import type { DocCustomPropertyInfo } from '../db';
|
|
|
|
/**
|
|
* default built-in custom property, user can update and delete them
|
|
*
|
|
* 'id' and 'type' is request, 'index' is a manually maintained incremental key.
|
|
*/
|
|
export const BUILT_IN_CUSTOM_PROPERTY_TYPE = [
|
|
{
|
|
id: 'tags',
|
|
type: 'tags',
|
|
index: 'a0000001',
|
|
},
|
|
{
|
|
id: 'docPrimaryMode',
|
|
type: 'docPrimaryMode',
|
|
show: 'always-hide',
|
|
index: 'a0000002',
|
|
},
|
|
{
|
|
id: 'journal',
|
|
type: 'journal',
|
|
show: 'always-hide',
|
|
index: 'a0000003',
|
|
},
|
|
{
|
|
id: 'createdAt',
|
|
type: 'createdAt',
|
|
index: 'a0000004',
|
|
},
|
|
{
|
|
id: 'updatedAt',
|
|
type: 'updatedAt',
|
|
index: 'a0000005',
|
|
},
|
|
{
|
|
id: 'createdBy',
|
|
type: 'createdBy',
|
|
show: 'always-hide',
|
|
index: 'a0000006',
|
|
},
|
|
{
|
|
id: 'edgelessTheme',
|
|
type: 'edgelessTheme',
|
|
show: 'always-hide',
|
|
index: 'a0000007',
|
|
},
|
|
{
|
|
id: 'pageWidth',
|
|
type: 'pageWidth',
|
|
show: 'always-hide',
|
|
index: 'a0000008',
|
|
},
|
|
] as DocCustomPropertyInfo[];
|