Skip to content

Commit 19eda92

Browse files
committed
Merge remote-tracking branch 'origin/master' into ingame-identifiers
2 parents 182167d + b05c74c commit 19eda92

File tree

866 files changed

+173770
-76254
lines changed

Some content is hidden

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

866 files changed

+173770
-76254
lines changed

.dockerignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Dependency directories
2+
node_modules
3+
4+
# Logs
5+
logs
6+
*.log
7+
npm-debug.log*
8+
yarn-debug.log*
9+
yarn-error.log*
10+
11+
# Documentation
12+
docs/
13+
14+
# Misc.
15+
.vscode/
16+
build/

.eslintignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
src/postcss.config.js
1+
src/postcss.config.cjs
22
config/webpack.ts
33
src/app/google.js
44
src/browsercheck.js
55
*.m.scss.d.ts
66
*.test.ts
77
*.test.tsx
88
*.config.js
9-
Gruntfile.js
9+
src/build-browsercheck-utils.js
10+
src/testing/jest-setup.cjs
11+
src/fa-subset.js

.eslintrc

+17-18
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
"plugin:sonarjs/recommended"
1717
],
1818
"globals": {
19-
"Atomics": "readonly",
20-
"SharedArrayBuffer": "readonly",
2119
"$featureFlags": "readonly",
22-
"ga": true,
20+
"ga": "readonly",
2321
"$DIM_FLAVOR": "readonly",
2422
"$DIM_VERSION": "readonly",
2523
"$DIM_BUILD_DATE": "readonly",
@@ -28,16 +26,16 @@
2826
"$DIM_WEB_CLIENT_SECRET": "readonly",
2927
"$DIM_API_KEY": "readonly",
3028
"$BROWSERS": "readonly",
31-
"workbox": true,
32-
"React": true,
33-
"require": true,
29+
"workbox": "readonly",
30+
"React": "readonly",
31+
"require": "readonly",
3432
"module": "readonly"
3533
},
3634
"parserOptions": {
3735
"ecmaFeatures": {
3836
"jsx": true
3937
},
40-
"ecmaVersion": 2018,
38+
"ecmaVersion": "latest",
4139
"sourceType": "module",
4240
"project": "./tsconfig.json"
4341
},
@@ -139,6 +137,11 @@
139137
"object": "_",
140138
"property": "noop",
141139
"message": "Import noop directly instead of using it through _.noop, to satisfy the unbound-method lint"
140+
},
141+
{
142+
"object": "_",
143+
"property": "groupBy",
144+
"message": "Use Object.groupBy or Map.groupBy instead."
142145
}
143146
],
144147
"no-restricted-imports": [
@@ -157,7 +160,12 @@
157160
{
158161
"selector": "CallExpression[callee.property.name='compact'][callee.object.name='_'][arguments.0.callee.property.name='map']",
159162
"message": "Please use `filterMap` instead"
160-
}, {
163+
},
164+
{
165+
"selector": "CallExpression[callee.name='clsx'][arguments.length=1][arguments.0.object.name='styles'],CallExpression[callee.name='clsx'][arguments.length=1][arguments.0.type='Literal']",
166+
"message": "Unnecessary clsx"
167+
},
168+
{
161169
"selector": "TSEnumDeclaration:not([const=true])",
162170
"message": "Please only use `const enum`s."
163171
}
@@ -265,16 +273,7 @@
265273
"checksVoidReturn": false
266274
}
267275
],
268-
"@typescript-eslint/ban-types": [
269-
"error",
270-
{
271-
"types": {
272-
"BigInt": "BigInt isn't supported in old versions (pre-14) of Safari",
273-
"bigint": "BigInt isn't supported in old versions (pre-14) of Safari"
274-
},
275-
"extendDefaults": false
276-
}
277-
],
276+
"@typescript-eslint/ban-types": "off",
278277
"@typescript-eslint/explicit-member-accessibility": "off",
279278
"@typescript-eslint/explicit-function-return-type": "off",
280279
"@typescript-eslint/explicit-module-boundary-types": "off",

.git-blame-ignore-revs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Added trailing commas everywhere
2+
4ecced03d68e8ef1c4addd24ad32d1cde3d393e9

