Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into better_bots
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmix committed Nov 12, 2024
2 parents 6f836f0 + a5533dc commit d2d7319
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 28 deletions.
38 changes: 20 additions & 18 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@

version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates once a week
schedule:
interval: "weekly"
# Limit the amout of open PR's (default = 5, disabled = 0, security updates are not impacted)
open-pull-requests-limit: 5

# To reduce noise, CURRENTLY DISABLED non-critical-security updates until the repo is more maintained again
#
## Enable version updates for npm
#- package-ecosystem: "npm"
# # Look for `package.json` and `lock` files in the `root` directory
# directory: "/"
# # Check the npm registry for updates once a week
# schedule:
# interval: "weekly"
# # Limit the amout of open PR's (default = 5, disabled = 0, security updates are not impacted)
# open-pull-requests-limit: 5
#
# Enable version updates for Docker
- package-ecosystem: "docker"
# Look for a `Dockerfile` in the `root` directory
directory: "/"
# Check for updates once a week
schedule:
interval: "weekly"
# Limit the amout of open PR's (default = 5, disabled = 0, security updates are not impacted)
open-pull-requests-limit: 1
#- package-ecosystem: "docker"
# # Look for a `Dockerfile` in the `root` directory
# directory: "/"
# # Check for updates once a week
# schedule:
# interval: "weekly"
# # Limit the amout of open PR's (default = 5, disabled = 0, security updates are not impacted)
# open-pull-requests-limit: 1

# Enable version updates for GitHub Actions
- package-ecosystem: "github-actions"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node_version}}

Expand All @@ -50,7 +50,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build
run: docker build --tag dr4ft-app .
Expand All @@ -74,10 +74,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down
2 changes: 1 addition & 1 deletion backend/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ module.exports = class Game extends Room {
this.players.forEach(player => {
if (!player.isBot) {
player.exit();
player.err("Whoops! An error occurred while starting the game. Please try again later. If the problem persists, you can open an issue on the Github repository: <a href='https://github.com/dr4fters/dr4ft/issues'>https://github.com/dr4fters/dr4ft/issues</a>");
player.err("Whoops! An error occurred while starting the game. Please try again later. If the problem persists, you can open an issue on the Github repository: <a href='https://github.com/dr4fters/dr4ft/issues' target='_blank' rel='noreferrer'>https://github.com/dr4fters/dr4ft/issues</a>");
}
});
Rooms.delete(this.id);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const STRINGS = {
FOOTER:
<div style={{ padding: 10 }}>
Contributions welcome! &nbsp;
<a href='https://github.com/dr4fters/dr4ft'>
<a href='https://github.com/dr4fters/dr4ft' target='_blank' rel='noreferrer'>
<img
src='https://upload.wikimedia.org/wikipedia/commons/9/91/Octicons-mark-github.svg'
alt='GitHub' title='GitHub Repository' align='top' height='18'
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/lobby/CubeList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ const CubeCobra = () => {
try {
const {data: {cards}} = await axios.get(`https://cubecobra.com/cube/api/cubeJSON/${cubeId}`);

setCubeImportMessage(`Fetching card versions... (0/${cards.length})`);
setCubeImportMessage(`Fetching card versions... (0/${cards.mainboard.length})`);

let totalCards = 0;
const cardNames = (await Promise.all(
_.chunk(cards, 75)
_.chunk(cards.mainboard, 75)
.map(async (chunk) => {
const {data} = await axios.post(
'https://api.scryfall.com/cards/collection',
{identifiers: chunk.map((card) => ({id: card.cardID}))});

totalCards += data.data.length;
setCubeImportMessage(`Fetching card versions... (${totalCards}/${cards.length})`);
setCubeImportMessage(`Fetching card versions... (${totalCards}/${cards.mainboard.length})`);

return data.data.map((card) => {
const name = card.card_faces ? card.card_faces[0].name : card.name;
Expand Down

0 comments on commit d2d7319

Please sign in to comment.