-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds new menu for custom groups
- Loading branch information
Showing
11 changed files
with
48 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template> | ||
<ul class="menu w-full p-0 text-[0.95rem]"> | ||
<li v-if="customGroups.length > 0"> | ||
<details open> | ||
<summary class="text-base-content/80 font-light"> | ||
<ph:bounding-box-fill /> | ||
{{ $t("label.groups-menu") }} | ||
</summary> | ||
<ul> | ||
<li v-for="group in customGroups" :key="group.name"> | ||
<router-link :to="{ name: '/group/[name]', params: { name: group.name } }" active-class="menu-active"> | ||
<ph:stack-simple /> | ||
<div class="truncate"> | ||
{{ group.name }} | ||
</div> | ||
</router-link> | ||
</li> | ||
</ul> | ||
</details> | ||
</li> | ||
</ul> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
const store = useSwarmStore(); | ||
const { customGroups } = storeToRefs(store); | ||
</script> | ||
<style scoped></style> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,5 +78,5 @@ watchEffect(() => { | |
</script> | ||
<route lang="yaml"> | ||
meta: | ||
containerMode: true | ||
menu: "host" | ||
</route> |
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 |
---|---|---|
|
@@ -22,5 +22,5 @@ watchEffect(() => { | |
</script> | ||
<route lang="yaml"> | ||
meta: | ||
swarmMode: true | ||
menu: group | ||
</route> |
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 |
---|---|---|
|
@@ -26,5 +26,5 @@ watchEffect(() => { | |
</script> | ||
<route lang="yaml"> | ||
meta: | ||
containerMode: true | ||
menu: host | ||
</route> |
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 |
---|---|---|
|
@@ -22,5 +22,5 @@ watchEffect(() => { | |
</script> | ||
<route lang="yaml"> | ||
meta: | ||
containerMode: true | ||
menu: host | ||
</route> |
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 |
---|---|---|
|
@@ -28,5 +28,5 @@ watchEffect(() => { | |
</script> | ||
<route lang="yaml"> | ||
meta: | ||
swarmMode: true | ||
menu: swarm | ||
</route> |
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 |
---|---|---|
|
@@ -28,5 +28,5 @@ watchEffect(() => { | |
</script> | ||
<route lang="yaml"> | ||
meta: | ||
swarmMode: true | ||
menu: swarm | ||
</route> |
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