create-sitecore-jss 22.9.0 → 22.9.1-canary.1
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/LICENSE.MD +202 -202
- package/README.md +10 -10
- package/dist/templates/angular/src/assets/images/sc_logo.svg +52 -52
- package/dist/templates/angular-sxp/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/angular-sxp/data/dictionary/en.yml +4 -4
- package/dist/templates/angular-sxp/data/dictionary/{{language}}.yml +4 -4
- package/dist/templates/angular-sxp/data/routes/en.yml +61 -61
- package/dist/templates/angular-sxp/data/routes/graphql/en.yml +27 -27
- package/dist/templates/angular-sxp/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/angular-sxp/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/angular-sxp/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/angular-sxp/data/routes/styleguide/en.yml +271 -271
- package/dist/templates/angular-sxp/data/routes/styleguide/{{language}}.yml +25 -25
- package/dist/templates/angular-sxp/data/routes/{{language}}.yml +4 -4
- package/dist/templates/angular-sxp/sitecore/config/{{appName}}.config +90 -90
- package/dist/templates/angular-sxp/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
- package/dist/templates/angular-sxp/sitecore/gitignore +2 -2
- package/dist/templates/nextjs/public/sc_logo.svg +52 -52
- package/dist/templates/nextjs-styleguide/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/dictionary/en.yml +4 -4
- package/dist/templates/nextjs-styleguide/data/dictionary/{{language}}.yml +4 -4
- package/dist/templates/nextjs-styleguide/data/routes/en.yml +63 -63
- package/dist/templates/nextjs-styleguide/data/routes/graphql/en.yml +27 -27
- package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/nextjs-styleguide/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/nextjs-styleguide/data/routes/styleguide/en.yml +259 -259
- package/dist/templates/nextjs-styleguide/data/routes/styleguide/{{language}}.yml +25 -25
- package/dist/templates/nextjs-styleguide/data/routes/{{language}}.yml +4 -4
- package/dist/templates/nextjs-styleguide-tracking/data/dictionary/en.yml +5 -5
- package/dist/templates/nextjs-styleguide-tracking/data/routes/tracking/en.yml +8 -8
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
- package/dist/templates/react/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/react/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/react/data/dictionary/en.yml +4 -4
- package/dist/templates/react/data/dictionary/{{language}}.yml +4 -4
- package/dist/templates/react/data/routes/en.yml +61 -61
- package/dist/templates/react/data/routes/graphql/en.yml +27 -27
- package/dist/templates/react/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/react/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/react/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/react/data/routes/styleguide/en.yml +263 -263
- package/dist/templates/react/data/routes/styleguide/{{language}}.yml +26 -26
- package/dist/templates/react/data/routes/{{language}}.yml +4 -4
- package/dist/templates/react-native/.buckconfig +6 -6
- package/dist/templates/react-native/.eslintrc +74 -74
- package/dist/templates/react-native/.gitattributes +1 -1
- package/dist/templates/react-native/.prettierrc +9 -9
- package/dist/templates/react-native/.vscode/launch.json +42 -42
- package/dist/templates/react-native/.vscode/settings.json +1 -1
- package/dist/templates/react-native/LICENSE.txt +202 -202
- package/dist/templates/react-native/README.MD +115 -115
- package/dist/templates/react-native/android/app/BUCK +55 -55
- package/dist/templates/react-native/android/app/build.gradle +201 -201
- package/dist/templates/react-native/android/app/build_defs.bzl +19 -19
- package/dist/templates/react-native/android/app/proguard-rules.pro +10 -10
- package/dist/templates/react-native/android/app/src/debug/AndroidManifest.xml +8 -8
- package/dist/templates/react-native/android/app/src/main/AndroidManifest.xml +26 -26
- package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainActivity.java +15 -15
- package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainApplication.java +74 -74
- package/dist/templates/react-native/android/app/src/main/res/values/strings.xml +3 -3
- package/dist/templates/react-native/android/app/src/main/res/values/styles.xml +9 -9
- package/dist/templates/react-native/android/build.gradle +38 -38
- package/dist/templates/react-native/android/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/dist/templates/react-native/android/gradle.properties +21 -21
- package/dist/templates/react-native/android/gradlew +188 -188
- package/dist/templates/react-native/android/gradlew.bat +100 -100
- package/dist/templates/react-native/android/settings.gradle +3 -3
- package/dist/templates/react-native/app.json +3 -3
- package/dist/templates/react-native/assets/img/sc_logo.svg +52 -52
- package/dist/templates/react-native/data/content/Styleguide/ItemLinkField/Item1/en.json +10 -10
- package/dist/templates/react-native/data/routes/en.json +22 -22
- package/dist/templates/react-native/data/routes/styleguide/en.json +227 -227
- package/dist/templates/react-native/data/routes/styleguide/{{language}}.json +31 -31
- package/dist/templates/react-native/data/routes/{{language}}.json +7 -7
- package/dist/templates/react-native/gitignore +60 -60
- package/dist/templates/react-native/ios/Podfile +53 -53
- package/dist/templates/react-native/ios/{{appName}}/AppDelegate.h +15 -15
- package/dist/templates/react-native/ios/{{appName}}/AppDelegate.m +42 -42
- package/dist/templates/react-native/ios/{{appName}}/Base.lproj/LaunchScreen.xib +42 -42
- package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/AppIcon.appiconset/Contents.json +38 -38
- package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/Contents.json +6 -6
- package/dist/templates/react-native/ios/{{appName}}/Info.plist +57 -57
- package/dist/templates/react-native/ios/{{appName}}/main.m +16 -16
- package/dist/templates/react-native/ios/{{appName}}-tvOS/Info.plist +53 -53
- package/dist/templates/react-native/ios/{{appName}}-tvOSTests/Info.plist +24 -24
- package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative-tvOS.xcscheme +129 -129
- package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative.xcscheme +129 -129
- package/dist/templates/react-native/ios/{{appName}}Tests/BasicSampleReactNativeTests.m +72 -72
- package/dist/templates/react-native/ios/{{appName}}Tests/Info.plist +24 -24
- package/dist/templates/react-native/package.json +78 -78
- package/dist/templates/react-native/sitecore/config/{{appName}}.config +47 -47
- package/dist/templates/react-native/sitecore/gitignore +2 -2
- package/dist/templates/vue/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/vue/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/vue/data/dictionary/en.yml +7 -7
- package/dist/templates/vue/data/dictionary/{{language}}.yml +7 -7
- package/dist/templates/vue/data/routes/en.yml +63 -63
- package/dist/templates/vue/data/routes/graphql/en.yml +34 -34
- package/dist/templates/vue/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/vue/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/vue/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/vue/data/routes/styleguide/en.yml +264 -264
- package/dist/templates/vue/data/routes/styleguide/{{language}}.yml +26 -26
- package/dist/templates/vue/data/routes/{{language}}.yml +4 -4
- package/dist/templates/vue/public/img/icons/safari-pinned-tab.svg +75 -75
- package/dist/templates/vue/src/assets/sc_logo.svg +52 -52
- package/package.json +2 -2
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
JSS Sitecore Configuration Patch File
|
|
3
|
-
|
|
4
|
-
This configuration file registers the JSS site with Sitecore, and configures the Layout Service
|
|
5
|
-
to work with it. Config patches need to be deployed to the Sitecore server.
|
|
6
|
-
|
|
7
|
-
Normally `jss deploy config` can do this for local development. To manually deploy, or to deploy via CI,
|
|
8
|
-
this file can be placed in the `App_Config/Include` folder, or a subfolder of it, within the Sitecore site.
|
|
9
|
-
-->
|
|
10
|
-
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"
|
|
11
|
-
xmlns:set="http://www.sitecore.net/xmlconfig/set/"
|
|
12
|
-
xmlns:role="http://www.sitecore.net/xmlconfig/role/">
|
|
13
|
-
<sitecore>
|
|
14
|
-
<settings>
|
|
15
|
-
<!--
|
|
16
|
-
PROXY CONFIGURATION
|
|
17
|
-
When running JSS with the headless proxy (node-headless-ssr-proxy),
|
|
18
|
-
the original IP address of clients is obscured by the proxy.
|
|
19
|
-
This setting tells Sitecore to read the forwarded header the proxy sends,
|
|
20
|
-
thus making analytics track the correct original client IP address.
|
|
21
|
-
-->
|
|
22
|
-
<setting name="Analytics.ForwardedRequestHttpHeader" set:value="X-Forwarded-For" />
|
|
23
|
-
</settings>
|
|
24
|
-
<sites>
|
|
25
|
-
<!--
|
|
26
|
-
JSS Site Registration
|
|
27
|
-
This configures the site with Sitecore - i.e. host headers, item paths.
|
|
28
|
-
If your JSS app lives within an existing Sitecore site, this may not be necessary.
|
|
29
|
-
|
|
30
|
-
IMPORTANT: JSS sites ship in 'live mode', which makes development and testing easy,
|
|
31
|
-
but disables workflow and publishing. Before going to production, change the `database`
|
|
32
|
-
below to `web` instead of `master`.
|
|
33
|
-
-->
|
|
34
|
-
<site patch:before="site[@name='website']"
|
|
35
|
-
inherits="website"
|
|
36
|
-
name="<%- appName %>"
|
|
37
|
-
hostName="<%- hostName.replace(/^https?:\/\//, '') %>"
|
|
38
|
-
rootPath="/sitecore/content/<%- appName %>"
|
|
39
|
-
startItem="/home"
|
|
40
|
-
database="master" />
|
|
41
|
-
</sites>
|
|
42
|
-
<javaScriptServices>
|
|
43
|
-
<apps>
|
|
44
|
-
<!--
|
|
45
|
-
JSS App Registration
|
|
46
|
-
The JSS app needs to be registered in order to support layout service and import services.
|
|
47
|
-
|
|
48
|
-
There are many available attributes, and they inherit the defaults if not explicitly specified here.
|
|
49
|
-
Defaults are defined in `/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config`
|
|
50
|
-
|
|
51
|
-
NOTE: graphQLEndpoint enables _Integrated GraphQL_. If not using integrated GraphQL, it can be removed.
|
|
52
|
-
|
|
53
|
-
NOTE: layoutServiceConfiguration should be set to "default" when using GraphQL Edge schema.
|
|
54
|
-
When using integrated GraphQL with Edge schema, a $language value is injected
|
|
55
|
-
since language is required in all Edge queries. "jss" configuration does not do this (which is backwards
|
|
56
|
-
compatible with JSS versions < 18.0.0).
|
|
57
|
-
-->
|
|
58
|
-
<app name="<%- appName %>"
|
|
59
|
-
layoutServiceConfiguration="default"
|
|
60
|
-
sitecorePath="/sitecore/content/<%- appName %>"
|
|
61
|
-
inherits="defaults"
|
|
62
|
-
useLanguageSpecificLayout="true"
|
|
63
|
-
graphQLEndpoint="/sitecore/api/graph/edge" />
|
|
64
|
-
</apps>
|
|
65
|
-
<!--
|
|
66
|
-
IMAGE RESIZING WHITELIST
|
|
67
|
-
Using Sitecore server-side media resizing (i.e. the `imageParams` or `srcSet` props on the `<Image/>` helper component)
|
|
68
|
-
could expose your Sitecore server to a denial-of-service attack by rescaling an image with many arbitrary dimensions.
|
|
69
|
-
In JSS resizing param sets that are unknown are rejected by a whitelist.
|
|
70
|
-
|
|
71
|
-
Sets of image sizing parameters that are used in app components must be whitelisted here.
|
|
72
|
-
If a param set is not whitelisted, the image will be returned _without resizing_.
|
|
73
|
-
|
|
74
|
-
To determine the image parameters being used, look at the query string on the `src` of the rendered image, i.e. '/img.jpg?mw=100&h=72' -> mw=100,h=72
|
|
75
|
-
Note: the parameter sets defined here are comma-delimited (,) instead of &-delimited like the query string. Multiple sets are endline-delimited.
|
|
76
|
-
-->
|
|
77
|
-
<allowedMediaParams>
|
|
78
|
-
<!-- XML element name is arbitary, useful for organizing and patching -->
|
|
79
|
-
<styleguide-image-sample>
|
|
80
|
-
mw=100,
|
|
81
|
-
mh=50
|
|
82
|
-
</styleguide-image-sample>
|
|
83
|
-
<styleguide-image-sample-adaptive>
|
|
84
|
-
mw=300
|
|
85
|
-
mw=100
|
|
86
|
-
</styleguide-image-sample-adaptive>
|
|
87
|
-
</allowedMediaParams>
|
|
88
|
-
</javaScriptServices>
|
|
89
|
-
</sitecore>
|
|
90
|
-
</configuration>
|
|
1
|
+
<!--
|
|
2
|
+
JSS Sitecore Configuration Patch File
|
|
3
|
+
|
|
4
|
+
This configuration file registers the JSS site with Sitecore, and configures the Layout Service
|
|
5
|
+
to work with it. Config patches need to be deployed to the Sitecore server.
|
|
6
|
+
|
|
7
|
+
Normally `jss deploy config` can do this for local development. To manually deploy, or to deploy via CI,
|
|
8
|
+
this file can be placed in the `App_Config/Include` folder, or a subfolder of it, within the Sitecore site.
|
|
9
|
+
-->
|
|
10
|
+
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"
|
|
11
|
+
xmlns:set="http://www.sitecore.net/xmlconfig/set/"
|
|
12
|
+
xmlns:role="http://www.sitecore.net/xmlconfig/role/">
|
|
13
|
+
<sitecore>
|
|
14
|
+
<settings>
|
|
15
|
+
<!--
|
|
16
|
+
PROXY CONFIGURATION
|
|
17
|
+
When running JSS with the headless proxy (node-headless-ssr-proxy),
|
|
18
|
+
the original IP address of clients is obscured by the proxy.
|
|
19
|
+
This setting tells Sitecore to read the forwarded header the proxy sends,
|
|
20
|
+
thus making analytics track the correct original client IP address.
|
|
21
|
+
-->
|
|
22
|
+
<setting name="Analytics.ForwardedRequestHttpHeader" set:value="X-Forwarded-For" />
|
|
23
|
+
</settings>
|
|
24
|
+
<sites>
|
|
25
|
+
<!--
|
|
26
|
+
JSS Site Registration
|
|
27
|
+
This configures the site with Sitecore - i.e. host headers, item paths.
|
|
28
|
+
If your JSS app lives within an existing Sitecore site, this may not be necessary.
|
|
29
|
+
|
|
30
|
+
IMPORTANT: JSS sites ship in 'live mode', which makes development and testing easy,
|
|
31
|
+
but disables workflow and publishing. Before going to production, change the `database`
|
|
32
|
+
below to `web` instead of `master`.
|
|
33
|
+
-->
|
|
34
|
+
<site patch:before="site[@name='website']"
|
|
35
|
+
inherits="website"
|
|
36
|
+
name="<%- appName %>"
|
|
37
|
+
hostName="<%- hostName.replace(/^https?:\/\//, '') %>"
|
|
38
|
+
rootPath="/sitecore/content/<%- appName %>"
|
|
39
|
+
startItem="/home"
|
|
40
|
+
database="master" />
|
|
41
|
+
</sites>
|
|
42
|
+
<javaScriptServices>
|
|
43
|
+
<apps>
|
|
44
|
+
<!--
|
|
45
|
+
JSS App Registration
|
|
46
|
+
The JSS app needs to be registered in order to support layout service and import services.
|
|
47
|
+
|
|
48
|
+
There are many available attributes, and they inherit the defaults if not explicitly specified here.
|
|
49
|
+
Defaults are defined in `/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config`
|
|
50
|
+
|
|
51
|
+
NOTE: graphQLEndpoint enables _Integrated GraphQL_. If not using integrated GraphQL, it can be removed.
|
|
52
|
+
|
|
53
|
+
NOTE: layoutServiceConfiguration should be set to "default" when using GraphQL Edge schema.
|
|
54
|
+
When using integrated GraphQL with Edge schema, a $language value is injected
|
|
55
|
+
since language is required in all Edge queries. "jss" configuration does not do this (which is backwards
|
|
56
|
+
compatible with JSS versions < 18.0.0).
|
|
57
|
+
-->
|
|
58
|
+
<app name="<%- appName %>"
|
|
59
|
+
layoutServiceConfiguration="default"
|
|
60
|
+
sitecorePath="/sitecore/content/<%- appName %>"
|
|
61
|
+
inherits="defaults"
|
|
62
|
+
useLanguageSpecificLayout="true"
|
|
63
|
+
graphQLEndpoint="/sitecore/api/graph/edge" />
|
|
64
|
+
</apps>
|
|
65
|
+
<!--
|
|
66
|
+
IMAGE RESIZING WHITELIST
|
|
67
|
+
Using Sitecore server-side media resizing (i.e. the `imageParams` or `srcSet` props on the `<Image/>` helper component)
|
|
68
|
+
could expose your Sitecore server to a denial-of-service attack by rescaling an image with many arbitrary dimensions.
|
|
69
|
+
In JSS resizing param sets that are unknown are rejected by a whitelist.
|
|
70
|
+
|
|
71
|
+
Sets of image sizing parameters that are used in app components must be whitelisted here.
|
|
72
|
+
If a param set is not whitelisted, the image will be returned _without resizing_.
|
|
73
|
+
|
|
74
|
+
To determine the image parameters being used, look at the query string on the `src` of the rendered image, i.e. '/img.jpg?mw=100&h=72' -> mw=100,h=72
|
|
75
|
+
Note: the parameter sets defined here are comma-delimited (,) instead of &-delimited like the query string. Multiple sets are endline-delimited.
|
|
76
|
+
-->
|
|
77
|
+
<allowedMediaParams>
|
|
78
|
+
<!-- XML element name is arbitary, useful for organizing and patching -->
|
|
79
|
+
<styleguide-image-sample>
|
|
80
|
+
mw=100,
|
|
81
|
+
mh=50
|
|
82
|
+
</styleguide-image-sample>
|
|
83
|
+
<styleguide-image-sample-adaptive>
|
|
84
|
+
mw=300
|
|
85
|
+
mw=100
|
|
86
|
+
</styleguide-image-sample-adaptive>
|
|
87
|
+
</allowedMediaParams>
|
|
88
|
+
</javaScriptServices>
|
|
89
|
+
</sitecore>
|
|
90
|
+
</configuration>
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
# This file contains a GraphQL query that will be executed and the result provided to
|
|
2
|
-
# your JSS component. You can run this query in GraphiQL ($endpoint/ui) for a nice editing experience.
|
|
3
|
-
|
|
4
|
-
# Note that we're executing _two queries_ (datasource and contextItem)
|
|
5
|
-
# within the context of the IntegratedDemoQuery _operation_. This makes it
|
|
6
|
-
# very efficient at gathering data from multiple sources.
|
|
7
|
-
|
|
8
|
-
query IntegratedDemoQuery($datasource: String!, $contextItem: String!, $language: String!) {
|
|
9
|
-
# Datasource query
|
|
10
|
-
# $datasource will always be set to the ID of the rendering's datasource item
|
|
11
|
-
# (as long as the GraphQLData helper is used)
|
|
12
|
-
datasource: item(path: $datasource, language: $language) {
|
|
13
|
-
id
|
|
14
|
-
name
|
|
15
|
-
# Strongly-typed querying on known templates is possible!
|
|
16
|
-
...on <%- helper.getAppPrefix(appPrefix, appName, false) %>GraphQLIntegratedDemo {
|
|
17
|
-
# Single-line text field
|
|
18
|
-
sample1 {
|
|
19
|
-
# the 'jsonValue' field is a JSON blob that represents the object that
|
|
20
|
-
# should be passed to JSS field rendering helpers (i.e. text, image, link)
|
|
21
|
-
jsonValue
|
|
22
|
-
value
|
|
23
|
-
}
|
|
24
|
-
# General Link field
|
|
25
|
-
sample2 {
|
|
26
|
-
jsonValue
|
|
27
|
-
# Structured querying of the field's values is possible
|
|
28
|
-
text
|
|
29
|
-
target
|
|
30
|
-
url
|
|
31
|
-
# Access to the template definition is possible
|
|
32
|
-
definition {
|
|
33
|
-
type
|
|
34
|
-
shared
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
# Context/route item query
|
|
41
|
-
# $contextItem will always be set to the ID of the current context item (the route item)
|
|
42
|
-
# (as long as the GraphQLData helper is used)
|
|
43
|
-
contextItem: item(path: $contextItem, language: $language) {
|
|
44
|
-
id
|
|
45
|
-
# Get the page title from the app route template
|
|
46
|
-
...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
|
|
47
|
-
pageTitle {
|
|
48
|
-
value
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
# List the children of the current route
|
|
53
|
-
children(hasLayout: true) {
|
|
54
|
-
results {
|
|
55
|
-
id
|
|
56
|
-
# typing fragments can be used anywhere!
|
|
57
|
-
# so in this case, we're grabbing the 'pageTitle'
|
|
58
|
-
# field on all child route items.
|
|
59
|
-
...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
|
|
60
|
-
pageTitle {
|
|
61
|
-
jsonValue
|
|
62
|
-
value
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
url {
|
|
66
|
-
path
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
1
|
+
# This file contains a GraphQL query that will be executed and the result provided to
|
|
2
|
+
# your JSS component. You can run this query in GraphiQL ($endpoint/ui) for a nice editing experience.
|
|
3
|
+
|
|
4
|
+
# Note that we're executing _two queries_ (datasource and contextItem)
|
|
5
|
+
# within the context of the IntegratedDemoQuery _operation_. This makes it
|
|
6
|
+
# very efficient at gathering data from multiple sources.
|
|
7
|
+
|
|
8
|
+
query IntegratedDemoQuery($datasource: String!, $contextItem: String!, $language: String!) {
|
|
9
|
+
# Datasource query
|
|
10
|
+
# $datasource will always be set to the ID of the rendering's datasource item
|
|
11
|
+
# (as long as the GraphQLData helper is used)
|
|
12
|
+
datasource: item(path: $datasource, language: $language) {
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
|
+
# Strongly-typed querying on known templates is possible!
|
|
16
|
+
...on <%- helper.getAppPrefix(appPrefix, appName, false) %>GraphQLIntegratedDemo {
|
|
17
|
+
# Single-line text field
|
|
18
|
+
sample1 {
|
|
19
|
+
# the 'jsonValue' field is a JSON blob that represents the object that
|
|
20
|
+
# should be passed to JSS field rendering helpers (i.e. text, image, link)
|
|
21
|
+
jsonValue
|
|
22
|
+
value
|
|
23
|
+
}
|
|
24
|
+
# General Link field
|
|
25
|
+
sample2 {
|
|
26
|
+
jsonValue
|
|
27
|
+
# Structured querying of the field's values is possible
|
|
28
|
+
text
|
|
29
|
+
target
|
|
30
|
+
url
|
|
31
|
+
# Access to the template definition is possible
|
|
32
|
+
definition {
|
|
33
|
+
type
|
|
34
|
+
shared
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
# Context/route item query
|
|
41
|
+
# $contextItem will always be set to the ID of the current context item (the route item)
|
|
42
|
+
# (as long as the GraphQLData helper is used)
|
|
43
|
+
contextItem: item(path: $contextItem, language: $language) {
|
|
44
|
+
id
|
|
45
|
+
# Get the page title from the app route template
|
|
46
|
+
...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
|
|
47
|
+
pageTitle {
|
|
48
|
+
value
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
# List the children of the current route
|
|
53
|
+
children(hasLayout: true) {
|
|
54
|
+
results {
|
|
55
|
+
id
|
|
56
|
+
# typing fragments can be used anywhere!
|
|
57
|
+
# so in this case, we're grabbing the 'pageTitle'
|
|
58
|
+
# field on all child route items.
|
|
59
|
+
...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
|
|
60
|
+
pageTitle {
|
|
61
|
+
jsonValue
|
|
62
|
+
value
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
url {
|
|
66
|
+
path
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
manifest
|
|
2
|
-
update-package
|
|
1
|
+
manifest
|
|
2
|
+
update-package
|
|
3
3
|
package
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<svg width="221px" height="48px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
-
viewBox="0 0 668 143.7" style="enable-background:new 0 0 668 143.7;" xml:space="preserve">
|
|
5
|
-
<style type="text/css">
|
|
6
|
-
.st0{fill:#EB1F1F;}
|
|
7
|
-
</style>
|
|
8
|
-
<path d="M645.5,98.1V85.8h-27.6V73.5h24.7V62h-24.7V50.8H644V38.7h-39.9v59.4C604.1,98.1,645.5,98.1,645.5,98.1z M570.7,60.6
|
|
9
|
-
c-0.6,0.9-1.5,1.7-2.5,2.2c-1.1,0.5-2.2,0.8-3.4,1s-2.4,0.3-3.6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9,5.4-14.6,5.4-22.4
|
|
36
|
-
C121.5,70.6,121.5,69.4,121.4,68.2"/>
|
|
37
|
-
<path class="st0" d="M68,114L68,114c-15.7,0-30.4-7.8-40.9-21.1c11.6,24.8,41.2,35.5,65.9,23.8c9.2-4.3,16.9-11.4,22-20.2l-7.6-4.8
|
|
38
|
-
C99.1,105.6,84.2,114.1,68,114"/>
|
|
39
|
-
<path class="st0" d="M71.9,124c-28.8,0-52.2-23.4-52.2-52.2s23.4-52.2,52.2-52.2s52.2,23.4,52.2,52.2l0,0l0,0
|
|
40
|
-
C124.1,100.6,100.8,124,71.9,124C72,124,72,124,71.9,124L71.9,124L71.9,124 M71.9,0C32.2,0,0,32.1,0,71.8s32.1,71.9,71.8,71.9
|
|
41
|
-
s71.9-32.1,71.9-71.8v-0.1C143.7,32.2,111.6,0,71.9,0L71.9,0L71.9,0"/>
|
|
42
|
-
<path d="M660.9,44.3v-1.9h1.1c0.3,0,0.6,0.1,0.9,0.2c0.3,0.1,0.4,0.4,0.4,0.7c0,0.4-0.2,0.7-0.5,0.8c-0.3,0.1-0.6,0.2-1,0.2H660.9z
|
|
43
|
-
M659.7,48h1.2v-2.8h0.8l1.5,2.8h1.4l-1.8-2.9c0.5-0.1,0.8-0.3,1.1-0.6c0.3-0.3,0.4-0.7,0.4-1.2c0-0.4-0.1-0.7-0.2-0.9
|
|
44
|
-
c-0.1-0.2-0.3-0.4-0.6-0.6c-0.2-0.2-0.5-0.3-0.8-0.3c-0.3-0.1-0.6-0.1-0.9-0.1h-2.3V48z M657.5,42.8c0.3-0.6,0.6-1.1,1.1-1.6
|
|
45
|
-
c0.4-0.4,1-0.8,1.6-1.1c0.6-0.3,1.2-0.4,1.9-0.4c0.7,0,1.3,0.1,1.9,0.4c0.6,0.3,1.1,0.6,1.6,1.1c0.4,0.4,0.8,1,1.1,1.6
|
|
46
|
-
c0.3,0.6,0.4,1.2,0.4,1.9c0,0.7-0.1,1.3-0.4,1.9c-0.3,0.6-0.6,1.1-1.1,1.6c-0.4,0.5-1,0.8-1.6,1.1c-0.6,0.3-1.2,0.4-1.9,0.4
|
|
47
|
-
c-0.7,0-1.3-0.1-1.9-0.4c-0.6-0.3-1.1-0.6-1.6-1.1c-0.4-0.5-0.8-1-1.1-1.6c-0.3-0.6-0.4-1.2-0.4-1.9C657.1,44,657.2,43.4,657.5,42.8
|
|
48
|
-
M656.6,47c0.3,0.7,0.7,1.3,1.3,1.8c0.5,0.5,1.2,0.9,1.9,1.2c0.7,0.3,1.5,0.4,2.3,0.4s1.6-0.1,2.3-0.4c0.7-0.3,1.3-0.7,1.9-1.2
|
|
49
|
-
c0.5-0.5,1-1.1,1.3-1.8c0.3-0.7,0.5-1.5,0.5-2.3s-0.2-1.6-0.5-2.3c-0.3-0.7-0.7-1.3-1.3-1.9c-0.5-0.5-1.2-0.9-1.9-1.2
|
|
50
|
-
c-0.7-0.3-1.5-0.5-2.3-0.5s-1.6,0.2-2.3,0.5c-0.7,0.3-1.3,0.7-1.9,1.2c-0.5,0.5-1,1.1-1.3,1.9c-0.3,0.7-0.5,1.5-0.5,2.3
|
|
51
|
-
S656.3,46.3,656.6,47"/>
|
|
52
|
-
</svg>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg width="221px" height="48px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 668 143.7" style="enable-background:new 0 0 668 143.7;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#EB1F1F;}
|
|
7
|
+
</style>
|
|
8
|
+
<path d="M645.5,98.1V85.8h-27.6V73.5h24.7V62h-24.7V50.8H644V38.7h-39.9v59.4C604.1,98.1,645.5,98.1,645.5,98.1z M570.7,60.6
|
|
9
|
+
c-0.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.2,24.6,7.2H68c15.7,0,30.1-8.5,37.7-22.3l0.7-1.2l9.8,6.2c3.5-6.9,5.4-14.6,5.4-22.4
|
|
36
|
+
C121.5,70.6,121.5,69.4,121.4,68.2"/>
|
|
37
|
+
<path class="st0" d="M68,114L68,114c-15.7,0-30.4-7.8-40.9-21.1c11.6,24.8,41.2,35.5,65.9,23.8c9.2-4.3,16.9-11.4,22-20.2l-7.6-4.8
|
|
38
|
+
C99.1,105.6,84.2,114.1,68,114"/>
|
|
39
|
+
<path class="st0" d="M71.9,124c-28.8,0-52.2-23.4-52.2-52.2s23.4-52.2,52.2-52.2s52.2,23.4,52.2,52.2l0,0l0,0
|
|
40
|
+
C124.1,100.6,100.8,124,71.9,124C72,124,72,124,71.9,124L71.9,124L71.9,124 M71.9,0C32.2,0,0,32.1,0,71.8s32.1,71.9,71.8,71.9
|
|
41
|
+
s71.9-32.1,71.9-71.8v-0.1C143.7,32.2,111.6,0,71.9,0L71.9,0L71.9,0"/>
|
|
42
|
+
<path d="M660.9,44.3v-1.9h1.1c0.3,0,0.6,0.1,0.9,0.2c0.3,0.1,0.4,0.4,0.4,0.7c0,0.4-0.2,0.7-0.5,0.8c-0.3,0.1-0.6,0.2-1,0.2H660.9z
|
|
43
|
+
M659.7,48h1.2v-2.8h0.8l1.5,2.8h1.4l-1.8-2.9c0.5-0.1,0.8-0.3,1.1-0.6c0.3-0.3,0.4-0.7,0.4-1.2c0-0.4-0.1-0.7-0.2-0.9
|
|
44
|
+
c-0.1-0.2-0.3-0.4-0.6-0.6c-0.2-0.2-0.5-0.3-0.8-0.3c-0.3-0.1-0.6-0.1-0.9-0.1h-2.3V48z M657.5,42.8c0.3-0.6,0.6-1.1,1.1-1.6
|
|
45
|
+
c0.4-0.4,1-0.8,1.6-1.1c0.6-0.3,1.2-0.4,1.9-0.4c0.7,0,1.3,0.1,1.9,0.4c0.6,0.3,1.1,0.6,1.6,1.1c0.4,0.4,0.8,1,1.1,1.6
|
|
46
|
+
c0.3,0.6,0.4,1.2,0.4,1.9c0,0.7-0.1,1.3-0.4,1.9c-0.3,0.6-0.6,1.1-1.1,1.6c-0.4,0.5-1,0.8-1.6,1.1c-0.6,0.3-1.2,0.4-1.9,0.4
|
|
47
|
+
c-0.7,0-1.3-0.1-1.9-0.4c-0.6-0.3-1.1-0.6-1.6-1.1c-0.4-0.5-0.8-1-1.1-1.6c-0.3-0.6-0.4-1.2-0.4-1.9C657.1,44,657.2,43.4,657.5,42.8
|
|
48
|
+
M656.6,47c0.3,0.7,0.7,1.3,1.3,1.8c0.5,0.5,1.2,0.9,1.9,1.2c0.7,0.3,1.5,0.4,2.3,0.4s1.6-0.1,2.3-0.4c0.7-0.3,1.3-0.7,1.9-1.2
|
|
49
|
+
c0.5-0.5,1-1.1,1.3-1.8c0.3-0.7,0.5-1.5,0.5-2.3s-0.2-1.6-0.5-2.3c-0.3-0.7-0.7-1.3-1.3-1.9c-0.5-0.5-1.2-0.9-1.9-1.2
|
|
50
|
+
c-0.7-0.3-1.5-0.5-2.3-0.5s-1.6,0.2-2.3,0.5c-0.7,0.3-1.3,0.7-1.9,1.2c-0.5,0.5-1,1.1-1.3,1.9c-0.3,0.7-0.5,1.5-0.5,2.3
|
|
51
|
+
S656.3,46.3,656.6,47"/>
|
|
52
|
+
</svg>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# We can reuse this content definition in multiple places because it:
|
|
2
|
-
# - has an ID
|
|
3
|
-
# - is under component-content (normally) or content
|
|
4
|
-
# Reuse is accomplished by referencing the content by ID in a route definition.
|
|
5
|
-
id: lorem-ipsum-content-block
|
|
6
|
-
componentName: ContentBlock
|
|
7
|
-
displayName: Lorem Ipsum Dolor Sit Amet
|
|
8
|
-
fields:
|
|
9
|
-
content: <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque felis mauris, pretium id neque vitae, vulputate pellentesque tortor. Mauris hendrerit dolor et ipsum lobortis bibendum non finibus neque. Morbi volutpat aliquam magna id posuere. Duis commodo cursus dui, nec interdum velit congue nec. Aliquam erat volutpat. Aliquam facilisis, sapien quis fringilla tincidunt, magna nulla feugiat neque, a consectetur arcu orci eu augue.</p>
|
|
1
|
+
# We can reuse this content definition in multiple places because it:
|
|
2
|
+
# - has an ID
|
|
3
|
+
# - is under component-content (normally) or content
|
|
4
|
+
# Reuse is accomplished by referencing the content by ID in a route definition.
|
|
5
|
+
id: lorem-ipsum-content-block
|
|
6
|
+
componentName: ContentBlock
|
|
7
|
+
displayName: Lorem Ipsum Dolor Sit Amet
|
|
8
|
+
fields:
|
|
9
|
+
content: <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque felis mauris, pretium id neque vitae, vulputate pellentesque tortor. Mauris hendrerit dolor et ipsum lobortis bibendum non finibus neque. Morbi volutpat aliquam magna id posuere. Duis commodo cursus dui, nec interdum velit congue nec. Aliquam erat volutpat. Aliquam facilisis, sapien quis fringilla tincidunt, magna nulla feugiat neque, a consectetur arcu orci eu augue.</p>
|
package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item1/en.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
id: styleguide-content-list-field-shared-1
|
|
2
|
-
displayName: Styleguide Content List Item 1 (Shared)
|
|
3
|
-
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ContentList-Template.sitecore.js
|
|
4
|
-
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
|
|
5
|
-
fields:
|
|
6
|
-
textField: ContentList Demo (Shared) Item 1 Text Field
|
|
1
|
+
id: styleguide-content-list-field-shared-1
|
|
2
|
+
displayName: Styleguide Content List Item 1 (Shared)
|
|
3
|
+
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ContentList-Template.sitecore.js
|
|
4
|
+
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
|
|
5
|
+
fields:
|
|
6
|
+
textField: ContentList Demo (Shared) Item 1 Text Field
|
package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item2/en.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
id: styleguide-content-list-field-shared-2
|
|
2
|
-
displayName: Styleguide Content List Item 2 (Shared)
|
|
3
|
-
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ContentList-Template.sitecore.js
|
|
4
|
-
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
|
|
5
|
-
fields:
|
|
6
|
-
textField: ContentList Demo (Shared) Item 2 Text Field
|
|
1
|
+
id: styleguide-content-list-field-shared-2
|
|
2
|
+
displayName: Styleguide Content List Item 2 (Shared)
|
|
3
|
+
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ContentList-Template.sitecore.js
|
|
4
|
+
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
|
|
5
|
+
fields:
|
|
6
|
+
textField: ContentList Demo (Shared) Item 2 Text Field
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
id: styleguide-edit-frame-list-item-1
|
|
2
|
-
displayName: EditFrame Demo List Item 1
|
|
3
|
-
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-EditFrame-ListItem-Template.ts
|
|
4
|
-
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-EditFrame-ListItem-Template
|
|
5
|
-
fields:
|
|
6
|
-
title: Edit Frame Demo List Item 1
|
|
1
|
+
id: styleguide-edit-frame-list-item-1
|
|
2
|
+
displayName: EditFrame Demo List Item 1
|
|
3
|
+
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-EditFrame-ListItem-Template.ts
|
|
4
|
+
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-EditFrame-ListItem-Template
|
|
5
|
+
fields:
|
|
6
|
+
title: Edit Frame Demo List Item 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
id: styleguide-edit-frame-list-item-2
|
|
2
|
-
displayName: EditFrame Demo List Item 2
|
|
3
|
-
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-EditFrame-ListItem-Template.ts
|
|
4
|
-
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-EditFrame-ListItem-Template
|
|
5
|
-
fields:
|
|
6
|
-
title: Edit Frame Demo List Item 2
|
|
1
|
+
id: styleguide-edit-frame-list-item-2
|
|
2
|
+
displayName: EditFrame Demo List Item 2
|
|
3
|
+
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-EditFrame-ListItem-Template.ts
|
|
4
|
+
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-EditFrame-ListItem-Template
|
|
5
|
+
fields:
|
|
6
|
+
title: Edit Frame Demo List Item 2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
id: styleguide-item-link-field-shared-1
|
|
2
|
-
displayName: Styleguide Item Link Item 1 (Shared)
|
|
3
|
-
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ItemLink-Template.sitecore.js
|
|
4
|
-
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
|
|
5
|
-
fields:
|
|
6
|
-
textField: ItemLink Demo (Shared) Item 1 Text Field
|
|
1
|
+
id: styleguide-item-link-field-shared-1
|
|
2
|
+
displayName: Styleguide Item Link Item 1 (Shared)
|
|
3
|
+
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ItemLink-Template.sitecore.js
|
|
4
|
+
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
|
|
5
|
+
fields:
|
|
6
|
+
textField: ItemLink Demo (Shared) Item 1 Text Field
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
id: styleguide-item-link-field-shared-2
|
|
2
|
-
displayName: Styleguide Item Link Item 2 (Shared)
|
|
3
|
-
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ItemLink-Template.sitecore.js
|
|
4
|
-
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
|
|
5
|
-
fields:
|
|
6
|
-
textField: ItemLink Demo (Shared) Item 2 Text Field
|
|
1
|
+
id: styleguide-item-link-field-shared-2
|
|
2
|
+
displayName: Styleguide Item Link Item 2 (Shared)
|
|
3
|
+
# Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ItemLink-Template.sitecore.js
|
|
4
|
+
template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
|
|
5
|
+
fields:
|
|
6
|
+
textField: ItemLink Demo (Shared) Item 2 Text Field
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
styleguide-sample: This is a dictionary entry in English as a demonstration
|
|
2
|
-
Documentation: Documentation
|
|
3
|
-
Styleguide: Styleguide
|
|
4
|
-
GraphQL: GraphQL
|
|
1
|
+
styleguide-sample: This is a dictionary entry in English as a demonstration
|
|
2
|
+
Documentation: Documentation
|
|
3
|
+
Styleguide: Styleguide
|
|
4
|
+
GraphQL: GraphQL
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
styleguide-sample: '[<%- language %>] This is a dictionary entry in English as a demonstration'
|
|
2
|
-
Documentation: '[<%- language %>] Documentation'
|
|
3
|
-
Styleguide: '[<%- language %>] Styleguide'
|
|
4
|
-
GraphQL: '[<%- language %>] GraphQL'
|
|
1
|
+
styleguide-sample: '[<%- language %>] This is a dictionary entry in English as a demonstration'
|
|
2
|
+
Documentation: '[<%- language %>] Documentation'
|
|
3
|
+
Styleguide: '[<%- language %>] Styleguide'
|
|
4
|
+
GraphQL: '[<%- language %>] GraphQL'
|