-
Notifications
You must be signed in to change notification settings - Fork 2
WEB Interface
Maurice LAMBERT edited this page Sep 28, 2021
·
5 revisions
- The index page path must be
static/templates/index.htmlof the current directory, if not exist the default value will be used. - The script page path must be
static/templates/script.htmlof the current directory, if not exist the default value will be used.
The static and JS paths is configured, you can change the configurations.
-
js_path: a list of glob syntax to get javascript files. -
statics_path: a list of glob syntax to get files (HTML, JPG, PDF, CSS, or other). Be careful with static files because there is no protection for these files.
The URL to get javascript files is: /js/<filename>.
With the default install on localhost:8000, you can request three files:
- http://127.0.0.1:8000/js/webscripts_script_js_scripts.js
- http://127.0.0.1:8000/js/webscripts_index_js_scripts.js
- http://127.0.0.1:8000/js/webscripts_js_scripts.js
The URL to get static files is: /static/<filename>.
With the default install on localhost:8000, you can request ten files:
- http://127.0.0.1:8000/static/commons.html
- http://127.0.0.1:8000/static/Errors.html
- http://127.0.0.1:8000/static/Pages.html
- http://127.0.0.1:8000/static/utils.html
- http://127.0.0.1:8000/static/WebScripts.html
- http://127.0.0.1:8000/static/webscripts_index_style.css
- http://127.0.0.1:8000/static/webscripts_script_style.css
- http://127.0.0.1:8000/static/webscripts_style.css
- http://127.0.0.1:8000/static/webscripts_header.jpg
- http://127.0.0.1:8000/static/webscripts_icon.jpg
To customize these files, you can create files with the same relative path and name from the current directory.
Images and icons are static files:
Create a file with this path and name to replace the default icon:
static/images/webscripts_icon.jpg
Create a file with this path and name to replace the default image (on the top right of the interface):
static/images/webscripts_header.jpg