Skip to content

Commit 64e74e8

Browse files
feat: Add directory redirection on the PHP runtime environment page (#9010)
1 parent f843438 commit 64e74e8

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

frontend/src/components/log/container-drawer/index.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</el-tooltip>
1313
</template>
1414
<template #content>
15-
<ContainerLog :container="config.container" />
15+
<ContainerLog :container="config.container" :highlightDiff="highlightDiff" />
1616
</template>
1717
<template #footer>
1818
<span class="dialog-footer">
@@ -42,6 +42,13 @@ const logSearch = reactive({
4242
tail: 100,
4343
});
4444
45+
defineProps({
46+
highlightDiff: {
47+
type: Number,
48+
default: 320,
49+
},
50+
});
51+
4552
function toggleFullscreen() {
4653
globalStore.isFullScreen = !globalStore.isFullScreen;
4754
}

frontend/src/views/container/container/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
<PruneDialog @search="search" ref="dialogPruneRef" />
352352

353353
<RenameDialog @search="search" ref="dialogRenameRef" />
354-
<ContainerLogDialog ref="dialogContainerLogRef" />
354+
<ContainerLogDialog ref="dialogContainerLogRef" :highlightDiff="235" />
355355
<UpgradeDialog @search="search" ref="dialogUpgradeRef" />
356356
<CommitDialog @search="search" ref="dialogCommitRef" />
357357
<MonitorDialog ref="dialogMonitorRef" />

frontend/src/views/website/runtime/php/index.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@
4343
</el-text>
4444
</template>
4545
</el-table-column>
46+
<el-table-column :label="$t('home.dir')" prop="codeDir" width="80px">
47+
<template #default="{ row }">
48+
<el-button type="primary" link @click="toFolder(row.path)">
49+
<el-icon>
50+
<FolderOpened />
51+
</el-icon>
52+
</el-button>
53+
</template>
54+
</el-table-column>
4655
<el-table-column :label="$t('app.source')" prop="resource">
4756
<template #default="{ row }">
4857
<span v-if="row.resource == 'appstore'">{{ $t('menu.apps') }}</span>
@@ -129,6 +138,7 @@ import RuntimeStatus from '@/views/website/runtime/components/runtime-status.vue
129138
import Terminal from '@/views/website/runtime/components/terminal.vue';
130139
import { disabledButton } from '@/utils/runtime';
131140
import { GlobalStore } from '@/store';
141+
import router from '@/routers/router';
132142
const globalStore = GlobalStore();
133143
const mobile = computed(() => {
134144
return globalStore.isMobile();
@@ -365,6 +375,10 @@ const onOpenBuildCache = () => {
365375
});
366376
};
367377
378+
const toFolder = (folder: string) => {
379+
router.push({ path: '/hosts/files', query: { path: folder } });
380+
};
381+
368382
onMounted(() => {
369383
search();
370384
});

0 commit comments

Comments
 (0)