refactor(config-types): clean up

This commit is contained in:
Walid 2023-04-19 17:14:55 +00:00
parent c058b1d1e7
commit b8dcbc4f5d
Signed by: Walidoux
GPG Key ID: CCF21881FE8BEBAF
4 changed files with 12 additions and 46 deletions

View File

@ -24,14 +24,14 @@ await client
return (PROD_VERSION = (data as string).match(PROD_VERSION_REGEX)?.[0])
})
export const GAME_ENDPOINTS: GameEndPointsTypes = (domain) => {
export const GAME_ENDPOINTS = (domain: DomainTypes): GameEndPointsTypes => {
return [
{
src: `${HABBO_URL(domain)}/gamedata/figuredata/0`,
convert: 'XML',
fileName: 'FigureData'
}
/* {
},
{
src: `${HABBO_IMAGES}/figuremap.xml`,
convert: 'XML',
fileName: 'FigureMap'
@ -50,10 +50,10 @@ export const GAME_ENDPOINTS: GameEndPointsTypes = (domain) => {
fileName: 'EffectMap'
},
{
src: `${HABBO_URL(domain)}/gamedata/external_variables/0`,
src: `${HABBO_URL(domain)}/gamedata/external_flash_texts/0`,
convert: 'TXT',
fileName: 'ExternalTexts'
} */
}
]
}

View File

@ -2,7 +2,7 @@ import type { IDownloaderContent } from '../components'
export const GameDataDownloader: IDownloaderContent = {
title: 'Converts and bundles:',
features: ['XML/TXT to minified JSON files', 'Converts SWF files to JSV']
features: ['XML/TXT to minified JSON files', 'Converts SWF files to Parquet']
}
export const GameAssetsDownloader: IDownloaderContent = {
@ -12,6 +12,6 @@ export const GameAssetsDownloader: IDownloaderContent = {
'Album + Recepetion images',
'Catalogue + Furni icons',
'Habbo Web Promo + Articles',
'MP3 Sounds machine'
'MP3 Sounds'
]
}

View File

@ -1,36 +0,0 @@
// not used, should be removed after figuring out what to do with
export const REGISTERED_KEYS = [
'friendlytime.',
'navigator.',
'cancel',
'catalog.',
'.group',
'widget.',
'widgets.',
'unique.',
'countdown_clock_unit_',
'mod.',
'notifications.',
'.notification',
'connection.',
'opening.',
'login.',
'maintenance.',
'achievements.',
'inventory.',
'generic.',
'friendlist.',
'infostand.',
'help.',
'people.',
'catalog_',
'roomad.',
'buy',
'avatareditor.',
'campaign.',
'quests.',
'room.',
'messenger.',
'memenu.'
]

View File

@ -1,3 +1,5 @@
export type GameEndPointsTypes = (
domain: DomainTypes
) => Array<{ src: string; convert?: 'TXT' | 'XML'; fileName: string }>
export type GameEndPointsTypes = Array<{
src: string
convert?: 'TXT' | 'XML'
fileName: string
}>