Commit d8222a15 authored by JzoNg's avatar JzoNg

remove useless comments

parent 17285136
...@@ -9,13 +9,11 @@ import { Trans, useTranslation } from 'react-i18next' ...@@ -9,13 +9,11 @@ import { Trans, useTranslation } from 'react-i18next'
import Link from 'next/link' import Link from 'next/link'
import List from './list' import List from './list'
import Filter from './filter' import Filter from './filter'
import DetailPanel from './detail'
import s from './style.module.css' import s from './style.module.css'
import Loading from '@/app/components/base/loading' import Loading from '@/app/components/base/loading'
import { fetchWorkflowLogs } from '@/service/log' import { fetchWorkflowLogs } from '@/service/log'
import { APP_PAGE_LIMIT } from '@/config' import { APP_PAGE_LIMIT } from '@/config'
import type { App, AppMode } from '@/types/app' import type { App, AppMode } from '@/types/app'
import Drawer from '@/app/components/base/drawer'
export type ILogsProps = { export type ILogsProps = {
appDetail: App appDetail: App
...@@ -50,12 +48,6 @@ const EmptyElement: FC<{ appUrl: string }> = ({ appUrl }) => { ...@@ -50,12 +48,6 @@ const EmptyElement: FC<{ appUrl: string }> = ({ appUrl }) => {
} }
const Logs: FC<ILogsProps> = ({ appDetail }) => { const Logs: FC<ILogsProps> = ({ appDetail }) => {
// ###TODO###
const [showDrawer, setShowDrawer] = useState<boolean>(true)
const onCloseDrawer = () => {
setShowDrawer(false)
}
const { t } = useTranslation() const { t } = useTranslation()
const [queryParams, setQueryParams] = useState<QueryParam>({ status: 'all' }) const [queryParams, setQueryParams] = useState<QueryParam>({ status: 'all' })
const [currPage, setCurrPage] = React.useState<number>(0) const [currPage, setCurrPage] = React.useState<number>(0)
...@@ -81,7 +73,7 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => { ...@@ -81,7 +73,7 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => {
return ( return (
<div className='flex flex-col h-full'> <div className='flex flex-col h-full'>
<h1 className='text-md font-semibold text-gray-900' onClick={() => setShowDrawer(true)}>{t('appLog.workflowTitle')}</h1> <h1 className='text-md font-semibold text-gray-900'>{t('appLog.workflowTitle')}</h1>
<p className='flex text-sm font-normal text-gray-500'>{t('appLog.workflowSubtitle')}</p> <p className='flex text-sm font-normal text-gray-500'>{t('appLog.workflowSubtitle')}</p>
<div className='flex flex-col py-4 flex-1'> <div className='flex flex-col py-4 flex-1'>
<Filter queryParams={queryParams} setQueryParams={setQueryParams} /> <Filter queryParams={queryParams} setQueryParams={setQueryParams} />
...@@ -126,15 +118,6 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => { ...@@ -126,15 +118,6 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => {
</Pagination> </Pagination>
: null} : null}
</div> </div>
<Drawer
isOpen={showDrawer}
onClose={onCloseDrawer}
mask={false}
footer={null}
panelClassname='mt-16 mx-2 sm:mr-2 mb-3 !p-0 !max-w-[600px] rounded-xl border border-gray-200'
>
<DetailPanel onClose={onCloseDrawer} runID={'fakerRunID'} />
</Drawer>
</div> </div>
) )
} }
......
...@@ -89,7 +89,6 @@ const NodePanel: FC<Props> = ({ nodeInfo, collapsed, collapseHandle }) => { ...@@ -89,7 +89,6 @@ const NodePanel: FC<Props> = ({ nodeInfo, collapsed, collapseHandle }) => {
onChange={() => {}} onChange={() => {}}
/> />
</div> </div>
{/* ###TODO### conditions by type */}
{nodeInfo.process_data && ( {nodeInfo.process_data && (
<div className='px-[10px] py-1'> <div className='px-[10px] py-1'>
<CodeEditor <CodeEditor
......
...@@ -51,7 +51,6 @@ const ResultPanel: FC<ResultPanelProps> = ({ ...@@ -51,7 +51,6 @@ const ResultPanel: FC<ResultPanelProps> = ({
value={JSON.stringify(inputs)} value={JSON.stringify(inputs)}
onChange={() => {}} onChange={() => {}}
/> />
{/* ###TODO### */}
{process_data && ( {process_data && (
<CodeEditor <CodeEditor
readOnly readOnly
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment