refac: linter 관련 설정 변경 및 적용, map_theme 변수 제거

- eslint에 prettier 조합
- prettierrc에 width 120, tabWidth 2
- gameStor->map_theme 제거
- map_theme, mapTheme를 GameConst::$mapName으로 대체
- eslint에서 vue/vue3-essential 대신 vue3-recommended 적용
  - vue/max-attributes-per-line 완화
  - vue/v-on-event-hyphenation 해제
  - vue/attribute-hyphenation 해제
- 일부 tsc import type warning 해결
- 일부 vue template type warning 해결
- 일부 vue SFC를 script setup으로 변경
  - TipTap
  - TopBackBar
  - BottomBackBar
  - BoardArticle
  - ProcessCity
This commit is contained in:
2022-03-29 02:06:47 +09:00
parent e569ffe8f4
commit 4f4533e533
79 changed files with 4541 additions and 3020 deletions
+13 -11
View File
@@ -1,32 +1,32 @@
<template>
<div class="row form-group number-input-with-info">
<label v-if="!right" class="col-6 col-form-label ">{{ title }}</label>
<label v-if="!right" class="col-6 col-form-label">{{ title }}</label>
<div class="col-6">
<input
ref="input"
v-model="rawValue"
type="number"
:step="step ?? undefined"
v-model="rawValue"
class="form-control f_tnum"
:min="min ?? undefined"
:max="max ?? undefined"
:style="{ display: editmode ? undefined : 'none' }"
@blur="onBlurNumber"
@input="updateValue"
:style="{ display: editmode ? undefined : 'none' }"
/>
<input
type="text"
class="form-control f_tnum"
:readonly="readonly"
:value="printValue"
@focus="onFocusText"
:style="{ display: !editmode ? undefined : 'none' }"
@focus="onFocusText"
/>
</div>
<label v-if="right" class="col-6 col-form-label">{{ title }}</label>
</div>
<div style="text-align: right">
<small class="form-text text-muted"><slot></slot></small>
<small class="form-text text-muted"><slot /></small>
</div>
</template>
<script lang="ts">
@@ -56,10 +56,12 @@ export default defineComponent({
},
max: {
type: Number,
default: undefined,
required: false,
},
step: {
type: Number,
default: undefined,
required: false,
},
modelValue: {
@@ -70,7 +72,7 @@ export default defineComponent({
type: Boolean,
required: false,
default: false,
}
},
},
emits: ["update:modelValue"],
data() {
@@ -80,15 +82,15 @@ export default defineComponent({
printValue: this.modelValue.toLocaleString(),
};
},
watch:{
modelValue: function(newVal:number){
watch: {
modelValue: function (newVal: number) {
this.rawValue = newVal;
this.printValue = newVal.toLocaleString();
}
},
},
methods: {
updateValue() {
if(this.readonly){
if (this.readonly) {
return;
}
if (this.int) {
@@ -102,7 +104,7 @@ export default defineComponent({
this.printValue = this.rawValue.toLocaleString();
},
onFocusText() {
if(this.readonly){
if (this.readonly) {
return;
}
this.editmode = true;