Skip to content

Commit f3e043e

Browse files
Merge pull request #69 from quick123official/feature/command_line_prompt
点击 tab 支持命令提示
2 parents 8f3724b + dfbb433 commit f3e043e

File tree

9 files changed

+29
-28
lines changed

9 files changed

+29
-28
lines changed

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ electron_mirror "https://npm.taobao.org/mirrors/electron/"
66
sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/"
77
profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/"
88
chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver"
9+
yarn-offline-mirror

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"redux": "^4.0.5",
104104
"redux-thunk": "^2.3.0",
105105
"run-electron": "^1.0.0",
106-
"terminal-in-react": "^4.3.1"
106+
"terminal-in-react-quick123": "^4.3.5"
107107
},
108108
"browserslist": {
109109
"production": [

public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"CheckUpdateService.end00": "#### CheckUpdateService ####",
100100

101101
"HostTerminal.start": "#### HostTerminal ####",
102-
"HostTerminal.descriptions.msg": "Type help to view the help info. Redis command document: http://www.redis.cn/commands.html?from=QuickRedis",
102+
"HostTerminal.descriptions.msg": "Click the tab key to display the command usage method. Redis command reference document: https://redis.io/commands?from=QuickRedis",
103103
"HostTerminal.end00": "#### HostTerminal ####",
104104

105105
"ResourceTree.start": "#### ResourceTree ####",

public/locales/vi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"CheckUpdateService.end00": "#### CheckUpdateService ####",
100100

101101
"HostTerminal.start": "#### HostTerminal ####",
102-
"HostTerminal.descriptions.msg": "Nhập help để xem thông tin trợ giúp. Tài liệu lệnh của Redis: http://www.redis.cn/commands.html?from=QuickRedis",
102+
"HostTerminal.descriptions.msg": "Nhấp vào phím tab để hiển thị phương pháp sử dụng lệnh. Tài liệu tham khảo lệnh Redis: https://redis.io/commands?from=QuickRedis",
103103
"HostTerminal.end00": "#### HostTerminal ####",
104104

105105
"ResourceTree.start": "#### ResourceTree ####",

public/locales/zh-CN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"CheckUpdateService.end00": "#### CheckUpdateService ####",
100100

101101
"HostTerminal.start": "#### HostTerminal ####",
102-
"HostTerminal.descriptions.msg": "输入 help 以查看帮助信息。Redis命令文档:http://www.redis.cn/commands.html?from=QuickRedis",
102+
"HostTerminal.descriptions.msg": "点击 tab 键会出现命令使用方法。Redis命令参考文档: https://redis.io/commands?from=QuickRedis",
103103
"HostTerminal.end00": "#### HostTerminal ####",
104104

105105
"ResourceTree.start": "#### ResourceTree ####",

public/locales/zh-TW.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"CheckUpdateService.end00": "#### CheckUpdateService ####",
100100

101101
"HostTerminal.start": "#### HostTerminal ####",
102-
"HostTerminal.descriptions.msg": "輸入 help 以查看幫助信息。Redis命令文檔:http://www.redis.cn/commands.html?from=QuickRedis",
102+
"HostTerminal.descriptions.msg": "點擊 tab 鍵會出現命令使用方法。Redis命令參考文檔: https://redis.io/commands?from=QuickRedis",
103103
"HostTerminal.end00": "#### HostTerminal ####",
104104

105105
"ResourceTree.start": "#### ResourceTree ####",

src/__test_/lodash.test.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1+
var lodash = require("lodash");
12
test("lodash", () => {
2-
let dbIndexMap = new Map();
3-
dbIndexMap.set(1, {
4-
key: "" + 1,
5-
dbIndex: 1,
6-
title: 1,
7-
total: 0,
8-
});
9-
dbIndexMap.set(20, {
10-
key: "" + 1,
11-
dbIndex: 20,
12-
title: 1,
13-
total: 0,
14-
});
15-
for ([key, value] of dbIndexMap) {
16-
if (value.dbIndex >= 16) {
17-
console.info("", key, value);
18-
}
19-
}
3+
const arr = [{
4+
label: 'All',
5+
value: 'All'
6+
}, {
7+
label: 'All',
8+
value: 'All'
9+
}, {
10+
label: 'Alex',
11+
value: 'Ninja'
12+
}, {
13+
label: 'Bill',
14+
value: 'Op'
15+
}, {
16+
label: 'Cill',
17+
value: 'iopop'
18+
}];
19+
lodash.uniqWith();
2020
});

src/pages/HostTerminal/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from "react";
2-
import Terminal from "terminal-in-react";
2+
import Terminal from "terminal-in-react-quick123";
33
import RedisCommand from "@/utils/RedisCommand";
44
import intl from "react-intl-universal";
55
/**

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12529,10 +12529,10 @@ temp-file@^3.4.0:
1252912529
async-exit-hook "^2.0.1"
1253012530
fs-extra "^10.0.0"
1253112531

12532-
terminal-in-react@^4.3.1:
12533-
version "4.3.1"
12534-
resolved "https://registry.nlark.com/terminal-in-react/download/terminal-in-react-4.3.1.tgz#a2e236a1e9a77fd6951bec70227aa96a1b9477c4"
12535-
integrity sha1-ouI2oemnf9aVG+xwInqpahuUd8Q=
12532+
terminal-in-react-quick123@^4.3.5:
12533+
version "4.3.5"
12534+
resolved "https://registry.npmjs.org/terminal-in-react-quick123/-/terminal-in-react-quick123-4.3.5.tgz#fb2070646f5a061e29414328cec1b8273b476fef"
12535+
integrity sha512-9rE7E2hWG6oBJqvADXM1mpvZlYe2kViwSW7KMiHSNaXgYQwmjZaO4SyMVp3C6DYqYDp76MGF9pZkFGWHEbF0Gw==
1253612536
dependencies:
1253712537
lodash.camelcase "^4.3.0"
1253812538
lodash.isequal "^4.5.0"

0 commit comments

Comments
 (0)