-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(attendance): draft attendance page
- Loading branch information
Showing
32 changed files
with
2,735 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 11 additions & 12 deletions
23
patches/vue-echarts+6.6.8.patch → patches/vue-echarts+6.7.3.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
diff --git a/node_modules/vue-echarts/dist/index.esm.js b/node_modules/vue-echarts/dist/index.esm.js | ||
index 4ef9b7c..f05e046 100644 | ||
index 3ec3ce0..c9e8af8 100644 | ||
--- a/node_modules/vue-echarts/dist/index.esm.js | ||
+++ b/node_modules/vue-echarts/dist/index.esm.js | ||
@@ -1,5 +1,5 @@ | ||
import { watch, unref, inject, computed, watchEffect, Vue2, defineComponent, shallowRef, toRefs, getCurrentInstance, onMounted, onBeforeUnmount, h, nextTick } from 'vue-demi'; | ||
import { watch, isRef, unref, inject, computed, watchEffect, Vue2, defineComponent, shallowRef, toRefs, getCurrentInstance, onMounted, onBeforeUnmount, h, nextTick } from 'vue-demi'; | ||
-import { throttle, init } from 'echarts/core'; | ||
+import { throttle, init } from 'echarts/core.js'; | ||
import { addListener, removeListener } from 'resize-detector'; | ||
|
||
/****************************************************************************** | ||
/****************************************************************************** | ||
diff --git a/node_modules/vue-echarts/package.json b/node_modules/vue-echarts/package.json | ||
index 5fce2eb..5bafc62 100644 | ||
index 7e46d29..dd07c39 100644 | ||
--- a/node_modules/vue-echarts/package.json | ||
+++ b/node_modules/vue-echarts/package.json | ||
@@ -1,6 +1,14 @@ | ||
{ | ||
"name": "vue-echarts", | ||
"version": "6.6.8", | ||
@@ -87,5 +87,13 @@ | ||
"build:demo": "vue-cli-service build", | ||
"docs": "node ./scripts/docs.js", | ||
"postinstall": "node ./scripts/postinstall.js" | ||
+ }, | ||
+ "type": "module", | ||
+ "exports": { | ||
+ ".": { | ||
+ "require": "./dist/index.cjs.js", | ||
+ "import": "./dist/index.esm.js", | ||
+ "types": "./dist/index.d.ts" | ||
+ } | ||
+ }, | ||
"description": "Vue.js component for Apache ECharts.", | ||
"author": "GU Yiling <[email protected]>", | ||
"scripts": { | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!-- eslint-disable tailwindcss/no-custom-classname --> | ||
<template> | ||
<div class="relative flex flex-col items-center justify-center"> | ||
<div | ||
class="ring-circle absolute size-full rounded-full" | ||
:style="`--value: ${progress}; --thickness: ${thickness};`" /> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
// https://stackoverflow.com/a/79103802 | ||
defineProps({ | ||
progress: { | ||
type: Number, | ||
default: 0, | ||
}, | ||
thickness: { | ||
type: String, | ||
default: '0.3rem', | ||
}, | ||
}); | ||
</script> | ||
|
||
<style> | ||
.ring-circle { | ||
background: conic-gradient( | ||
var(--progress-color, currentColor) calc(var(--value) * 1%), | ||
var(--mask-color, #e5e7eb) 0 | ||
); | ||
mask: radial-gradient( | ||
farthest-side, | ||
transparent calc(100% - var(--thickness)), | ||
white calc(100% - var(--thickness) + 1px) | ||
); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- eslint-disable tailwindcss/no-custom-classname --> | ||
<template> | ||
<div class="flex overflow-hidden bg-transparent"> | ||
<!-- https://github.com/tailwindlabs/tailwindcss/discussions/3921#discussioncomment-5258971 --> | ||
<progress | ||
class="progress left-right size-full [&::-moz-progress-bar]:bg-indigo-500 [&::-webkit-progress-bar]:rounded-lg [&::-webkit-progress-bar]:bg-indigo-500 [&::-webkit-progress-value]:rounded-lg [&::-webkit-progress-value]:bg-indigo-500" /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
@keyframes indeterminateAnimation { | ||
0% { | ||
transform: translateX(0) scaleX(0); | ||
} | ||
40% { | ||
transform: translateX(0) scaleX(0.4); | ||
} | ||
100% { | ||
transform: translateX(100%) scaleX(0.5); | ||
} | ||
} | ||
|
||
.progress { | ||
animation: indeterminateAnimation 1s infinite linear; | ||
transform-origin: 0% 50%; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"calendar": { | ||
"tile": { | ||
"attending": "No one | {count} attendee | {count} attendees", | ||
"debt": "No debt | {count} overconsumed | {count} overconsumed" | ||
} | ||
}, | ||
"description": "Who was there? Who did what? Who owes money?", | ||
"detail": { | ||
"activity": { | ||
"value": { | ||
"FULL": "1 full day", | ||
"HALF": "1 half-day", | ||
"NONE": "absent" | ||
} | ||
}, | ||
"attending": "No attendees | 1 attendee | {count} attendees", | ||
"empty": { | ||
"description": "Apparently, no one showed up on this day.", | ||
"title": "No one" | ||
}, | ||
"search": { | ||
"empty": { | ||
"title": "No results" | ||
}, | ||
"label": "Search for a member", | ||
"placeholder": "@:attendance.detail.search.label" | ||
}, | ||
"select": { | ||
"description": "To view attendance and other details for a specific day.", | ||
"title": "Select a date" | ||
}, | ||
"sort": { | ||
"label": "Sort {suffix}", | ||
"value": { | ||
"activity": "By activity", | ||
"debt": "By debt", | ||
"name": "By name" | ||
} | ||
} | ||
}, | ||
"head": { | ||
"title": "@:attendance.title" | ||
}, | ||
"navigation": { | ||
"nextMonth": "Next month", | ||
"previousMonth": "Previous month", | ||
"today": "Today" | ||
}, | ||
"onFetch": { | ||
"fail": "Unable to retrieve attendance for the period from {start} to {end}" | ||
}, | ||
"title": "Attendance" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"calendar": { | ||
"tile": { | ||
"attending": "Personne | {count} présent | {count} présents", | ||
"debt": "Aucune dette | {count} surconsommé | {count} surconsommés" | ||
} | ||
}, | ||
"description": "Qui était là ? Qui a fait quoi ? Qui doit de la moula ?", | ||
"detail": { | ||
"activity": { | ||
"value": { | ||
"FULL": "1 journée complète", | ||
"HALF": "1 demi-journée", | ||
"NONE": "absent" | ||
} | ||
}, | ||
"attending": "Aucun présent | 1 seul présent | {count} présents", | ||
"empty": { | ||
"description": "Apparemment, personne ne s'est présenté ce jour-ci.", | ||
"title": "Personne" | ||
}, | ||
"search": { | ||
"empty": { | ||
"title": "Aucun résultat" | ||
}, | ||
"label": "Rechercher un membre", | ||
"placeholder": "@:attendance.detail.search.label" | ||
}, | ||
"select": { | ||
"description": "Pour visualiser les présences et autres informations d'un jour précis.", | ||
"title": "Sélectionner une date" | ||
}, | ||
"sort": { | ||
"label": "Trier {suffix}", | ||
"value": { | ||
"activity": "Par activité", | ||
"debt": "Par dette", | ||
"name": "Par nom" | ||
} | ||
} | ||
}, | ||
"head": { | ||
"title": "@:attendance.title" | ||
}, | ||
"navigation": { | ||
"nextMonth": "Mois suivant", | ||
"previousMonth": "Mois précédent", | ||
"today": "Aujourd'hui" | ||
}, | ||
"onFetch": { | ||
"fail": "Impossible de récupérer les présences pour la période du {start} au {end}" | ||
}, | ||
"title": "Présence" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.