Book first implementation + bug fixed reindex
This commit is contained in:
1 parent
cbbea6e583
commit
545e82a816
8 files changed
+239
-10
No files matched your search
+24
-2
@@ -42,13 +42,15 @@ function newAppPostLoader() {
|
||||
appSchema: [],
|
||||
docsNodeSchema: [],
|
||||
docsConceptSchema: [],
|
||||
docsTopicSchema: []
|
||||
docsTopicSchema: [],
|
||||
docsBookSchema: []
|
||||
},
|
||||
map: {
|
||||
appSchema: new Map(),
|
||||
docsNodeSchema: new Map(),
|
||||
docsConceptSchema: new Map(),
|
||||
docsTopicSchema: new Map()
|
||||
docsTopicSchema: new Map(),
|
||||
docsBookSchema: new Map()
|
||||
}
|
||||
}
|
||||
SCHEMAS_BY_PROJECT.set(project, schemas)
|
||||
@@ -132,6 +134,26 @@ function newAppPostLoader() {
|
||||
webServerResponses++
|
||||
if (webServerResponses === totalWebServerCalls) { startCanvas() }
|
||||
}
|
||||
|
||||
totalWebServerCalls++
|
||||
httpRequest(undefined, 'Schema/' + project + '/DocsBookSchema', onResponseBookSchema)
|
||||
|
||||
function onResponseBookSchema(err, schema) {
|
||||
try {
|
||||
schemas.array.docsBookSchema = JSON.parse(schema)
|
||||
|
||||
for (let j = 0; j < schemas.array.docsBookSchema.length; j++) {
|
||||
let schemaDocument = schemas.array.docsBookSchema[j]
|
||||
let key = schemaDocument.type
|
||||
schemas.map.docsBookSchema.set(key, schemaDocument)
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err.stack)
|
||||
}
|
||||
|
||||
webServerResponses++
|
||||
if (webServerResponses === totalWebServerCalls) { startCanvas() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user