Prefijos del tema nw- y uw- -> ns- (carpetas, ficheros, clases y rutas)

Renombrado completo de los prefijos heredados: 19 carpetas, 11 ficheros y 318
referencias en 35 ficheros de código, más las clases y las rutas url() de dentro
del CSS del tema. Se usa git mv para conservar el historial.

También fuera del código, que un sed no ve:
- BD: votesite.image_url (4 filas) apuntaba a /nw-themes/...
- Ficheros con la marca vieja en el NOMBRE: novawow-maintenance.webp ->
  nightspire-maintenance.webp (lo usa la página de mantenimiento) y
  store_novawow_response.js.

⚠ Alias en Caddy /nw-themes/* -> /ns-themes/*: los correos ENVIADOS antes del
rebranding llevan esas rutas escritas y están en las bandejas de los usuarios.
Sin el alias, sus imágenes se romperían. Verificado que las rutas viejas siguen
sirviendo 200.

Nota: ns-js/ y ns-js-handlers/ son CÓDIGO MUERTO (manejadores jQuery del portal
Django, que ya se borró). Se midió en el navegador: la web no pide ni un solo JS
del tema. Se renombran igualmente por consistencia, pero son candidatos a
borrarse.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-15 15:50:43 +00:00
parent 5362787a34
commit fa7897c195
729 changed files with 169 additions and 169 deletions
+7 -7
View File
@@ -1,7 +1,7 @@
import type { RowDataPacket } from 'mysql2'
import { db, DB } from './db'
const IMG = '/nw-themes/nw-ryu/nw-images'
const IMG = '/ns-themes/ns-ryu/ns-images'
// Clases (orden del original) → slug de color + etiqueta.
export const CLASS_ORDER = [1, 2, 3, 4, 5, 6, 7, 8, 9, 11]
@@ -33,17 +33,17 @@ export const RACE_INFO: Record<number, { key: string; label: string; faction: 'a
}
export function classChest(id: number) {
return `${IMG}/nw-classes/${CLASS_INFO[id]?.key ?? 'warrior'}-chest.webp`
return `${IMG}/ns-classes/${CLASS_INFO[id]?.key ?? 'warrior'}-chest.webp`
}
export function classMedium(id: number) {
return `${IMG}/nw-classes/${CLASS_INFO[id]?.key ?? 'warrior'}-medium.jpg`
return `${IMG}/ns-classes/${CLASS_INFO[id]?.key ?? 'warrior'}-medium.jpg`
}
export function raceBig(race: number, gender: number) {
return `${IMG}/nw-races/big-${RACE_INFO[race]?.key ?? 'human'}-${gender === 0 ? 'male' : 'female'}.webp`
return `${IMG}/ns-races/big-${RACE_INFO[race]?.key ?? 'human'}-${gender === 0 ? 'male' : 'female'}.webp`
}
export const ALLIANCE_ICON = `${IMG}/nw-icons/alliance-no-border.webp`
export const HORDE_ICON = `${IMG}/nw-icons/horde-no-border.webp`
export const ACH80_ICON = `${IMG}/nw-icons/achievement-level-80.jpg`
export const ALLIANCE_ICON = `${IMG}/ns-icons/alliance-no-border.webp`
export const HORDE_ICON = `${IMG}/ns-icons/horde-no-border.webp`
export const ACH80_ICON = `${IMG}/ns-icons/achievement-level-80.jpg`
// Logro «Nivel 80» (logros de nivel WotLK: 6=Nv10, 7=Nv20 … 12=Nv70, 13=Nv80).
const ACH_LEVEL80 = 13