Skip to content

Commit

Permalink
✨ feat: 新增隐藏输入框提示文字
Browse files Browse the repository at this point in the history
  • Loading branch information
dlzmoe committed Oct 17, 2024
1 parent bb22b3c commit eacaf5e
Show file tree
Hide file tree
Showing 7 changed files with 643 additions and 544 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- 优化:支持 Esc 关闭预览窗口
- 新增:隐藏回复框提示文字。
575 changes: 304 additions & 271 deletions dist/linuxdo-scripts.user.js

Large diffs are not rendered by default.

575 changes: 304 additions & 271 deletions linuxdo-scripts.user.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linuxdo-scripts",
"version": "0.3.52",
"version": "0.3.53",
"author": "dlzmoe",
"description": "An enhanced script for the linux.do forum",
"type": "module",
Expand Down
5 changes: 5 additions & 0 deletions src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
<MenuDonotTopic :sort="25" v-model="settingData.checked26" />
<!-- 自动切换黑夜模式 -->
<MenuAutoDark :sort="26" v-model="settingData.checked27" />
<!-- 是否隐藏输入框提示文字 -->
<MenuHiddenPlaceholder :sort="27" v-model="settingData.checked28" />
</div>
<div class="menu-body-item">
<!-- 自定义论坛 logo -->
Expand Down Expand Up @@ -186,6 +188,7 @@ import MenuDisableAutoplay from "./components/BasicSettings/MenuDisableAutoplay.
import MenuShowRepltBtn from "./components/BasicSettings/MenuShowRepltBtn.vue";
import MenuDonotTopic from "./components/BasicSettings/MenuDonotTopic.vue";
import MenuAutoDark from "./components/BasicSettings/MenuAutoDark.vue";
import MenuHiddenPlaceholder from "./components/BasicSettings/MenuHiddenPlaceholder.vue";
// 自定义文字
import MenuOtherCss from "./components/CustomText/MenuOtherCss.vue";
Expand Down Expand Up @@ -285,6 +288,7 @@ export default {
FloorLottery,
MenuDonotTopic,
MenuAutoDark,
MenuHiddenPlaceholder,
},
data() {
return {
Expand Down Expand Up @@ -338,6 +342,7 @@ export default {
checked25: true,
checked26: true,
checked27: false,
checked28: false,
usertags: [],
gptdata: {
value1: false,
Expand Down
24 changes: 24 additions & 0 deletions src/components/BasicSettings/MenuHiddenPlaceholder.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div class="item">
<div class="tit">{{ sort }}. 是否隐藏输入框提示文字</div>
<input
type="checkbox"
:checked="modelValue"
@change="$emit('update:modelValue', $event.target.checked)"
/>
</div>
</template>

<script>
export default {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
created() {
if (this.modelValue) {
$("head").append(`<style>
.d-editor-input::placeholder{opacity:0;}
</style>`);
}
},
};
</script>
4 changes: 4 additions & 0 deletions version-log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.53

- 新增:隐藏回复框提示文字。

## 0.3.52

- 优化:支持 Esc 关闭预览窗口
Expand Down

0 comments on commit eacaf5e

Please sign in to comment.