-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
54 lines (39 loc) · 1.63 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* @author PrimusMoney
* @name @primusmoney/react_pwa
* @homepage https://www.primusmoney.com/
* @license UNLICENSED
*/
'use strict';
console.log('@primusmoney/react_pwa');
if ( typeof window !== 'undefined' && window && (typeof window.simplestore === 'undefined')) {
// browser or react-native
console.log('creating window.simplestore in @primusmoney/react_pwa index.js');
window.simplestore = {};
window.simplestore.nocreation = true;
} else if ((typeof global !== 'undefined') && (typeof global.simplestore === 'undefined')) {
// nodejs
console.log('creating global.simplestore in @primusmoney/react_pwa index.js');
global.simplestore = {};
}
var _globalscope;
if ( typeof window !== 'undefined') {
_globalscope = window;
} else if (typeof global !== 'undefined') {
// nodejs
_globalscope = global;
}
// default
//const React_PWA = require('./react_pwa.js');
require('./react_pwa.js');
const React_PWA = _globalscope.simplestore.React_PWA; // using simplestore to avoid problems with webpack packaging
module.exports = React_PWA;
// classes
const App = require('./imports/app/react-js-ui/js/app.js').default;
const Header = require('./imports/app/react-js-ui/js/src/react-view/navigation/header/header.js').default;
const CurrencyCardIcon = require('./imports/app/react-js-ui/js/src/react-view/components/common/utils/currency-card-icon.js').default;
const TextCopyIcon = require('./imports/app/react-js-ui/js/src/react-view/components/common/utils/text-copy-icon.js').default;
module.exports.App = App;
module.exports.Header = Header;
module.exports.CurrencyCardIcon = CurrencyCardIcon;
module.exports.TextCopyIcon = TextCopyIcon;