misc: warning 제거

This commit is contained in:
2022-05-08 01:44:16 +09:00
parent cb7eb3b711
commit 68aae0bec1
7 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
padding: 0; padding: 0;
} }
.year-selector { .year-selector {
margin-left: 100%/24 * 5; margin-left: calc(100%/24 * 5);
} }
.map_position { .map_position {
+1
View File
@@ -7,6 +7,7 @@
<div class="row gx-0"> <div class="row gx-0">
<div class="col-2 col-md-1 articleTitle bg1 center">제목</div> <div class="col-2 col-md-1 articleTitle bg1 center">제목</div>
<div class="col-10 col-md-11"> <div class="col-10 col-md-11">
<!-- eslint-disable-next-line vue/max-attributes-per-line -->
<input v-model="newArticle.title" class="titleInput" type="text" maxlength="250" placeholder="제목" /> <input v-model="newArticle.title" class="titleInput" type="text" maxlength="250" placeholder="제목" />
</div> </div>
</div> </div>
+1
View File
@@ -16,6 +16,7 @@
/> />
<div v-if="cachedMap" class="card-body"> <div v-if="cachedMap" class="card-body">
<template v-for="(item, idx) in cachedMap.history" :key="idx"> <template v-for="(item, idx) in cachedMap.history" :key="idx">
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-html="formatLog(item)" /> <div v-html="formatLog(item)" />
</template> </template>
</div> </div>
+2 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<!-- eslint-disable vue/no-v-html -->
<BContainer v-if="asyncReady" id="container" :toast="{ root: true }" class="pageGlobalDiplomacy"> <BContainer v-if="asyncReady" id="container" :toast="{ root: true }" class="pageGlobalDiplomacy">
<TopBackBar title="중원 정보"></TopBackBar> <TopBackBar title="중원 정보"></TopBackBar>
<div class="diplomacy bg0"> <div class="diplomacy bg0">
@@ -271,7 +272,7 @@ onMounted(async () => {
margin-top: 1.5em; margin-top: 1.5em;
} }
.conflict-area{ .conflict-area {
margin-top: 1.5em; margin-top: 1.5em;
} }
+1 -1
View File
@@ -1,6 +1,6 @@
<template> <template>
<BContainer id="container" :toast="{ root: true }" class="pageNationGeneral bg0"> <BContainer id="container" :toast="{ root: true }" class="pageNationGeneral bg0">
<TopBackBar :title="title" :reloadable="true" @reload="reload" :teleport-zone="toolbarID" /> <TopBackBar :title="title" :reloadable="true" :teleport-zone="toolbarID" @reload="reload" />
<!-- eslint-disable-next-line vue/max-attributes-per-line --> <!-- eslint-disable-next-line vue/max-attributes-per-line -->
<GeneralList <GeneralList
v-if="asyncReady" v-if="asyncReady"
+4 -3
View File
@@ -21,6 +21,7 @@
</div></BDropdownItem </div></BDropdownItem
> >
</BDropdown> </BDropdown>
<!-- eslint-disable-next-line vue/max-attributes-per-line -->
<BDropdown class="w-50" variant="info" text="열 선택" menuClass="column-menu" right> <BDropdown class="w-50" variant="info" text="열 선택" menuClass="column-menu" right>
<template v-for="[colID, col, depth] of getColumnList()" :key="[colID, depth]"> <template v-for="[colID, col, depth] of getColumnList()" :key="[colID, depth]">
<BDropdownItem v-if="col instanceof ProvidedColumnGroup" disabled> <BDropdownItem v-if="col instanceof ProvidedColumnGroup" disabled>
@@ -523,9 +524,9 @@ const columnRawDefs = ref<Partial<Record<headerType, GenColDef | GenColGroupDef>
}; };
return style as CellStyle; return style as CellStyle;
}, },
comparator: (_lhs, _rhs, {data: lhs}: GenRowNode, {data: rhs}: GenRowNode)=>{ comparator: (_lhs, _rhs, { data: lhs }: GenRowNode, { data: rhs }: GenRowNode) => {
const npcDiff = lhs.npc - rhs.npc; const npcDiff = lhs.npc - rhs.npc;
if(npcDiff != 0){ if (npcDiff != 0) {
return npcDiff; return npcDiff;
} }
return lhs.name.localeCompare(rhs.name); return lhs.name.localeCompare(rhs.name);
@@ -1154,7 +1155,7 @@ const columnRawDefs = ref<Partial<Record<headerType, GenColDef | GenColGroupDef>
return "?"; return "?";
} }
const killRatePercent = Math.round((data.killcrew / Math.max(1, data.deathcrew)) * 100); const killRatePercent = Math.round((data.killcrew / Math.max(1, data.deathcrew)) * 100);
return killRatePercent return killRatePercent;
}, },
valueFormatter: numberFormatter("%"), valueFormatter: numberFormatter("%"),
columnGroupShow: "open", columnGroupShow: "open",
+11 -6
View File
@@ -19,6 +19,7 @@
class="map_title" class="map_title"
:title="getTitleTooltip()" :title="getTitleTooltip()"
> >
<!-- eslint-disable-next-line vue/max-attributes-per-line -->
<span class="map_title_text" :style="{ color: getTitleColor() }" <span class="map_title_text" :style="{ color: getTitleColor() }"
>{{ mapData?.year }} {{ mapData?.month }}</span >{{ mapData?.year }} {{ mapData?.month }}</span
> >
@@ -191,16 +192,20 @@ const { elementX: cursorX, elementY: cursorY, isOutside } = useMouseInElement(ma
const tooltipWidth = ref(0); const tooltipWidth = ref(0);
const { width: tooltipCurrWidth } = useElementSize(tooltipDom); const { width: tooltipCurrWidth } = useElementSize(tooltipDom);
watch(tooltipCurrWidth, (newWidth)=>{ watch(
if(newWidth == 0) return; tooltipCurrWidth,
tooltipWidth.value = newWidth; (newWidth) => {
}, {immediate: true}); if (newWidth == 0) return;
tooltipWidth.value = newWidth;
},
{ immediate: true }
);
const { sourceType: cursorType } = useMouse(); const { sourceType: cursorType } = useMouse();
const emit = defineEmits<{ const emit = defineEmits<{
(event: "city-click", city: MapCityParsed, e: MouseEvent | TouchEvent): void; (event: "city-click", city: MapCityParsed, e: MouseEvent | TouchEvent): void;
(event: "parsed", drawable: MapCityDrawable): void; (event: "parsed", drawable: MapCityDrawable): void;
(event: 'update:modelValue', value: MapCityParsed): void; (event: "update:modelValue", value: MapCityParsed): void;
}>(); }>();
const isFullWidth = ref(true); const isFullWidth = ref(true);
@@ -256,7 +261,7 @@ const props = defineProps({
type: Object as PropType<MapCityParsed>, type: Object as PropType<MapCityParsed>,
default: undefined, default: undefined,
required: false, required: false,
} },
}); });
const mapData = toRef(props, "mapData"); const mapData = toRef(props, "mapData");