-
Notifications
You must be signed in to change notification settings - Fork 50
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 #52 from cmushroom/dev
2.3.0
- Loading branch information
Showing
62 changed files
with
1,543 additions
and
1,573 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": 16, | ||
"latestVersion": "2.2.0", | ||
"latestVersionNum": 17, | ||
"latestVersion": "2.3.0", | ||
"updateType": "hint", | ||
"releaseNotes": "1. 查询key 分页列表时, 总数量使用异步查询,列表快速返回 #36 \n2. 增加lua脚本执行功能。" | ||
"releaseNotes": "1. 使用reids 连接池。 \n2. table通用组件支持拷贝行数据, 右键菜单添加快捷键。 #49 \n3. 文本框禁用情况下支持选中复制 #49。 \n4. 表格拖动排序问题修复。 \n5. 点击一个失败的链接,正常redis服务器也无法登录bug修复 #48。 \n6. redis client 重构。" | ||
} |
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
+171 KB
(120%)
...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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,50 @@ | ||
// | ||
// TableContextMenuEnum.swift | ||
// redis-pro | ||
// | ||
// Created by chengpan on 2022/8/20. | ||
// | ||
|
||
import Foundation | ||
import Cocoa | ||
|
||
enum TableContextMenu: String{ | ||
case DELETE = "Delete" | ||
case EDIT = "Edit" | ||
|
||
// copy | ||
case COPY = "Copy" | ||
case COPY_SCORE = "Copy Score" | ||
case COPY_FIELD = "Copy Field" | ||
case COPY_VALUE = "Copy Value" | ||
|
||
// key list | ||
case RENAME = "Rename" | ||
// client list | ||
case KILL = "Kill" | ||
|
||
var ext: TableContextMenuExt { | ||
switch self { | ||
case .DELETE: | ||
return .init(keyEquivalent: String(Unicode.Scalar(NSBackspaceCharacter)!)) | ||
case .EDIT: | ||
return .init(keyEquivalent: "e") | ||
case .COPY: | ||
return .init(keyEquivalent: "c") | ||
case .COPY_SCORE: | ||
return .init(keyEquivalent: "") | ||
case .COPY_FIELD: | ||
return .init(keyEquivalent: "") | ||
case .COPY_VALUE: | ||
return .init(keyEquivalent: "") | ||
case .RENAME: | ||
return .init(keyEquivalent: "") | ||
case .KILL: | ||
return .init(keyEquivalent: "k") | ||
} | ||
} | ||
} | ||
|
||
struct TableContextMenuExt { | ||
var keyEquivalent: String | ||
} |
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,19 @@ | ||
// | ||
// PasteboardHelper.swift | ||
// redis-pro | ||
// | ||
// Created by chengpan on 2022/8/20. | ||
// | ||
|
||
import Foundation | ||
import Cocoa | ||
|
||
class PasteboardHelper { | ||
|
||
static func copy(_ value: String) { | ||
let pasteboard = NSPasteboard.general | ||
pasteboard.clearContents() | ||
pasteboard.setString(value, forType: .string) | ||
} | ||
|
||
} |
Oops, something went wrong.