From 01119e990d0265e781ea6850a5e8dcc1be0be5ad Mon Sep 17 00:00:00 2001 From: planctus Date: Thu, 24 Mar 2022 12:26:48 +0200 Subject: [PATCH] chore(docs): Adding info about moment.js in getting started - FRONT-3576 (#2364) Co-authored-by: Romain Emery --- README.md | 5 +++++ src/website/src/pages/ec/getting-started/index.md | 5 +++++ src/website/src/pages/eu/getting-started/index.md | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 9db3e2cc8d9..d632b9e030d 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,11 @@ The ECL is bundled in various [presets](docs/presets.md) in order to accomodate > ``` +### :warning: moment.js + +ECL uses [Pikaday](https://github.com/Pikaday/Pikaday) which requires [moment.js](https://momentjs.com/) and this library is not bundled by ECL. +Therefore **moment.js needs to be loaded or bundled by the application or website using ECL**, depending on the needs. + ## Need help? Please contact [COMM Europa Management](mailto:Europamanagement@ec.europa.eu) for support on using this resource for a European Commission website. diff --git a/src/website/src/pages/ec/getting-started/index.md b/src/website/src/pages/ec/getting-started/index.md index 78080051816..3fed46ce946 100644 --- a/src/website/src/pages/ec/getting-started/index.md +++ b/src/website/src/pages/ec/getting-started/index.md @@ -64,6 +64,11 @@ Here is an example of default HTML file using ECL: ``` +### moment.js + +As explained in a more technical language in the [datepicker api page](/ec/components/forms/datepicker/api/) ECL uses [Pikaday](https://github.com/Pikaday/Pikaday) which requires [moment.js](https://momentjs.com/) and this library is not bundled by ECL. +Therefore **moment.js needs to be loaded or bundled by the application or website using ECL**, depending on the needs. + ### Update file path and name - If you wish to use ECL EU instead of ECL EC, you can find information here diff --git a/src/website/src/pages/eu/getting-started/index.md b/src/website/src/pages/eu/getting-started/index.md index 52481d01bc5..302fcc44776 100644 --- a/src/website/src/pages/eu/getting-started/index.md +++ b/src/website/src/pages/eu/getting-started/index.md @@ -63,6 +63,10 @@ Here is an example of default HTML file using ECL: ``` +### moment.js + +As explained in a more technical language in the [datepicker api page](/eu/components/forms/datepicker/api/) ECL uses [Pikaday](https://github.com/Pikaday/Pikaday) which requires [moment.js](https://momentjs.com/) and this library is not bundled by ECL. +Therefore **moment.js needs to be loaded or bundled by the application or website using ECL**, depending on the needs. ### Update file path and name