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, "private": true,
"type": "module", "type": "module",
"version": "0.0.0", "version": "0.0.0",

View File

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

View File

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

View File

@ -123,7 +123,29 @@
</v-card> </v-card>
</TransitionGroup> </TransitionGroup>
</div> </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> </v-container>
<!-- 出勤统计区域 --> <!-- 出勤统计区域 -->
@ -156,7 +178,7 @@
> >
{{ `${index + 1}. ${name}` }} {{ `${index + 1}. ${name}` }}
</h3> </h3>
<h2>迟到: {{ state.boardData.attendance.late.length }}</h2> <h2>迟到: {{ state.boardData.attendance.late.length }}<snap></snap></h2>
<h3 <h3
v-for="(name, index) in state.boardData.attendance.late" v-for="(name, index) in state.boardData.attendance.late"
:key="'late-' + index" :key="'late-' + index"
@ -172,31 +194,7 @@
</h3> </h3>
</v-col> </v-col>
</div> </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-dialog
v-model="state.dialogVisible" v-model="state.dialogVisible"
width="500" width="500"

View File

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