@@ -188,7 +188,7 @@ const planArray = [
188188 showButton : ko . observable ( false ) ,
189189 features : [ {
190190 title : [ '代理区域' , 'エリア' , 'Region' , '代理區域' ] ,
191- detail : [ '巴黎 ' , 'パリ ' , 'Paris ' , '巴黎 ' ] ,
191+ detail : [ '欧洲2区域 ' , 'ヨーロッパ 2 エリア ' , '2 regions in Europe ' , '歐洲2區域 ' ] ,
192192 } , {
193193 title : [ '服务器' , 'サーバー' , 'Server' , '伺服器' ] ,
194194 detail : [ '共享' , '共有' , 'Share' , '共享' ] ,
@@ -567,7 +567,7 @@ const infoDefine = [
567567
568568 linuxUpdate :{
569569 newVersionDownload : '点击这里下载并安装' ,
570- step1 : '下载新版本 ' ,
570+ step1 : '请更新版本: ' ,
571571 step2 : '授权新版本CoNET为可执行文件' ,
572572 step2J1 :'/images/linuxUpdate1_tw.jpg' ,
573573 step2J2 :'/images/linuxUpdate2_tw.jpeg' ,
@@ -1365,7 +1365,7 @@ const infoDefine = [
13651365
13661366 linuxUpdate :{
13671367 newVersionDownload : 'クリックしてダウンロードとインストール' ,
1368- step1 :'ダウンロードニューバージョン ' ,
1368+ step1 :'最新バージョンにアップデート: ' ,
13691369 step2 : 'CoNETを実行ファイルに許可与える。' ,
13701370 step2J1 :'/images/linuxUpdate1_jp.jpg' ,
13711371 step2J2 :'/images/linuxUpdate2_jp.jpg' ,
@@ -2060,7 +2060,7 @@ const infoDefine = [
20602060
20612061 linuxUpdate :{
20622062 newVersionDownload : 'click here to download and install!' ,
2063- step1 :'Download latest CoNET version. ' ,
2063+ step1 :'Update new CoNET: ' ,
20642064 step2 : 'Allow executing file as program' ,
20652065 step2J1 :'/images/linuxUpdate1.jpg' ,
20662066 step2J2 :'/images/linuxUpdate2.jpeg' ,
@@ -2700,7 +2700,7 @@ const infoDefine = [
27002700
27012701 linuxUpdate : {
27022702 newVersionDownload : '點擊這裡下載並安裝' ,
2703- step1 :'下載新版本 ' ,
2703+ step1 :'請更新版本: ' ,
27042704 step2 : '授權新版本CoNET為可執行文件' ,
27052705 step2J1 :'/images/linuxUpdate1_tw.jpg' ,
27062706 step2J2 :'/images/linuxUpdate2_tw.jpeg' ,
@@ -2979,6 +2979,23 @@ const linkClick = function ( url: string ) {
29792979 return window . open ( url , '_blank' )
29802980}
29812981
2982+ function cmpVersions ( a : string , b : string ) {
2983+ let diff
2984+ const regExStrip0 = / ( \. 0 + ) + $ /
2985+ const segmentsA = a . replace ( regExStrip0 , '' ) . split ( '.' )
2986+ const segmentsB = b . replace ( regExStrip0 , '' ) . split ( '.' )
2987+ const l = Math . min ( segmentsA . length , segmentsB . length )
2988+
2989+ for ( let i = 0 ; i < l ; i ++ ) {
2990+ diff = parseInt ( segmentsA [ i ] , 10 ) - parseInt ( segmentsB [ i ] , 10 )
2991+ if ( diff ) {
2992+ return diff
2993+ }
2994+ }
2995+ return segmentsA . length - segmentsB . length ;
2996+ }
2997+
2998+
29822999const socketIo = io ( { reconnectionAttempts : 5 , timeout : 500 , autoConnect : true } )
29833000const QTGateRegionsSetup : IQTGateRegionsSetup [ ] = [
29843001 {
0 commit comments