@datopian/edp
v1.6.1
Published
NG Frontend theme for EDP project.
Downloads
50
Readme
Energi Data Portal
Contributing
EDP is a theme for frontend-v2 express js app with additional subcomponents from other repositories.
Content Management
TODO: links to CMS and CMS docs in google drive.
Subcomponents
Build Report
A react application for /build-report page. See update-build-report.sh
for more info on how it's built.
Metadata search
/build-report
page also contains metadata search element. It uses API provided by TODO insert metastore link.
Visualizations
Solar and wind records
Development in electricity consumption
Getting started
Install dependencies:
yarn
CSS
We're using tailwindcss for creating stylesheets. To build the CSS file:
yarn build
Cookies
To stay GDPR compliant
Enclose all html that embeds third-party resource (and may result in third-party cookies) in:
<div class="blockedHTML">
{% include "partials/cookie-consent-placeholder.njk" %}
<template class="cookieConsent">
<!-- your tag here -->
</template>
</div>
and put type javascript/blocked
to all javascript that may result in cookies:
<script type="javascript/blocked" src="your/source"></script>
Scripts used
- cookieconsent.min.js - https://github.com/osano/cookieconsent - the banner
- yett.min.js - https://github.com/snipsco/yett - for blocking javascript