@@ -39,7 +39,7 @@ const props = defineProps<{
3939// Generate service tabs from compose configuration
4040const serviceTabs = computed (() => {
4141 if (! props .compose ?.services ) return []
42-
42+
4343 return Object .entries (props .compose .services ).map (([serviceName , config ]) => ({
4444 title: ` ${serviceName } Configuration ` ,
4545 content: {
@@ -81,8 +81,8 @@ const setActiveTab = (index: number) => {
8181
8282type Direction = ' next' | ' prev'
8383const navigateTab = (direction : Direction ) => {
84- const newIndex = direction === ' next'
85- ? (currentIndex .value + 1 ) % allTabs .value .length
84+ const newIndex = direction === ' next'
85+ ? (currentIndex .value + 1 ) % allTabs .value .length
8686 : (currentIndex .value - 1 + allTabs .value .length ) % allTabs .value .length
8787 setActiveTab (newIndex )
8888}
@@ -97,7 +97,7 @@ const isLastTab = computed(() => currentIndex.value === allTabs.value.length - 1
9797<template >
9898 <div class =" tabs-container" >
9999 <div class =" tabs-navigation" >
100- <button
100+ <button
101101 class =" group nav-arrow"
102102 @click =" navigateTab('prev')"
103103 aria-label =" Previous tab"
@@ -117,7 +117,7 @@ const isLastTab = computed(() => currentIndex.value === allTabs.value.length - 1
117117 </button >
118118 </div >
119119
120- <button
120+ <button
121121 class =" group nav-arrow"
122122 @click =" navigateTab('next')"
123123 aria-label =" Next tab"
@@ -138,12 +138,12 @@ const isLastTab = computed(() => currentIndex.value === allTabs.value.length - 1
138138 <h3 class =" text-lg font-medium" >{{ tab.content.service.name }}</h3 >
139139 <code class =" text-sm block mt-2" >Image: {{ tab.content.service.image }}</code >
140140 </div >
141-
141+
142142 <div class =" env-vars" >
143143 <h4 class =" font-medium mb-3" >Environment Variables</h4 >
144144 <ul class =" env-list space-y-2" >
145- <li v-for =" env in tab.content.service.envVars"
146- :key =" env.name"
145+ <li v-for =" env in tab.content.service.envVars"
146+ :key =" env.name"
147147 class =" env-var flex items-start gap-2" >
148148 <code class =" text-sm px-2 py-1 bg-[var(--vp-c-bg-soft)] rounded shrink-0 text-[var(--vp-c-text-2)]" >{{ env.name }}</code >
149149 <span v-if =" env.value" class =" text-sm text-[var(--vp-c-text-2)]" >
@@ -161,12 +161,12 @@ const isLastTab = computed(() => currentIndex.value === allTabs.value.length - 1
161161 <h4 v-if =" tab.content.subtitle" class =" font-medium text-lg" >{{ tab.content.subtitle }}</h4 >
162162
163163 <ul v-if =" tab.content.items" class =" space-y-2" >
164- <li v-for =" (item, itemIndex) in tab.content.items"
164+ <li v-for =" (item, itemIndex) in tab.content.items"
165165 :key =" itemIndex"
166166 class =" flex items-center gap-2" >
167167 <template v-if =" item .icon && item .label " >
168168 <span class =" text-lg" >{{ item.icon }}</span >
169- <span class =" font-mono font-medium" >{{ item.label }}:</span >
169+ <span class =" font-mono font-medium" >{{ item.label }}:</span >
170170 <span >{{ item.value }}</span >
171171 </template >
172172 <template v-else-if =" item .code " >
@@ -192,7 +192,7 @@ const isLastTab = computed(() => currentIndex.value === allTabs.value.length - 1
192192 </div >
193193 </div >
194194</template >
195- <style >
195+ <style scoped >
196196.tabs-container {
197197 @apply my- 6;
198198}
0 commit comments