fix: 补全缺失的组件引用 (#1181)

pull/1183/head
ssongliu 2023-05-29 18:10:56 +08:00 committed by GitHub
parent 10684f9aac
commit b5093e4d93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 29 additions and 10 deletions

View File

@ -17,14 +17,6 @@ export const logOutApi = () => {
return http.post<any>(`/auth/logout`);
};
export const entrance = (code: string) => {
return http.get<any>(`/${code}`);
};
export const loginStatus = () => {
return http.get<any>('/info');
};
export const checkIsSafety = (code: string) => {
return http.get<boolean>(`/auth/issafety?code=${code}`);
};

View File

@ -96,6 +96,7 @@ import { ElForm, ElMessage } from 'element-plus';
import { imageBuild } from '@/api/modules/container';
import { LoadFile } from '@/api/modules/files';
import { formatImageStdout } from '@/utils/docker';
import DrawerHeader from '@/components/drawer-header/index.vue';
const logVisiable = ref<boolean>(false);
const logInfo = ref();

View File

@ -51,6 +51,7 @@ import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import { FormInstance } from 'element-plus';
import { updateLogOption } from '@/api/modules/container';
import DrawerHeader from '@/components/drawer-header/index.vue';
const loading = ref();
const drawerVisiable = ref();

View File

@ -37,6 +37,7 @@ import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import ConfirmDialog from '@/components/confirm-dialog/index.vue';
import { updateDaemonJson } from '@/api/modules/container';
import DrawerHeader from '@/components/drawer-header/index.vue';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -37,6 +37,7 @@ import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import ConfirmDialog from '@/components/confirm-dialog/index.vue';
import { updateDaemonJson } from '@/api/modules/container';
import DrawerHeader from '@/components/drawer-header/index.vue';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -44,6 +44,7 @@ import { FormInstance, FormRules } from 'element-plus';
import { reactive, ref } from 'vue';
import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import DrawerHeader from '@/components/drawer-header/index.vue';
interface OwnerProps {
path: string;

View File

@ -39,6 +39,7 @@ import { reactive, ref } from 'vue';
import { File } from '@/api/interface/file';
import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import DrawerHeader from '@/components/drawer-header/index.vue';
interface RenameProps {
path: string;

View File

@ -41,6 +41,7 @@ import { MsgSuccess } from '@/utils/message';
import { FormInstance } from 'element-plus';
import { Rules, checkNumberRange } from '@/global/form-rules';
import { updateSetting } from '@/api/modules/setting';
import DrawerHeader from '@/components/drawer-header/index.vue';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -41,6 +41,7 @@ import { MsgSuccess } from '@/utils/message';
import { FormInstance } from 'element-plus';
import { Rules, checkNumberRange } from '@/global/form-rules';
import { updateSetting } from '@/api/modules/setting';
import DrawerHeader from '@/components/drawer-header/index.vue';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -41,6 +41,7 @@ import { MsgSuccess } from '@/utils/message';
import { ElMessageBox, FormInstance } from 'element-plus';
import { Rules } from '@/global/form-rules';
import { updateSSH } from '@/api/modules/host';
import DrawerHeader from '@/components/drawer-header/index.vue';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -35,6 +35,7 @@ import { reactive, ref } from 'vue';
import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import { ElMessageBox, FormInstance } from 'element-plus';
import DrawerHeader from '@/components/drawer-header/index.vue';
import { Rules } from '@/global/form-rules';
import { updateSSH } from '@/api/modules/host';

View File

@ -67,6 +67,7 @@ import { MsgError, MsgSuccess } from '@/utils/message';
import { dateFormatForName, getRandomStr } from '@/utils/util';
import useClipboard from 'vue-clipboard3';
import { FormInstance } from 'element-plus';
import DrawerHeader from '@/components/drawer-header/index.vue';
import { reactive, ref } from 'vue';
const { toClipboard } = useClipboard();

View File

@ -41,6 +41,7 @@ import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import { ElMessageBox, FormInstance } from 'element-plus';
import { updateSSH } from '@/api/modules/host';
import DrawerHeader from '@/components/drawer-header/index.vue';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -35,6 +35,7 @@ import type { ElForm } from 'element-plus';
import { Rules } from '@/global/form-rules';
import { editHostGroup } from '@/api/modules/host';
import { GetGroupList } from '@/api/modules/group';
import DrawerHeader from '@/components/drawer-header/index.vue';
import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';

View File

@ -93,6 +93,7 @@ import { ref, reactive, watch } from 'vue';
import type { ElForm } from 'element-plus';
import { Rules } from '@/global/form-rules';
import { addHost, editHost, testByInfo } from '@/api/modules/host';
import DrawerHeader from '@/components/drawer-header/index.vue';
import { GetGroupList } from '@/api/modules/group';
import i18n from '@/lang';
import { MsgError, MsgSuccess } from '@/utils/message';

View File

@ -22,7 +22,7 @@
placeholder="None data"
:indent-with-tab="true"
:tabSize="4"
style="height: calc(100vh - 240px)"
style="height: calc(100vh - 290px)"
:lineWrapping="true"
:matchBrackets="true"
theme="cobalt"

View File

@ -37,7 +37,7 @@
</template>
<template #main>
<Codemirror
style="height: calc(100vh - 430px); width: 100%"
style="height: calc(100vh - 368px); width: 100%"
:autofocus="true"
:placeholder="$t('website.noLog')"
:indent-with-tab="true"

View File

@ -32,6 +32,7 @@ import { updateSetting } from '@/api/modules/setting';
import { FormInstance } from 'element-plus';
import { Rules } from '@/global/form-rules';
import { GlobalStore } from '@/store';
import DrawerHeader from '@/components/drawer-header/index.vue';
const globalStore = GlobalStore();
const themeConfig = computed(() => globalStore.themeConfig);

View File

@ -43,6 +43,7 @@ import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import { syncTime } from '@/api/modules/setting';
import { ElMessageBox, FormInstance } from 'element-plus';
import DrawerHeader from '@/components/drawer-header/index.vue';
import { Rules } from '@/global/form-rules';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -37,6 +37,7 @@ import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import { FormInstance } from 'element-plus';
import { Rules, checkNumberRange } from '@/global/form-rules';
import DrawerHeader from '@/components/drawer-header/index.vue';
import { updateSetting } from '@/api/modules/setting';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -69,6 +69,7 @@ import { ElMessageBox, FormInstance } from 'element-plus';
import { Rules } from '@/global/form-rules';
import router from '@/routers';
import { GlobalStore } from '@/store';
import DrawerHeader from '@/components/drawer-header/index.vue';
const globalStore = GlobalStore();
interface DialogProps {

View File

@ -33,6 +33,7 @@ import { ElMessageBox, FormInstance } from 'element-plus';
import { Rules } from '@/global/form-rules';
import { logOutApi } from '@/api/modules/auth';
import router from '@/routers';
import DrawerHeader from '@/components/drawer-header/index.vue';
import { GlobalStore } from '@/store';
const globalStore = GlobalStore();

View File

@ -36,6 +36,7 @@ import { MsgError, MsgSuccess } from '@/utils/message';
import { updateSetting } from '@/api/modules/setting';
import { ElMessageBox } from 'element-plus';
import { checkIp } from '@/utils/util';
import DrawerHeader from '@/components/drawer-header/index.vue';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -38,6 +38,7 @@ import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import { updateSetting } from '@/api/modules/setting';
import { ElMessageBox, FormInstance } from 'element-plus';
import DrawerHeader from '@/components/drawer-header/index.vue';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -46,6 +46,7 @@ import { updateSetting } from '@/api/modules/setting';
import { GlobalStore } from '@/store';
import { getRandomStr } from '@/utils/util';
import { FormInstance } from 'element-plus';
import DrawerHeader from '@/components/drawer-header/index.vue';
const globalStore = GlobalStore();
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -69,6 +69,7 @@ import { Rules } from '@/global/form-rules';
import i18n from '@/lang';
import { MsgError, MsgSuccess } from '@/utils/message';
import { FormInstance } from 'element-plus';
import DrawerHeader from '@/components/drawer-header/index.vue';
import useClipboard from 'vue-clipboard3';
const { toClipboard } = useClipboard();

View File

@ -32,6 +32,7 @@ import { updatePort } from '@/api/modules/setting';
import { ElMessageBox, FormInstance } from 'element-plus';
import { Rules } from '@/global/form-rules';
import { GlobalStore } from '@/store';
import DrawerHeader from '@/components/drawer-header/index.vue';
const globalStore = GlobalStore();
interface DialogProps {

View File

@ -112,6 +112,7 @@ import { DownloadByPath } from '@/api/modules/files';
import { Rules } from '@/global/form-rules';
import { ElMessageBox, FormInstance } from 'element-plus';
import { Setting } from '@/api/interface/setting';
import DrawerHeader from '@/components/drawer-header/index.vue';
import { GlobalStore } from '@/store';
const globalStore = GlobalStore();

View File

@ -35,6 +35,7 @@ import { MsgSuccess } from '@/utils/message';
import { updateSetting } from '@/api/modules/setting';
import { FormInstance } from 'element-plus';
import { Rules, checkNumberRange } from '@/global/form-rules';
import DrawerHeader from '@/components/drawer-header/index.vue';
import i18n from '@/lang';
const emit = defineEmits<{ (e: 'search'): void }>();

View File

@ -127,6 +127,7 @@ import { FormInstance } from 'element-plus';
import { reactive, ref } from 'vue';
import Params from '../param/index.vue';
import EditParams from '../edit/index.vue';
import DrawerHeader from '@/components/drawer-header/index.vue';
interface OperateRrops {
id?: number;