.github/dependabot.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 2
2+
updates:
3+
- directory: /
4+
package-ecosystem: "npm"
5+
schedule:
6+
interval: "weekly"
7+
time: "18:00" # UTC, = ~10AM Pacific
8+
groups:
9+
major:
10+
update-types:
11+
- major
12+
minor:
13+
update-types:
14+
- minor
15+
- patch
16+
17+
- directory: /
18+
package-ecosystem: "github-actions"
19+
schedule:
20+
interval: "weekly"
21+
time: "18:00" # UTC, = ~10AM Pacific
22+
23+
# Dependabot doesn't support docker-compose yet
24+
# - directory: /
25+
# package-ecosystem: "docker"
26+
# schedule:
27+
# interval: "weekly"
28+
# time: "18:00" # UTC, = ~10AM Pacific

.github/workflows/check-spelling.yml

-14
This file was deleted.

.github/workflows/d2ai-auto-merge.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: D2AI auto-merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: github.actor == 'd2ai-bot'
12+
steps:
13+
- name: Enable auto-merge for d2ai PRs
14+
run: gh pr merge --auto --merge "$PR_URL"
15+
env:
16+
PR_URL: ${{github.event.pull_request.html_url}}
17+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dependabot auto-merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: github.actor == 'dependabot[bot]'
12+
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@v1
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
- name: Enable auto-merge for Dependabot PRs
19+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
20+
run: gh pr merge --auto --merge "$PR_URL"
21+
env:
22+
PR_URL: ${{github.event.pull_request.html_url}}
23+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/deploy-beta.yml

+17-11
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,32 @@ concurrency:
1313
jobs:
1414
deploy:
1515
runs-on: ubuntu-latest
16+
environment:
17+
name: beta
18+
url: https://beta.dim.gg
1619
steps:
17-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
1821
with:
1922
fetch-depth: 2 # So sentry can get the previous commit
2023

24+
- uses: pnpm/action-setup@v2
25+
2126
- name: Setup Node
22-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2328
with:
2429
node-version: 18.x
25-
cache: yarn
30+
cache: pnpm
2631

2732
- name: Install SSH key
28-
uses: benoitchantre/setup-ssh-authentication-action@1.0.0
33+
uses: benoitchantre/setup-ssh-authentication-action@1.0.1
2934
with:
3035
private-key: ${{ secrets.SSH_KEY }}
3136
private-key-name: dim.rsa
3237
known-hosts: ${{ secrets.REMOTE_HOST }}
3338

3439
- name: get-npm-version
3540
id: package-version
36-
uses: martinbeentjes/npm-get-version-action@v1.1.0
41+
uses: martinbeentjes/npm-get-version-action@v1.3.1
3742

3843
- name: set beta
3944
run: |
@@ -46,15 +51,15 @@ jobs:
4651
echo "VERSION=${{ steps.package-version.outputs.current-version }}.$(($RUN_NUM+1000000))" >> $GITHUB_ENV
4752
4853
- name: Install
49-
run: yarn install --frozen-lockfile --prefer-offline
54+
run: pnpm install --frozen-lockfile --prefer-offline
5055

5156
- name: Build
52-
run: yarn build:beta
57+
run: pnpm build:beta
5358
env:
5459
NODE_OPTIONS: "--max_old_space_size=8192"
55-
WEB_API_KEY: ${{ secrets.WEB_API_KEY }}
56-
WEB_OAUTH_CLIENT_ID: ${{ secrets.WEB_OAUTH_CLIENT_ID }}
57-
WEB_OAUTH_CLIENT_SECRET: ${{ secrets.WEB_OAUTH_CLIENT_SECRET }}
60+
WEB_API_KEY: ${{ secrets.BUNGIE_API_KEY }}
61+
WEB_OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
62+
WEB_OAUTH_CLIENT_SECRET: ${{ secrets.OAUTH_SECRET }}
5863
DIM_API_KEY: ${{ secrets.DIM_API_KEY }}
5964

6065
# Send webpack stats and build information to RelativeCI
@@ -66,13 +71,14 @@ jobs:
6671
token: ${{ secrets.GITHUB_TOKEN }}
6772

6873
- name: Check Syntax
69-
run: yarn syntax
74+
run: pnpm syntax
7075

7176
- name: Rsync to Server
7277
run: ./build/rsync-deploy.sh
7378
env:
7479
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
7580
SOURCE: "dist/"
81+
REMOTE_USER: ${{ secrets.REMOTE_USER }}
7682
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
7783
REMOTE_PATH: beta.destinyitemmanager.com
7884

.github/workflows/deploy-prod.yml

