mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 21:38:57 +08:00
feat: Add directory redirection on the PHP runtime environment page (#9010)
This commit is contained in:
parent
f843438baf
commit
64e74e87c4
3 changed files with 23 additions and 2 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<ContainerLog :container="config.container" />
|
<ContainerLog :container="config.container" :highlightDiff="highlightDiff" />
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
|
|
@ -42,6 +42,13 @@ const logSearch = reactive({
|
||||||
tail: 100,
|
tail: 100,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
defineProps({
|
||||||
|
highlightDiff: {
|
||||||
|
type: Number,
|
||||||
|
default: 320,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
function toggleFullscreen() {
|
function toggleFullscreen() {
|
||||||
globalStore.isFullScreen = !globalStore.isFullScreen;
|
globalStore.isFullScreen = !globalStore.isFullScreen;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -351,7 +351,7 @@
|
||||||
<PruneDialog @search="search" ref="dialogPruneRef" />
|
<PruneDialog @search="search" ref="dialogPruneRef" />
|
||||||
|
|
||||||
<RenameDialog @search="search" ref="dialogRenameRef" />
|
<RenameDialog @search="search" ref="dialogRenameRef" />
|
||||||
<ContainerLogDialog ref="dialogContainerLogRef" />
|
<ContainerLogDialog ref="dialogContainerLogRef" :highlightDiff="235" />
|
||||||
<UpgradeDialog @search="search" ref="dialogUpgradeRef" />
|
<UpgradeDialog @search="search" ref="dialogUpgradeRef" />
|
||||||
<CommitDialog @search="search" ref="dialogCommitRef" />
|
<CommitDialog @search="search" ref="dialogCommitRef" />
|
||||||
<MonitorDialog ref="dialogMonitorRef" />
|
<MonitorDialog ref="dialogMonitorRef" />
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,15 @@
|
||||||
</el-text>
|
</el-text>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column :label="$t('home.dir')" prop="codeDir" width="80px">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-button type="primary" link @click="toFolder(row.path)">
|
||||||
|
<el-icon>
|
||||||
|
<FolderOpened />
|
||||||
|
</el-icon>
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column :label="$t('app.source')" prop="resource">
|
<el-table-column :label="$t('app.source')" prop="resource">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span v-if="row.resource == 'appstore'">{{ $t('menu.apps') }}</span>
|
<span v-if="row.resource == 'appstore'">{{ $t('menu.apps') }}</span>
|
||||||
|
|
@ -129,6 +138,7 @@ import RuntimeStatus from '@/views/website/runtime/components/runtime-status.vue
|
||||||
import Terminal from '@/views/website/runtime/components/terminal.vue';
|
import Terminal from '@/views/website/runtime/components/terminal.vue';
|
||||||
import { disabledButton } from '@/utils/runtime';
|
import { disabledButton } from '@/utils/runtime';
|
||||||
import { GlobalStore } from '@/store';
|
import { GlobalStore } from '@/store';
|
||||||
|
import router from '@/routers/router';
|
||||||
const globalStore = GlobalStore();
|
const globalStore = GlobalStore();
|
||||||
const mobile = computed(() => {
|
const mobile = computed(() => {
|
||||||
return globalStore.isMobile();
|
return globalStore.isMobile();
|
||||||
|
|
@ -365,6 +375,10 @@ const onOpenBuildCache = () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const toFolder = (folder: string) => {
|
||||||
|
router.push({ path: '/hosts/files', query: { path: folder } });
|
||||||
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
search();
|
search();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue