Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb1c5b6de4 | ||
|
|
9f0832a5b5 |
+7
-4
@@ -17,8 +17,11 @@ COPY packages/network/package.json ./packages/network/package.json
|
||||
FROM manifests AS dependencies
|
||||
RUN npm ci
|
||||
|
||||
FROM manifests AS production-dependencies
|
||||
RUN npm ci --omit=dev
|
||||
FROM manifests AS bot-dependencies
|
||||
RUN npm ci --omit=dev --workspace @minecraft-account-manager/discord-bot
|
||||
|
||||
FROM manifests AS migration-dependencies
|
||||
RUN npm ci --omit=dev --workspace @minecraft-account-manager/database
|
||||
|
||||
FROM dependencies AS builder
|
||||
COPY . .
|
||||
@@ -41,7 +44,7 @@ USER app
|
||||
EXPOSE 3000
|
||||
CMD ["node", "apps/web/server.js"]
|
||||
|
||||
FROM production-dependencies AS bot
|
||||
FROM bot-dependencies AS bot
|
||||
ARG VERSION=development
|
||||
LABEL org.opencontainers.image.title="Minecraft Account Manager Discord Bot" \
|
||||
org.opencontainers.image.version="${VERSION}" \
|
||||
@@ -56,7 +59,7 @@ COPY --chown=app:app packages ./packages
|
||||
USER app
|
||||
CMD ["npm", "run", "start", "--workspace", "@minecraft-account-manager/discord-bot"]
|
||||
|
||||
FROM production-dependencies AS migrate
|
||||
FROM migration-dependencies AS migrate
|
||||
ARG VERSION=development
|
||||
LABEL org.opencontainers.image.title="Minecraft Account Manager Migrations" \
|
||||
org.opencontainers.image.version="${VERSION}" \
|
||||
|
||||
@@ -44,7 +44,8 @@ describe("UserWorldMap", () => {
|
||||
expect(markup).toContain("Alex (AlexMC)");
|
||||
expect(markup).toContain("2 users near Mountain View, California, US");
|
||||
expect(markup).toMatch(/<text[^>]*>2<\/text>/);
|
||||
expect(markup).toContain('<details class="mt-5 border-t border-line pt-4" id="map-location-list" open="">');
|
||||
expect(markup).toContain('<details class="mt-5 border-t border-line pt-4" id="map-location-list">');
|
||||
expect(markup).not.toContain('id="map-location-list" open');
|
||||
expect(markup).toContain("Mountain View, California, US");
|
||||
expect(markup).toContain("Comcast Cable Communications, LLC");
|
||||
expect(markup).toContain("AS7922");
|
||||
|
||||
@@ -99,7 +99,7 @@ export function UserWorldMap({ locations, unavailableCount }: { locations: UserM
|
||||
</MapViewToggle>
|
||||
<p className="mt-2 text-right font-mono text-[9px] text-muted">Map boundaries: Natural Earth, public domain</p>
|
||||
|
||||
<details className="mt-5 border-t border-line pt-4" id="map-location-list" open={locationGroups.some((group) => group.count > 1)}>
|
||||
<details className="mt-5 border-t border-line pt-4" id="map-location-list">
|
||||
<summary className="w-fit cursor-pointer font-mono text-[10px] font-bold uppercase underline underline-offset-4">View accessible location list</summary>
|
||||
<div className="mt-4 overflow-x-auto">
|
||||
<table className="w-full min-w-[980px] border-collapse text-left text-xs">
|
||||
|
||||
Reference in New Issue
Block a user