Skip to content

Commit

Permalink
redis console optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
qishibo committed Apr 19, 2019
1 parent b6afc8c commit c160743
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pack/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "another-redis-manager",
"version": "1.1.3",
"version": "1.1.4",
"description": "A faster, better and more stable redis desktop manager.",
"author": "qii404.me",
"private": true,
Expand Down
10 changes: 7 additions & 3 deletions src/components/CliConsole.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<template>
<el-dialog class="cli-dailog" width="90%" :title="consoleTitle()" @opened="openConsole" :visible.sync="cliDialog.visible">
<el-dialog class="cli-dailog" fullscreen="true" :title="consoleTitle()" @opened="openConsole" :visible.sync="cliDialog.visible">
<el-form @submit.native.prevent>

<el-form-item>
<el-input id="cli-content" type="textarea" v-model="cliContent.content" rows=18 :disabled="true" class="cli-content-textarea"></el-input>
<el-input id="cli-content" type="textarea" v-model="cliContent.content" rows='25' :disabled="true" class="cli-content-textarea"></el-input>

<el-autocomplete
class="input-suggestion"
autocomplete="off"
v-model="cliContent.params"
:fetch-suggestions="inputSuggestion"
placeholder=""
:placeholder="$t('message.enter_to_exec')"
:select-when-unmatched="true"
:trigger-on-focus="false"
@keyup.enter.native="consoleExec"
Expand Down Expand Up @@ -227,6 +227,10 @@ export default {
border-radius: 0 0 4px 4px;
}

.input-suggestion input::-webkit-input-placeholder {
color: #8a8b8e;
}

#cli-content {
color: #babdc1;
background: #263238;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Connections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default {
// dbs: [...Array(16).keys()],
dbs: {},
connections: [],
keysPageSize: 20,
keysPageSize: 50,
connectionPool: {},
openedStatus: {},
selectedDbIndex: {},
Expand Down
1 change: 1 addition & 0 deletions src/i18n/langs/cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const cn = {
open: '打开',
open_new_tab: '新窗口打开',
exact_search: '精确搜索',
enter_to_exec: '输入Redis命令后,按Enter键执行',
},
};

Expand Down
1 change: 1 addition & 0 deletions src/i18n/langs/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const en = {
open: 'Open',
open_new_tab: 'Open In New Tab',
exact_search: 'Exact Search',
enter_to_exec: 'Press Enter To Execute Redis Commands',
},
};

Expand Down

0 comments on commit c160743

Please sign in to comment.