blob: 502ecb438ac27f05666e58f0ee51c3931d69981e (
plain)
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
|
<?php
/**
* @var \Studip\VueApp $app
* @var bool $configOnly
*/
$data = [
'appPath' => $app->getAppPath(),
'plugins' => $app->getPlugins(),
'props' => $app->getProps(),
'slots' => $app->getSlots(),
'stores' => $app->getStores(),
'storeData' => $app->getStoreData(),
'vuexStores' => $app->getVuexStores(),
'vuexStoreData' => $app->getVuexStoreData(),
];
?>
<? if (!$configOnly) : ?>
<div data-vue-app>
<script type="application/json">
<? endif ?>
<?= json_encode($data) ?>
<? if (!$configOnly) : ?>
</script>
</div>
<? endif;
|