Compare commits

..

8 Commits

Author SHA1 Message Date
b2178fec85 fix/match_collector: fix boots handling
All checks were successful
pipeline / lint-and-format (push) Successful in 4m51s
pipeline / build-and-push-images (push) Successful in 54s
2026-05-04 13:57:03 +02:00
ee32060a7f feat/match_collector: set sleep time to 12h
All checks were successful
pipeline / lint-and-format (push) Successful in 10m57s
pipeline / build-and-push-images (push) Successful in 49s
2026-05-01 00:39:24 +02:00
d231ae7c38 fix/match_collector: make sure we have permission to write in /cdragon 2026-05-01 00:39:02 +02:00
5c83e45d2a fix/frontend: format
All checks were successful
pipeline / lint-and-format (push) Successful in 6m16s
pipeline / build-and-push-images (push) Successful in 1m16s
2026-05-01 00:24:53 +02:00
50c0646a93 fix/frontend: center first back items on mobile
Some checks failed
pipeline / lint-and-format (push) Failing after 4m34s
pipeline / build-and-push-images (push) Has been skipped
2026-05-01 00:18:54 +02:00
8263dc1c93 fix/frontend: change rune size on mobile
Some checks failed
pipeline / lint-and-format (push) Failing after 4m31s
pipeline / build-and-push-images (push) Has been skipped
2026-05-01 00:14:18 +02:00
c506bad739 feat/frontend: remove '?' cursors on tooltips
All checks were successful
pipeline / lint-and-format (push) Successful in 4m29s
pipeline / build-and-push-images (push) Successful in 1m33s
2026-04-30 20:17:54 +02:00
a0e2915c3d fix/match_collector: fix splitting of boots and first backs
Some checks failed
pipeline / build-and-push-images (push) Has been cancelled
pipeline / lint-and-format (push) Has started running
2026-04-30 20:16:00 +02:00
7 changed files with 42 additions and 14 deletions

View File

@@ -107,4 +107,15 @@ defineProps<{
opacity: 0.8;
white-space: nowrap;
}
@media only screen and (max-width: 650px) {
.item-row {
align-items: center;
max-width: 100%;
margin: 0 20px;
}
.first-back-content {
justify-content: center;
}
}
</style>

View File

@@ -124,7 +124,6 @@ const itemIconPath = computed(() => CDRAGON_BASE + mapPath(props.item.iconPath))
border-radius: 4px;
border: 1px solid var(--color-on-surface);
overflow: hidden;
cursor: help;
position: relative;
}

View File

@@ -86,7 +86,11 @@ refreshStyles()
<div class="rune-spacer-bar" />
<div class="rune-holder" style="align-content: end">
<div class="rune-slot">
<img style="margin: auto" :src="CDRAGON_BASE + mapPath(secondaryStyle.iconPath)" />
<img
class="rune-style-img"
style="margin: auto"
:src="CDRAGON_BASE + mapPath(secondaryStyle.iconPath)"
/>
</div>
<div
v-for="(slot, slotIndex) in secondaryStyle.slots.slice(1, 4)"
@@ -128,6 +132,10 @@ refreshStyles()
margin-right: 20px;
border: 1px var(--color-on-surface) solid;
}
.rune-style-img {
width: 48px;
height: 48px;
}
@media only screen and (max-width: 650px) {
.rune-slot {
@@ -143,5 +151,9 @@ refreshStyles()
margin-left: 10px;
margin-right: 10px;
}
.rune-icon {
width: 24px !important;
height: 24px !important;
}
}
</style>

View File

@@ -114,7 +114,6 @@ const perkIconPath = computed(() => CDRAGON_BASE + mapPath(props.perk.iconPath))
border-radius: 50%;
border: 1px solid var(--color-on-surface);
overflow: hidden;
cursor: help;
position: relative;
}

View File

@@ -20,9 +20,14 @@ RUN npm install
COPY --chown=node:node match_collector/. .
FROM node:current-alpine
# Install su-exec for dropping privileges
RUN apk add --no-cache su-exec
RUN mkdir -p /home/node/app && chown -R node:node /home/node/app
WORKDIR /home/node/app
USER node
COPY --from=build --chown=node:node /home/node/app/match_collector/node_modules ./node_modules
COPY --from=build --chown=node:node /home/node/app/match_collector/. .
CMD ["/bin/sh", "-c", "node --import=tsx src/index.ts; sleep 20h"]
COPY --chown=node:node match_collector/docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Run entrypoint as root to fix permissions, then drop to node user
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["/bin/sh", "-c", "node --import=tsx src/index.ts; sleep 12h"]

View File

@@ -0,0 +1,9 @@
#!/bin/sh
# Fix permissions on the cdragon cache directory if it exists
if [ -d "/cdragon" ]; then
# Ensure the node user owns the cdragon directory
chown -R node:node /cdragon 2>/dev/null || true
fi
# Execute the main command as the node user
exec su-exec node "$@"

View File

@@ -219,17 +219,10 @@ function handleMatchBuilds(
}
if (event.type != 'ITEM_PURCHASED') continue
// Handle boots upgrades
if (
itemInfo.requiredBuffCurrencyName == 'Feats_NoxianBootPurchaseBuff' ||
itemInfo.requiredBuffCurrencyName == 'Feats_SpecialQuestBootBuff'
) {
continue
}
// Handle boots differently
if (itemInfo.categories.includes('Boots')) {
if (itemInfo.to.length == 0 || (itemInfo.to[0] >= 3171 && itemInfo.to[0] <= 3176)) {
// Ignore basic boots, only count Tier 2 boots
if (event.itemId != 1001) {
// Check for bootsFirst
if (items.length < 2) {
build.bootsFirstCount += 1