Skip to content

Commit

Permalink
Upload project
Browse files Browse the repository at this point in the history
  • Loading branch information
José Luis Pereira committed Jun 2, 2022
1 parent c241684 commit 7d2c153
Show file tree
Hide file tree
Showing 83 changed files with 11,012 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
VITE_API_HOST=https://sandcastle.taxonworks.org/api/v1
VITE_PROJECT_TOKEN=NOw8ZKe7O0axmMkNPZn35Q
VITE_BASE_URL=/
VITE_MAP_SERVER_TILES=https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
VITE_PROJECT_NAME="Orthoptera Species File"
VITE_PAGE_PROJECT_CITATION="Orthoptera Species File"
VITE_PAGE_PROJECT_URL="https://jlpereira.github.io/vite_taxonworks_public_view/"
VITE_PAGE_PROJECT_AUTHORS="Cigliano, M.M., H. Braun, D.C. Eades & D. Otte."
VITE_PAGE_HEADER_LOGO=

VITE_PAGE_FOOTER_COPYRIGHT_IMAGE=
VITE_PAGE_FOOTER_COPYRIGHT_IMAGE_LINK=
VITE_PAGE_FOOTER_COPYRIGHT_TEXT="© 2022. My organization. Except where otherwise noted, content on this site is licensed under a CC0 1.0 Universal License."
2 changes: 2 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_BASE_URL=/vite_taxonworks_public_view/
VITE_ROUTER_HASH_MODE=true
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
env: {
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
],
globals: {
defineEmits: true,
defineProps: true
},
rules: {
'vue/no-v-html': 'off'
}
}
42 changes: 42 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: public-build

on:
push:
branches: [main]
workflow_dispatch:

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '14'

- name: Cache dependencies
uses: actions/cache@v2
id: npm-cache
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci

- name: Build public view
run: npm run build

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
.env
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TaxonWorks public page. (Vite prototype)</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"include": [
"./src/**/*"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
Loading

0 comments on commit 7d2c153

Please sign in to comment.