create-sitecore-jss 22.9.0-canary.9 → 22.9.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/LICENSE.MD +202 -202
- package/README.md +10 -10
- package/dist/templates/angular/angular.json +8 -46
- package/dist/templates/angular/package.json +8 -5
- 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/node-headless-ssr-proxy/src/index.ts +1 -1
- 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/package.json +8 -2
- 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/package.json +9 -9
- 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
- package/dist/templates/angular/e2e/app.e2e-spec.ts +0 -14
- package/dist/templates/angular/e2e/app.po.ts +0 -11
- package/dist/templates/angular/e2e/tsconfig.e2e.json +0 -15
package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@import '@sass/abstracts/vars';
|
|
2
|
-
|
|
3
|
-
.row.column-splitter {
|
|
4
|
-
margin-left: 0;
|
|
5
|
-
margin-right: 0;
|
|
6
|
-
padding-left: $default-padding * 0.5;
|
|
7
|
-
padding-right: $default-padding * 0.5;
|
|
8
|
-
max-width: none;
|
|
9
|
-
|
|
10
|
-
> div {
|
|
11
|
-
padding-left: $default-padding;
|
|
12
|
-
padding-right: $default-padding;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
@import '@sass/abstracts/vars';
|
|
2
|
+
|
|
3
|
+
.row.column-splitter {
|
|
4
|
+
margin-left: 0;
|
|
5
|
+
margin-right: 0;
|
|
6
|
+
padding-left: $default-padding * 0.5;
|
|
7
|
+
padding-right: $default-padding * 0.5;
|
|
8
|
+
max-width: none;
|
|
9
|
+
|
|
10
|
+
> div {
|
|
11
|
+
padding-left: $default-padding;
|
|
12
|
+
padding-right: $default-padding;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
@import "@sass/abstracts/vars";
|
|
2
|
-
@import "@sass/abstracts/mixins";
|
|
3
|
-
|
|
4
|
-
.promo-shadow {
|
|
5
|
-
max-width: 960px;
|
|
6
|
-
padding: 0;
|
|
7
|
-
border-top-width: 3px;
|
|
8
|
-
border-top-color: $promo-shadow-border;
|
|
9
|
-
border-style: solid;
|
|
10
|
-
overflow: visible;
|
|
11
|
-
position: relative;
|
|
12
|
-
&.promo {
|
|
13
|
-
float: left;
|
|
14
|
-
}
|
|
15
|
-
>.component-content {
|
|
16
|
-
padding: 15px;
|
|
17
|
-
margin: 0 0 30px 0;
|
|
18
|
-
@include respond-to(all-mobile) {
|
|
19
|
-
margin: 0 10px 30px 10px;
|
|
20
|
-
}
|
|
21
|
-
&:before, &:after {
|
|
22
|
-
opacity: 0.7;
|
|
23
|
-
box-shadow: 0 17px 10px rgba(0, 0, 0, 0.7);
|
|
24
|
-
position: absolute;
|
|
25
|
-
z-index: -1;
|
|
26
|
-
height: 20%;
|
|
27
|
-
max-height: 100px;
|
|
28
|
-
max-width: 460px;
|
|
29
|
-
width: 47%;
|
|
30
|
-
content: "";
|
|
31
|
-
bottom: 10px;
|
|
32
|
-
}
|
|
33
|
-
&:before {
|
|
34
|
-
left: 2%;
|
|
35
|
-
transform: rotate(-3deg);
|
|
36
|
-
}
|
|
37
|
-
&:after {
|
|
38
|
-
right: 2%;
|
|
39
|
-
transform: rotate(3deg);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
@import "@sass/abstracts/vars";
|
|
2
|
+
@import "@sass/abstracts/mixins";
|
|
3
|
+
|
|
4
|
+
.promo-shadow {
|
|
5
|
+
max-width: 960px;
|
|
6
|
+
padding: 0;
|
|
7
|
+
border-top-width: 3px;
|
|
8
|
+
border-top-color: $promo-shadow-border;
|
|
9
|
+
border-style: solid;
|
|
10
|
+
overflow: visible;
|
|
11
|
+
position: relative;
|
|
12
|
+
&.promo {
|
|
13
|
+
float: left;
|
|
14
|
+
}
|
|
15
|
+
>.component-content {
|
|
16
|
+
padding: 15px;
|
|
17
|
+
margin: 0 0 30px 0;
|
|
18
|
+
@include respond-to(all-mobile) {
|
|
19
|
+
margin: 0 10px 30px 10px;
|
|
20
|
+
}
|
|
21
|
+
&:before, &:after {
|
|
22
|
+
opacity: 0.7;
|
|
23
|
+
box-shadow: 0 17px 10px rgba(0, 0, 0, 0.7);
|
|
24
|
+
position: absolute;
|
|
25
|
+
z-index: -1;
|
|
26
|
+
height: 20%;
|
|
27
|
+
max-height: 100px;
|
|
28
|
+
max-width: 460px;
|
|
29
|
+
width: 47%;
|
|
30
|
+
content: "";
|
|
31
|
+
bottom: 10px;
|
|
32
|
+
}
|
|
33
|
+
&:before {
|
|
34
|
+
left: 2%;
|
|
35
|
+
transform: rotate(-3deg);
|
|
36
|
+
}
|
|
37
|
+
&:after {
|
|
38
|
+
right: 2%;
|
|
39
|
+
transform: rotate(3deg);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -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>
|
|
@@ -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
|
|
@@ -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.js
|
|
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.js
|
|
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.js
|
|
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.js
|
|
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'
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
# This is a route layout definition.
|
|
2
|
-
# The route definition defines which Sitecore components are present on a route,
|
|
3
|
-
# what their content data is, and which _placeholder_ they are placed in.
|
|
4
|
-
|
|
5
|
-
# This particular route definition is for the home route - '/', so it defines the
|
|
6
|
-
# components shown on the initial page of the app.
|
|
7
|
-
|
|
8
|
-
# You may use equivalent JSON files instead of YAML if you prefer;
|
|
9
|
-
# however YAML is simpler to read and allows comments like this one :)
|
|
10
|
-
|
|
11
|
-
# Setting an ID is optional, but it will allow referring to this item in internal links
|
|
12
|
-
# the ID can be a app-wide-unique string, or a GUID value.
|
|
13
|
-
id: home-page
|
|
14
|
-
|
|
15
|
-
# Route-level fields are appropriate for page level data like <title> contents
|
|
16
|
-
# Define route level fields in /sitecore/definitions/routes.sitecore
|
|
17
|
-
fields:
|
|
18
|
-
pageTitle: Welcome to Sitecore JSS
|
|
19
|
-
# Define the page layout starting at the root placeholder - in this case, '<%- helper.getAppPrefix(appPrefix, appName) %>main'
|
|
20
|
-
# root placeholder names are defined in the package.json config section (required for Sitecore deployment)
|
|
21
|
-
placeholders:
|
|
22
|
-
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
23
|
-
- componentName: ContentBlock
|
|
24
|
-
fields:
|
|
25
|
-
heading: Welcome to Sitecore JSS
|
|
26
|
-
# to author content in YAML, use _multi-line values_ (prefixed with | + endline)
|
|
27
|
-
# as long as the same indent is preserved at the beginning of each line, no escaping
|
|
28
|
-
# is required at all in the value, making it easy to read
|
|
29
|
-
content: |
|
|
30
|
-
<p>Thanks for using JSS!! Here are some resources to get you started:</p>
|
|
31
|
-
|
|
32
|
-
<h3><a href="https://jss.sitecore.com" rel="noopener noreferrer">Documentation</a></h3>
|
|
33
|
-
<p>The official JSS documentation can help you with any JSS task from getting started to advanced techniques.</p>
|
|
34
|
-
|
|
35
|
-
<h3><a href="/styleguide">Styleguide</a></h3>
|
|
36
|
-
<p>The JSS styleguide is a living example of how to use JSS, hosted right in this app.
|
|
37
|
-
It demonstrates most of the common patterns that JSS implementations may need to use,
|
|
38
|
-
as well as useful architectural patterns.</p>
|
|
39
|
-
|
|
40
|
-
<h3><a href="/graphql">GraphQL</a></h3>
|
|
41
|
-
<p>JSS features integration with the Sitecore GraphQL API to enable fetching non-route data from Sitecore - or from other internal backends as an API aggregator or proxy.
|
|
42
|
-
This route is a living example of how to use an integrate with GraphQL data in a JSS app.</p>
|
|
43
|
-
|
|
44
|
-
<div class="alert alert-dark">
|
|
45
|
-
<h4>This app is a boilerplate</h4>
|
|
46
|
-
<p>The JSS samples are a boilerplate, not a library. That means that any code in this app is meant for you to own and customize to your own requirements.</p>
|
|
47
|
-
<p>Want to change the lint settings? Do it. Want to read manifest data from a MongoDB database? Go for it. This app is yours.</p>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div class="alert alert-dark">
|
|
51
|
-
<h4>How to start with an empty app</h4>
|
|
52
|
-
<p>To remove all of the default sample content (the Styleguide and GraphQL routes) and start out with an empty JSS app:</p>
|
|
53
|
-
<ol>
|
|
54
|
-
<li>Delete <code>/src/components/Styleguide*</code> and <code>/src/components/GraphQL*</code></li>
|
|
55
|
-
<li>Delete <code>/sitecore/definitions/components/Styleguide*</code>, <code>/sitecore/definitions/templates/Styleguide*</code>, and <code>/sitecore/definitions/components/GraphQL*</code></li>
|
|
56
|
-
<li>Delete <code>/data/component-content/Styleguide</code></li>
|
|
57
|
-
<li>Delete <code>/data/content/Styleguide</code></li>
|
|
58
|
-
<li>Delete <code>/data/routes/styleguide</code> and <code>/data/routes/graphql</code></li>
|
|
59
|
-
<li>Delete <code>/data/dictionary/*.yml</code></li>
|
|
60
|
-
</ol>
|
|
61
|
-
</div>
|
|
1
|
+
# This is a route layout definition.
|
|
2
|
+
# The route definition defines which Sitecore components are present on a route,
|
|
3
|
+
# what their content data is, and which _placeholder_ they are placed in.
|
|
4
|
+
|
|
5
|
+
# This particular route definition is for the home route - '/', so it defines the
|
|
6
|
+
# components shown on the initial page of the app.
|
|
7
|
+
|
|
8
|
+
# You may use equivalent JSON files instead of YAML if you prefer;
|
|
9
|
+
# however YAML is simpler to read and allows comments like this one :)
|
|
10
|
+
|
|
11
|
+
# Setting an ID is optional, but it will allow referring to this item in internal links
|
|
12
|
+
# the ID can be a app-wide-unique string, or a GUID value.
|
|
13
|
+
id: home-page
|
|
14
|
+
|
|
15
|
+
# Route-level fields are appropriate for page level data like <title> contents
|
|
16
|
+
# Define route level fields in /sitecore/definitions/routes.sitecore
|
|
17
|
+
fields:
|
|
18
|
+
pageTitle: Welcome to Sitecore JSS
|
|
19
|
+
# Define the page layout starting at the root placeholder - in this case, '<%- helper.getAppPrefix(appPrefix, appName) %>main'
|
|
20
|
+
# root placeholder names are defined in the package.json config section (required for Sitecore deployment)
|
|
21
|
+
placeholders:
|
|
22
|
+
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
23
|
+
- componentName: ContentBlock
|
|
24
|
+
fields:
|
|
25
|
+
heading: Welcome to Sitecore JSS
|
|
26
|
+
# to author content in YAML, use _multi-line values_ (prefixed with | + endline)
|
|
27
|
+
# as long as the same indent is preserved at the beginning of each line, no escaping
|
|
28
|
+
# is required at all in the value, making it easy to read
|
|
29
|
+
content: |
|
|
30
|
+
<p>Thanks for using JSS!! Here are some resources to get you started:</p>
|
|
31
|
+
|
|
32
|
+
<h3><a href="https://jss.sitecore.com" rel="noopener noreferrer">Documentation</a></h3>
|
|
33
|
+
<p>The official JSS documentation can help you with any JSS task from getting started to advanced techniques.</p>
|
|
34
|
+
|
|
35
|
+
<h3><a href="/styleguide">Styleguide</a></h3>
|
|
36
|
+
<p>The JSS styleguide is a living example of how to use JSS, hosted right in this app.
|
|
37
|
+
It demonstrates most of the common patterns that JSS implementations may need to use,
|
|
38
|
+
as well as useful architectural patterns.</p>
|
|
39
|
+
|
|
40
|
+
<h3><a href="/graphql">GraphQL</a></h3>
|
|
41
|
+
<p>JSS features integration with the Sitecore GraphQL API to enable fetching non-route data from Sitecore - or from other internal backends as an API aggregator or proxy.
|
|
42
|
+
This route is a living example of how to use an integrate with GraphQL data in a JSS app.</p>
|
|
43
|
+
|
|
44
|
+
<div class="alert alert-dark">
|
|
45
|
+
<h4>This app is a boilerplate</h4>
|
|
46
|
+
<p>The JSS samples are a boilerplate, not a library. That means that any code in this app is meant for you to own and customize to your own requirements.</p>
|
|
47
|
+
<p>Want to change the lint settings? Do it. Want to read manifest data from a MongoDB database? Go for it. This app is yours.</p>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div class="alert alert-dark">
|
|
51
|
+
<h4>How to start with an empty app</h4>
|
|
52
|
+
<p>To remove all of the default sample content (the Styleguide and GraphQL routes) and start out with an empty JSS app:</p>
|
|
53
|
+
<ol>
|
|
54
|
+
<li>Delete <code>/src/components/Styleguide*</code> and <code>/src/components/GraphQL*</code></li>
|
|
55
|
+
<li>Delete <code>/sitecore/definitions/components/Styleguide*</code>, <code>/sitecore/definitions/templates/Styleguide*</code>, and <code>/sitecore/definitions/components/GraphQL*</code></li>
|
|
56
|
+
<li>Delete <code>/data/component-content/Styleguide</code></li>
|
|
57
|
+
<li>Delete <code>/data/content/Styleguide</code></li>
|
|
58
|
+
<li>Delete <code>/data/routes/styleguide</code> and <code>/data/routes/graphql</code></li>
|
|
59
|
+
<li>Delete <code>/data/dictionary/*.yml</code></li>
|
|
60
|
+
</ol>
|
|
61
|
+
</div>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
fields:
|
|
2
|
-
pageTitle: GraphQL | Sitecore JSS
|
|
3
|
-
placeholders:
|
|
4
|
-
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
5
|
-
- componentName: ContentBlock
|
|
6
|
-
fields:
|
|
7
|
-
heading: Using GraphQL with JSS
|
|
8
|
-
content: |
|
|
9
|
-
<p>This is a live example of using Integrated GraphQL and Connected GraphQL with a JSS app.
|
|
10
|
-
For more information on GraphQL use in JSS, please see <a href="https://jss.sitecore.com" target="_blank" rel="noopener noreferrer">the documentation</a>.</p>
|
|
11
|
-
- componentName: GraphQL-Layout
|
|
12
|
-
placeholders:
|
|
13
|
-
<%- helper.getAppPrefix(appPrefix, appName) %>jss-graphql-layout:
|
|
14
|
-
- componentName: GraphQL-IntegratedDemo
|
|
15
|
-
fields:
|
|
16
|
-
sample1: Hello integrated GraphQL world!
|
|
17
|
-
sample2:
|
|
18
|
-
href: https://www.sitecore.com
|
|
19
|
-
target: _blank
|
|
20
|
-
text: GraphQL lets you get structured field data too
|
|
21
|
-
- componentName: GraphQL-ConnectedDemo
|
|
22
|
-
fields:
|
|
23
|
-
sample1: Hello connected GraphQL world!
|
|
24
|
-
sample2:
|
|
25
|
-
href: https://www.sitecore.com
|
|
26
|
-
target: _blank
|
|
27
|
-
text: GraphQL lets you get structured field data too
|
|
1
|
+
fields:
|
|
2
|
+
pageTitle: GraphQL | Sitecore JSS
|
|
3
|
+
placeholders:
|
|
4
|
+
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
5
|
+
- componentName: ContentBlock
|
|
6
|
+
fields:
|
|
7
|
+
heading: Using GraphQL with JSS
|
|
8
|
+
content: |
|
|
9
|
+
<p>This is a live example of using Integrated GraphQL and Connected GraphQL with a JSS app.
|
|
10
|
+
For more information on GraphQL use in JSS, please see <a href="https://jss.sitecore.com" target="_blank" rel="noopener noreferrer">the documentation</a>.</p>
|
|
11
|
+
- componentName: GraphQL-Layout
|
|
12
|
+
placeholders:
|
|
13
|
+
<%- helper.getAppPrefix(appPrefix, appName) %>jss-graphql-layout:
|
|
14
|
+
- componentName: GraphQL-IntegratedDemo
|
|
15
|
+
fields:
|
|
16
|
+
sample1: Hello integrated GraphQL world!
|
|
17
|
+
sample2:
|
|
18
|
+
href: https://www.sitecore.com
|
|
19
|
+
target: _blank
|
|
20
|
+
text: GraphQL lets you get structured field data too
|
|
21
|
+
- componentName: GraphQL-ConnectedDemo
|
|
22
|
+
fields:
|
|
23
|
+
sample1: Hello connected GraphQL world!
|
|
24
|
+
sample2:
|
|
25
|
+
href: https://www.sitecore.com
|
|
26
|
+
target: _blank
|
|
27
|
+
text: GraphQL lets you get structured field data too
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
fields:
|
|
2
|
-
pageTitle: Sample 1 Page Title
|
|
3
|
-
placeholders:
|
|
4
|
-
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
5
|
-
- componentName: ContentBlock
|
|
6
|
-
fields:
|
|
7
|
-
heading: GraphQL Sample 1
|
|
8
|
-
content: |
|
|
9
|
-
<p>A child route here to illustrate the power of GraphQL queries. <a href="/graphql">Back to GraphQL route</a></p>
|
|
1
|
+
fields:
|
|
2
|
+
pageTitle: Sample 1 Page Title
|
|
3
|
+
placeholders:
|
|
4
|
+
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
5
|
+
- componentName: ContentBlock
|
|
6
|
+
fields:
|
|
7
|
+
heading: GraphQL Sample 1
|
|
8
|
+
content: |
|
|
9
|
+
<p>A child route here to illustrate the power of GraphQL queries. <a href="/graphql">Back to GraphQL route</a></p>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
fields:
|
|
2
|
-
pageTitle: Sample 2 Page Title
|
|
3
|
-
placeholders:
|
|
4
|
-
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
5
|
-
- componentName: ContentBlock
|
|
6
|
-
fields:
|
|
7
|
-
heading: GraphQL Sample 2
|
|
8
|
-
content: |
|
|
9
|
-
<p>A child route here to illustrate the power of GraphQL queries. <a href="/graphql">Back to GraphQL route</a></p>
|
|
1
|
+
fields:
|
|
2
|
+
pageTitle: Sample 2 Page Title
|
|
3
|
+
placeholders:
|
|
4
|
+
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
5
|
+
- componentName: ContentBlock
|
|
6
|
+
fields:
|
|
7
|
+
heading: GraphQL Sample 2
|
|
8
|
+
content: |
|
|
9
|
+
<p>A child route here to illustrate the power of GraphQL queries. <a href="/graphql">Back to GraphQL route</a></p>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# Using a Custom Route Type enables adding more field data to the route level.
|
|
2
|
-
template: <%- helper.getAppPrefix(appPrefix, appName) %>ExampleCustomRouteType
|
|
3
|
-
fields:
|
|
4
|
-
# Note that custom route types inherit from the default route type automatically.
|
|
5
|
-
# This is what makes the `pageTitle` field available here, when it's not defined on the custom route type.
|
|
6
|
-
pageTitle: Custom Route Type | Sitecore JSS
|
|
7
|
-
headline: A Treatise on Route-Level Fields in JSS
|
|
8
|
-
author: Myrtle
|
|
9
|
-
content: <p>Custom route type fields are good for things like articles, where you may wish to have a filter UI on content fields, such as author or category. Route level fields are easy to query against, whereas component-level fields are not because it's possible to remove a component from a route. Note that route level fields <em>cannot be personalized</em> because you cannot conditionally swap out the route item for a different content item.</p>
|
|
10
|
-
placeholders:
|
|
11
|
-
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
12
|
-
- componentName: Styleguide-CustomRouteType
|
|
1
|
+
# Using a Custom Route Type enables adding more field data to the route level.
|
|
2
|
+
template: <%- helper.getAppPrefix(appPrefix, appName) %>ExampleCustomRouteType
|
|
3
|
+
fields:
|
|
4
|
+
# Note that custom route types inherit from the default route type automatically.
|
|
5
|
+
# This is what makes the `pageTitle` field available here, when it's not defined on the custom route type.
|
|
6
|
+
pageTitle: Custom Route Type | Sitecore JSS
|
|
7
|
+
headline: A Treatise on Route-Level Fields in JSS
|
|
8
|
+
author: Myrtle
|
|
9
|
+
content: <p>Custom route type fields are good for things like articles, where you may wish to have a filter UI on content fields, such as author or category. Route level fields are easy to query against, whereas component-level fields are not because it's possible to remove a component from a route. Note that route level fields <em>cannot be personalized</em> because you cannot conditionally swap out the route item for a different content item.</p>
|
|
10
|
+
placeholders:
|
|
11
|
+
<%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
|
|
12
|
+
- componentName: Styleguide-CustomRouteType
|