Skip to content

Commit 5280404

Browse files
Merge pull request #10 from contentstack/doc-Hotfix3.5.1
Folder rename
2 parents 56d2080 + 36cdeef commit 5280404

File tree

164 files changed

+9391
-7202
lines changed

Some content is hidden

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

164 files changed

+9391
-7202
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/node/contentstack.js

100644100755
Lines changed: 734 additions & 489 deletions
Large diffs are not rendered by default.

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

@@ -38,7 +38,7 @@ class ContentstackDemo {
3838
getEntry(contentTypeUid, entryUid) {
3939
contentTypeUid = contentTypeUid || 'source'
4040
entryUid = entryUid || 'blt123something'
41-
return this.Stack.ContentType(contentTypeUid).Entry(entryUid).fetch()
41+
return this.Stack.ContentType(contentTypeUid).Entry(entryUid).language('ja-jp').fetch()
4242
}
4343

4444
/**

examples/node/index.js

100644100755
Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,35 @@
22

33
const ContentstackDemo = require('./contentstack-demo.js')
44

5-
const Demo = new ContentstackDemo({ 'api_key': '<api_key>', 'access_token': '<Delivery_token>', 'environment': '<Environment>'})
5+
const Demo = new ContentstackDemo({ 'api_key': 'blt4f29123a87c48c8b', 'access_token': 'bltb77300e99de1ce68', 'environment': 'local'})
66

77

8-
// Demo
9-
// .getEntries('source')
10-
// .then(function(result) {
11-
// // result object with entry
12-
// console.info("Result2 : ", result)
13-
14-
// //console.info("Result2 : ", JSON.stringify(result))
8+
Demo
9+
.getEntries('generic_template_1')
10+
.then(function(result) {
11+
// result object with entry
12+
console.log("scnjdncjdncjd", result[0][0].getDownloadUrl())
13+
//console.info("Result2 : ", JSON.stringify(result))
1514

16-
// })
17-
// .catch(function(err) {
18-
// // error of get entry
19-
// console.error("Fetch Error :", err)
20-
// })
15+
})
16+
.catch(function(err) {
17+
// error of get entry
18+
console.error("Fetch Error :", err)
19+
})
2120

2221

2322

2423
//get all the entries
25-
Demo.getSyncApi({"init": true, "type": "asset_published"})
26-
.then(function(result) {
27-
// result object with entries
28-
console.info("Result: ", result)
24+
// Demo.getSyncApi({"init": true, "type": "asset_published"})
25+
// .then(function(result) {
26+
// // result object with entries
27+
// console.info("Result: ", result)
2928

30-
})
31-
.catch(function(err) {
32-
// error of get all entries
33-
console.error("Find Error :", err)
34-
})
29+
// })
30+
// .catch(function(err) {
31+
// // error of get all entries
32+
// console.error("Find Error :", err)
33+
// })
3534

3635

3736

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.

examples/web/scripts/custom.min.js

100644100755
File mode changed.

0 commit comments

Comments
 (0)