How to use choerodon-front-boot - 10 common examples

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-devops / devops / src / app / devops / stores / project / deploymentConfig / DeploymentConfigStore.js View on Github external
loadAppData = projectId =>
    axios.post(`/devops/v1/projects/${projectId}/apps/list_by_options?active=true&type=normal&doPage=false&has_version=true`
      , JSON.stringify({searchParam: {}, param: ""})
    )
      .then((data) => {
        const res = handleProptError(data);
        if (res) {
          this.setAppDate(data.content);
        }
        return res;
      });
github choerodon / choerodon-front-devops / devops / src / app / devops / stores / project / appStore / AppStoreStore.js View on Github external
loadApps = (projectId, page = 0, size = 20, sorter = { id: 'asc' }, datas = {
    searchParam: {},
    param: '',
  }) => axios.post(`devops/v1/projects/${projectId}/apps_market/list_all?page=${page}&size=${size}`, JSON.stringify(datas))
    .then((data) => {
      this.changeLoading(true);
      if (data && data.failed) {
        Choerodon.prompt(data.message);
      } else {
        this.handleData(data);
        this.changeLoading(false);
      }
    })
    .catch((error) => {
      Choerodon.prompt(error.message);
    });
github choerodon / choerodon-front-devops / devops / src / app / devops / stores / project / appTag / AppTagStore.js View on Github external
queryBranchData = ({ projectId, sorter = { field: 'createDate', order: 'asc' }, postData = { searchParam: {}, param: '' }, size = 3 }) => {
    axios.post(`/devops/v1/projects/${projectId}/apps/${DevPipelineStore.selectedApp}/git/branches?page=0&size=${size}`, JSON.stringify(postData)).then((data) => {
      const result = handleProptError(data);
      if (result) {
        this.setBranchData(result);
      }
    }).catch(err => Choerodon.handleResponseError(err));
  };
github choerodon / choerodon-front-devops / devops / src / app / devops / stores / project / deploymentApp / DeploymentAppStore.js View on Github external
submitDeployment(projectId, applicationDeployDTO) {
    return axios
      .post(`/devops/v1/projects/${projectId}/app_instances`, JSON.stringify(applicationDeployDTO))
      .then(data => handleProptError(data));
  }
github choerodon / choerodon-front-devops / devops / src / app / devops / stores / project / branchManage / BranchStore.js View on Github external
  loadTagData = (projectId, page = 0, sizes = 10, postData = { searchParam: {}, param: '' }) => axios.post(`/devops/v1/projects/${projectId}/apps/${DevPipelineStore.selectedApp}/git/tags_list_options?page=0&size=${sizes}`, JSON.stringify(postData))
    .then((data) => {
      const res = handleProptError(data);
      if (res) {
        this.setTagData(data);
      }
    });
github choerodon / choerodon-front-agile / agile / src / app / agile / dashboard / VersionProgress / VersionProgress / VersionProgress.js View on Github external
loadData() {
    const { projectId } = AppState.currentMenuType;
    axios.get(`agile/v1/projects/${projectId}/product_version/versions`)
      .then((res) => {
        const latestVersionId = Math.max(...res.filter(item => item.statusCode !== 'archived').map((item => item.versionId)));
        if (latestVersionId !== -Infinity) {
          this.loadSelectData(latestVersionId);
        }
        this.setState({
          versionList: res.filter(item => item.statusCode !== 'archived'),
          currentVersionId: latestVersionId,
          loading: false,
        });
      });
  }
github choerodon / choerodon-front-agile / agile / src / app / agile / dashboard / SprintProgress / SprintProgressHome / SprintProgressHome.js View on Github external
loadData() {
    const projectId = AppState.currentMenuType.id;
    const orgId = AppState.currentMenuType.organizationId;
    axios.get(`agile/v1/projects/${projectId}/sprint/active/${orgId}`)
      .then((res) => {
        this.setState({
          sprint: res,
          loading: false,
        });
      });
  }
github choerodon / choerodon-front-agile / agile / src / app / agile / dashboard / MineUnDone / MineUnDone.js View on Github external
loadData() {
    const projectId = AppState.currentMenuType.id;
    const userId = AppState.getUserId;
    this.setState({ loading: true });
    axios.get(`/agile/v1/projects/${projectId}/issues/unfinished/${userId}`)
      .then((res) => {
        this.setState({
          issues: res,
          loading: false,
        });
      });
  }
github choerodon / choerodon-front-agile / agile / src / app / agile / containers / project / ReportBoard / ReportBoardComponent / Priority / Priority.js View on Github external
loadPriorityInfo() {
    this.setState({ loading: true });
    const projectId = AppState.currentMenuType.id;
    const orgId = AppState.currentMenuType.organizationId;
    axios.get(`agile/v1/projects/${projectId}/reports/issue_priority_distribution_chart?organizationId=${orgId}`)
      .then((res) => {
        this.setState({
          priorityInfo: res,
          loading: false,
        });
      });
  }
github choerodon / choerodon-front-agile / agile / src / app / agile / dashboard / EpicProgress / EpicProgress.js View on Github external
loadEpics() {
    const projectId = AppState.currentMenuType.id;
    const orgId = AppState.currentMenuType.organizationId;
    axios.get(`/agile/v1/projects/${projectId}/issues/epics?organizationId=${orgId}`)
      .then((res) => {
        this.handleEpics(res.slice(0, 6));
      });
  }

choerodon-front-boot

Tools to build website for Choerodon

Apache-2.0
Latest version published 6 years ago

Package Health Score

39 / 100
Full package analysis