mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-04 18:40:10 +00:00
feat(web): Add DAG variables to web flow (#1981)
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: 谨欣 <echo.cmy@antgroup.com> Co-authored-by: yanzhiyong <932374019@qq.com> Co-authored-by: 严志勇 <yanzhiyong@tiansuixiansheng.com>
This commit is contained in:
@@ -12,6 +12,7 @@ import { t } from 'i18next';
|
||||
import { useRouter } from 'next/router';
|
||||
import React from 'react';
|
||||
import './style.css';
|
||||
|
||||
function ConstructLayout({ children }: { children: React.ReactNode }) {
|
||||
const items = [
|
||||
{
|
||||
@@ -19,6 +20,15 @@ function ConstructLayout({ children }: { children: React.ReactNode }) {
|
||||
name: t('App'),
|
||||
path: '/app',
|
||||
icon: <AppstoreOutlined />,
|
||||
// operations: (
|
||||
// <Button
|
||||
// className='border-none text-white bg-button-gradient h-full flex items-center'
|
||||
// icon={<PlusOutlined className='text-base' />}
|
||||
// // onClick={handleCreate}
|
||||
// >
|
||||
// {t('create_app')}
|
||||
// </Button>
|
||||
// ),
|
||||
},
|
||||
{
|
||||
key: 'flow',
|
||||
@@ -102,6 +112,15 @@ function ConstructLayout({ children }: { children: React.ReactNode }) {
|
||||
onTabClick={key => {
|
||||
router.push(`/construct/${key}`);
|
||||
}}
|
||||
// tabBarExtraContent={
|
||||
// <Button
|
||||
// className='border-none text-white bg-button-gradient h-full flex items-center'
|
||||
// icon={<PlusOutlined className='text-base' />}
|
||||
// // onClick={handleCreate}
|
||||
// >
|
||||
// {t('create_app')}
|
||||
// </Button>
|
||||
// }
|
||||
/>
|
||||
</ConfigProvider>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user