App Catalog Modules
Folder ini berisi modularisasi business logic untuk app-catalog.service.ts.
Struktur:
types.ts: kontrak publik dan type cache.catalog-options.ts: opsi sumber katalog yang diexpose ke route.cache.ts: cache remote catalog dan helper result cache.utils.ts: helper generik untuk parsing value dan structured text.normalize.ts: normalisasi field template generik.manifest-parsers.ts: parser manifest CasaOS, Umbrel, dan generic manifest.remote.ts: normalisasi URL remote, deteksi ZIP response, dan fetch wrapper.archive.ts: scan archive ZIP dan ekstraksi katalog.service.ts: orchestration utamagetCatalogTemplates().index.ts: public barrel untuk API modul ini.
Pattern:
- Helper generik disimpan di file kecil sesuai concern.
service.tshanya mengorkestrasi alur, tidak memuat detail parsing besar.- Hanya
index.tsyang menjadi surface API publik modul baru. ../app-catalog.service.tsdipertahankan sebagai compatibility facade untuk callsite lama.