-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex-dev.html
44 lines (38 loc) · 1.34 KB
/
index-dev.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="/gis/static_apps/crud/dist/bundles/can-admin/app/crud.css">
</head>
<body>
<div id="app"></div>
<!--[if lt IE 9]>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.13/es5-shim.min.js"></script>
<![endif]-->
<script>
//let steal know we've already loaded the main css
steal = {
instantiated: {
"bundles/can-admin/app/crud.css!$css": null
}
};
</script>
<script src="node_modules/steal/steal.js" data-main="can-admin/app/crud">
// define config path here
var config = 'can-admin/config/news/news';
Promise.all([
steal.import('can-admin/app/crud'),
steal.import(config)
]).then(function(modules) {
var AppViewModel = modules[0].AppViewModel;
var config = modules[1].default || modules[1].config;
var app = new AppViewModel(config);
app.startup(document.getElementById('app'));
});
</script>
</body>
</html>