Skip to content

Commit 541771c

Browse files
peterpeter
authored andcommitted
v1.3.3
1 parent ec1a26c commit 541771c

11 files changed

Lines changed: 39 additions & 34 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
## Download 下載 ダウンロード
77

8-
### [The latest 最新版 v1.3.2](https://github.com/QTGate/QTGate-Desktop-Client/releases/latest/)
8+
### [The latest 最新版 v1.3.3](https://github.com/QTGate/QTGate-Desktop-Client/releases/latest/)
99

10-
[windows32](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.2/qtgate.Setup.1.3.2.ia32.exe)
10+
[windows32](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.3/qtgate.Setup.1.3.3.ia32.exe)
1111

12-
[windows64](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.2/qtgate.Setup.1.3.2.exe)
12+
[windows64](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.3/qtgate.Setup.1.3.3.exe)
1313

14-
[MacOS](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.2/qtgate-1.3.2.dmg)
14+
[MacOS](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.3/qtgate-1.3.3.dmg)
1515

16-
[Linux deb](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.2/qtgate_1.3.2_amd64.deb)
16+
[Linux deb](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.3/qtgate_1.3.3_amd64.deb)
1717

18-
[Linux pacman](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.2/qtgate-1.3.2.pacman)
18+
[Linux pacman](https://github.com/QTGate/QTGate-Desktop-Client/releases/download/v1.3.3/qtgate-1.3.3.pacman)
1919

2020
## Description 項目概要
2121

app/ImapConnect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
import * as Imap from './imap'
1919
import * as Encrypt from './encrypt'
2020
import localServer from './localServer'
21-
import * as Async from 'async'
2221
import * as Util from 'util'
22+
import * as Async from 'async'
2323
import * as SaveLog from './saveLog'
2424
const saveLog = SaveLog.saveLog
2525

app/encrypt.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ import * as Async from 'async'
55
import * as Http from 'http'
66
import * as Https from 'https'
77
import * as Net from 'net'
8-
const openpgp = require ( 'openpgp' )
98
import * as Crypto from 'crypto'
10-
const keyServer = 'https://pgp.mit.edu'
9+
import * as SaveLog from './saveLog'
10+
1111
const QTGateSignKeyID = /3acbe3cbd3c1caa9/i
12+
const openpgp = require ( 'openpgp' )
13+
const keyServer = 'https://pgp.mit.edu'
14+
15+
const QTGateFolder = Path.join ( Os.homedir(), '.QTGate' )
16+
const configPath = Path.join ( QTGateFolder, 'config.json' )
1217

13-
declare const feedbackFilePath
14-
declare const saveLog
15-
declare const testPingTimes
16-
declare const port
17-
declare const remote
18+
const feedbackFilePath = Path.join ( QTGateFolder,'.feedBack.json')
19+
20+
const testPingTimes = 5
21+
const saveLog = SaveLog.saveLog
1822

1923
export const encryptWithKey = ( data: string, targetKey: string, privateKey: string, password: string, CallBack ) => {
2024
if (!data || !data.length || !targetKey || !targetKey.length || !privateKey || !privateKey.length ) {
@@ -364,10 +368,6 @@ export const InitConfig = ( first: boolean, version, port ) => {
364368
return ret
365369
}
366370

367-
export const _doUpdate = ( tag: string ) => {
368-
saveLog ( `_doUpdate tag = [${ tag }]` )
369-
remote.getCurrentWindow()._doUpdate ( tag, port )
370-
}
371371

372372
export const checkKey = ( keyID: string, CallBack ) => {
373373
const hkp = new openpgp.HKP( keyServer )

app/imapClass.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
*/
1717

1818
import * as Imap from './imap'
19-
import * as Async from 'async'
2019
import * as Net from 'net'
20+
import * as Async from 'async'
2121
import * as Crypto from 'crypto'
2222
import * as Stream from 'stream'
2323
import * as Dns from 'dns'

app/localServer.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,20 +326,19 @@ export default class localServer {
326326

327327
return this.QTClass.request ( com, ( err: number, res: QTGateAPIRequestCommand ) => {
328328
if ( err ) {
329-
console.log ( err )
330-
return saveLog ( 'getAvaliableRegion QTClass.request callback error! STOP')
329+
return saveLog ( `getAvaliableRegion QTClass.request callback error! STOP [${ err }]`)
331330
}
332331
if ( res && res.dataTransfer && res.dataTransfer.productionPackage ) {
333332
this.config.freeUser = /free/i.test ( res.dataTransfer.productionPackage )
334333
}
335-
334+
saveLog (`getAvaliableRegion got return Args [0] [${ JSON.stringify ( res.Args[0] )}]`)
336335
CallBack ( res.Args[0], res.dataTransfer, this.config )
337336

338337
// Have gateway connect!
339338
this.saveConfig ()
340339

341340
if ( res.Args[ 1 ]) {
342-
341+
saveLog (`getAvaliableRegion got return Args [1] [${ JSON.stringify ( res.Args[1] )}]`)
343342
if ( ! this.proxyServer || ! this.connectCommand ) {
344343
const arg: IConnectCommand[] = this.connectCommand = res.Args[1]
345344
arg.forEach ( n => {
@@ -349,7 +348,7 @@ export default class localServer {
349348
}
350349
return socket.emit ( 'QTGateGatewayConnectRequest', -1, res.Args[ 1 ] )
351350
}
352-
351+
saveLog (`getAvaliableRegion got return Args [2] [${ JSON.stringify ( res.Args[2] )}]`)
353352
this.regionV1 = res.Args[2]
354353
})
355354
})
@@ -895,7 +894,7 @@ export default class localServer {
895894

896895
socket.once ( 'newVersionInstall', ( CallBack: any ) => {
897896
if ( this.config.newVerReady )
898-
return Encrypto._doUpdate ( this.config.newVersion )
897+
return _doUpdate ( this.config.newVersion, this.port )
899898
})
900899

901900
socket.on ( 'checkPemPassword', ( password: string, callBack: any ) => {
@@ -1600,4 +1599,10 @@ export default class localServer {
16001599
this.httpServer.close ()
16011600
}
16021601

1602+
}
1603+
1604+
1605+
const _doUpdate = ( tag: string, port: number ) => {
1606+
saveLog ( `_doUpdate tag = [${ tag }]` )
1607+
remote.getCurrentWindow()._doUpdate ( tag, port )
16031608
}

app/public/scripts/twitter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,18 +584,18 @@ module twitter_layout {
584584
}
585585
this.showAccountMenu ( true )
586586
this.bottomEventLoader ( true )
587-
/*
587+
588588
this.requestNewTimelinesCount = 0
589589
setTimeout (() => {
590590
this.bottomEventLoader ( false )
591591
}, 1000 * 120 )
592592
this.showCurrentTimelines ( true )
593593
this.currentTimelines([])
594-
/*
594+
595595
return socketIo.emit ( 'getTimelines', this.twitterData()[0], err => {
596596
return this.getTimeLineCallBack ( err )
597597
})
598-
*/
598+
599599
}
600600

601601
public getTimeLineCallBack ( err: Error[] ) {

app/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const SaveLog = require("./saveLog");
66
const localServer_1 = require("./localServer");
77
const { remote } = require('electron');
88
const QTGatePongReplyTime = 1000 * 30;
9-
const testPingTimes = 5;
109
let mainWindow = null;
1110
const reqtestTimeOut = 1000 * 30;
1211
const port = remote.getCurrentWindow().rendererSidePort;

app/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import serviceServer from './serviceServer'
2323
const { remote } = require ( 'electron' )
2424

2525
const QTGatePongReplyTime = 1000 * 30
26-
const testPingTimes = 5
26+
2727
let mainWindow = null
2828

2929
const reqtestTimeOut = 1000 * 30

app/twitter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,15 +687,16 @@ export default class twitter1 {
687687
error: null,
688688
requestSerial: Crypto.randomBytes( 10 ).toString ( 'hex' )
689689
}
690+
/*
690691
Imap.imapGetMediaFilesFromString ( this.localServer.QTClass.imapData, postData.videoFileName, QTGateVideo, ( err1, data ) => {
691692
if ( err1 ) {
692693
saveLog ( `Imap.imapGetMediaFilesFromString got error [${ err }]`)
693694
}
694695
saveLog ( `Imap.imapGetMediaFilesFromString success! [${ data }]`)
695696
})
696-
/*
697-
return this.localServer.QTClass.request ( com, Callback )
698697
*/
698+
return this.localServer.QTClass.request ( com, Callback )
699+
699700
}
700701
if ( postData.images && postData.images.length ) {
701702
return this.QT_PictureMediaUpload ( postData, post )

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)