Full code cleanup

This commit is contained in:
Pieter Vander Vennet 2021-11-07 16:34:51 +01:00
parent 8e6ee8c87f
commit bd21212eba
246 changed files with 19418 additions and 11729 deletions

View file

@ -9,12 +9,15 @@ If you want to add a missing socket type, then:
- Add all the properties in 'types.csv'
- Add an icon. (Note: icons are way better as pictures as they are perceived more abstractly)
- Update license_info.json with the copyright info of the new icon. Note that we strive to have Creative-commons icons only (though there are exceptions)
- Update license_info.json with the copyright info of the new icon. Note that we strive to have Creative-commons icons
only (though there are exceptions)
AT this point, most of the work should be done; feel free to send a PR. If you would like to test it locally first (which is recommended) and have a working dev environment, then run:
AT this point, most of the work should be done; feel free to send a PR. If you would like to test it locally first (
which is recommended) and have a working dev environment, then run:
- Run 'ts-node csvToJson.ts' which will generate a new charging_station.json based on the protojson
- Run`npm run query:licenses` to get an interactive program to add the license of your artwork, followed by `npm run generate:licenses`
- Run`npm run query:licenses` to get an interactive program to add the license of your artwork, followed
by `npm run generate:licenses`
- Run `npm run generate:layeroverview` to generate the layer files
- Run `npm run start` to run the instance
@ -30,6 +33,6 @@ The columns in the CSV file are:
- countryWhiteList: Only show this plug type in these countries
- countryBlackList: Don't show this plug type in these countries. NOt compatibel with the whiteList
- commonVoltages, commonCurrents, commonOutputs: common values for these tags
- associatedVehicleTypes and neverAssociatedWith: these work in tandem to hide options.
If every associated vehicle type is `no`, then the option is hidden
If at least one `neverAssociatedVehicleType` is `yes` and none of the associated types is yes, then the option is hidden too
- associatedVehicleTypes and neverAssociatedWith: these work in tandem to hide options. If every associated vehicle type
is `no`, then the option is hidden If at least one `neverAssociatedVehicleType` is `yes` and none of the associated
types is yes, then the option is hidden too