@jtl-software/cloud-app-template-frontend-react 0.0.9 → 0.0.11
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/CHANGELOG.md +12 -0
- package/manifest.json +98 -58
- package/package.json +1 -1
- package/src/pages/graphql-demo-page/GraphqlDemoPage.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @jtl/cloud-app-template-frontend-react
|
|
2
2
|
|
|
3
|
+
## 0.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#34](https://github.com/jtl-software/cloud-apps-cli/pull/34) [`1c507dc`](https://github.com/jtl-software/cloud-apps-cli/commit/1c507dc1ff40e84a6a4869012e6849c15156de29) Thanks [@tobilen](https://github.com/tobilen)! - Update to manifest 2.0
|
|
8
|
+
|
|
9
|
+
## 0.0.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#30](https://github.com/jtl-software/cloud-apps-cli/pull/30) [`9561b1c`](https://github.com/jtl-software/cloud-apps-cli/commit/9561b1c291d4df54ba02e71066470250cefea251) Thanks [@Mr-Malomz](https://github.com/Mr-Malomz)! - hotfix: Fix build error in the GraphQLDemo page
|
|
14
|
+
|
|
3
15
|
## 0.0.9
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/manifest.json
CHANGED
|
@@ -1,64 +1,104 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"description": {
|
|
9
|
-
"short": "{{APP_DESCRIPTION}}",
|
|
10
|
-
"full": "{{APP_DESCRIPTION}}"
|
|
11
|
-
},
|
|
12
|
-
"defaultLocale": "de-DE",
|
|
13
|
-
"locales": {
|
|
14
|
-
"de-DE": {},
|
|
15
|
-
"en": {}
|
|
16
|
-
},
|
|
17
|
-
"icon": {
|
|
18
|
-
"light": "https://hub.jtl-cloud.com/assets/image-placeholder.png",
|
|
19
|
-
"dark": "https://hub.jtl-cloud.com/assets/image-placeholder.png"
|
|
20
|
-
},
|
|
21
|
-
"communication": {
|
|
22
|
-
"supportUrl": "https://example.com/support-for-app-xy",
|
|
23
|
-
"guideUrl": "https://example.com/guide-for-app-xy"
|
|
24
|
-
},
|
|
25
|
-
"legal": {
|
|
26
|
-
"gdprRequestUrl": "https://example.com/gdpr/request",
|
|
27
|
-
"gdprDeleteUrl": "https://example.com/gdpr/delete",
|
|
28
|
-
"privacyUrl": "https://example.com/privacy",
|
|
29
|
-
"termsOfUseUrl": "https://example.com/terms-of-use"
|
|
30
|
-
},
|
|
31
|
-
"lifecycle": {
|
|
32
|
-
"setupUrl": "http://localhost:3004/setup"
|
|
33
|
-
},
|
|
34
|
-
"capabilities": {
|
|
35
|
-
"hub": {
|
|
36
|
-
"appLauncher": {
|
|
37
|
-
"redirectUrl": "http://localhost:3004/hub",
|
|
38
|
-
"closedPreviewUrl": "http://localhost:3004/hub"
|
|
39
|
-
}
|
|
2
|
+
"manifest": {
|
|
3
|
+
"manifestVersion": "1.0.0",
|
|
4
|
+
"technicalName": "{{APP_TECHNICAL_NAME}}",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"requirements": {
|
|
7
|
+
"minCloudApiVersion": "1.0.0"
|
|
40
8
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"id": "{{APP_NAME}}-graphql-demo",
|
|
50
|
-
"name": "GraphQL Demo",
|
|
51
|
-
"url": "http://localhost:3004/graphql-demo"
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"pane": [
|
|
55
|
-
{
|
|
56
|
-
"url": "http://localhost:3004/pane",
|
|
57
|
-
"title": "{{APP_NAME}}",
|
|
58
|
-
"context": "customers",
|
|
59
|
-
"matchChildContext": true
|
|
9
|
+
"lifecycle": {
|
|
10
|
+
"configurationUrl": "http://localhost:3004/setup"
|
|
11
|
+
},
|
|
12
|
+
"capabilities": {
|
|
13
|
+
"hub": {
|
|
14
|
+
"appLauncher": {
|
|
15
|
+
"redirectUrl": "http://localhost:3004/hub",
|
|
16
|
+
"closedPreviewUrl": "http://localhost:3004/hub"
|
|
60
17
|
}
|
|
61
|
-
|
|
18
|
+
},
|
|
19
|
+
"erp": {
|
|
20
|
+
"menuItems": [
|
|
21
|
+
{
|
|
22
|
+
"id": "{{APP_NAME}}-menu",
|
|
23
|
+
"name": "{{APP_NAME}}",
|
|
24
|
+
"url": "http://localhost:3004/erp"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "{{APP_NAME}}-graphql-demo",
|
|
28
|
+
"name": "GraphQL Demo",
|
|
29
|
+
"url": "http://localhost:3004/graphql-demo"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"api": {
|
|
33
|
+
"scopes": []
|
|
34
|
+
},
|
|
35
|
+
"pane": [
|
|
36
|
+
{
|
|
37
|
+
"id": "{{APP_NAME}}-customer-pane",
|
|
38
|
+
"context": "customers",
|
|
39
|
+
"matchChildContext": true,
|
|
40
|
+
"title": "{{APP_NAME}}",
|
|
41
|
+
"url": "http://localhost:3004/pane",
|
|
42
|
+
"requiredScopes": []
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
62
46
|
}
|
|
47
|
+
},
|
|
48
|
+
"listing": {
|
|
49
|
+
"version": "1.0.0",
|
|
50
|
+
"listingVersion": "1.0.0",
|
|
51
|
+
"defaultLocale": "de-DE",
|
|
52
|
+
"name": {
|
|
53
|
+
"de-DE": {
|
|
54
|
+
"short": "{{APP_NAME}}",
|
|
55
|
+
"full": "{{APP_NAME}}"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"description": {
|
|
59
|
+
"de-DE": {
|
|
60
|
+
"short": "{{APP_DESCRIPTION_SHORT}}",
|
|
61
|
+
"full": "{{APP_DESCRIPTION}}"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"benefits": {
|
|
65
|
+
"de-DE": []
|
|
66
|
+
},
|
|
67
|
+
"category": {
|
|
68
|
+
"main": "",
|
|
69
|
+
"sub": []
|
|
70
|
+
},
|
|
71
|
+
"media": {
|
|
72
|
+
"icons": {
|
|
73
|
+
"light": "https://hub.jtl-cloud.com/assets/image-placeholder.png",
|
|
74
|
+
"dark": "https://hub.jtl-cloud.com/assets/image-placeholder.png"
|
|
75
|
+
},
|
|
76
|
+
"screenshots": ["https://hub.jtl-cloud.com/assets/image-placeholder.png"],
|
|
77
|
+
"video": ""
|
|
78
|
+
},
|
|
79
|
+
"pricing": {
|
|
80
|
+
"freePlan": true
|
|
81
|
+
},
|
|
82
|
+
"support": {
|
|
83
|
+
"url": {
|
|
84
|
+
"de-DE": "https://example.com/support-for-app-xy"
|
|
85
|
+
},
|
|
86
|
+
"documentation": {
|
|
87
|
+
"de-DE": "https://example.com/guide-for-app-xy"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"legal": {
|
|
91
|
+
"privacyPolicy": "https://example.com/privacy",
|
|
92
|
+
"termsOfUse": "https://example.com/terms-of-use",
|
|
93
|
+
"gdpr": {
|
|
94
|
+
"request": "https://example.com/gdpr/request",
|
|
95
|
+
"delete": "https://example.com/gdpr/delete"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"editorial": {
|
|
99
|
+
"status": true
|
|
100
|
+
},
|
|
101
|
+
"distributionType": "PRIVATE",
|
|
102
|
+
"listingVersionStatus": "DRAFT"
|
|
63
103
|
}
|
|
64
104
|
}
|
package/package.json
CHANGED
|
@@ -183,9 +183,9 @@ const GraphqlDemoPage: React.FC<IGraphqlDemoPageProps> = ({ appBridge }) => {
|
|
|
183
183
|
{meta.label}
|
|
184
184
|
</Text>
|
|
185
185
|
</Stack>
|
|
186
|
-
<
|
|
186
|
+
<div className="w-full p-3 rounded-lg" style={{ background: 'var(--base-muted)', fontFamily: 'monospace', fontSize: '0.75rem', whiteSpace: 'pre', overflowX: 'auto' }}>
|
|
187
187
|
{QUERIES[key].trim()}
|
|
188
|
-
</
|
|
188
|
+
</div>
|
|
189
189
|
<Button onClick={() => runQuery(key)} disabled={loading !== null} label={loading === key ? 'Loading...' : 'Run Query'} />
|
|
190
190
|
{renderResult(key)}
|
|
191
191
|
<Separator />
|