-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
30 lines (24 loc) · 1.92 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
(function() {
const {protocol} = location;
const origin = `${protocol}//theonekit.github.io`;
const {mode} = document.currentScript.dataset;
const template = (url) => `\x3Cscript type="text/javascript" ${mode || ''} src="${origin}/${url}">\x3C/script>`;
window.React || document.write(template("3rdparty/react@16.13.1/react.development.js"));
window.ReactDOM || document.write(template("3rdparty/react-dom@16.13.1/react-dom.development.js"));
window.pathToRegexp || document.write(template("3rdparty/path-to-regexp@6.1.0/index.js"));
window.useDebounce || document.write(template("3rdparty/use-debounce@5.0.1/use-debounce.min.js"));
window.classNames || document.write(template("3rdparty/classnames@2.2.6/classnames.js"));
window.ReactRedux || document.write(template("3rdparty/react-redux@7.2.0/react-redux.min.js"));
window.Redux || document.write(template("3rdparty/redux@v4.0.5/redux.min.js"));
window.Babel || document.write(template("3rdparty/@babel/standalone@7.12.4/babel.min.js"));
window.moment || document.write(template("3rdparty/moment@2.29.1/moment.min.js"));
window.mobx || document.write(template("3rdparty/mobx@6.0.4/mobx.umd.development.js"));
window.mobxReactLite || document.write(template("3rdparty/mobx-react-lite@3.1.6/mobxreactlite.umd.development.js"));
window.material || document.write(template("3rdparty/material-ui-umd@1.1/material-ui.min.js"));
window.form || document.write(template("3rdparty/material-ui-umd@1.1/form-tools.js"));
window.router || document.write(template("3rdparty/material-ui-umd@1.1/router-tools.js"));
window.other || document.write(template("3rdparty/material-ui-umd@1.1/other-tools.js"));
window.pickers || document.write(template("3rdparty/material-ui-umd@1.1/pickers-tools.js"));
window.idb || document.write(template("3rdparty/material-ui-umd@1.1/idb-tools.js"));
window.chart || document.write(template("3rdparty/material-ui-umd@1.1/chart-tools.js"));
})();