@@ -473,7 +473,8 @@ const infoDefine = [
473473 step2_detail1 : '右键点击已下载的QTGate图标,选择菜单里的文件属性' ,
474474 step2_detail2 : '在权限选项里,选勾“允许档案文件执行”。' ,
475475 step3 : '退出旧版本QTGate后,双击QTGate文件执行安装' ,
476- exit : '退出QTGate'
476+ exit : '退出QTGate' ,
477+ tryAgain : '再次尝试'
477478 } ,
478479 imapInformation : {
479480 title : '通讯专用Email邮箱设置' ,
@@ -563,15 +564,19 @@ const infoDefine = [
563564 SystemPasswordError : '密钥对密码错误,请重试!如果您已忘记您的密钥对密码,请删除现有的密钥对,重新生成新的密钥对。但您的原有设定将全部丢失!' ,
564565 finishedDeleteKeyPair : '密钥对完成删除!' ,
565566 offlineError : '您的电脑未连接到互联网,请检查网络后再次尝试!' ,
566- imapErrorMessage : [ '' ,
567+ imapErrorMessage : [
568+ '未能够与QTGate服务器对接成功。 QTGate系统可能存在问题,请稍後再次尝试。或联系QTGate服务。' ,
567569 '数据格式错误,请重试' ,
568570 '您的电脑未连接到互联网,请检查网络后再次尝试!' ,
569571 'Email伺服器提示IMAP用户名或密码错!这个错误通常是由于您使用的密码是普通密码,或者您的APP密码已失效,请到您的Email帐户检查您的APP密码,然后再试一次。' ,
570572 'Email伺服器的指定連接埠連結失敗,請檢查您的IMAP連接埠設定,如果您在一個防火牆內部,則有可能該端口被防火牆所屏蔽,您可以嘗試使用該IMAP伺服器的其他連接埠!<a href="data-html"></a>' ,
571573 '服务器证书错误!您可能正在连接到一个仿冒的Email服务器,如果您肯定这是您希望连接的服务器,请在IMAP详细设定中选择忽略证书错误。' , '无法获得Email服务器域名信息,请检查您的Email服务器设定!' ,
572574 '此Email服务器看来可能不能使用QTGate通讯技术,请再测试一次或选择其他email服务供应商!' ,
573575 'Email服务器提示SMTP用户名或密码错! ' ,
574- '服务器证书错误!您可能正在连接到一个仿冒的Email服务器,如果您肯定这是您希望连接的服务器,请在SMTP详细设定中选择忽略证书错误。 ' , 'SMTP连结提示未知错误' , '存在相同Email账号' ]
576+ '服务器证书错误!您可能正在连接到一个仿冒的Email服务器,如果您肯定这是您希望连接的服务器,请在SMTP详细设定中选择忽略证书错误。 ' ,
577+ 'SMTP连结提示未知错误' ,
578+ '存在相同Email账号'
579+ ]
575580 } ,
576581 emailConform : {
577582 activeViewTitle : '验证您的密钥' ,
@@ -1047,7 +1052,8 @@ const infoDefine = [
10471052 step2_detail1 : '右クリックダウンロードしたQTGateファイル、プロパティを選んでください。' ,
10481053 step2_detail2 : 'アクセス権にポログラムとして実行可能をチェック' ,
10491054 step3 : '旧バージョンQTGateを退出して、新しいQTGateバージョンをダブクリックしてインストールをします。' ,
1050- exit : '旧QTGateを退出'
1055+ exit : '旧QTGateを退出' ,
1056+ tryAgain : 'もう一度'
10511057 } ,
10521058 topWindow : {
10531059 title : 'カナダ150周年特別提供'
@@ -1141,7 +1147,8 @@ const infoDefine = [
11411147 SystemPasswordError : '暗号鍵パスワードが違います。パースワードが忘れた場合、現在の鍵ペアを削除してください。この場合は、現有の設定はなくなって、一からシステム設定をやり直しが必要です。' ,
11421148 finishedDeleteKeyPair : '暗号鍵ペア削除しました。' ,
11431149 offlineError : 'インターネット接続されていないらしいですが、ネットワークをチェックしてもう一度お試しください!' ,
1144- imapErrorMessage : [ '' ,
1150+ imapErrorMessage : [
1151+ 'QTGateと接続ができませんでした。QTGateサービスが一時停止しています。後ほどもう一度してみてください。またはQTGateサービスにお問い合わせしてください。' ,
11451152 'データフーマットエラー!' ,
11461153 'インターネット接続されていないらしいですが、ネットワークをチェックしてもう一度お試しください!' ,
11471154 'mailサーバはIMAPユーザー名又はパスワードに間違いがあると提示しました!このエラーは普通パスワードを使っていましたか、またはAPPパスワードが失効と可能性もありますが、メールプロバイダのアカウトページへチェックをしてください。' ,
@@ -1152,7 +1159,8 @@ const infoDefine = [
11521159 'emailサーバはSMTPユーザー名又はパスワードに間違いがあると提示しました!' ,
11531160 'SMTPサーバのセキュリティ証明書信頼できません。詐欺や、お使いのコンピューターからサーバーに送信されると情報を盗み取る意図が示唆されている場合があります。' ,
11541161 'SMTPサーバへ接続ができません。' ,
1155- '同じEmailアカンウトが既に存在します。' ]
1162+ '同じEmailアカンウトが既に存在します。'
1163+ ]
11561164 } ,
11571165 emailConform : {
11581166 activeViewTitle : '鍵ペア検証' ,
@@ -1526,7 +1534,8 @@ const infoDefine = [
15261534 step2_detail1 : 'Right click downloaded QTGate file and select the properties.' ,
15271535 step2_detail2 : 'Check allow executing file as program in Permissions tab.' ,
15281536 step3 : 'Exit old version of QTGate and double click the new QTGate file to run install.' ,
1529- exit : 'Exit QTGate.'
1537+ exit : 'Exit QTGate' ,
1538+ tryAgain : 'Try again'
15301539 } ,
15311540 imapInformation : {
15321541 title : 'Email account to use by OPN.' ,
@@ -1617,7 +1626,7 @@ const infoDefine = [
16171626 finishedDeleteKeyPair : 'Key pair deleted!' ,
16181627 offlineError : 'There is no internet connection detected. Please check your network and try again!' ,
16191628 imapErrorMessage : [
1620- '' ,
1629+ 'QTGate did not respond your connection request. QTGate system may stopping service. Try do connection request late again. Or connect QTGate support please. ' ,
16211630 'Data format error!' ,
16221631 'This computer does not detect an internet connection. Please check your network and try again!' ,
16231632 `Email server did respond to username or an error in password. You may need use APP password to pass this test if you did normal password. Or your app passwords need to be updated.` ,
@@ -1979,7 +1988,8 @@ const infoDefine = [
19791988 step2_detail1 : '右鍵點擊已下載的QTGate圖標,選擇菜單裡的文件屬性' ,
19801989 step2_detail2 : '在權限選項裡,選勾“允許檔案文件執行”。' ,
19811990 step3 : '退出舊版本QTGate後,雙擊QTGate文件執行安裝' ,
1982- exit : '退出QTGate'
1991+ exit : '退出QTGate' ,
1992+ tryAgain : '再次嘗試'
19831993 } ,
19841994 imapInformation : {
19851995 title : '通訊專用Email郵箱設置' ,
@@ -2069,7 +2079,8 @@ const infoDefine = [
20692079 SystemPasswordError : '密鑰對密碼錯誤,請重試!如果您已忘記您的密鑰對密碼,請刪除現有的密鑰對,重新生成新的密鑰對。' ,
20702080 finishedDeleteKeyPair : '密鑰對完成刪除!' ,
20712081 offlineError : '您的電腦視乎未連結到互聯網,請檢查網路連結' ,
2072- imapErrorMessage : [ '' ,
2082+ imapErrorMessage : [
2083+ '未能夠與QTGate伺服器對接成功。QTGate系統可能存在問題,請稍後再次嘗試建立連結。或聯繫QTGate服務。' ,
20732084 '數據格式錯誤,請重試' ,
20742085 '您的電腦未連接到互聯網,請檢查網絡後再次嘗試!' ,
20752086 'Email伺服器提示IMAP用戶名或密碼錯!這個錯誤通常是由於您使用的密碼是普通密碼,或者您的APP密碼已失效,請到您的Email帳戶檢查您的APP密碼,然後再試一次。' ,
@@ -2080,7 +2091,8 @@ const infoDefine = [
20802091 'email伺服器提示SMTP用戶名或密碼錯!' ,
20812092 '伺服器證書錯誤!您可能正在連接到一個仿冒的Email伺服器,如果您肯定這是您希望連接的伺服器,請在SMTP詳細設定中選擇忽略證書錯誤。' ,
20822093 'SMTP連結提示未知錯誤' ,
2083- '您已有相同的Email賬戶' ]
2094+ '您已有相同的Email賬戶'
2095+ ]
20842096 } ,
20852097 emailConform : {
20862098 activeViewTitle : '驗證您的密鑰' ,
@@ -2978,6 +2990,8 @@ var view_layout;
29782990 this . QTGateConnectActive = ko . observable ( false ) ;
29792991 this . QTGateConnectRegionActive = ko . observable ( false ) ;
29802992 this . QTGateConnectError = ko . observable ( 0 ) ;
2993+ this . showTimeoutMessage = ko . observable ( false ) ;
2994+ this . UserPermentShapeDetail = ko . observable ( false ) ;
29812995 //-
29822996 //- QTGate connect
29832997 this . showSendIMAPToQTGateInfo = ko . observable ( false ) ;
@@ -3073,21 +3087,8 @@ var view_layout;
30733087 this . conformTextError ( false ) ;
30743088 const text = this . conformText ( ) ;
30753089 if ( ! text . length )
3076- return ;
3077- const check = / ^ - - - - - B E G I N P G P M E S S A G E - - - - - / . test ( text ) ;
3078- this . conformTextErrorNumber ( 0 ) ;
3079- if ( ! check ) {
3080- this . conformTextError ( true ) ;
3081- $ ( '.activating.element' ) . popup ( {
3082- on : 'click' ,
3083- position : 'left center' ,
3084- target : '#SendToQTGateTextArea' ,
3085- onHidden : ( ) => {
3086- this . conformTextError ( false ) ;
3087- }
3088- } ) ;
3089- }
3090- return ( check ) ;
3090+ return false ;
3091+ return true ;
30913092 } ) ;
30923093 this . cancelPlan = ko . observable ( false ) ;
30933094 this . connectQTGateShow = ko . observable ( false ) ;
@@ -3247,7 +3248,7 @@ var view_layout;
32473248 } ) ;
32483249 socketIo . on ( 'checkActiveEmailError' , err => {
32493250 if ( err !== null && err > - 1 ) {
3250- if ( err === 3 || err === 4 || err === 2 || err === 9 ) {
3251+ if ( err === 9 ) {
32513252 // err = 3 password have not match from QTGate system
32523253 // err = 4 unformat data from QTGate system
32533254 // err = 6 QTGate connect pair timeout from server.js
@@ -3269,11 +3270,26 @@ var view_layout;
32693270 return this . QTGateConnecting ( 4 ) ;
32703271 } ) ;
32713272 socketIo . on ( 'qtGateConnect' , ( data ) => {
3273+ this . showTimeoutMessage ( false ) ;
32723274 this . imapInputFormActive ( true ) ;
3275+ // show send mail message
3276+ this . connectQTGateShow ( false ) ;
32733277 this . QTGateConnectActive ( true ) ;
32743278 this . reSendConnectMail ( false ) ;
32753279 $ ( '.ui.dropdown' ) . dropdown ( ) ;
32763280 this . menuClick ( 3 , true ) ;
3281+ const process = $ ( '#connectImformationProcess' ) ;
3282+ let percent = 0 ;
3283+ const doingProcessBar = ( ) => {
3284+ clearTimeout ( this . doingProcessBarTime ) ;
3285+ this . doingProcessBarTime = setTimeout ( ( ) => {
3286+ process . progress ( {
3287+ percent : ++ percent
3288+ } ) ;
3289+ if ( percent < 100 )
3290+ return doingProcessBar ( ) ;
3291+ } , 1000 ) ;
3292+ } ;
32773293 // have no imap data
32783294 if ( ! data ) {
32793295 // show imap manager area
@@ -3284,6 +3300,16 @@ var view_layout;
32843300 const uu = this . emailPool ( ) . findIndex ( n => { return n . uuid === data . qtgateConnectImapAccount ; } ) ;
32853301 this . QTGateConnectSelectImap ( uu ) ;
32863302 }
3303+ if ( data . qtGateConnecting === 6 ) {
3304+ if ( this . keyPair ( ) . verified )
3305+ return this . sendConnectRequestMail ( true ) ;
3306+ return this . connectQTGateShow ( true ) ;
3307+ }
3308+ if ( data . qtGateConnecting === 0 ) {
3309+ clearTimeout ( this . doingProcessBarTime ) ;
3310+ process . progress ( 'reset' ) ;
3311+ return this . showTimeoutMessage ( true ) ;
3312+ }
32873313 this . QTGateConnecting ( data . qtGateConnecting ) ;
32883314 if ( data . qtGateConnecting === 3 ) {
32893315 this . QTGateConnectActive ( false ) ;
@@ -3311,9 +3337,6 @@ var view_layout;
33113337 */
33123338 }
33133339 if ( ! this . keyPair ( ) . verified ) {
3314- if ( data . qtGateConnecting === 6 ) {
3315- return this . connectQTGateShow ( true ) ;
3316- }
33173340 this . showActiveMail ( true ) ;
33183341 this . QTGateConnectActive ( true ) ;
33193342 this . QTGateConnectError ( data . error ) ;
@@ -3350,18 +3373,6 @@ var view_layout;
33503373 return this . getAvaliableRegion ( ) ;
33513374 } , 2000 ) ;
33523375 }
3353- const process = $ ( '#connectImformationProcess' ) ;
3354- let percent = 0 ;
3355- const doingProcessBar = ( ) => {
3356- clearTimeout ( this . doingProcessBarTime ) ;
3357- this . doingProcessBarTime = setTimeout ( ( ) => {
3358- process . progress ( {
3359- percent : ++ percent
3360- } ) ;
3361- if ( percent < 100 )
3362- return doingProcessBar ( ) ;
3363- } , 1000 ) ;
3364- } ;
33653376 this . QTGateConnectRegionActive ( true ) ;
33663377 // first connect
33673378 if ( data . qtGateConnecting === 1 ) {
@@ -3371,10 +3382,6 @@ var view_layout;
33713382 this . menuClick ( 3 , true ) ;
33723383 return this . QTGateConnectActive ( false ) ;
33733384 }
3374- // timeout!
3375- if ( data . qtGateConnecting === 6 ) {
3376- return this . sendConnectRequestMail ( true ) ;
3377- }
33783385 // send request mail error
33793386 if ( data . qtGateConnecting === 5 ) {
33803387 clearTimeout ( this . doingProcessBarTime ) ;
@@ -3877,7 +3884,8 @@ var view_layout;
38773884 getAvaliableRegion ( ) {
38783885 this . pingCheckLoading ( true ) ;
38793886 socketIo . emit ( 'getAvaliableRegion' , ( region , dataTransfer , config ) => {
3880- return this . getAvaliableRegionCallBack ( region , dataTransfer , config ) ;
3887+ if ( region && region . length )
3888+ return this . getAvaliableRegionCallBack ( region , dataTransfer , config ) ;
38813889 } ) ;
38823890 }
38833891 desconnectCallBack ( ) {
0 commit comments