client.tsx 654 Bytes
Newer Older
1
import { Config } from 'config/config';
Oleksii Savran's avatar
Oleksii Savran committed
2
3
4
5
import {
  showGenesysUI,
  // showOverview, // for testing
} from 'genesys';
Matija Obreza's avatar
Matija Obreza committed
6

Matija Obreza's avatar
Matija Obreza committed
7
8
const queryLang = document.location.search && document.location.search.substr(1) || undefined;

9
10
const genesysConfig: Config = {
  apiUrl: 'http://localhost:8080',
11
12
13
  clientId: 'defaultclient@localhost',
  clientKey: 'changeme',
  filter: { institute: { code: [ 'COL003', 'BEL084', 'ETH013' ] } },
14
  language: queryLang,
15
16
17
  accession: {
    pdci: true,
  },
18
19
20
  shoppingCart: {
    enabled: true,
  },
Oleksii Savran's avatar
Oleksii Savran committed
21
22
};

23
24
showGenesysUI(document.getElementById('genesys'), genesysConfig);
// showOverview(document.getElementById('genesys'), genesysConfig);