feat: Added Docker detection to the runtime environment (#9596)

This commit is contained in:
CityFun 2025-07-22 10:32:14 +08:00 committed by GitHub
parent 3334bf594d
commit 7994193a39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 30 additions and 7 deletions

View file

@ -1,7 +1,8 @@
<template>
<div>
<RouterMenu />
<LayoutContent :title="'.NET'" v-loading="loading">
<DockerStatus v-model:isActive="isActive" v-model:isExist="isExist" />
<LayoutContent v-loading="loading" v-if="isExist" :class="{ mask: !isActive }">
<template #leftToolBar>
<el-button type="primary" @click="openCreate">
{{ $t('runtime.create') }}
@ -111,6 +112,7 @@ import { GlobalStore } from '@/store';
import RuntimeStatus from '@/views/website/runtime/components/runtime-status.vue';
import PortJump from '@/views/website/runtime/components/port-jump.vue';
import Terminal from '@/views/website/runtime/components/terminal.vue';
import DockerStatus from '@/views/container/docker-status/index.vue';
import { disabledButton } from '@/utils/runtime';
import { operateRuntime, updateRuntimeRemark } from '../common/utils';
@ -122,6 +124,8 @@ const dialogPortJumpRef = ref();
const composeLogRef = ref();
const checkRef = ref();
const terminalRef = ref();
const isActive = ref(false);
const isExist = ref(false);
const globalStore = GlobalStore();
const mobile = computed(() => {

View file

@ -1,7 +1,8 @@
<template>
<div>
<RouterMenu />
<LayoutContent :title="'Go'" v-loading="loading">
<DockerStatus v-model:isActive="isActive" v-model:isExist="isExist" />
<LayoutContent v-loading="loading" v-if="isExist" :class="{ mask: !isActive }">
<template #leftToolBar>
<el-button type="primary" @click="openCreate">
{{ $t('runtime.create') }}
@ -110,6 +111,7 @@ import AppResources from '@/views/website/runtime/php/check/index.vue';
import RuntimeStatus from '@/views/website/runtime/components/runtime-status.vue';
import PortJump from '@/views/website/runtime/components/port-jump.vue';
import Terminal from '@/views/website/runtime/components/terminal.vue';
import DockerStatus from '@/views/container/docker-status/index.vue';
import { disabledButton } from '@/utils/runtime';
import { GlobalStore } from '@/store';
import { operateRuntime, updateRuntimeRemark } from '../common/utils';
@ -126,6 +128,8 @@ const dialogPortJumpRef = ref();
const composeLogRef = ref();
const checkRef = ref();
const terminalRef = ref();
const isActive = ref(false);
const isExist = ref(false);
const paginationConfig = reactive({
cacheSizeKey: 'runtime-page-size',

View file

@ -1,7 +1,8 @@
<template>
<div>
<RouterMenu />
<LayoutContent :title="'Java'" v-loading="loading">
<DockerStatus v-model:isActive="isActive" v-model:isExist="isExist" />
<LayoutContent v-loading="loading" v-if="isExist" :class="{ mask: !isActive }">
<template #leftToolBar>
<el-button type="primary" @click="openCreate">
{{ $t('runtime.create') }}
@ -110,6 +111,7 @@ import AppResources from '@/views/website/runtime/php/check/index.vue';
import RuntimeStatus from '@/views/website/runtime/components/runtime-status.vue';
import PortJump from '@/views/website/runtime/components/port-jump.vue';
import Terminal from '@/views/website/runtime/components/terminal.vue';
import DockerStatus from '@/views/container/docker-status/index.vue';
import { disabledButton } from '@/utils/runtime';
import { GlobalStore } from '@/store';
import { operateRuntime, updateRuntimeRemark } from '../common/utils';
@ -126,6 +128,8 @@ const dialogPortJumpRef = ref();
const composeLogRef = ref();
const checkRef = ref();
const terminalRef = ref();
const isActive = ref(false);
const isExist = ref(false);
const paginationConfig = reactive({
cacheSizeKey: 'runtime-page-size',

View file

@ -1,7 +1,8 @@
<template>
<div>
<RouterMenu />
<LayoutContent :title="'Node.js'" v-loading="loading">
<DockerStatus v-model:isActive="isActive" v-model:isExist="isExist" />
<LayoutContent v-loading="loading" v-if="isExist" :class="{ mask: !isActive }">
<template #leftToolBar>
<el-button type="primary" @click="openCreate">
{{ $t('runtime.create') }}
@ -112,6 +113,7 @@ import AppResources from '@/views/website/runtime/php/check/index.vue';
import RuntimeStatus from '@/views/website/runtime/components/runtime-status.vue';
import PortJump from '@/views/website/runtime/components/port-jump.vue';
import Terminal from '@/views/website/runtime/components/terminal.vue';
import DockerStatus from '@/views/container/docker-status/index.vue';
import { disabledButton } from '@/utils/runtime';
import { GlobalStore } from '@/store';
import { operateRuntime, updateRuntimeRemark } from '../common/utils';
@ -129,6 +131,8 @@ const composeLogRef = ref();
const moduleRef = ref();
const checkRef = ref();
const terminalRef = ref();
const isActive = ref(false);
const isExist = ref(false);
const paginationConfig = reactive({
cacheSizeKey: 'runtime-page-size',

View file

@ -1,8 +1,8 @@
<template>
<div>
<RouterMenu />
<LayoutContent :title="'PHP'" v-loading="loading">
<template #prompt></template>
<DockerStatus v-model:isActive="isActive" v-model:isExist="isExist" />
<LayoutContent v-loading="loading" v-if="isExist" :class="{ mask: !isActive }">
<template #leftToolBar>
<el-button type="primary" @click="openCreate">
{{ $t('runtime.create') }}
@ -151,6 +151,7 @@ import Terminal from '@/views/website/runtime/components/terminal.vue';
import { disabledButton } from '@/utils/runtime';
import { GlobalStore } from '@/store';
import router from '@/routers/router';
import DockerStatus from '@/views/container/docker-status/index.vue';
import { operateRuntime, updateRuntimeRemark } from '../common/utils';
const globalStore = GlobalStore();
const mobile = computed(() => {
@ -181,6 +182,8 @@ const composeLogRef = ref();
const configRef = ref();
const supervisorRef = ref();
const terminalRef = ref();
const isActive = ref(false);
const isExist = ref(false);
const buttons = [
{

View file

@ -1,7 +1,8 @@
<template>
<div>
<RouterMenu />
<LayoutContent :title="'Python'" v-loading="loading">
<DockerStatus v-model:isActive="isActive" v-model:isExist="isExist" />
<LayoutContent v-loading="loading" v-if="isExist" :class="{ mask: !isActive }">
<template #leftToolBar>
<el-button type="primary" @click="openCreate">
{{ $t('runtime.create') }}
@ -110,6 +111,7 @@ import AppResources from '@/views/website/runtime/php/check/index.vue';
import RuntimeStatus from '@/views/website/runtime/components/runtime-status.vue';
import PortJump from '@/views/website/runtime/components/port-jump.vue';
import Terminal from '@/views/website/runtime/components/terminal.vue';
import DockerStatus from '@/views/container/docker-status/index.vue';
import { disabledButton } from '@/utils/runtime';
import { GlobalStore } from '@/store';
import { operateRuntime, updateRuntimeRemark } from '../common/utils';
@ -126,6 +128,8 @@ const dialogPortJumpRef = ref();
const composeLogRef = ref();
const checkRef = ref();
const terminalRef = ref();
const isActive = ref(false);
const isExist = ref(false);
const paginationConfig = reactive({
cacheSizeKey: 'runtime-page-size',