feat: wip, 도시정보
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<div>도시 정보</div>
|
||||||
|
<div>{{cityID}}</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script lang="ts">
|
||||||
|
</script>
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { toRef } from 'vue';
|
||||||
|
|
||||||
|
const props = defineProps<{
|
||||||
|
cityID?: number
|
||||||
|
}>()
|
||||||
|
const cityID = toRef(props, 'cityID');
|
||||||
|
</script>
|
||||||
@@ -27,6 +27,7 @@
|
|||||||
"v_board": "v_board.ts",
|
"v_board": "v_board.ts",
|
||||||
"v_cachedMap": "v_cachedMap",
|
"v_cachedMap": "v_cachedMap",
|
||||||
"v_chiefCenter": "v_chiefCenter.ts",
|
"v_chiefCenter": "v_chiefCenter.ts",
|
||||||
|
"v_cityInfo": "v_cityInfo.ts",
|
||||||
"v_NPCControl": "v_NPCControl.ts",
|
"v_NPCControl": "v_NPCControl.ts",
|
||||||
"v_join": "v_join.ts",
|
"v_join": "v_join.ts",
|
||||||
"v_main": "v_main.ts",
|
"v_main": "v_main.ts",
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import { createApp } from 'vue'
|
||||||
|
import { auto500px } from './util/auto500px';
|
||||||
|
import { htmlReady } from './util/htmlReady';
|
||||||
|
import { insertCustomCSS } from './util/customCSS';
|
||||||
|
import PageCityInfo from './PageCityInfo.vue';
|
||||||
|
import { installVue3Components } from './util/installVue3Components';
|
||||||
|
auto500px();
|
||||||
|
|
||||||
|
declare const query: {
|
||||||
|
cityID?: number
|
||||||
|
};
|
||||||
|
|
||||||
|
htmlReady(() => {
|
||||||
|
insertCustomCSS();
|
||||||
|
});
|
||||||
|
installVue3Components(createApp(PageCityInfo, query)).mount('#app');
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace sammo;
|
||||||
|
|
||||||
|
include "lib.php";
|
||||||
|
include "func.php";
|
||||||
|
|
||||||
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
|
|
||||||
|
$cityID = Util::getReq('cityID', 'int');
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="color-scheme" content="dark">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=500" />
|
||||||
|
<title><?= UniqueConst::$serverName ?>: 도시 정보</title>
|
||||||
|
<?= WebUtil::printStaticValues([
|
||||||
|
'staticValues' => [
|
||||||
|
'serverName' => UniqueConst::$serverName,
|
||||||
|
'serverNick' => DB::prefix(),
|
||||||
|
'serverID' => UniqueConst::$serverID,
|
||||||
|
'mapName' => GameConst::$mapName,
|
||||||
|
'unitSet' => GameConst::$unitSet,
|
||||||
|
],
|
||||||
|
'query' => [
|
||||||
|
'cityID' => $cityID,
|
||||||
|
]
|
||||||
|
], false) ?>
|
||||||
|
<?= WebUtil::printJS('../d_shared/common_path.js') ?>
|
||||||
|
<?= WebUtil::printCSS('../d_shared/common.css') ?>
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css" />
|
||||||
|
<?= WebUtil::printDist('vue', 'v_cityInfo', true) ?>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user