create-sitecore-jss 21.0.2 → 21.0.3
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 +7 -7
- package/dist/templates/angular/.env +33 -33
- package/dist/templates/angular/.eslintignore +2 -2
- package/dist/templates/angular/.eslintrc +79 -79
- package/dist/templates/angular/LICENSE.txt +202 -202
- package/dist/templates/angular/README.md +51 -51
- package/dist/templates/angular/angular.json +169 -169
- package/dist/templates/angular/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/angular/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/angular/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/angular/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/angular/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/angular/data/dictionary/en.yml +4 -4
- package/dist/templates/angular/data/dictionary/{{language}}.yml +4 -4
- package/dist/templates/angular/data/routes/en.yml +61 -61
- package/dist/templates/angular/data/routes/graphql/en.yml +27 -27
- package/dist/templates/angular/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/angular/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/angular/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/angular/data/routes/styleguide/en.yml +253 -253
- package/dist/templates/angular/data/routes/styleguide/{{language}}.yml +25 -25
- package/dist/templates/angular/data/routes/{{language}}.yml +4 -4
- package/dist/templates/angular/e2e/tsconfig.e2e.json +15 -15
- package/dist/templates/angular/gitignore +47 -47
- package/dist/templates/angular/package.json +131 -131
- package/dist/templates/angular/sitecore/config/{{appName}}.config +90 -90
- package/dist/templates/angular/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
- package/dist/templates/angular/sitecore/gitignore +2 -2
- package/dist/templates/angular/src/app/app.component.html +1 -1
- package/dist/templates/angular/src/app/components/content-block/content-block.component.html +4 -4
- package/dist/templates/angular/src/app/components/gitignore +7 -7
- package/dist/templates/angular/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.graphql +69 -69
- package/dist/templates/angular/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.html +55 -55
- package/dist/templates/angular/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.html +47 -47
- package/dist/templates/angular/src/app/components/graph-ql-layout/graph-ql-layout.component.html +22 -22
- package/dist/templates/angular/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.component.html +5 -5
- package/dist/templates/angular/src/app/components/styleguide-component-params/styleguide-component-params.component.html +19 -19
- package/dist/templates/angular/src/app/components/styleguide-custom-route-type/styleguide-custom-route-type.component.html +14 -14
- package/dist/templates/angular/src/app/components/styleguide-field-usage-checkbox/styleguide-field-usage-checkbox.component.html +11 -11
- package/dist/templates/angular/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.html +26 -26
- package/dist/templates/angular/src/app/components/styleguide-field-usage-custom/styleguide-field-usage-custom.component.html +4 -4
- package/dist/templates/angular/src/app/components/styleguide-field-usage-date/styleguide-field-usage-date.component.html +27 -27
- package/dist/templates/angular/src/app/components/styleguide-field-usage-file/styleguide-field-usage-file.component.html +10 -10
- package/dist/templates/angular/src/app/components/styleguide-field-usage-image/styleguide-field-usage-image.component.html +30 -30
- package/dist/templates/angular/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.html +17 -17
- package/dist/templates/angular/src/app/components/styleguide-field-usage-link/styleguide-field-usage-link.component.html +44 -44
- package/dist/templates/angular/src/app/components/styleguide-field-usage-number/styleguide-field-usage-number.component.html +11 -11
- package/dist/templates/angular/src/app/components/styleguide-field-usage-rich-text/styleguide-field-usage-rich-text.component.html +11 -11
- package/dist/templates/angular/src/app/components/styleguide-field-usage-text/styleguide-field-usage-text.component.html +13 -13
- package/dist/templates/angular/src/app/components/styleguide-layout/styleguide-layout.component.html +20 -20
- package/dist/templates/angular/src/app/components/styleguide-layout-reuse/styleguide-layout-reuse.component.html +52 -52
- package/dist/templates/angular/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.html +37 -37
- package/dist/templates/angular/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.html +12 -12
- package/dist/templates/angular/src/app/components/styleguide-multilingual/styleguide-multilingual.component.html +15 -15
- package/dist/templates/angular/src/app/components/styleguide-route-fields/styleguide-route-fields.component.html +8 -8
- package/dist/templates/angular/src/app/components/styleguide-section/styleguide-section.component.html +7 -7
- package/dist/templates/angular/src/app/components/styleguide-sitecore-context/styleguide-sitecore-context.component.html +3 -3
- package/dist/templates/angular/src/app/components/styleguide-tracking/styleguide-tracking.component.html +175 -175
- package/dist/templates/angular/src/app/routing/layout/layout.component.html +17 -17
- package/dist/templates/angular/src/app/routing/navigation/navigation.component.html +21 -21
- package/dist/templates/angular/src/app/routing/not-found/not-found.component.html +7 -7
- package/dist/templates/angular/src/app/routing/server-error/server-error.component.html +3 -3
- package/dist/templates/angular/src/assets/images/sc_logo.svg +19 -19
- package/dist/templates/angular/src/index.html +12 -12
- package/dist/templates/angular/src/styles.css +26 -26
- package/dist/templates/angular/src/tsconfig.app.json +22 -22
- package/dist/templates/angular/src/tsconfig.server.json +21 -21
- package/dist/templates/angular/src/tsconfig.spec.json +24 -24
- package/dist/templates/angular/src/tsconfig.webpack-server.json +6 -6
- package/dist/templates/angular/tsconfig.json +30 -30
- package/dist/templates/nextjs/.babelrc +8 -8
- package/dist/templates/nextjs/.env +59 -59
- package/dist/templates/nextjs/.eslintrc +25 -25
- package/dist/templates/nextjs/.gitattributes +11 -11
- package/dist/templates/nextjs/.graphql-let.yml +10 -10
- package/dist/templates/nextjs/.prettierrc +8 -8
- package/dist/templates/nextjs/.vscode/launch.json +15 -15
- package/dist/templates/nextjs/LICENSE.txt +202 -202
- package/dist/templates/nextjs/README.md +6 -6
- package/dist/templates/nextjs/gitignore +32 -32
- package/dist/templates/nextjs/package.json +87 -87
- package/dist/templates/nextjs/public/sc_logo.svg +19 -19
- package/dist/templates/nextjs/sitecore/config/{{appName}}.config +165 -165
- package/dist/templates/nextjs/src/assets/app.css +28 -28
- package/dist/templates/nextjs/src/temp/GraphQLIntrospectionResult.json +22215 -22215
- package/dist/templates/nextjs/src/temp/gitignore +3 -3
- package/dist/templates/nextjs/tsconfig.json +34 -34
- package/dist/templates/nextjs/tsconfig.scripts.json +6 -6
- package/dist/templates/nextjs-personalize/.env +15 -15
- package/dist/templates/nextjs-personalize/package.json +5 -5
- 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/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 +242 -242
- 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/package.json +13 -13
- package/dist/templates/nextjs-styleguide/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
- package/dist/templates/nextjs-styleguide/sitecore/gitignore +3 -3
- package/dist/templates/nextjs-styleguide/src/components/graphql/GraphQL-ConnectedDemo.dynamic.graphql +69 -69
- 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/package.json +10 -10
- package/dist/templates/nextjs-sxa/src/assets/basic/_component.scss +18 -18
- package/dist/templates/nextjs-sxa/src/assets/basic/_container.scss +80 -80
- package/dist/templates/nextjs-sxa/src/assets/basic/_fonts.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/basic/_footer.scss +31 -31
- package/dist/templates/nextjs-sxa/src/assets/basic/_header.scss +50 -50
- package/dist/templates/nextjs-sxa/src/assets/basic/_navigation.scss +150 -150
- package/dist/templates/nextjs-sxa/src/assets/basic/_promo.scss +58 -58
- package/dist/templates/nextjs-sxa/src/assets/basic/_rich-text.scss +11 -11
- package/dist/templates/nextjs-sxa/src/assets/basic/_variables.scss +9 -9
- package/dist/templates/nextjs-sxa/src/assets/basic/main.scss +8 -8
- package/dist/templates/nextjs-sxa/src/assets/main.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/_app.scss +102 -102
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_functions.scss +8 -8
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_mixins.scss +121 -121
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_vars.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_colors.scss +283 -283
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_fontSizes.scss +16 -16
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_margins.scss +10 -10
- package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/_fonts.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/base/index.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/base/links/_link-button.scss +26 -26
- package/dist/templates/nextjs-sxa/src/assets/sass/base/links/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_inputs.scss +58 -58
- package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_links.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_ui-datepicker.scss +7 -7
- package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext-files-icons.scss +86 -86
- package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext.scss +101 -101
- package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/_typehead.scss +95 -95
- package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-container.scss +18 -18
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-image.scss +18 -18
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-navigation.scss +51 -51
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-promo.scss +42 -42
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-richtext-content.scss +19 -19
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_alignment.scss +25 -25
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_boxed.scss +16 -16
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_clearfix.scss +11 -11
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_highlighted.scss +62 -62
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_link-button.scss +16 -16
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_promoted-box.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/index.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_bordered.scss +23 -23
- package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_title-row-box.scss +66 -66
- package/dist/templates/nextjs-sxa/src/assets/sass/components/container/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image/_image-banner.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image/_image-default-size.scss +6 -6
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-left.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-right.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/index.scss +17 -17
- package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_acaindent.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_background.scss +27 -27
- package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_component-link-list.scss +45 -45
- package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_list-vertical.scss +20 -20
- package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-fat.scss +58 -58
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-main-horizontal-vertical.scss +152 -152
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-mobile.scss +89 -89
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-sidebar.scss +29 -29
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_sitemap-navigation.scss +20 -20
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/index.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_absolute-bottom-link.scss +8 -8
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-hero.scss +40 -40
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/index.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/_rich-text-lists.scss +63 -63
- package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_background-colors.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_indent.scss +10 -10
- package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/components/title/_component-title.scss +24 -24
- package/dist/templates/nextjs-sxa/src/assets/sass/components/title/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/main.scss +4 -4
- package/dist/templates/nextjs-sxa/src/assets/sass/variants/index.scss +5 -5
- package/dist/templates/node-headless-ssr-experience-edge/.env +6 -6
- package/dist/templates/node-headless-ssr-experience-edge/README.md +51 -51
- package/dist/templates/node-headless-ssr-experience-edge/package.json +38 -38
- package/dist/templates/node-headless-ssr-experience-edge/tsconfig.json +22 -22
- package/dist/templates/node-headless-ssr-proxy/.env +8 -8
- package/dist/templates/node-headless-ssr-proxy/.vscode/launch.json +47 -47
- package/dist/templates/node-headless-ssr-proxy/LICENSE.txt +202 -202
- package/dist/templates/node-headless-ssr-proxy/README.md +60 -60
- package/dist/templates/node-headless-ssr-proxy/package.json +43 -43
- package/dist/templates/node-headless-ssr-proxy/src/error.html +200 -200
- package/dist/templates/node-headless-ssr-proxy/tsconfig.json +22 -22
- package/dist/templates/react/.env +36 -36
- package/dist/templates/react/.eslintrc +78 -78
- package/dist/templates/react/.prettierrc +9 -9
- package/dist/templates/react/LICENSE.txt +202 -202
- package/dist/templates/react/README.md +2400 -2400
- 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/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 +247 -247
- 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/gitignore +25 -25
- package/dist/templates/react/package.json +120 -120
- package/dist/templates/react/public/index.html +35 -35
- package/dist/templates/react/sitecore/config/{{appName}}.config +90 -90
- package/dist/templates/react/sitecore/definitions/components/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
- package/dist/templates/react/sitecore/gitignore +2 -2
- package/dist/templates/react/src/assets/app.css +19 -19
- package/dist/templates/react/src/assets/sc_logo.svg +19 -19
- package/dist/templates/react/src/components/GraphQL-ConnectedDemo/query.graphql +69 -69
- package/dist/templates/react/src/temp/GraphQLFragmentTypes.json +207 -207
- package/dist/templates/react/src/temp/gitignore +3 -3
- 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 +113 -113
- 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 +16 -16
- 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 +82 -82
- package/dist/templates/react-native/sitecore/config/{{appName}}.config +47 -47
- package/dist/templates/react-native/sitecore/gitignore +2 -2
- package/dist/templates/vue/.browserslistrc +2 -2
- package/dist/templates/vue/.env +35 -35
- package/dist/templates/vue/.prettierrc +9 -9
- package/dist/templates/vue/LICENSE.txt +202 -202
- package/dist/templates/vue/README.md +34 -34
- 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/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 +247 -247
- 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/gitignore +25 -25
- package/dist/templates/vue/package.json +91 -91
- package/dist/templates/vue/public/img/icons/safari-pinned-tab.svg +75 -75
- package/dist/templates/vue/public/index.html +27 -27
- package/dist/templates/vue/public/manifest.json +14 -14
- package/dist/templates/vue/public/robots.txt +2 -2
- package/dist/templates/vue/sitecore/config/{{appName}}.config +89 -89
- package/dist/templates/vue/sitecore/definitions/components/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
- package/dist/templates/vue/sitecore/gitignore +4 -4
- package/dist/templates/vue/src/assets/app.css +22 -22
- package/dist/templates/vue/src/assets/sc_logo.svg +19 -19
- package/dist/templates/vue/src/components/GraphQL/GraphQL-ConnectedDemo.query.graphql +69 -69
- package/dist/templates/vue/src/temp/GraphQLFragmentTypes.json +273 -273
- package/dist/templates/vue/src/temp/gitignore +3 -3
- package/package.json +2 -2
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
# Sitecore JSS Angular Sample Application
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
[Documentation (Experience Platform)](https://doc.sitecore.com/xp/en/developers/hd/201/sitecore-headless-development/sitecore-javascript-rendering-sdk--jss--for-angular.html)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## App setup
|
|
8
|
-
|
|
9
|
-
1. `npm install`
|
|
10
|
-
1. `npm install -g @sitecore-jss/sitecore-jss-cli`
|
|
11
|
-
1. `jss setup`
|
|
12
|
-
|
|
13
|
-
> This setup is optional to get started with development, as it assumes you have Sitecore installed.
|
|
14
|
-
>
|
|
15
|
-
> If you answer "yes", you would need to provide the path to your Sitecore installation's "Website" folder.
|
|
16
|
-
|
|
17
|
-
## Development server
|
|
18
|
-
|
|
19
|
-
Run `jss start`.
|
|
20
|
-
|
|
21
|
-
The app will be built and webpack server will be started. So it's expected that the browser will open with `http://localhost:3000` and familiar default welcome content is rendered.
|
|
22
|
-
|
|
23
|
-
The app will automatically reload if you change any of the source files.
|
|
24
|
-
|
|
25
|
-
When running the development server, it automatically sets up a sitecore mock server configures a proxy that forwards all requests to `/sitecore` to that sitecore mock server. Check `proxy.conf.js` to see mock server and proxy implementation.
|
|
26
|
-
|
|
27
|
-
### Congratulations!
|
|
28
|
-
|
|
29
|
-
The app is now running in dev mode sourcing data from local files and is not connected to Sitecore in any way.
|
|
30
|
-
|
|
31
|
-
## App deployment
|
|
32
|
-
|
|
33
|
-
### Pre-requisites
|
|
34
|
-
|
|
35
|
-
1. Sitecore instance has JSS packages installed.
|
|
36
|
-
1. Sitecore is configured for this JSS app.
|
|
37
|
-
|
|
38
|
-
### Steps
|
|
39
|
-
|
|
40
|
-
Run `jss deploy package`.
|
|
41
|
-
|
|
42
|
-
This step will:
|
|
43
|
-
|
|
44
|
-
* Run the production bundle of your app.
|
|
45
|
-
* Generate the app manifest.
|
|
46
|
-
* Generate a package with the manifest and production bundle.
|
|
47
|
-
* Install the package over HTTP on your Sitecore instance.
|
|
48
|
-
|
|
49
|
-
## Further help
|
|
50
|
-
|
|
51
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
|
1
|
+
# Sitecore JSS Angular Sample Application
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
[Documentation (Experience Platform)](https://doc.sitecore.com/xp/en/developers/hd/201/sitecore-headless-development/sitecore-javascript-rendering-sdk--jss--for-angular.html)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## App setup
|
|
8
|
+
|
|
9
|
+
1. `npm install`
|
|
10
|
+
1. `npm install -g @sitecore-jss/sitecore-jss-cli`
|
|
11
|
+
1. `jss setup`
|
|
12
|
+
|
|
13
|
+
> This setup is optional to get started with development, as it assumes you have Sitecore installed.
|
|
14
|
+
>
|
|
15
|
+
> If you answer "yes", you would need to provide the path to your Sitecore installation's "Website" folder.
|
|
16
|
+
|
|
17
|
+
## Development server
|
|
18
|
+
|
|
19
|
+
Run `jss start`.
|
|
20
|
+
|
|
21
|
+
The app will be built and webpack server will be started. So it's expected that the browser will open with `http://localhost:3000` and familiar default welcome content is rendered.
|
|
22
|
+
|
|
23
|
+
The app will automatically reload if you change any of the source files.
|
|
24
|
+
|
|
25
|
+
When running the development server, it automatically sets up a sitecore mock server configures a proxy that forwards all requests to `/sitecore` to that sitecore mock server. Check `proxy.conf.js` to see mock server and proxy implementation.
|
|
26
|
+
|
|
27
|
+
### Congratulations!
|
|
28
|
+
|
|
29
|
+
The app is now running in dev mode sourcing data from local files and is not connected to Sitecore in any way.
|
|
30
|
+
|
|
31
|
+
## App deployment
|
|
32
|
+
|
|
33
|
+
### Pre-requisites
|
|
34
|
+
|
|
35
|
+
1. Sitecore instance has JSS packages installed.
|
|
36
|
+
1. Sitecore is configured for this JSS app.
|
|
37
|
+
|
|
38
|
+
### Steps
|
|
39
|
+
|
|
40
|
+
Run `jss deploy package`.
|
|
41
|
+
|
|
42
|
+
This step will:
|
|
43
|
+
|
|
44
|
+
* Run the production bundle of your app.
|
|
45
|
+
* Generate the app manifest.
|
|
46
|
+
* Generate a package with the manifest and production bundle.
|
|
47
|
+
* Install the package over HTTP on your Sitecore instance.
|
|
48
|
+
|
|
49
|
+
## Further help
|
|
50
|
+
|
|
51
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
|
@@ -1,169 +1,169 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
-
"cli": {
|
|
4
|
-
"analytics": false
|
|
5
|
-
},
|
|
6
|
-
"version": 1,
|
|
7
|
-
"newProjectRoot": "projects",
|
|
8
|
-
"projects": {
|
|
9
|
-
"<%- appName %>": {
|
|
10
|
-
"root": "",
|
|
11
|
-
"sourceRoot": "src",
|
|
12
|
-
"projectType": "application",
|
|
13
|
-
"architect": {
|
|
14
|
-
"build": {
|
|
15
|
-
"builder": "@angular-builders/custom-webpack:browser",
|
|
16
|
-
"options": {
|
|
17
|
-
"outputPath": "dist/browser/",
|
|
18
|
-
"index": "src/index.html",
|
|
19
|
-
"main": "src/main.ts",
|
|
20
|
-
"tsConfig": "src/tsconfig.app.json",
|
|
21
|
-
"polyfills": "src/polyfills.ts",
|
|
22
|
-
"assets": [
|
|
23
|
-
"src/assets",
|
|
24
|
-
"src/favicon.ico"
|
|
25
|
-
],
|
|
26
|
-
"styles": [
|
|
27
|
-
"node_modules/bootstrap/dist/css/bootstrap.min.css",
|
|
28
|
-
"src/styles.css"
|
|
29
|
-
],
|
|
30
|
-
"scripts": [],
|
|
31
|
-
"allowedCommonJsDependencies": [
|
|
32
|
-
"zen-observable",
|
|
33
|
-
"js-sha256"
|
|
34
|
-
],
|
|
35
|
-
"customWebpackConfig": {
|
|
36
|
-
"path": "./webpack.config.js"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"configurations": {
|
|
40
|
-
"production": {
|
|
41
|
-
"budgets": [
|
|
42
|
-
{
|
|
43
|
-
"type": "anyComponentStyle",
|
|
44
|
-
"maximumWarning": "6kb"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"baseHref": "/",
|
|
48
|
-
"aot": true,
|
|
49
|
-
"optimization": true,
|
|
50
|
-
"outputHashing": "all",
|
|
51
|
-
"sourceMap": false,
|
|
52
|
-
"namedChunks": false,
|
|
53
|
-
"extractLicenses": true,
|
|
54
|
-
"vendorChunk": false,
|
|
55
|
-
"buildOptimizer": true,
|
|
56
|
-
"fileReplacements": [
|
|
57
|
-
{
|
|
58
|
-
"replace": "src/environments/environment.ts",
|
|
59
|
-
"with": "src/environments/environment.prod.ts"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"serve": {
|
|
66
|
-
"builder": "@angular-builders/custom-webpack:dev-server",
|
|
67
|
-
"options": {
|
|
68
|
-
"browserTarget": "<%- appName %>:build",
|
|
69
|
-
"port": 3000,
|
|
70
|
-
"proxyConfig": "proxy.conf.js"
|
|
71
|
-
},
|
|
72
|
-
"configurations": {
|
|
73
|
-
"production": {
|
|
74
|
-
"browserTarget": "<%- appName %>:build:production"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"extract-i18n": {
|
|
79
|
-
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
80
|
-
"options": {
|
|
81
|
-
"browserTarget": "<%- appName %>:build"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"test": {
|
|
85
|
-
"builder": "@angular-devkit/build-angular:karma",
|
|
86
|
-
"options": {
|
|
87
|
-
"main": "src/test.ts",
|
|
88
|
-
"karmaConfig": "./karma.conf.js",
|
|
89
|
-
"polyfills": "src/polyfills.ts",
|
|
90
|
-
"tsConfig": "src/tsconfig.spec.json",
|
|
91
|
-
"scripts": [],
|
|
92
|
-
"styles": [
|
|
93
|
-
"src/styles.css"
|
|
94
|
-
],
|
|
95
|
-
"assets": [
|
|
96
|
-
"src/assets",
|
|
97
|
-
"src/favicon.ico"
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"lint": {
|
|
102
|
-
"builder": "@angular-eslint/builder:lint",
|
|
103
|
-
"options": {
|
|
104
|
-
"lintFilePatterns": [
|
|
105
|
-
"src/**/*.ts",
|
|
106
|
-
"src/**/*.html"
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"server": {
|
|
111
|
-
"builder": "@angular-devkit/build-angular:server",
|
|
112
|
-
"options": {
|
|
113
|
-
"outputPath": "dist/server",
|
|
114
|
-
"main": "server.bundle.ts",
|
|
115
|
-
"tsConfig": "src/tsconfig.server.json"
|
|
116
|
-
},
|
|
117
|
-
"configurations": {
|
|
118
|
-
"production": {
|
|
119
|
-
"outputHashing": "media",
|
|
120
|
-
"sourceMap": false,
|
|
121
|
-
"optimization": true,
|
|
122
|
-
"fileReplacements": [
|
|
123
|
-
{
|
|
124
|
-
"replace": "src/environments/environment.ts",
|
|
125
|
-
"with": "src/environments/environment.prod.ts"
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"angular-e2e": {
|
|
134
|
-
"root": "",
|
|
135
|
-
"sourceRoot": "",
|
|
136
|
-
"projectType": "application",
|
|
137
|
-
"architect": {
|
|
138
|
-
"e2e": {
|
|
139
|
-
"builder": "@angular-devkit/build-angular:protractor",
|
|
140
|
-
"options": {
|
|
141
|
-
"protractorConfig": "./protractor.conf.js",
|
|
142
|
-
"devServerTarget": "<%- appName %>:serve"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"lint": {
|
|
146
|
-
"builder": "@angular-devkit/build-angular:tslint",
|
|
147
|
-
"options": {
|
|
148
|
-
"tsConfig": [
|
|
149
|
-
"e2e/tsconfig.e2e.json"
|
|
150
|
-
],
|
|
151
|
-
"exclude": [
|
|
152
|
-
"**/node_modules/**"
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"defaultProject": "<%- appName %>",
|
|
160
|
-
"schematics": {
|
|
161
|
-
"@schematics/angular:component": {
|
|
162
|
-
"prefix": "app",
|
|
163
|
-
"styleext": "css"
|
|
164
|
-
},
|
|
165
|
-
"@schematics/angular:directive": {
|
|
166
|
-
"prefix": "app"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"cli": {
|
|
4
|
+
"analytics": false
|
|
5
|
+
},
|
|
6
|
+
"version": 1,
|
|
7
|
+
"newProjectRoot": "projects",
|
|
8
|
+
"projects": {
|
|
9
|
+
"<%- appName %>": {
|
|
10
|
+
"root": "",
|
|
11
|
+
"sourceRoot": "src",
|
|
12
|
+
"projectType": "application",
|
|
13
|
+
"architect": {
|
|
14
|
+
"build": {
|
|
15
|
+
"builder": "@angular-builders/custom-webpack:browser",
|
|
16
|
+
"options": {
|
|
17
|
+
"outputPath": "dist/browser/",
|
|
18
|
+
"index": "src/index.html",
|
|
19
|
+
"main": "src/main.ts",
|
|
20
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
21
|
+
"polyfills": "src/polyfills.ts",
|
|
22
|
+
"assets": [
|
|
23
|
+
"src/assets",
|
|
24
|
+
"src/favicon.ico"
|
|
25
|
+
],
|
|
26
|
+
"styles": [
|
|
27
|
+
"node_modules/bootstrap/dist/css/bootstrap.min.css",
|
|
28
|
+
"src/styles.css"
|
|
29
|
+
],
|
|
30
|
+
"scripts": [],
|
|
31
|
+
"allowedCommonJsDependencies": [
|
|
32
|
+
"zen-observable",
|
|
33
|
+
"js-sha256"
|
|
34
|
+
],
|
|
35
|
+
"customWebpackConfig": {
|
|
36
|
+
"path": "./webpack.config.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"configurations": {
|
|
40
|
+
"production": {
|
|
41
|
+
"budgets": [
|
|
42
|
+
{
|
|
43
|
+
"type": "anyComponentStyle",
|
|
44
|
+
"maximumWarning": "6kb"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"baseHref": "/",
|
|
48
|
+
"aot": true,
|
|
49
|
+
"optimization": true,
|
|
50
|
+
"outputHashing": "all",
|
|
51
|
+
"sourceMap": false,
|
|
52
|
+
"namedChunks": false,
|
|
53
|
+
"extractLicenses": true,
|
|
54
|
+
"vendorChunk": false,
|
|
55
|
+
"buildOptimizer": true,
|
|
56
|
+
"fileReplacements": [
|
|
57
|
+
{
|
|
58
|
+
"replace": "src/environments/environment.ts",
|
|
59
|
+
"with": "src/environments/environment.prod.ts"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"serve": {
|
|
66
|
+
"builder": "@angular-builders/custom-webpack:dev-server",
|
|
67
|
+
"options": {
|
|
68
|
+
"browserTarget": "<%- appName %>:build",
|
|
69
|
+
"port": 3000,
|
|
70
|
+
"proxyConfig": "proxy.conf.js"
|
|
71
|
+
},
|
|
72
|
+
"configurations": {
|
|
73
|
+
"production": {
|
|
74
|
+
"browserTarget": "<%- appName %>:build:production"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"extract-i18n": {
|
|
79
|
+
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
80
|
+
"options": {
|
|
81
|
+
"browserTarget": "<%- appName %>:build"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"test": {
|
|
85
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
86
|
+
"options": {
|
|
87
|
+
"main": "src/test.ts",
|
|
88
|
+
"karmaConfig": "./karma.conf.js",
|
|
89
|
+
"polyfills": "src/polyfills.ts",
|
|
90
|
+
"tsConfig": "src/tsconfig.spec.json",
|
|
91
|
+
"scripts": [],
|
|
92
|
+
"styles": [
|
|
93
|
+
"src/styles.css"
|
|
94
|
+
],
|
|
95
|
+
"assets": [
|
|
96
|
+
"src/assets",
|
|
97
|
+
"src/favicon.ico"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"lint": {
|
|
102
|
+
"builder": "@angular-eslint/builder:lint",
|
|
103
|
+
"options": {
|
|
104
|
+
"lintFilePatterns": [
|
|
105
|
+
"src/**/*.ts",
|
|
106
|
+
"src/**/*.html"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"server": {
|
|
111
|
+
"builder": "@angular-devkit/build-angular:server",
|
|
112
|
+
"options": {
|
|
113
|
+
"outputPath": "dist/server",
|
|
114
|
+
"main": "server.bundle.ts",
|
|
115
|
+
"tsConfig": "src/tsconfig.server.json"
|
|
116
|
+
},
|
|
117
|
+
"configurations": {
|
|
118
|
+
"production": {
|
|
119
|
+
"outputHashing": "media",
|
|
120
|
+
"sourceMap": false,
|
|
121
|
+
"optimization": true,
|
|
122
|
+
"fileReplacements": [
|
|
123
|
+
{
|
|
124
|
+
"replace": "src/environments/environment.ts",
|
|
125
|
+
"with": "src/environments/environment.prod.ts"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"angular-e2e": {
|
|
134
|
+
"root": "",
|
|
135
|
+
"sourceRoot": "",
|
|
136
|
+
"projectType": "application",
|
|
137
|
+
"architect": {
|
|
138
|
+
"e2e": {
|
|
139
|
+
"builder": "@angular-devkit/build-angular:protractor",
|
|
140
|
+
"options": {
|
|
141
|
+
"protractorConfig": "./protractor.conf.js",
|
|
142
|
+
"devServerTarget": "<%- appName %>:serve"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"lint": {
|
|
146
|
+
"builder": "@angular-devkit/build-angular:tslint",
|
|
147
|
+
"options": {
|
|
148
|
+
"tsConfig": [
|
|
149
|
+
"e2e/tsconfig.e2e.json"
|
|
150
|
+
],
|
|
151
|
+
"exclude": [
|
|
152
|
+
"**/node_modules/**"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"defaultProject": "<%- appName %>",
|
|
160
|
+
"schematics": {
|
|
161
|
+
"@schematics/angular:component": {
|
|
162
|
+
"prefix": "app",
|
|
163
|
+
"styleext": "css"
|
|
164
|
+
},
|
|
165
|
+
"@schematics/angular:directive": {
|
|
166
|
+
"prefix": "app"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -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-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'
|