Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion packages/common/src/config/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import tinyAi from '../../../home/public/images/logo-ai-extension.svg'
import tinyTech from '../../../home/public/images/logo-tech.svg'
import tinyEngine from '../assets/appIcon/tiny-engine.svg'
import tinySdks from '../assets/appIcon/next-sdk.svg'
import tinyPro from '../assets/appIcon/tiny-pro.svg'
import tinyVue from '../assets/appIcon/tiny-vue.svg'
import tinyRobot from '../assets/appIcon/tiny-robot.svg'
import sketch from '../../../home/public/images/logo-sketch.svg'
Expand Down Expand Up @@ -103,6 +104,13 @@ const menuItems = [
hide: true,
logo: tinySdks,
github: 'https://github.com/opentiny/playground'
},
{
title: 'TinyPro',
desc: '中后台解决方案',
href: 'https://opentiny.design/vue-pro/pages',
logo: tinyPro,
github: 'https://github.com/opentiny/tiny-pro'
}
]
},
Expand Down Expand Up @@ -133,11 +141,25 @@ const menuItems = [
github: 'https://github.com/opentiny/docs'
},
{
title: 'Next-SDKs',
title: 'NEXT-SDKs',
desc: '开发套件',
href: 'https://docs.opentiny.design/next-sdk/guide/',
logo: tinySdks,
github: 'https://github.com/opentiny/docs'
},
{
title: 'TinyPro',
desc: '中后台解决方案',
href: 'https://opentiny.design/vue-pro',
logo: tinyPro,
github: 'https://github.com/opentiny/tiny-pro'
},
{
title: 'TinyEditor',
desc: '富文本编辑器',
href: 'https://opentiny.github.io/tiny-editor',
logo: tinyRobot,
github: 'https://github.com/opentiny/tiny-editor'
}
Comment on lines +157 to 163
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# First, run the suggested check for editor-related SVG assets
fd -t f -e svg 'editor' packages/common/src/assets/

Repository: opentiny/opentiny.design

Length of output: 50


🏁 Script executed:

# Check what imports tinyRobot and understand what it is
cd packages/common/src/config
head -50 header.ts | cat -n

Repository: opentiny/opentiny.design

Length of output: 2085


🏁 Script executed:

# Search for where tinyRobot is imported from
rg 'tinyRobot' packages/common/src/config/header.ts -B 5 -A 2

Repository: opentiny/opentiny.design

Length of output: 1309


🏁 Script executed:

# Check the assets directory structure to understand available logos
fd -t f -e svg '' packages/common/src/assets/ | head -20

Repository: opentiny/opentiny.design

Length of output: 1021


Add dedicated logo asset for TinyEditor.

TinyEditor incorrectly uses tinyRobot logo, which is the asset for the TinyRobot project. Other products (TinyVue, TinyEngine, TinyPro, etc.) each have their own dedicated asset in packages/common/src/assets/appIcon/. Add a tiny-editor.svg asset for TinyEditor to maintain consistency.

🤖 Prompt for AI Agents
In @packages/common/src/config/header.ts around lines 157 - 163, The TinyEditor
entry currently reuses the wrong logo (tinyRobot); add a dedicated SVG file
named tiny-editor.svg into packages/common/src/assets/appIcon/, import it (e.g.
import tinyEditor from '.../tiny-editor.svg') and update the TinyEditor object
in header.ts (the entry with title 'TinyEditor') to set logo: tinyEditor and
keep other fields the same so the correct asset is used.

]
},
Expand Down
2 changes: 2 additions & 0 deletions packages/opentiny-docs/src/views/vue-pro/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
除此之外,为更好的使用云服务的资源,它集成了[`云服务客户端库`](/vue-pro/docs/advanced/library)
用于打通华为云和[`云服务插件`](/vue-pro/docs/advanced/plugin)用于管理和使用您的各类云服务资源。
<br/>

你可以通过访问以下演示站点体验 TinyPro:[https://opentiny.design/vue-pro/pages](https://opentiny.design/vue-pro/pages)

<h2 id='knowledge'>背景知识</h2>

Expand Down