env-test.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <ui-section>
  2. <div slot="header" class="header greenColor">项目测试环境manifest信息</div>
  3. <div class="layout vertical">
  4. <div class="layout horizontal center" style="display: none;">
  5. <div style="display: none">
  6. <ui-select class="" v-on:change="onTestEnvChange" v-value="testEnvSelect" v-el:env>
  7. <option value='0'>本地</option>
  8. <option value='1'>阿里云</option>
  9. <option value='2'>发送邮件</option>
  10. </ui-select>
  11. </div>
  12. </div>
  13. <!-------------------------------本地测试环境-------------------------------------->
  14. <div class="layout vertical">
  15. <ui-prop name="server dir">
  16. <div class="flex-1 layout horizontal center">
  17. <ui-input class="flex-2" readonly v-value="localServerPath"></ui-input>
  18. <ui-button v-on:confirm="onSelectLocalServerPath">...</ui-button>
  19. <ui-button v-on:confirm="onOpenLocalServer">
  20. <i class="icon-doc-text"></i>
  21. </ui-button>
  22. <ui-button class="green" v-on:confirm="onCopyFileToLocalServer">部署</ui-button>
  23. <ui-button class="red" v-on:confirm="onCopyFileToReduceDir">检索热更资源</ui-button>
  24. </div>
  25. </ui-prop>
  26. <ui-prop name="server url" tooltip="如果你开启了服务,请确保 package url 和 server url 一致,否则测试环境可能无法正常工作">
  27. <div class="layout horizontal flex-1 end-justified center-center">
  28. <div class="flex-1">
  29. <a v-show="serverApp!==null" @click="onClickServerUrl">
  30. <span>{{serverUrl}}</span>
  31. </a>
  32. <span v-show="serverApp===null">--</span>
  33. </div>
  34. <ui-button class="green" v-show="serverApp===null" @confirm="onBtnClickOpenStaticFileServer">
  35. 开启服务
  36. </ui-button>
  37. <ui-button class="red" v-on:confirm="onCleanSimRemoteRes">
  38. <i class="icon-trash-empty" title="删除win32模拟器热更新资源"></i>
  39. 清理模拟器缓存
  40. </ui-button>
  41. </div>
  42. </ui-prop>
  43. <ui-prop name="package url" tooltip="点击打开 URL/version.manifest">
  44. <div class="flex-1 layout horizontal center">
  45. <a class="flex-2" @click="onClickPackageUrl" style="white-space: nowrap;">
  46. {{serverPackageUrl}}
  47. </a>
  48. </div>
  49. </ui-prop>
  50. <ui-prop name="version">
  51. <div class="flex-1 layout horizontal center">
  52. <h4 class="flex-2">{{serverVersion}}</h4>
  53. <ui-button class="end-justified" v-on:confirm="refreshLocalServerVersion">
  54. <i class="icon-arrows-cw"></i>
  55. </ui-button>
  56. </div>
  57. </ui-prop>
  58. </div>
  59. <!---------------------------------阿里云测试环境---------------------------------->
  60. <div class="layout vertical" v-if="testEnvALi">
  61. <h2>阿里云</h2>
  62. <ui-prop name="">
  63. </ui-prop>
  64. <div class="self-end">
  65. <ui-button class="self-end green" v-on:confirm="onBtnClickAliTest"> 测试阿里云</ui-button>
  66. </div>
  67. </div>
  68. <!---------------------------------邮件环境--------------------------------------->
  69. <div class="layout vertical" v-if="testEnvEmail">
  70. <ui-prop name="添加邮件接收者">
  71. <ui-input class="flex-2" v-on:blur="onInputMailPeopleOver" v-value="addMailPeople"></ui-input>
  72. <ui-button v-if="isPeopleExist()">添加</ui-button>
  73. </ui-prop>
  74. <ui-prop name="邮件接收者" auto-height>
  75. <div class="layout vertical">
  76. <ui-checkbox v-for="(index, people) in emailPeopleArray" v-bind:value="people">
  77. {{'['+index+']'+people}}
  78. </ui-checkbox>
  79. </div>
  80. </ui-prop>
  81. <ui-prop name="发布的游戏版本">
  82. <ui-input class="flex-1" disabled v-value="serverRootDir"></ui-input>
  83. <ui-input style="width: 100px;" disabled
  84. v-if="remoteServerVersion!== null && remoteServerVersion !== '' "
  85. v-value="remoteServerVersion">1.0
  86. </ui-input>
  87. </ui-prop>
  88. <ui-prop name="更新内容" auto-height>
  89. <ui-text-area class="flex-1" resize-v placeholder="更新内容" v-value="emailContent">
  90. </ui-text-area>
  91. </ui-prop>
  92. <div class="self-end">
  93. <ui-button class="self-end green" v-on:confirm="onBtnClickSendMail"> 发送邮件</ui-button>
  94. </div>
  95. </div>
  96. </div>
  97. </ui-section>