no message

This commit is contained in:
kuaifan 2025-05-11 23:12:16 +08:00
parent 1829ac851d
commit 2cfcb081a2
4 changed files with 15 additions and 45 deletions

View File

@ -24,6 +24,7 @@ class Apps
'ai', 'ai',
'face', 'face',
'search', 'search',
'appstore',
]; ];
/** /**
@ -583,8 +584,15 @@ class Apps
$savePath = dirname($filePath) . '/.docker-compose.local.yml'; $savePath = dirname($filePath) . '/.docker-compose.local.yml';
try { try {
// 读取文件内容
$fileContent = file_get_contents($filePath);
// 处理特殊环境变量
$fileContent = str_replace('${HOST_PWD}', '', $fileContent);
$fileContent = str_replace('${PUBLIC_PATH}', '${HOST_PWD}/public', $fileContent);
// 解析YAML文件 // 解析YAML文件
$content = Yaml::parseFile($filePath); $content = Yaml::parse($fileContent);
// 确保services部分存在 // 确保services部分存在
if (!isset($content['services'])) { if (!isset($content['services'])) {
@ -797,7 +805,7 @@ class Apps
*/ */
private static function curl($path): array private static function curl($path): array
{ {
$url = "http://host.docker.internal:" . env("APPS_PORT") . "/{$path}"; $url = "http://nginx/appstore/api/{$path}";
$extra = [ $extra = [
'Content-Type' => 'application/json', 'Content-Type' => 'application/json',
'Authorization' => 'Bearer ' . env('APP_KEY'), 'Authorization' => 'Bearer ' . env('APP_KEY'),

View File

@ -218,16 +218,15 @@ services:
ipv4_address: "${APP_IPPR}.15" ipv4_address: "${APP_IPPR}.15"
restart: unless-stopped restart: unless-stopped
apps: appstore:
container_name: "dootask-apps-${APP_ID}" container_name: "dootask-appstore-${APP_ID}"
privileged: true privileged: true
build: image: "kuaifan/dootask-appstore:0.0.1"
context: ../dooso
dockerfile: Dockerfile-cli
volumes: volumes:
- ./:/var/www - ./:/var/www
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
DOO_ENV: "/var/www"
HOST_PWD: "${PWD}" HOST_PWD: "${PWD}"
network_mode: host network_mode: host
restart: unless-stopped restart: unless-stopped

View File

@ -349,14 +349,6 @@
<ApproveDetails v-if="approveDetailsShow" :data="approveDetails" @onBack="approveDetailsShow=false"/> <ApproveDetails v-if="approveDetailsShow" :data="approveDetails" @onBack="approveDetailsShow=false"/>
</DrawerOverlay> </DrawerOverlay>
<!--应用商店-->
<DrawerOverlay
v-model="appStoreShow"
placement="right"
:size="1200">
<AppStore v-if="appStoreShow"/>
</DrawerOverlay>
<!--应用详情--> <!--应用详情-->
<MicroApps/> <MicroApps/>
</div> </div>
@ -383,7 +375,6 @@ import MicroApps from "../components/MicroApps";
import UserSelect from "../components/UserSelect.vue"; import UserSelect from "../components/UserSelect.vue";
import ImgUpload from "../components/ImgUpload.vue"; import ImgUpload from "../components/ImgUpload.vue";
import ApproveDetails from "./manage/approve/details.vue"; import ApproveDetails from "./manage/approve/details.vue";
import AppStore from "./manage/appstore/store.vue";
import notificationKoro from "notification-koro1"; import notificationKoro from "notification-koro1";
import emitter from "../store/events"; import emitter from "../store/events";
import SearchBox from "../components/SearchBox.vue"; import SearchBox from "../components/SearchBox.vue";
@ -392,7 +383,6 @@ export default {
components: { components: {
SearchBox, SearchBox,
ApproveDetails, ApproveDetails,
AppStore,
ImgUpload, ImgUpload,
UserSelect, UserSelect,
TaskExport, TaskExport,
@ -467,8 +457,6 @@ export default {
approveDetails: {id: 0}, approveDetails: {id: 0},
approveDetailsShow: false, approveDetailsShow: false,
appStoreShow: false,
} }
}, },
@ -1217,7 +1205,7 @@ export default {
this.settingRoute(act) this.settingRoute(act)
break; break;
case 'appstore': case 'appstore':
this.appStoreShow = true emitter.emit('openMicroApp', {name: 'appstore', url: $A.mainUrl('appstore/web/'), disableScopecss: true});
break; break;
} }
}, },

View File

@ -1,25 +0,0 @@
<template>
<div>
App Store
</div>
</template>
<script>
export default {
name: "store",
props: {
data: {
type: Object,
default() {
return {};
}
}
},
data() {
return {
}
}
}
</script>