Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat(platforms): add CoursePlatform interface and initial COURSE_PLATFORMS data

Tonho4979faa6c0c5
diff --git a/src/lib/courses/platforms.ts b/src/lib/courses/platforms.ts
new file mode 100644
index 00000000..41dd836a
--- /dev/null
+++ b/src/lib/courses/platforms.ts
@@ -0,0 +1,305 @@
+export interface CoursePlatform {
+ id: string;
+ name: string;
+ route: string;
+ icon: string;
+ color: string;
+ enabled: boolean;
+ authCheckCommand?: string;
+}
+
+export const COURSE_PLATFORMS: CoursePlatform[] = [
+ {
+ id: "hotmart",
+ name: "Hotmart",
+ route: "/courses/hotmart",
+ icon: "hotmart",
+ color: "#F04E23",
+ enabled: true,
+ authCheckCommand: "hotmart_check_session",
+ },
+ {
+ id: "udemy",
+ name: "Udemy",
+ route: "/courses/udemy",
+ icon: "udemy",
+ color: "#A435F0",
+ enabled: true,
+ authCheckCommand: "udemy_check_session",
+ },
+ {
+ id: "kiwify",
+ name: "Kiwify",
+ route: "/courses/kiwify",
+ icon: "kiwify",
+ color: "#22C55E",
+ enabled: true,
+ authCheckCommand: "kiwify_check_session",
+ },
+ {
+ id: "gumroad",
+ name: "Gumroad",
+ route: "/courses/gumroad",
+ icon: "gumroad",
+ color: "#FF90E8",
+ enabled: true,
+ },
+ {
+ id: "teachable",
+ name: "Teachable",
+ route: "/courses/teachable",
+ icon: "teachable",
+ color: "#4B5563",
+ enabled: true,
+ },
+ {
+ id: "kajabi",
+ name: "Kajabi",
+ route: "/courses/kajabi",
+ icon: "kajabi",
+ color: "#2563EB",
+ enabled: true,
+ },
+ {
+ id: "skool",
+ name: "Skool",
+ route: "/courses/skool",
+ icon: "skool",
+ color: "#5865F2",
+ enabled: true,
+ },
+ {
+ id: "pluralsight",
+ name: "Pluralsight",
+ route: "/courses/pluralsight",
+ icon: "pluralsight",
+ color: "#E80A89",
+ enabled: true,
+ },
+ {
+ id: "greatcourses",
+ name: "Wondrium",
+ route: "/courses/greatcourses",
+ icon: "greatcourses",
+ color: "#1E3A5F",
+ enabled: true,
+ },
+ {
+ id: "masterclass",
+ name: "MasterClass",
+ route: "/courses/masterclass",
+ icon: "masterclass",
+ color: "#000000",
+ enabled: true,
+ },
+ {
+ id: "thinkific",
+ name: "Thinkific",
+ route: "/courses/thinkific",
+ icon: "thinkific",
+ color: "#4A90D9",
+ enabled: true,
+ authCheckCommand: "thinkific_check_session",
+ },
+ {
+ id: "curseduca",
+ name: "Curseduca",
+ route: "/courses/curseduca",
+ icon: "curseduca",
+ color: "#6366F1",
+ enabled: true,
+ },
+ {
+ id: "cademi",
+ name: "Cademi",
+ route: "/courses/cademi",
+ icon: "cademi",
+ color: "#10B981",
+ enabled: true,
+ },
+ {
+ id: "cakto",
+ name: "Cakto",
+ route: "/courses/cakto",
+ icon: "cakto",
+ color: "#F59E0B",
+ enabled: true,
+ },
+ {
+ id: "kirvano",
+ name: "Kirvano",
+ route: "/courses/kirvano",
+ icon: "kirvano",
+ color: "#8B5CF6",
+ enabled: true,
+ },
+ {
+ id: "memberkit",
+ name: "MemberKit",
+ route: "/courses/memberkit",
+ icon: "memberkit",
+ color: "#3B82F6",
+ enabled: true,
+ },
+ {
+ id: "rocketseat",
+ name: "Rocketseat",
+ route: "/courses/rocketseat",
+ icon: "rocketseat",
+ color: "#8257E5",
+ enabled: true,
+ authCheckCommand: "rocketseat_check_session",
+ },
+ {
+ id: "grancursos",
+ name: "Gran Cursos",
+ route: "/courses/grancursos",
+ icon: "grancursos",
+ color: "#1D4ED8",
+ enabled: true,
+ },
+ {
+ id: "fluencyacademy",
+ name: "Fluency Academy",
+ route: "/courses/fluencyacademy",
+ icon: "fluencyacademy",
+ color: "#F97316",
+ enabled: true,
+ },
+ {
+ id: "datascienceacademy",
+ name: "Data Science Academy",
+ route: "/courses/datascienceacademy",
+ icon: "datascienceacademy",
+ color: "#059669",
+ enabled: true,
+ },
+ {
+ id: "medcel",
+ name: "Medcel",
+ route: "/courses/medcel",
+ icon: "medcel",
+ color: "#DC2626",
+ enabled: true,
+ },
+ {
+ id: "medcof",
+ name: "Medcof",
+ route: "/courses/medcof",
+ icon: "medcof",
+ color: "#0891B2",
+ enabled: true,
+ },
+ {
+ id: "medway",
+ name: "Medway",
+ route: "/courses/medway",
+ icon: "medway",
+ color: "#7C3AED",
+ enabled: true,
+ },
+ {
+ id: "afyainternato",
+ name: "Afya Internato",
+ route: "/courses/afyainternato",
+ icon: "afyainternato",
+ color: "#EF4444",
+ enabled: true,
+ },
+ {
+ id: "alpaclass",
+ name: "AlpaClass",
+ route: "/courses/alpaclass",
+ icon: "alpaclass",
+ color: "#14B8A6",
+ enabled: true,
+ },
+ {
+ id: "areademembros",
+ name: "Area de Membros",
+ route: "/courses/areademembros",
+ icon: "areademembros",
+ color: "#6B7280",
+ enabled: true,
+ },
+ {
+ id: "astronmembers",
+ name: "Astron Members",
+ route: "/courses/astronmembers",
+ icon: "astronmembers",
+ color: "#1E40AF",
+ enabled: true,
+ },
+ {
+ id: "eduzznutror",
+ name: "Eduzz / Nutror",
+ route: "/courses/eduzznutror",
+ icon: "eduzznutror",
+ color: "#EA580C",
+ enabled: true,
+ },
+ {
+ id: "entregadigital",
+ name: "Entrega Digital",
+ route: "/courses/entregadigital",
+ icon: "entregadigital",
+ color: "#4338CA",
+ enabled: true,
+ },
+ {
+ id: "greennclub",
+ name: "Greenn Club",
+ route: "/courses/greennclub",
+ icon: "greennclub",
+ color: "#16A34A",
+ enabled: true,
+ },
+ {
+ id: "themembers",
+ name: "TheMembers",
+ route: "/courses/themembers",
+ icon: "themembers",
+ color: "#9333EA",
+ enabled: true,
+ },
+ {
+ id: "voompplay",
+ name: "Voomp Play",
+ route: "/courses/voompplay",
+ icon: "voompplay",
+ color: "#0EA5E9",
+ enabled: true,
+ },
+ {
+ id: "estrategia_concursos",
+ name: "Estratégia Concursos",
+ route: "/courses/estrategia-concursos",
+ icon: "estrategia",
+ color: "#1E3A8A",
+ enabled: true,
+ },
+ {
+ id: "estrategia_ldi",
+ name: "Estratégia LDI",
+ route: "/courses/estrategia-ldi",
+ icon: "estrategia",
+ color: "#1E40AF",
+ enabled: true,
+ },
+ {
+ id: "estrategia_militares",
+ name: "Estratégia Militares",
+ route: "/courses/estrategia-militares",
+ icon: "estrategia",
+ color: "#15803D",
+ enabled: true,
+ },
+ {
+ id: "caktomembers",
+ name: "Cakto Members",
+ route: "/courses/caktomembers",
+ icon: "cakto",
+ color: "#D97706",
+ enabled: true,
+ },
+];