mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-26 14:23:42 +01:00
deploy: c0cc26d1f5
This commit is contained in:
parent
f952931e95
commit
aa95622408
6152
data/database.json
6152
data/database.json
File diff suppressed because one or more lines are too long
@ -14,7 +14,9 @@ class Geometry {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
var xyz = this.loadXYZString(str);
|
var xyz = this.loadXYZString(str);
|
||||||
xyz.sourceFile = new websiteFile(file)
|
for (var geom of xyz){
|
||||||
|
geom.sourceFile = new websiteFile(file)
|
||||||
|
}
|
||||||
return xyz
|
return xyz
|
||||||
}
|
}
|
||||||
static loadXYZString(text) {
|
static loadXYZString(text) {
|
||||||
|
@ -8,8 +8,8 @@ class indexDB {
|
|||||||
var site_url = "/"+window.location.pathname.split('/')[1];
|
var site_url = "/"+window.location.pathname.split('/')[1];
|
||||||
const text = await getTextFromFileUrlAsync(site_url+"/data/index.yaml",{"Cache-Control":`max-age=${maxAge}`})
|
const text = await getTextFromFileUrlAsync(site_url+"/data/index.yaml",{"Cache-Control":`max-age=${maxAge}`})
|
||||||
const myYaml = jsyaml.load(text);
|
const myYaml = jsyaml.load(text);
|
||||||
db.sets = ((myYaml.sets === null) ? new Map() : new Map(Object.entries(myYaml.sets)));
|
db.sets = ((myYaml.sets === undefined) ? new Map() : new Map(Object.entries(myYaml.sets)));
|
||||||
db.others = ((myYaml.others === null) ? [] : Array.from(myYaml.others));
|
db.others = ((myYaml.others === undefined) ? [] : Array.from(myYaml.others));
|
||||||
window.indexDB=db
|
window.indexDB=db
|
||||||
return db
|
return db
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user