JM_KA/packages/hot-update-tools/panel/index.html
2022-08-31 09:48:48 +08:00

222 lines
11 KiB
HTML

<div class="layout vertical" style="height: 100%" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<!--<div class="layout horizontal start-justified center">-->
<!--<ui-select class="flex-3" v-on:change="onIpSelectChange" id="ipSelection">-->
<!--<template v-for="ip in hotAddressArray">-->
<!--<option v-bind:value="ip">{{ip}}</option>-->
<!--</template>-->
<!--</ui-select>-->
<!--<ui-button v-disabled="false" v-on:confirm="onTestSelect">add select</ui-button>-->
<!--<ui-button v-disabled="false" v-on:confirm="onLogIp">ip</ui-button>-->
<!--</div>-->
<div class="layout vertical start-justified">
<h2>生成Manifest配置</h2>
<!-- <ui-prop name="版本号">
<div class="flex-1 layout horizontal center">
<ui-input class="flex-1" v-on:blur="onInputVersionOver" v-value="version"></ui-input>
<1!--<ui-button v-on:confirm="onTest">测试</ui-button>--1>
</div>
</ui-prop> -->
<ui-prop name="资源服务器url" tooltip="游戏热更新服务器的url">
<div class="flex-1 layout horizontal center">
<ui-input class="flex-2" v-on:blur="onInPutUrlOver" v-value="serverRootDir"></ui-input>
<!--<ui-button v-on:confirm="onTestUrl">Test URL</ui-button>-->
<!--<ui-button v-on:confirm="onOpenUrl">浏览器访问</ui-button>-->
<ui-input style="width: 100px;" readonly v-value="remoteServerVersion" v-if="isShowRemoteServerVersion">
</ui-input>
<ui-button v-on:confirm="userLocalIP">使用本机IP</ui-button>
</div>
</ui-prop>
<!------------------------------配置历史-------------------------------->
<ui-prop name="资源服务器url配置历史">
<div class="flex-1 layout horizontal center">
<ui-select class="flex-2" style="width: auto" id="hotAddressSelect"
v-on:change="onChangeSelectHotAddress">
<option v-for="(index, address) in hotAddressArray" v-bind:value="address">
{{'['+index+'] ' +address}}
</option>
</ui-select>
<ui-button class="green" v-on:confirm="onBtnClickUseSelectedHotAddress" v-show="isShowUseAddrBtn">使用
</ui-button>
<ui-button class="red" v-on:confirm="onBtnClickDelSelectedHotAddress" v-show="isShowDelAddrBtn">删除
</ui-button>
</div>
</ui-prop>
<ui-prop name="項目熱更配置文件(project.mainfest)">
<div class="flex-1 layout horizontal center">
<ui-input class="flex-2" readonly disabled v-value="genProjectManifestFile"></ui-input>
<ui-button v-on:confirm="onSelectGenProjectManifestFile">选择</ui-button>
<ui-button v-on:confirm="onOpenProjectManifestFile">
<i class="icon-doc-text"></i>
<!--打开-->
</ui-button>
</div>
</ui-prop>
<ui-prop name="build项目资源文件目录">
<div class="flex-1 layout horizontal center">
<ui-input class="flex-2" readonly disabled v-value="resourceRootDir"></ui-input>
<ui-button v-on:confirm="onSelectResourceRootDir">选择</ui-button>
<ui-button v-on:confirm="onOpenResourceDir">
<i class="icon-doc-text"></i>
<!--打开-->
</ui-button>
</div>
</ui-prop>
<ui-prop name="manifest存储目录">
<div class="flex-1 layout horizontal center">
<ui-input class="flex-2" readonly disabled v-value="genManifestDir"></ui-input>
<!--<ui-button v-on:confirm="onSelectGenManifestDir">选择</ui-button>-->
<ui-button v-on:confirm="onOpenManifestDir">
<i class="icon-doc-text"></i>
<!--打开-->
</ui-button>
</div>
</ui-prop>
<div class="self-end">
<!--<ui-button class="self-start" v-on:confirm="onCleanAPPCfg">-->
<!--清除APP配置-->
<!--</ui-button>-->
<!--<ui-button class="self-end green" v-on:confirm="onBtnClickPackVersion"> 压缩打包</ui-button>-->
<ui-button class="self-end red" v-on:confirm="onClickClear"> 清除Log</ui-button>
<ui-button class="self-end blue" v-on:confirm="onClickPrintProjectManifest"> 查看版號</ui-button>
<ui-button class="self-end green" v-on:confirm="onClickGenCfg"> 生成</ui-button>
</div>
</div>
<!-- <div class="layout vertical">
<h2> 当前游戏配置</h2>
<ui-prop name="项目热更配置文件(project.mainfest)">
<div class="flex-1 layout horizontal center">
<ui-input class="flex-1" disabled v-value="localGameProjectManifest"></ui-input>
<ui-button v-on:confirm="onOpenLocalGameManifestDir">
<i class="icon-doc-text"></i>
<1!--打开文件夹--1>
</ui-button>
</div>
</ui-prop>
<ui-prop name="项目热更配置文件(version.mainfest)">
<div class="flex-1 layout horizontal center">
<ui-input class="flex-1" disabled v-value="localGameVersionManifest"></ui-input>
<ui-button v-on:confirm="onOpenLocalGameManifestDir">
<i class="icon-doc-text"></i>
<1!--打开文件夹--1>
</ui-button>
</div>
</ui-prop>
<ui-prop name="package url:">
<div class="flex-1 layout horizontal center">
<h4 class="flex-2">{{localGamePackageUrl}}</h4>
</div>
</ui-prop>
<ui-prop name="游戏版本号:">
<div class="flex-1 layout horizontal center">
<h4 class="flex-2">{{localGameVersion}}</h4>
<ui-button title="将生成的2个manifest文件导入到项目中" class="end-justified blue"
v-on:confirm="importManifestToGame">
导入manifest
</ui-button>
<ui-button class="end-justified" v-on:confirm="initLocalGameVersion">
<i class="icon-arrows-cw"></i>
<1!--刷新--1>
</ui-button>
</div>
</ui-prop>
</div> -->
<!--------------------------------测试环境----------------------------------------------->
<div class="layout vertical">
<div class="layout horizontal center">
<h2>测试环境 - </h2>
<div style="display: none">
<ui-select class="" v-on:change="onTestEnvChange" v-value="testEnvSelect" id="testEnvSelect">
<option value='0'>本地</option>
<option value='1'>阿里云</option>
<option value='2'>发送邮件</option>
</ui-select>
</div>
</div>
<!-------------------------------本地测试环境-------------------------------------->
<div class="layout vertical" v-if="testEnvLocal">
<ui-prop name="package url">
<div class="flex-1 layout horizontal center">
<h4 class="flex-2">{{serverPackageUrl}}</h4>
</div>
</ui-prop>
<ui-prop name="服务器版本">
<div class="flex-1 layout horizontal center">
<h4 class="flex-2">{{serverVersion}}</h4>
<ui-button class="end-justified" v-on:confirm="refreshLocalServerVersion">
<i class="icon-arrows-cw"></i>
<!--刷新-->
</ui-button>
</div>
</ui-prop>
<ui-prop name="本机server物理路径">
<div class="flex-1 layout horizontal center">
<ui-input class="flex-2" disabled v-value="localServerPath"></ui-input>
<ui-button v-on:confirm="onSelectLocalServerPath">选择</ui-button>
<ui-button v-on:confirm="onOpenLocalServer">
<i class="icon-doc-text"></i>
<!--打开目录-->
</ui-button>
</div>
</ui-prop>
<ui-prop name="操作">
<div class="flex-1 layout horizontal center">
<h3 class="flex-2"></h3>
<ui-button class="end-justified red" v-on:confirm="onCleanSimRemoteRes">
<i class="icon-trash-empty" title="删除win32模拟器热更新资源"></i>
清理模拟器缓存
</ui-button>
<ui-button class="end-justified green" v-on:confirm="onCopyFileToLocalServer">部署</ui-button>
</div>
</ui-prop>
<ui-progress style="width: 100%;" v-value="copyProgress">40</ui-progress>
</div>
<!---------------------------------阿里云测试环境-------------------------------------------------->
<div class="layout vertical" v-if="testEnvALi">
<h2>阿里云</h2>
<ui-prop name="">
</ui-prop>
<div class="self-end">
<ui-button class="self-end green" v-on:confirm="onBtnClickAliTest"> 测试阿里云</ui-button>
</div>
</div>
<div class="layout vertical" v-if="testEnvEmail">
<ui-prop name="添加邮件接收者">
<ui-input class="flex-2" v-on:blur="onInputMailPeopleOver" v-value="addMailPeople"></ui-input>
<ui-button v-if="isPeopleExist()">添加</ui-button>
</ui-prop>
<ui-prop name="邮件接收者" auto-height>
<div class="layout vertical">
<ui-checkbox v-for="(index, people) in emailPeopleArray" v-bind:value="people">
{{'['+index+']'+people}}
</ui-checkbox>
</div>
</ui-prop>
<ui-prop name="发布的游戏版本">
<ui-input class="flex-1" disabled v-value="serverRootDir"></ui-input>
<ui-input style="width: 100px;" disabled
v-if="remoteServerVersion!== null && remoteServerVersion !== '' " v-value="remoteServerVersion">1.0
</ui-input>
</ui-prop>
<ui-prop name="更新内容" auto-height>
<ui-text-area class="flex-1" resize-v placeholder="更新内容" v-value="emailContent">
</ui-text-area>
</ui-prop>
<div class="self-end">
<ui-button class="self-end green" v-on:confirm="onBtnClickSendMail"> 发送邮件</ui-button>
</div>
</div>
</div>
<h2>日志:</h2>
<textarea class="flex-1 " id="logTextArea" v-value="logView"
style="width: 100%; height: 100%; background: #252525; color: #fd942b; border-color: #fd942b;"></textarea>
</div>