Skip to content

Commit

Permalink
style(kong): change data store resource manager to tab view
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Jul 26, 2024
1 parent 2ea3fd2 commit ae76d7e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 12 deletions.
6 changes: 3 additions & 3 deletions components/MenuHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ const items = ref([
icon: "pi pi-warehouse",
items: [
{
label: "List Data Stores",
icon: "pi pi-database",
label: "List Resources",
icon: "pi pi-list",
route: "/data-stores",
},
{
label: "Create Data Store",
label: "Manage Links",
icon: "pi pi-plus",
route: "/data-stores/create",
},
Expand Down
4 changes: 2 additions & 2 deletions components/data-stores/DataStoreListLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function extractProjectIdFromPath(paths: string[]): string {
</script>

<template>
<div class="card">
<TabView style="margin-top: 40px">
<div class="card tabCard">
<TabView>
<TabPanel header="Detailed Data Store View">
<DetailedDataStoreTable :stores="dataStores" />
</TabPanel>
Expand Down
23 changes: 23 additions & 0 deletions components/data-stores/ResourceManagerLayout.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<script setup lang="ts">
import DataStoreCreator from "~/components/data-stores/managers/DataStoreCreator.vue";
import ProjectBinder from "~/components/data-stores/managers/ProjectBinder.vue";
import AnalysisBinder from "~/components/data-stores/managers/AnalysisBinder.vue";
</script>

<template>
<div class="card tabCard">
<TabView>
<TabPanel header="Create a Data Store">
<DataStoreCreator />
</TabPanel>
<TabPanel header="Bind a Project to a Data Store">
<ProjectBinder />
</TabPanel>
<TabPanel header="Link an Analysis to a Project">
<AnalysisBinder />
</TabPanel>
</TabView>
</div>
</template>

<style scoped lang="scss"></style>
8 changes: 2 additions & 6 deletions pages/data-stores/create.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<script setup lang="ts">
import DataStoreCreator from "~/components/data-stores/managers/DataStoreCreator.vue";
import ProjectBinder from "~/components/data-stores/managers/ProjectBinder.vue";
import AnalysisBinder from "~/components/data-stores/managers/AnalysisBinder.vue";
import ResourceManagerLayout from "~/components/data-stores/ResourceManagerLayout.vue";
definePageMeta({
middleware: ["auth"],
});
</script>

<template>
<DataStoreCreator />
<ProjectBinder />
<AnalysisBinder />
<ResourceManagerLayout />
</template>

<style scoped lang="scss"></style>
6 changes: 5 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import KeycloakAuth from "~/components/KeycloakAuth.vue";
</div>
</template>

<style scoped lang="scss">
<style lang="scss">
#home {
display: flex;
justify-content: center;
Expand All @@ -41,4 +41,8 @@ import KeycloakAuth from "~/components/KeycloakAuth.vue";
.row {
display: flex;
}
.tabCard {
margin-top: 40px;
}
</style>

0 comments on commit ae76d7e

Please sign in to comment.