aboutsummaryrefslogtreecommitdiff
path: root/templates/vue-app.php
blob: 7df6a015e5e7df451160bec72bffd4fcc841811e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * @var \Studip\VueApp $app
 */
$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(),
];
?>
<div data-vue-app>
     <script type="application/json"><?= json_encode($data) ?></script>
</div>