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.
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"
showOrganizationFilter="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
Option whether the organization-filter is showing or not.
Type: boolean Default: true
Presets the organization-filter with this value.
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:
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.git
Change directory:
cd webcomp-sustainability-apps/
Download all dependencies:
npm install
Build and start the project:
npm run start
The 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 lint
To create the distributable files, execute the following command:
npm run build
For support, please contact help@opendatahub.com.
If you'd like to contribute, please follow the following instructions:
main
branch.main
branch.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-commit
Then install the pre-commit hook via the config file by running:
pre-commit install