mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-16 16:00:42 +00:00
feat: Optimize frontend structure (#12475)
This commit is contained in:
@@ -127,7 +127,8 @@ import { ElForm } from 'element-plus';
|
||||
import { getDatabase, updatePostgresqlPassword } from '@/api/modules/database';
|
||||
import { getAppConnInfo } from '@/api/modules/app';
|
||||
import { MsgSuccess } from '@/utils/message';
|
||||
import { getRandomStr, copyText } from '@/utils/util';
|
||||
import { getRandomStr } from '@/utils/id';
|
||||
import { copyText } from '@/utils/clipboard';
|
||||
import { getAgentSettingInfo } from '@/api/modules/setting';
|
||||
import { GlobalStore } from '@/store';
|
||||
const globalStore = GlobalStore();
|
||||
|
||||
@@ -49,8 +49,7 @@ import i18n from '@/lang';
|
||||
import { ElForm } from 'element-plus';
|
||||
import { addPostgresqlDB } from '@/api/modules/database';
|
||||
import { MsgSuccess } from '@/utils/message';
|
||||
import { getRandomStr } from '@/utils/util';
|
||||
|
||||
import { getRandomStr } from '@/utils/id';
|
||||
const loading = ref();
|
||||
const createVisible = ref(false);
|
||||
const form = reactive({
|
||||
|
||||
@@ -246,7 +246,7 @@ import Backups from '@/components/backup/index.vue';
|
||||
import UploadDialog from '@/components/upload/index.vue';
|
||||
import PortJumpDialog from '@/components/port-jump/index.vue';
|
||||
import Tooltip from '@/components/tooltip/index.vue';
|
||||
import { dateFormat } from '@/utils/util';
|
||||
import { dateFormat } from '@/utils/date';
|
||||
import { computed, onMounted, reactive, ref } from 'vue';
|
||||
import {
|
||||
deleteCheckPostgresqlDB,
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { dateFormat } from '@/utils/util';
|
||||
import { dateFormat } from '@/utils/date';
|
||||
import { onMounted, reactive, ref } from 'vue';
|
||||
import { deleteCheckDatabase, searchDatabases } from '@/api/modules/database';
|
||||
import AppResources from '@/views/database/postgresql/check/index.vue';
|
||||
|
||||
Reference in New Issue
Block a user