-
Notifications
You must be signed in to change notification settings - Fork 51
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 #914 from bcgov/feature/innkeeperSettings
Expose server settings to Innkeeper UI and Tenant UI via plugin routes
- Loading branch information
Showing
36 changed files
with
967 additions
and
229 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
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
31 changes: 31 additions & 0 deletions
31
services/tenant-ui/frontend/src/components/about/PluginList.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,31 @@ | ||
<template> | ||
<Accordion> | ||
<AccordionTab :header="$t('about.acaPy.plugins')"> | ||
<div v-if="loading" class="flex justify-content-center"> | ||
<ProgressSpinner /> | ||
</div> | ||
<vue-json-pretty v-else :data="acapyPlugins" /> | ||
</AccordionTab> | ||
</Accordion> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { storeToRefs } from 'pinia'; | ||
import { useConfigStore } from '@/store/configStore'; | ||
// PrimeVue | ||
import Accordion from 'primevue/accordion'; | ||
import AccordionTab from 'primevue/accordiontab'; | ||
import ProgressSpinner from 'primevue/progressspinner'; | ||
import VueJsonPretty from 'vue-json-pretty'; | ||
const { acapyPlugins, loading } = storeToRefs(useConfigStore()); | ||
const configStore = useConfigStore(); | ||
configStore.getPluginList(); | ||
</script> | ||
|
||
<style scoped> | ||
.logo-acapy { | ||
width: 14em; | ||
} | ||
</style> |
32 changes: 32 additions & 0 deletions
32
services/tenant-ui/frontend/src/components/common/ConfigItem.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,32 @@ | ||
<template> | ||
<p> | ||
<strong v-if="props.title"> | ||
{{ title }}{{ $t('common.configDelim') }} | ||
</strong> | ||
<strong v-else> | ||
<slot name="title"></slot>{{ $t('common.configDelim') }} | ||
</strong> | ||
|
||
<span v-if="contentToString">{{ props.content }}</span> | ||
<slot v-else name="content"></slot> | ||
</p> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { computed } from 'vue'; | ||
// Can pass in the fields as props, or use slots if more customization needed | ||
const props = withDefaults( | ||
defineProps<{ | ||
title?: string; | ||
content?: string | number | boolean; | ||
}>(), | ||
{ | ||
title: '', | ||
content: '', | ||
} | ||
); | ||
const contentToString = computed(() => | ||
typeof props.content === 'boolean' ? props.content.toString() : props.content | ||
); | ||
</script> |
Oops, something went wrong.