Skip to content

Commit cd6520c

Browse files
updated the example file
2 parents a3e2793 + f83b71e commit cd6520c

File tree

153 files changed

+8568
-6650
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+8568
-6650
lines changed

LICENSE.txt

100644100755
File mode changed.

README.md

100644100755
File mode changed.

config.js

100644100755
File mode changed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

dist/.DS_Store

100644100755
File mode changed.

dist/nativescript/contentstack.js

100644100755
File mode changed.

dist/react-native/contentstack.js

100644100755
File mode changed.

dist/web/contentstack.js

100644100755
File mode changed.

docs-config.json

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"opts": {
3-
"template": "csio-templates",
3+
"template": "contentstack-templates",
44
"encoding": "utf8",
55
"destination": "./js-sdk-reference/",
66
"recurse": true
@@ -19,6 +19,7 @@
1919
]
2020
},
2121
"tags": {
22-
"dictionaries": ["jsdoc", "closure"]
22+
"dictionaries": ["jsdoc", "closure"],
23+
"allowUnknownTags": true
2324
}
2425
}

examples/node/contentstack-demo.js

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ContentstackDemo {
2424
*/
2525
getEntries(contentTypeUid) {
2626
contentTypeUid = contentTypeUid || 'source'
27-
return this.Stack.ContentType(contentTypeUid).Query().toJSON().find()
27+
return this.Stack.ContentType(contentTypeUid).Query().includeReference('secondary_section.reference.reference').find()
2828
}
2929

3030
/**
@@ -75,7 +75,7 @@ class ContentstackDemo {
7575
getEntry(contentTypeUid, entryUid) {
7676
contentTypeUid = contentTypeUid || 'source'
7777
entryUid = entryUid || 'blt123something'
78-
return this.Stack.ContentType(contentTypeUid).Entry(entryUid).fetch()
78+
return this.Stack.ContentType(contentTypeUid).Entry(entryUid).language('ja-jp').fetch()
7979
}
8080

8181
/**

examples/web/favicon.ico

100644100755
File mode changed.

examples/web/index.html

100644100755
File mode changed.

examples/web/scripts/contentstack.js

100644100755
File mode changed.

0 commit comments

Comments
 (0)