-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·253 lines (237 loc) · 12 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Time Tracker</title>
<link rel="stylesheet" href="node_modules/@fontsource/open-sans/300.css">
<link rel="stylesheet" href="node_modules/@fontsource/open-sans/300-italic.css">
<!-- <link rel="stylesheet" href="node_modules/air-datepicker/dist/css/datepicker.min.css"> -->
<link rel="stylesheet" href="node_modules/air-datepicker/air-datepicker.css">
<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/all.min.css">
<link rel="stylesheet" href="./Styles/main.css">
<link rel="stylesheet" href="node_modules/datatables.net-bs4/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="node_modules/easy-autocomplete/dist/easy-autocomplete.min.css">
<link rel="stylesheet" href="node_modules/easy-autocomplete/dist/easy-autocomplete.themes.min.css">
<link rel="stylesheet" href="node_modules/toastr/build/toastr.min.css">
<link rel="stylesheet" href="libs/imagepicker/image-picker.css">
<link rel="stylesheet" href="node_modules/font-awesome-animation/dist/font-awesome-animation.min.css">
<!-- <link rel="stylesheet" href="node_modules/@selectize/selectize/dist/css/selectize.css"> -->
<link rel="stylesheet" href="node_modules/@selectize/selectize/dist/css/selectize.bootstrap4.css">
<link rel="stylesheet" href="node_modules/tippy.js/dist/tippy.css">
<link rel="stylesheet" href="node_modules/tippy.js/themes/light-border.css">
<link rel="stylesheet" href="./Styles/selectize.css">
</head>
<body>
<script>
window.jQuery = window.$ = require('jquery');
</script>
<!-- <script src="node_modules/jquery/dist/jquery.min.js"></script> -->
<script src="node_modules/popper.js/dist/umd/popper.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.js"></script>
<script src="node_modules/duration-pattern/duration-pattern.js"></script>
<script src="node_modules/sifter/lib/sifter.js"></script>
<script src="node_modules/@selectize/selectize/dist/js/selectize.js"></script>
<script src="./libs/timingfield.min.js"></script>
<script src="./libs/imagepicker/image-picker.min.js"></script>
<script src="node_modules/chart.js/dist/Chart.min.js"></script>
<script src="node_modules/lodash/lodash.min.js"></script>
<script src="node_modules/chartjs-plugin-annotation/chartjs-plugin-annotation.min.js"></script>
<script src="node_modules/easy-autocomplete/dist/jquery.easy-autocomplete.min.js"></script>
<script src="node_modules/toastr/build/toastr.min.js"></script>
<script src="node_modules/knockout/build/output/knockout-latest.js"></script>
<script src="node_modules/knockout-mapping/dist/knockout.mapping.min.js"></script>
<script src="libs/ko-reactor.js"></script>
<script>require('./renderer.js')</script>
<nav class="navbar navbar-expand-sm fixed-top navbar-dark" id="mainNavbar">
<div class="navbar-brand navbar-forground navbar-forground-logo" data-bind="click: openTimerList" style="cursor: pointer;" tabindex="-1">
<img src="icons/logo.png" width="25" height="25" alt="" class="d-inline-block logo">
TimeTracker
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav"
aria-expanded="false" aria-label="Toggle navigation" tabindex="-1">
<i class="fa fa-bars" aria-hidden="true" style="color: #FFFFFF;"></i>
</button>
<div class="navbar-collapse collapse" id="navbarNav">
<ul class="navbar-nav navbar-nav-left mr-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle navbar-forground" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" tabindex="-1">
<i class="fa fa-bars" title="Navigation"></i><span class="nav-link-text d-none d-lg-inline d-lg-none"> Navigation</span>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item navbar-forground" id="btnJobTimer" href="#">
<i class="far fa-clock" title="Timer"></i> Timer
</a>
<a class="dropdown-item navbar-forground" id="btnJobTable" href="#">
<i class="fa fa-table" title="Tabelle"></i> Tätigkeiten
</a>
<a class="dropdown-item navbar-forground" id="btnTickets" href="#">
<i class="fa fa-check-circle" title="Tickets"></i> Tickets
</a>
<a class="dropdown-item navbar-forground" id="btnAppSettings" href="#">
<i class="fas fa-sliders-h" title="Einstellungen"></i> Einstellungen
</a>
</div>
</li>
<!-- ko foreach: pagemenu -->
<li class="nav-item">
<a class="nav-link navbar-forground" href="#" data-bind="click: $parent.menuClick" tabindex="-1">
<i class="nav-link-icon" data-bind="css: icon"></i> <span class="nav-link-text d-none d-lg-inline d-lg-none" data-bind="text: name"></span>
</a>
</li>
<!-- /ko -->
</ul>
<ul class="nav navbar-nav ml-auto navbar-window-icons">
<!-- <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-sort-amount-desc"></i> <span class="collapsedText">Sortieren</span> <span class="caret"></span>
</a>
<div class="dropdown-menu" style="z-index: 999999;">
<a class="dropdown-item" href="#" id="btnSortTitle"><i class="fa fa-font"></i> Titel</a>
<a class="dropdown-item" href="#" id="btnSortTime"><i class="fa fa-clock-o"></i> Zeit</a>
</div>
</li> -->
<li class="nav-item">
<a class="nav-link navbar-forground" href="#" data-target="#modalAbout" data-toggle="modal" tabindex="-1">
<i class="fas fa-info-circle"></i><span>‌</span>
</a>
</li>
<div class="navbar-seperator"></div>
<li class="nav-item">
<a class="nav-link navbar-forground" href="#" data-bind="click: minimizeWindow" tabindex="-1">
<i class="fas fa-window-minimize"></i><span>‌</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link navbar-forground" href="#" data-bind="click: maximizeWindow" tabindex="-1">
<i class="fas fa-window-maximize"></i><span>‌</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link navbar-forground" href="#" data-bind="click: closeWindow" tabindex="-1">
<i class="fas fa-window-close"></i><span>‌</span>
</a>
</li>
</ul>
</div>
</nav>
<div id="background" class="background"></div>
<div id="mainContent"></div>
<div id="appSettings" class="mainContent"></div>
<div id="jobtable" class="mainContent"></div>
<div id="timerList" class="mainContent" style="background-color: transparent !important;"></div>
<div id="ticketList" class="mainContent" style="background-color: transparent !important;"></div>
<div id="footerContainer">
<div id="sidebarContainer">
<div id="sidebarButton" href="#"><i class="fa fa-chevron-up fa-xs" id="buttonSymbol" aria-hidden="true"></i></div>
</div>
<div id="chartContainer">
<canvas id="chart"></canvas>
</div>
<div id="timeInfoContainer" class="container-fluid">
<table style="width:100%">
<tr>
<td class="col-left">Start</td>
<td class="col-space"></td>
<td class="col-right"><span data-bind="text:dayStarted">-</span> Uhr</td>
</tr>
<tr>
<td class="col-left">Ende</td>
<td class="col-space"></td>
<td class="col-right"><span data-bind="text:dayEnd">-</span> Uhr</td>
</tr>
<tr>
<td class="col-left">Ende+</td>
<td class="col-space"></td>
<td class="col-right"><span data-bind="text:dayEndPlus">-</span></td>
</tr>
<tr>
<td class="col-left">Am PC</td>
<td class="col-space"></td>
<td class="col-right"><span data-bind="text:machineRunning">-</span></td>
</tr>
<tr>
<td class="col-left">Überstd.</td>
<td class="col-space"></td>
<td class="col-right"><span data-bind="text:overtime">-</span></td>
</tr>
</table>
</div>
<div id="footer" class="navbar-forground">
<div id="footerLeftContent">
<div id="footerLeftTaskDescription">
<i class="fa fa-check-square" aria-hidden="true"></i> <span id="currentTaskDescription" data-bind="text:leftJobDescription">keine
laufende Aufgabe</span>
</div>
<i class="fa fa-stopwatch" aria-hidden="true" style="margin-left: 10px;" data-bind="visible: leftJobDuration() !==''"></i> <span id="currentTaskTime" data-bind="text:leftJobDuration"></span>
</div>
<div id="footerRightContent">
<span class="selectedTimeSumContainer" data-bind="visible: selectedTimeSum">Ʃ Auswahl <span id="selectedTimeSum" data-bind="text:selectedTimeSum">00:00:00</span> | </span> Ʃ <span id="textTimeSum" data-bind="text:rightTimeSum">00:00:00</span>
</div>
</div>
</div>
<div id="modals"></div>
<div class="modal fade" id="modalAbout" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Über...</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<div class="row align-items-center">
<div class="col-md-auto">
<img src="./icons/logo.png" style="width: 50px; height: 50px;">
</div>
<div class="col-md-auto">
<h3>TimeTracker</h3>
</div>
</div>
<div class="row">
<div class="col">
Version: <span data-bind="text: appVersion"></span>
</div>
</div>
<div class="row">
<div class="col">
Autor: Marc Lammers
</div>
</div>
<div class="row">
<div class="col">
github: https://github.com/marc2016/TimeTracker2020
</div>
</div>
<div class="row">
<div class="col">
<hr class="hline">
</div>
</div>
<div class="row">
<div class="col">
<span class="update-message" data-bind="visible: updateAvailable() == false">Die App ist auf dem
aktuellen Stand.</span>
<span class="update-message" data-bind="visible: updateAvailable() == true"><i class="fas fa-download faa-flash animated faa-slow"></i>
Neue Version wird runtergeladen </span><span class="update-message" data-bind="visible: updateAvailable() == true, text: '('+downloadProgress()+'%)'"></span>
<span class="update-message" data-bind="visible: updateAvailable() == 'checking'"><i class="fas fa-sync-alt fa-spin"></i>
Es wird auf Updates geprüft...</span>
<span class="update-message" data-bind="visible: updateAvailable() == 'ready'"><i class="fas fa-check-square"></i>
Update heruntergeladen. Zum Installieren bitte Anwendung schließen.</span>
</div>
<div class="col-md-auto">
<button class="btn btn-info btn-sm" data-bind="click: checkForUpdatesClick, visible: updateAvailable() == false">Auf
Updates prüfen</button>
<button class="btn btn-info btn-sm" data-bind="click: closeApp,, visible: updateAvailable() == 'ready'">App
schließen</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>