Skip to content

Commit 6fafc31

Browse files
authored
Model YAML cards render through to frontend, plus Country borders in Grid mode
Model YAML cards in frontend, plus logo change.
2 parents 877a48b + f9cba10 commit 6fafc31

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1767
-725
lines changed

.github/workflows/super-linter.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,22 @@ jobs:
2020
with:
2121
# Full git history is needed to get a proper list of changed files within `super-linter`
2222
fetch-depth: 0
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 10.6.3
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 20
32+
cache: pnpm
33+
cache-dependency-path: frontend/pnpm-lock.yaml
34+
35+
- name: Install dependencies
36+
run: pnpm install --frozen-lockfile
37+
working-directory: frontend
2338

24-
- name: Lint Code Base
25-
uses: github/super-linter@v4
26-
env:
27-
VALIDATE_ALL_CODEBASE: false
28-
DEFAULT_BRANCH: "main"
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
- name: Run ESLint
40+
run: pnpm lint
41+
working-directory: frontend

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# OneHealth Frontend Mapping application
1+
# heiplanet Frontend Mapping application
22

33

44
# Description
5-
The OneHealth Mapping project shows the predictions and predicted susceptibility in the future of different diseases by Infectious disease/Climate models from the group, across different regions in the map.
5+
The heiplanet Mapping project shows the predictions and predicted susceptibility in the future of different diseases by Infectious disease/Climate models from the group, across different regions in the map.
66

77
This repository contains the frontend for the Climate Map. The user can browse for models with the Model Selector, and change the year to see future suspcetibility predictions
88

frontend/eslint.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ import globals from "globals";
55
import tseslint from "typescript-eslint";
66

77
export default tseslint.config(
8-
{ ignores: ["dist"] },
8+
{
9+
ignores: [
10+
"dist",
11+
"tests",
12+
"src/scripts",
13+
"src/static/Header.tsx",
14+
"src/component/General/LandOnlyMap.tsx",
15+
],
16+
},
917
{
1018
extends: [js.configs.recommended, ...tseslint.configs.recommended],
1119
files: ["**/*.{ts,tsx}"],

frontend/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
7-
<title>One Health Platform</title>
7+
<title>Hei-Planet Platform</title>
88
<style>
99
/* Loading Screen Styles */
1010
#loading-screen {
@@ -112,8 +112,8 @@
112112
<div id="loading-screen">
113113
<div class="loading-logo-container">
114114
<img
115-
src="/images/oneHealthLogoOnlySymbols.png"
116-
alt="One Health Platform"
115+
src="/images/hei-planet-loading-logo.png"
116+
alt="Hei-Planet Platform"
117117
class="loading-logo"
118118
/>
119119
</div>

frontend/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@
3030
"react-leaflet": "^5.0.0",
3131
"react-leaflet-cluster": "^2.1.0",
3232
"react-leaflet-heatmap-layer-v3": "3.0.3-beta-1",
33+
"react-markdown": "^9.1.0",
3334
"react-router-dom": "^7.5.3",
3435
"react-top-loading-bar": "^3.0.2",
36+
"remark-breaks": "^4.0.0",
37+
"remark-gfm": "^4.0.1",
3538
"topojson-client": "^3.1.0"
3639
},
3740
"devDependencies": {

0 commit comments

Comments
 (0)