How to use the choerodon-front-boot.asyncRouter function in choerodon-front-boot

To help you get started, we’ve selected a few choerodon-front-boot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github choerodon / choerodon-front-iam / iam / src / app / iam / containers / global / mail-setting / index.js View on Github external
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 }) => (
  
);

export default Index;
github choerodon / choerodon-front-iam / iam / src / app / iam / containers / global / saga / index.js View on Github external
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 }) => (
  
);

export default Index;
github choerodon / choerodon-front-iam / iam / src / app / iam / containers / outward / register-org / index.js View on Github external
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

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

const Index = ({ match }) => (
  
);

export default Index;
github choerodon / choerodon-front-iam / iam / src / app / iam / containers / organization / project / index.js View on Github external
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';


const index = asyncRouter(() => import('./Project'), () => import('../../../stores/organization/project'));

const Index = ({ match }) => (
  
);

export default Index;
github choerodon / choerodon-front-iam / iam / src / app / iam / containers / global / micro-service / index.js View on Github external
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 }) => (
  
);

export default Index;
github choerodon / choerodon-front-iam / iam / src / app / iam / containers / user / user-info / index.js View on Github external
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

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

const index = ({ match }) => (
  
);

export default index;
github choerodon / choerodon-front-devops / devops / src / app / devops / containers / project / deploymentConfig / deploymentConfigIndex.js View on Github external
import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom';
import { asyncRouter, nomatch } from 'choerodon-front-boot';

const DeploymentConfig = asyncRouter(
  () => import('./deploymentConfigHome'),
  () => import('../../../stores/project/deploymentConfig')
);

const DeploymentConfigIndex = ({ match }) => (
  
);

export default DeploymentConfigIndex;
github choerodon / choerodon-front-devops / devops / src / app / devops / containers / DEVOPSIndex.js View on Github external
const Container = asyncRouter(() => import('./project/container'));
const AppRelease = asyncRouter(() => import('./project/appRelease'));
const Branch = asyncRouter(() => import('./project/branch'));
const MergeRequest = asyncRouter(() => import('./project/mergeRequest'));
const AppTag = asyncRouter(() => import('./project/appTag'));
const Repository = asyncRouter(() => import('./project/repository'));
const EnvOverview = asyncRouter(() => import('./project/envOverview'));
const DeployOverview = asyncRouter(() => import('./project/deployOverview'));
const Certificate = asyncRouter(() => import('./project/certificate'));
const Reports = asyncRouter(() => import('./project/reports'));
const DevConsole = asyncRouter(() => import('./project/devConsole'));
const ConfigMap = asyncRouter(() => import('./project/configMap'));
const Secret = asyncRouter(() => import('./project/secret'));
const Elements = asyncRouter(() => import('./project/elements'));
const PipelineIndex = asyncRouter(() => import('./project/pipeline'));
const DeploymentConfig = asyncRouter(() => import('./project/deploymentConfig'));
const PipelineRecord = asyncRouter(() => import('./project/pipelineRecord'));
const CodeQuality = asyncRouter(() => import('./project/codeQuality'));
const Notifications = asyncRouter(() => import('./project/notifications'));

@inject('AppState')
class DEVOPSIndex extends React.Component {
  render() {
    const { match, AppState } = this.props;
    const language = AppState.currentLanguage;
    const IntlProviderAsync = asyncLocaleProvider(language, () =>
      import(`../locale/${language}`),
    );

    /**
     * 从实例详情页面跳转到实例页面或容器不重新加载
     * 从详情页面跳到其他页面需要重新加载
github choerodon / choerodon-front-devops / devops / src / app / devops / containers / DEVOPSIndex.js View on Github external
const InstancesIndex = asyncRouter(() => import('./project/instances'));
const DeploymentApp = asyncRouter(() => import('./project/deploymentApp'));
const NetworkConfig = asyncRouter(() => import('./project/networkConfig'));
const Domain = asyncRouter(() => import('./project/domain'));
const Container = asyncRouter(() => import('./project/container'));
const AppRelease = asyncRouter(() => import('./project/appRelease'));
const Branch = asyncRouter(() => import('./project/branch'));
const MergeRequest = asyncRouter(() => import('./project/mergeRequest'));
const AppTag = asyncRouter(() => import('./project/appTag'));
const Repository = asyncRouter(() => import('./project/repository'));
const EnvOverview = asyncRouter(() => import('./project/envOverview'));
const DeployOverview = asyncRouter(() => import('./project/deployOverview'));
const Certificate = asyncRouter(() => import('./project/certificate'));
const Reports = asyncRouter(() => import('./project/reports'));
const DevConsole = asyncRouter(() => import('./project/devConsole'));
const ConfigMap = asyncRouter(() => import('./project/configMap'));
const Secret = asyncRouter(() => import('./project/secret'));
const Elements = asyncRouter(() => import('./project/elements'));
const PipelineIndex = asyncRouter(() => import('./project/pipeline'));
const DeploymentConfig = asyncRouter(() => import('./project/deploymentConfig'));
const PipelineRecord = asyncRouter(() => import('./project/pipelineRecord'));
const CodeQuality = asyncRouter(() => import('./project/codeQuality'));
const Notifications = asyncRouter(() => import('./project/notifications'));

@inject('AppState')
class DEVOPSIndex extends React.Component {
  render() {
    const { match, AppState } = this.props;
    const language = AppState.currentLanguage;
    const IntlProviderAsync = asyncLocaleProvider(language, () =>
      import(`../locale/${language}`),
    );
github choerodon / choerodon-front-devops / devops / src / app / devops / containers / project / reports / ReportsIndex.js View on Github external
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 CodeQuality = asyncRouter(() => import('./CodeQuality'), () => import('../../../stores/project/reports'));

const ReportsIndex = ({ match }) => (

choerodon-front-boot

Tools to build website for Choerodon

Apache-2.0
Latest version published 5 years ago

Package Health Score

39 / 100
Full package analysis