This commit is contained in:
@@ -20,7 +20,7 @@ export const CommonStore = defineStore({
|
||||
this.hover_elmt = elmt;
|
||||
},
|
||||
addPaperSymbolDefinition(name, path) {
|
||||
console.log(`addPaperSymbolDefinition ${name}`, path);
|
||||
// console.log(`addPaperSymbolDefinition ${name}`, path);
|
||||
// mode can be : terraindevie, proximite, superposition, puissancedagir, action, doleancer
|
||||
this.paper_symbol_definitions[name] = new paper.SymbolDefinition(path);
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@ export const StaticsStore = defineStore({
|
||||
console.log('statics store loadStatics');
|
||||
return new Promise((resolve, reject) => {
|
||||
const ast = gql`{
|
||||
allstatics {
|
||||
promotedstatics {
|
||||
...StaticsFields
|
||||
}
|
||||
}
|
||||
@@ -31,11 +31,11 @@ export const StaticsStore = defineStore({
|
||||
`
|
||||
console.log('ast', ast);
|
||||
GQL.post('', { query: print(ast) })
|
||||
.then(({ data : { data : { allstatics } } }) => {
|
||||
console.log('loadstatics loaded', allstatics)
|
||||
this.statics = allstatics
|
||||
.then(({ data : { data : { promotedstatics } } }) => {
|
||||
console.log('loadstatics loaded', promotedstatics)
|
||||
this.statics = promotedstatics
|
||||
|
||||
allstatics.forEach((s) => {
|
||||
promotedstatics.forEach((s) => {
|
||||
// console.log("s", s);
|
||||
this.statics_byid[s.id] = s
|
||||
});
|
||||
|
Reference in New Issue
Block a user