Browse Source

update

master
zhaohe 8 months ago
parent
commit
97d62ab92e
  1. 6
      src/App.vue
  2. 6
      src/components/ServiceConfiguration.vue
  3. 4
      src/components/ServiceConfigurationActions.vue

6
src/App.vue

@ -1,6 +1,6 @@
<template> <template>
<a-layout class="h-full"> <a-layout class="h-full">
<a-layout-sider collapsible v-model:collapsed="isSiderCollapsed" @click="showSider">
<a-layout-sider collapsible v-model:collapsed="isSiderCollapsed">
<a-menu class="h-full" <a-menu class="h-full"
v-model:selectedKeys="menuSelectedKeys" v-model:selectedKeys="menuSelectedKeys"
:items="menuItems" :items="menuItems"
@ -9,7 +9,7 @@
></a-menu> ></a-menu>
</a-layout-sider> </a-layout-sider>
<a-layout> <a-layout>
<a-layout-content @click="hideSider">
<a-layout-content>
<service-configuration :service-key="activeServiceKey"></service-configuration> <service-configuration :service-key="activeServiceKey"></service-configuration>
</a-layout-content> </a-layout-content>
</a-layout> </a-layout>
@ -36,7 +36,7 @@ const isGuest = ref(false);
/** @var {String} */ /** @var {String} */
const password = ref(''); const password = ref('');
/** @var {Boolean} */ /** @var {Boolean} */
const isSiderCollapsed = ref(true);
const isSiderCollapsed = ref(false);
// on mounted // on mounted
onMounted(mounted); onMounted(mounted);

6
src/components/ServiceConfiguration.vue

@ -1,10 +1,10 @@
<template> <template>
<div class="h-full flex flex-col">
<div class="flex-grow">
<div >
<div >
<service-configuration-status-viewer :service-key="props.serviceKey" /> <service-configuration-status-viewer :service-key="props.serviceKey" />
<service-configuration-actions v-model:actionLog="actionLog" :service-key="props.serviceKey" /> <service-configuration-actions v-model:actionLog="actionLog" :service-key="props.serviceKey" />
</div> </div>
<div class="flex-none" style="display: none;">
<div style="display: none;">
<service-configuration-action-log :log="actionLog" /> <service-configuration-action-log :log="actionLog" />
</div> </div>
</div> </div>

4
src/components/ServiceConfigurationActions.vue

@ -147,8 +147,8 @@ async function actionServiceExecute(action) {
} }
.fixed-length-button { .fixed-length-button {
width: 230px;
/* Set a fixed width for the buttons */
min-width: 230px;
/* Set a minimum width for the buttons */
white-space: normal; white-space: normal;
word-break: break-word; word-break: break-word;
} }
Loading…
Cancel
Save