aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-03-23 18:03:00 +0100
committern-peugnet <n.peugnet@free.fr>2020-03-23 18:03:00 +0100
commita7174bb27de46b2f64118181221fad3658f511d3 (patch)
treec0ed8fc166f222cd6d0f843dee60baa147e8316a /app
parent21569fcabfdcedbdd7f0185d9a7c5518f52f880c (diff)
downloadwcms-a7174bb27de46b2f64118181221fad3658f511d3.tar.gz
wcms-a7174bb27de46b2f64118181221fad3658f511d3.zip
clean: remove temporary map dev page
Diffstat (limited to 'app')
-rw-r--r--app/class/Controllerhome.php18
-rw-r--r--app/class/Routes.php1
-rw-r--r--app/view/templates/map.php15
3 files changed, 0 insertions, 34 deletions
diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php
index 7b7024d..4fa9a0b 100644
--- a/app/class/Controllerhome.php
+++ b/app/class/Controllerhome.php
@@ -93,24 +93,6 @@ class Controllerhome extends Controllerpage
}
}
- /**
- * Temporary map display function
- */
- public function map()
- {
- if ($this->user->isadmin()) {
-
- $pagelist = $this->modelhome->getlister();
- $datas = $this->modelhome->mapdata($pagelist);
-
- $vars['json'] = json_encode($datas, JSON_PRETTY_PRINT);
-
- $this->showtemplate('map', $vars);
-
- }
-
- }
-
public function columns()
{
if (isset($_POST['columns']) && $this->user->iseditor()) {
diff --git a/app/class/Routes.php b/app/class/Routes.php
index c538d78..e71bf59 100644
--- a/app/class/Routes.php
+++ b/app/class/Routes.php
@@ -19,7 +19,6 @@ class Routes
$router->addRoutes([
['GET', '/', 'Controllerhome#desktop', 'home'],
['POST', '/', 'Controllerhome#desktop', 'homequery'],
- ['GET', '/map', 'Controllerhome#map', 'map'],
['POST', '/columns', 'Controllerhome#columns', 'homecolumns'],
['POST', '/colors', 'Controllerhome#colors', 'homecolors'],
['GET', '//renderall', 'Controllerhome#renderall', 'homerenderall'],
diff --git a/app/view/templates/map.php b/app/view/templates/map.php
deleted file mode 100644
index 83e6004..0000000
--- a/app/view/templates/map.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<style>
- #graph {
- height: 100%;
- width: 100%;
- }
-</style>
-
-<div id="graph"></div>
-
-<script>
- var data = <?= $json ?>;
- console.log(data);
-</script>
-
-<script src="<?= Wcms\Model::jspath() ?>map.bundle.js"></script> \ No newline at end of file