-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: performance card * fix: history * feat: performance view * feat: performance view * feat: adding chart.js in performance-page * feat: include highcharts and example * feat: type performance requests * fix: api path in performance service * feat: highcharts type and some styles * feat: perfromance card and cr history chart * feat: best quad card and cr distribution fetch * feat: histories cp route * feat(wip): cp history by course * refactor(wip): chart area component * feat: cards adicionados a página de matricula * feat: finalize styling and logic * fix: imports * fix: stats orderby label * refactor: settings tanstack * refactor: graphs and style * feat: stats cards * feat: stats page loading * ci: tsc --------- Co-authored-by: Carlos Alencar <[email protected]> Co-authored-by: Mateus Braga <[email protected]> Co-authored-by: Mateus Braga <[email protected]> Co-authored-by: FusiDaniel <[email protected]>
- Loading branch information
1 parent
ddfeeec
commit 2973edb
Showing
34 changed files
with
912 additions
and
228 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
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,57 @@ | ||
<template> | ||
<v-card | ||
class="performance-card pa-5 rounded-lg w-100 h-100 d-flex flex-column justify-space-between" | ||
> | ||
<v-icon class="mb-1 mdi" :class="[props.icon, `text-${props.color}`]" /> | ||
<span class="text-h5 font-weight-bold"> | ||
{{ props.title }} | ||
<span class="text-body-1 font-weight-light"> | ||
{{ props.subTitle }} | ||
</span> | ||
</span> | ||
|
||
<v-card-text | ||
class="text-subtitle-2 px-0 pb-0 pt-1 d-flex flex-column justify-end" | ||
> | ||
<p> | ||
{{ description }} | ||
<v-btn v-if="tooltip" density="compact" icon="mdi-information-outline" variant="text" class="pa-0 h-auto w-auto"> | ||
<v-icon/> | ||
<v-tooltip open-on-click activator="parent" location="top" >{{tooltip}}</v-tooltip> | ||
</v-btn> | ||
</p> | ||
<v-progress-linear | ||
:model-value="100 * progressBarValue/progressBarMaxValue" | ||
:model-total="100" | ||
height="6" | ||
:color="color" | ||
bg-color="pink-lighten-3" | ||
class="rounded-lg mt-2 d-none d-sm-block" | ||
/> | ||
</v-card-text> | ||
</v-card> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
type Props = { | ||
title: string | number; | ||
subTitle?: string; | ||
progressBarValue?: number; | ||
progressBarMaxValue?: number; | ||
description: string; | ||
icon: string; | ||
color: string; | ||
tooltip?: string; | ||
}; | ||
const props = withDefaults(defineProps<Props>(), { | ||
progressBarValue: 100, | ||
progressBarMaxValue: 100, | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.v-progress-linear { | ||
height: 6px; | ||
} | ||
</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
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.