Skip to content

Commit b20d66a

Browse files
committed
style: fix all eslint warnings for unused variables in thumbnail themes
1 parent f0c3bd3 commit b20d66a

5 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/pages/apps/github-thumbnail/themes/cassetteJCard.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { wrapText } from '../utils';
2-
31
export const cassetteJCard = (ctx, width, height, scale, data) => {
42
const {
53
primaryColor,
@@ -209,7 +207,6 @@ export const cassetteJCard = (ctx, width, height, scale, data) => {
209207

210208
// --- Title block (main content area above the tape window) ---
211209
const titleBlockY = frontY + 10 * scale;
212-
const titleBlockH = windowY - titleBlockY - 30 * scale;
213210

214211
// Label / brand stripe at top
215212
ctx.save();

src/pages/apps/github-thumbnail/themes/circlesBg.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ export const circlesBg = (ctx, width, height, scale, data) => {
9191

9292
// --- Text content ---
9393
const padding = 50 * scale;
94-
const contentX = cardX + padding;
9594
const contentCenterX = width / 2;
9695

9796
// Owner

src/pages/apps/github-thumbnail/themes/splitFlap.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { wrapText } from '../utils';
2-
31
export const splitFlap = (ctx, width, height, scale, data) => {
42
const {
53
primaryColor,

src/pages/apps/github-thumbnail/themes/topographic.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,13 @@ export const topographic = (ctx, width, height, scale, data) => {
140140
ctx.fillStyle = '#ffffff';
141141
ctx.font = `400 ${9 * scale}px "JetBrains Mono", monospace`;
142142
ctx.textAlign = 'left';
143-
let coordIdx = 0;
144143
for (let x = gridStep; x < width; x += gridStep * 2) {
145144
for (let y = gridStep; y < height; y += gridStep * 2) {
146145
ctx.fillText(
147146
`${(x / scale).toFixed(0)},${(y / scale).toFixed(0)}`,
148147
x + 3 * scale,
149148
y - 3 * scale,
150149
);
151-
coordIdx++;
152150
}
153151
}
154152
ctx.restore();

src/pages/apps/github-thumbnail/themes/vinylRecord.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ export const vinylRecord = (ctx, width, height, scale, data) => {
146146
ctx.font = `bold ${52 * scale}px "Inter", sans-serif`;
147147

148148
// Word wrap for long names
149-
const nameWords = repoName.split('');
150149
let fittedName = repoName;
151150
ctx.font = `bold ${52 * scale}px "Inter", sans-serif`;
152151
if (ctx.measureText(repoName).width > infoW) {
@@ -156,7 +155,6 @@ export const vinylRecord = (ctx, width, height, scale, data) => {
156155
ctx.fillText(fittedName, infoX, infoY);
157156

158157
// Artist line (owner)
159-
const titleMetrics = ctx.measureText(fittedName);
160158
const artistY = infoY + (ctx.measureText('M').actualBoundingBoxAscent + ctx.measureText('M').actualBoundingBoxDescent) + 16 * scale;
161159
ctx.fillStyle = 'rgba(255,255,255,0.5)';
162160
ctx.font = `${20 * scale}px "JetBrains Mono"`;

0 commit comments

Comments
 (0)