clientjs/packages/annotation-dashboard-explorunivers/src/index.js
author ymh <ymh.work@gmail.com>
Thu, 20 Sep 2018 17:51:15 +0200
changeset 11 37ecf0b9c174
parent 0 5f4fcbc80b37
permissions -rw-r--r--
Add Nextleap dashboard
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
import './index.css';
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
import React from 'react';
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
import ReactDOM from 'react-dom';
11
37ecf0b9c174 Add Nextleap dashboard
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     5
import en from 'react-intl/locale-data/en';
37ecf0b9c174 Add Nextleap dashboard
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     6
import fr from 'react-intl/locale-data/fr';
37ecf0b9c174 Add Nextleap dashboard
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     7
37ecf0b9c174 Add Nextleap dashboard
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     8
import setIntl from 'dashboard-components/lib/intl';
0
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
import App from './App';
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
import registerServiceWorker from './registerServiceWorker';
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
import setStore from './store';
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
import messagesData from './locales/messages.json';
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
11
37ecf0b9c174 Add Nextleap dashboard
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    16
const ComposedApp = setIntl(messagesData, setStore(App), [...en, ...fr]);
0
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
ReactDOM.render(<ComposedApp />, document.getElementById('root'));
5f4fcbc80b37 Create new repository to host all dashboard developments
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
registerServiceWorker();