|
1 | 1 | import React, { useState, useRef, useCallback, useEffect, useMemo } from 'react'; |
2 | | - |
3 | | -// App version |
4 | | -const APP_VERSION = '0.7.1'; |
| 2 | +import { VERSION } from '../config/version'; |
5 | 3 |
|
6 | 4 | // Social Card Generator - creates beautiful black/white themed image cards |
7 | 5 | function SocialCardGenerator({ |
@@ -353,7 +351,7 @@ function SocialCardGenerator({ |
353 | 351 | ctx.font = '500 16px "SF Pro Text", -apple-system, sans-serif'; |
354 | 352 | ctx.fillStyle = colors.textMuted; |
355 | 353 | ctx.textAlign = 'right'; |
356 | | - ctx.fillText(`v${APP_VERSION}`, width - edgePadding - 50, edgePadding + 32); |
| 354 | + ctx.fillText(`v${VERSION}`, width - edgePadding - 50, edgePadding + 32); |
357 | 355 |
|
358 | 356 | // Center AST visualization |
359 | 357 | drawASTGraph(ctx, width / 2, height / 2 - 20, width * 0.6, height * 0.45); |
@@ -489,7 +487,7 @@ function SocialCardGenerator({ |
489 | 487 | ctx.fillText('Python AST Visualizer & Static Analyzer', edgePadding, footerY); |
490 | 488 |
|
491 | 489 | ctx.textAlign = 'right'; |
492 | | - ctx.fillText(`v${APP_VERSION}`, width - edgePadding, footerY); |
| 490 | + ctx.fillText(`v${VERSION}`, width - edgePadding, footerY); |
493 | 491 | }, [colors, drawLogo, roundRect]); |
494 | 492 |
|
495 | 493 | // Generate card image |
|
0 commit comments