mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Implement app showcase on New Project view
- Add useAppSubmissions hook to query Nostr events (kind 31733) - Create AppShowcaseCard component for displaying individual apps - Add AppShowcase component with search, filtering, and categorization - Include featured apps, Halloween hackathon apps, templates, and approved apps sections - Add shuffleArray utility function for randomizing app display order - Integrate showcase into Index page underneath the prompt text box - Support moderation controls for authorized users - Add responsive design with mobile-friendly tag filtering - Include empty states with relay selector for no results
This commit is contained in:
1 parent
fe45508297
commit
13a197e80d
5 files changed
+1385
No files matched your search
@@ -4,3 +4,15 @@ import { twMerge } from "tailwind-merge"
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
|
||||
/**
|
||||
* Shuffles an array using the Fisher-Yates algorithm
|
||||
*/
|
||||
export function shuffleArray<T>(array: T[]): T[] {
|
||||
const shuffled = [...array];
|
||||
for (let i = shuffled.length - 1; i > 0; i--) {
|
||||
const j = Math.floor(Math.random() * (i + 1));
|
||||
[shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]];
|
||||
}
|
||||
return shuffled;
|
||||
}
|
||||
Reference in new issue
Block a user