refactor: remove unused code app source for app installer page and remove app source of GenieACS

This commit is contained in:
KodekaTeam committed 2026-07-07 13:52:55 +07:00
1 parent f7134a2725
commit 001ba48651
3 files changed
+68 -62

No files matched your search

@@ -11,31 +11,42 @@ export const CATALOG_SOURCE_OPTIONS: CatalogSourceOption[] = [
id: "auto-detect",
label: "Custom Source",
description:
"Paste a remote URL and let the backend detect whether it is a manifest, compose/config file, or ZIP app store archive.",
"Paste any supported manifest or ZIP app store URL and let the backend detect the parser automatically.",
requiresUrl: true,
placeholder:
"https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
exampleUrl: "https://casaos-appstore.paodayag.dev/linuxserver.zip",
},
{
id: "manifest-url",
label: "Manifest URL",
description:
"Fetch app entries from a remote JSON, YAML, CasaOS config, compose, or Umbrel manifest URL.",
requiresUrl: true,
placeholder: "https://example.com/apps.json",
"https://github.com/DoktainerApp/templates/archive/refs/heads/main.zip",
exampleUrl:
"https://raw.githubusercontent.com/bigbeartechworld/big-bear-casaos/master/Apps/2fauth/config.json",
},
{
id: "github-archive",
label: "GitHub Archive ZIP",
description:
"Download a GitHub archive ZIP and scan CasaOS app folders, config.json, docker-compose.yml, JSON, or YAML manifests.",
requiresUrl: true,
placeholder:
"https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
exampleUrl:
"https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
"https://github.com/DoktainerApp/templates/archive/refs/heads/main.zip",
},
// {
// id: "auto-detect",
// label: "Custom Source",
// description:
// "Paste a remote URL and let the backend detect whether it is a manifest, compose/config file, or ZIP app store archive.",
// requiresUrl: true,
// placeholder:
// "https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
// exampleUrl: "https://casaos-appstore.paodayag.dev/linuxserver.zip",
// },
// {
// id: "manifest-url",
// label: "Manifest URL",
// description:
// "Fetch app entries from a remote JSON, YAML, CasaOS config, compose, or Umbrel manifest URL.",
// requiresUrl: true,
// placeholder: "https://example.com/apps.json",
// exampleUrl:
// "https://raw.githubusercontent.com/bigbeartechworld/big-bear-casaos/master/Apps/2fauth/config.json",
// },
// {
// id: "github-archive",
// label: "GitHub Archive ZIP",
// description:
// "Download a GitHub archive ZIP and scan CasaOS app folders, config.json, docker-compose.yml, JSON, or YAML manifests.",
// requiresUrl: true,
// placeholder:
// "https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
// exampleUrl:
// "https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
// },
];
@@ -53,33 +53,44 @@ export const CATALOG_SOURCE_OPTIONS: CatalogSourceOption[] = [
id: "auto-detect",
label: "Custom Source",
description:
"Paste a remote URL and let the backend detect whether it is a manifest, compose/config file, or ZIP app store archive.",
"Paste any supported manifest or ZIP app store URL and let the backend detect the parser automatically.",
requiresUrl: true,
placeholder:
"https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
exampleUrl: "https://casaos-appstore.paodayag.dev/linuxserver.zip",
},
{
id: "manifest-url",
label: "Manifest URL",
description:
"Fetch app entries from a remote JSON, YAML, CasaOS config, compose, or Umbrel manifest URL.",
requiresUrl: true,
placeholder: "https://example.com/apps.json",
"https://github.com/DoktainerApp/templates/archive/refs/heads/main.zip",
exampleUrl:
"https://raw.githubusercontent.com/bigbeartechworld/big-bear-casaos/master/Apps/2fauth/config.json",
},
{
id: "github-archive",
label: "GitHub Archive ZIP",
description:
"Download a GitHub archive ZIP and scan CasaOS app folders, config.json, docker-compose.yml, JSON, or YAML manifests.",
requiresUrl: true,
placeholder:
"https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
exampleUrl:
"https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
"https://github.com/DoktainerApp/templates/archive/refs/heads/main.zip",
},
// {
// id: "auto-detect",
// label: "Custom Source",
// description:
// "Paste a remote URL and let the backend detect whether it is a manifest, compose/config file, or ZIP app store archive.",
// requiresUrl: true,
// placeholder:
// "https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
// exampleUrl: "https://casaos-appstore.paodayag.dev/linuxserver.zip",
// },
// {
// id: "manifest-url",
// label: "Manifest URL",
// description:
// "Fetch app entries from a remote JSON, YAML, CasaOS config, compose, or Umbrel manifest URL.",
// requiresUrl: true,
// placeholder: "https://example.com/apps.json",
// exampleUrl:
// "https://raw.githubusercontent.com/bigbeartechworld/big-bear-casaos/master/Apps/2fauth/config.json",
// },
// {
// id: "github-archive",
// label: "GitHub Archive ZIP",
// description:
// "Download a GitHub archive ZIP and scan CasaOS app folders, config.json, docker-compose.yml, JSON, or YAML manifests.",
// requiresUrl: true,
// placeholder:
// "https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
// exampleUrl:
// "https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip",
// },
];
function slugify(value: string): string {