welcome.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <div id="welcome">
  2. <div class="center-block text-center welcome">
  3. <div ng-if="(ctrl.state === 'connecting' || ctrl.state === 'waiting') && ctrl.mode === 'scan'" class="scan">
  4. <p class="instructions" translate>welcome.PLEASE_SCAN</p>
  5. <qrcode version="{{ ctrl.qrCode.version }}"
  6. id="connecting-code"
  7. error-correction-level="{{ ctrl.qrCode.errorCorrectionLevel }}"
  8. size="{{ ctrl.qrCode.size }}" data="{{ ctrl.qrCode.data }}"></qrcode>
  9. <div class="password-entry">
  10. <label>
  11. <p translate>welcome.CHOOSE_PASSWORD</p>
  12. <form autocomplete="off">
  13. <md-input-container md-no-float class="md-block">
  14. <input type="password"
  15. ng-model="ctrl.password"
  16. aria-label="Password"
  17. translate-attr="{'placeholder': 'welcome.PASSWORD', 'aria-label': 'welcome.PASSWORD'}">
  18. </md-input-container>
  19. </form>
  20. </label>
  21. </div>
  22. </div>
  23. <div ng-if="ctrl.state === 'connecting' && ctrl.mode === 'unlock'" class="unlock">
  24. <h2 class="instructions" translate>welcome.PLEASE_UNLOCK</h2>
  25. <div class="password-entry">
  26. <label>
  27. <p translate>welcome.ENTER_PASSWORD</p>
  28. <form ng-submit="ctrl.unlockConfirm()">
  29. <md-input-container md-no-float class="md-block">
  30. <input type="password"
  31. ng-model="ctrl.password"
  32. autofocus
  33. aria-label="Password"
  34. translate-attr="{'placeholder': 'welcome.PASSWORD', 'aria-label': 'welcome.PASSWORD'}">
  35. </md-input-container>
  36. <md-button type="submit" class="md-raised md-primary"><span translate>welcome.BTN_RECONNECT</span></md-button>
  37. </form>
  38. <p>
  39. <span translate>welcome.ALTERNATIVELY</span>
  40. <a href="#" ng-click="ctrl.deleteSession()" translate>welcome.FORGET_SESSION</a>.
  41. </p>
  42. </label>
  43. </div>
  44. </div>
  45. <div ng-if="ctrl.showLoadingIndicator">
  46. <h2 class="instructions" translate>welcome.CONNECTING</h2>
  47. <div class="loading">
  48. <md-progress-circular md-mode="determinate" value="{{ ctrl.progress }}" md-diameter="250">
  49. </md-progress-circular>
  50. <div class="info">
  51. <p class="percentage">{{ ctrl.progress }}%</p>
  52. <p ng-if="ctrl.state === 'push'" translate>welcome.WAITING_FOR_PUSH</p>
  53. <p ng-if="ctrl.state === 'peer_handshake'" translate>welcome.CONNECTING_TO_APP</p>
  54. <p ng-if="ctrl.state === 'loading' || ctrl.state === 'done'" translate>welcome.LOADING_INITIAL_DATA</p>
  55. <div class="troubleshoot" ng-if="ctrl.slowConnect">
  56. <h3 translate>troubleshooting.SLOW_CONNECT</h3>
  57. <ul>
  58. <li>
  59. <i class="material-icons md-dark md-14">help</i>
  60. <span translate>troubleshooting.PHONE_ONLINE</span>
  61. </li>
  62. <li ng-if="ctrl.state === 'push'">
  63. <i class="material-icons md-dark md-14">help</i>
  64. <span translate>troubleshooting.APP_STARTED</span>
  65. </li>
  66. <li ng-if="ctrl.state === 'push'">
  67. <i class="material-icons md-dark md-14">help</i>
  68. <span translate>troubleshooting.WEBCLIENT_ENABLED</span>
  69. </li>
  70. <li ng-if="ctrl.state === 'push'">
  71. <i class="material-icons md-dark md-14">help</i>
  72. <span translate>troubleshooting.SESSION_DELETED</span>
  73. </li>
  74. <li ng-if="ctrl.state === 'peer_handshake'">
  75. <i class="material-icons md-dark md-14">help</i>
  76. <span translate>troubleshooting.PLUGIN</span>
  77. </li>
  78. <li ng-if="ctrl.state === 'peer_handshake'">
  79. <i class="material-icons md-dark md-14">help</i>
  80. <span translate>troubleshooting.ADBLOCKER</span>
  81. </li>
  82. </ul>
  83. <p class="forget" ng-if="ctrl.state === 'push'">
  84. <span translate>welcome.IF_YOU_WANT</span>
  85. <a href="#" ng-click="ctrl.deleteSession()" translate>welcome.FORGET_SESSION</a>.
  86. </p>
  87. <div class="protocol-updated" ng-if="ctrl.config.PREV_PROTOCOL_LAST_VERSION !== null">
  88. <p ng-bind-html="ctrl.pleaseUpdateAppMsg"></p>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="manual-start" ng-if="ctrl.state === 'manual_start'">
  95. <h2 class="instructions" translate>welcome.MANUAL_START</h2>
  96. <p translate>welcome.MANUAL_START_TEXT1</p>
  97. <i class="illustration material-icons md-dark md-96">phone_android</i>
  98. <p translate>welcome.MANUAL_START_TEXT2</p>
  99. <ol>
  100. <li translate>welcome.MANUAL_START_STEP1</li>
  101. <li translate>welcome.MANUAL_START_STEP2</li>
  102. <li translate>welcome.MANUAL_START_STEP3</li>
  103. </ol>
  104. </div>
  105. <div ng-if="ctrl.state === 'closed'">
  106. <p class="state error">
  107. <strong><span translate>common.ERROR</span>:</strong> <span translate>connecting.CONNECTION_CLOSED</span><br>
  108. <span translate>welcome.PLEASE_RELOAD</span>
  109. </p>
  110. <br>
  111. <md-button class="md-raised md-primary" ng-click="ctrl.reload()">
  112. <i class="material-icons">refresh</i> <span translate>welcome.RELOAD</span>
  113. </md-button>
  114. </div>
  115. </div>
  116. </div>