From df5a5779190efb5634c161a5975ca9b150cc64aa Mon Sep 17 00:00:00 2001
From: Lykin <137850705+tiny-craft@users.noreply.github.com>
Date: Tue, 2 Jan 2024 16:12:40 +0800
Subject: [PATCH] style: adjust button style
---
README.md | 1 +
README_zh.md | 1 +
.../src/components/common/FileSaveInput.vue | 6 +-
.../components/common/RedisTypeSelector.vue | 5 ++
.../content_value/ContentEntryEditor.vue | 2 +-
.../content_value/ContentMonitor.vue | 26 ++++++--
.../content_value/ContentSearchInput.vue | 1 +
.../content_value/ContentValueString.vue | 2 +-
.../src/components/icons/ListCheckbox.vue | 63 -------------------
frontend/src/components/icons/Plus.vue | 4 +-
frontend/src/langs/en-us.json | 2 +-
frontend/src/langs/zh-cn.json | 2 +-
frontend/src/utils/theme.js | 2 +
13 files changed, 41 insertions(+), 76 deletions(-)
delete mode 100644 frontend/src/components/icons/ListCheckbox.vue
diff --git a/README.md b/README.md
index dc799da..c83b579 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,7 @@
[![License](https://img.shields.io/github/license/tiny-craft/tiny-rdm)](https://github.com/tiny-craft/tiny-rdm/blob/main/LICENSE)
[![GitHub release](https://img.shields.io/github/release/tiny-craft/tiny-rdm)](https://github.com/tiny-craft/tiny-rdm/releases)
+![GitHub All Releases](https://img.shields.io/github/downloads/tiny-craft/tiny-rdm/total)
[![GitHub stars](https://img.shields.io/github/stars/tiny-craft/tiny-rdm)](https://github.com/tiny-craft/tiny-rdm/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/tiny-craft/tiny-rdm)](https://github.com/tiny-craft/tiny-rdm/fork)
[![Discord](https://img.shields.io/discord/1170373259133456434?label=Discord&color=5865F2)](https://discord.gg/VTFbBMGjWh)
diff --git a/README_zh.md b/README_zh.md
index d53890c..4f2d516 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -7,6 +7,7 @@
[![License](https://img.shields.io/github/license/tiny-craft/tiny-rdm)](https://github.com/tiny-craft/tiny-rdm/blob/main/LICENSE)
[![GitHub release](https://img.shields.io/github/release/tiny-craft/tiny-rdm)](https://github.com/tiny-craft/tiny-rdm/releases)
+![GitHub All Releases](https://img.shields.io/github/downloads/tiny-craft/tiny-rdm/total)
[![GitHub stars](https://img.shields.io/github/stars/tiny-craft/tiny-rdm)](https://github.com/tiny-craft/tiny-rdm/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/tiny-craft/tiny-rdm)](https://github.com/tiny-craft/tiny-rdm/fork)
[![Discord](https://img.shields.io/discord/1170373259133456434?label=Discord&color=5865F2)](https://discord.gg/VTFbBMGjWh)
diff --git a/frontend/src/components/common/FileSaveInput.vue b/frontend/src/components/common/FileSaveInput.vue
index 45427fd..3178dc4 100644
--- a/frontend/src/components/common/FileSaveInput.vue
+++ b/frontend/src/components/common/FileSaveInput.vue
@@ -33,12 +33,12 @@ const handleSaveFile = async () => {
+ @clear="onClear"
+ @input="onInput" />
...
diff --git a/frontend/src/components/common/RedisTypeSelector.vue b/frontend/src/components/common/RedisTypeSelector.vue
index 9cdddf2..a18ed85 100644
--- a/frontend/src/components/common/RedisTypeSelector.vue
+++ b/frontend/src/components/common/RedisTypeSelector.vue
@@ -10,6 +10,10 @@ const props = defineProps({
type: String,
default: 'ALL',
},
+ placement: {
+ type: String,
+ default: 'bottom-start',
+ },
})
const emit = defineEmits(['update:value', 'select'])
@@ -80,6 +84,7 @@ const handleSelect = (select) => {
{
:border="true"
:content="displayValue"
:language="viewLanguage"
- :show-line-num="prefStore.showLineNum"
:show-folding="prefStore.showFolding"
+ :show-line-num="prefStore.showLineNum"
class="flex-item-expand"
@input="onInput"
@reset="onInput"
diff --git a/frontend/src/components/content_value/ContentMonitor.vue b/frontend/src/components/content_value/ContentMonitor.vue
index fc6dc6d..c2936ed 100644
--- a/frontend/src/components/content_value/ContentMonitor.vue
+++ b/frontend/src/components/content_value/ContentMonitor.vue
@@ -107,7 +107,7 @@ const onCleanLog = () => {
-
+
{
{{ $t('monitor.stop') }}
-
-
+
+
-
+
diff --git a/frontend/src/components/content_value/ContentSearchInput.vue b/frontend/src/components/content_value/ContentSearchInput.vue
index 17f035f..658a41e 100644
--- a/frontend/src/components/content_value/ContentSearchInput.vue
+++ b/frontend/src/components/content_value/ContentSearchInput.vue
@@ -130,6 +130,7 @@ defineExpose({
:size="small ? 16 : 20"
border
small
+ stroke-width="4"
t-tooltip="interface.full_search"
@click="onFullSearch" />
diff --git a/frontend/src/components/content_value/ContentValueString.vue b/frontend/src/components/content_value/ContentValueString.vue
index 77868da..9717c06 100644
--- a/frontend/src/components/content_value/ContentValueString.vue
+++ b/frontend/src/components/content_value/ContentValueString.vue
@@ -213,8 +213,8 @@ defineExpose({
:content="displayValue"
:language="viewLanguage"
:loading="props.loading"
- :show-line-num="prefStore.showLineNum"
:show-folding="prefStore.showFolding"
+ :show-line-num="prefStore.showLineNum"
class="flex-item-expand"
style="height: 100%"
@input="onInput"
diff --git a/frontend/src/components/icons/ListCheckbox.vue b/frontend/src/components/icons/ListCheckbox.vue
deleted file mode 100644
index f1d38f0..0000000
--- a/frontend/src/components/icons/ListCheckbox.vue
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
diff --git a/frontend/src/components/icons/Plus.vue b/frontend/src/components/icons/Plus.vue
index 58d0670..e41d29d 100644
--- a/frontend/src/components/icons/Plus.vue
+++ b/frontend/src/components/icons/Plus.vue
@@ -11,13 +11,13 @@ const props = defineProps({