This commit is contained in:
2025-10-03 17:11:06 +02:00
parent 74ebad850c
commit 45b7571c14
4 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -36,8 +36,8 @@ import Providers from "./src/providers";
import { LogBox } from "react-native"; import { LogBox } from "react-native";
import CommentsBottomSheet from "./src/components/bottomsheets/CommentsBottomSheet"; import CommentsBottomSheet from "./src/components/bottomsheets/CommentsBottomSheet";
import "./src/utils/Sheet";
import ShareQrModalContainer from "./src/components/modal/ShareQrModalContainer"; import ShareQrModalContainer from "./src/components/modal/ShareQrModalContainer";
import "./src/utils/Sheet";
console.disableYellowBox = true; console.disableYellowBox = true;
console.reportErrorsAsExceptions = false; console.reportErrorsAsExceptions = false;
+1 -1
View File
@@ -267,7 +267,7 @@ const ShareModal = ({ payload }) => {
{copied ? <Text style={styles.copiedText}>Lien copié</Text> : null} {copied ? <Text style={styles.copiedText}>Lien copié</Text> : null}
</BlurView> </BlurView>
<BlurView intensity={90} style={styles.card} {...blurProps}> <BlurView intensity={40} tint="dark" style={styles.card} {...blurProps}>
<Text style={styles.sectionHeading}>{sectionTitle}</Text> <Text style={styles.sectionHeading}>{sectionTitle}</Text>
<View style={styles.optionsList}> <View style={styles.optionsList}>
{shareOptions.map((option, index) => { {shareOptions.map((option, index) => {
+5 -5
View File
@@ -152,7 +152,7 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => {
// Micro-correction initiale uniquement pour absorber un léger décalage réseau // Micro-correction initiale uniquement pour absorber un léger décalage réseau
useEffect(() => { useEffect(() => {
if (!isActive || !hasExternalAudio) return; if (!isActive || !hasExternalAudio) return;
const t = setTimeout(() => { const t = global.setTimeout(() => {
try { try {
const a = audioPlayer?.currentTime || 0; const a = audioPlayer?.currentTime || 0;
const v = videoPlayer?.currentTime || 0; const v = videoPlayer?.currentTime || 0;
@@ -161,7 +161,7 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => {
} }
} catch (e) {} } catch (e) {}
}, 300); }, 300);
return () => clearTimeout(t); return () => global.clearTimeout(t);
}, [isActive, hasExternalAudio, audioPlayer, videoPlayer]); }, [isActive, hasExternalAudio, audioPlayer, videoPlayer]);
useEffect(() => { useEffect(() => {
@@ -190,7 +190,7 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => {
const [currentTimeS, setCurrentTimeS] = useState(0); const [currentTimeS, setCurrentTimeS] = useState(0);
useEffect(() => { useEffect(() => {
if (!isActive) return; if (!isActive) return;
const id = setInterval(() => { const id = global.setInterval(() => {
try { try {
const t = hasExternalAudio const t = hasExternalAudio
? Number(audioPlayer?.currentTime || 0) ? Number(audioPlayer?.currentTime || 0)
@@ -198,7 +198,7 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => {
setCurrentTimeS(t); setCurrentTimeS(t);
} catch (e) {} } catch (e) {}
}, 250); }, 250);
return () => clearInterval(id); return () => global.clearInterval(id);
}, [isActive, hasExternalAudio, audioPlayer, videoPlayer]); }, [isActive, hasExternalAudio, audioPlayer, videoPlayer]);
// partage: géré via l'API native Share directement dans l'UI // partage: géré via l'API native Share directement dans l'UI
@@ -530,7 +530,7 @@ const Playbacks = () => {
if (idx >= 0) { if (idx >= 0) {
setActiveIndex(idx); setActiveIndex(idx);
// give time for first render before scrolling // give time for first render before scrolling
setTimeout(() => { global.setTimeout(() => {
try { try {
carouselRef.current?.scrollTo?.({ index: idx, animated: false }); carouselRef.current?.scrollTo?.({ index: idx, animated: false });
} catch (e) {} } catch (e) {}
+14 -14
View File
@@ -1,16 +1,16 @@
import { View, Text, Image, Platform, Alert } from "react-native";
import React, { useEffect, useRef, useState } from "react";
import { Palette, Style } from "../../styles";
import { BlurView } from "expo-blur"; import { BlurView } from "expo-blur";
import { ai } from "../../assets"; import React, { useEffect, useRef, useState } from "react";
import ProgressBar from "../../components/ProgressBar"; import { Alert, Image, Platform, Text, View } from "react-native";
import { FONT_FAMILY } from "../../styles/Fonts";
import GradientButton from "../../components/GradientButton";
import { navigate } from "../../navigation/NavigationService";
import { Routes } from "../../navigation";
import firebase from "../../config/firebase";
import useMinuit from "react-native-minuit/src/hooks/useMinuit.js"; import useMinuit from "react-native-minuit/src/hooks/useMinuit.js";
import { ai } from "../../assets";
import GradientButton from "../../components/GradientButton";
import ProgressBar from "../../components/ProgressBar";
import firebase from "../../config/firebase";
import { Routes } from "../../navigation";
import { navigate } from "../../navigation/NavigationService";
import { useUser } from "../../providers/UserDataProvider"; import { useUser } from "../../providers/UserDataProvider";
import { Palette, Style } from "../../styles";
import { FONT_FAMILY } from "../../styles/Fonts";
const CreatingLyrics = ({ active, config, selections }) => { const CreatingLyrics = ({ active, config, selections }) => {
const [progress, setProgress] = useState(0); const [progress, setProgress] = useState(0);
@@ -78,7 +78,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
const rawMessage = typeof e?.message === "string" ? e.message : ""; const rawMessage = typeof e?.message === "string" ? e.message : "";
const cleanedMessage = rawMessage.replace( const cleanedMessage = rawMessage.replace(
/^functions error: \w+-\w+:\s*/i, /^functions error: \w+-\w+:\s*/i,
"", ""
); );
setError({ setError({
message: message:
@@ -154,7 +154,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
onPress: redirect, onPress: redirect,
}, },
], ],
{ cancelable: false }, { cancelable: false }
); );
if (Platform.OS === "web") { if (Platform.OS === "web") {
@@ -246,7 +246,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
setSaved(true); setSaved(true);
await setIsLoading(true); await setIsLoading(true);
console.log( console.log(
"📄 [CreatingLyrics] Consultation manuelle du texte", "📄 [CreatingLyrics] Consultation manuelle du texte"
); );
await updateProjectData({ await updateProjectData({
title: result?.title || "", title: result?.title || "",
@@ -261,7 +261,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
} catch (e) { } catch (e) {
console.error( console.error(
"⚠️ [CreatingLyrics] Erreur lors de l'ouverture manuelle", "⚠️ [CreatingLyrics] Erreur lors de l'ouverture manuelle",
e, e
); );
} finally { } finally {
await setIsLoading(false); await setIsLoading(false);