Skip to content

Commit

Permalink
update to 3.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaGeo committed Jan 17, 2024
1 parent 91e19b1 commit 3995ead
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 30 deletions.
19 changes: 0 additions & 19 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ VITE_ENABLED_PREZS=VocPrez
VITE_PER_PAGE=20
VITE_CONCEPT_PER_PAGE=100

## ---------------------------------------
## MAP DISPLAY DEFAULT SETTINGS
## ---------------------------------------
VITE_MAP_SETTINGS_API_KEY=
VITE_MAP_SETTINGS_OPTIONS_CENTER_LAT=-28.8908
VITE_MAP_SETTINGS_OPTIONS_CENTER_LNG=132.3757
VITE_MAP_SETTINGS_OPTIONS_STREETVIEW_CONTROLLER=false
VITE_MAP_SETTINGS_OPTIONS_ZOOM=4

## ---------------------------------------
## CONSTANTS FOR THE MAP SEARCH QUERY
## ---------------------------------------
VITE_MAP_SEARCH_SPATIAL_DATASET_CLASS=http://www.w3.org/ns/dcat#Dataset
VITE_MAP_SEARCH_SPATIAL_MEMBERSHIP_RELATIONSHIP=http://www.w3.org/2000/01/rdf-schema#member
VITE_MAP_SEARCH_PROPS_F_ID=http://purl.org/dc/terms/identifier
VITE_MAP_SEARCH_PROPS_F_LABEL=http://www.w3.org/2000/01/rdf-schema#label
VITE_MAP_SEARCH_PROPS_FC_LABEL=https://schema.org/name
VITE_MAP_SEARCH_PROPS_DS_LABEL=https://schema.org/name

## ---------------------------------------
## LOCAL DEV ENVIRONMENT
## ---------------------------------------
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

env:
VITE_ENABLED_PREZS: SpacePrez,VocPrez
VITE_API_BASE_URL: https://api.gsq-prez.dev.kurrawong.ai

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Clone prez-ui
run: |
mkdir ./prez-ui && \
cd ./prez-ui && \
git init && \
git remote add origin https://github.com/RDFLib/prez-ui.git && \
git fetch --depth 1 origin refs/tags/$(cat ../PREZ_UI_GIT_TAG):refs/tags/$(cat ../PREZ_UI_GIT_TAG) && \
git checkout tags/$(cat ../PREZ_UI_GIT_TAG)
- name: Install Node dependencies
working-directory: ./prez-ui
run: npm ci

- name: Strip out Prez UI header and footer placeholders
run: |
sed -i 's+<header id="header"></header>+<div id="header"></div>+g' ./prez-ui/index.html
sed -i 's+<footer id="footer"></footer>+<div id="footer"></div>+g' ./prez-ui/index.html
- name: Copy QLD Gov Department of Resources theme
run: |
mv ./prez-ui/src/App.vue ./prez-ui/src/PrezApp.vue
cp App.vue ./prez-ui/src/App.vue
cp public/* ./prez-ui/public/
- name: Build website
working-directory: ./prez-ui
run: npm run build-only -- --base=/qld-resources-prez/

- name: Add index.html as GH Pages 404 page
run: cp ./prez-ui/dist/index.html ./prez-ui/dist/404.html

- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
BRANCH: gh-pages
FOLDER: ./prez-ui/dist
14 changes: 4 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,12 @@ RUN sed -i 's+<footer id="footer"></footer>+<div id="footer"></div>+g' /app/inde

# Add custom header and footer.
RUN mv /app/src/App.vue /app/src/PrezApp.vue
COPY components/App.vue /app/src/App.vue
COPY custom-vues/App.vue /app/src/App.vue

# Add custom VocPrez page.
COPY components/VocPrezHomeView.vue /app/src/views/vocprez/VocPrezHomeView.vue
COPY components/HomeView.vue /app/src/views/HomeView.vue
COPY components/AboutView.vue /app/src/views/AboutView.vue

# Add Logos
COPY components/favicon.ico /app/public/favicon.ico
COPY components/favicon.ico /app/public/theme/favicon.ico
COPY components/BGS-Logo-Rev-RGB.svg /app/public/theme/BGS-Logo-Rev-RGB.svg
COPY components/UKRI_NER_Council-Logo_Horiz-RGB_W_.png /app/public/theme/UKRI_NER_Council-Logo_Horiz-RGB_W_.png
COPY custom-vues/views/VocPrezHomeView.vue /app/src/views/vocprez/VocPrezHomeView.vue
COPY custom-vues/views/AboutView.vue /app/src/views/vocprez/AboutView.vue
COPY custom-vues/views/HomeView.vue /app/src/views/vocprez/HomeView.vue

RUN rm .env

Expand Down
2 changes: 1 addition & 1 deletion PREZ_UI_GIT_TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.7.3
v3.7.2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.

0 comments on commit 3995ead

Please sign in to comment.