Skip to content

Commit

Permalink
몽골버전 이미지 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eejoy1212 committed Jul 16, 2024
1 parent f6cbf98 commit fc4d4b6
Show file tree
Hide file tree
Showing 645 changed files with 54,148 additions and 4,933 deletions.
22 changes: 22 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# REACT_APP_BACKEND=http://13.54.234.18:8000
# # # http://localhost:8000
# REACT_APP_BE_PROD=http://13.54.234.18:8000
# # # http://localhost:8000
# REACT_APP_PHOTO_BACKEND=http://127.0.0.1:5000
# csy
# REACT_APP_BACKEND=http://13.54.234.18:8000
# # http://localhost:8000
# REACT_APP_BE_PROD=http://13.54.234.18:8000
# # http://localhost:8000
# REACT_APP_PHOTO_BACKEND=http://172.21.120.126:5000
REACT_APP_BACKEND=http://118.33.212.138:8000
# http://localhost:8000
REACT_APP_BE_PROD=http://118.33.212.138:8000
# http://localhost:8000
REACT_APP_PHOTO_BACKEND=http://172.21.120.126:5000
REACT_APP_DEVICE_NUMBER=APP01

# 3RD PARTY
CLOUDINARY_APP_NAME=dyngqk6ca
CLOUDINARY_API_SECRET=921129921119946
CLOUDINARY_URL=cloudinary://921129921119946:WNLeGtgVBIB2JbmCsyce4jb1oRY@dyngqk6ca
Binary file added app.zip
Binary file not shown.
21 changes: 13 additions & 8 deletions app/.env
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# REACT_APP_BACKEND=http://118.33.212.138:8000
# REACT_APP_BACKEND=http://13.54.234.18:8000
# # # http://localhost:8000
# REACT_APP_BE_PROD=http://118.33.212.138:8000
# REACT_APP_BE_PROD=http://13.54.234.18:8000
# # # http://localhost:8000
# REACT_APP_PHOTO_BACKEND=http://118.33.212.138:5000
# REACT_APP_PHOTO_BACKEND=http://127.0.0.1:5000
REACT_APP_BACKEND=http://118.33.212.138:8000
# # http://localhost:8000
REACT_APP_BE_PROD=http://118.33.212.138:8000
# # http://localhost:8000
REACT_APP_PHOTO_BACKEND=http://118.33.212.138:5000
# csy
REACT_APP_BACKEND=http://127.0.0.1:8000
# http://localhost:8000
REACT_APP_BE_PROD=http://127.0.0.1:8000
# http://localhost:8000
REACT_APP_PHOTO_BACKEND=http://172.21.120.126:5000
# REACT_APP_BACKEND=http://13.54.234.18:8000
# # http://localhost:8000
# REACT_APP_BE_PROD=http://13.54.234.18:8000
# # http://localhost:8000
# REACT_APP_PHOTO_BACKEND=http://172.21.120.126:5000

REACT_APP_DEVICE_NUMBER=APP01

Expand Down
7 changes: 7 additions & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"react-router-dom": "^6.22.3",
"react-scripts": "5.0.1",
"react-use": "^17.5.0",
"react-uuid": "^2.0.0",
"react-webcam": "^7.2.0",
"use-image": "^1.1.1",
"web-vitals": "^2.1.4"
Expand Down Expand Up @@ -57,8 +58,5 @@
"last 1 safari version"
]
},

"proxy": "http://127.0.0.1:8000"


"proxy": "http://13.54.234.18:8000"
}
5 changes: 4 additions & 1 deletion app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ import Choose from './screens/Photo/Choose';
import Filter from './screens/Filter';
import Sticker from './screens/Sticker';
import Print from './screens/Print';
import Landing from './screens/Landing';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import PaymentNumber from './screens/Payment/PaymentNumber';
import QrDownload from './screens/QrDownload';

