-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
95 lines (93 loc) · 3.58 KB
/
index.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!doctype html>
<head>
<meta charset="utf-8"/>
<title>Nde</title>
<link rel="icon" href="favicon.ico"/>
<!-- Font-Awesome the lazy way -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/font-awesome.css" />
</head>
<body>
<!-- Loading Bar -->
<div id="app"></div>
<style>.pace{pointer-events:none;user-select:none;}.pace-inactive{display:none;}.pace .pace-progress{background:#29d;position:fixed;z-index:2000;top:0;right:100%;width:100%;height:2px;}</style>
<script>
paceOptions = {
elements: {
selectors: [
'#app article'
]
}
}
</script>
<script src="https://cdn.rawgit.com/HubSpot/pace/v1.0.0/pace.min.js"></script>
<!-- End Loading Bar -->
<script src="https://unpkg.com/[email protected]/dist/min.js"></script>
<script>
System.config({
meta: {
'*.json': {
loader: 'json'
}
},
});
System.import('./package.json')
.then(({dependencies}) => {
const map = {};
const meta = {};
// For each dependency listed in package.json, force getlibs
// to use Unpkg (the js loader) use the exact version of each dependency.
for ([package, version] of Object.entries(dependencies)) {
meta[package] = { loader: 'js' }
map[package] = `https://unpkg.com/${package}@${version}`
}
System.config({
meta: {
...meta,
'*.json': {
loader: 'json'
},
'*.jsx': {
loader: 'js'
}
},
map: {
...map,
'@hot': '@empty',
'buffer': './builtins/buffer.js',
'react-octicons-modular': './packages/react-octicons-modular/index.js',
// 'isomorphic-git': 'https://unpkg.com/[email protected]/dist/bundle.umd.min.js',
// 'react': 'https://unpkg.com/[email protected]/umd/react.development.js',
// 'react-dom': 'https://unpkg.com/[email protected]/umd/react-dom.development.js',
'preact-compat': 'https://unpkg.com/[email protected]/dist/preact-compat.js',
// 'react-dom': 'https://unpkg.com/[email protected]/dist/preact-compat.js',
'react': 'https://unpkg.com/[email protected]/dist/preact-compat.js',
'react-dom': 'https://unpkg.com/[email protected]/dist/preact-compat.js',
'react-dnd': 'https://unpkg.com/[email protected]/dist/ReactDnD.min.js',
'react-dnd-html5-backend': 'https://unpkg.com/[email protected]/dist/ReactDnDHTML5Backend.min.js',
'react-sortable-hoc': 'https://unpkg.com/[email protected]/dist/umd/react-sortable-hoc.js',
'typescript-array-utils': 'https://unpkg.com/[email protected]/dist/index.js',
'react-monaco-editor': 'https://unpkg.com/[email protected]/lib/index.js',
'react-contextmenu': 'https://unpkg.com/[email protected]/dist/react-contextmenu.js',
'redux': 'https://unpkg.com/[email protected]/dist/redux.min.js',
'react-redux': 'https://unpkg.com/[email protected]/dist/react-redux.min.js',
'cuid': 'https://unpkg.com/[email protected]/dist/cuid.min.js',
},
paths: {
'fs': './builtins/fs.js',
'path': 'https://unpkg.com/path-browserify',
'omnipath': 'https://unpkg.com/omnipath/dist/omnipath.min.js',
'url': 'https://unpkg.com/omnipath/dist/omnipath.min.js',
'react-file-browser': './packages/react-file-browser/index.js',
'react-file-icons': './packages/react-file-icons/index.js',
'react-pretty-error-boundary': './packages/react-pretty-error-boundary/index.js',
'simple-rimraf': './packages/simple-rimraf/index.js',
'cuid': 'https://unpkg.com/[email protected]/dist/cuid.min.js',
}
})
System.import('systemjs-hmr').then(() => {
System.import('./index.js')
})
})
</script>
</body>
</html>