A web component displaying statistics for various sustainability apps used in South Tyrol. Currently, the web component only supports Suedtirol Radelt but Lock.All and Ummadum will be included soon.
- webcomp-sustainability-apps
Include the webcompscript file dist/sustainability-apps.umd.js in your HTML and define the web component like this:
<sustainability-apps fontColor="#000" language="en" showSustainabilityActionFilter="true"/>The font color in hex format (e.g. #000000 for black).
Type: string Default: '#000000'
Two letter key for the language to be used.
Type: string Default: 'en'
Option whether the sustainability action filter is showing or not.
Type: boolean Default: true
Organisation for which the data is shown.
Type: string Required: false
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To build the project, the following prerequisites must be met:
- Node 12 / NPM 6
For a ready to use Docker environment with all prerequisites already installed and prepared, you can check out the Docker environment section.
Get a copy of the repository:
git clone https://github.com/noi-techpark/webcomp-sustainability-apps.gitChange directory:
cd webcomp-sustainability-apps/Download all dependencies:
npm installBuild and start the project:
npm run startThe application will be served and can be accessed at http://localhost:8080.
The tests and the linting can be executed with the following commands:
npm run test
npm run lintTo create the distributable files, execute the following command:
npm run buildFor support, please contact help@opendatahub.com.
If you'd like to contribute, please follow the following instructions:
- Fork the repository.
- Checkout a topic branch from the
mainbranch. - Make sure the tests are passing.
- Create a pull request against the
mainbranch.
A more detailed description have a look at our Getting Started Guide.
More documentation can be found at https://docs.opendatahub.com.
The project uses this boilerplate: https://github.com/noi-techpark/webcomp-boilerplate.
The code in this project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 license. See the LICENSE.md file for more information.
This project is REUSE compliant, more information about the usage of REUSE in NOI Techpark repositories can be found here.
Since the CI for this project checks for REUSE compliance you might find it useful to use a pre-commit hook checking for REUSE compliance locally. The pre-commit-config file in the repository root is already configured to check for REUSE compliance with help of the pre-commit tool.
Install the tool by running:
pip install pre-commitThen install the pre-commit hook via the config file by running:
pre-commit install