How to use the api.projectsAPI.resources function in api

To help you get started, we’ve selected a few api 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 ManifoldScholar / manifold / client / src / containers / frontend / ProjectResources.js View on Github external
updateResults() {
    const action = request(
      projectsAPI.resources(
        this.props.project.id,
        this.state.filter,
        this.state.pagination
      ),
      requests.feResources
    );
    this.props.dispatch(action);
  }
github ManifoldScholar / manifold / client / src / backend / containers / project / resource / ResourcesList.js View on Github external
fetchResources(page = 1) {
    const pagination = { number: page, size: perPage };
    const filters = this.props.entitiesListSearchParams.resources;
    const action = request(
      projectsAPI.resources(this.props.project.id, filters, pagination),
      requests.beResources
    );
    this.props.dispatch(action);
  }
github ManifoldScholar / manifold / client / src / containers / reader / Notation / Picker.js View on Github external
fetchResources(page) {
    this.lastFetchedPage = page;
    const pagination = { number: page, size: perPage };
    const action = request(
      projectsAPI.resources(
        this.props.projectId,
        this.state.filter,
        pagination
      ),
      requests.beResources
    );
    this.props.dispatch(action);
  }
github ManifoldScholar / manifold / client / src / backend / containers / resource-collection / Resources.js View on Github external
fetchResources(page = 1) {
    const pagination = { number: page, size: perPage };
    const filters = this.props.entitiesListSearchParams.resources;
    const projectId = this.props.resourceCollection.relationships.project.id;
    const action = request(
      projectsAPI.resources(projectId, filters, pagination),
      requests.beResources
    );
    this.props.dispatch(action);
  }
github ManifoldScholar / manifold / client / src / containers / backend / Collection / Resources.js View on Github external
fetchResources(page) {
    this.lastFetchedPage = page;
    const pagination = { number: page, size: perPage };
    const projectId = this.props.collection.relationships.project.id;
    const action = request(
      projectsAPI.resources(projectId, this.state.filter, pagination),
      requests.beResources
    );
    this.props.dispatch(action);
  }
github ManifoldScholar / manifold / client / src / reader / containers / notation / Picker.js View on Github external
fetchResources(page = 1) {
    const pagination = { number: page, size: perPage };
    const action = request(
      projectsAPI.resources(this.props.projectId, this.filters, pagination),
      requests.beResources
    );
    this.props.dispatch(action);
  }