No categories available. Please check the API endpoint.
- {/* Header with Navigation */}
-
-
-
- {categories[selectedCategoryIndex].name}
-
-
-
-
- {/* Scripts Grid */}
-
- {currentScripts
- .sort((a, b) => a.name.localeCompare(b.name))
- .map(script => (
-
handleScriptClick(script.slug)}
- >
-
-
- {script.name}
-
-
-
- Created at:
- {" "}
- {script.date_created || "No date available"}
-
-
- {truncateDescription(script.description || "No description available.")}
-
- {renderResources(script)}
-
-
- ))}
-
-
- {/* Back to Categories Button */}
-
-
-
-
- {/* Categories Grid */}
-
-
Categories
-
- {categories.reduce((total, category) => total + (category.scripts?.length || 0), 0)}
- {" "}
- Total scripts
-
-
-
- {categories.map((category, index) => (
-
handleCategoryClick(index)}
- className="cursor-pointer hover:shadow-lg flex flex-col items-center justify-center py-6 transition-shadow duration-300"
- >
-
-
- {category.name}
-
-
-
- {category.scripts
- && category.scripts
- .slice(logoIndices[category.name] || 0, (logoIndices[category.name] || 0) + MAX_LOGOS)
- .map((script, i) => (
-
-

{
- e.stopPropagation();
- handleScriptClick(script.slug);
- }}
- />
- {formattedBadge(script.type)}
-
- ))}
-
-
-
- {(category as any).description || "No description available."}
-
-
-
- ))}
-
-