123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <div id="welcome">
- <div class="center-block text-center welcome">
- <div ng-if="(ctrl.state === 'connecting' || ctrl.state === 'waiting') && ctrl.mode === 'scan'" class="scan">
- <div class="ios-only-warning" ng-if="ctrl.browser.safari">
- <img src="img/safari.svg" alt="Safari">
- <p><strong translate>common.NOTE</strong> <span translate>welcome.SAFARI</span></p>
- </div>
- <p class="instructions" translate>welcome.PLEASE_SCAN</p>
- <qrcode version="{{ ctrl.qrCode.version }}"
- id="connecting-code"
- error-correction-level="{{ ctrl.qrCode.errorCorrectionLevel }}"
- size="{{ ctrl.qrCode.size }}" data="{{ ctrl.qrCode.data }}"></qrcode>
- <div class="password-entry">
- <label>
- <p translate>welcome.CHOOSE_PASSWORD</p>
- <form autocomplete="off">
- <md-input-container md-no-float class="md-block">
- <input type="password"
- ng-model="ctrl.password"
- aria-label="Password"
- translate-attr="{'placeholder': 'welcome.PASSWORD', 'aria-label': 'welcome.PASSWORD'}"
- autocomplete="new-password">
- </md-input-container>
- </form>
- </label>
- </div>
- </div>
- <div ng-if="(ctrl.state === 'new' || ctrl.state === 'connecting') && ctrl.mode === 'unlock'" class="unlock">
- <h2 class="instructions" translate>welcome.PLEASE_UNLOCK</h2>
- <div class="password-entry">
- <label>
- <p translate>welcome.ENTER_PASSWORD</p>
- <form ng-submit="ctrl.unlockConfirm()">
- <md-input-container md-no-float class="md-block">
- <input type="password"
- ng-model="ctrl.password"
- ng-disabled="ctrl.formLocked"
- autofocus
- aria-label="Password"
- translate-attr="{'placeholder': 'welcome.PASSWORD', 'aria-label': 'welcome.PASSWORD'}"
- autocomplete="current-password">
- </md-input-container>
- <md-button type="submit" class="md-raised md-primary"><span translate>welcome.BTN_RECONNECT</span></md-button>
- </form>
- <p>
- <span translate>welcome.ALTERNATIVELY</span>
- <a href="#" ng-click="ctrl.deleteSession()" translate>welcome.FORGET_SESSION</a>.
- </p>
- </label>
- </div>
- </div>
- <div ng-if="ctrl.showLoadingIndicator">
- <h2 class="instructions" translate>welcome.CONNECTING</h2>
- <div class="loading">
- <md-progress-circular md-mode="determinate" value="{{ ctrl.progress }}" md-diameter="250">
- </md-progress-circular>
- <div class="info">
- <p class="percentage">{{ ctrl.progress }}%</p>
- <p ng-if="ctrl.state === 'push'" translate>welcome.WAITING_FOR_PUSH</p>
- <p ng-if="ctrl.state === 'peer_handshake'" translate>welcome.CONNECTING_TO_APP</p>
- <p ng-if="ctrl.state === 'loading' || ctrl.state === 'done'" translate>welcome.LOADING_INITIAL_DATA</p>
- <div class="troubleshoot" ng-if="ctrl.slowConnect">
- <h3 translate>troubleshooting.SLOW_CONNECT</h3>
- <ul>
- <li>
- <i class="material-icons md-dark md-14">help</i>
- <span translate>troubleshooting.PHONE_ONLINE</span>
- </li>
- <li ng-if="ctrl.state === 'push'">
- <i class="material-icons md-dark md-14">help</i>
- <span translate>troubleshooting.APP_STARTED</span>
- </li>
- <li ng-if="ctrl.state === 'push'">
- <i class="material-icons md-dark md-14">help</i>
- <span translate>troubleshooting.WEBCLIENT_ENABLED</span>
- </li>
- <li ng-if="ctrl.state === 'push'">
- <i class="material-icons md-dark md-14">help</i>
- <span translate>troubleshooting.SESSION_DELETED</span>
- </li>
- <li ng-if="ctrl.state === 'peer_handshake'">
- <i class="material-icons md-dark md-14">help</i>
- <span translate>troubleshooting.PLUGIN</span>
- </li>
- <li ng-if="ctrl.state === 'peer_handshake'">
- <i class="material-icons md-dark md-14">help</i>
- <span translate>troubleshooting.ADBLOCKER</span>
- </li>
- </ul>
- <md-button class="md-raised md-primary reload-btn" ng-click="ctrl.deleteSession()" ng-if="ctrl.state === 'push'">
- <span translate>welcome.FORGET_SESSION_BTN</span>
- </md-button>
- <md-button class="md-raised md-primary reload-btn" ng-click="ctrl.reload()">
- <i class="material-icons">refresh</i> <span translate>welcome.RELOAD</span>
- </md-button>
- </div>
- </div>
- </div>
- </div>
- <div class="manual-start" ng-if="ctrl.state === 'manual_start'">
- <h2 class="instructions" translate>welcome.MANUAL_START</h2>
- <p translate>welcome.MANUAL_START_TEXT1</p>
- <i class="illustration material-icons md-dark md-96">phone_android</i>
- <p translate>welcome.MANUAL_START_TEXT2</p>
- <ol>
- <li translate>welcome.MANUAL_START_STEP1</li>
- <li translate>welcome.MANUAL_START_STEP2</li>
- <li translate>welcome.MANUAL_START_STEP3</li>
- </ol>
- </div>
- <div class="already-connected" ng-if="ctrl.state === 'already_connected'">
- <h2 class="instructions" translate>welcome.ALREADY_CONNECTED</h2>
- <i class="illustration material-icons md-dark md-96">phonelink_ring</i>
- <p translate>welcome.ALREADY_CONNECTED_DETAILS</p>
- <br>
- <md-button class="md-raised md-primary" ng-click="ctrl.reload()">
- <i class="material-icons">refresh</i> <span translate>welcome.RELOAD</span>
- </md-button>
- </div>
- <div ng-if="ctrl.state === 'closed'">
- <p class="state error">
- <strong><span translate>common.ERROR</span>:</strong> <span translate>connecting.CONNECTION_CLOSED</span><br>
- <span translate>welcome.PLEASE_RELOAD</span>
- </p>
- <br>
- <md-button class="md-raised md-primary" ng-click="ctrl.reload()">
- <i class="material-icons">refresh</i> <span translate>welcome.RELOAD</span>
- </md-button>
- </div>
- <div ng-if="ctrl.state === 'reconnect_failed'">
- <p class="state error">
- <strong><span translate>common.ERROR</span>:</strong> <span translate>connecting.RECONNECT_FAILED</span><br>
- <span translate>welcome.PLEASE_RELOAD</span>
- </p>
- <br>
- <md-button class="md-raised md-primary" ng-click="ctrl.reload()">
- <i class="material-icons">refresh</i> <span translate>welcome.RELOAD</span>
- </md-button>
- </div>
- </div>
- </div>
|