Skip to content

Commit

Permalink
feat: 新增自定义模式 调整细节逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
YasinChan committed Jan 14, 2024
1 parent e6c22fa commit 98a8846
Show file tree
Hide file tree
Showing 8 changed files with 483 additions and 13 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@
整个项目包含前端和后端,前端使用 Vue3 + Vite,后端使用 Nodejs + Koa2 + Leancloud。该项目是前端部分,后端也将在未来开源。

### 2024.1.14
- 新增自定义模式
### 2024.1.13
- 新增计时模式
- 增加大写键开启提示
### 2024.1.2
- 新增右下角建议反馈功能
### 2023.12.27 更新
- 实现输入回放功能
### 2023.12.20 更新
- 新增限时模式
### 2023.12.10 更新
- 新增 mac 键位适配
- 键盘测试新增 mac 键位适配
### 2023.7.20 更新
- 实现键盘测试功能
### 2023.7.17 更新
Expand Down
17 changes: 13 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { reactive, provide, onMounted, ref, nextTick } from 'vue';
import { KEY_CODE_ENUM } from '@/config/key';
// components
import Message from '@/components/ui/Message.vue';
Expand All @@ -20,8 +21,8 @@ import { storeToRefs } from 'pinia';
// svg
import IcoMessage from '@/assets/svg/message.svg';
import { KEY_CODE_ENUM } from '@/config/key';
import IcoCapsLock from '@/assets/svg/caps-lock.svg';
import IcoClose from '@/assets/svg/close.svg';
const suggestModalRef = ref<InstanceType<typeof SuggestModal>>();
const userStore = useUserStore();
Expand Down Expand Up @@ -160,9 +161,12 @@ async function suggestClick() {
<div
v-if="'showRemind' in config && config.showRemind && obj.showRemind"
@click="obj.showRemind = false"
class="y-remind"
class="y-remind flex-center--y-center"
>
{{ config.remind }}
<span>
{{ config.remind }}
</span>
<IcoClose></IcoClose>
</div>
<header>
<div class="y-info" :class="[onlyShowMain ? 'y-info__disabled' : '']">
Expand Down Expand Up @@ -272,10 +276,15 @@ async function suggestClick() {
height: 30px;
line-height: 30px;
text-align: center;
color: $main-orange;
color: $gray-08;
font-weight: bold;
background: $main-color-gradient;
cursor: pointer;
svg {
fill: $gray-08;
width: 16px;
margin-left: 20px;
}
}
header {
display: flex;
Expand Down
5 changes: 5 additions & 0 deletions src/assets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ a {
align-items: center;
justify-content: space-between;
}
.flex-center--y-center {
display: flex;
align-items: center;
justify-content: center;
}
.main-color {
color: $main-color;
}
Expand Down
1 change: 1 addition & 0 deletions src/assets/svg/upload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/ui/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const handlerClick = () => {
cursor: pointer;
user-select: none;
touch-action: manipulation;
padding: 6px 15px;
padding: 6px 12px;
font-size: 14px;
border-radius: 2px;
color: #fff;
Expand Down
Loading

0 comments on commit 98a8846

Please sign in to comment.