chore: update dependencies and improve configuration handling

- Bump version to 0.0.7 in package.json and update deployment script.
- Add new dependencies in bun.lock for improved functionality.
- Modify loadFromRemote methods in Gitea and general config stores to return boolean for better error handling.
- Enhance BuildConfig component to ensure proper loading state management.
- Simplify RepoCard component by removing duplicate repository access option.
- Update WorkspaceDetailDialog to include workspace link in state management.
- Fix branch default value in createDevConfig function to use a placeholder.
This commit is contained in:
xiongxiao
2026-03-01 01:34:12 +08:00
committed by cnb
parent 0a0acf1fe7
commit 20edf1893e
10 changed files with 113 additions and 29 deletions

View File

@@ -126,7 +126,10 @@ const DevTabContent = ({ linkItems, workspaceLink, stopWorkspace }: {
// Work tab 内容(暂留,需要根据 business_id 做事情)
const WorkTabContent = () => {
const store = useRepoStore(useShallow((state) => ({ selectWorkspace: state.selectWorkspace })))
const store = useRepoStore(useShallow((state) => ({
selectWorkspace: state.selectWorkspace,
workspaceLink: state.workspaceLink,
})))
const businessId = store.selectWorkspace?.business_id;
const appList = [
@@ -139,11 +142,23 @@ const WorkTabContent = () => {
{
title: 'OpenClaw', key: 'OpenClaw', port: 80, end: '/openclaw'
},
{
key: 'vscode' as LinkItemKey,
title: 'VS Code',
icon: <Code2 className="w-5 h-5" />,
},
{
title: 'OpenWebUI', key: 'OpenWebUI', port: 200, end: ''
},
]
const links = appList.map(app => {
if (app.icon) {
return {
label: app.title,
icon: app.icon,
url: store?.workspaceLink?.[app.key as LinkItemKey] as string | undefined
}
}
const url = `https://${businessId}-${app.port}.cnb.run${app.end}`
return {
label: app.title,