feat: add recording sharing and community features
Backend Changes: - Added original_recording_id field to sexy_recordings table to track duplicates - Added indexes for original_recording_id and public fields - Implemented /sexy/community-recordings endpoint to list public shared recordings - Implemented /sexy/recordings/:id/duplicate endpoint to duplicate community recordings - Community recordings filtered by status=published AND public=true - Duplication creates a private draft copy for the current user Frontend Changes: - Added leaderboard and profile quick links to play view header - Added navigation buttons for better UX on play page - Added translations: my_profile, anonymous, load_more Database Schema: - ALTER TABLE sexy_recordings ADD COLUMN original_recording_id uuid - Created foreign key and indexes for efficient queries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,9 @@ export default {
|
||||
open: "Open",
|
||||
yes: "Yes",
|
||||
no: "No",
|
||||
my_profile: "My Profile",
|
||||
anonymous: "Anonymous",
|
||||
load_more: "Load More",
|
||||
},
|
||||
header: {
|
||||
home: "Home",
|
||||
|
||||
@@ -437,9 +437,29 @@ onMount(() => {
|
||||
>
|
||||
{$_("play.title")}
|
||||
</h1>
|
||||
<p class="text-lg text-muted-foreground mb-10">
|
||||
<p class="text-lg text-muted-foreground mb-6">
|
||||
{$_("play.description")}
|
||||
</p>
|
||||
<div class="flex justify-center gap-3 mb-10">
|
||||
<Button
|
||||
variant="outline"
|
||||
size="sm"
|
||||
href="/leaderboard"
|
||||
class="border-primary/30 hover:bg-primary/10"
|
||||
>
|
||||
<span class="icon-[ri--trophy-line] w-4 h-4 mr-2"></span>
|
||||
{$_("gamification.leaderboard")}
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
size="sm"
|
||||
href="/me"
|
||||
class="border-primary/30 hover:bg-primary/10"
|
||||
>
|
||||
<span class="icon-[ri--user-line] w-4 h-4 mr-2"></span>
|
||||
{$_("common.my_profile")}
|
||||
</Button>
|
||||
</div>
|
||||
<div class="flex justify-center gap-4 items-center">
|
||||
<Button
|
||||
size="lg"
|
||||
|
||||
Reference in New Issue
Block a user