diff --git a/hwe/test-ts/rng.test.ts b/hwe/test-ts/rng.test.ts index 2461a680..c6615f9a 100644 --- a/hwe/test-ts/rng.test.ts +++ b/hwe/test-ts/rng.test.ts @@ -4,7 +4,7 @@ import { bufferByteSize, LiteHashDRBG } from '../ts/util/LiteHashDRBG'; import { RandUtil } from '../ts/util/RandUtil'; import { convertBytesLikeToArrayBuffer } from '../ts/util/convertBytesLikeToArrayBuffer'; import { convertBytesLikeToUint8Array as toBytes } from '../ts/util/convertBytesLikeToUint8Array'; -import _ from 'lodash'; +import _ from 'lodash-es'; chai.use(chaiBytes); diff --git a/hwe/ts/ChiefCenter/TopItem.vue b/hwe/ts/ChiefCenter/TopItem.vue index f4fa210b..1639111c 100644 --- a/hwe/ts/ChiefCenter/TopItem.vue +++ b/hwe/ts/ChiefCenter/TopItem.vue @@ -70,7 +70,7 @@ import { mb_strwidth } from "@/util/mb_strwidth"; import { parseTime } from "@/util/parseTime"; import type { StoredActionsHelper } from "@/util/StoredActionsHelper"; import addMinutes from "date-fns/esm/addMinutes/index"; -import { range } from "lodash"; +import { range } from "lodash-es"; import { inject, onMounted, ref, type PropType } from "vue"; import VueTypes from "vue-types"; import DragSelect from "@/components/DragSelect.vue"; diff --git a/hwe/ts/PageBattleCenter.vue b/hwe/ts/PageBattleCenter.vue index 4a6c694c..997e089f 100644 --- a/hwe/ts/PageBattleCenter.vue +++ b/hwe/ts/PageBattleCenter.vue @@ -92,7 +92,7 @@ import GeneralBasicCard from "./components/GeneralBasicCard.vue"; import GeneralSupplementCard from "@/components/GeneralSupplementCard.vue"; import type { NationStaticItem } from "./defs"; import type { GeneralLogType } from "./defs/API/General"; -import { isString } from "lodash"; +import { isString } from "lodash-es"; import { formatLog } from "./utilGame/formatLog"; import { parseTime } from "./util/parseTime"; diff --git a/hwe/ts/PageChiefCenter.vue b/hwe/ts/PageChiefCenter.vue index 7cf9249a..c9c64da9 100644 --- a/hwe/ts/PageChiefCenter.vue +++ b/hwe/ts/PageChiefCenter.vue @@ -102,7 +102,7 @@ import ChiefReservedCommand from "@/components/ChiefReservedCommand.vue"; import TopBackBar from "@/components/TopBackBar.vue"; import BottomBar from "@/components/BottomBar.vue"; import VueTypes from "vue-types"; -import { isString } from "lodash"; +import { isString } from "lodash-es"; import { entriesWithType } from "./util/entriesWithType"; import TopItem from "@/ChiefCenter/TopItem.vue"; import BottomItem from "@/ChiefCenter/BottomItem.vue"; diff --git a/hwe/ts/PageGlobalDiplomacy.vue b/hwe/ts/PageGlobalDiplomacy.vue index d18ef93b..98de568e 100644 --- a/hwe/ts/PageGlobalDiplomacy.vue +++ b/hwe/ts/PageGlobalDiplomacy.vue @@ -156,7 +156,7 @@ import { getGameConstStore, type GameConstStore } from "./GameConstStore"; import { unwrap } from "@/util/unwrap"; import type { SimpleNationObj, diplomacyState, MapResult } from "./defs"; import type { GetDiplomacyResponse } from "./defs/API/Global"; -import { isString } from "lodash"; +import { isString } from "lodash-es"; import { isBrightColor } from "@/util/isBrightColor"; const serverID = staticValues.serverID; diff --git a/hwe/ts/PageInheritPoint.vue b/hwe/ts/PageInheritPoint.vue index 111dd03b..600b71c1 100644 --- a/hwe/ts/PageInheritPoint.vue +++ b/hwe/ts/PageInheritPoint.vue @@ -256,7 +256,7 @@ declare const staticValues: { import { reactive, ref } from "vue"; import "@scss/game_bg.scss"; import TopBackBar from "@/components/TopBackBar.vue"; -import _ from "lodash"; +import _ from "lodash-es"; import NumberInputWithInfo from "@/components/NumberInputWithInfo.vue"; import { SammoAPI } from "./SammoAPI"; import type { inheritBuffType, InheritPointLogItem } from "./defs/API/InheritAction"; diff --git a/hwe/ts/PageJoin.vue b/hwe/ts/PageJoin.vue index 5af703b3..f61b2411 100644 --- a/hwe/ts/PageJoin.vue +++ b/hwe/ts/PageJoin.vue @@ -278,7 +278,7 @@ import TopBackBar from "@/components/TopBackBar.vue"; import { getIconPath } from "@util/getIconPath"; import { isBrightColor } from "@util/isBrightColor"; import { abilityLeadint, abilityLeadpow, abilityPowint, abilityRand } from "@util/generalStats"; -import { shuffle, sum } from "lodash"; +import { shuffle, sum } from "lodash-es"; import NumberInputWithInfo from "@/components/NumberInputWithInfo.vue"; import { SammoAPI } from "./SammoAPI"; import type { JoinArgs } from "./defs/API/General"; diff --git a/hwe/ts/PageNPCControl.vue b/hwe/ts/PageNPCControl.vue index c278199f..cb85ebf9 100644 --- a/hwe/ts/PageNPCControl.vue +++ b/hwe/ts/PageNPCControl.vue @@ -390,7 +390,7 @@ import "@scss/game_bg.scss"; import { ref } from "vue"; import type { IDItem, InvalidResponse, NationPolicy, NPCChiefActions, NPCGeneralActions } from "@/defs"; import NumberInputWithInfo from "@/components/NumberInputWithInfo.vue"; -import { cloneDeep, isEqual, isNumber, last } from "lodash"; +import { cloneDeep, isEqual, isNumber, last } from "lodash-es"; import { unwrap } from "@util/unwrap"; import { convertFormData } from "@util/convertFormData"; import axios from "axios"; diff --git a/hwe/ts/PageNationBetting.vue b/hwe/ts/PageNationBetting.vue index b0e82f20..40ea1ab8 100644 --- a/hwe/ts/PageNationBetting.vue +++ b/hwe/ts/PageNationBetting.vue @@ -30,7 +30,7 @@ import BottomBar from "@/components/BottomBar.vue"; import type { ToastType } from "@/defs"; import { onMounted, ref } from "vue"; import { SammoAPI } from "./SammoAPI"; -import { isString } from "lodash"; +import { isString } from "lodash-es"; import { parseYearMonth } from "@/util/parseYearMonth"; import { joinYearMonth } from "./util/joinYearMonth"; import BettingDetail from "@/components/BettingDetail.vue"; diff --git a/hwe/ts/PageNationStratFinan.vue b/hwe/ts/PageNationStratFinan.vue index 09a58ca8..b31cc16b 100644 --- a/hwe/ts/PageNationStratFinan.vue +++ b/hwe/ts/PageNationStratFinan.vue @@ -287,7 +287,7 @@ import TipTap from "./components/TipTap.vue"; import TopBackBar from "@/components/TopBackBar.vue"; import BottomBar from "@/components/BottomBar.vue"; import { computed, reactive, ref, toRefs } from "vue"; -import { isString } from "lodash"; +import { isString } from "lodash-es"; import { type diplomacyState, diplomacyStateInfo, type NationStaticItem } from "./defs"; import { SammoAPI } from "./SammoAPI"; import { joinYearMonth } from "@/util/joinYearMonth"; diff --git a/hwe/ts/PageTroop.vue b/hwe/ts/PageTroop.vue index 01ea1488..9ab3f5a2 100644 --- a/hwe/ts/PageTroop.vue +++ b/hwe/ts/PageTroop.vue @@ -150,7 +150,7 @@ import { onMounted, provide, ref } from "vue"; import { SammoAPI } from "./SammoAPI"; import { BContainer, BButton, useToast, BFormInput, BFormSelect, BFormSelectOption } from "bootstrap-vue-3"; import { unwrap } from "./util/unwrap"; -import { isString } from "lodash"; +import { isString } from "lodash-es"; import type { GeneralListItem, GeneralListItemP1 } from "./defs/API/Nation"; import { merge2DArrToObjectArr } from "./util/merge2DArrToObjectArr"; import { convertIterableToMap } from "@/util/convertIterableToMap"; diff --git a/hwe/ts/PageVote.vue b/hwe/ts/PageVote.vue index 53616bea..af6fab35 100644 --- a/hwe/ts/PageVote.vue +++ b/hwe/ts/PageVote.vue @@ -190,7 +190,7 @@ import { unwrap } from "@/util/unwrap"; import { onMounted, reactive, ref, watch, computed } from "vue"; import type { VoteInfo, VoteDetailResult } from "@/defs/API/Vote"; import { SammoAPI } from "@/SammoAPI"; -import { isString, range, sum } from "lodash"; +import { isString, range, sum } from "lodash-es"; import { formatTime } from "@/util/formatTime"; import { isBrightColor } from "@/util/isBrightColor"; import { formatVoteColor } from "@/utilGame/formatVoteColor"; diff --git a/hwe/ts/PartialReservedCommand.vue b/hwe/ts/PartialReservedCommand.vue index 69223213..4d455d04 100644 --- a/hwe/ts/PartialReservedCommand.vue +++ b/hwe/ts/PartialReservedCommand.vue @@ -278,7 +278,7 @@ declare const staticValues: {