Stopped typescript shouting about things you can't fix in js
This commit is contained in:
@@ -57,7 +57,6 @@ export default {
|
|||||||
data() { return {
|
data() { return {
|
||||||
tabName: 'actions',
|
tabName: 'actions',
|
||||||
}},
|
}},
|
||||||
// @ts-ignore Meteor isn't defined on vue
|
|
||||||
meteor: {
|
meteor: {
|
||||||
actions() {
|
actions() {
|
||||||
const folderIds = CreatureProperties.find({
|
const folderIds = CreatureProperties.find({
|
||||||
|
|||||||
@@ -272,7 +272,6 @@ export default {
|
|||||||
return this.hiddenSlots.length + this.hiddenPointBuys.length;
|
return this.hiddenSlots.length + this.hiddenPointBuys.length;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// @ts-ignore Meteor isn't defined on vue
|
|
||||||
meteor: {
|
meteor: {
|
||||||
creature(){
|
creature(){
|
||||||
return Creatures.findOne(this.creatureId);
|
return Creatures.findOne(this.creatureId);
|
||||||
|
|||||||
@@ -36,7 +36,6 @@
|
|||||||
import CreatureProperties from '/imports/api/creature/creatureProperties/CreatureProperties';
|
import CreatureProperties from '/imports/api/creature/creatureProperties/CreatureProperties';
|
||||||
import SlotCard from '/imports/client/ui/creature/slots/SlotCard.vue';
|
import SlotCard from '/imports/client/ui/creature/slots/SlotCard.vue';
|
||||||
import PointBuyCard from '/imports/client/ui/properties/components/pointBuy/PointBuyCard.vue';
|
import PointBuyCard from '/imports/client/ui/properties/components/pointBuy/PointBuyCard.vue';
|
||||||
import ColumnLayout from '/imports/client/ui/components/ColumnLayout.vue';
|
|
||||||
import updateCreatureProperty from '/imports/api/creature/creatureProperties/methods/updateCreatureProperty';
|
import updateCreatureProperty from '/imports/api/creature/creatureProperties/methods/updateCreatureProperty';
|
||||||
import { snackbar } from '/imports/client/ui/components/snackbars/SnackbarQueue';
|
import { snackbar } from '/imports/client/ui/components/snackbars/SnackbarQueue';
|
||||||
|
|
||||||
@@ -44,7 +43,6 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
SlotCard,
|
SlotCard,
|
||||||
PointBuyCard,
|
PointBuyCard,
|
||||||
ColumnLayout,
|
|
||||||
},
|
},
|
||||||
inject: {
|
inject: {
|
||||||
context: { default: {} }
|
context: { default: {} }
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
import { create, all } from 'mathjs';
|
|
||||||
|
|
||||||
const math = create(all);
|
|
||||||
math.import({
|
|
||||||
'if': function(pred, a, b) {
|
|
||||||
return pred ? a : b;
|
|
||||||
},
|
|
||||||
'roll': function(number, diceSize){
|
|
||||||
let randomSrc = DDP.randomStream('diceRoller');
|
|
||||||
if (number > 100) throw 'Can only roll 100 dice at a time';
|
|
||||||
let rollTotal = 0;
|
|
||||||
let i, roll;
|
|
||||||
for (i = 0; i < number; i++){
|
|
||||||
roll = ~~(randomSrc.fraction() * diceSize) + 1
|
|
||||||
rollTotal += roll;
|
|
||||||
}
|
|
||||||
return rollTotal;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
export default math;
|
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
"preserveSymlinks": true,
|
"preserveSymlinks": true,
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
|
"noImplicitAny": false,
|
||||||
"outDir": "build",
|
"outDir": "build",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/*": [
|
"/*": [
|
||||||
|
|||||||
Reference in New Issue
Block a user