mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 05:41:22 +02:00
Combines LightWrite (beat/lyrics editor) and Mukke (iOS music player) into a single web-based music workspace app. Archives the old Mukke mobile app. - Rename: @lightwrite/* → @mukke/*, all branding, configs, Dockerfiles - New DB schemas: songs, playlists, playlist_songs + songId FK on projects - New backend modules: SongModule, PlaylistModule, LibraryModule - New web: app shell with sidebar, library (songs/albums/artists/genres), web player (queue/shuffle/repeat/MediaSession), playlists, search, upload, dashboard, album/artist/genre detail pages - Auth: add forgot-password + reset-password pages, extend auth store - Tests: 40 backend unit tests (song, playlist, library services) - Config: env generation, MinIO bucket, docker-compose prod, cloudflare - Docs: update CLAUDE.md, auth guidelines with SvelteKit checklist Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
42 lines
837 B
TypeScript
42 lines
837 B
TypeScript
import { Ionicons } from '@expo/vector-icons';
|
|
import { Image, View } from 'react-native';
|
|
|
|
import { useTheme } from '~/utils/themeContext';
|
|
|
|
interface ArtworkProps {
|
|
uri: string | null | undefined;
|
|
size?: number;
|
|
rounded?: boolean;
|
|
}
|
|
|
|
export function Artwork({ uri, size = 48, rounded = false }: ArtworkProps) {
|
|
const { colors } = useTheme();
|
|
|
|
if (uri) {
|
|
return (
|
|
<Image
|
|
source={{ uri }}
|
|
style={{
|
|
width: size,
|
|
height: size,
|
|
borderRadius: rounded ? size / 2 : 8,
|
|
}}
|
|
/>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<View
|
|
style={{
|
|
width: size,
|
|
height: size,
|
|
borderRadius: rounded ? size / 2 : 8,
|
|
backgroundColor: colors.backgroundTertiary,
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
}}
|
|
>
|
|
<Ionicons name="musical-note" size={size * 0.4} color={colors.textTertiary} />
|
|
</View>
|
|
);
|
|
}
|