This repository has been archived by the owner on Mar 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.viruz
320 lines (305 loc) · 17.6 KB
/
index.html.viruz
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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html ng-app="App">
<head>
<meta charset="UTF-8">
<title>Unity-Life</title>
<!-- config -->
<script src="config.js"></script>
<!-- angular -->
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/angular-tooltips/dist/angular-tooltips.min.js"></script>
<link href="node_modules/angular-tooltips/dist/angular-tooltips.min.css" rel="stylesheet">
<!-- tether -->
<link href="node_modules/tether/dist/css/tether.min.css" rel="stylesheet">
<script src="node_modules/tether/dist/js/tether.min.js"></script>
<!-- jquery -->
<script type="text/javascript">
window.$ = window.jQuery = require('./resources/jquery/jquery-1.12.3.min.js');
</script>
<!-- bootstrap -->
<link href="resources/bootstrap/css/bootstrap.css" rel="stylesheet">
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- fa icons-->
<link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.min.css">
<!-- alertify -->
<script src="node_modules/alertify/lib/alertify.min.js"></script>
<!-- include the core styles -->
<link rel="stylesheet" href="resources/css/alertify.core.css" />
<!-- perfect-scrollbar -->
<script src="node_modules/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js"></script>
<link rel="stylesheet" href="node_modules/perfect-scrollbar/dist/css/perfect-scrollbar.min.css">
<link href="node_modules/icheck/skins/minimal/minimal.css" rel="stylesheet">
<script src="node_modules/icheck/icheck.min.js"></script>
<!-- custom css/js -->
<link rel="stylesheet" href="resources/css/custom.css">
<script type="text/javascript" src="index.js"></script>
</head>
<body>
<div id="app">
<div class="bg-img"></div>
<div class="navbar navbar-default navbar-fixed-top">
<div class="container container-navbar">
<div class="navbar-header">
<a href="https://unity-life.de/index.php?board-list/" class="navbar-brand"><img src="resources/img/logo.png"></a>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" id="navbar-main">
<ul class="nav navbar-nav">
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<button ng-click="refresh()"
class="btn btn-success btn-reload glyphicon glyphicon-retweet"></button>
</li>
<li>
<button ng-click="minimizeApp()"
class="btn btn-warning btn-minimize glyphicon glyphicon-minus"></button>
</li>
<li>
<button ng-click="closeApp()"
class="btn btn-danger btn-close glyphicon glyphicon-remove"></button>
</li>
</ul>
</div>
</div>
</div>
<div class="content">
<div class="container">
<ul class="nav nav-tabs nav-justified main-nav">
<li class="active"><a data-toggle="tab" href="#mods">Mods</a></li>
<li><a id="settingsTab" data-toggle="tab" href="#settings">Einstellungen</a></li>
<li><a data-toggle="tab" href="#server">Server</a></li>
<li><a data-toggle="tab" href="#about">Info</a></li>
</ul>
<div class="tab-content main-content">
<div id="mods" class="tab-pane fade in active" ng-controller="modController" data-ng-init="init()">
<div class="row">
<div class="col-lg-8" id="modScroll" style="position: relative">
<div class="loading-centered" ng-if="loading">
<img src="resources/loading/loading.svg">
</div>
<div id="modCarousel" class="carousel slide" data-ride="carousel" data-interval="false">
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item" ng-repeat="mod in mods" ng-class='{active:$first}'>
<div class="row">
<div class="col-md-2">
</div>
<div class="col-md-8">
<div class="panel panel-mod">
<div class="panel-heading">
<h4 class="margin-none">{{mod.Name}}</h4>
</div>
<div class="panel-body">
<img ng-src="{{mod.ImageUrl}}" class="modImg img-thumbnail">
<hr>
{{mod.Description}}
</div>
<div class="panel-footer">
<div class="btn-group btn-group-sm">
<button class="btn btn-success btn-sm"
ng-click="action(mod)"
ng-disabled="downloading || mod.state[0] == 0">
{{mod.state[1]}}
</button>
<button class="btn btn-warning btn-sm"
ng-show="mod.state[0] !== 0 && mod.HasGameFiles"
ng-click="initHash(mod)" ng-disabled="downloading">
Prüfen
</button>
<button class="btn btn-danger btn-sm" ng-click="refresh()"
ng-disabled="downloading || mod.state[0] == 0"><i
class="fa fa-folder" aria-hidden="true"></i>
</button>
</div>
</div>
</div>
</div>
<div class="col-md-2">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<ul class="list-group list-group-unbordered margin-none">
<li class="list-group-item">
<b>Download-Status</b> <a class="pull-right"><span tooltips tooltip-template="{{hint}}">{{state}}</span></a>
</li>
<li class="list-group-item" ng-if="downloading && downSpeed > 0">
<b>Download</b> <a class="pull-right"><span tooltips
tooltip-template="Download Geschwindigkeit">{{downSpeed}} Mb/s</span></a>
</li>
<li class="list-group-item" ng-if="totalSize > 0">
<b>Heruntergeladen</b> <a class="pull-right">{{totalDownloaded}} GB/{{totalSize}}
GB</a>
</li>
<li class="list-group-item" ng-if="totalETA !== ''">
<b>Verbleibend</b> <a class="pull-right"><span tooltips
tooltip-template="Zeit verbleibend">{{totalETA}}</span></a>
</li>
</ul>
<br>
<button class="btn btn-danger btn-sm pull-right" ng-click="cancel()" ng-if="downloading">
Abbrechen <i class="fa fa-times"></i></button>
</div>
</div>
</div>
<div id="settings" class="tab-pane fade">
<div class="container" ng-controller="settingsController" data-ng-init="init()">
<div class="page">
<div class="row">
<div class="col-md-12">
<label for="pathInput">Arma 3 Pfad</label>
<div class="input-group">
<input id="pathInput" class="form-control" type="text"
placeholder="Kein Arma Pfad gesetzt" ng-model="ArmaPath" disabled>
<span class="input-group-btn">
<button ng-disabled="downloading" class="btn btn-primary" type="button"
ng-click="chooseArmaPath()"><span
class="glyphicon glyphicon-open-file"></span></button>
</span>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-4">
<div class="form-group form-inline">
<label for="splashCheck">Kein Splashscreen</label>
<span class="pull-right">
<input id="splashCheck" type="checkbox">
</span>
<hr>
<label for="introCheck">Intro überspringen</label>
<span class="pull-right">
<input id="introCheck" type="checkbox">
</span>
<hr>
<label for="htCheck">Hyper-Threading</label>
<span class="pull-right">
<input id="htCheck" type="checkbox">
</span>
<hr>
<label for="windowedCheck">Fenstermodus</label>
<span class="pull-right">
<input id="windowedCheck" type="checkbox">
</span>
</div>
</div>
<div class="col-md-8">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="memInput">Maximaler RAM</label>
<input ng-model="mem" ng-change="saveSettings()" id="memInput"
class="form-control" type="number">
</div>
<div class="form-group">
<label for="vmemInput">Maximaler vRam</label>
<input ng-model="vram" ng-change="saveSettings()" id="vmemInput"
class="form-control" type="number">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="cpuInput">CPU Anzahl</label>
<input ng-model="cpu" ng-change="saveSettings()" id="cpuInput"
class="form-control" type="number">
</div>
<div class="form-group">
<label for="threadsInput">Extra Threads</label>
<input ng-model="thread" ng-change="saveSettings()" id="threadsInput"
class="form-control" type="number">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="addInput">Eigene Startparameter</label>
<input ng-model="add_params" ng-change="saveSettings()" id="addInput"
class="form-control" type="text">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="server" class="tab-pane fade">
<div class="container">
<div class="row">
<div class="col-md-7" ng-controller="a3Controller">
<ul id="playerScroll" class="list-group list-group-unbordered margin-none" style="height: 450px;position: relative;" >
<li class="list-group-item">
<!-- Das hier muss in die Mitte-->
<b>{{ player }}</b>
</li>
</ul>
</div>
<div class="col-md-4" ng-controller="a3Controller">
Server Info:
<br>
<b>{{ html.raw.numplayers }} / {{ html.maxplayers }} Spieler sind online </b><br>
<b>IP Adresse:{{ html.query.host }}</b><br>
<b>Port:{{ html.query.port}}</b><br>
</div>
</div>
</div>
</div>
<div id="about" class="tab-pane fade">
<div class="container" ng-controller="aboutController">
Test2
</div>
</div>
<div class="pg-bars">
<span class="label label-primary label-large" ng-if="fileName !== ''">{{fileName}}</span>
<span class="label label-primary pull-right" ng-if="speed > 0">{{speed}} Mb/s</span>
<div class="progress progress-striped active" ng-if="fileProgress > 0">
<div class="progress-bar progress-bar-success" style="width: {{fileProgress}}%;"></div>
</div>
<div class="progress progress-striped active" ng-if="fileProgress > 0">
<div class="progress-bar" style="width: {{totalProgress}}%;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
$(document).on('click', 'a[href^="htt"]', function (event) {
if (this.href != "") {
event.preventDefault();
shell.openExternal(this.href);
}
});
$(document).ready(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_minimal',
radioClass: 'iradio_minimal',
increaseArea: '20%' // optional
});
appLoaded()
});
</script>
</html>
<!--
<ul id="playerScrollb" class="list-group list-group-unbordered margin-none" style="height: 350px;position: relative;" >
<li class="list-group-item", ng-repeat="player in players">
<b>{{ player }}</b>
</li>
</ul>
Server Info:
<br>
<b>{{ html.players.length }} / {{ html.maxplayers }} Spieler sind online</b><br>
<b>IP Adresse:{{ html.query.host }}</b><br>
<b>Port:{{html.query.port}}</b><br>
-->