-
Notifications
You must be signed in to change notification settings - Fork 0
/
link-project.php
36 lines (30 loc) · 1.01 KB
/
link-project.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
<?php
/** @var \STPH\deviceTracker\deviceTracker $module */
namespace STPH\deviceTracker;
$module->initializeJavascriptModuleObject();
?>
<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 project-wide tracking logs.
</p>
<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 true
}
const stph_dt_getRootFromBackend = function() {
return '<?= APP_PATH_WEBROOT ?>'
}
</script>
<!-- Insert Vue.js after DOM -->
<script src="<?= $module->getUrl('./dist/appMonitor.js') ?>"></script>