1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-12-07 21:13:11 +00:00

Compare commits

...

7 Commits

Author SHA1 Message Date
Sunwuyuan
8f5fc287fb
Merge pull request #14 from ZeroCatDev/copilot/update-homework-edit-dialog-text
feat: Add configurable prompt text for homework edit dialog
2025-11-28 21:27:16 +08:00
copilot-swe-agent[bot]
07a89dc855 chore: Revert eslintrc auto-import changes
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
2025-11-28 12:54:33 +00:00
copilot-swe-agent[bot]
511ddc358e chore: Remove all unnecessary formatting changes from previous commits
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
2025-11-28 12:53:48 +00:00
copilot-swe-agent[bot]
f3b625839d chore: Remove unnecessary formatting changes, keep only feature additions
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
2025-11-28 12:49:42 +00:00
copilot-swe-agent[bot]
f7f703466f feat: Add configurable prompt text for homework edit dialog
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
2025-11-19 13:07:03 +00:00
copilot-swe-agent[bot]
b4a27f4c7f Initial exploration - understand issue requirements
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
2025-11-19 13:01:52 +00:00
copilot-swe-agent[bot]
f8758e7cf0 Initial plan 2025-11-19 12:58:52 +00:00
3 changed files with 29 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<v-card border>
<v-card-title>{{ title }}</v-card-title>
<v-card-subtitle>
{{ autoSave ? "喵?喵呜!" : "写完后点击上传谢谢喵" }}
{{ autoSave ? autoSavePromptText : manualSavePromptText }}
</v-card-subtitle>
<v-card-text>
<div class="d-flex">
@ -280,6 +280,12 @@ export default {
},
showQuickTools() {
return getSetting("display.showQuickTools");
},
autoSavePromptText() {
return getSetting("edit.autoSavePromptText");
},
manualSavePromptText() {
return getSetting("edit.manualSavePromptText");
}
},
watch: {

View File

@ -15,6 +15,14 @@
<v-divider class="my-2"/>
<setting-item :setting-key="'edit.refreshBeforeEdit'"/>
<v-divider class="my-2"/>
<setting-item :setting-key="'edit.autoSavePromptText'"/>
<v-divider class="my-2"/>
<setting-item :setting-key="'edit.manualSavePromptText'"/>
</v-list>
</settings-card>
</template>

View File

@ -289,6 +289,20 @@ const settingsDefinitions = {
description: "保存非当天数据需确认",
icon: "mdi-calendar-alert",
},
"edit.autoSavePromptText": {
type: "string",
default: "喵?喵呜!",
description: "自动保存模式提示文本",
icon: "mdi-text-box-outline",
// 作业编辑对话框在自动保存模式下显示的提示文本
},
"edit.manualSavePromptText": {
type: "string",
default: "写完后点击上传谢谢喵",
description: "手动保存模式提示文本",
icon: "mdi-text-box-outline",
// 作业编辑对话框在手动保存模式下显示的提示文本
},
// 开发者选项
"developer.enabled": {