-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from UTDallasEPICS/FamilyReportsRevamp
Family reports revamp
- Loading branch information
Showing
46 changed files
with
838 additions
and
487 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ node_modules | |
.nitro | ||
.cache | ||
.output | ||
.env | ||
*env* | ||
!.env.example | ||
dist |
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 |
---|---|---|
@@ -1,12 +1,32 @@ | ||
<script lang="ts" setup> | ||
const props = defineProps<{modelBarWidth: string}>() | ||
const actualBarWidth = computed(() => { if(props.modelBarWidth != null && props.modelBarWidth !="inf" ) { | ||
if(parseFloat(props.modelBarWidth) >= 100) { | ||
return 100 | ||
} else if(parseFloat(props.modelBarWidth) < 100 && parseFloat(props.modelBarWidth) > 0) { | ||
return parseFloat(props.modelBarWidth) | ||
} else { | ||
return 0 | ||
} | ||
} else if(props.modelBarWidth == "inf") { | ||
return 100 | ||
}}) | ||
console.log(parseFloat(props.modelBarWidth), " bar width") | ||
// handles logic with how to display the progress bar | ||
function calculateBarWidth (modelBarWidth: string) { | ||
console.log(modelBarWidth) | ||
} | ||
console.log(actualBarWidth.value) | ||
const style = computed(() => | ||
`background: linear-gradient(90deg, rgba(15,200,0,1), rgba(133,233,0,1) 35%); box-shadow: 0 3px 3px -5px #1ba710, 0 2px 5px #1ba710; width:${props.modelBarWidth}%`); | ||
`background: linear-gradient(90deg, rgba(15,200,0,1), rgba(133,233,0,1) 35%); box-shadow: 0 3px 3px -5px #1ba710, 0 2px 5px #1ba710; width:${actualBarWidth.value}%`); | ||
</script> | ||
|
||
<template lang="pug"> | ||
.rounded-full.text-white.flex.items-center.justify-center(:style="style") | ||
slot | ||
slot(v-if="actualBarWidth") | ||
</template> | ||
|
||
<style scoped></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
Binary file not shown.
Oops, something went wrong.