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>
|
<template>
|
||||||
<v-dialog
|
<v-dialog v-model="dialogVisible" max-width="900" width="auto" @click:outside="handleClose">
|
||||||
v-model="dialogVisible"
|
|
||||||
max-width="900"
|
|
||||||
width="auto"
|
|
||||||
@click:outside="handleClose"
|
|
||||||
>
|
|
||||||
<v-card border>
|
<v-card border>
|
||||||
<v-card-title>{{ title }}</v-card-title>
|
<v-card-title>{{ title }}</v-card-title>
|
||||||
<v-card-subtitle>
|
<v-card-subtitle>
|
||||||
@ -26,21 +21,13 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Template Buttons Section -->
|
<!-- Template Buttons Section -->
|
||||||
<div
|
<div v-if="templateData" class="mt-4">
|
||||||
v-if="templateData"
|
<div v-if="hasTemplates" class="template-buttons">
|
||||||
class="mt-4"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
v-if="hasTemplates"
|
|
||||||
class="template-buttons"
|
|
||||||
>
|
|
||||||
<!-- Subject specific books -->
|
<!-- Subject specific books -->
|
||||||
<template v-if="subjectBooks">
|
<template v-if="subjectBooks">
|
||||||
<div
|
<div v-for="(pages, book) in subjectBooks" :key="book" class="button-group">
|
||||||
v-for="(pages, book) in subjectBooks"
|
|
||||||
:key="book"
|
|
||||||
class="button-group"
|
|
||||||
>
|
|
||||||
<v-chip
|
<v-chip
|
||||||
:color="isBookSelected(book) ? 'success' : 'default'"
|
:color="isBookSelected(book) ? 'success' : 'default'"
|
||||||
:variant="isBookSelected(book) ? 'elevated' : 'flat'"
|
:variant="isBookSelected(book) ? 'elevated' : 'flat'"
|
||||||
@ -51,10 +38,7 @@
|
|||||||
</v-chip>
|
</v-chip>
|
||||||
|
|
||||||
<!-- Show pages only if book is selected -->
|
<!-- Show pages only if book is selected -->
|
||||||
<div
|
<div v-if="isBookSelected(book)" class="pages-container mt-2">
|
||||||
v-if="isBookSelected(book)"
|
|
||||||
class="pages-container mt-2"
|
|
||||||
>
|
|
||||||
<v-chip
|
<v-chip
|
||||||
v-for="page in pages"
|
v-for="page in pages"
|
||||||
:key="page"
|
:key="page"
|
||||||
@ -71,11 +55,7 @@
|
|||||||
|
|
||||||
<!-- Common books -->
|
<!-- Common books -->
|
||||||
<template v-if="commonBooks">
|
<template v-if="commonBooks">
|
||||||
<div
|
<div v-for="(pages, book) in commonBooks" :key="book" class="button-group">
|
||||||
v-for="(pages, book) in commonBooks"
|
|
||||||
:key="book"
|
|
||||||
class="button-group"
|
|
||||||
>
|
|
||||||
<v-chip
|
<v-chip
|
||||||
:color="isBookSelected(book) ? 'success' : 'default'"
|
:color="isBookSelected(book) ? 'success' : 'default'"
|
||||||
:variant="isBookSelected(book) ? 'elevated' : 'flat'"
|
:variant="isBookSelected(book) ? 'elevated' : 'flat'"
|
||||||
@ -86,10 +66,7 @@
|
|||||||
</v-chip>
|
</v-chip>
|
||||||
|
|
||||||
<!-- Show pages only if book is selected -->
|
<!-- Show pages only if book is selected -->
|
||||||
<div
|
<div v-if="isBookSelected(book)" class="pages-container mt-2">
|
||||||
v-if="isBookSelected(book)"
|
|
||||||
class="pages-container mt-2"
|
|
||||||
>
|
|
||||||
<v-chip
|
<v-chip
|
||||||
v-for="page in pages"
|
v-for="page in pages"
|
||||||
:key="page"
|
:key="page"
|
||||||
@ -105,10 +82,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- Actions -->
|
<!-- Actions -->
|
||||||
<div
|
<div v-if="templateData.actions?.length" class="button-group">
|
||||||
v-if="templateData.actions?.length"
|
|
||||||
class="button-group"
|
|
||||||
>
|
|
||||||
<v-chip
|
<v-chip
|
||||||
v-for="action in templateData.actions"
|
v-for="action in templateData.actions"
|
||||||
:key="action"
|
:key="action"
|
||||||
@ -121,21 +95,14 @@
|
|||||||
</v-chip>
|
</v-chip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else class="text-center text-body-2 text-disabled mt-2">
|
||||||
v-else
|
|
||||||
class="text-center text-body-2 text-disabled mt-2"
|
|
||||||
>
|
|
||||||
暂无可用的模板
|
暂无可用的模板
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Quick Tools Section -->
|
<!-- Quick Tools Section -->
|
||||||
<div
|
<div v-if="showQuickTools" class="quick-tools ml-4" style="min-width: 180px;">
|
||||||
v-if="showQuickTools"
|
|
||||||
class="quick-tools ml-4"
|
|
||||||
style="min-width: 180px;"
|
|
||||||
>
|
|
||||||
<!-- Numeric Keypad -->
|
<!-- Numeric Keypad -->
|
||||||
<div class="numeric-keypad mb-4">
|
<div class="numeric-keypad mb-4">
|
||||||
<div class="keypad-row">
|
<div class="keypad-row">
|
||||||
@ -239,6 +206,7 @@
|
|||||||
<div class="text-center text-body-2 text-disabled mb-5">
|
<div class="text-center text-body-2 text-disabled mb-5">
|
||||||
点击空白处完成编辑
|
点击空白处完成编辑
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -1,33 +1,34 @@
|
|||||||
<template>
|
<template>
|
||||||
<settings-card
|
<settings-card icon="mdi-cog" title="编辑设置">
|
||||||
icon="mdi-cog"
|
|
||||||
title="编辑设置"
|
|
||||||
>
|
|
||||||
<v-list>
|
<v-list>
|
||||||
<setting-item :setting-key="'edit.autoSave'" />
|
<setting-item :setting-key="'edit.autoSave'"/>
|
||||||
|
|
||||||
|
|
||||||
<v-divider class="my-2" />
|
<v-divider class="my-2"/>
|
||||||
<setting-item :setting-key="'edit.blockNonTodayAutoSave'" />
|
<setting-item :setting-key="'edit.blockNonTodayAutoSave'"/>
|
||||||
|
|
||||||
|
|
||||||
<v-divider class="my-2" />
|
<v-divider class="my-2"/>
|
||||||
<setting-item :setting-key="'edit.confirmNonTodaySave'" />
|
<setting-item :setting-key="'edit.confirmNonTodaySave'"/>
|
||||||
|
|
||||||
|
|
||||||
<v-divider class="my-2" />
|
<v-divider class="my-2"/>
|
||||||
<setting-item :setting-key="'edit.refreshBeforeEdit'" />
|
<setting-item :setting-key="'edit.refreshBeforeEdit'"/>
|
||||||
|
|
||||||
|
|
||||||
<v-divider class="my-2" />
|
<v-divider class="my-2"/>
|
||||||
<setting-item :setting-key="'edit.autoSavePromptText'" />
|
<setting-item :setting-key="'edit.autoSavePromptText'"/>
|
||||||
|
|
||||||
|
|
||||||
<v-divider class="my-2" />
|
<v-divider class="my-2"/>
|
||||||
<setting-item :setting-key="'edit.manualSavePromptText'" />
|
<setting-item :setting-key="'edit.manualSavePromptText'"/>
|
||||||
|
|
||||||
</v-list>
|
</v-list>
|
||||||
</settings-card>
|
</settings-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import SettingsCard from '@/components/SettingsCard.vue';
|
||||||
|
import SettingItem from '../SettingItem.vue';
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user