-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from cmushroom/dev
2.5.1
- Loading branch information
Showing
34 changed files
with
420 additions
and
684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"latestVersionNum": 19, | ||
"latestVersion": "2.5.0", | ||
"latestVersionNum": 20, | ||
"latestVersion": "2.5.1", | ||
"updateType": "hint", | ||
"releaseNotes": "1. 解决失焦后重新获取焦点tab切换问题,同时解决了最小化到dock唤起的问题 #55 #38。 \n2. 增加用户名登录。" | ||
"releaseNotes": "1. 修复低版本用户名问题。" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// RedisClientBaseTest.swift | ||
// Tests | ||
// | ||
// Created by chengpan on 2022/12/3. | ||
// | ||
|
||
import XCTest | ||
|
||
open class RedisBaseTest: XCTestCase { | ||
open var redisHostname: String { | ||
return ProcessInfo.processInfo.environment["REDIS_HOST"] ?? "localhost" | ||
} | ||
|
||
open var redisPort: Int { | ||
return Int(ProcessInfo.processInfo.environment["REDIS_PORT"] ?? "6379")! | ||
} | ||
|
||
open var redisUsername: String? { | ||
return ProcessInfo.processInfo.environment["REDIS_USERNAME"] | ||
} | ||
|
||
open var redisPassword: String? { | ||
return ProcessInfo.processInfo.environment["REDIS_PW"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// RedisClientBaseTests.swift | ||
// Tests | ||
// | ||
// Created by chengpan on 2022/12/3. | ||
// | ||
|
||
@testable import redis_pro | ||
import XCTest | ||
import Foundation | ||
import Logging | ||
|
||
open class RedisClientBaseTest: RedisBaseTest { | ||
let logger = Logger(label: "redis-client-test") | ||
|
||
var redisClient: RediStackClient! | ||
|
||
open override func setUp() { | ||
logger.info("redis client base test setUp...") | ||
redisClient = .init(RedisModel(host: redisHostname, port: redisPort, username: redisUsername, password: redisPassword)) | ||
// let conn = try await redisClient.initConn(host: redisHostname, port: redisPort, username: redisUsername ?? "", pass: redisPassword ?? "", database: 0) | ||
} | ||
|
||
/// Sends a "FLUSHALL" command to Redis to clear it of any data from the previous test, then closes the connection. | ||
/// | ||
/// If any steps fail, a `fatalError` is thrown. | ||
/// | ||
/// See `XCTest.XCTestCase.tearDown()` | ||
open override func tearDown() { | ||
// Task { | ||
// await redisClient.flushDB() | ||
// } | ||
|
||
redisClient.close() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// RedisClent.swift | ||
// Tests | ||
// | ||
// Created by chengpan on 2022/12/3. | ||
// | ||
|
||
@testable import redis_pro | ||
import XCTest | ||
import Foundation | ||
|
||
class RedisClentStringTest: RedisClientBaseTest { | ||
let key = "redis_client_test_key" | ||
let value = "redis_client_test_value" | ||
|
||
func testSetKey() async { | ||
await redisClient.set(key, value: value) | ||
} | ||
|
||
func testGetKey() async { | ||
await testSetKey() | ||
let r = await redisClient.get(key) | ||
|
||
logger.info("redis client test get key, r: \(r)") | ||
XCTAssertEqual(value, r) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+49.8 KB
(110%)
...deproj/project.xcworkspace/xcuserdata/chengpan.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// AbountCommand.swift | ||
// redis-pro | ||
// | ||
// Created by chengpan on 2022/12/3. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
struct AboutCommands: View { | ||
|
||
@Environment(\.openURL) var openURL | ||
var body: some View { | ||
Button("About") { | ||
guard let url = URL(string: "redis-pro:https://AboutView") else { | ||
return | ||
} | ||
openURL(url) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// CheckUpdateCommand.swift | ||
// redis-pro | ||
// | ||
// Created by chengpan on 2022/12/3. | ||
// | ||
|
||
import SwiftUI | ||
import Foundation | ||
|
||
struct CheckUpdateCommands: View { | ||
var body: some View { | ||
Button("Check Update") { | ||
VersionManager().checkUpdate(isNoUpgradeHint: true) | ||
} | ||
} | ||
} |
Oops, something went wrong.