Update resource URL to backend.dine360ads.com
Changed all image/video URLs from ads.dine360ads.com/api/ to backend.dine360ads.com/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
80dbe7e947
commit
6e8694ba96
@ -1,6 +1,6 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
// var API_BASE_URL = "https://ads.dine360ads.com/api/api";
|
// var API_BASE_URL = "https://backend.dine360ads.com/api";
|
||||||
var API_BASE_URL = "https://backend.dine360ads.com/api";
|
var API_BASE_URL = "https://backend.dine360ads.com/api";
|
||||||
//API_BASE_URL = "http://82.25.95.117:5000/api";
|
//API_BASE_URL = "http://82.25.95.117:5000/api";
|
||||||
//API_BASE_URL = "http://localhost:5000/api"; // Update as needed
|
//API_BASE_URL = "http://localhost:5000/api"; // Update as needed
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import { api } from "../API/api";
|
|||||||
export default function NewMappingSubPartnersComponent({ client, partners, setUpd }) {
|
export default function NewMappingSubPartnersComponent({ client, partners, setUpd }) {
|
||||||
const [expandedPartners, setExpandedPartners] = useState({});
|
const [expandedPartners, setExpandedPartners] = useState({});
|
||||||
const { setLoading } = useLoading();
|
const { setLoading } = useLoading();
|
||||||
const BACKEND = 'https://ads.dine360ads.com/api//';
|
const BACKEND = 'https://backend.dine360ads.com/';
|
||||||
const [files, setFiles] = useState([]);
|
const [files, setFiles] = useState([]);
|
||||||
const [selectedPartners, setSelectedPartners] = useState([]);
|
const [selectedPartners, setSelectedPartners] = useState([]);
|
||||||
const [searchTerm, setSearchTerm] = useState('');
|
const [searchTerm, setSearchTerm] = useState('');
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import { api } from "../API/api";
|
|||||||
export default function NewMappingSubPartnersComponent({ client, partners, setUpd }) {
|
export default function NewMappingSubPartnersComponent({ client, partners, setUpd }) {
|
||||||
const [expandedPartners, setExpandedPartners] = useState({});
|
const [expandedPartners, setExpandedPartners] = useState({});
|
||||||
const { setLoading } = useLoading();
|
const { setLoading } = useLoading();
|
||||||
const BACKEND = 'https://ads.dine360ads.com/api//';
|
const BACKEND = 'https://backend.dine360ads.com/';
|
||||||
const toggleSubScreens = (event, partnerId) => {
|
const toggleSubScreens = (event, partnerId) => {
|
||||||
|
|
||||||
event.stopPropagation(); // ⛔️ Prevents event from closing parent card!
|
event.stopPropagation(); // ⛔️ Prevents event from closing parent card!
|
||||||
|
|||||||
@ -7,7 +7,7 @@ export default function NewMappingSubScreensComponent({ partner, client, files }
|
|||||||
const daysOfWeek = ["M", "T", "W", "Th", "F", "S", "Su"];
|
const daysOfWeek = ["M", "T", "W", "Th", "F", "S", "Su"];
|
||||||
const { setLoading } = useLoading();
|
const { setLoading } = useLoading();
|
||||||
const [screens, setScreens] = useState([]);
|
const [screens, setScreens] = useState([]);
|
||||||
const BACKEND = 'https://ads.dine360ads.com/api//';
|
const BACKEND = 'https://backend.dine360ads.com/';
|
||||||
const [selectedFiles, setSelectedFiles] = useState({});
|
const [selectedFiles, setSelectedFiles] = useState({});
|
||||||
const [screenSelections, setScreenSelections] = useState({});
|
const [screenSelections, setScreenSelections] = useState({});
|
||||||
const [FileDurations, setFileDurations] = useState({});
|
const [FileDurations, setFileDurations] = useState({});
|
||||||
|
|||||||
@ -7,7 +7,7 @@ export default function NewMappingSubScreensComponent({ partner, client, files }
|
|||||||
const daysOfWeek = ["M", "T", "W", "Th", "F", "S", "Su"];
|
const daysOfWeek = ["M", "T", "W", "Th", "F", "S", "Su"];
|
||||||
const { setLoading } = useLoading();
|
const { setLoading } = useLoading();
|
||||||
const [screens, setScreens] = useState([]);
|
const [screens, setScreens] = useState([]);
|
||||||
const BACKEND = 'https://ads.dine360ads.com/api//';
|
const BACKEND = 'https://backend.dine360ads.com/';
|
||||||
const [selectedFiles, setSelectedFiles] = useState({});
|
const [selectedFiles, setSelectedFiles] = useState({});
|
||||||
const [screenSelections, setScreenSelections] = useState({});
|
const [screenSelections, setScreenSelections] = useState({});
|
||||||
const [selectAllFiles, setSelectAllFiles] = useState({});
|
const [selectAllFiles, setSelectAllFiles] = useState({});
|
||||||
|
|||||||
@ -25,7 +25,7 @@ export default function NewMappingSubScreensComponent({ partner, client, files }
|
|||||||
]; // Replace with actual screen names if dynamic
|
]; // Replace with actual screen names if dynamic
|
||||||
|
|
||||||
|
|
||||||
const BACKEND = 'https://ads.dine360ads.com/api//';
|
const BACKEND = 'https://backend.dine360ads.com/';
|
||||||
|
|
||||||
const [selectedFiles, setSelectedFiles] = useState([]);
|
const [selectedFiles, setSelectedFiles] = useState([]);
|
||||||
const [screenSelections, setScreenSelections] = useState({}); // Stores selected checkboxes
|
const [screenSelections, setScreenSelections] = useState({}); // Stores selected checkboxes
|
||||||
|
|||||||
@ -70,7 +70,7 @@ export default function PartnersCardComponent({ Data, setUpd }) {
|
|||||||
<div
|
<div
|
||||||
className="bg-cover bg-center h-40 rounded-lg "
|
className="bg-cover bg-center h-40 rounded-lg "
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `url('https://ads.dine360ads.com/api/${client.logo_url || ""}')`,
|
backgroundImage: `url('https://backend.dine360ads.com/${client.logo_url || ""}')`,
|
||||||
}}
|
}}
|
||||||
></div>
|
></div>
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ const AdsPage = () => {
|
|||||||
alert(`🟢 Preparing to play video: ${ad.file_path}`);
|
alert(`🟢 Preparing to play video: ${ad.file_path}`);
|
||||||
setVidPlay(true);
|
setVidPlay(true);
|
||||||
if (vidRef.current) {
|
if (vidRef.current) {
|
||||||
vidRef.current.src = `https://ads.dine360ads.com/api/${ad.file_path}`;
|
vidRef.current.src = `https://backend.dine360ads.com/${ad.file_path}`;
|
||||||
vidRef.current.load();
|
vidRef.current.load();
|
||||||
vidRef.current
|
vidRef.current
|
||||||
.play()
|
.play()
|
||||||
@ -103,7 +103,7 @@ const AdsPage = () => {
|
|||||||
ref={vidRef}
|
ref={vidRef}
|
||||||
className="w-full h-full object-contain absolute"
|
className="w-full h-full object-contain absolute"
|
||||||
autoPlay
|
autoPlay
|
||||||
src={`https://ads.dine360ads.com/api//${ads[idx].file_path}`}
|
src={`https://backend.dine360ads.com/${ads[idx].file_path}`}
|
||||||
muted
|
muted
|
||||||
onEnded={vidEnd}
|
onEnded={vidEnd}
|
||||||
onError={handleVideoError}
|
onError={handleVideoError}
|
||||||
@ -114,7 +114,7 @@ const AdsPage = () => {
|
|||||||
) : (
|
) : (
|
||||||
<motion.img
|
<motion.img
|
||||||
key={ads[idx].file_path}
|
key={ads[idx].file_path}
|
||||||
src={`https://ads.dine360ads.com/api/${ads[idx].file_path}`}
|
src={`https://backend.dine360ads.com/${ads[idx].file_path}`}
|
||||||
className="w-full h-full object-contain absolute"
|
className="w-full h-full object-contain absolute"
|
||||||
initial={{ opacity: 0, scale: 0.9 }}
|
initial={{ opacity: 0, scale: 0.9 }}
|
||||||
animate={{ opacity: 1, scale: 1 }}
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
|
|||||||
@ -136,7 +136,7 @@ const AdsPage = () => {
|
|||||||
<video
|
<video
|
||||||
key={ads[idx].file_path}
|
key={ads[idx].file_path}
|
||||||
ref={vidRef}
|
ref={vidRef}
|
||||||
src={`https://ads.dine360ads.com/api//${ads[idx].file_path}`}
|
src={`https://backend.dine360ads.com/${ads[idx].file_path}`}
|
||||||
className="w-full h-full object-contain absolute"
|
className="w-full h-full object-contain absolute"
|
||||||
autoPlay
|
autoPlay
|
||||||
muted
|
muted
|
||||||
@ -145,7 +145,7 @@ const AdsPage = () => {
|
|||||||
) : (
|
) : (
|
||||||
<motion.img
|
<motion.img
|
||||||
key={ads[idx].file_path}
|
key={ads[idx].file_path}
|
||||||
src={`https://ads.dine360ads.com/api//${ads[idx].file_path}`}
|
src={`https://backend.dine360ads.com/${ads[idx].file_path}`}
|
||||||
className="w-full h-full object-contain absolute"
|
className="w-full h-full object-contain absolute"
|
||||||
initial={{ opacity: 0, scale: 0.9 }}
|
initial={{ opacity: 0, scale: 0.9 }}
|
||||||
animate={{ opacity: 1, scale: 1 }}
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
|
|||||||
@ -133,7 +133,7 @@ const AdsPage = () => {
|
|||||||
<video
|
<video
|
||||||
key={ads[idx].file_path}
|
key={ads[idx].file_path}
|
||||||
ref={vidRef}
|
ref={vidRef}
|
||||||
src={`https://ads.dine360ads.com/api//${ads[idx].file_path}`}
|
src={`https://backend.dine360ads.com/${ads[idx].file_path}`}
|
||||||
className="w-full h-full object-contain absolute"
|
className="w-full h-full object-contain absolute"
|
||||||
autoPlay
|
autoPlay
|
||||||
muted
|
muted
|
||||||
@ -142,7 +142,7 @@ const AdsPage = () => {
|
|||||||
) : (
|
) : (
|
||||||
<motion.img
|
<motion.img
|
||||||
key={ads[idx].file_path}
|
key={ads[idx].file_path}
|
||||||
src={`https://ads.dine360ads.com/api//${ads[idx].file_path}`}
|
src={`https://backend.dine360ads.com/${ads[idx].file_path}`}
|
||||||
className="w-full h-full object-contain absolute"
|
className="w-full h-full object-contain absolute"
|
||||||
initial={{ opacity: 0, scale: 0.9 }}
|
initial={{ opacity: 0, scale: 0.9 }}
|
||||||
animate={{ opacity: 1, scale: 1 }}
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
|
|||||||
@ -96,7 +96,7 @@ const AdsPage = () => {
|
|||||||
setVidPlay(true);
|
setVidPlay(true);
|
||||||
|
|
||||||
if (vidRef.current) {
|
if (vidRef.current) {
|
||||||
vidRef.current.src = `https://ads.dine360ads.com/api/${ad.file_path}`;
|
vidRef.current.src = `https://backend.dine360ads.com/${ad.file_path}`;
|
||||||
vidRef.current.load();
|
vidRef.current.load();
|
||||||
vidRef.current
|
vidRef.current
|
||||||
.play()
|
.play()
|
||||||
@ -196,7 +196,7 @@ const AdsPage = () => {
|
|||||||
// ref={vidRef}
|
// ref={vidRef}
|
||||||
// className="w-full h-full object-contain absolute"
|
// className="w-full h-full object-contain absolute"
|
||||||
// autoPlay
|
// autoPlay
|
||||||
// src={`https://ads.dine360ads.com/api/${ads[idx].file_path}`}
|
// src={`https://backend.dine360ads.com/${ads[idx].file_path}`}
|
||||||
// muted
|
// muted
|
||||||
// onEnded={vidEnd}
|
// onEnded={vidEnd}
|
||||||
// onError={handleVideoError}
|
// onError={handleVideoError}
|
||||||
@ -211,7 +211,7 @@ const AdsPage = () => {
|
|||||||
className="w-full h-full object-contain absolute"
|
className="w-full h-full object-contain absolute"
|
||||||
autoPlay
|
autoPlay
|
||||||
// controls
|
// controls
|
||||||
src={`https://ads.dine360ads.com/api/${ads[idx].file_path}`}
|
src={`https://backend.dine360ads.com/${ads[idx].file_path}`}
|
||||||
muted
|
muted
|
||||||
onEnded={vidEnd}
|
onEnded={vidEnd}
|
||||||
onError={handleVideoError}
|
onError={handleVideoError}
|
||||||
@ -223,7 +223,7 @@ const AdsPage = () => {
|
|||||||
) : (
|
) : (
|
||||||
<motion.img
|
<motion.img
|
||||||
key={ads[idx].file_path}
|
key={ads[idx].file_path}
|
||||||
src={`https://ads.dine360ads.com/api/${ads[idx].file_path}`}
|
src={`https://backend.dine360ads.com/${ads[idx].file_path}`}
|
||||||
className="w-full h-full object-contain absolute"
|
className="w-full h-full object-contain absolute"
|
||||||
initial={{ opacity: 0, scale: 0.9 }}
|
initial={{ opacity: 0, scale: 0.9 }}
|
||||||
animate={{ opacity: 1, scale: 1 }}
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import ViewPartnerAdsConfiguration from "../Components/ViewPartnerAdsConfigurati
|
|||||||
|
|
||||||
const ManageFilesOrder = () => {
|
const ManageFilesOrder = () => {
|
||||||
const { id } = useParams();
|
const { id } = useParams();
|
||||||
const BACKEND = 'https://ads.dine360ads.com/api//';
|
const BACKEND = 'https://backend.dine360ads.com/';
|
||||||
const [files, setFiles] = useState([]);
|
const [files, setFiles] = useState([]);
|
||||||
const [openScreens, setOpenScreens] = useState({});
|
const [openScreens, setOpenScreens] = useState({});
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import ViewPartnerAdsConfiguration from "../Components/ViewPartnerAdsConfigurati
|
|||||||
|
|
||||||
const ManageFilesOrder = () => {
|
const ManageFilesOrder = () => {
|
||||||
const { id } = useParams();
|
const { id } = useParams();
|
||||||
const BACKEND = 'https://ads.dine360ads.com/api//';
|
const BACKEND = 'https://backend.dine360ads.com/';
|
||||||
const [files, setFiles] = useState([]);
|
const [files, setFiles] = useState([]);
|
||||||
const [upd, setupd] = useState(0);
|
const [upd, setupd] = useState(0);
|
||||||
const [uploading, setUploading] = useState(false);
|
const [uploading, setUploading] = useState(false);
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { api } from "../API/api";
|
|||||||
import { useLoading } from "../Context/LoadingContext";
|
import { useLoading } from "../Context/LoadingContext";
|
||||||
|
|
||||||
const ManageFiles = ({ id }) => {
|
const ManageFiles = ({ id }) => {
|
||||||
const BACKEND = 'https://ads.dine360ads.com/api//'
|
const BACKEND = 'https://backend.dine360ads.com/'
|
||||||
const [files, setFiles] = useState([]);
|
const [files, setFiles] = useState([]);
|
||||||
const [upd, setupd] = useState(0);
|
const [upd, setupd] = useState(0);
|
||||||
const [uploading, setUploading] = useState(false);
|
const [uploading, setUploading] = useState(false);
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { api } from "../API/api";
|
|||||||
import { useLoading } from "../Context/LoadingContext";
|
import { useLoading } from "../Context/LoadingContext";
|
||||||
|
|
||||||
const ManageFiles = ({ id }) => {
|
const ManageFiles = ({ id }) => {
|
||||||
const BACKEND = 'https://ads.dine360ads.com/api//'
|
const BACKEND = 'https://backend.dine360ads.com/'
|
||||||
const [files, setFiles] = useState([]);
|
const [files, setFiles] = useState([]);
|
||||||
const [upd, setupd] = useState(0);
|
const [upd, setupd] = useState(0);
|
||||||
const [uploading, setUploading] = useState(false);
|
const [uploading, setUploading] = useState(false);
|
||||||
|
|||||||
@ -414,7 +414,7 @@ const ManagePartner = () => {
|
|||||||
Logo
|
Logo
|
||||||
</label>
|
</label>
|
||||||
<img
|
<img
|
||||||
src={`https://ads.dine360ads.com/api/${formData.logo_url || ""}`}
|
src={`https://backend.dine360ads.com/${formData.logo_url || ""}`}
|
||||||
alt="Logo"
|
alt="Logo"
|
||||||
className="mt-1 w-[60%] rounded-lg"
|
className="mt-1 w-[60%] rounded-lg"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -410,7 +410,7 @@ const ManagePartner = () => {
|
|||||||
Logo
|
Logo
|
||||||
</label>
|
</label>
|
||||||
<img
|
<img
|
||||||
src={`https://ads.dine360ads.com/api/${formData.logo_url || ""}`}
|
src={`https://backend.dine360ads.com/${formData.logo_url || ""}`}
|
||||||
alt="Logo"
|
alt="Logo"
|
||||||
className="mt-1 w-[60%] rounded-lg"
|
className="mt-1 w-[60%] rounded-lg"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user