Skip to content

Commit 4de006c

Browse files
authored
feat: Use new Worker API and update dependencies (#69)
* update: API endpoints to use worker API * refactor: update dependencies and migrate to Tippy.js for tooltips * chore: update GitHub Actions workflows and dependencies to latest versions * fix: update branch references from master to main in workflow files and component
1 parent ba2aabf commit 4de006c

17 files changed

Lines changed: 8337 additions & 24114 deletions

File tree

.eslintrc

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22
"env": {
33
"browser": true,
44
"node": true,
5-
"es6": true
5+
"es6": true,
66
},
77
"globals": {
8-
"document": false
8+
"document": false,
99
},
10-
"parser": "babel-eslint",
10+
"parser": "@babel/eslint-parser",
1111
"parserOptions": {
12-
"ecmaVersion": 6,
12+
"ecmaVersion": 2021,
1313
"sourceType": "module",
14+
"requireConfigFile": false,
15+
"babelOptions": {
16+
"presets": ["@babel/preset-react"],
17+
},
1418
"ecmaFeatures": {
1519
"jsx": true,
16-
"modules": true,
17-
"experimentalObjectRestSpread": true
18-
}
20+
},
1921
},
2022
"extends": ["eslint:recommended", "plugin:react/recommended"],
2123
"rules": {
@@ -25,13 +27,13 @@
2527
"react/display-name": 1,
2628
"no-unused-vars": "error",
2729
"no-console": ["error", { "allow": ["error", "warn"] }],
28-
"no-unexpected-multiline": "error"
30+
"no-unexpected-multiline": "error",
2931
},
3032
"settings": {
3133
"react": {
3234
"pragma": "React",
33-
"version": "15.6.1"
34-
}
35+
"version": "detect",
36+
},
3537
},
36-
"plugins": ["react"]
38+
"plugins": ["react"],
3739
}

.github/workflows/auto-labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: "🤖 Auto label Pull Request"
11-
uses: TimonVS/pr-labeler-action@v3
11+
uses: TimonVS/pr-labeler-action@v5
1212
with:
1313
configuration-path: .github/pr-labeler.yml
1414
env:

.github/workflows/code-quality.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,21 @@ name: 👀 Code Quality
22
on:
33
pull_request:
44
branches:
5-
- master
5+
- main
66
jobs:
77
build-and-deploy:
88
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
node-version: [12.x]
129

1310
steps:
1411
- name: 🔽 Download project
15-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1613
with:
17-
persist-credential: false
14+
persist-credentials: false
1815

19-
- name: 🏠 Install Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v1
16+
- name: 🏠 Install Node.js
17+
uses: actions/setup-node@v4
2118
with:
22-
node-version: ${{ matrix.node-version }}
19+
node-version-file: .nvmrc
2320

2421
- name: 👷‍♂️ Install dependencies
2522
run: |

.github/workflows/deply-gh.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,21 @@ name: 🚀 Build and Deploy
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
jobs:
77
build-and-deploy:
88
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
node-version: [12.x]
129

1310
steps:
1411
- name: 🔽 Download project
15-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1613
with:
17-
persist-credential: false
14+
persist-credentials: false
1815

19-
- name: 🏠 Install Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v1
16+
- name: 🏠 Install Node.js
17+
uses: actions/setup-node@v4
2118
with:
22-
node-version: ${{ matrix.node-version }}
19+
node-version-file: .nvmrc
2320

2421
- name: 👷‍♂️ Install dependencies
2522
run: |
@@ -49,10 +46,8 @@ jobs:
4946
npm run build
5047
5148
- name: 🚀 Deploy
52-
uses: JamesIves/github-pages-deploy-action@3.5.9
53-
env:
54-
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
49+
uses: JamesIves/github-pages-deploy-action@v4
5550
with:
56-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
57-
BRANCH: gh-pages
58-
FOLDER: build
51+
token: ${{ secrets.GH_TOKEN }}
52+
branch: gh-pages
53+
folder: build

.github/workflows/draft.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
push:
55
# branches to consider in the event; optional, defaults to all
66
branches:
7-
- master
7+
- mmainr
88

99
jobs:
1010
update_release_draft:
1111
runs-on: ubuntu-latest
1212
steps:
13-
# Drafts your next Release notes as Pull Requests are merged into "master"
14-
- uses: release-drafter/release-drafter@v5
13+
# Drafts your next Release notes as Pull Requests are merged into "main"
14+
- uses: release-drafter/release-drafter@v6
1515
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
1616
with:
1717
config-name: release-drafter.yml

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v25.5.0

0 commit comments

Comments
 (0)