-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from boostcampwm2023/develop
[Deploy] Week5 Ver5 배포
- Loading branch information
Showing
35 changed files
with
391 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import instance from 'shared/apis/AxiosInterceptor'; | ||
|
||
export const getMyPost = async () => { | ||
const { data } = await instance({ | ||
method: 'GET', | ||
url: '/star', | ||
}); | ||
return data; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const DISTANCE_LIMIT = 3000; | ||
export const DISTANCE_LIMIT = 5000; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/client/src/pages/Landing/index.tsx → ...ages/client/src/pages/Landing/Landing.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import instance from './AxiosInterceptor'; | ||
|
||
export const getShareLink = async (nickName: string) => { | ||
const { data } = await instance({ | ||
method: 'GET', | ||
url: `/auth/sharelink?nickname=${nickName}`, | ||
}); | ||
|
||
return data; | ||
}; | ||
|
||
export const patchShareStatus = async (status: 'private' | 'public') => { | ||
const { data } = await instance({ | ||
method: 'PATCH', | ||
url: `/auth/status`, | ||
data: { | ||
status, | ||
}, | ||
}); | ||
|
||
return data; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const STARS_NUM = 10000; | ||
export const STARS_NUM = 6000; | ||
|
||
export const DISTANCE_LIMIT = 3000; | ||
|
||
|
48 changes: 48 additions & 0 deletions
48
packages/client/src/widgets/galaxyCustomModal/GalaxyCustom.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Modal } from 'shared/ui'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import { RightButton, SampleScreen, Sliders } from './ui'; | ||
import { useViewStore } from 'shared/store'; | ||
import styled from '@emotion/styled'; | ||
import { useGalaxyStore, useCustomStore } from 'shared/store'; | ||
|
||
export default function GalaxyCustom() { | ||
const navigate = useNavigate(); | ||
const { setView } = useViewStore(); | ||
const { setSpiral, setStart, setThickness, setZDist } = useGalaxyStore(); | ||
const { spiral, start, thickness, zDist } = useCustomStore(); | ||
|
||
const handleSubmit = () => { | ||
setSpiral(spiral); | ||
setStart(start); | ||
setThickness(thickness); | ||
setZDist(zDist); | ||
}; | ||
|
||
return ( | ||
<form | ||
onSubmit={(e) => { | ||
e.preventDefault(); | ||
handleSubmit(); | ||
}} | ||
> | ||
<Modal | ||
title="은하 커스텀" | ||
onClickGoBack={() => { | ||
navigate('/home'); | ||
setView('MAIN'); | ||
}} | ||
rightButton={<RightButton />} | ||
> | ||
<Container> | ||
<SampleScreen /> | ||
<Sliders /> | ||
</Container> | ||
</Modal> | ||
</form> | ||
); | ||
} | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
gap: 24px; | ||
`; |
4 changes: 2 additions & 2 deletions
4
...lient/src/widgets/landingScreen/index.tsx → ...c/widgets/landingScreen/LandingScreen.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { useRef } from 'react'; | ||
import { useFrame } from '@react-three/fiber'; | ||
import { Group, Object3DEventMap } from 'three'; | ||
|
||
export default function CameraLight() { | ||
const lightRef = useRef<Group<Object3DEventMap>>(null!); | ||
|
||
useFrame((state) => { | ||
lightRef.current.position.copy(state.camera.position); | ||
}); | ||
return ( | ||
<group ref={lightRef}> | ||
<directionalLight intensity={3} /> | ||
</group> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as CameraLight } from './CameraLight'; |
Oops, something went wrong.