@@ -500,6 +500,7 @@ const infoDefine = [
500500 cancel : '放弃操作' ,
501501 stopCreateKeyPair : '停止生成密钥对' ,
502502 continueCreateKeyPair : '继续生成' ,
503+ newVersionInstallLoading : '更新中请稍候' ,
503504 KeypairLength : '请选择加密通讯用密钥对长度:这个数字越大,通讯越难被破解,但会增加通讯量和运算时间。' ,
504505 GenerateKeypair : '<em>系统正在生成用于通讯和签名的RSA加密密钥对,计算机需要运行产生大量的随机数字有,可能需要几分钟时间,尤其是长度为4096的密钥对,需要特别长的时间,请耐心等待。关于RSA加密算法的机制和原理,您可以访问维基百科:' +
505506 `<a href='https://zh.wikipedia.org/wiki/RSA加密演算法' target="_blank" onclick="return linkClick ('https://zh.wikipedia.org/wiki/RSA加密演算法')" >https://zh.wikipedia.org/wiki/RSA加密演算法</a></em>` ,
@@ -717,7 +718,7 @@ const infoDefine = [
717718 processing : '正在尝试连接QTGate代理服务器...' ,
718719 error : [ '错误:您的账号下已经有一个正在使用QTGate代理服务器的连接,请先把它断开后再尝试连接。' ,
719720 '错误:您的账号已经无可使用流量,如果您需要继续使用QTGate代理服务器,请升级您的账户类型。如果是免费用户已经使用当天100M流量,请等待到明天继续使用,如您是免费用户已经用完当月1G流量,请等待到下月继续使用。' ,
720- '错误:数据错误,请退出并重新启动QTGate!' ] ,
721+ '错误:数据错误,请退出并重新启动QTGate!' , '非常抱歉,您请求的代理区域无资源,请选择其他区域或稍后再试' , '对不起,您所请求连接的区域不支持这样的连接技术,请换其他连接方法或选择其他区域连接' ] ,
721722 connected : '已连接。' ,
722723 userType : [ '免费用户' , '付费用户' ] ,
723724 datatransferToday : '每日可使用流量限额:' ,
@@ -1043,6 +1044,7 @@ const infoDefine = [
10431044 } ,
10441045 home_index_view : {
10451046 newVersion : '新たなパージョンが用意しましたのでインストールをください。' ,
1047+ newVersionInstallLoading : '更新中お待ちください' ,
10461048 localIpAddress : 'ローカル' ,
10471049 clickInstall : 'インストール' ,
10481050 internetLable : 'Internet' ,
@@ -1141,7 +1143,8 @@ const infoDefine = [
11411143 processing : 'QTGateゲットウェイへ接続中...' ,
11421144 error : [ 'エラー:あなたのアカンウトに既にQTGateゲットウェイに接続しているクライアントがありますが、その接続を退出してからもう一度接続してください。' ,
11431145 'エラー:あなたのアカンウトにQTGateゲットウェイデータ通信制限になっております。もし引き続きご利用を頂きたいなら、アカンウトをアップグレードにしてください。フリーアカウントの場合は毎日100M、毎月1GBの通信制限があります。' ,
1144- 'エラー:データフォーマットエラー、QTGateをリスタートしてください。' ] ,
1146+ 'エラー:データフォーマットエラー、QTGateをリスタートしてください。' , 'ごめんなさい、ご請求したゲットウェイエリアは準備中です。そのたのエリアを選ぶか、後ほど接続をしてください。' ,
1147+ 'エラー:請求した接続方法はこのエリアに対応しておりません、他のエリアに変更するか他の接続方法へください。' ] ,
11451148 connected : '接続しました。' ,
11461149 userType : [ '無料ユーザー' , '月契約ユーザー' ] ,
11471150 datatransferToday : '毎日使える通信量:' ,
@@ -1441,6 +1444,7 @@ const infoDefine = [
14411444 } ,
14421445 home_index_view : {
14431446 newVersion : 'A new version is ready to install.' ,
1447+ newVersionInstallLoading : 'Updateing...' ,
14441448 localIpAddress : 'Local' ,
14451449 internetLable : 'Internet' ,
14461450 gateWayName : 'Gateway' ,
@@ -1538,7 +1542,8 @@ const infoDefine = [
15381542 processing : 'Try to connecting QTGate gateway...' ,
15391543 error : [ 'Error: Your account has a connection that is using the QTGate proxy server. Please disconnect it before attempting to connect again.' ,
15401544 'Error: Bandwidt maximum. If you want to continue using it, please upgrade your account. Free account have bandwidth is maximum of 100MB each day, 1 GB every month.' ,
1541- 'Error: Data format error. Please restart QTGate.' ] ,
1545+ 'Error: Data format error. Please restart QTGate.' , 'Error: This area have not resource. Please select other area or connect again late.' ,
1546+ 'Error: This area have not support this technogly. Please select other area, or change other connect type.' ] ,
15421547 connected : 'connected.' ,
15431548 userType : [ 'free' , 'Subscript' ] ,
15441549 datatransferToday : 'The limit of bandwidth each day.:' ,
@@ -1842,6 +1847,7 @@ const infoDefine = [
18421847 } ,
18431848 home_index_view : {
18441849 newVersion : '新版本準備就緒,請安裝!' ,
1850+ newVersionInstallLoading : '更新中請稍候' ,
18451851 localIpAddress : '本機' ,
18461852 clickInstall : '點擊安裝新版本' ,
18471853 internetLable : '互聯網' ,
@@ -1858,8 +1864,8 @@ const infoDefine = [
18581864 SystemAdministratorNickName : '暱稱或組織名(必填)' ,
18591865 KeypairLength : '請選擇加密通訊用密鑰對長度:這個數字越大,通訊越難被破解,但會增加通訊量和運算時間。' ,
18601866 systemAdministratorEmail : 'RSA密鑰生成' ,
1861- GenerateKeypair : '<em>系統正在生成用於通訊和簽名的RSA加密密鑰對,計算機需要運行產生大量的隨機數字有 ,可能需要幾分鐘時間,尤其是長度為4096的密鑰對,需要特別長的時間,請耐心等待。關於RSA加密算法的機制和原理,您可以訪問維基百科:' +
1862- `<a href='https://zh.wikipedia.org/wiki/RSA加密演算法 ' target="_blank" onclick="return linkClick ('https://zh.wikipedia.org/wiki/RSA加密演算法')">https://zh.wikipedia.org/wiki/RSA加密演算法</a></em>` ,
1867+ GenerateKeypair : '<em>系統正在生成用於通訊和簽名的RSA加密密鑰對,計算機需要運行產生大量的隨機數字 ,可能需要幾分鐘時間,尤其是長度為4096的密鑰對,需要特別長的時間,請耐心等待。關於RSA加密算法的機制和原理,您可以訪問維基百科:' +
1868+ `<a href='# ' target="_blank" onclick="return linkClick ('https://zh.wikipedia.org/wiki/RSA加密演算法')">https://zh.wikipedia.org/wiki/RSA加密演算法</a></em>` ,
18631869 inputEmail : '让我们来完成设定的最后几个步骤,首先生成RSA密鑰對, 它是您的系統信息加密,身份認證及和QTGate通訊使用的重要工具。 RSA密鑰對的密碼請妥善保存,Email地址欄應填入您的常用Email地址, 它將被用作您的QTGate賬號。<em style="color:red;">需注意的是QTGate.com域名在某些网络限制地区被列入屏蔽名单,如果您使用的是网络限制地区email服务,您将不能够完成设定QTGate设定。</em>' ,
18641870 accountEmailInfo : `由於QTGate域名在某些國家和地區被防火牆屏蔽,而不能正常收發QTGate的Email,如果您是處於防火牆內的用戶,建議使用防火牆外部的郵件服務商。`
18651871 } ,
@@ -1934,7 +1940,7 @@ const infoDefine = [
19341940 title : 'QTGate服務使用詳細' ,
19351941 processing : '正在嘗試连接QTGate代理服务器...' ,
19361942 error : [ '錯誤:您的賬號下已經有一個正在使用QTGate代理伺服器的連接,請先把它斷開後再嘗試連接。' , '錯誤:您的賬號已經無可使用流量,如果您需要繼續使用QTGate代理伺服器,請升級您的賬戶類型。如果是免費用戶已經使用當天100M流量,請等待到明天繼續使用,如您是免費用戶已經用完當月1G流量,請等待到下月繼續使用。' ,
1937- '錯誤:數據錯誤,請退出並重新啟動QTGate!' ] ,
1943+ '錯誤:數據錯誤,請退出並重新啟動QTGate!' , '非常抱歉,您請求的代理區域無資源,請選擇其他區域或稍後再試' , '對不起,您所請求連接的區域不支持這樣的連接技術,請換其他連接方法或選擇其他區域連接' ] ,
19381944 connected : '已連接。' ,
19391945 userType : [ '免費用戶' , '付費用戶' ] ,
19401946 datatransferToday : '當日可使用流量限額:' ,
@@ -2719,6 +2725,7 @@ var view_layout;
27192725 this . sendConnectRequestMail = ko . observable ( false ) ;
27202726 this . QTGateRegionERROR = ko . observable ( - 1 ) ;
27212727 this . LocalLanguage = 'up' ;
2728+ this . showActiveMail = ko . observable ( false ) ;
27222729 this . selectItem = ( that , site ) => {
27232730 const self = this ;
27242731 const tindex = lang [ self . tLang ( ) ] ;
@@ -2768,6 +2775,7 @@ var view_layout;
27682775 return ( check ) ;
27692776 } ) ;
27702777 this . disconnecting = ko . observable ( false ) ;
2778+ this . newVersionInstallLoading = ko . observable ( false ) ;
27712779 this . QTGateLocalProxyPort . subscribe ( newValue => {
27722780 this . localProxyPortError ( false ) ;
27732781 const num = parseInt ( newValue . toString ( ) ) ;
@@ -2881,6 +2889,9 @@ var view_layout;
28812889 this . showConformMailForm ( false ) ;
28822890 return this . showKeyPairInformation ( false ) ;
28832891 } ) ;
2892+ socketIo . on ( 'config' , config => {
2893+ this . config ( config ) ;
2894+ } ) ;
28842895 socketIo . on ( 'checkActiveEmailError' , ( err , status ) => {
28852896 if ( err !== null && err > - 1 ) {
28862897 this . conformTextError ( true ) ;
@@ -2924,6 +2935,7 @@ var view_layout;
29242935 }
29252936 */
29262937 if ( ! this . keyPair ( ) . verified ) {
2938+ this . showActiveMail ( true ) ;
29272939 const uu = this . emailPool ( ) . findIndex ( n => { return n . uuid === data . qtgateConnectImapAccount ; } ) ;
29282940 this . qtgateImapAccount ( uu ) ;
29292941 this . QTGateConnecting ( data . qtGateConnecting ) ;
@@ -2963,6 +2975,7 @@ var view_layout;
29632975 $ ( '.QTGateConnect' ) . accordion ( 'refresh' ) ;
29642976 return $ ( '#QTGateConnecting' ) . removeClass ( 'transition hidden' ) ;
29652977 }
2978+ this . showActiveMail ( false ) ;
29662979 const process = $ ( '#connectImformationProcess' ) ;
29672980 let percent = 0 ;
29682981 const doingProcessBar = ( ) => {
@@ -2997,18 +3010,36 @@ var view_layout;
29973010 }
29983011 if ( data . qtGateConnecting === 2 ) {
29993012 socketIo . emit ( 'getAvaliableRegion' , ( region ) => {
3000- _QTGateRegions . forEach ( n => {
3013+ this . QTGateRegions ( ) . forEach ( n => {
30013014 const index = region . findIndex ( nn => { return nn === n . qtRegion ; } ) ;
30023015 if ( index < 0 )
30033016 return n . available ( false ) ;
30043017 return n . available ( true ) ;
30053018 } ) ;
3019+ this . QTGateRegions . sort ( ( a , b ) => {
3020+ if ( a . available ( ) === b . available ( ) )
3021+ return 0 ;
3022+ if ( b . available ( ) && ! a . available ( ) ) {
3023+ return 1 ;
3024+ }
3025+ return - 1 ;
3026+ } ) ;
30063027 } ) ;
30073028 }
30083029 this . QTGateRegionInfo ( false ) ;
30093030 //$('.mainAccordion').accordion('refresh')
30103031 return this . QTGateConnectActive ( false ) ;
30113032 } ) ;
3033+ // gateway disconnect!
3034+ socketIo . on ( 'disconnect' , ( ) => {
3035+ this . disconnecting ( true ) ;
3036+ if ( this . selectedQTGateRegion ( ) ) {
3037+ this . selectedQTGateRegion ( ) . showConnectedArea ( false ) ;
3038+ this . ConnectGatewayShow ( false ) ;
3039+ this . disconnecting ( false ) ;
3040+ this . selectedQTGateRegionCancel ( ) ;
3041+ }
3042+ } ) ;
30123043 socketIo . on ( 'QTGateGatewayConnectRequest' , data => {
30133044 this . QTGateGatewayConnectRequestCallBack ( this , data ) ;
30143045 } ) ;
@@ -3026,6 +3057,7 @@ var view_layout;
30263057 return this . MakeNotify ( note , 'Success' , 'success' , addNote , 5000 ) ;
30273058 }
30283059 newVersionInstall ( ) {
3060+ this . newVersionInstallLoading ( true ) ;
30293061 return socketIo . emit ( 'newVersionInstall' ) ;
30303062 }
30313063 deletePasswordNext ( ) {
0 commit comments