Events Today is a web component that displays a list of events that are happening at EURAC. It fetches data from the EventShort API and displays the events in a simple, easy-to-read format.
Table of Contents
To use the "Events Today" web component, you need to include the following code in your HTML file:
<events-today></events-today>The room attribute allows you to select events based on the specific room or location where the event will be held. The room attribute can be used as a filter to narrow down the search results and show only events that are taking place in a particular room or location.
Default value is empty, so all rooms are shown.
<events-today room="Seminar 1"></events-today>
The maxEvents attribute controls the limit on the number of events that can be shown on a page.
If the value is 1, the font size and layout changes.
Default value is 4.
<events-today maxEvents="1"></events-today>
The languageRotationInterval attribute's defines after how many seconds the titles of the events are shown in another language.
Default value is 10.
<events-today languageRotationInterval="20"></events-today>
The imageGalleryUrl attribute's defines is an URL to an AWS S3 bucket containing images, that will show, if no events are happening at the moment.
Note: The images must be in the root directory of the bucket and the bucket must be listable, so that the Webcomponent can see all images file names and switch between them.
Default value is "https://s3.eu-west-1.amazonaws.com/it.bz.noi.today.eurac.gallery".
<events-today imageGalleryUrl="https://s3.eu-west-1.amazonaws.com/it.bz.noi.today.eurac.gallery"></events-today>
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 18.x / NPM 9.x
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 [email protected]:noi-techpark/webcomp-events-today.gitChange directory:
cd webcomp-events-today/Download all dependencies:
npm installBuild and start the project:
npm startYou can the open the created dist/demo.html file in your browser.
To create the distributable files, execute the following command:
npm run buildFor support, please contact [email protected].
If you'd like to contribute, please follow the Contributor Guidelines that can be found at https://github.com/noi-techpark/odh-docs/wiki/Contributor-Guidelines%3A-Getting-started.
More documentation can be found at https://opendatahub.readthedocs.io/en/latest/index.html.
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