function App() {
return (
Expand All @@ -36,7 +38,8 @@ function App() {
<Route path="/filter" element={<Filter />} />
<Route path="/sticker" element={<Sticker />} />
<Route path="/print" element={<Print />} />

<Route path="/landing" element={<Landing/>} />
<Route path="/download" element={<QrDownload/>} />
</Routes>
</Router>
);
Expand Down
51 changes: 33 additions & 18 deletions app/src/api/config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
import axios from "axios";

//urls
const audioBaseURL="http://127.0.0.1:8001"
const checkBaseUrl="http://127.0.0.1:9000"
const OriginBaseURL="http://127.0.0.1:8000"
export const startCashUrl="http://127.0.0.1:8002/api/start/"
export const BaseURL = "http://127.0.0.1:5000"
export const videoFeedUrl=`http://127.0.0.1:5000/video_feed`//Photo.js live view url

// const audioBaseURL="http://127.0.0.1:8001"
// const checkBaseUrl="http://13.54.234.18:9000"
// const OriginBaseURL="http://13.54.234.18:8000"
// export const startCashUrl="http://127.0.0.1:8002/api/start/"
// export const BaseURL = "http://127.0.0.1:5000"
// export const videoFeedUrl=`http://127.0.0.1:5000/video_feed`//Photo.js live view url
const audioBaseURL="http://118.33.212.138:8001"
const checkBaseUrl="http://118.33.212.138:9000"
const OriginBaseURL="http://118.33.212.138:8000"
export const startCashUrl="http://118.33.212.138:8002/api/start/"
export const BaseURL = "http://118.33.212.138:5000"
export const videoFeedUrl=`http://118.33.212.138:5000/video_feed`//Photo.js live view url

//axios api
const checkAxiosInstance = axios.create({
baseURL: checkBaseUrl,
Expand Down Expand Up @@ -50,29 +58,36 @@ export const checkPromotionCode=async(payload)=>{


//Photo.js
export const getPhotos=async()=>{
const { data } = await originAxiosInstance.get('/get_photo/')
return data
}
export const sendCaptureReq=async()=>{
export const getPhotos = async (uuid) => {

const {data} = await axiosInstance.get('/capture')
const { data, status } = await originAxiosInstance.get(`/get_photo/`,
{
params:{uuid:uuid}
}
);
return data;
}
};
export const sendCaptureReq = async (uuid,photoNum) => {
const { data } = await axiosInstance.post('/capture', { uuid:uuid,photoNum:photoNum });
return data;
};

export const startLiveView = async () => {
try {
await axios.get('http://127.0.0.1:5000/start_live_view');

await axios.get('http://118.33.212.138:5000/start_live_view');
// await axios.get('http://127.0.0.1:5000/start_live_view');
} catch (error) {
console.error('Failed to start live view:', error);
}
};

//sound get
export const getAudio=async(payload)=>{
const {data}=await audioAxiosInstance.post(`/api/play_sound/`,payload)
return data;
// const {data}=await audioAxiosInstance.post(`/api/play_sound/`,payload)
return "";
}
export const getClickAudio=async()=>{
const {data}=await audioAxiosInstance.post(`/api/play_sound/`,{file_name:"click_sound.wav"})
return data;
// const {data}=await audioAxiosInstance.post(`/api/play_sound/`,{file_name:"click_sound.wav"})
return "";
}
Binary file added app/src/assets/Common/mn/cartoon-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/cartoon-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/collab-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/collab-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/continue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/continue_click.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/goback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/gobackhover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/minimalism-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/party-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/party-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/season-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Common/mn/season-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/BG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/bw-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/bw-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/classic-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/classic-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/intensity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/natural-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/natural-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/personality-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/personality-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/pink-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/assets/Filter/mn/pink-pressed.png
Binary file added app/src/assets/Filter/mn/smooth-default.png
Binary file added app/src/assets/Filter/mn/smooth-pressed.png
Binary file modified app/src/assets/Frame/Layout/Cartoon/BG.png
Binary file modified app/src/assets/Frame/Layout/Cartoon/kr/BG.png
Binary file added app/src/assets/Frame/Layout/Cartoon/mn/BG.png
Binary file modified app/src/assets/Frame/Layout/Cartoon/vn/BG.png
Binary file modified app/src/assets/Frame/Layout/Collab/BG.png
Binary file modified app/src/assets/Frame/Layout/Collab/kr/BG.png
Binary file added app/src/assets/Frame/Layout/Collab/mn/BG.png
Binary file modified app/src/assets/Frame/Layout/Collab/vn/BG.png
Binary file modified app/src/assets/Frame/Layout/Minimalism/BG.png
Binary file modified app/src/assets/Frame/Layout/Minimalism/kr/BG.png
Binary file added app/src/assets/Frame/Layout/Minimalism/mn/BG.png
Binary file modified app/src/assets/Frame/Layout/Minimalism/vn/BG.png
Binary file modified app/src/assets/Frame/Layout/Party/BG.png
Binary file modified app/src/assets/Frame/Layout/Party/kr/BG.png
Binary file added app/src/assets/Frame/Layout/Party/mn/BG.png
Binary file modified app/src/assets/Frame/Layout/Party/vn/BG.png
Binary file modified app/src/assets/Frame/Layout/Seasons/BG.png
Binary file modified app/src/assets/Frame/Layout/Seasons/kr/BG.png
Binary file added app/src/assets/Frame/Layout/Seasons/mn/BG.png
Binary file modified app/src/assets/Frame/Layout/Seasons/vn/BG.png
Binary file added app/src/assets/Frame/Style/mn/BG.png
Binary file added app/src/assets/Frame/Type/mn/BG.png
Binary file added app/src/assets/Home/mn/start.png
Binary file added app/src/assets/Home/mn/start_click.png
Binary file added app/src/assets/Landing/BG.png
Binary file added app/src/assets/Landing/kr/BG.png
Binary file added app/src/assets/Landing/mn/BG.png
Binary file added app/src/assets/Landing/vn/BG.png
Binary file added app/src/assets/Payment/Cash/mn/BG.png
Binary file added app/src/assets/Payment/Cash/mn/cash.png
Binary file added app/src/assets/Payment/Cash/mn/cash_click.png
Binary file added app/src/assets/Payment/Cash/mn/done.png
Binary file added app/src/assets/Payment/Cash/mn/done_click.png
Binary file added app/src/assets/Payment/Cash/mn/inserted.png
Binary file added app/src/assets/Payment/Cash/mn/paid.png
Binary file added app/src/assets/Payment/Common/mn/BG.png
Binary file added app/src/assets/Payment/Promo/mn/BG.png
Binary file added app/src/assets/Payment/Promo/mn/promo.png
Binary file added app/src/assets/Payment/Promo/mn/promo_click.png
Binary file added app/src/assets/Payment/Promo/mn/promo_form.png
Binary file added app/src/assets/Payment/Promo/mn/redeem.png
Binary file added app/src/assets/Payment/Promo/mn/redeem_click.png
Binary file added app/src/assets/Payment/QR/mn/BG.png
Binary file added app/src/assets/Payment/QR/mn/bank.png
Binary file added app/src/assets/Payment/QR/mn/bank_click.png
Binary file added app/src/assets/Payment/QR/mn/qpay.png
Binary file added app/src/assets/Payment/QR/mn/qpay_click.png
Binary file added app/src/assets/PaymentNum/Common/mn/BG.png
Binary file added app/src/assets/Photo/Choose/mn/BG.png
Binary file added app/src/assets/Photo/Load/BG.png
Binary file added app/src/assets/Photo/Load/kr/BG.png
Binary file added app/src/assets/Photo/Load/mn/BG.png
Binary file added app/src/assets/Photo/Load/vn/BG.png
Binary file added app/src/assets/Photo/Snap/mn/BG.png
Binary file added app/src/assets/Prints/mn/BG.png
Binary file added app/src/assets/Sticker/mn/BG.png
Binary file added app/src/assets/Sticker/mn/cartoon-default.png
Binary file added app/src/assets/Sticker/mn/cartoon-pressed.png
Binary file added app/src/assets/Sticker/mn/lovely-default.png
Binary file added app/src/assets/Sticker/mn/lovely-pressed.png
Binary file added app/src/assets/Sticker/mn/mood-default.png
Binary file added app/src/assets/Sticker/mn/mood-pressed.png
Binary file added app/src/assets/Sticker/mn/print-default.png
Binary file added app/src/assets/Sticker/mn/print-pressed.png
Binary file added app/src/assets/Sticker/mn/y2k-default.png
Binary file added app/src/assets/Sticker/mn/y2k-pressed.png
80 changes: 0 additions & 80 deletions app/src/components/FrameCarousel.js
Original file line number Diff line number Diff line change
@@ -1,84 +1,4 @@
// import React, { useState, useRef, useEffect } from 'react';
// import './FrameCarousel.css'

// const FrameCarousel = ({ images,handleClick ,clickedTitles}) => {
// const carouselRef = useRef(null);
// const [isDown, setIsDown] = useState(false);
// const [startX, setStartX] = useState(0);
// const [scrollLeft, setScrollLeft] = useState(0);
// const storedSelectedFrame = JSON.parse(sessionStorage.getItem('selectedFrame'));
// console.log("in carousel>>>",storedSelectedFrame.frame)
// useEffect(() => {
// const carousel = carouselRef.current;

// const handleMouseDown = (e) => {
// setIsDown(true);
// if (carousel) {
// setStartX(e.pageX - carousel.offsetLeft);
// setScrollLeft(carousel.scrollLeft);
// }
// };

// const handleMouseLeave = () => {
// setIsDown(false);
// };

// const handleMouseUp = () => {
// setIsDown(false);
// };

// const handleMouseMove = (e) => {
// if (!isDown) return;
// e.preventDefault();
// if (carousel) {
// const x = e.pageX - carousel.offsetLeft;
// const walk = (x - startX) * 3; // Scroll speed
// carousel.scrollLeft = scrollLeft - walk;
// }
// };

// if (carousel) {
// carousel.addEventListener('mousedown', handleMouseDown);
// carousel.addEventListener('mouseleave', handleMouseLeave);
// carousel.addEventListener('mouseup', handleMouseUp);
// carousel.addEventListener('mousemove', handleMouseMove);
// }

// return () => {
// if (carousel) {
// carousel.removeEventListener('mousedown', handleMouseDown);
// carousel.removeEventListener('mouseleave', handleMouseLeave);
// carousel.removeEventListener('mouseup', handleMouseUp);
// carousel.removeEventListener('mousemove', handleMouseMove);
// }
// };
// }, [isDown, startX, scrollLeft]);

// return (
// <div
// draggable={false}
// className='frame-carousel-container'
// ref={carouselRef}>
// <div
// draggable={false}
// className='frame-carousel-imgs'
// >
// {[...images,...images].map((img, index) => (
// <img
// style={{

// height:storedSelectedFrame.frame==="4-cutx2"?"210px":"auto"
// }}
// className={`frame-carousel-img ${clickedTitles.includes(img.title)?"clicked":""}`}
// onClick={() => handleClick(index,img.title)}
// key={index} src={img.photo_full} alt={`Image ${index + 1}`} />
// ))}
// </div>
// </div>
// );
// };

// export default FrameCarousel;
import React, { useState, useRef, useEffect } from 'react';
import './FrameCarousel.css';

Expand Down
11 changes: 7 additions & 4 deletions app/src/css/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,28 @@

.language-options {
width: 200px;
height: 300px;
height: 180px;
background-image: url('../assets/Home/language_options.png');
background-size: contain;
background-size: 100% 100%;
background-repeat: no-repeat;
background-position: center;
position: absolute;
top: 2px;
margin-top: 50px;
margin-top: 130px;
}

.language-text {
top: 85px;
/* top: 85px; */
margin: 10px 50px;
cursor: pointer;
position: relative;
padding: 5px 5px 5px;
text-wrap: nowrap;
/* font-size: 16px; */
}

.language-text:hover {
width: 106px;
background-color: white;
border-radius: 10px;
}
Expand Down
11 changes: 6 additions & 5 deletions app/src/css/Payment.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@

/** Promo **/
.promo-container {
overflow: hidden;
position: relative;
width: 100vw;
/* Full width of the viewport */
Expand All @@ -211,7 +212,7 @@
top: 100px;
right: 0;
width: 50%;
height: 100%;
height: 85%;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -263,8 +264,8 @@
.form-button-container {
display: flex;
justify-content: center;
width: 88%;
height: 10%;
width: 90%;
height: 12%;
}

.form-button-container .form-button {
Expand Down Expand Up @@ -300,7 +301,7 @@

/** Result **/
.payment-number-container{

position: relative;
width: 100vw;
/* Full width of the viewport */
Expand Down Expand Up @@ -399,7 +400,7 @@
.check{
position: absolute;
top: 16%;
left: 5%;
left: 21%;
width: 60%;
height: 60%;
/* Set height of the div */
Expand Down
Loading

0 comments on commit fc4d4b6

Please sign in to comment.