-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
84 lines (73 loc) · 3.24 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
<!doctype html>
<html lang="en" style="height: 100%;">
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0, shrink-to-fit=no, maximum-scale=1.0, user-scalable=no">
<link rel="manifest" href="./manifest.json">
<title>web-component-designer-simple-demo</title>
<script type="esms-options">
{
"shimMode": true
}
</script>
<script src="./node_modules/es-module-shims/dist/es-module-shims.js"></script>
<script>
const importMap = {
imports: {
"monaco-editor/": "./node_modules/monaco-editor/",
"@node-projects/web-component-designer-codeview-monaco": "./node_modules/@node-projects/web-component-designer-codeview-monaco/dist/widgets/codeView/code-view-monaco.js",
"@node-projects/web-component-designer-codeview-monaco/": "./node_modules/@node-projects/web-component-designer-codeview-monaco/",
"@node-projects/web-component-designer": "./node_modules/@node-projects/web-component-designer/dist/index.js",
"@node-projects/web-component-designer/": "./node_modules/@node-projects/web-component-designer/",
"@node-projects/base-custom-webcomponent/": "./node_modules/@node-projects/base-custom-webcomponent/",
"@node-projects/base-custom-webcomponent": "./node_modules/@node-projects/base-custom-webcomponent/dist/index.js",
"@node-projects/web-component-designer-zpl": "./node_modules/@node-projects/web-component-designer-zpl/dist/index.js",
"@node-projects/web-component-designer-zpl/": "./node_modules/@node-projects/web-component-designer-zpl/",
"@node-projects/web-component-designer-codeview-monaco": "./node_modules/@node-projects/web-component-designer-codeview-monaco/dist/widgets/codeView/code-view-monaco.js",
"@node-projects/web-component-designer-codeview-monaco/": "./node_modules/@node-projects/web-component-designer-codeview-monaco/"
}
};
//@ts-ignore
importShim.addImportMap(importMap);
</script>
<script src="./node_modules/monaco-editor/min/vs/loader.js"></script>
<script>
require.config({ paths: { 'vs': 'node_modules/monaco-editor/min/vs', 'vs/css': { disabled: true } } });
require(['vs/editor/editor.main'], () => { });
</script>
<style>
body {
height: 100%;
width: 100%;
margin: 0;
font-family: 'Roboto', 'Noto', sans-serif;
line-height: 1.5;
background-color: white;
overflow: hidden;
-webkit-font-smoothing: antialiased;
}
#root {
display: grid;
grid-template-areas:
"a c"
"b c";
grid-template-columns: 200px 1fr;
grid-template-rows: 1fr 2fr;
height: 100%;
width: 100%;
gap: 3px;
}
</style>
</head>
<body style="height: 100%; width: 100%;">
<div id="root">
<node-projects-palette-view style="grid-area: a;"></node-projects-palette-view>
<node-projects-web-component-designer-property-grid-with-header style="grid-area: b;"></node-projects-web-component-designer-property-grid-with-header>
</div>
</body>
<script type="module">
importShim('./dist/initialize.js');
</script>
</html>