fix: Modify some version issues (#1582)

This commit is contained in:
xuanlid 2025-08-15 01:09:59 -07:00 committed by GitHub
parent 1811da29d8
commit 61bee59651
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 25 additions and 7 deletions

View File

@ -106,7 +106,9 @@ export default {
const toShowStep = () => {
if (!tinyGuideRef.value?.state?.tour?.isActive()) {
state.showStep = !state.showStep
setTimeout(() => {
state.showStep = !state.showStep
}, 1000)
state.helpBox = false
}
}

View File

@ -26,9 +26,9 @@
"homepage": "https://opentiny.design/tiny-engine",
"dependencies": {
"@opentiny/tiny-engine-meta-register": "workspace:*",
"@opentiny/tiny-robot": "0.3.0-alpha.14",
"@opentiny/tiny-robot-kit": "0.3.0-alpha.14",
"@opentiny/tiny-robot-svgs": "0.3.0-alpha.14",
"@opentiny/tiny-robot": "0.3.0-rc.0",
"@opentiny/tiny-robot-kit": "0.3.0-rc.0",
"@opentiny/tiny-robot-svgs": "0.3.0-rc.0",
"dompurify": "^3.0.1",
"highlight.js": "^11.11.1",
"markdown-it": "^14.1.0"

View File

@ -446,7 +446,7 @@ export default {
}
</script>
<style lang="less" scope>
<style lang="less" scoped>
.robot-img {
display: flex;
justify-content: center;
@ -466,12 +466,15 @@ export default {
}
}
.tiny-container {
:deep(.tiny-container) {
container-type: inline-size;
&.tr-container.tr-container {
top: var(--base-top-panel-height);
--tr-container-width: 400px;
.tr-container__dragging-bar {
display: none;
}
}
:deep(button.icon-btn) {

View File

@ -15,6 +15,7 @@
:market-category-options="[]"
:loading="loading"
:market-loading="marketLoading"
:show-market-tab="false"
@plugin-expand="handlePluginExpand"
@plugin-add="updateMcpServerStatus"
@plugin-toggle="handlePluginToggle"
@ -79,6 +80,13 @@ onMounted(() => {
display: none !important;
}
}
:deep(.mcp-server-picker__content-item) {
.plugin-card__operations {
.tiny-popconfirm {
display: none !important;
}
}
}
:deep(.mcp-server-picker__content) {
.tiny-tabs.tiny-tabs .tiny-tabs__header .tiny-tabs__nav {
@ -88,6 +96,9 @@ onMounted(() => {
border: none;
background-color: unset;
}
.tiny-tabs.tiny-tabs .tiny-tabs__header .tiny-tabs__nav {
width: 160px;
}
}
:deep(.tiny-tabs__content) {

View File

@ -50,7 +50,7 @@ const MOCK_SERVERS: PluginInfo[] = [
const mcpServers = ref<PluginInfo[]>([ENGINE_MCP_SERVER, ...MOCK_SERVERS])
const inUseMcpServers = ref<PluginInfo[]>([
{ ...ENGINE_MCP_SERVER, enabled: true, expanded: false, tools: [], toolCount: 0 }
{ ...ENGINE_MCP_SERVER, enabled: true, expanded: true, tools: [], toolCount: 0 }
])
const updateServerTools = (serverId: string, tools: PluginTool[]) => {
@ -114,6 +114,8 @@ const connectMcpServer = (_server: PluginInfo) => {}
const disconnectMcpServer = (_server: PluginInfo) => {}
const updateMcpServerStatus = async (server: PluginInfo, added: boolean) => {
// 市场添加状态修改
server.added = added
if (added) {
const newServer: PluginInfo = {
...server,