diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 10c01d36..9c7553a0 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -1,39 +1,42 @@
module.exports = {
- root: true,
- parser: "vue-eslint-parser",
- parserOptions: {
- "project": "./tsconfig.json"
- },
- ignorePatterns: ['*.test.ts', '.eslintrc.cjs', 'webpack.config.cjs', '*.js'],
- overrides: [{
- files: ['*.ts', '*.tsx', "*.vue"],
- }],
- plugins: [
- "@typescript-eslint",
+ root: true,
+ parser: "vue-eslint-parser",
+ "env": {
+ "browser": true,
+ "es2021": true
+ },
+ ignorePatterns: ['*.test.ts', '.eslintrc.cjs', 'webpack.config.cjs', '*.js'],
+ overrides: [{
+ files: ['*.ts', '*.tsx', "*.vue"],
+ }],
+ plugins: [
+ "@typescript-eslint"
+ ],
- ],
- extends: [
- "eslint:recommended",
- 'plugin:vue/essential',
- '@vue/typescript',
- "plugin:@typescript-eslint/eslint-recommended",
- "plugin:@typescript-eslint/recommended"
- ],
- rules: {
- '@typescript-eslint/no-floating-promises': 'error',
- "vue/no-multiple-template-root": "off",
- "vue/no-v-for-template-key": "off",
- "vue/multi-word-component-names": "off",//TODO: 삭제
- },
- settings: {
- 'import/resolver': {
- alias: {
- map: [
- ['@', './hwe/ts'],
- ['@util', './hwe/ts/util'],
- ['@scss', './hwe/scss'],
- ]
- }
- }
- },
-}
\ No newline at end of file
+ extends: [
+ "eslint:recommended",
+ "plugin:vue/vue3-essential",
+ "plugin:@typescript-eslint/recommended"
+ ],
+ parserOptions: {
+ "sourceType": "module",
+ "project": "./tsconfig.json",
+ "ecmaVersion": 2021,
+ "parser": "@typescript-eslint/parser",
+ extraFileExtensions: ['.vue']
+ },
+ rules: {
+ '@typescript-eslint/no-floating-promises': 'error',
+ },
+ settings: {
+ 'import/resolver': {
+ alias: {
+ map: [
+ ['@', './hwe/ts'],
+ ['@util', './hwe/ts/util'],
+ ['@scss', './hwe/scss'],
+ ]
+ }
+ }
+ },
+};
diff --git a/f_install/install.php b/f_install/install.php
index 27c46db6..e1c1b265 100644
--- a/f_install/install.php
+++ b/f_install/install.php
@@ -13,13 +13,17 @@ require(__DIR__ . '/../vendor/autoload.php');
설치
+
= WebUtil::printJS('../d_shared/common_path.js') ?>
- = WebUtil::printJS('../dist_js/vendors.js') ?>
- = WebUtil::printJS('dist_js/common_ts.js') ?>
- = WebUtil::printJS('../dist_js/install.js') ?>
- = WebUtil::printCSS('../dist_css/vendor.css') ?>
- = WebUtil::printCSS('../dist_css/common_ts.css') ?>
+ = WebUtil::printJS('../dist_js/gateway/vendors.js') ?>
+ = WebUtil::printCSS('../dist_js/gateway/vendor.css') ?>
+ = WebUtil::printJS('../dist_js/gateway/common_ts.js') ?>
+ = WebUtil::printCSS('../dist_js/gateway/common_ts.css') ?>
+ = WebUtil::printJS('../dist_js/gateway/install.js') ?>
+ = WebUtil::printCSS('../dist_js/gateway/install.css') ?>
+
= WebUtil::printCSS('../css/install.css') ?>
+
diff --git a/hwe/_119.php b/hwe/_119.php
index 1017a904..513301d1 100644
--- a/hwe/_119.php
+++ b/hwe/_119.php
@@ -24,7 +24,7 @@ $plock = $db->queryFirstField('SELECT plock FROM plock');
=WebUtil::printCSS('../d_shared/common.css')?>
-=WebUtil::printCSS('dist_css/common.css')?>
+= WebUtil::printDist('ts', 'common', true) ?>
diff --git a/hwe/_admin1.php b/hwe/_admin1.php
index a622e36e..8e9fd584 100644
--- a/hwe/_admin1.php
+++ b/hwe/_admin1.php
@@ -22,7 +22,7 @@ $admin = getAdmin();
=WebUtil::printCSS('../d_shared/common.css')?>
-=WebUtil::printCSS('dist_css/common.css')?>
+= WebUtil::printDist('ts', 'common', true) ?>
diff --git a/hwe/_admin2.php b/hwe/_admin2.php
index 5721e97c..87b2bb2b 100644
--- a/hwe/_admin2.php
+++ b/hwe/_admin2.php
@@ -23,7 +23,7 @@ $db = DB::db();
= WebUtil::printCSS('../d_shared/common.css') ?>
- = WebUtil::printCSS('dist_css/common.css') ?>
+ = WebUtil::printDist('ts', 'common', true) ?>
diff --git a/hwe/_admin4.php b/hwe/_admin4.php
index 0f05ba32..2ef4c18f 100644
--- a/hwe/_admin4.php
+++ b/hwe/_admin4.php
@@ -23,8 +23,9 @@ $ipGroupList = Util::arrayGroupBy(
'ip_c'
);
-function colorBlockedName($general){
- if(!$general['blocked']){
+function colorBlockedName($general)
+{
+ if (!$general['blocked']) {
return $general['name'];
}
return "{$general['name']} ";
@@ -40,7 +41,7 @@ function colorBlockedName($general){
= WebUtil::printCSS('../d_shared/common.css') ?>
- = WebUtil::printCSS('dist_css/common.css') ?>
+ = WebUtil::printDist('ts', 'common', true) ?>
@@ -108,14 +109,14 @@ function colorBlockedName($general){
IP
ID
-$users): ?>
-
- =join(' ',array_map('\sammo\colorBlockedName', $users))?>
- =join(' ',array_column($users, 'lastconnect'))?>
- =join(' ',array_column($users, 'ip'))?>
- =join(' ',array_column($users, 'owner'))?>
-
-
+ $users) : ?>
+
+ = join(' ', array_map('\sammo\colorBlockedName', $users)) ?>
+ = join(' ', array_column($users, 'lastconnect')) ?>
+ = join(' ', array_column($users, 'ip')) ?>
+ = join(' ', array_column($users, 'owner')) ?>
+
+
= WebUtil::printCSS('../d_shared/common.css') ?>
- = WebUtil::printCSS('dist_css/common.css') ?>
+ = WebUtil::printDist('ts', 'common', true) ?>
@@ -212,7 +212,7 @@ GROUP BY B.nation
$query .= " order by avg(B.dex5) desc";
break;
}
- foreach($db->query($query) as $nation){
+ foreach ($db->query($query) as $nation) {
$gen = $db->queryFirstRow('SELECT COUNT(*) as cnt,
ROUND(AVG(gold)) as avgg,
ROUND(AVG(rice)) as avgr,
@@ -221,7 +221,7 @@ GROUP BY B.nation
ROUND(AVG(intel), 1) as avgi,
ROUND(AVG(explevel), 1) as avge,
SUM(crew) as crew
-from general where nation=%i',$nation['nation']);
+from general where nation=%i', $nation['nation']);
$city = $db->queryFirstRow('SELECT COUNT(*) as cnt,
SUM(pop) as pop, SUM(pop_max) as pop_max,
@@ -312,7 +312,7 @@ from city where nation=%i', $nation['nation']);
?>
query('SELECT * from statistic where month=1 or no=1') as $stat){
+ foreach ($db->query('SELECT * from statistic where month=1 or no=1') as $stat) {
echo "
{$stat['year']}
diff --git a/hwe/_admin7.php b/hwe/_admin7.php
index 1a3ecfd1..25078733 100644
--- a/hwe/_admin7.php
+++ b/hwe/_admin7.php
@@ -86,7 +86,7 @@ $generalObj = General::createGeneralObjFromDB($gen);
= WebUtil::printCSS('../d_shared/common.css') ?>
- = WebUtil::printCSS('dist_css/common.css') ?>
+ = WebUtil::printDist('ts', 'common', true) ?>
diff --git a/hwe/_admin8.php b/hwe/_admin8.php
index 9fd01fba..b9fb03c0 100644
--- a/hwe/_admin8.php
+++ b/hwe/_admin8.php
@@ -1,4 +1,5 @@
+
-외교정보
-
-
-
-=WebUtil::printCSS('../d_shared/common.css')?>
-=WebUtil::printCSS('dist_css/common.css')?>
-
+ 외교정보
+
+
+
+ = WebUtil::printCSS('../d_shared/common.css') ?>
+ = WebUtil::printDist('ts', 'common', true) ?>
+
+
-
- 외 교 정 보 =closeButton()?>
-
-
-
-
-
- 외 교 관 계
+
+
+ 외 교 정 보 = closeButton() ?>
+
+
+
+
+
+
+
+
+
+ 외 교 관 계
+
+
+ 국 가 명
+ 국 가 명
+ 상 태
+ 기 간
+
+ query('SELECT * from diplomacy where me < you order by state desc') as $dip) {
+ $me = $dip['me'];
+ $you = $dip['you'];
+
+ if ($dip['state'] == 2) {
+ continue;
+ }
+
+ switch ($dip['state']) {
+ case 0:
+ $state = "교 전 ";
+ break;
+ case 1:
+ $state = "선포중 ";
+ break;
+ case 2:
+ $state = "통 상";
+ break;
+ case 7:
+ $state = "불가침 ";
+ break;
+ }
+
+ $date = TimeUtil::now();
+
+ echo "
- 국 가 명
- 국 가 명
- 상 태
- 기 간
-
-query('SELECT * from diplomacy where me < you order by state desc') as $dip){
- $me = $dip['me'];
- $you = $dip['you'];
-
- if ($dip['state'] == 2) {
- continue;
- }
-
- switch ($dip['state']) {
- case 0: $state = "교 전 "; break;
- case 1: $state = "선포중 "; break;
- case 2: $state = "통 상"; break;
- case 7: $state = "불가침 "; break;
- }
-
- $date = TimeUtil::now();
-
- echo "
-
- $nationName[$me]
- $nationName[$you]
+ $nationName[$me]
+ $nationName[$you]
$state
{$dip['term']} 개월
";
-}
-?>
-
-
- =closeButton()?>
- =banner()?>
-
+ }
+ ?>
+
+
+
+ = closeButton() ?>
+
+
+ = banner() ?>
+
+
-
+
+