npm.io
1.6.1 • Published 5 years ago

@datopian/edp

Licence
ISC
Version
1.6.1
Deps
8
Size
20.9 MB
Vulns
16
Weekly
0

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.

/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