Skip to content

Commit

Permalink
GUI develooper docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DGabri committed May 28, 2024
1 parent 5af5678 commit 6ff8368
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/developers/README.GUI.quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ The folder `http_src/` contains all the webpages scripts.
- `http_src/utilities` contains all utility functions
- `http_src/ntopng.js` contains all global imports that will be visible inside single components
- `pages/` is found in `httpdocs/templates/pages/`
- `httpdocs` is the folder for GUI data, dist folder is present inside it
- `httpdocs/` is the folder for GUI data, dist folder is present inside it
- `template.render("pages/vue_page.template", { vue_page_name = "PageSNMPDevices", page_context = json_context })` some .lua pages render vue components. The name of the component is the value of `vue_page_name`, in this case the component is `PageSNMPDevices`. This is the name of the component importend in the script `http_src/vue/ntop_vue.js`. This is the import: `import { default as PageSNMPDevices } from "./page-snmp-devices.vue"` where PageSNMPDevices is the name of the vue component imported and displayed on the webpage and the component is found in the file page-snmp-devices.vue

## Webpage structure

Expand Down

0 comments on commit 6ff8368

Please sign in to comment.