• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..10-Mar-2020-

css/H10-Mar-2020-300273

images/H03-May-2022-

js/H03-May-2022-

public/H03-May-2022-

templates/H10-Mar-2020-1713

README.mdH A D10-Mar-2020705 5338

package-lock.jsonH A D10-Mar-2020224.3 KiB6,7526,751

package.jsonH A D10-Mar-2020790 3231

yarn.lockH A D10-Mar-2020129.6 KiB3,9083,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