mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 03:49:56 +08:00
refactor(core): doc property (#8465)
doc property upgraded to use orm. The visibility of the property are simplified to three types: `always show`, `always hide`, `hide when empty`, and the default is `always show`.  Added a sidebar view to manage properties  new property ui in workspace settings  Property lists can be collapsed 
This commit is contained in:
@@ -6,7 +6,7 @@ import type { DataValidator } from './types';
|
||||
function inputType(val: any) {
|
||||
return val === null ||
|
||||
Array.isArray(val) ||
|
||||
val.constructor === 'Object' ||
|
||||
val.constructor === Object ||
|
||||
!val.constructor /* Object.create(null) */
|
||||
? 'json'
|
||||
: typeof val;
|
||||
|
||||
Reference in New Issue
Block a user