| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A docker image providing a sync-server for TaskTimeTerminate
This is a docker project, so it you will need docker to run it. It is recommended to use the docker-compose.yml provided.
One may delete ADMIN_ACCOUNT and ADMIN_PASSWORD after the account is created (and also change the password), If ADMIN_ACCOUNT is set and the account already exists, the system will overwrite the password with ADMIN_PASSWORD.
See https://github.com/KIMB-technologies/TaskTimeTerminate for more information about TTT.
This repository contains a script to import data from other devices to the server and also a script that exports the data of all devices to a directory. The format used is the same as used in the local directory synchronisation.
So one may transfer the the data from an old client (not used anymore, used clients will automatically import their data when they are connected to the server for the first time) to the server.
Create the the device for which the data should be imported and remember its token. (The name of the device can only be set once via the Webinterface).
One may use any device of an account, but the device will only get data from other devices and no data from itself. (So create a new device for a full export!)
It is possible to create custom graph-views for the stats view.
See an example e.g. Pie
When the user selects a graph and clicks on Display Graph the corresponding JS-file is loaded and the the function createGraph(combiData, plainData, singleDayData, canvas) of this file will be executed. In a file like Pie such function like createGraph(combiData, plainData, singleDayData, canvas) can be defined.
Each function gets four parameters, three *Data and one canvas. The parameter *Data are arrays containing objects with datasets, they all represent the same current data selection of the user, but haven different formats.
The object canvas is a connector to the canvas on the page, where the chart should show up. It can be directly used with new Chart(canvas, chartData).
The function must return the created Chart object, cause the stats page need access to it. So a typical wokflow will use data to generate a object chartData for ChartJS and end with return new Chart(canvas, chartData);.
For information how to create charts see https://www.chartjs.org/ (also jQuery is loaded in the DOM as $).
All JS file creating charts (and containing exactly one createGraph) have to be placed in the folder /php-code/load/graphs/ inside the docker-container. Using docker-compose one might add ./charts/:/php-code/load/graphs/ to the volumes section of the docker-compose.yml and add all file to ./charts/.
All JS file should be named like this <GraphName>.js. Of course it it recommended to use only A-Za-z-9 for the GraphName.
| Back | FazBrowse Home | New Git URL |