env-test.html 4.5 KB

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