-
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.
Move schemeboxes to more simple pattern & rename #16
- Loading branch information
1 parent
7900a00
commit 0163e85
Showing
3 changed files
with
50 additions
and
50 deletions.
There are no files selected for viewing
File renamed without changes.
48 changes: 0 additions & 48 deletions
48
arches_lingo/src/arches_lingo/components/schemes/SchemeBoxes.vue
This file was deleted.
Oops, something went wrong.
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,9 +1,57 @@ | ||
<script setup lang="ts"> | ||
import SchemeBoxes from "@/arches_lingo/components/schemes/SchemeBoxes.vue"; | ||
import { onMounted, ref } from "vue"; | ||
import SchemeCard from "@/arches_lingo/components/scheme/SchemeCard.vue"; | ||
import { fetchSchemes } from "@/arches_lingo/api.ts"; | ||
import type { SchemeDescriptor } from "@/arches_lingo/types"; | ||
const schemes = ref<SchemeDescriptor[]>([]); | ||
onMounted(async () => { | ||
schemes.value = await fetchSchemes(); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<Suspense> | ||
<SchemeBoxes /> | ||
<div> | ||
<ul | ||
style=" | ||
display: flex; | ||
flex-wrap: wrap; | ||
list-style-type: none; | ||
padding: 0; | ||
" | ||
> | ||
<!-- Create New Scheme --> | ||
<li | ||
class="scheme-card" | ||
style="text-align: center" | ||
> | ||
Placeholder for creating new scheme | ||
</li> | ||
<!-- Existing Schemes --> | ||
<li | ||
v-for="scheme in schemes" | ||
:key="scheme.resourceinstanceid" | ||
class="scheme-card" | ||
> | ||
<SchemeCard :scheme="scheme" /> | ||
</li> | ||
</ul> | ||
</div> | ||
</Suspense> | ||
</template> | ||
|
||
<style scoped> | ||
.scheme-card { | ||
margin: 0.5rem; | ||
padding: 1rem; | ||
border: 0.0625rem solid var(--p-menubar-border-color); | ||
min-width: 300px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
background-color: var(--p-primary-400); | ||
} | ||
</style> |