+17-11
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,34 @@ on:
1616
jobs:
1717
deploy:
1818
runs-on: ubuntu-latest
19+
environment:
20+
name: release
21+
url: https://app.dim.gg
1922
steps:
20-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2124
with:
2225
fetch-depth: 2 # So sentry can get the previous commit
2326
# Use the dim-release-bot token rather than the default
2427
token: ${{ secrets.GH_TOKEN }}
2528

29+
- uses: pnpm/action-setup@v2
30+
2631
- name: Setup Node
27-
uses: actions/setup-node@v3
32+
uses: actions/setup-node@v4
2833
with:
2934
node-version: 18.x
30-
cache: yarn
35+
cache: pnpm
3136

3237
- name: Install SSH key
33-
uses: benoitchantre/setup-ssh-authentication-action@1.0.0
38+
uses: benoitchantre/setup-ssh-authentication-action@1.0.1
3439
with:
3540
private-key: ${{ secrets.SSH_KEY }}
3641
private-key-name: dim.rsa
3742
known-hosts: ${{ secrets.REMOTE_HOST }}
3843

3944
- name: get-npm-version
4045
id: package-version
41-
uses: martinbeentjes/npm-get-version-action@v1.1.0
46+
uses: martinbeentjes/npm-get-version-action@v1.3.1
4247

4348
- name: set feature
4449
if: ${{ !github.event.inputs.patch }}
@@ -52,7 +57,7 @@ jobs:
5257
5358
- name: Bump release version
5459
id: bump_version
55-
uses: christian-draeger/increment-semantic-version@1.0.2
60+
uses: christian-draeger/increment-semantic-version@1.1.0
5661
with:
5762
current-version: ${{ steps.package-version.outputs.current-version }}
5863
version-fragment: ${{ env.build_level }}
@@ -67,16 +72,17 @@ jobs:
6772
version: ${{ env.VERSION }}
6873

6974
- name: Install
70-
run: yarn install --frozen-lockfile --prefer-offline
75+
run: pnpm install --frozen-lockfile --prefer-offline
7176

7277
- name: Build and deploy
7378
run: ./build/deploy-prod.sh
7479
env:
7580
NODE_OPTIONS: "--max_old_space_size=8192"
76-
WEB_API_KEY: ${{ secrets.PROD_API_KEY }}
77-
WEB_OAUTH_CLIENT_ID: ${{ secrets.PROD_OAUTH_CLIENT_ID }}
78-
WEB_OAUTH_CLIENT_SECRET: ${{ secrets.PROD_OAUTH_CLIENT_SECRET }}
79-
DIM_API_KEY: ${{ secrets.PROD_DIM_API_KEY }}
81+
WEB_API_KEY: ${{ secrets.BUNGIE_API_KEY }}
82+
WEB_OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
83+
WEB_OAUTH_CLIENT_SECRET: ${{ secrets.OAUTH_SECRET }}
84+
DIM_API_KEY: ${{ secrets.DIM_API_KEY }}
85+
REMOTE_USER: ${{ secrets.REMOTE_USER }}
8086
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
8187
REMOTE_PATH: app.destinyitemmanager.com
8288
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

.github/workflows/i18n-bot-download.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,24 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout DIM
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
with:
1414
ref: ${{ github.head_ref }}
1515
token: ${{ secrets.I18N_PAT }}
1616

17+
- uses: pnpm/action-setup@v2
18+
1719
- name: Setup Node
18-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
1921
with:
2022
node-version: 18.x
21-
cache: yarn
23+
cache: pnpm
2224

2325
- name: Install
24-
run: yarn install --frozen-lockfile --prefer-offline
26+
run: pnpm install --frozen-lockfile --prefer-offline
2527

2628
- name: Download updated i18n files
27-
uses: crowdin/github-action@1.4.7
29+
uses: crowdin/github-action@v1.15.2
2830
with:
2931
upload_sources: false
3032
upload_translations: false
@@ -46,7 +48,7 @@ jobs:
4648
done
4749
4850
- name: build browsercheck utils
49-
run: yarn bcu
51+
run: pnpm bcu
5052

5153
- name: porcelain check
5254
uses: dorny/paths-filter@v2
@@ -59,7 +61,7 @@ jobs:
5961
6062
- name: Commit files
6163
if: steps.filter.outputs.changed
62-
uses: stefanzweifel/git-auto-commit-action@v4
64+
uses: stefanzweifel/git-auto-commit-action@v5
6365
with:
6466
commit_message: i18n
6567
commit_user_name: DIM i18n Bot

0 commit comments

Comments
 (0)