create-twenty-app 2.40.0 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +48 -49
- package/dist/cli.mjs +10186 -12483
- package/dist/constants/template/SETUP.md +3 -0
- package/dist/constants/template/package.json +1 -1
- package/dist/constants/template/src/constants/universal-identifiers.ts +1 -0
- package/dist/constants/template/src/front-components/main-page.tsx +6 -10
- package/dist/constants/template/src/logic-functions/health-check.ts +11 -0
- package/dist/constants/template/yarn.lock +3439 -2
- package/dist/constants/template-packages.d.ts +1 -0
- package/dist/scripts/generate-template-lock.d.ts +1 -0
- package/package.json +5 -3
- package/src/constants/template/package.json +1 -1
|
@@ -2,6 +2,7 @@ export const APP_DISPLAY_NAME = 'DISPLAY-NAME-TO-BE-GENERATED';
|
|
|
2
2
|
export const APP_DESCRIPTION = 'DESCRIPTION-TO-BE-GENERATED';
|
|
3
3
|
export const APPLICATION_UNIVERSAL_IDENTIFIER = 'UUID-TO-BE-GENERATED';
|
|
4
4
|
export const DEFAULT_ROLE_UNIVERSAL_IDENTIFIER = 'UUID-TO-BE-GENERATED';
|
|
5
|
+
export const HEALTH_CHECK_UNIVERSAL_IDENTIFIER = 'UUID-TO-BE-GENERATED';
|
|
5
6
|
export const MAIN_PAGE_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =
|
|
6
7
|
'UUID-TO-BE-GENERATED';
|
|
7
8
|
export const MAIN_PAGE_LAYOUT_UNIVERSAL_IDENTIFIER = 'UUID-TO-BE-GENERATED';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineFrontComponent } from 'twenty-sdk/define';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { Avatar } from 'twenty-ui/data-display';
|
|
3
|
+
import { Avatar } from 'twenty-ui/primitives/data-display';
|
|
4
4
|
import {
|
|
5
5
|
IconBox,
|
|
6
6
|
IconHierarchy,
|
|
@@ -93,13 +93,13 @@ const CategoryCard = ({
|
|
|
93
93
|
|
|
94
94
|
const CategoryIcon = () => {
|
|
95
95
|
if (title === 'Data model') {
|
|
96
|
-
return <IconHierarchy color={color} size=
|
|
96
|
+
return <IconHierarchy color={color} size="20px" />;
|
|
97
97
|
}
|
|
98
98
|
if (title === 'Logic') {
|
|
99
|
-
return <IconSettingsAutomation color={color} size=
|
|
99
|
+
return <IconSettingsAutomation color={color} size="20px" />;
|
|
100
100
|
}
|
|
101
101
|
if (title === 'Layout') {
|
|
102
|
-
return <IconLayout color={color} size=
|
|
102
|
+
return <IconLayout color={color} size="20px" />;
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
|
|
@@ -168,7 +168,7 @@ const CategoryCard = ({
|
|
|
168
168
|
transition: 'background 0.15s',
|
|
169
169
|
}}
|
|
170
170
|
>
|
|
171
|
-
<IconBox color={color} size=
|
|
171
|
+
<IconBox color={color} size="20px" />
|
|
172
172
|
<span
|
|
173
173
|
style={{
|
|
174
174
|
fontSize: '13px',
|
|
@@ -204,11 +204,7 @@ const MainPage = () => {
|
|
|
204
204
|
padding: '40px',
|
|
205
205
|
}}
|
|
206
206
|
>
|
|
207
|
-
<Avatar
|
|
208
|
-
placeholder={APP_DISPLAY_NAME}
|
|
209
|
-
placeholderColorSeed={APP_DISPLAY_NAME}
|
|
210
|
-
size="xl"
|
|
211
|
-
/>
|
|
207
|
+
<Avatar name={APP_DISPLAY_NAME} colorSeed={APP_DISPLAY_NAME} size="xl" />
|
|
212
208
|
<span
|
|
213
209
|
style={{
|
|
214
210
|
fontSize: '24px',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineHealthCheck } from 'twenty-sdk/define';
|
|
2
|
+
|
|
3
|
+
import { HEALTH_CHECK_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
|
|
4
|
+
|
|
5
|
+
export default defineHealthCheck({
|
|
6
|
+
universalIdentifier: HEALTH_CHECK_UNIVERSAL_IDENTIFIER,
|
|
7
|
+
name: 'health-check',
|
|
8
|
+
handler: async () => {
|
|
9
|
+
return { status: 'OK' };
|
|
10
|
+
},
|
|
11
|
+
});
|