mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:01:09 +02:00
fix(shared-branding): dedupe duplicate manaSvg from rename collision
The ManaCore→Mana rename converted both `manaCoreSvg` and the existing `manaSvg` to the same identifier, leaving two `const manaSvg = ...` declarations and two `mana:` keys in APP_ICONS. This broke any consumer of the package with a duplicate-symbol error at SSR build time. Removed the legacy ManaCore icon (4-circle quartet) and kept the current Mana brand icon (single droplet). Removed the duplicate APP_ICONS entry as well. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9e0ade4c0a
commit
3ffbf37ee7
1 changed files with 0 additions and 4 deletions
|
|
@ -12,9 +12,6 @@ const svgToDataUrl = (svg: string): string => {
|
|||
// Memoro icon SVG
|
||||
const memoroSvg = `<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M512 130C722.973 130 894 301.027 894 512C894 722.973 722.973 894 512 894C301.027 894 130 722.973 130 512C130 301.027 301.027 130 512 130ZM328.076 324.825C322.366 323.075 316.506 323.345 310.81 324.903C299.274 328.059 288.955 336.364 283.562 342.26C260.131 367.874 245.424 391.558 236.524 418.066C227.606 444.63 224.432 474.286 224.432 512C224.432 670.525 352.874 783.368 512 783.368C671.126 783.368 799.568 670.525 799.568 512C799.568 474.285 796.393 444.629 787.475 418.064C778.574 391.555 763.867 367.872 740.435 342.257C735.237 336.575 723.981 328.835 711.804 325.948C705.777 324.52 699.735 324.331 694.177 325.975C688.685 327.599 683.404 331.086 678.906 337.479L569.857 492.133C554.287 513.249 535.932 525.917 515.688 526.654C495.436 527.391 474.644 516.138 454.368 492.428L345.154 337.57C339.593 330.392 333.746 326.563 328.076 324.825Z" fill="#F8D62B"/><path d="M512 130C722.973 130 894 301.027 894 512C894 722.973 722.973 894 512 894C301.027 894 130 722.973 130 512C130 301.027 301.027 130 512 130ZM328.076 324.825C322.366 323.075 316.506 323.345 310.81 324.903C299.274 328.059 288.955 336.364 283.562 342.26C260.131 367.874 245.424 391.558 236.524 418.066C227.606 444.63 224.432 474.286 224.432 512C224.432 670.525 352.874 783.368 512 783.368C671.126 783.368 799.568 670.525 799.568 512C799.568 474.285 796.393 444.629 787.475 418.064C778.574 391.555 763.867 367.872 740.435 342.257C735.237 336.575 723.981 328.835 711.804 325.948C705.777 324.52 699.735 324.331 694.177 325.975C688.685 327.599 683.404 331.086 678.906 337.479L569.857 492.133C554.287 513.249 535.932 525.917 515.688 526.654C495.436 527.391 474.644 516.138 454.368 492.428L345.154 337.57C339.593 330.392 333.746 326.563 328.076 324.825Z" stroke="#FFE97B" stroke-width="8"/></svg>`;
|
||||
|
||||
// Mana icon SVG
|
||||
const manaSvg = `<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="512.5" cy="512.5" r="403.614" stroke="#004D81" stroke-width="95.7727"/><path d="M583.883 512.512C582.858 513.285 367.199 676.079 277.02 676.088C186.632 676.088 113.352 602.857 113.347 512.512C113.347 422.164 186.63 348.914 277.02 348.914C367.414 348.923 583.883 512.512 583.883 512.512ZM440.67 512.512C439.972 511.984 332.285 430.713 287.237 430.713C242.045 430.714 205.402 467.339 205.402 512.512C205.402 557.686 242.045 594.31 287.237 594.31C332.256 594.31 439.828 513.148 440.67 512.512Z" fill="url(#paint0_linear_1157_667)"/><path d="M512.512 440.52C513.285 441.544 676.079 657.203 676.088 747.383C676.088 837.77 602.857 911.051 512.512 911.055C422.163 911.055 348.914 837.773 348.914 747.383C348.923 656.988 512.512 440.52 512.512 440.52ZM512.512 583.733C511.984 584.431 430.713 692.117 430.713 737.165C430.714 782.357 467.339 819 512.512 819C557.685 819 594.31 782.357 594.31 737.165C594.31 692.146 513.148 584.574 512.512 583.733Z" fill="url(#paint1_linear_1157_667)"/><path d="M440.521 512.488C441.546 511.715 657.205 348.921 747.385 348.912C837.772 348.912 911.053 422.143 911.057 512.488C911.057 602.836 837.775 676.086 747.385 676.086C656.99 676.077 440.521 512.488 440.521 512.488ZM583.735 512.488C584.433 513.016 692.119 594.287 737.167 594.287C782.359 594.286 819.002 557.661 819.002 512.488C819.002 467.314 782.359 430.69 737.167 430.69C692.148 430.69 584.576 511.852 583.735 512.488Z" fill="url(#paint2_linear_1157_667)"/><path d="M512.488 583.883C511.715 582.858 348.921 367.199 348.912 277.02C348.912 186.632 422.143 113.352 512.488 113.347C602.836 113.347 676.086 186.63 676.086 277.02C676.077 367.414 512.488 583.883 512.488 583.883ZM512.488 440.67C513.016 439.972 594.287 332.285 594.287 287.237C594.285 242.045 557.661 205.402 512.488 205.402C467.314 205.402 430.69 242.045 430.69 287.237C430.69 332.256 511.852 439.828 512.488 440.67Z" fill="url(#paint3_linear_1157_667)"/><defs><linearGradient id="paint0_linear_1157_667" x1="583.883" y1="512.501" x2="113.347" y2="512.501" gradientUnits="userSpaceOnUse"><stop offset="0.211538" stop-color="#004471"/><stop offset="0.788462" stop-color="#0099FF"/></linearGradient><linearGradient id="paint1_linear_1157_667" x1="512.501" y1="440.52" x2="512.501" y2="911.055" gradientUnits="userSpaceOnUse"><stop offset="0.211538" stop-color="#004471"/><stop offset="0.788462" stop-color="#0099FF"/></linearGradient><linearGradient id="paint2_linear_1157_667" x1="440.521" y1="512.499" x2="911.057" y2="512.499" gradientUnits="userSpaceOnUse"><stop offset="0.211538" stop-color="#004471"/><stop offset="0.788462" stop-color="#0099FF"/></linearGradient><linearGradient id="paint3_linear_1157_667" x1="512.499" y1="583.883" x2="512.499" y2="113.347" gradientUnits="userSpaceOnUse"><stop offset="0.211538" stop-color="#004471"/><stop offset="0.788462" stop-color="#0099FF"/></linearGradient></defs></svg>`;
|
||||
|
||||
// Mana icon (single droplet)
|
||||
const manaSvg = `<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M515.714 104.592C516.403 105.506 586.851 198.868 657.146 311.452C692.29 367.739 727.445 428.91 753.828 485.782C780.141 542.503 797.996 595.499 798 635.247L797.994 637.095C797.001 794.047 669.581 920.992 512.52 921C354.836 921 227 793.054 227 635.247L227.014 633.369C227.567 593.742 245.359 541.362 271.366 485.376C297.857 428.348 333.141 367.024 368.373 310.65C403.613 254.263 438.847 202.755 465.267 165.349C478.478 146.644 489.489 131.46 497.198 120.95C501.053 115.695 504.083 111.608 506.15 108.833C507.184 107.446 507.977 106.386 508.513 105.673C508.78 105.316 508.984 105.046 509.12 104.864C509.188 104.774 509.24 104.705 509.274 104.659C509.292 104.636 509.305 104.619 509.313 104.607C509.318 104.602 509.322 104.597 509.324 104.594C509.329 104.593 509.419 104.658 512.52 107L509.327 104.589L512.522 100.359L515.714 104.592ZM512.519 360.227C503.066 372.996 474.086 412.798 445.191 459.084C427.696 487.109 410.282 517.433 397.254 545.525C384.156 573.769 375.759 599.211 375.759 617.659C375.762 693.248 436.998 754.533 512.52 754.533C588.041 754.533 649.277 693.248 649.277 617.659C649.277 599.223 640.892 573.803 627.809 545.581C614.796 517.51 597.398 487.208 579.915 459.195C550.999 412.865 521.982 373.013 512.519 360.227Z" fill="url(#paint0_linear_1194_1020)" stroke="#0199FF" stroke-width="8"/><defs><linearGradient id="paint0_linear_1194_1020" x1="512.5" y1="107" x2="512.5" y2="917" gradientUnits="userSpaceOnUse"><stop stop-color="#0068AD"/><stop offset="0.524038" stop-color="#0099FF"/></linearGradient></defs></svg>`;
|
||||
|
||||
|
|
@ -88,7 +85,6 @@ const contextSvg = `<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill
|
|||
export const APP_ICONS = {
|
||||
memoro: svgToDataUrl(memoroSvg),
|
||||
mana: svgToDataUrl(manaSvg),
|
||||
mana: svgToDataUrl(manaSvg),
|
||||
chat: svgToDataUrl(chatSvg),
|
||||
presi: svgToDataUrl(presiSvg),
|
||||
cards: svgToDataUrl(cardsSvg),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue