Esempio n. 1
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => import('./LDAP'), () => import('../../../stores/organization/ldap'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default Index;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const DevConsole = asyncRouter(() => import('./devConsoleHome'), () => import('../../../stores/project/devConsole'));

const DevConsoleIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={DevConsole} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default DevConsoleIndex;
Esempio n. 3
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(
  () => import('./Organization'),
  () => import('../../../stores/global/organization'),
);

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default Index;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const DeploymentApp = asyncRouter(() => import('./deploymentAppHome'), () => import('../../../stores/project/deploymentApp'));

const DeploymentAppIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={DeploymentApp} />
    <Route exact path={`${match.url}/:appId/:verId`} component={DeploymentApp} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default DeploymentAppIndex;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const AppStoreHome = asyncRouter(() => import('./appStoreHome'), () => import('../../../stores/project/appStore'));
const AppDetail = asyncRouter(() => import('./appDetail'), () => import('../../../stores/project/appStore'));
const ImportChart = asyncRouter(() => import('./importChart'), () => import('../../../stores/project/appStore'));
const ExportChart = asyncRouter(() => import('./exportChart'), () => import('../../../stores/project/appStore/exportChart'));

const AppStoreIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={AppStoreHome} />
    <Route exact path={`${match.url}/:id/app`} component={AppDetail} />
    <Route exact path={`${match.url}/import`} component={ImportChart} />
    <Route exact path={`${match.url}/export`} component={ExportChart} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default AppStoreIndex;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const DomainHome = asyncRouter(() => import('./domainHome'), () => import('../../../stores/project/domain'));

const domainIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={DomainHome} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default domainIndex;
Esempio n. 7
0
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const FastSearchHome = asyncRouter(() => (import('./FastSearchHome')));

const FastSearchIndex = ({ match }) => (
  <Switch>
    <Route exact path={`${match.url}`} component={FastSearchHome} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default FastSearchIndex;
Esempio n. 8
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => (import('./TaskDetail')));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default Index;
Esempio n. 9
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => import('./Saga'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default Index;
Esempio n. 10
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => (import('./Announcement')), {
  AnnouncementStore: () => import('../../../stores/global/announcement'),
});
// const detail = asyncRouter(() => import('./APIDetail'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default Index;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const EnvOverviewHome = asyncRouter(() => import('./envOverviewHome'), () => import('../../../stores/project/envOverview'));

const EnvOverviewIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={EnvOverviewHome} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default EnvOverviewIndex;
Esempio n. 12
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => import('./RoleLabel'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default Index;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const AppVersionHome = asyncRouter(() => import('./applicationHome'), () => import('../../../stores/project/applicationVersion'));

const EnvironmentIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={AppVersionHome} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default EnvironmentIndex;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { inject } from 'mobx-react';
import {
  asyncRouter, asyncLocaleProvider, stores, nomatch, 
} from 'choerodon-front-boot';

const Home = asyncRouter(() => import('./Home'));
const RELEASEINDEX = asyncRouter(() => import('./project/Release'));
const BACKLOGINDEX = asyncRouter(() => import('./project/Backlog'));
const SCRUMBOARDINDEX = asyncRouter(() => import('./project/ScrumBoard'));
const ISSUEIndex = asyncRouter(() => import('./project/Issue'));
const COMPONENTIndex = asyncRouter(() => import('./project/Component'));
const PROJECTSETTINGINDEX = asyncRouter(() => import('./project/ProjectSetting'));
const FASTSEARCHINDEX = asyncRouter(() => import('./project/FastSearch'));
const REPORTHOSTINDEX = asyncRouter(() => import('./project/ReportHost'));
const ISSUELINKINDEX = asyncRouter(() => import('./project/IssueLink'));
const USERMAPINDEX = asyncRouter(() => import('./project/userMap'));
const INERATIONBOARDINDEX = asyncRouter(() => import('./project/IterationBoard'));
const REPORTBOARD = asyncRouter(() => import('./project/ReportBoard'));
const WORKCALENDARINDEX = asyncRouter(() => import('./organization/WorkCalendar'));

const MESSAGENOTIFICATION = asyncRouter(() => import('./project/MessageNotification')); 
class AGILEIndex extends React.Component {
  render() {
    const { match } = this.props;
    const { AppState } = stores;
    const langauge = AppState.currentLanguage;
Esempio n. 15
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => (import('./InMailTemplate')), () => import('../../../stores/global/inmail-template'));
const create = asyncRouter(() => import('./InMailTemplateCreate'));
const modify = asyncRouter(() => import('./InMailTemplateModify'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={`${match.url}/create`} component={create} />
    <Route path={`${match.url}/modify/:id`} component={modify} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default Index;
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';


const SummaryHome = asyncRouter(() => import('./SummaryHome'));
const SummaryIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={SummaryHome} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default SummaryIndex;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const WorkCalendarHome = asyncRouter(() => import('./WorkCalendarHome'), () => import('../../../stores/organization/workCalendar/WorkCalendarStore'));

const WorkCalendarIndex = ({ match }) => (
  <Switch>
    <Route exact path={`${match.url}`} component={WorkCalendarHome} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default WorkCalendarIndex;
Esempio n. 18
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => import('./SendSetting'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default Index;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const REPORTSHOME = asyncRouter(() => import('./Home'), () => import('../../../stores/project/reports'));
const SUBMISSION = asyncRouter(() => import('./Submission'), () => import('../../../stores/project/reports'));
const DeployDuration = asyncRouter(() => import('./DeployDuration'), () => import('../../../stores/project/reports'));
const DeployTimes = asyncRouter(() => import('./DeployTimes'), () => import('../../../stores/project/reports'));
const BUILDNUMBER = asyncRouter(() => import('./BuildNumber'), () => import('../../../stores/project/reports'));
const BUILDDURATION = asyncRouter(() => import('./BuildDuration'), () => import('../../../stores/project/reports'));

const ReportsIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={REPORTSHOME} />
    <Route exact path={`${match.url}/submission`} component={SUBMISSION} />
    <Route exact path={`${match.url}/deploy-duration`} component={DeployDuration} />
    <Route exact path={`${match.url}/deploy-times`} component={DeployTimes} />
    <Route exact path={`${match.url}/build-number`} component={BUILDNUMBER} />
    <Route exact path={`${match.url}/build-duration`} component={BUILDDURATION} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default ReportsIndex;
Esempio n. 20
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => (import('./UserMsg')));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default Index;
Esempio n. 21
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => import('./UserInfo'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default Index;
Esempio n. 22
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(
  () => import('./OrganizationInfo'),
  {
    OrganizationInfoStore: () => import('../../../stores/user/organization-info'),
    PermissionInfoStore: () => import('../../../stores/user/permission-info'),
  },
);

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default Index;
Esempio n. 23
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => (import('./MailSetting')));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default Index;
Esempio n. 24
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => (import('./ExecutableProgram')));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default Index;
Esempio n. 25
0
/**
 * Created by hulingfangzi on 2018/6/20.
 */
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => (import('./Instance')), () => import('../../../stores/global/instance'));
const detail = asyncRouter(() => import('./InstanceDetail'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={`${match.url}/detail/:id`} component={detail} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default Index;
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const ContainerHome = asyncRouter(() => import('./containerHome'), () => import('../../../stores/project/container'));

const EnvironmentIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={ContainerHome} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default EnvironmentIndex;
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const WikiSettingHome = asyncRouter(() => import('./WikiSettingHome'));

const WikiSettingIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={WikiSettingHome} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default WikiSettingIndex;
Esempio n. 28
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => import('./User'), () => import('../../../stores/organization/user/UserStore.js'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default Index;
Esempio n. 29
0
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const index = asyncRouter(() => import('./MicroService'));

const Index = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={index} />
    <Route path={'*'} component={nomatch} />
  </Switch>
);

export default Index;
/**
 *create by mading on 2018/3/28
 */
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';

import { asyncRouter, nomatch } from 'choerodon-front-boot';

const BranchHome = asyncRouter(() => import('./branchHome'), () => import('../../../stores/project/branchManage'));

const EnvironmentIndex = ({ match }) => (
  <Switch>
    <Route exact path={match.url} component={BranchHome} />
    <Route path="*" component={nomatch} />
  </Switch>
);

export default EnvironmentIndex;