-
{{ $t('container.serviceUnavailable') }}
@@ -8,22 +7,27 @@
{{ $t('container.startIn') }}
-
-
+
+
+
+
+ {{ $t('container.createNetwork') }}
+
+
+ {{ $t('commons.button.delete') }}
+
+
+
-
-
- {{ $t('commons.button.create') }}
-
-
- {{ $t('commons.button.delete') }}
-
-
-
-
+
+
@@ -80,7 +84,6 @@ import LayoutContent from '@/layout/layout-content.vue';
import ComplexTable from '@/components/complex-table/index.vue';
import CreateDialog from '@/views/container/network/create/index.vue';
import CodemirrorDialog from '@/components/codemirror-dialog/codemirror.vue';
-import Submenu from '@/views/container/index.vue';
import { reactive, onMounted, ref } from 'vue';
import { dateFormat } from '@/utils/util';
import { deleteNetwork, searchNetwork, inspect, loadDockerStatus } from '@/api/modules/container';
@@ -89,6 +92,8 @@ import i18n from '@/lang';
import { useDeleteData } from '@/hooks/use-delete-data';
import router from '@/routers';
+const loading = ref();
+
const detailInfo = ref();
const codemirror = ref();
@@ -130,13 +135,19 @@ const search = async () => {
page: paginationConfig.currentPage,
pageSize: paginationConfig.pageSize,
};
- await searchNetwork(params).then((res) => {
- data.value = res.data.items || [];
- for (const item of data.value) {
- item.isSystem = isSystem(item.name);
- }
- paginationConfig.total = res.data.total;
- });
+ loading.value = true;
+ await searchNetwork(params)
+ .then((res) => {
+ loading.value = false;
+ data.value = res.data.items || [];
+ for (const item of data.value) {
+ item.isSystem = isSystem(item.name);
+ }
+ paginationConfig.total = res.data.total;
+ })
+ .catch(() => {
+ loading.value = false;
+ });
};
const batchDelete = async (row: Container.NetworkInfo | null) => {
diff --git a/frontend/src/views/container/repo/index.vue b/frontend/src/views/container/repo/index.vue
index 0521aa60d..b7b15e93c 100644
--- a/frontend/src/views/container/repo/index.vue
+++ b/frontend/src/views/container/repo/index.vue
@@ -1,6 +1,5 @@
-
{{ $t('container.serviceUnavailable') }}
@@ -8,22 +7,23 @@
{{ $t('container.startIn') }}
-
-
+
+
+
+
+ {{ $t('container.createRepo') }}
+
+
+ {{ $t('commons.button.delete') }}
+
+
+
-
-
- {{ $t('commons.button.create') }}
-
-
- {{ $t('commons.button.delete') }}
-
-
- {{ dateFormatSimple(row.createdAt) }}
+ {{ dateFormatSimple(row.createdAt) }}
-
-
+
+
@@ -63,7 +63,6 @@ import LayoutContent from '@/layout/layout-content.vue';
import ComplexTable from '@/components/complex-table/index.vue';
import OperatorDialog from '@/views/container/repo/operator/index.vue';
import DeleteDialog from '@/views/container/repo/delete/index.vue';
-import Submenu from '@/views/container/index.vue';
import { reactive, onMounted, ref } from 'vue';
import { dateFormatSimple } from '@/utils/util';
import { Container } from '@/api/interface/container';
@@ -71,6 +70,7 @@ import { loadDockerStatus, searchImageRepo } from '@/api/modules/container';
import i18n from '@/lang';
import router from '@/routers';
+const loading = ref();
const data = ref();
const selects = ref([]);
const paginationConfig = reactive({
@@ -96,10 +96,16 @@ const search = async () => {
page: paginationConfig.currentPage,
pageSize: paginationConfig.pageSize,
};
- await searchImageRepo(params).then((res) => {
- data.value = res.data.items || [];
- paginationConfig.total = res.data.total;
- });
+ loading.value = true;
+ await searchImageRepo(params)
+ .then((res) => {
+ loading.value = false;
+ data.value = res.data.items || [];
+ paginationConfig.total = res.data.total;
+ })
+ .catch(() => {
+ loading.value = false;
+ });
};
function selectable(row) {
diff --git a/frontend/src/views/container/setting/index.vue b/frontend/src/views/container/setting/index.vue
index a46b52d5e..5da9ba98b 100644
--- a/frontend/src/views/container/setting/index.vue
+++ b/frontend/src/views/container/setting/index.vue
@@ -1,6 +1,5 @@
-
-
+
@@ -49,8 +48,9 @@
-
-
+
+
+
{{ $t('database.baseConf') }}
{{ $t('database.allConf') }}
@@ -114,8 +114,8 @@
{{ $t('commons.button.save') }}
-
-
+
+
@@ -124,7 +124,6 @@
diff --git a/frontend/src/views/database/mysql/index.vue b/frontend/src/views/database/mysql/index.vue
index e8f7f450e..7e3f51f46 100644
--- a/frontend/src/views/database/mysql/index.vue
+++ b/frontend/src/views/database/mysql/index.vue
@@ -1,105 +1,97 @@
-
-
-
+
+
+
+
-
- {{ $t('commons.service.serviceNotStarted', ['Mysql']) }}
-
-
-
- {{ $t('database.create') }}
-
-
- {{ $t('database.rootPassword') }}
-
-
- {{ $t('database.remoteAccess') }}
-
- phpMyAdmin
-
-
-
-
-
-
-
-
-
-
-
- ***********
-
-
-
-
-
-
-
{{ row.password }}
-
-
-
-
-
-
-
-
-
-
+
+
+ {{ $t('database.create') }}
+
+
+ {{ $t('database.rootPassword') }}
+
+
+ {{ $t('database.remoteAccess') }}
+
+ phpMyAdmin
+
+
+
+
+
+
+
+
+
***********
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {{ row.password }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('commons.service.serviceNotStarted', ['Mysql']) }}
+
+
+
+