Skip to content

Commit

Permalink
chore: format frontend code
Browse files Browse the repository at this point in the history
  • Loading branch information
D-D-H committed Mar 5, 2024
1 parent 0a0ea9c commit 4ecc5b9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
35 changes: 22 additions & 13 deletions frontend/src/components/forms/FileTransferForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@
SPDX-License-Identifier: EPL-2.0
-->
<script setup lang="ts">
import {useClipboard} from '@vueuse/core';
import {Connection, CopyDocument, Document, Link, Upload, UploadFilled} from '@element-plus/icons-vue';
import {fileTypeMap} from '@/composables/file-types';
import { useClipboard } from '@vueuse/core';
import {
Connection,
CopyDocument,
Document,
Link,
Upload,
UploadFilled
} from '@element-plus/icons-vue';
import { fileTypeMap } from '@/composables/file-types';
import axios from 'axios';
import {useEnv} from '@/stores/env';
import {t} from '@/i18n/i18n';
import { useEnv } from '@/stores/env';
import { t } from '@/i18n/i18n';

defineProps({
visible: Boolean
Expand Down Expand Up @@ -269,16 +276,16 @@ function isEnabled(method: string) {
}

const dialogWidth = computed(() => {
return env.disabledFileTransferMethods.length > 0 ? '640px' : '710px'
})
return env.disabledFileTransferMethods.length > 0 ? '640px' : '710px';
});
</script>
<template>
<el-dialog
:model-value="visible"
@update:model-value="(newValue: boolean) => $emit('update:visible', newValue)"
:before-close="close"
:title="t('file.new')"
:width="dialogWidth"
:model-value="visible"
@update:model-value="(newValue: boolean) => $emit('update:visible', newValue)"
:before-close="close"
:title="t('file.new')"
:width="dialogWidth"
>
<el-form
label-position="right"
Expand Down Expand Up @@ -335,7 +342,9 @@ const dialogWidth = computed(() => {

<el-radio-button
label="TEXT"
:disabled="(params.type as String) === 'HEAP_DUMP' || (params.type as String) === 'JFR_FILE'"
:disabled="
(params.type as String) === 'HEAP_DUMP' || (params.type as String) === 'JFR_FILE'
"
v-if="isEnabled('TEXT')"
>
<div class="ej-file-transfer-method-button">
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/heapdump/DuplicateClasses.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
-->
<script setup lang="ts">
import CommonTable from '@/components/heapdump/CommonTable.vue';
import {getIcon, ICONS} from '@/components/heapdump/icon-helper';
import {prettyCount} from '@/support/utils';
import {useSelectedObject} from '@/composables/heapdump/selected-object';
import {OBJECT_TYPE} from '@/components/heapdump/type';
import {Search} from '@element-plus/icons-vue';
import { getIcon, ICONS } from '@/components/heapdump/icon-helper';
import { prettyCount } from '@/support/utils';
import { useSelectedObject } from '@/composables/heapdump/selected-object';
import { OBJECT_TYPE } from '@/components/heapdump/type';
import { Search } from '@element-plus/icons-vue';

const { selectedObjectId } = useSelectedObject();

Expand Down Expand Up @@ -129,4 +129,4 @@ const tableProps = ref({
:deep(.el-input-group__prepend) {
background-color: var(--el-fill-color-blank);
}
</style>
</style>

0 comments on commit 4ecc5b9

Please sign in to comment.