Commit 5402b2a9 authored by Matija Obreza's avatar Matija Obreza
Browse files

Use Gitlab pages to demo current version

parent e1c156cf
stages:
# - compile
- publish
# build:
# stage: compile
# # only:
# # - master
# # - tags
# image: node:12-alpine
# cache:
# paths:
# - node_modules/
# - .awesome-typescript-loader-cache/
# script:
# - yarn
# - yarn build
# artifacts:
# name: "${CI_PROJECT_NAME}-${CI_COMMIT_REF_NAME}"
# expire_in: 1 day
# paths:
# - dist
pages:
stage: publish
only:
- master
# - tags
# dependencies:
# - build
cache:
paths:
- public
script:
# Make public dir for the first run
- rm -rf public
- mkdir -p public
# Copy files
- cp index.html public/
- find public
artifacts:
paths:
- public
expire_in: 30 minute
This is a test.
# Enhance your website with data from Genesys
This package allows for embedding Genesys into your website.
1. Add a few external Javascripts to your page:
The demo at https://genesys-pgr.p.gitlab.croptrust.org/ui-embedded/ displays data from
`COL003` and `BEL084` in a single website.
## Genesys on your website
1. Add a few Javascripts to your page:
```html
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.20/lodash.min.js"></script>
......@@ -33,4 +36,4 @@ This package allows for embedding Genesys into your website.
</script>
```
**Note:** Please contact helpdesk@genesys-pgr.org to obtain API keys for use in your Production environment.
**Note:** Please contact helpdesk@genesys-pgr.org to obtain API keys for use in your environment.
......@@ -18,7 +18,7 @@
<div class="container-fluid">
<h1>
Welcome to my homepage!
Data from COL003 and BEL084
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur a tellus egestas, efficitur est ac, rhoncus urna. Nullam porttitor diam nec lorem gravida maximus. Phasellus lobortis nisi dui, ut pellentesque ante malesuada vel. Donec tristique sodales velit, eu rhoncus ligula interdum id. Fusce molestie aliquam mauris, vitae iaculis massa sagittis vel. Proin ligula arcu, aliquet in tincidunt et, laoreet eu mi. Integer non gravida nisl. Sed congue magna sed augue porttitor dictum.</p>
<ul class="nav">
......@@ -37,13 +37,13 @@
<p>Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque cursus convallis fermentum. Fusce varius, massa ut dictum tempor, lacus eros eleifend eros, vel fringilla neque lacus sit amet lacus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Phasellus condimentum tincidunt dolor at interdum. Mauris bibendum tellus quis leo finibus tempus. Nunc aliquam a ligula at mattis. Suspendisse tincidunt felis nec auctor ultrices.</p>
</div>
<script src="dist/genesys-deps.js"></script>
<script src="dist/genesys-ui.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded/dist/genesys-deps.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded/dist/genesys-ui.js"></script>
<script type="text/javascript">
const APIURL = 'https://api.sandbox.genesys-pgr.org';
const CLIENTID = 'TDlQz.LUmnd6YIOtWr4kjnVEFi@api.sandbox.genesys-pgr.org';
const CLIENTKEY = 'gnE1dPz5CWnbn0IsFvL8iSP1QDxBpmU0';
const FILTER = { institute: { code: ['ETH013'] } };
const FILTER = { institute: { code: [ 'COL003', 'BEL084' ] } };
genesys.showGenesysUI(APIURL, CLIENTID, CLIENTKEY,
document.getElementById('genesys-container'),
......@@ -51,4 +51,4 @@
);
</script>
</body>
</html>
\ No newline at end of file
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment