Skip to content

Commit

Permalink
feat: partial upgrade to 3.25
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Jul 24, 2024
1 parent 8cce491 commit 3b20af5
Show file tree
Hide file tree
Showing 17 changed files with 719 additions and 712 deletions.
74 changes: 26 additions & 48 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,18 @@ permissions: read-all

on: [push, pull_request]

env:
NODE_VERSION: "18"
PNPM_VERSION: "8.5.1"
GO_VERSION: "1.21.0"

jobs:
lint-backend:
name: Lint Backend
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
stable: false
go-version-file: 'go.mod'

- name: Check out code
uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Lint
uses: golangci/golangci-lint-action@v2
- uses: golangci/golangci-lint-action@v6
with:
skip-pkg-cache: true
skip-build-cache: true
Expand All @@ -34,37 +25,30 @@ jobs:
name: Lint Frontend
runs-on: ubuntu-latest
steps:
- name: Setup nodejs
uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: 'frontend/.nvmrc'

- name: Check out code
uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}
run_install: |
- cwd: frontend
- name: Enable corepack
run: corepack enable

- name: Lint
working-directory: ./frontend
run: pnpm run lint
run: |
pnpm install
pnpm run lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
stable: false
go-version-file: 'go.mod'

- name: Check out code
uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Test
run: go test -v ./...
Expand All @@ -75,14 +59,11 @@ jobs:
needs:
- lint-backend
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
stable: false
go-version-file: 'go.mod'

- name: Check out
uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Build wasm
run: go build -ldflags="-s -w" -v -o build.wasm ./wasm
Expand All @@ -96,20 +77,17 @@ jobs:
needs:
- lint-frontend
steps:
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: 'frontend/.nvmrc'

- name: Check out
uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}
run_install: |
- cwd: frontend
- name: Enable corepack
run: corepack enable

- name: Build frontend
working-directory: frontend
run: pnpm run build
run: |
pnpm install
pnpm run build
30 changes: 9 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,23 @@ on:
tags:
- v*

env:
NODE_VERSION: "18"
PNPM_VERSION: "8.5.1"
GO_VERSION: "1.21.0"

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
stable: false
go-version-file: 'go.mod'

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: 'frontend/.nvmrc'

- name: Check out
uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}
run_install: |
- cwd: frontend
- name: Enable corepack
run: corepack enable

- name: Build wasm
run: go build -ldflags="-s -w" -v -o frontend/static/calculator.wasm ./wasm
Expand All @@ -44,11 +32,11 @@ jobs:
- name: Build frontend
working-directory: frontend
run: |
pnpm install
pnpm run build
ls -lah build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./frontend/build
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,17 @@ A simple timeless jewel calculator with a skill tree view

Hosted Version: [https://vilsol.github.io/timeless-jewels](https://vilsol.github.io/timeless-jewels)

Uses data extracted with https://github.com/Vilsol/go-pob-data
Uses data extracted with https://github.com/Vilsol/go-pob-data

## Updates to new leagues

Whenever a new league is coming, the passive tree might get updated.
**But** it is not guaranteed to contain correct data until a game download is available.

Specifically, this project depends on the following data tables:

* Alternate Passive Additions
* Alternate Passive Skills
* Passive Skills
* Stats
* Translations
Binary file modified data/SkillTree.json.gz
Binary file not shown.
Binary file modified data/passive_skill_aura_stat_descriptions.json.gz
Binary file not shown.
Binary file modified data/passive_skill_stat_descriptions.json.gz
Binary file not shown.
Binary file modified data/passive_skills.json.gz
Binary file not shown.
Binary file modified data/possible_stats.json.gz
Binary file not shown.
Binary file modified data/stat_descriptions.json.gz
Binary file not shown.
Binary file modified data/stats.json.gz
Binary file not shown.
16 changes: 6 additions & 10 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{
"packages": ["[email protected]"],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
"packages": [
"[email protected]",
"[email protected]"
],
"env": {
"DEVBOX_COREPACK_ENABLED": "true"
}
}
109 changes: 101 additions & 8 deletions devbox.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,116 @@
{
"lockfile_version": "1",
"packages": {
"go@1.19.13": {
"last_modified": "2024-01-27T14:55:31Z",
"resolved": "github:NixOS/nixpkgs/160b762eda6d139ac10ae081f8f78d640dd523eb#go_1_19",
"go@1.22.5": {
"last_modified": "2024-07-07T07:43:47Z",
"resolved": "github:NixOS/nixpkgs/b60793b86201040d9dee019a05089a9150d08b5b#go",
"source": "devbox-search",
"version": "1.19.13",
"version": "1.22.5",
"systems": {
"aarch64-darwin": {
"store_path": "/nix/store/2llf3dn2m48q6cral32bd8mk1g5pa48d-go-1.19.13"
"outputs": [
{
"name": "out",
"path": "/nix/store/05saqcgidraqmn4z82prsp7rbj9hjmwm-go-1.22.5",
"default": true
}
],
"store_path": "/nix/store/05saqcgidraqmn4z82prsp7rbj9hjmwm-go-1.22.5"
},
"aarch64-linux": {
"store_path": "/nix/store/5fysyzw0baj5kprrf94iz0p733c4b5w1-go-1.19.13"
"outputs": [
{
"name": "out",
"path": "/nix/store/b97bbxn6kpysysxb8nxn4k39ffxmp4p6-go-1.22.5",
"default": true
}
],
"store_path": "/nix/store/b97bbxn6kpysysxb8nxn4k39ffxmp4p6-go-1.22.5"
},
"x86_64-darwin": {
"store_path": "/nix/store/4zq38z7s23nn9pyibb4qkyb90bna9prr-go-1.19.13"
"outputs": [
{
"name": "out",
"path": "/nix/store/gdyii59c48s4a8q6w584ccgm95qls3lh-go-1.22.5",
"default": true
}
],
"store_path": "/nix/store/gdyii59c48s4a8q6w584ccgm95qls3lh-go-1.22.5"
},
"x86_64-linux": {
"store_path": "/nix/store/ra7zh0hq3gzw7pdmb3ixvr5zd6h8qc9h-go-1.19.13"
"outputs": [
{
"name": "out",
"path": "/nix/store/3v17dij8rvg7q99009swxg52995r7s22-go-1.22.5",
"default": true
}
],
"store_path": "/nix/store/3v17dij8rvg7q99009swxg52995r7s22-go-1.22.5"
}
}
},
"[email protected]": {
"last_modified": "2024-07-07T07:43:47Z",
"plugin_version": "0.0.2",
"resolved": "github:NixOS/nixpkgs/b60793b86201040d9dee019a05089a9150d08b5b#nodejs_18",
"source": "devbox-search",
"version": "18.20.2",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/2n9c55cd1376ajbrfcc3bpicdh82hglb-nodejs-18.20.2",
"default": true
},
{
"name": "libv8",
"path": "/nix/store/ymf7b294cf6hvw8dcs4km4z7w7vwx8y9-nodejs-18.20.2-libv8"
}
],
"store_path": "/nix/store/2n9c55cd1376ajbrfcc3bpicdh82hglb-nodejs-18.20.2"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/y6pr2gldc02pk6ghm1fapbsvhhjf2kpa-nodejs-18.20.2",
"default": true
},
{
"name": "libv8",
"path": "/nix/store/dzllw2vxgsr8s4m2lng602q8p0nq0cnf-nodejs-18.20.2-libv8"
}
],
"store_path": "/nix/store/y6pr2gldc02pk6ghm1fapbsvhhjf2kpa-nodejs-18.20.2"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/qpg8a1hsz2jihxy0by0wq5p6wjk22fyg-nodejs-18.20.2",
"default": true
},
{
"name": "libv8",
"path": "/nix/store/is0y2rgkf3mfvfg20r9ya12515yss9dm-nodejs-18.20.2-libv8"
}
],
"store_path": "/nix/store/qpg8a1hsz2jihxy0by0wq5p6wjk22fyg-nodejs-18.20.2"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/kr6p8nmj3y4wmfm3q6f0j8yd2zb2lxaj-nodejs-18.20.2",
"default": true
},
{
"name": "libv8",
"path": "/nix/store/3f2q1pvz9s2sqdk4z7k9wq88rk8vrscd-nodejs-18.20.2-libv8"
}
],
"store_path": "/nix/store/kr6p8nmj3y4wmfm3q6f0j8yd2zb2lxaj-nodejs-18.20.2"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions frontend/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.3.0
2 changes: 1 addition & 1 deletion frontend/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />

<title>Timeless Jewel Calculator</title>
<meta property="description" content="Timeless Jewel calculator with a passive tree view" />
<meta name="description" content="Timeless Jewel calculator with a passive tree view" />

<meta property="og:title" content="Timeless Jewel Calculator" />
<meta property="og:image" content="%sveltekit.assets%/favicon.png" />
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/routes/tree/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,12 @@
</button>

<h3 class="flex-grow">
{results ? 'Results' : 'Timeless Jewel'}
{#if results}
<span>Results</span>
{:else}
<span>Timeless Jewel</span>
<span class="text-red-500"> - NOT FULLY UP TO DATE FOR 3.25</span>
{/if}
</h3>
</div>
{#if searchResults}
Expand Down
Loading

0 comments on commit 3b20af5

Please sign in to comment.