Skip to content

Commit 58d65d8

Browse files
Merge branch 'master' into translation/es-1783968529061
2 parents d018b6a + 6783021 commit 58d65d8

56,544 files changed

Lines changed: 2012092 additions & 125670 deletions

File tree

Some content is hidden

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

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git
2+
.vs_code
3+
node_modules/

.env-example

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MONGO_INITDB_ROOT_USERNAME=""
2+
MONGO_INITDB_ROOT_PASSWORD=""
3+
4+
FIREBASE_API_KEY=""
5+
FIREBASE_AUTH_DOMAIN=""
6+
FIREBASE_PROJECT_ID=""
7+
FIREBASE_STORAGE_BUCKET=""
8+
FIREBASE_MESSAGING_SENDER_ID=""
9+
FIREBASE_APP_ID=""
10+
FIREBASE_CLIENT_EMAIL=""
11+
FIREBASE_PRIVATE_KEY=""
12+
13+
TWITCH_CLIENT_ID=your_twitch_client_id
14+
TWITCH_CLIENT_SECRET=your_twitch_client_secret
15+
TWITCH_OAUTH_REDIRECT_URI=https://your-domain.com/auth/twitch/callback
16+
TWITCH_OAUTH_STATE_SECRET=replace_with_a_long_random_secret_at_least_32_chars (node -e "console.log(require('crypto').randomBytes(48).toString('base64url'))")
17+
TWITCH_OAUTH_STATE_TTL_SECONDS=600
18+
TWITCH_VERIFY_SUCCESS_REDIRECT=/auth
19+
TWITCH_VERIFY_ERROR_REDIRECT=/auth
20+
TWITCH_OAUTH_SCOPE=
21+
TWITCH_CATEGORY_NAME=Pokemon Auto Chess

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "monday"
8+
time: "05:00"
9+
labels:
10+
- "dependencies"
11+
groups:
12+
all-non-major:
13+
update-types:
14+
- "minor"
15+
- "patch"

.github/workflows/build-pr.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build on Pull Request
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- name: Use Node.js 24.x
18+
uses: actions/setup-node@v6
19+
with:
20+
node-version: '24.x'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Build
27+
run: npm run build

.github/workflows/main.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build on Master Merge
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [24.x]
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v6
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm install
28+
29+
- name: Build
30+
run: npm run build

.gitignore

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
node_modules/
22
.vscode/
3+
.idea
34
*.env
5+
.env.development
6+
.env.production
47
app/public/dist/server/**/*.js
58
app/public/dist/server/**/*.js.map
69
app/public/dist/**/*.d.ts
7-
app/public/dist/client/index.js
8-
app/public/dist/client/index.js.map
9-
app/public/dist/client/index.css
10-
app/public/dist/client/index.css.map
11-
app/public/dist/index.js
10+
app/public/dist/client/index.html
11+
app/public/dist/client/index*.js
12+
app/public/dist/client/index*.js.map
13+
app/public/dist/client/index*.css
14+
app/public/dist/client/index*.css.map
1215
app/public/dist/client/assets
16+
app/public/src/assets/musics
1317
*.code-workspace
14-
/app/public/dist/assets/tiles/newBackground.tmx
15-
/app/public/dist/assets/tiles/sleepBackground.json
16-
/app/public/dist/assets/tiles/sleepBackground.png
17-
/app/public/dist/assets/tiles/sleepBackgroundMirror.png
1818
/app/public/dist/index.js.LICENSE.txt
1919
/db-commands/old-statistic.js
2020
/db-commands/*.sh
@@ -33,4 +33,15 @@ lib
3333
export/dbg_output_pmdo_full_ani
3434
export/*.json
3535
export/tilesets
36-
export/samples
36+
export/samples
37+
id_digital_ocean
38+
id_digital_ocean.pub
39+
/app/public/dist/server/app/public/dist/client/assets/pokemons/durations.json
40+
/app/public/dist/server/app/public/src/assets/atlas.json
41+
/app/public/dist/server/package.json
42+
/app/public/dist/server/app/public/src/assets/pokemons/durations.json
43+
/app/public/dist/server/app/public/dist/client/locales
44+
.devmode.json
45+
.assetpack/
46+
app/public/dist/client/recorder.worker.js
47+
app/public/dist/client/recorder.worker.js.map

.prettierrc.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Build Step 1 - Create the base
2+
FROM node:24.14-alpine AS base
3+
RUN apk add git --no-cache
4+
COPY ./ /usr/src/app
5+
WORKDIR /usr/src/app
6+
RUN npm install
7+
RUN npm run download-music
8+
RUN npm run assetpack
9+
10+
# Build Step 2 - Build the application
11+
FROM base AS builder
12+
WORKDIR /usr/src/app
13+
RUN npm run build
14+
15+
# Build Step 3 - Build a minimal production-ready image
16+
#
17+
# --ignore-scripts is used in the `npm install` to ignore the postinstall-script
18+
# because in the production-ready image we do not need the sources for
19+
# the assetpack or music assets in the isolated image for running the app.
20+
21+
FROM node:24.14-alpine
22+
WORKDIR /usr/src/app
23+
COPY package*.json ./
24+
RUN npm install --only=production --ignore-scripts
25+
COPY --from=builder /usr/src/app/app/public/dist ./app/public/dist
26+
EXPOSE 9000
27+
ENTRYPOINT ["node", "app/public/dist/server/app/index.js"]

0 commit comments

Comments
 (0)