-
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.
Merge pull request #464 from SELab-2/submission-submit-structure
Submission structure showcase
- Loading branch information
Showing
7 changed files
with
169 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<script setup lang="ts"> | ||
import Tree from 'primevue/tree'; | ||
import Chip from 'primevue/chip'; | ||
import { useI18n } from 'vue-i18n'; | ||
import { type StructureCheck } from '@/types/StructureCheck.ts'; | ||
import { Project } from '@/types/Project.ts'; | ||
const { t } = useI18n(); | ||
const props = defineProps<{ | ||
structureChecks: StructureCheck[]; | ||
}>(); | ||
console.log(props.structureChecks); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div class="p-2"> | ||
{{ t('views.projects.structureChecks.title') }} | ||
</div> | ||
<Tree class="w-100" selection-mode="single" :value="Project.getNodes(structureChecks)"> | ||
<template #default="{ node }"> | ||
<template v-if="node.obligated"> | ||
<div class="w-full" v-tooltip="t('views.projects.structureChecks.obligatedExtensions')"> | ||
<Chip | ||
class="m-1" | ||
:label="extension" | ||
:key="extension" | ||
v-for="extension in node.data.getObligatedExtensionList()" | ||
/> | ||
</div> | ||
</template> | ||
<template v-else-if="node.blocked"> | ||
<div class="w-full" v-tooltip="t('views.projects.structureChecks.blockedExtensions')"> | ||
<Chip | ||
class="m-1" | ||
:label="extension" | ||
:key="extension" | ||
v-for="extension in node.data.getBlockedExtensionList()" | ||
/> | ||
</div> | ||
</template> | ||
<template v-else> | ||
<div class="flex align-items-center justify-content-between gap-3"> | ||
<span> | ||
{{ node.label }} | ||
</span> | ||
</div> | ||
</template> | ||
</template> | ||
</Tree> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.p-treenode-label { | ||
width: 100%; | ||
ul { | ||
width: 100%; | ||
} | ||
} | ||
</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