mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 08:50:12 +00:00
42 lines
822 B
Text
42 lines
822 B
Text
<!--
|
|
(C) 2013-22 - ntop.org
|
|
-->
|
|
|
|
<div id="vue-app">
|
|
<page-host-details-traffic
|
|
:page_csrf="page_csrf">
|
|
</page-host-details-traffic>
|
|
</div>
|
|
|
|
<script type="application/javascript">
|
|
|
|
let pageCsrf = "{{ ntop.getRandomCSRFValue() }}";
|
|
|
|
function start_vue() {
|
|
const page_csrf = '{* ntop.getRandomCSRFValue() *}'
|
|
|
|
const vue_options = {
|
|
components: {
|
|
'page-host-details-traffic': ntopVue.PageHostDetailsTraffic,
|
|
},
|
|
/**
|
|
* First method called when the component is created.
|
|
*/
|
|
created() {},
|
|
mounted() {},
|
|
data() {
|
|
return {
|
|
page_csrf: page_csrf,
|
|
};
|
|
},
|
|
methods: {},
|
|
};
|
|
const _vue = ntopVue.Vue.createApp(vue_options);
|
|
const vue_app = _vue.mount("#vue-app");
|
|
return vue_app;
|
|
}
|
|
|
|
$(document).ready(async function(){
|
|
start_vue();
|
|
});
|
|
</script>
|