Weather Mountain Web Component

REUSE Compliance REUSE status CI

Weather in the mountains of South Tyrol in various languages.

Do you want to see it in action? Go to our web component store!

Getting Started

Follow the instruction here below for the development instructions.

Prerequisites

What things you need to install the software and how to install them

  • Node (global)
  • NPM (global)

Installing

A step by step series of examples that tell you how to get a development env running

Install npm project's dependencies

npm install

Usage

Build all widget using Rollup:

npm run build

Watch component using Rollup with dev purpose:

npm run start

To view the component changes (example with python3):

cd ./work
python3 -m http.server

You will see the components in action at http://0.0.0.0:8000/ url.

Customizations

Use a custom font

Using the --webcomp-weather-mountain-font-family css variable you can set a custom font-family. link to MDN doc

<style>
  odh-weather-mountain.en_widget {
    --webcomp-weather-mountain-font-family: Metal Mania;
  }
</style>
<odh-weather-mountain class="en_widget" language_translation="en"></odh-weather-mountain>

Dist folder in packages

Built With

Information

Support

For support, please contact help@opendatahub.com.

Contributing

If you'd like to contribute, please follow the following instructions:

  • Fork the repository.

  • Checkout a topic branch from the development branch.

  • Make sure the tests are passing.

  • Create a pull request against the development branch.

A more detailed description can be found here: https://github.com/noi-techpark/documentation/blob/master/contributors.md.

Documentation

More documentation can be found at https://opendatahub.readthedocs.io/en/latest/index.html.

Boilerplate

The project uses this boilerplate: https://github.com/noi-techpark/webcomp-boilerplate.

License

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.

REUSE

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