generated from kevisual/vite-react-template
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user