Skip to content

Configuring features

Some websites may need to enable/disable specific features (e.g. No shopping cart) or may want to configure specific settings.

In this issue, we extend the class Config with new properties:

import AccessionConfig from 'accession/Config';
// import RequestConfig from 'request/Config';
// import MapConfig from 'map/Config';

export class Config {
  public apiUrl: string;
  public clientId: string;
  public clientKey: string;
  public filter: Record<string, any>;
  public language: string; // Please move language selection to config
  // module config
  public accessions: Partial<AccessionConfig>;
//  public requests: Partial<RequestConfig>;

RequestConfig has { enabled: false } which disables all shopping cart functions.

MapConfig would have { baseMap: "https://mapserver/foobar/tile/{z}/{x}/{y}" } that configures the base map layer and { enabled: false } would prevent showing any map components.

Please move language selection to config object.

Accessing the config in components will be simple after #10 (closed)

Edited by Matija Obreza
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information