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
-1
View File
@@ -173,7 +173,6 @@ class che_강행 extends Command\GeneralCommand
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 3),
-1
View File
@@ -181,7 +181,6 @@ class che_이동 extends Command\GeneralCommand
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 1),
-1
View File
@@ -225,7 +225,6 @@ class che_임관 extends Command\GeneralCommand
$nationList[] = $nationTarget;
}
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'nationList' => $nationList,
'startYear' => $this->env['startyear'],
-1
View File
@@ -228,7 +228,6 @@ class che_첩보 extends Command\GeneralCommand
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 3),
-1
View File
@@ -244,7 +244,6 @@ class che_출병 extends Command\GeneralCommand
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 1),
-1
View File
@@ -342,7 +342,6 @@ class che_화계 extends Command\GeneralCommand
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 3),
-1
View File
@@ -221,7 +221,6 @@ class che_급습 extends Command\NationCommand
$nationList[] = $nationTarget;
}
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'nationList' => $nationList,
'startYear' => $this->env['startyear'],
@@ -291,7 +291,6 @@ class che_물자원조 extends Command\NationCommand
}
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'nationList' => $nationList,
'currentNationLevel' => $currentNationLevel,
-1
View File
@@ -177,7 +177,6 @@ class che_발령 extends Command\NationCommand
$troops = Util::convertArrayToDict($db->query('SELECT * FROM troop WHERE nation=%i', $nationID), 'troop_leader');
$destRawGenerals = $db->queryAllLists('SELECT no,name,officer_level,npc,gold,rice,leadership,strength,intel,city,crew,train,atmos,troop FROM general WHERE nation = %i ORDER BY npc,binary(name)', $nationID);
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 1),
'cities' => \sammo\JSOptionsForCities(),
@@ -172,7 +172,6 @@ class che_백성동원 extends Command\NationCommand
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => new \stdClass(),
@@ -255,7 +255,6 @@ class che_불가침제의 extends Command\NationCommand
$nationList[] = $nationTarget;
}
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'nationList' => $nationList,
'startYear' => $this->env['startyear'],
@@ -200,7 +200,6 @@ class che_불가침파기제의 extends Command\NationCommand{
$nationList[] = $nationTarget;
}
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'nationList' => $nationList,
'startYear' => $this->env['startyear'],
@@ -219,7 +219,6 @@ class che_선전포고 extends Command\NationCommand
$nationList[] = $nationTarget;
}
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'nationList' => $nationList,
'startYear' => $this->env['startyear'],
-1
View File
@@ -199,7 +199,6 @@ class che_수몰 extends Command\NationCommand
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => new \stdClass(),
@@ -224,7 +224,6 @@ class che_이호경식 extends Command\NationCommand
$nationList[] = $nationTarget;
}
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'nationList' => $nationList,
'startYear' => $this->env['startyear'],
@@ -193,7 +193,6 @@ class che_종전제의 extends Command\NationCommand{
$nationList[] = $nationTarget;
}
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'nationList' => $nationList,
'startYear' => $this->env['startyear'],
-1
View File
@@ -233,7 +233,6 @@ class che_천도 extends Command\NationCommand
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => new \stdClass(),
@@ -199,7 +199,6 @@ class che_초토화 extends Command\NationCommand{
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => new \stdClass(),
@@ -280,7 +280,6 @@ class che_피장파장 extends Command\NationCommand
}
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'nationList' => $nationList,
'startYear' => $this->env['startyear'],
-1
View File
@@ -202,7 +202,6 @@ class che_허보 extends Command\NationCommand
public function exportJSVars(): array
{
return [
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => new \stdClass(),
+1 -1
View File
@@ -250,7 +250,7 @@ class ResetHelper{
'month'=> $month,
'init_year'=> $year,
'init_month'=>$month,
'map_theme' => $scenarioObj->getMapTheme(),
'map_theme' => $scenarioObj->getMapTheme(), //@deprecated
'season'=>$seasonIdx,
'msg'=>'공지사항',//TODO:공지사항
'maxgeneral'=>GameConst::$defaultMaxGeneral,