Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 10-Mar-2020 | - | ||||
css/ | H | 10-Mar-2020 | - | 300 | 273 | |
images/ | H | 03-May-2022 | - | |||
js/ | H | 03-May-2022 | - | |||
public/ | H | 03-May-2022 | - | |||
templates/ | H | 10-Mar-2020 | - | 17 | 13 | |
README.md | H A D | 10-Mar-2020 | 705 | 53 | 38 | |
package-lock.json | H A D | 10-Mar-2020 | 224.3 KiB | 6,752 | 6,751 | |
package.json | H A D | 10-Mar-2020 | 790 | 32 | 31 | |
yarn.lock | H A D | 10-Mar-2020 | 129.6 KiB | 3,908 | 3,282 |
README.md
1# How to contribute? 2 3In order to build the assets of the Web UI, you'll need [npm](https://docs.npmjs.com/getting-started/what-is-npm). 4 5You must run the following command from the `glances/outputs/static/` directory. 6 7## Install dependencies 8 9```bash 10$ npm install 11``` 12 13## Build assets 14 15Run the build command to build assets once : 16 17```bash 18$ npm run build 19``` 20 21or use the watch command to rebuild only modified files : 22 23```bash 24$ npm run watch 25``` 26 27# Anatomy 28 29```bash 30static 31| 32|--- css 33| 34|--- images 35| 36|--- js 37| 38|--- public # path where builds are put 39| 40|--- templates (bottle) 41``` 42 43## Data 44 45Each plugin receives the data in the following format: 46 47* stats 48* views 49* isBsd 50* isLinux 51* isMac 52* isWindows 53