mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2025-12-07 21:13:11 +00:00
chore: Remove unnecessary formatting changes, keep only feature additions
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
This commit is contained in:
parent
f7f703466f
commit
f3b625839d
10975
package-lock.json
generated
10975
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,11 +1,6 @@
|
||||
# 创建新的作业编辑对话框组件
|
||||
<template>
|
||||
<v-dialog
|
||||
v-model="dialogVisible"
|
||||
max-width="900"
|
||||
width="auto"
|
||||
@click:outside="handleClose"
|
||||
>
|
||||
<v-dialog v-model="dialogVisible" max-width="900" width="auto" @click:outside="handleClose">
|
||||
<v-card border>
|
||||
<v-card-title>{{ title }}</v-card-title>
|
||||
<v-card-subtitle>
|
||||
@ -26,21 +21,13 @@
|
||||
/>
|
||||
|
||||
<!-- Template Buttons Section -->
|
||||
<div
|
||||
v-if="templateData"
|
||||
class="mt-4"
|
||||
>
|
||||
<div
|
||||
v-if="hasTemplates"
|
||||
class="template-buttons"
|
||||
>
|
||||
<div v-if="templateData" class="mt-4">
|
||||
<div v-if="hasTemplates" class="template-buttons">
|
||||
|
||||
|
||||
<!-- Subject specific books -->
|
||||
<template v-if="subjectBooks">
|
||||
<div
|
||||
v-for="(pages, book) in subjectBooks"
|
||||
:key="book"
|
||||
class="button-group"
|
||||
>
|
||||
<div v-for="(pages, book) in subjectBooks" :key="book" class="button-group">
|
||||
<v-chip
|
||||
:color="isBookSelected(book) ? 'success' : 'default'"
|
||||
:variant="isBookSelected(book) ? 'elevated' : 'flat'"
|
||||
@ -51,10 +38,7 @@
|
||||
</v-chip>
|
||||
|
||||
<!-- Show pages only if book is selected -->
|
||||
<div
|
||||
v-if="isBookSelected(book)"
|
||||
class="pages-container mt-2"
|
||||
>
|
||||
<div v-if="isBookSelected(book)" class="pages-container mt-2">
|
||||
<v-chip
|
||||
v-for="page in pages"
|
||||
:key="page"
|
||||
@ -71,11 +55,7 @@
|
||||
|
||||
<!-- Common books -->
|
||||
<template v-if="commonBooks">
|
||||
<div
|
||||
v-for="(pages, book) in commonBooks"
|
||||
:key="book"
|
||||
class="button-group"
|
||||
>
|
||||
<div v-for="(pages, book) in commonBooks" :key="book" class="button-group">
|
||||
<v-chip
|
||||
:color="isBookSelected(book) ? 'success' : 'default'"
|
||||
:variant="isBookSelected(book) ? 'elevated' : 'flat'"
|
||||
@ -86,10 +66,7 @@
|
||||
</v-chip>
|
||||
|
||||
<!-- Show pages only if book is selected -->
|
||||
<div
|
||||
v-if="isBookSelected(book)"
|
||||
class="pages-container mt-2"
|
||||
>
|
||||
<div v-if="isBookSelected(book)" class="pages-container mt-2">
|
||||
<v-chip
|
||||
v-for="page in pages"
|
||||
:key="page"
|
||||
@ -105,10 +82,7 @@
|
||||
</template>
|
||||
|
||||
<!-- Actions -->
|
||||
<div
|
||||
v-if="templateData.actions?.length"
|
||||
class="button-group"
|
||||
>
|
||||
<div v-if="templateData.actions?.length" class="button-group">
|
||||
<v-chip
|
||||
v-for="action in templateData.actions"
|
||||
:key="action"
|
||||
@ -121,21 +95,14 @@
|
||||
</v-chip>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
class="text-center text-body-2 text-disabled mt-2"
|
||||
>
|
||||
<div v-else class="text-center text-body-2 text-disabled mt-2">
|
||||
暂无可用的模板
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Quick Tools Section -->
|
||||
<div
|
||||
v-if="showQuickTools"
|
||||
class="quick-tools ml-4"
|
||||
style="min-width: 180px;"
|
||||
>
|
||||
<div v-if="showQuickTools" class="quick-tools ml-4" style="min-width: 180px;">
|
||||
<!-- Numeric Keypad -->
|
||||
<div class="numeric-keypad mb-4">
|
||||
<div class="keypad-row">
|
||||
@ -239,6 +206,7 @@
|
||||
<div class="text-center text-body-2 text-disabled mb-5">
|
||||
点击空白处完成编辑
|
||||
</div>
|
||||
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</template>
|
||||
|
||||
@ -1,33 +1,34 @@
|
||||
<template>
|
||||
<settings-card
|
||||
icon="mdi-cog"
|
||||
title="编辑设置"
|
||||
>
|
||||
<settings-card icon="mdi-cog" title="编辑设置">
|
||||
<v-list>
|
||||
<setting-item :setting-key="'edit.autoSave'" />
|
||||
<setting-item :setting-key="'edit.autoSave'"/>
|
||||
|
||||
|
||||
<v-divider class="my-2" />
|
||||
<setting-item :setting-key="'edit.blockNonTodayAutoSave'" />
|
||||
<v-divider class="my-2"/>
|
||||
<setting-item :setting-key="'edit.blockNonTodayAutoSave'"/>
|
||||
|
||||
|
||||
<v-divider class="my-2" />
|
||||
<setting-item :setting-key="'edit.confirmNonTodaySave'" />
|
||||
<v-divider class="my-2"/>
|
||||
<setting-item :setting-key="'edit.confirmNonTodaySave'"/>
|
||||
|
||||
|
||||
<v-divider class="my-2" />
|
||||
<setting-item :setting-key="'edit.refreshBeforeEdit'" />
|
||||
<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.autoSavePromptText'"/>
|
||||
|
||||
|
||||
<v-divider class="my-2" />
|
||||
<setting-item :setting-key="'edit.manualSavePromptText'" />
|
||||
<v-divider class="my-2"/>
|
||||
<setting-item :setting-key="'edit.manualSavePromptText'"/>
|
||||
|
||||
</v-list>
|
||||
</settings-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import SettingsCard from '@/components/SettingsCard.vue';
|
||||
import SettingItem from '../SettingItem.vue';
|
||||
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user