-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
71 lines (58 loc) · 2.06 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Kuroko</title>
<script src="dist/external_modules.js"></script>
<!-- CSS リセットがかかった後に適用したいので,この下に -->
<style type="text/css">
html, body {
width: 100%; /* ウィンドウ全体に*/
height: 100%;
margin: 0; /* すきまなく */
overflow: hidden;
background-color: #777;
}
</style>
</head>
<body>
<!-- Mount point -->
<div id="app-holder">
<app :store="store"></app>
</div>
<script>
let {remote} = require("electron");
let {Vue, BootstrapVue, BootstrapVueIcons, httpVueLoader} = global.externalModules;
let Store = require("./store.js").Store;
let store = new Store(global.externalModules);
let template = [{
label: "Help",
submenu: [
{
label: "Toggle Dev Tool",
click: function(){remote.getCurrentWindow().toggleDevTools();}
},
{
label: "About Kuroko",
click: function(){store.trigger(store.ACTION.OPEN_DIALOG_MODAL_MESSAGE, "Kuroko Version 0.06");}
}
]
}];
let Menu = remote.Menu;
let menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
Vue.use(BootstrapVue)
Vue.use(BootstrapVueIcons)
Vue.use(httpVueLoader);
let vue = new Vue({
el: "#app-holder",
data: {
store: store
},
components: {
app: "url:components/app.vue"
}
});
</script>
</body>
</html>