1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-05 02:59:23 +00:00
This commit is contained in:
SunWuyuan 2025-03-22 15:17:11 +08:00
parent 39c114282c
commit 66a503a062
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64
5 changed files with 61 additions and 62 deletions

View File

@ -1,5 +1,5 @@
{
"name": "ClassworkS",
"name": "Classworks",
"private": true,
"type": "module",
"version": "0.0.0",

View File

@ -1,5 +1,5 @@
<template>
<v-footer height="40" app>
<v-footer height="40" app v-if="mobile">
<a
v-for="item in items"
:key="item.title"
@ -9,17 +9,15 @@
rel="noopener noreferrer"
target="_blank"
>
<v-icon
:icon="item.icon"
:size="item.icon === 'mdi-earth' ? 24 : 16"
/>
<v-icon :icon="item.icon" :size="item.icon === 'mdi-earth' ? 24 : 16" />
</a>
<div
class="text-caption text-disabled"
style="position: absolute; right: 16px;"
style="position: absolute; right: 16px"
>
&copy; 2020-{{ (new Date()).getFullYear() }} <span class="d-none d-sm-inline-block">SunWuyuan</span>
&copy; 2020-{{ new Date().getFullYear() }}
<span class="d-none d-sm-inline-block">SunWuyuan</span>
<a
class="text-decoration-none on-surface"
@ -27,30 +25,33 @@
rel="noopener noreferrer"
target="_blank"
>
ClassworkS
Classworks
</a>
</div>
</v-footer>
</template>
<script setup>
import { useDisplay } from "vuetify";
const { mobile } = useDisplay();
const items = [
{
title: '孙悟远',
title: "孙悟远",
icon: `mdi-earth`,
href: 'https://wuyuan.dev',
href: "https://wuyuan.dev",
},
{
title: 'ZeroCat',
icon: 'mdi-xml',
href: 'https://zerocat.houlangs.com',
title: "ZeroCat",
icon: "mdi-xml",
href: "https://zerocat.houlangs.com",
},
{
title: 'GitHub',
icon: 'mdi-github',
href: 'https://github.com/sunwuyuan/classworks-frontend',
}
]
title: "GitHub",
icon: "mdi-github",
href: "https://github.com/sunwuyuan/classworks-frontend",
},
];
</script>
<style scoped lang="sass">

View File

@ -13,11 +13,11 @@
<v-avatar size="120" class="mb-4">
<v-img
src="https://avatars.githubusercontent.com/u/88357633?v=4"
alt="作者头像"
alt="Sunwuyuan"
/>
</v-avatar>
<h2 class="text-h5 mb-2">ClassworkS</h2>
<h2 class="text-h5 mb-2">Classworks</h2>
<p class="text-body-1 mb-4">
<a
href="https://github.com/sunwuyuan"

View File

@ -123,7 +123,29 @@
</v-card>
</TransitionGroup>
</div>
</div>
</div><v-btn
v-if="!state.synced"
color="error"
size="large"
:loading="loading.upload"
class="ml-2"
@click="manualUpload"
>
上传
</v-btn>
<v-btn v-else color="success" size="large" @click="showSyncMessage">
同步完成 </v-btn
><v-btn
v-if="showRandomButton"
color="yellow"
prepend-icon="mdi-account-question"
append-icon="mdi-dice-multiple"
size="large"
class="ml-2"
href="classisland://plugins/IslandCaller/Run"
>
随机点名
</v-btn>
</v-container>
<!-- 出勤统计区域 -->
@ -156,7 +178,7 @@
>
{{ `${index + 1}. ${name}` }}
</h3>
<h2>迟到: {{ state.boardData.attendance.late.length }}</h2>
<h2>迟到: {{ state.boardData.attendance.late.length }}<snap></snap></h2>
<h3
v-for="(name, index) in state.boardData.attendance.late"
:key="'late-' + index"
@ -172,31 +194,7 @@
</h3>
</v-col>
</div>
<v-container fluid>
<v-btn
v-if="!state.synced"
color="error"
size="large"
:loading="loading.upload"
class="ml-2"
@click="manualUpload"
>
上传
</v-btn>
<v-btn v-else color="success" size="large" @click="showSyncMessage">
同步完成 </v-btn
><v-btn
v-if="showRandomButton"
color="yellow"
prepend-icon="mdi-account-question"
append-icon="mdi-dice-multiple"
size="large"
class="ml-2"
href="classisland://plugins/IslandCaller/Run"
>
随机点名
</v-btn>
</v-container>
<v-dialog
v-model="state.dialogVisible"
width="500"

View File

@ -46,7 +46,7 @@
/* 确保容器高度不超过视口 */
.main-window {
max-height: calc(100vh - 180px);
max-height: calc(100vh - 80px);
overflow-y: auto;
}