This commit is contained in:
Phillip Thelen
2024-06-10 14:53:23 +02:00
parent 1f0a4dad23
commit 544d67e7e5
6 changed files with 13 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ describe('datedMemoize', () => {
const datedMemoize = require('../../../website/common/script/fns/datedMemoize').default;
const memoized = datedMemoize(stub);
memoized({ identifier: 'a', memoizeConfig: true }, 1, 2);
memoized({ identifier: 'b', memoizeConfig: true }), 1, 2;
memoized({ identifier: 'b', memoizeConfig: true }, 1, 2);
expect(stub).to.have.been.calledTwice;
});

View File

@@ -1,7 +1,7 @@
<template>
<div
class="customize-options mb-4"
v-if="items.length > 1"
class="customize-options mb-4"
>
<div
v-for="option in items"

View File

@@ -235,8 +235,8 @@
</div>
</div>
<div
:key="`ttbg${timeTravelBackgrounds.length}`"
v-if="timeTravelBackgrounds.length > 0"
:key="`ttbg${timeTravelBackgrounds.length}`"
>
<div
class="row justify-content-center title-row mb-3"
@@ -269,8 +269,8 @@
</div>
</div>
<div
:key="`monthly${monthlyBackgrounds.length}`"
v-if="monthlyBackgrounds.length > 0"
:key="`monthly${monthlyBackgrounds.length}`"
>
<div
class="row text-center title-row mb-3"

View File

@@ -212,9 +212,9 @@
<!-- eslint-enable vue/no-use-v-if-with-v-for -->
<div
v-for="item in group"
class="pet-group"
v-show="show('mount', item)"
:key="item.key"
class="pet-group"
>
<mountItem
:key="item.key"

View File

@@ -586,8 +586,8 @@ import reduce from 'lodash/reduce';
import moment from 'moment';
import planGemLimits from '@/../../common/script/libs/planGemLimits';
import { drops as dropEggs } from '@/../../common/script/content/eggs';
import { drops as dropPotions } from '@/../../common/script/content/hatching-potions';
import eggs from '@/../../common/script/content/eggs';
import potions from '@/../../common/script/content/hatching-potions';
import { avatarEditorUtilities } from '@/mixins/avatarEditUtilities';
import numberInvalid from '@/mixins/numberInvalid';
import spellsMixin from '@/mixins/spells';
@@ -617,6 +617,8 @@ import EquipmentAttributesGrid from '../inventory/equipment/attributesGrid.vue';
import Item from '@/components/inventory/item';
import Avatar from '@/components/avatar';
const dropEggs = eggs.drops;
const dropPotions = potions.drops;
const dropEggKeys = keys(dropEggs);
const amountOfDropEggs = size(dropEggs);

View File

@@ -3,9 +3,9 @@ const path = require('path');
const webpack = require('webpack');
const nconf = require('nconf');
const vueTemplateCompiler = require('vue-template-babel-compiler');
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
const setupNconf = require('../server/libs/setupNconf');
const pkg = require('./package.json');
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
const configFile = path.join(path.resolve(__dirname, '../../config.json'));
@@ -68,17 +68,17 @@ const webpackPlugins = [
'tr',
'uk',
'zh-cn',
'zh-tw'
'zh-tw',
],
}),
new webpack.IgnorePlugin({
checkResource(resource, context) {
checkResource (resource, context) {
if ((context.includes('sinon') || resource.includes('sinon') || context.includes('nise')) && nconf.get('TIME_TRAVEL_ENABLED') !== 'true') {
return true;
}
return false;
},
}),
}),
];
module.exports = {