Move project page modules under pages
This commit is contained in:
@@ -5,13 +5,13 @@ const requiredFiles = [
|
||||
'src/pages/login.tsx',
|
||||
'src/pages/project.tsx',
|
||||
'src/pages/overview.tsx',
|
||||
'src/features/projects/project-data.tsx',
|
||||
'src/features/projects/project-rail.tsx',
|
||||
'src/features/projects/project-sidebar.tsx',
|
||||
'src/features/projects/project-topbar.tsx',
|
||||
'src/features/projects/project-inspector.tsx',
|
||||
'src/features/projects/project-statusbar.tsx',
|
||||
'src/features/projects/project-types.ts',
|
||||
'src/pages/projects/project-data.tsx',
|
||||
'src/pages/projects/project-rail.tsx',
|
||||
'src/pages/projects/project-sidebar.tsx',
|
||||
'src/pages/projects/project-topbar.tsx',
|
||||
'src/pages/projects/project-inspector.tsx',
|
||||
'src/pages/projects/project-statusbar.tsx',
|
||||
'src/pages/projects/project-types.ts',
|
||||
]
|
||||
|
||||
const failures = requiredFiles.filter((file) => !existsSync(file)).map((file) => `missing ${file}`)
|
||||
|
||||
@@ -4,8 +4,8 @@ import '@arco-design/web-react/dist/css/arco.css'
|
||||
import '../App.css'
|
||||
import { LoginPage } from '../pages/login'
|
||||
import { ProjectPage } from '../pages/project'
|
||||
import { projects } from '../features/projects/project-data'
|
||||
import type { ChannelKey, Screen, Theme } from '../features/projects/project-types'
|
||||
import { projects } from '../pages/projects/project-data'
|
||||
import type { ChannelKey, Screen, Theme } from '../pages/projects/project-types'
|
||||
|
||||
function App() {
|
||||
const [screen, setScreen] = useState<Screen>('login')
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useMemo } from 'react'
|
||||
import { Button, Card, Grid, Space, Tag, Typography } from '@arco-design/web-react'
|
||||
import { IconCalendar, IconCheckCircleFill, IconClockCircle, IconEmail, IconFile, IconMore, IconRobot } from '@arco-design/web-react/icon'
|
||||
import { aiSessions, inbox, notes, tasks } from '../features/projects/project-data'
|
||||
import { aiSessions, inbox, notes, tasks } from './projects/project-data'
|
||||
|
||||
const { Row, Col } = Grid
|
||||
const { Title, Text } = Typography
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Layout } from '@arco-design/web-react'
|
||||
import { OverviewPage } from './overview'
|
||||
import { ProjectInspector } from '../features/projects/project-inspector'
|
||||
import { ProjectRail } from '../features/projects/project-rail'
|
||||
import { ProjectSidebar } from '../features/projects/project-sidebar'
|
||||
import { ProjectStatusbar } from '../features/projects/project-statusbar'
|
||||
import { ProjectTopbar } from '../features/projects/project-topbar'
|
||||
import type { ChannelKey, Project, Theme } from '../features/projects/project-types'
|
||||
import { ProjectInspector } from './projects/project-inspector'
|
||||
import { ProjectRail } from './projects/project-rail'
|
||||
import { ProjectSidebar } from './projects/project-sidebar'
|
||||
import { ProjectStatusbar } from './projects/project-statusbar'
|
||||
import { ProjectTopbar } from './projects/project-topbar'
|
||||
import type { ChannelKey, Project, Theme } from './projects/project-types'
|
||||
|
||||
const { Content } = Layout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user