File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed
components/log/container-drawer Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 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+
4552function toggleFullscreen() {
4653 globalStore .isFullScreen = ! globalStore .isFullScreen ;
4754}
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff line change 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
129138import Terminal from ' @/views/website/runtime/components/terminal.vue' ;
130139import { disabledButton } from ' @/utils/runtime' ;
131140import { GlobalStore } from ' @/store' ;
141+ import router from ' @/routers/router' ;
132142const globalStore = GlobalStore ();
133143const 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+
368382onMounted (() => {
369383 search ();
370384});
You can’t perform that action at this time.
0 commit comments