-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Frank Jogeleit <[email protected]>
- Loading branch information
Frank Jogeleit
committed
Dec 23, 2023
1 parent
71ddf53
commit 5774ce3
Showing
27 changed files
with
782 additions
and
241 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<v-container fluid class="py-4 px-4 main-height"> | ||
<v-row> | ||
<v-col> | ||
<v-card> | ||
<v-toolbar color="indigo-darken-4" elevation="2"> | ||
<v-toolbar-title>{{ title }}</v-toolbar-title> | ||
<template #append> | ||
<FormKindAutocomplete style="min-width: 300px; max-width: 100%; margin-right: 15px;" v-model="kinds" :source="source" /> | ||
<FormClusterKindAutocomplete v-if="!nsScoped" style="min-width: 300px;" v-model="clusterKinds" :source="source" /> | ||
</template> | ||
</v-toolbar> | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
<slot /> | ||
</v-container> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ClusterKinds, NamespacedKinds } from "~/modules/core/provider/dashboard"; | ||
const props = defineProps<{ title?: string; source?: string; nsScoped?: boolean; kinds?: string[]; clusterKinds?: string[] }>() | ||
const kinds = ref<string[]>(props.kinds ?? []) | ||
const clusterKinds = ref<string[]>(props.clusterKinds ?? []) | ||
provide(NamespacedKinds, kinds) | ||
provide(ClusterKinds, clusterKinds) | ||
const emit = defineEmits<{ | ||
'update:kinds': [kinds: string[]]; | ||
'update:clusterKinds': [kinds: string[]]; | ||
}>() | ||
watch(kinds, (k) => emit('update:kinds', [...k])) | ||
watch(clusterKinds, (k) => emit('update:clusterKinds', [...k])) | ||
</script> |
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
Oops, something went wrong.