-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
74 lines (61 loc) · 3.54 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1">
<title>Example 00</title>
<script>
if (!location.href.match(/^(about:|file:)/)) {
var bplCookie = document.cookie.match(/(^|;\s*)uu\.app\.bpl=([^;]+)/);
var bplSegmentCount = (bplCookie ? Number(bplCookie[2]) : null);
if (typeof bplSegmentCount !== "number" || isNaN(bplSegmentCount) || bplSegmentCount < 0) bplSegmentCount = 2;
var appBaseUrlPath = (location.pathname.split(/\//).slice(0,1+bplSegmentCount).join("/")+"/").replace(/\/+/g,"/").replace(/"/g,"");
var appAssetsRelativeUrlPath = "public/0.0.0/";
document.write('<base href="' + appBaseUrlPath + appAssetsRelativeUrlPath + '" data-uu-app-base="' + appBaseUrlPath + '" data-uu-app-assets-base="' + appAssetsRelativeUrlPath + '">');
}
</script>
<link type="text/css" rel="stylesheet"
href="https://cdn.plus4u.net/libs/materialdesignicons/2.0.46/css/materialdesignicons.min.css">
<script src="https://cdn.plus4u.net/libs/systemjs/0.19.47/system.js"></script>
<script>
SystemJS.config({
"paths": {
"systemjs": "https://cdn.plus4u.net/libs/systemjs/0.19.47/system.js",
"react": "https://cdn.plus4u.net/libs/react/16.8.6/react.min.js",
"react-dom": "https://cdn.plus4u.net/libs/react-dom/16.8.6/react-dom.min.js",
"create-react-class": "https://cdn.plus4u.net/libs/create-react-class/15.6.3/create-react-class.min.js",
"prop-types": "https://cdn.plus4u.net/libs/prop-types/15.7.2/prop-types.min.js",
"uu_appg01_core": "https://cdn.plus4u.net/uu-appg01-core/4.0.0/uu_appg01_core.js",
"uu_appg01": "https://cdn.plus4u.net/uu-appg01/4.0.0/uu_appg01.js",
"uu_appg01_oidc": "https://cdn.plus4u.net/uu-appg01-oidc/2.0.0/uu_appg01_oidc.js",
"uu5g04": "https://cdn.plus4u.net/uu-uu5g04/1.0.0/uu5g04.min.js",
"uu5g04-bricks": "https://cdn.plus4u.net/uu-uu5g04/1.0.0/uu5g04-bricks.min.js",
"uu5g04-forms": "https://cdn.plus4u.net/uu-uu5g04/1.0.0/uu5g04-forms.min.js",
"uu5g04-hooks": "https://cdn.plus4u.net/uu-uu5g04/1.0.0/uu5g04-hooks.min.js",
"uu5g04-block-layout": "https://cdn.plus4u.net/uu-uu5g04/1.0.0/uu5g04-block-layout.min.js",
"uu5tilesg02": "https://cdn.plus4u.net/uu-uu5tilesg02/1.0.0/uu5tilesg02.min.js",
"librarySpa": "http://localhost:3000/library-spa.js",
"book": "http://localhost:3000/book.js",
"author": "http://localhost:3000/author.js",
"authorList": "http://localhost:3000/author-list.js",
"authorUpdateForm": "http://localhost:3000/author-update-form.js",
"bookList": "http://localhost:3000/book-list.js",
"recipeList": "http://localhost:3000/recipe-list.js",
"bookUpdateForm": "http://localhost:3000/book-update-form.js",
"bookImageForm": "http://localhost:3000/book-image-form.js",
"calls": "http://localhost:3000/calls.js"
}
});
</script>
</head>
<body>
<div id="uu5Example"></div>
<script>
</script>
<script src="https://cdn.plus4u.net/uu-appg01-template/1.0.0/in-browser-transpilation.min.js"></script>
<script type="text/babel">
import UU5 from "uu5g04";
import LibrarySpa from "librarySpa";
UU5.Common.DOM.render(<LibrarySpa />, document.getElementById('uu5Example'));
</script>
</body>
</html>