2022-08-17 17:46:49 +08:00
|
|
|
<template>
|
2022-10-08 18:32:02 +08:00
|
|
|
<div>
|
2023-01-31 23:28:37 +08:00
|
|
|
<RouterButton :buttons="buttons" />
|
|
|
|
<LayoutContent>
|
|
|
|
<router-view></router-view>
|
|
|
|
</LayoutContent>
|
2022-10-08 18:32:02 +08:00
|
|
|
</div>
|
2022-08-17 17:46:49 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2023-01-31 23:28:37 +08:00
|
|
|
import i18n from '@/lang';
|
2022-12-28 11:54:26 +08:00
|
|
|
|
2023-01-31 23:28:37 +08:00
|
|
|
const buttons = [
|
|
|
|
{
|
|
|
|
label: i18n.global.t('container.container'),
|
|
|
|
path: '/containers/container',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('container.compose'),
|
|
|
|
path: '/containers/compose',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('container.image'),
|
|
|
|
path: '/containers/image',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('container.network'),
|
|
|
|
path: '/containers/network',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('container.volume'),
|
|
|
|
path: '/containers/volume',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('container.repo'),
|
|
|
|
path: '/containers/repo',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('container.composeTemplate'),
|
|
|
|
path: '/containers/template',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('container.setting'),
|
|
|
|
path: '/containers/setting',
|
|
|
|
},
|
|
|
|
];
|
2022-08-17 17:46:49 +08:00
|
|
|
</script>
|