From 40b1a9fbdf8211363a082d7426a90a3e5149351f Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sun, 20 Mar 2022 18:37:38 +0900 Subject: [PATCH] =?UTF-8?q?build:=20bootstrap-vue-3=20-=20tiptap/CustomIma?= =?UTF-8?q?ge=20=EC=A0=95=EC=9D=98=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20useToast()=20=EA=B4=80=EB=A0=A8=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/PageBoard.vue | 2 +- hwe/ts/PageChiefCenter.vue | 6 +++-- hwe/ts/PageNPCControl.vue | 5 ++--- hwe/ts/PageNationBetting.vue | 7 +++--- hwe/ts/PageNationStratFinan.vue | 9 ++++---- hwe/ts/components/BettingDetail.vue | 7 +++--- hwe/ts/components/BoardArticle.vue | 6 ++--- hwe/ts/components/BoardComment.vue | 4 ++-- hwe/ts/components/BottomBar.vue | 2 +- hwe/ts/components/ChiefReservedCommand.vue | 26 ++++------------------ hwe/ts/components/DragSelect.vue | 2 +- hwe/ts/components/MapLegacyTemplate.vue | 4 ++-- hwe/ts/components/TipTap.vue | 25 +++++++++++---------- hwe/ts/components/TopBackBar.vue | 2 +- hwe/ts/defs.ts | 20 +++++++++-------- hwe/ts/tiptap-ext/CustomImage.ts | 14 +++++++++--- hwe/ts/util/autoResizeTextarea.ts | 2 +- hwe/ts/v_NPCControl.ts | 4 ++-- hwe/ts/v_nationBetting.ts | 4 ++-- hwe/ts/v_nationStratFinan.ts | 4 ++-- package-lock.json | 14 ++++++------ package.json | 2 +- 22 files changed, 82 insertions(+), 89 deletions(-) diff --git a/hwe/ts/PageBoard.vue b/hwe/ts/PageBoard.vue index 04037a63..ba4bb0ac 100644 --- a/hwe/ts/PageBoard.vue +++ b/hwe/ts/PageBoard.vue @@ -58,7 +58,7 @@ import BottomBar from "@/components/BottomBar.vue"; import BoardArticle from "@/components/BoardArticle.vue"; import { convertFormData } from "@util/convertFormData"; import axios from "axios"; -import { InvalidResponse } from "@/defs"; +import type { InvalidResponse } from "@/defs"; import { autoResizeTextarea } from "@util/autoResizeTextarea"; import { unwrap } from "@util/unwrap"; export type BoardResponse = { diff --git a/hwe/ts/PageChiefCenter.vue b/hwe/ts/PageChiefCenter.vue index bc325f6d..fc2f07e0 100644 --- a/hwe/ts/PageChiefCenter.vue +++ b/hwe/ts/PageChiefCenter.vue @@ -161,7 +161,7 @@ :month="month" :turn="officer.turn" :turnTerm="turnTerm" - :commandList="commandList" + :commandList="unwrap(commandList)" :turnTime="officer.turnTime" :maxTurn="maxChiefTurn" :maxPushTurn="Math.floor(maxChiefTurn / 2)" @@ -253,8 +253,9 @@ import { parseTime } from "./util/parseTime"; import { getNpcColor } from "./common_legacy"; import TopItem from "@/ChiefCenter/TopItem.vue"; import BottomItem from "@/ChiefCenter/BottomItem.vue"; -import { ChiefResponse, OptionalFull } from "./defs"; +import type { ChiefResponse, OptionalFull } from "./defs"; import { SammoAPI } from "./SammoAPI"; +import { unwrap } from "@/util/unwrap"; function isDropdownChildren(e?: Event): boolean { if (!e) { @@ -477,6 +478,7 @@ export default defineComponent({ subTableGridRows, reloadTable, getNpcColor, + unwrap, viewTarget, targetIsMe, maxPushTurn: props.maxChiefTurn / 2, diff --git a/hwe/ts/PageNPCControl.vue b/hwe/ts/PageNPCControl.vue index 9b31db15..b1d38010 100644 --- a/hwe/ts/PageNPCControl.vue +++ b/hwe/ts/PageNPCControl.vue @@ -480,7 +480,7 @@ import "@scss/common/bootstrap5.scss"; import "@scss/game_bg.scss"; import { ref } from "vue"; -import { +import type { IDItem, InvalidResponse, NationPolicy, @@ -496,8 +496,7 @@ import { NPCPriorityBtnHelpMessage } from "@/helpTexts"; import draggable from "vuedraggable"; import TopBackBar from "@/components/TopBackBar.vue"; import { convertIDArray } from "@util/convertIDArray"; -import { useToast } from 'bootstrap-vue-3/src/components/BToast/plugin'; -import BContainer from "bootstrap-vue-3/src/components/BContainer.vue"; +import { useToast, BContainer } from 'bootstrap-vue-3'; const chiefActionPriority = ref[]>([]); const chiefActionKeys = ref(new Set(staticValues.availableNationPriorityItems)); diff --git a/hwe/ts/PageNationBetting.vue b/hwe/ts/PageNationBetting.vue index 7ad2d8fd..a329d293 100644 --- a/hwe/ts/PageNationBetting.vue +++ b/hwe/ts/PageNationBetting.vue @@ -33,16 +33,15 @@