-
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.
updates with components for individual sections
- Loading branch information
1 parent
7f78547
commit f6a0b30
Showing
11 changed files
with
157 additions
and
28 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
20 changes: 20 additions & 0 deletions
20
arches_lingo/src/arches_lingo/components/detail/SchemeAuthority.vue
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,20 @@ | ||
<script setup lang="ts"> | ||
import Button from "primevue/button"; | ||
</script> | ||
|
||
<template> | ||
<div style="margin: 0 20px"> | ||
<div | ||
style=" | ||
display: flex; | ||
align-items: center; | ||
border-bottom: 1px solid #ddd; | ||
" | ||
> | ||
<h2>Trusted Authorities</h2> | ||
<div style="flex: 1"></div> | ||
<div><Button label="Add Trusted Authority"> </Button></div> | ||
</div> | ||
<pre style="margin: 10px 0"></pre> | ||
</div> | ||
</template> |
20 changes: 20 additions & 0 deletions
20
arches_lingo/src/arches_lingo/components/detail/SchemeLicense.vue
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,20 @@ | ||
<script setup lang="ts"> | ||
import Button from "primevue/button"; | ||
</script> | ||
|
||
<template> | ||
<div style="margin: 0 20px"> | ||
<div | ||
style=" | ||
display: flex; | ||
align-items: center; | ||
border-bottom: 1px solid #ddd; | ||
" | ||
> | ||
<h2>License</h2> | ||
<div style="flex: 1"></div> | ||
<div><Button label="Add License"> </Button></div> | ||
</div> | ||
<pre style="margin: 10px 0"></pre> | ||
</div> | ||
</template> |
20 changes: 20 additions & 0 deletions
20
arches_lingo/src/arches_lingo/components/detail/SchemeNote.vue
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,20 @@ | ||
<script setup lang="ts"> | ||
import Button from "primevue/button"; | ||
</script> | ||
|
||
<template> | ||
<div style="margin: 0 20px"> | ||
<div | ||
style=" | ||
display: flex; | ||
align-items: center; | ||
border-bottom: 1px solid #ddd; | ||
" | ||
> | ||
<h2>Scheme Notes</h2> | ||
<div style="flex: 1"></div> | ||
<div><Button label="Add Note"> </Button></div> | ||
</div> | ||
<pre style="margin: 10px 0"></pre> | ||
</div> | ||
</template> |
20 changes: 20 additions & 0 deletions
20
arches_lingo/src/arches_lingo/components/detail/SchemeStandard.vue
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,20 @@ | ||
<script setup lang="ts"> | ||
import Button from "primevue/button"; | ||
</script> | ||
|
||
<template> | ||
<div style="margin: 0 20px"> | ||
<div | ||
style=" | ||
display: flex; | ||
align-items: center; | ||
border-bottom: 1px solid #ddd; | ||
" | ||
> | ||
<h2>Standards Followed</h2> | ||
<div style="flex: 1"></div> | ||
<div><Button label="Add Standard"> </Button></div> | ||
</div> | ||
<pre style="margin: 10px 0"></pre> | ||
</div> | ||
</template> |
33 changes: 33 additions & 0 deletions
33
arches_lingo/src/arches_lingo/components/detail/SchemeUri.vue
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,33 @@ | ||
<script setup lang="ts"> | ||
import Button from "primevue/button"; | ||
import { onMounted, ref } from "vue"; | ||
import { fetchSchemeUri } from "@/arches_lingo/api.ts"; | ||
import { useRoute } from "vue-router"; | ||
const schemeResource = ref(); | ||
const route = useRoute(); | ||
onMounted(async () => { | ||
const resource = await fetchSchemeUri(route.params.id); | ||
schemeResource.value = resource; | ||
console.log(schemeResource); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div style="margin: 0 20px"> | ||
<div | ||
style=" | ||
display: flex; | ||
align-items: center; | ||
border-bottom: 1px solid #ddd; | ||
" | ||
> | ||
<h2>Scheme Uris</h2> | ||
<div style="flex: 1"></div> | ||
<div><Button label="Add Scheme Uri"> </Button></div> | ||
</div> | ||
<pre style="margin: 10px 0"> | ||
{{ schemeResource }} | ||
</pre> | ||
</div> | ||
</template> |
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,31 +1,27 @@ | ||
<script setup lang="ts"> | ||
import { onMounted, ref } from "vue"; | ||
import { useRoute } from "vue-router"; | ||
import { fetchSchemeResource } from "@/arches_lingo/api.ts"; | ||
import type { SchemeResource } from "@/arches_lingo/types.ts"; | ||
import SchemeSection from "@/arches_lingo/components/detail/SchemeSection.vue"; | ||
import { ref } from "vue"; | ||
import SchemeLicense from "@/arches_lingo/components/detail/SchemeLicense.vue"; | ||
import SchemeNote from "@/arches_lingo/components/detail/SchemeNote.vue"; | ||
import SchemeUri from "@/arches_lingo/components/detail/SchemeUri.vue"; | ||
import SchemeStandard from "@/arches_lingo/components/detail/SchemeStandard.vue"; | ||
import SchemeAuthority from "@/arches_lingo/components/detail/SchemeAuthority.vue"; | ||
import Splitter from "primevue/splitter"; | ||
import SplitterPanel from "primevue/splitterpanel"; | ||
const route = useRoute(); | ||
const schemeResource = ref<SchemeResource | null>(null); | ||
onMounted(async () => { | ||
const resource = (await fetchSchemeResource( | ||
route.params.id, | ||
)) as SchemeResource; | ||
schemeResource.value = resource; | ||
}); | ||
const sectionSize = ref<number>(75); | ||
const splitterKey = ref<number>(0); | ||
</script> | ||
|
||
<template> | ||
<div v-if="schemeResource"> | ||
<div | ||
v-for="(section, resourceKey) in schemeResource.resource" | ||
:key="resourceKey" | ||
> | ||
<SchemeSection | ||
:section="section" | ||
:resource-key="resourceKey" | ||
/> | ||
</div> | ||
<div> | ||
<Splitter :key="splitterKey"> | ||
<SplitterPanel :size="sectionSize"> | ||
<SchemeNote /> | ||
<SchemeAuthority /> | ||
<SchemeStandard /> | ||
<SchemeLicense /> | ||
<SchemeUri /> | ||
</SplitterPanel> | ||
</Splitter> | ||
</div> | ||
</template> |
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