Update dependencies and remove unneeded things. This allows building on node v22. Also rely on configs for eslint/prettier so CI and command line runs are guaranteed to be consistent.
This commit is contained in:
committed by
Daniël van Noord
parent
9e98208c19
commit
a1aaa3de8f
@@ -1,9 +1,9 @@
|
||||
/** Main function to create the sections of Cookie Monster on the Statistics page */
|
||||
|
||||
import { AddMissingUpgrades } from './CreateMissingUpgrades';
|
||||
import * as CreateSections from './CreateStatsSections';
|
||||
import * as CreateElements from './CreateDOMElements';
|
||||
import * as GameData from '../../../Data/Gamedata';
|
||||
import { AddMissingUpgrades } from './CreateMissingUpgrades.js';
|
||||
import * as CreateSections from './CreateStatsSections.js';
|
||||
import * as CreateElements from './CreateDOMElements.js';
|
||||
import * as GameData from '../../../Data/Gamedata.js';
|
||||
|
||||
import {
|
||||
CacheAverageClicks,
|
||||
@@ -12,12 +12,12 @@ import {
|
||||
CacheWrinklersFattest,
|
||||
CacheWrinklersNormal,
|
||||
CacheWrinklersTotal,
|
||||
} from '../../../Cache/VariablesAndData';
|
||||
import PopAllNormalWrinklers from '../../HelperFunctions/PopWrinklers';
|
||||
import { ClickTimes, CookieTimes } from '../../VariablesAndData';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import AddMissingAchievements from './CreateMissingAchievements';
|
||||
} from '../../../Cache/VariablesAndData.js';
|
||||
import PopAllNormalWrinklers from '../../HelperFunctions/PopWrinklers.js';
|
||||
import { ClickTimes, CookieTimes } from '../../VariablesAndData.js';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS.js';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import AddMissingAchievements from './CreateMissingAchievements.js';
|
||||
|
||||
/**
|
||||
* This function adds stats created by CookieMonster to the stats page
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/** Section: Functions related to the creation of basic DOM elements page */
|
||||
|
||||
import { ToggleHeader } from '../../../Config/ToggleSetting';
|
||||
import { ToggleHeader } from '../../../Config/ToggleSetting.js';
|
||||
|
||||
import { SimpleTooltipElements } from '../../VariablesAndData';
|
||||
import { SimpleTooltipElements } from '../../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function creates a header-object for the stats page
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
CacheMissingUpgrades,
|
||||
CacheMissingUpgradesCookies,
|
||||
CacheMissingUpgradesPrestige,
|
||||
} from '../../../Cache/VariablesAndData';
|
||||
} from '../../../Cache/VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function creates the missing upgrades sections for prestige, normal and cookie upgrades
|
||||
@@ -13,8 +13,7 @@ export function AddMissingUpgrades() {
|
||||
l('menu').childNodes.forEach((menuSection) => {
|
||||
if (menuSection.children[0]) {
|
||||
if (menuSection.children[0].innerHTML === 'Prestige' && CacheMissingUpgradesPrestige) {
|
||||
const prestigeUpgradesMissing =
|
||||
CacheMissingUpgradesPrestige.match(new RegExp('div', 'g') || []).length / 2;
|
||||
const prestigeUpgradesMissing = CacheMissingUpgradesPrestige.match(/div/g || []).length / 2;
|
||||
const title = document.createElement('div');
|
||||
title.id = 'CMMissingUpgradesPrestigeTitle';
|
||||
title.className = 'listing';
|
||||
@@ -30,8 +29,7 @@ export function AddMissingUpgrades() {
|
||||
menuSection.appendChild(upgrades);
|
||||
} else if (menuSection.children[0].innerHTML === 'Upgrades') {
|
||||
if (CacheMissingUpgrades) {
|
||||
const normalUpgradesMissing =
|
||||
CacheMissingUpgrades.match(new RegExp('div', 'g') || []).length / 2;
|
||||
const normalUpgradesMissing = CacheMissingUpgrades.match(/div/g || []).length / 2;
|
||||
const title = document.createElement('div');
|
||||
title.id = 'CMMissingUpgradesTitle';
|
||||
title.className = 'listing';
|
||||
@@ -54,8 +52,7 @@ export function AddMissingUpgrades() {
|
||||
);
|
||||
}
|
||||
if (CacheMissingUpgradesCookies) {
|
||||
const cookieUpgradesMissing =
|
||||
CacheMissingUpgradesCookies.match(new RegExp('div', 'g') || []).length / 2;
|
||||
const cookieUpgradesMissing = CacheMissingUpgradesCookies.match(/div/g || []).length / 2;
|
||||
const title = document.createElement('div');
|
||||
title.id = 'CMMissingUpgradesCookiesTitle';
|
||||
title.className = 'listing';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** Functions to create the individual sections of the Statistics page */
|
||||
|
||||
import * as GameData from '../../../Data/Gamedata';
|
||||
import { MaxChainCookieReward } from '../../../Cache/Stats/ChainCookies';
|
||||
import * as GameData from '../../../Data/Gamedata.js';
|
||||
import { MaxChainCookieReward } from '../../../Cache/Stats/ChainCookies.js';
|
||||
import {
|
||||
CacheAvgCPSWithChoEgg,
|
||||
CacheCentEgg,
|
||||
@@ -35,20 +35,20 @@ import {
|
||||
CacheSeaSpec,
|
||||
CacheWrathCookiesMult,
|
||||
CacheWrinklersTotal,
|
||||
} from '../../../Cache/VariablesAndData';
|
||||
import ResetBonus from '../../../Sim/SimulationEvents/ResetAscension';
|
||||
import CalculateLuckyLevels from '../../HelperFunctions/CalculateLuckyLevels';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank';
|
||||
import { ColourGreen, ColourRed, ColourTextPre } from '../../VariablesAndData';
|
||||
} from '../../../Cache/VariablesAndData.js';
|
||||
import ResetBonus from '../../../Sim/SimulationEvents/ResetAscension.js';
|
||||
import CalculateLuckyLevels from '../../HelperFunctions/CalculateLuckyLevels.js';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS.js';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank.js';
|
||||
import { ColourGreen, ColourRed, ColourTextPre } from '../../VariablesAndData.js';
|
||||
import {
|
||||
StatsListing,
|
||||
StatsHeader,
|
||||
StatsMissDisp,
|
||||
StatsMissDispListing,
|
||||
} from './CreateDOMElements';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime';
|
||||
} from './CreateDOMElements.js';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime.js';
|
||||
|
||||
/**
|
||||
* This function creates the "Lucky" section of the stats page
|
||||
|
||||
Reference in New Issue
Block a user