Skip to content

Commit

Permalink
fix: 0.3.23 修复黑夜模式和用户标签删除失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dlzmoe committed Sep 4, 2024
1 parent 73dd701 commit f9334e8
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 34 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- 新增:AI 生成话题推荐回复
- 优化:面板设置和代码逻辑
- 修复:黑夜模式 UI
- 修复:用户标签删除失败 bug
50 changes: 37 additions & 13 deletions dist/linuxdo-scripts.user.js

Large diffs are not rendered by default.

50 changes: 37 additions & 13 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.22",
"version": "0.3.23",
"author": "dlzmoe",
"description": "An enhanced script for the linux.do forum",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<MenuOtherCss :sort="5" v-model:value="settingData.othercss" />
</div>
<div class="menu-body-item">
<UserTags />
<UserTags v-model:value="settingData.usertags" />
</div>
<div class="menu-body-item">
<GPTconfig v-model:value="settingData.gptdata" />
Expand Down Expand Up @@ -285,7 +285,7 @@ export default {
checked18: false,
checked19: false,
checked20: true,
usertags: [],
gptdata: {
value1: false,
value2: false,
Expand Down
8 changes: 7 additions & 1 deletion src/assets/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ body.body-preview #main-outlet-wrapper {
}

.aireply-popup {
z-index: 999;
position: fixed;
top: 10%;
left: 50%;
Expand Down Expand Up @@ -738,11 +739,16 @@ body.body-preview #main-outlet-wrapper {
color: #6b6b6b;
}

.aicreated-btn {
.aicreated-btn,
.aireplay-btn {
background: #999;
color: #fff;
}

.aireply-popup {
background: #717171;
}

.gpt-summary-wrap {
color: #d9d9d9;
background: #717171;
Expand Down
25 changes: 23 additions & 2 deletions src/components/UserTags/UserTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,30 @@

<script>
export default {
props: {
value: {
type: String,
default: "",
},
sort: {
type: Number,
required: true,
},
},
data() {
return {
tableData: [],
tableData: this.value,
};
},
watch: {
value(newValue) {
this.tableData = newValue;
},
},
methods: {
handleChange() {
this.$emit("update:value", this.tableData);
},
// 修改标签
editTags(item) {
var tags = prompt(`对 @${item.name} 修改标签`, item.tags);
Expand All @@ -49,6 +66,8 @@ export default {
settingData1 = JSON.parse(settingData1);
settingData1.usertags = this.tableData;
localStorage.setItem("linxudoscriptssetting", JSON.stringify(settingData1));
this.$emit("update:value", this.tableData);
}
},
delTags(item) {
Expand All @@ -60,6 +79,8 @@ export default {
settingData1 = JSON.parse(settingData1);
settingData1.usertags = this.tableData;
localStorage.setItem("linxudoscriptssetting", JSON.stringify(settingData1));
this.$emit("update:value", this.tableData);
}
},
},
Expand Down
5 changes: 5 additions & 0 deletions version-log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.3.23

- 修复:黑夜模式 UI
- 修复:用户标签删除失败 bug

## 0.3.22

- 新增:AI 生成话题推荐回复
Expand Down

0 comments on commit f9334e8

Please sign in to comment.