⚡ 优化模块值.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// sftp 操作类型
|
||||
export const SftpOperatorType = {
|
||||
SFTP_MOVE: 'host-terminal:sftp-move',
|
||||
SFTP_CHMOD: 'host-terminal:sftp-chmod',
|
||||
SFTP_MOVE: 'terminal:sftp-move',
|
||||
SFTP_CHMOD: 'terminal:sftp-chmod',
|
||||
};
|
||||
|
||||
// 最大展示数量
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
</a-doption>
|
||||
<!-- SSH -->
|
||||
<a-doption v-if="record.type === hostType.SSH.type"
|
||||
v-permission="['asset:host-terminal:access']"
|
||||
v-permission="['asset:terminal:access']"
|
||||
@click="openNewRoute({ name: 'terminal', query: { connect: record.id, type: 'SSH' } })">
|
||||
<span class="more-doption normal">
|
||||
<icon-thunderbolt /> SSH
|
||||
@@ -192,7 +192,7 @@
|
||||
</a-doption>
|
||||
<!-- SFTP -->
|
||||
<a-doption v-if="record.type === hostType.SSH.type"
|
||||
v-permission="['asset:host-terminal:access']"
|
||||
v-permission="['asset:terminal:access']"
|
||||
@click="openNewRoute({ name: 'terminal', query: { connect: record.id, type: 'SFTP' } })">
|
||||
<span class="more-doption normal">
|
||||
<icon-folder /> SFTP
|
||||
|
||||
@@ -222,7 +222,7 @@
|
||||
</a-doption>
|
||||
<!-- SSH -->
|
||||
<a-doption v-if="record.type === hostType.SSH.type"
|
||||
v-permission="['asset:host-terminal:access']"
|
||||
v-permission="['asset:terminal:access']"
|
||||
@click="openNewRoute({ name: 'terminal', query: { connect: record.id, type: 'SSH' } })">
|
||||
<span class="more-doption normal">
|
||||
SSH
|
||||
@@ -230,7 +230,7 @@
|
||||
</a-doption>
|
||||
<!-- SFTP -->
|
||||
<a-doption v-if="record.type === hostType.SSH.type"
|
||||
v-permission="['asset:host-terminal:access']"
|
||||
v-permission="['asset:terminal:access']"
|
||||
@click="openNewRoute({ name: 'terminal', query: { connect: record.id, type: 'SFTP' } })">
|
||||
<span class="more-doption normal">
|
||||
SFTP
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import type { TerminalThemeSchema } from '@/api/asset/host-terminal';
|
||||
import type { TerminalThemeSchema } from '@/api/asset/terminal';
|
||||
import { Terminal } from '@xterm/xterm';
|
||||
import { onMounted, onUnmounted, ref } from 'vue';
|
||||
|
||||
|
||||
@@ -54,13 +54,13 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import type { TerminalTheme } from '@/api/asset/host-terminal';
|
||||
import type { TerminalTheme } from '@/api/asset/terminal';
|
||||
import type { ISshSession } from '../../../types/define';
|
||||
import { useTerminalStore } from '@/store';
|
||||
import { TerminalPreferenceItem } from '@/store/modules/terminal';
|
||||
import { PanelSessionType } from '../../../types/const';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { getTerminalThemes } from '@/api/asset/host-terminal';
|
||||
import { getTerminalThemes } from '@/api/asset/terminal';
|
||||
import { getPreference } from '@/api/user/preference';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import TerminalExample from '../terminal-example.vue';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { ISftpTransferHandler, ISftpTransferManager, SftpFile, SftpTransferItem, TransferOperatorResponse } from '../types/define';
|
||||
import { sessionCloseMsg, TransferReceiver, TransferStatus, TransferType } from '../types/const';
|
||||
import { Message } from '@arco-design/web-vue';
|
||||
import { getTerminalTransferToken, openHostTransferChannel } from '@/api/asset/host-terminal';
|
||||
import { getTerminalTransferToken, openHostTransferChannel } from '@/api/asset/terminal';
|
||||
import { nextId } from '@/utils';
|
||||
import SftpTransferUploader from './sftp-transfer-uploader';
|
||||
import SftpTransferDownloader from './sftp-transfer-downloader';
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { ITerminalChannel, ITerminalOutputProcessor, ITerminalSessionManage
|
||||
import type { InputPayload, Protocol } from '@/types/protocol/terminal.protocol';
|
||||
import { format, OutputProtocol, parse } from '@/types/protocol/terminal.protocol';
|
||||
import { sessionCloseMsg } from '../types/const';
|
||||
import { getTerminalAccessToken, openHostTerminalChannel } from '@/api/asset/host-terminal';
|
||||
import { getTerminalAccessToken, openHostTerminalChannel } from '@/api/asset/terminal';
|
||||
import { Message } from '@arco-design/web-vue';
|
||||
import TerminalOutputProcessor from './terminal-output-processor';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user