diff --git a/.env b/.env deleted file mode 100644 index 4c644d2..0000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -REACT_APP_GH_REPO=GITHUB_REPOSITORY \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index dd84ea7..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index bbcbbe7..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 6c11349..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Deploy landing page - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Deploy react app to github pages - uses: tanwanimohit/deploy-react-to-ghpages@v1.0.1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 876227f..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: On_Push_Testing - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - - test_build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Setup Environment - uses: actions/setup-node@v3 - with: - node-version: 18.1.0 - - run: npm install - # - run: npm run build - - - name: Verify that the Docker image for the action builds - run: docker build . --file Dockerfile - - - name: Bump version and push tag - uses: anothrNick/github-tag-action@1.36.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - WITH_V: true - DEFAULT_BUMP: patch - - name: change latest tag - uses: EndBug/latest-tag@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - token: ${{ secrets.GITHUB_TOKEN }} - with: - # You can change the name of the tag or branch with this input. - # Default: 'latest' - ref: 'latest' - # If a description is provided, the action will use it to create an annotated tag. If none is given, the action will create a lightweight tag. - # Default: '' - description: 'latest version of the rocrate-to-html.' - # Force-update a branch instead of using a tag. - # Default: false - force-branch: false \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ff2d6a9..0000000 --- a/.gitignore +++ /dev/null @@ -1,26 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -#venv folder -venv - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index cd616c6..0000000 --- a/Dockerfile +++ /dev/null @@ -1,24 +0,0 @@ -FROM nikolaik/python-nodejs - -RUN apt-get update && \ - apt-get -y install rsync - -#install jq to parse json -RUN apt-get install jq -y - -#copy over neccesary files to docker image -COPY public /public -COPY src /src -COPY pysubyt /pysubyt -COPY package-lock.json /package-lock.json -COPY _config.yml /_config.yml -COPY package.json /package.json -COPY entrypoint.sh /entrypoint.sh -COPY requirements.txt /requirements.txt -#print(the env variable inputs.repo_path passed from the actins.yml file) -RUN echo $repo_path -#print( the env variable inputs.base_uri passed from the actins.yml file) -RUN echo $base_uri -#chmod the entrypoint.sh file to make it executable -RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/README.MD b/README.MD deleted file mode 100644 index 83e29eb..0000000 --- a/README.MD +++ /dev/null @@ -1,236 +0,0 @@ -##TEST - - -#act JS Landing Page Template -### LIVE DEMO - -#### The demo repo is located [here](https://github.com/vliz-be-opsci/example-bon-site-to-pages) - -## Description -This is a ReactJS based landing page template. -All 'visual' data can be easily modified by changing the json files located in the data folder. - -## Make it Yours! -### 1. Add your own data -Change the data in the ```data/``` folder as well as add any images to ```img/``` folder. -Change the "About" section directly in the README.md (see https://www.markdownguide.org/basic-syntax/ for markdown syntax) - -#### 1.1. Data Structure - -the data is stored in json files in the ```data/``` folder. This folder contains the following files: -* [```main_data.json```](#211-main_datajson) -> contains the data for the header section -* [```project_crates.json```](#212-project_cratesjson) -> contains the data for the project crates section -* [```project_profiles.json```](#213-project_profilesjson) -> contains the data for the project profiles section -* [```contacts.json```](#214-contactsjson) -> contains the data for describing the project contacts -* [```tabular_data.json```](#215-tabulardatajson) -> contains the data for the tabular data page -* [```publications.json```](#216-publicationsjson) -> contains the data for the publications section - -there is also a ```README.md``` file that is used to populate the about section of the page. This file can be changed to your liking. For tips on how to write markdown files, see [here](https://guides.github.com/features/mastering-markdown/). - -In the ```img/``` folder you can add any images that you want to use in the project. These images can be referenced in the json files. - -##### 1.1.1. ```main_data.json``` - -This file contains the data for the header section. The structure of the file is as follows: -```json -{ - "name_site": "ARMS", - "main_image": "https://assets.newatlas.com/dims4/default/e58452e/2147483647/strip/true/crop/1498x999+0+0/resize/1440x960!/quality/90/?url=http%3A%2F%2Fnewatlas-brightspot.s3.amazonaws.com%2Fb1%2Fb4%2F2a5bc31341fbaa31e2230d038f66%2Ficture1.jpeg", - "description": "The European ARMS programme (ARMS-MBON) is a network of Autonomous Reef Monitoring Structures (ARMS) placed in the vicinity of marine stations, ports, marinas, and Long-Term Ecological Research (LTER) sites distributed over Europe and polar regions. The aim of ARMS-MBON is to assess the status of, and changes in, hard-bottom communities of near-coast environments, using genetic methods supplemented with image analysis and visual inspection methods. ARMS-MBON is part of GEO BONs Marine Biodiversity Observation Network (MBON).", - "long_name": "Autonomous Reef Monitoring System", - "short_name": "ARMS", - "logo": "https://www.researchobject.org/ro-crate/assets/img/ro-crate-w-text.svg", - "markdown_about_us":"README.md" -} -``` - -| Field | Description | required | -| --- | --- | --- | -| ```name_site``` | The name of the site | yes | -| ```main_image``` | The url to the main image of the site | no | -| ```description``` | The description of the site | yes | -| ```long_name``` | The long name of the site | yes | -| ```short_name``` | The short name of the site | yes | -| ```logo``` | The url to the logo of the site | no | -| ```markdown_about_us``` | The markdown file to be used for the about us page (default:README.md) | no | - -##### 1.1.2. ```project_crates.json``` - -This file contains all the crates of the project. -```json -[ - { - "icon": "fa fa-wordpress", - "name": "Lorem ipsum dolor", - "url" : "http://www.google.com", - "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam sedasd commodo nibh ante facilisis bibendum dolor feugiat at." - }, - { - "icon": "fa fa-cart-arrow-down", - "name": "Consectetur adipiscing", - "url" : "http://www.google.com", - "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam sedasd commodo nibh ante facilisis bibendum dolor feugiat at." - } -] -``` - -| Field | Description | required | -| --- | --- | --- | -| ```icon``` | The icon to be displayed | no | -| ```name``` | The name of the crate | yes | -| ```url``` | The url to the crate | yes | -| ```text``` | The description of the crate | no | - - -##### 1.1.3. ```project_profiles.json``` - -This file contains all the profiles for the project. These will most likely be links to your github repos. - -```json -[ - { - "icon": "fa fa-comments-o", - "title": "Lorem ipsum", - "url" : "http://www.google.com", - "text": "Lorem ipsum dolor sit amet placerat facilisis felis mi in tempus eleifend pellentesque natoque etiam." - }, - { - "icon": "fa fa-bullhorn", - "title": "Lorem ipsum", - "url" : "http://www.google.com", - "text": "Lorem ipsum dolor sit amet placerat facilisis felis mi in tempus eleifend pellentesque natoque etiam." - } -] -``` - -| Field | Description | required | -| --- | --- | --- | -| ```icon``` | The icon to be displayed | no | -| ```title``` | The title of the profile | yes | -| ```url``` | The url to the profile | yes | -| ```text``` | The description of the profile | no | - -##### 1.1.4. ```contacts.json``` - -This file contains all the contacts for the project. These will most likely be links to your github repos. - -```json -[ - { - "img": "img/contacts/01.jpg", - "name": "Hugh Jass", - "job": "Corporate Directives Executive", - "email": "Hugh_Jasst@doe.com", - "ORCID": "0000-0000-0000-0000", - "affiliation": { - "name": "University of Test", - "id": "0000-0000-0000-0000", - "url": "http://www.test.com" - } - }, - { - "img": "img/contacts/02.jpg", - "name": "Mike Hawk", - "job": "Future Solutions Planner", - "email": "hotmale@hotmail.com", - "ORCID": "0000-0000-0000-0000", - "affiliation": { - "name": "University of Test", - "id": "0000-0000-0000-0000", - "url": "http://www.test.com" - } - } -] -``` - -###### 1.1.4.1 person - -| Field | Description | required | -| --- | --- | --- | -| ```img``` | The image of the contact | no | -| ```name``` | The name of the contact | yes | -| ```job``` | The job of the contact | yes | -| ```email``` | The email of the contact | yes | -| ```ORCID``` | The ORCID of the contact | no | -| ```affiliation``` | The affiliation of the contact | no | - - -###### 1.1.4.2 affiliation - -| Field | Description | required | -| --- | --- | --- | -| ```name``` | The name of the affiliation | yes | -| ```id``` | The id of the affiliation | no | -| ```url``` | The url of the affiliation | no | - -##### 1.1.5. ```tabular_data.json``` WILL BE DEPRECATED - -This file contains all the tabular data for the project. These will most likely be links to your github repos. - -```json -[ - { - "name": "combined imagedata", - "url": "https://github.com/arms-mbon/Data/blob/main/QualityControlledData/Combined/combined_ImageData.csv", - "description": "tabular data of all images in the combined dataset", - "extra_info": "https://github.com/arms-mbon/Data/blob/main/QualityControlledData/Combined/README.md" - }, - { - "name": "test 2", - "url": "https://github.com/arms-mbon/Data/blob/main/QualityControlledData/Combined/combined_ImageData.csv", - "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc sit amet aliquam lacinia, nisl nisl aliquam nisl, nec aliquam nisl nisl" - }, -] -``` - -| Field | Description | -| --- | --- | -| ```name``` | The name of the tabular data | -| ```url``` | The url of the tabular data | -| ```description``` | The description of the tabular data | -| ```extra_info``` | The extra info of the tabular data (Optional)| - -##### 1.1.6. ```publications.json``` - -This file contains all the publications information for the project. These will most likely be links to your publications uri's. - -```json -[ - { - "title": "Something Something interesting", - "text": "Text about something interesting here A", - "img": "/img/publications/1.jpg", - "link": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&ab_channel=RickAstley" - }, - { - "title": "The cat in the hat", - "text": "The cat in the hat sat on the mat. One hopes he didn't leave a fat cat track in the form of a shattered mat.", - "img": "/img/publications/2.jpeg", - "link": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&ab_channel=RickAstley" - } -] -``` - -| Field | Description | required | -| --- | --- | --- | -| ```title``` | The title of the publication | yes | -| ```text``` | The text of the publication | yes | -| ```img``` | The image of the publication | preferably yes | -| ```link``` | The link to the publication | yes | - -### 2. Deployment - -the project is deployed using github pages. To deploy the project, simply push the changes to the master branch. The project will be deployed automatically. - -#### 2.1. Resolving conflicts - -##### 2.1.1. ```Action failed with "The process '/usr/bin/git' failed with exit code 128"``` -Resolve this issue by following the steps below: -* Go to the settings of the repository -* Click on the actions tab and then the general button -* scroll down until you see the section "Workflow permissions" -* Select the option "Read and write permissions" and click save - -## Credits -##### Free CSS -Free-CSS.com diff --git a/public/README.md b/README.md similarity index 100% rename from public/README.md rename to README.md diff --git a/_config.yml b/_config.yml deleted file mode 100644 index 2f7efbe..0000000 --- a/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-minimal \ No newline at end of file diff --git a/action.yml b/action.yml deleted file mode 100644 index d850074..0000000 --- a/action.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: 'bon-org-to-pages' -description: 'This action takes some config files and makes a github pages site from them' -branding: - icon: 'upload-cloud' - color: 'red' -inputs: - repo_path: - description: 'Path to the repo to be published' - required: false - default: '.' - base_uri: - description: 'Base URI for the site to be published. eg: https://myorg.github.io/myrepo' - required: false - default: 'https://${{ github.repository_owner }}.github.io/${{ github.repository }}' -runs: - using: 'docker' - image: 'Dockerfile' - args: - - ${{ inputs.repo_path }} - - ${{ inputs.base_uri }} \ No newline at end of file diff --git a/asset-manifest.json b/asset-manifest.json new file mode 100644 index 0000000..eb23eba --- /dev/null +++ b/asset-manifest.json @@ -0,0 +1,13 @@ +{ + "files": { + "main.css": "./static/css/main.f7b01852.css", + "main.js": "./static/js/main.8f9f3b44.js", + "index.html": "./index.html", + "main.f7b01852.css.map": "./static/css/main.f7b01852.css.map", + "main.8f9f3b44.js.map": "./static/js/main.8f9f3b44.js.map" + }, + "entrypoints": [ + "static/css/main.f7b01852.css", + "static/js/main.8f9f3b44.js" + ] +} \ No newline at end of file diff --git a/public/css/bootstrap.css b/css/bootstrap.css similarity index 100% rename from public/css/bootstrap.css rename to css/bootstrap.css diff --git a/public/css/bootstrap.min.css b/css/bootstrap.min.css similarity index 100% rename from public/css/bootstrap.min.css rename to css/bootstrap.min.css diff --git a/public/css/nivo-lightbox/close.png b/css/nivo-lightbox/close.png similarity index 100% rename from public/css/nivo-lightbox/close.png rename to css/nivo-lightbox/close.png diff --git a/public/css/nivo-lightbox/close@2x.png b/css/nivo-lightbox/close@2x.png similarity index 100% rename from public/css/nivo-lightbox/close@2x.png rename to css/nivo-lightbox/close@2x.png diff --git a/public/css/nivo-lightbox/default.css b/css/nivo-lightbox/default.css similarity index 100% rename from public/css/nivo-lightbox/default.css rename to css/nivo-lightbox/default.css diff --git a/public/css/nivo-lightbox/loading.gif b/css/nivo-lightbox/loading.gif similarity index 100% rename from public/css/nivo-lightbox/loading.gif rename to css/nivo-lightbox/loading.gif diff --git a/public/css/nivo-lightbox/loading@2x.gif b/css/nivo-lightbox/loading@2x.gif similarity index 100% rename from public/css/nivo-lightbox/loading@2x.gif rename to css/nivo-lightbox/loading@2x.gif diff --git a/public/css/nivo-lightbox/next.png b/css/nivo-lightbox/next.png similarity index 100% rename from public/css/nivo-lightbox/next.png rename to css/nivo-lightbox/next.png diff --git a/public/css/nivo-lightbox/next@2x.png b/css/nivo-lightbox/next@2x.png similarity index 100% rename from public/css/nivo-lightbox/next@2x.png rename to css/nivo-lightbox/next@2x.png diff --git a/public/css/nivo-lightbox/nivo-lightbox.css b/css/nivo-lightbox/nivo-lightbox.css similarity index 100% rename from public/css/nivo-lightbox/nivo-lightbox.css rename to css/nivo-lightbox/nivo-lightbox.css diff --git a/public/css/nivo-lightbox/prev.png b/css/nivo-lightbox/prev.png similarity index 100% rename from public/css/nivo-lightbox/prev.png rename to css/nivo-lightbox/prev.png diff --git a/public/css/nivo-lightbox/prev@2x.png b/css/nivo-lightbox/prev@2x.png similarity index 100% rename from public/css/nivo-lightbox/prev@2x.png rename to css/nivo-lightbox/prev@2x.png diff --git a/public/css/style.css b/css/style.css similarity index 100% rename from public/css/style.css rename to css/style.css diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index 253ff6c..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,165 +0,0 @@ -#!/bin/sh -l -pwd -ls -a -echo "listing all the files that are in the ../.. directory" -cd ../.. -pwd -ls -a -#echo the env variable inputs.crate_path from the actions.yml file -echo "repo_path is" $1 -#make a .env file with the crate_path variable -echo "REACT_APP_CRATE=$1" > .env - -echo "base_uri is" $2 -#make a .env file with the crate_path variable -echo "REACT_APP_BASE_URI=$2" >> .env - -#echo cat of the .env file -cat .env - -#echo the repo name that called this action -echo "repo name is" $GITHUB_REPOSITORY - -#setup here for making the build folder -#check if the following files are present in ./github/workspace : [./src/data/contact.json, ./src/data/main_data.json] -# if they are not present, then throw an error -echo "checking if the following files are present in ./github/workspace : [./src/data/contacts.json, ./src/data/main_data.json, ./src/data/project_crates.json, ./src/data/project_profiles.json, ./src/data/tabular_data.json]" -if [ -f ./github/workspace/data/contacts.json ] && [ -f ./github/workspace/data/main_data.json ] && [ -f ./github/workspace/data/project_crates.json ] && [ -f ./github/workspace/data/project_profiles.json ] && [ -f ./github/workspace/data/tabular_data.json ] && [ -f ./github/workspace/data/publications.json ] && [ -f ./github/workspace/data/vocabularies.json ] && [ -f ./github/workspace/data/ontologies.json ]; -then - echo "all files are present" - #check each json file for syntax errors - echo "checking each json file for syntax errors" - python -m json.tool ./github/workspace/data/contacts.json - python -m json.tool ./github/workspace/data/main_data.json - python -m json.tool ./github/workspace/data/project_crates.json - python -m json.tool ./github/workspace/data/project_profiles.json - python -m json.tool ./github/workspace/data/tabular_data.json - python -m json.tool ./github/workspace/data/publications.json - python -m json.tool ./github/workspace/data/vocabularies.json - python -m json.tool ./github/workspace/data/ontologies.json - - - #copy the files over into ./src/data - echo "copying the files over into ./src/data" - cp ./github/workspace/data/contacts.json ./src/data/contacts.json - cp ./github/workspace/data/main_data.json ./src/data/main_data.json - cp ./github/workspace/data/project_crates.json ./src/data/project_crates.json - cp ./github/workspace/data/project_profiles.json ./src/data/project_profiles.json - cp ./github/workspace/data/tabular_data.json ./src/data/tabular_data.json - cp ./github/workspace/data/publications.json ./src/data/publications.json - cp ./github/workspace/data/vocabularies.json ./src/data/vocabularies.json - cp ./github/workspace/data/ontologies.json ./src/data/ontologies.json -else - echo "one or more files of the data folder are missing" - exit 1 -fi - -echo "copying over the ./img folder to ./public/img" -cp -r ./github/workspace/img ./public - -#check if there is a img folder in ./github/workspace, if so copy it over to ./src/img recursively with force overwrite -echo "checking if there is a img folder in ./github/workspace" -if [ -d ./github/workspace/img ]; -then - echo "img folder is present" - echo "copying the img folder over to ./src/img" - cp -r ./github/workspace/img ./src/img -else - echo "img folder is not present" -fi - -#check if there is a readme.md file in ./github/workspace, if so thencopy it over , else throw an error -echo "checking if there is a readme.md or README.md file in ./github/workspace" -if [ -f ./github/workspace/readme.md ] || [ -f ./github/workspace/README.md ] || [ -f ./github/workspace/README.MD ] || [ -f ./github/workspace/readme.MD ] ; -then - echo "readme.md file is present" - echo "copying the readme.md file over to ./src/readme.md" - cp -f ./github/workspace/README.MD ./public/README.md - cp -f ./github/workspace/readme.md ./public/README.md - cp -f ./github/workspace/readme.MD ./public/README.md - cp -f ./github/workspace/README.md ./public/README.md - - #make a url from the repo name and user or organisation name followed by /blob/master/README.md - echo "making a url from the repo name and user or organisation name followed by /blob/master/README.md" - url="https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/README.md" - - #echo the url - echo "url is" $url - - #open the ./src/data/main_data.json and change the value of the key "markdown_about_us" to the url - echo "opening the ./src/data/main_data.json and changing the value of the key markdown_about_us to the url" - sed -i "s|\"markdown_about_us\": \".*\"|\"markdown_about_us\": \"$url\"|g" ./src/data/main_data.json - -else - echo "readme.md file is not present" - exit 1 -fi - -#check if CNAME file is present in ./github/workspace, if so then copy it over to ./public -echo "checking if CNAME file is present in ./github/workspace" -if [ -f ./github/workspace/CNAME ]; -then - echo "CNAME file is present" - echo "copying the CNAME file over to ./public" - cp ./github/workspace/CNAME ./public/CNAME -else - echo "CNAME file is not present" -fi - -#install pip requirements from requirements.txt -echo "installing pip requirements from requirements.txt" -pip install -r requirements.txt --no-cache-dir -#run the commands.sh file located in the pysubyt folder -echo "running the commands.sh file located in the pysubyt folder" -cd pysubyt - -echo "removing the old output folder contents if they exist" -rm -rf ./outputs/* -#then run the pysubyt command -echo "running the pysubyt commands" -sema-subyt -t ./templates/ \ - -s contact ../src/data/contacts.json \ - -s main ../src/data/main_data.json \ - -s publications ../src/data/publications.json \ - -s project_crate ../src/data/project_crates.json \ - -s project_profile ../src/data/project_profiles.json \ - -s vocabulary ../src/data/vocabularies.json \ - -s ontology ../src/data/ontologies.json \ - -n metadata.ttl -o outputs/metadata.ttl \ - -v base_uri $2 - -cd .. - -#copy over the pysubyt/outputs/metadata.ttl file to ./github/workspace/unicornpages/metadata.ttl -echo "copying over the pysubyt/outputs/metadata.ttl file to ./github/workspace/unicornpages/metadata.ttl" -cp ./pysubyt/outputs/metadata.ttl ./public/metadata.ttl -echo "REACT_APP_GH_REPO=$GITHUB_REPOSITORY" >> .env -echo "installing dependencies for building react app" -npm install -echo "npm run build" -npm run build -echo "copying over ./img files to build folder ./build/img" - -#in the index.html add the following line to the head tag -echo "adding the following line to the head tag of the index.html file" -sed -i "s|||g" ./build/index.html - -#in the index.html add a script tag type="text/turtle" with as content the contents of the metadata.ttl file to the head tag -echo put the cat output of the metadata.ttl file in the index.html file as a script tag type="text/turtle" -sed -i "s|||g" ./build/index.html - -#in index.html change the
to what was provided in ./src/data/main_data.json keys "description" -#echo "in index.html change the andTitle | -Description | -
---|---|
- {d.title} - | -- {d.text} - | -
- For additional information please contact the members below. -
-{d.job}
- { - //if email is not null, then display it - d.email ? ( - - ) : null - } - { - //if ORCID is not null, then display it - d.ORCID ? ( - - ) : null - } -{ellipseText(d.text, 50)}
- { - e.preventDefault(); - githubClick(d); - }} - > - - - {d.crateurl && ( - { - e.preventDefault(); - crateClick(d); - }} - > - - - )} -- A set of data exploration tools for searching and downloading data interest -
-Loading...
} - > - ); -} - -export default FileReadme; \ No newline at end of file diff --git a/src/components/footer.jsx b/src/components/footer.jsx deleted file mode 100644 index 4d39d19..0000000 --- a/src/components/footer.jsx +++ /dev/null @@ -1,31 +0,0 @@ -import React from "react"; - -export const Footer = (props) => { - console.log(process.env.REACT_APP_GH_REPO); - //get the current year - const year = new Date().getFullYear(); - return ( - - ); -}; diff --git a/src/components/gallery.jsx b/src/components/gallery.jsx deleted file mode 100644 index 363c550..0000000 --- a/src/components/gallery.jsx +++ /dev/null @@ -1,38 +0,0 @@ -import { Image } from "./image"; -import React from "react"; - -export const Gallery = (props) => { - return ( -- Lorem ipsum dolor sit amet, consectetur adipiscing elit duis sed - dapibus leonec. -
-Crate description | -
---|
{d.label} | -
{props.data ? props.data.description : "Loading"}
- - Learn More - {" "} -{d.text}
-
-
- {column.render("Header")}
-
- {column.canFilter ? column.render("Filter") : null}
- |
- ))}
-
---|
{cell.render("Cell")} | - ); - })} -
-1)return r.QUIRKS;var c=null===t?a:i;if(f(n,c))return r.QUIRKS;if(f(n,c=null===t?s:u))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){var r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+c(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+c(n)),r}},4551:function(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},5478:function(e,t,n){"use strict";var r,o=n(8416).default,i=n(3085),a=n(9539),l=a.TAG_NAMES,s=a.NAMESPACES,u=a.ATTRS,c="text/html",f="application/xhtml+xml",d={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},p={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:s.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:s.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:s.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:s.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:s.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:s.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:s.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:s.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:s.XML},"xml:space":{prefix:"xml",name:"space",namespace:s.XML},xmlns:{prefix:"",name:"xmlns",namespace:s.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:s.XMLNS}},h=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},m=(o(r={},l.B,!0),o(r,l.BIG,!0),o(r,l.BLOCKQUOTE,!0),o(r,l.BODY,!0),o(r,l.BR,!0),o(r,l.CENTER,!0),o(r,l.CODE,!0),o(r,l.DD,!0),o(r,l.DIV,!0),o(r,l.DL,!0),o(r,l.DT,!0),o(r,l.EM,!0),o(r,l.EMBED,!0),o(r,l.H1,!0),o(r,l.H2,!0),o(r,l.H3,!0),o(r,l.H4,!0),o(r,l.H5,!0),o(r,l.H6,!0),o(r,l.HEAD,!0),o(r,l.HR,!0),o(r,l.I,!0),o(r,l.IMG,!0),o(r,l.LI,!0),o(r,l.LISTING,!0),o(r,l.MENU,!0),o(r,l.META,!0),o(r,l.NOBR,!0),o(r,l.OL,!0),o(r,l.P,!0),o(r,l.PRE,!0),o(r,l.RUBY,!0),o(r,l.S,!0),o(r,l.SMALL,!0),o(r,l.SPAN,!0),o(r,l.STRONG,!0),o(r,l.STRIKE,!0),o(r,l.SUB,!0),o(r,l.SUP,!0),o(r,l.TABLE,!0),o(r,l.TT,!0),o(r,l.U,!0),o(r,l.UL,!0),o(r,l.VAR,!0),r);t.causesExit=function(e){var t=e.tagName;return!!(t===l.FONT&&(null!==i.getTokenAttr(e,u.COLOR)||null!==i.getTokenAttr(e,u.SIZE)||null!==i.getTokenAttr(e,u.FACE)))||m[t]},t.adjustTokenMathMLAttrs=function(e){for(var t=0;t1?n-1:0),l=1;ll[m]&&(l[m]=b),y[m]=b),v[m]=k}i.splice(1,0,v),a.splice(1,0,y),u=-1;for(var C=[];++u-1&&e and