-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
166 lines (145 loc) · 5.69 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="abas Watchdog">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<title>abas-watchdog</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="node_modules/material-design-lite/dist/material.blue_grey-red.min.css">
<link rel="stylesheet" href="node_modules/toastr/build/toastr.css">
<link rel="stylesheet" type="text/css" href="node_modules/dialog-polyfill/dialog-polyfill.css" />
<link rel="stylesheet" href="assets/css/context.standalone.css">
<link rel="stylesheet" href="assets/css/styles.css">
<!-- um jquery zum laufen zubringen -->
<script>
if (typeof module === 'object') {
window.module = module;
module = undefined;
}
</script>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/dialog-polyfill/dialog-polyfill.js"></script>
<script src="assets/js/jquery.i18n.js"></script>
<script src="assets/js/jquery.i18n.messagestore.js"></script>
<script src="assets/js/jquery.i18n.fallbacks.js"></script>
<script src="assets/js/jquery.i18n.language.js"></script>
<script src="assets/js/jquery.i18n.parser.js"></script>
<script src="assets/js/jquery.i18n.emitter.js"></script>
<script src="assets/js/jquery.i18n.emitter.bidi.js"></script>
<script>
if (window.module) module = window.module;
</script>
</head>
<body>
<!-- eigentlischer Content -->
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row" style="padding: 0px 15px 0px 15px;">
<!-- refresh button -->
<div class="mdl-layout-spacer"></div>
<button id="lang" class="mdl-button mdl-js-button" style="color:white;">
<span data-i18n="language">Sprache</span>
<i class="material-icons">more_vert</i>
</button>
<ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect" id="lang-menu" for="lang">
<!-- sprache menü einträge gehen hier hin -->
</ul>
</div>
</header>
<main class="mdl-layout__content">
<div class="container-fluid">
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--12-col">
<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp" style="width: 100%;">
<thead>
<tr>
<th data-i18n="window">Fenster</th>
<th data-i18n="client">Mandant</th>
<th data-i18n="open_since">offen seit</th>
</tr>
</thead>
<tbody id="windows">
</tbody>
</table>
</div>
<div class="mdl-cell mdl-cell--12-col">
<label id="activity-label"></label>
</div>
<div class="mdl-cell mdl-cell--12-col">
<label id="closed-label"></label>
</div>
<div class="mdl-cell mdl-cell--12-col">
<label id="lic-label"></label>
</div>
</div>
</div>
</main>
</div>
<dialog class="mdl-dialog" id="dialog">
<h4 class="mdl-dialog__title" data-i18n="dialog_title">Allow data collection?</h4>
<div class="mdl-dialog__content">
<p data-i18n="dialog_error">
Allowing us to collect data will let us get you the information you want faster.
</p>
</div>
<div class="mdl-dialog__actions" >
<button type="button" class="mdl-button close" data-i18n="ok">Ok</button>
</div>
</dialog>
<dialog class="mdl-dialog" id="settingsdialog">
<h4 class="mdl-dialog__title">Settings</h4>
<div class="mdl-dialog__content">
<p id="settings">
</p>
</div>
<div class="mdl-dialog__actions" >
<button type="button" class="mdl-button close" data-i18n="ok">Ok</button>
</div>
</dialog>
<!-- fremd -->
<script src="node_modules/material-design-lite/material.min.js"></script>
<script src="node_modules/toastr/build/toastr.min.js"></script>
<script src="assets/js/bootstrap3-typeahead.min.js"></script>
<!-- settings
<script type="text/javascript">
function loadScript(src) {
return new Promise(function(resolve, reject) {
var s;
s = document.createElement('script');
s.src = src;
s.onload = resolve;
s.onerror = reject;
document.head.appendChild(s);
});
}
const path = require("path");
var fs = require('fs');
console.log("__dirname:" , __dirname);
console.log("process.cwd:" , process.cwd());
console.log("watchdog dir exists:", fs.existsSync("watchdog"));
if (fs.existsSync("watchdog")) {
console.log("loading settings from :"+process.cwd()+"/assets/js/settings.js");
loadScript('assets/js/settings.js');
loadScript('assets/js/watchdog.js');
loadScript('assets/js/lang.js');
} else {
console.log("loading settings from :"+process.cwd()+"/watchdog/assets/js/settings.js");
loadScript('watchdog/assets/js/settings.js');
loadScript('watchdog/assets/js/watchdog.js');
loadScript('watchdog/assets/js/lang.js');
}
</script>
-->
<!-- settings -->
<script src="assets/js/settings.js"></script>
<!-- watchdog -->
<script src="assets/js/watchdog.js"></script>
<!-- lang -->
<script src="assets/js/lang.js"></script>
<!-- ipc -->
<script src="assets/js/ipc.js"></script>
</body>
</html>