remove unused
This commit is contained in:
1 parent
301dab1ca5
commit
ea1c3413a5
88 files changed
+29
-5766
No files matched your search
@@ -12,9 +12,6 @@
|
||||
<span>
|
||||
{{ $t('application.field.api') }}
|
||||
</span>
|
||||
<span v-if="type === applicationType.PROXY">
|
||||
{{ $t('application.field.proxy') }}
|
||||
</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :label="$t('application.field.name')">
|
||||
{{ object?.title }}
|
||||
@@ -23,9 +20,6 @@
|
||||
<span v-if="type === applicationType.API">
|
||||
{{ object?.free_amount }}{{ $t(`api.unit.${object?.unit}`) }}
|
||||
</span>
|
||||
<span v-if="type === applicationType.PROXY">
|
||||
{{ object?.free_amount }}{{ $t(`proxy.unit.${object?.unit}`) }}
|
||||
</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<el-divider class="my-2" />
|
||||
@@ -43,7 +37,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElDialog, ElDescriptions, ElDescriptionsItem, ElDivider, ElCheckbox, ElButton, ElMessage } from 'element-plus';
|
||||
import { IApi, IApplicationType, IProxy } from '@/operators';
|
||||
import { IApi, IApplicationType } from '@/operators';
|
||||
import ApplicationPolicy from './Policy.vue';
|
||||
|
||||
interface IData {
|
||||
@@ -65,7 +59,7 @@ export default defineComponent({
|
||||
},
|
||||
props: {
|
||||
object: {
|
||||
type: Object as () => IApi | IProxy,
|
||||
type: Object as () => IApi,
|
||||
required: true
|
||||
},
|
||||
type: {
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
<template>
|
||||
<el-tooltip effect="dark" :content="$t('application.message.rotateCredential')" placement="top-start">
|
||||
<el-popconfirm
|
||||
:title="$t('application.message.rotateCredentialConfirm')"
|
||||
:confirm-button-text="$t('common.button.confirm')"
|
||||
:cancel-button-text="$t('common.button.cancel')"
|
||||
:width="290"
|
||||
@confirm="onConfirm"
|
||||
>
|
||||
<template #reference>
|
||||
<font-awesome-icon icon="fa-solid fa-arrows-rotate" class="icon-rotate" />
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { ElTooltip, ElPopconfirm } from 'element-plus';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'RotateCredential',
|
||||
components: {
|
||||
FontAwesomeIcon,
|
||||
ElTooltip,
|
||||
ElPopconfirm
|
||||
},
|
||||
emits: ['rotate'],
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
methods: {
|
||||
onConfirm() {
|
||||
this.$emit('rotate');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.icon-rotate {
|
||||
cursor: pointer;
|
||||
margin-left: 5px;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user