This commit is contained in:
2025-11-14 14:47:26 +00:00
parent 69ecf2c7c1
commit 3b4876793e
104 changed files with 231517 additions and 1029 deletions
@@ -14,8 +14,8 @@ const stateProps = T.object({
const graphBaseProps = {
...baseShapeProps,
__primarylabel__: T.string,
unique_id: T.string,
tldraw_snapshot: T.string,
uuid_string: T.string,
node_storage_path: T.string,
created: T.string,
merged: T.string,
state: T.optional(stateProps.nullable()),
@@ -84,9 +84,8 @@ export const ccGraphShapeProps = {
},
'cc-school-node': {
...graphBaseProps,
school_uuid: T.string,
school_name: T.string,
school_website: T.string,
name: T.string,
website: T.string,
},
'cc-department-node': {
...graphBaseProps,
@@ -283,8 +282,8 @@ export const getDefaultBaseProps = () => ({
backgroundColor: '#f0f0f0' as string,
title: 'Untitled' as string,
isLocked: false as boolean,
unique_id: '' as string,
tldraw_snapshot: '' as string,
uuid_string: '' as string,
node_storage_path: '' as string,
created: '' as string,
merged: '' as string,
state: {
@@ -383,9 +382,8 @@ export const getDefaultCCSchoolNodeProps = () => ({
...getDefaultBaseProps(),
title: 'School',
__primarylabel__: 'School',
school_uuid: '',
school_name: '',
school_website: '',
name: '',
website: '',
})
export const getDefaultCCDepartmentNodeProps = () => ({
@@ -642,16 +640,3 @@ export const getDefaultCCUserTeacherTimetableNodeProps = () => ({
school_db_name: '',
school_timetable_id: '',
})
export const getDefaultCCUserTimetableLessonNodeProps = () => ({
...getDefaultBaseProps(),
title: 'User Timetable Lesson',
__primarylabel__: 'UserTimetableLesson',
subject_class: '',
date: '',
start_time: '',
end_time: '',
period_code: '',
school_db_name: '',
school_period_id: '',
})