Add sync front component (#17748)
## Context Allow twenty apps to sync front components
This commit is contained in:
+8
@@ -11,6 +11,10 @@ type FrontComponentSeed = {
|
||||
workspaceId: string;
|
||||
universalIdentifier: string;
|
||||
applicationId: string;
|
||||
sourceComponentPath: string;
|
||||
builtComponentPath: string;
|
||||
componentName: string;
|
||||
builtComponentChecksum: string;
|
||||
};
|
||||
|
||||
type CommandMenuItemSeed = {
|
||||
@@ -48,6 +52,10 @@ export const getFrontComponentAndCommandMenuItemDataSeeds = (
|
||||
workspaceId,
|
||||
universalIdentifier: frontComponentId,
|
||||
applicationId,
|
||||
sourceComponentPath: 'src/front-components/demo-app.tsx',
|
||||
builtComponentPath: 'src/front-components/demo-app.mjs',
|
||||
componentName: 'DemoApp',
|
||||
builtComponentChecksum: '1234567890',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
+8
@@ -28,6 +28,10 @@ export const seedFrontComponentsAndCommandMenuItems = async ({
|
||||
'workspaceId',
|
||||
'universalIdentifier',
|
||||
'applicationId',
|
||||
'sourceComponentPath',
|
||||
'builtComponentPath',
|
||||
'componentName',
|
||||
'builtComponentChecksum',
|
||||
])
|
||||
.values(
|
||||
frontComponents.map((row) => ({
|
||||
@@ -36,6 +40,10 @@ export const seedFrontComponentsAndCommandMenuItems = async ({
|
||||
workspaceId: row.workspaceId,
|
||||
universalIdentifier: row.universalIdentifier,
|
||||
applicationId: row.applicationId,
|
||||
sourceComponentPath: row.sourceComponentPath,
|
||||
builtComponentPath: row.builtComponentPath,
|
||||
componentName: row.componentName,
|
||||
builtComponentChecksum: row.builtComponentChecksum,
|
||||
})),
|
||||
)
|
||||
.orIgnore()
|
||||
|
||||
Reference in New Issue
Block a user