You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings-vue.php 755B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  4. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  5. *
  6. * @license GNU AGPL version 3 or any later version
  7. *
  8. * This is the default empty template to load Vue!
  9. * Do your cbackend computations into a php files
  10. * then serve this file as template and include your data into
  11. * the $serverData template variable
  12. *
  13. * return new TemplateResponse('settings', 'settings', ['serverData' => $serverData]);
  14. *
  15. */
  16. script('settings', 'settings-vue');
  17. style('settings', 'settings');
  18. // Did we have some data to inject ?
  19. if(is_array($_['serverData'])) {
  20. ?>
  21. <span id="serverData" data-server="<?php p(json_encode($_['serverData']));?>"></span>
  22. <?php } ?>