Removed stray console logging
closes Creatures summoned to tabletops from libraries are missing their properties #373
This commit is contained in:
@@ -97,7 +97,7 @@ if (Meteor.isClient) {
|
||||
} else if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
if (!Docs.findOne()) {
|
||||
console.log('No docs found, filling documentation with defaults');
|
||||
console.info('No docs found, filling documentation with defaults');
|
||||
Assets.getText('docs/defaultDocs.json', (error, string) => {
|
||||
const docs = JSON.parse(string)
|
||||
docs.forEach(doc => Docs.insert(doc));
|
||||
|
||||
@@ -35,7 +35,6 @@ export default function mutationToPropUpdates(mutation: Mutation) {
|
||||
}
|
||||
// Remove creature properties
|
||||
if (mutation.removals) for (const removeOne of mutation.removals) {
|
||||
console.log(removeOne);
|
||||
bulkWriteOps.push({
|
||||
deleteOne: {
|
||||
filter: {
|
||||
|
||||
@@ -729,7 +729,7 @@ export function calculateNestedSetOperations(docs: TreeDoc[]) {
|
||||
const top = stack[stack.length - 1];
|
||||
if (visitedNodes.has(top)) {
|
||||
// We've arrived at this node again for some reason, this shouldn't happen
|
||||
console.log('visited already, parent loop maybe?')
|
||||
console.warn('visited already, parent loop maybe?')
|
||||
stack.pop();
|
||||
} else if (visitedChildren.has(top)) {
|
||||
// We've arrived at this node after visiting the children,
|
||||
@@ -793,7 +793,7 @@ export function applyNestedSetProperties<T extends TreeDoc>(docs: T[]): Forest<T
|
||||
}
|
||||
if (visitedNodes.has(top)) {
|
||||
// We've arrived at this node again for some reason, this shouldn't happen
|
||||
console.log('visited already, parent loop maybe?')
|
||||
console.warn('visited already, parent loop maybe?')
|
||||
stack.pop();
|
||||
} else if (visitedChildren.has(top)) {
|
||||
// We've arrived at this node after visiting the children,
|
||||
|
||||
@@ -88,14 +88,11 @@ const addCreaturesFromLibraryToTabletop = new ValidatedMethod({
|
||||
});
|
||||
|
||||
function insertSubProperties(node, creatureId: string) {
|
||||
console.log({ node, })
|
||||
let nodes = LibraryNodes.find({
|
||||
...getFilter.descendants(node),
|
||||
removed: { $ne: true },
|
||||
}).fetch();
|
||||
|
||||
console.log('found nodes', nodes);
|
||||
|
||||
for (const node of nodes) {
|
||||
node.root = {
|
||||
id: creatureId,
|
||||
@@ -116,7 +113,6 @@ function insertSubProperties(node, creatureId: string) {
|
||||
});
|
||||
|
||||
// Insert the creature properties
|
||||
console.log('final nodes', nodes);
|
||||
// @ts-expect-error Batch insert not defined
|
||||
if (nodes.length) CreatureProperties.batchInsert(nodes);
|
||||
return node;
|
||||
|
||||
@@ -85,7 +85,6 @@ export default {
|
||||
}, false);
|
||||
|
||||
uploadInstance.on('start', function () {
|
||||
console.log('start')
|
||||
self.progress = 0;
|
||||
self.uploadIndeterminate = false;
|
||||
// Remove errors
|
||||
@@ -93,24 +92,20 @@ export default {
|
||||
});
|
||||
|
||||
uploadInstance.on('end', function (error, fileObj) {
|
||||
console.log('end', error)
|
||||
self.resetState();
|
||||
self.$emit('uploaded', UserImages.link(fileObj));
|
||||
});
|
||||
|
||||
uploadInstance.on('uploaded', function (error, fileObj) {
|
||||
console.log('uploaded')
|
||||
self.progress = 0;
|
||||
});
|
||||
|
||||
uploadInstance.on('error', function (error, fileObj) {
|
||||
console.log('error', error)
|
||||
self.fileUploadError = error.reason || error.message || error.toString();
|
||||
});
|
||||
|
||||
uploadInstance.on('progress', function (progress, fileObj) {
|
||||
// Update our progress bar with actual progress
|
||||
console.log('progress')
|
||||
self.uploadIndeterminate = false;
|
||||
self.progress = progress;
|
||||
});
|
||||
@@ -146,4 +141,4 @@ export default {
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -5,7 +5,6 @@ const globalState = Vue.observable({ queue: [] });
|
||||
let lastSnackbarId = 0;
|
||||
|
||||
function snackbar(data) {
|
||||
console.log(data);
|
||||
globalState.queue.push({
|
||||
data, //{text OR content, callback, callbackName} // content is logContent
|
||||
id: ++lastSnackbarId,
|
||||
|
||||
@@ -240,8 +240,6 @@ export default {
|
||||
},
|
||||
async castSpell(suggestedParams) {
|
||||
this.userInput = suggestedParams;
|
||||
console.log(this.action);
|
||||
console.log(this.action.root);
|
||||
this.activeInputParams = {
|
||||
creatureId: this.action.creatureId,
|
||||
};
|
||||
|
||||
@@ -570,9 +570,6 @@ export default {
|
||||
propArray = [];
|
||||
set(properties, propPath, propArray);
|
||||
}
|
||||
if (!propArray?.push) {
|
||||
console.log({propArray});
|
||||
}
|
||||
propArray.push(prop);
|
||||
}
|
||||
return { skipChildren };
|
||||
|
||||
@@ -117,7 +117,6 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
log: console.log,
|
||||
insertLibrary(){
|
||||
if (this.paidBenefits){
|
||||
this.$store.commit('pushDialogStack', {
|
||||
|
||||
@@ -51,7 +51,6 @@ export default {
|
||||
let f = functions[name];
|
||||
fns.push({name, ...f});
|
||||
}
|
||||
console.log(fns);
|
||||
return fns;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +144,6 @@ export default {
|
||||
subscribe,
|
||||
}, ack);
|
||||
} else {
|
||||
console.log('sub fail')
|
||||
ack('Library or Library Collection not found')
|
||||
}
|
||||
},
|
||||
|
||||
@@ -171,7 +171,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
saveChange({ path, value, ack }) {
|
||||
console.log({ path, value, ack });
|
||||
this.$emit('change', {path: [ 'save', ...path ], value, ack})
|
||||
this.$emit('change', {path: [ 'silent' ], value: true, ack})
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
error(e) {
|
||||
console.log({ e })
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -217,9 +217,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
log(e) {
|
||||
console.log(e);
|
||||
},
|
||||
hoverIcon(e, icon) {
|
||||
if (this.selectedIcon) return;
|
||||
// this.menuX = e.clientX - (e.clientX % 44);
|
||||
|
||||
@@ -154,7 +154,6 @@ const parserFunctions: { [name: string]: ParserFunction } = {
|
||||
|
||||
// mark the N smallest elements as dropped
|
||||
for (let i = 0; i < numberToDrop; i += 1) {
|
||||
console.log('dropped ' + sortedArray[i].value);
|
||||
sortedArray[i].disabled = true;
|
||||
sortedArray[i].disabledBy = 'dropLowest';
|
||||
}
|
||||
@@ -273,4 +272,4 @@ function anyNumberOf(type) {
|
||||
return argumentArray;
|
||||
}
|
||||
|
||||
export default parserFunctions;
|
||||
export default parserFunctions;
|
||||
|
||||
Reference in New Issue
Block a user