-
Notifications
You must be signed in to change notification settings - Fork 0
/
link-control-center.php
41 lines (32 loc) · 1.04 KB
/
link-control-center.php
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
<?php
/** @var \STPH\deviceTracker\deviceTracker $module */
namespace STPH\deviceTracker;
?>
<h4 style="margin-top:0;" class="clearfix">
<div class="pull-left float-left">
<i class="fas fa-satellite-dish"></i>
Device Tracker </div>
</h4>
<p>
This page gives you an overview of your Device Tracker Configuration status and also access to system-wide tracking logs.
</p>
<?php
$module->initializeJavascriptModuleObject();
?>
<div id="STPH_DT_MONITOR"></div>
<script type='text/javascript'>
const stph_dt_getModuleFromBackend = function() {
return <?=$module->getJavascriptModuleObjectName()?>;
}
const stph_dt_getConfigFromBackend = function() {
return <?= json_encode($module->getConfig()) ?>
}
const stph_dt_getIsProjectPage = function() {
return false
}
const stph_dt_getRootFromBackend = function() {
return '<?= APP_PATH_WEBROOT ?>'
}
</script>
<!-- Insert Vue.js after DOM -->
<script src="<?= $module->getUrl('./dist/appMonitor.js') ?>"></script>