-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: using update request api * feat: title update use debounce * chore: 불필요한 console.log 제거 * refactor: Config 명세 변경 적용 * feat: 삭제 api 연결 * refactor: title update mutation * refactor: query auth * fix: editor.data typo * feat: 저장 토스트 문구 수정 * fix: query typo --------- Co-authored-by: bepyan <[email protected]>
- Loading branch information
Showing
7 changed files
with
98 additions
and
68 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
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,49 +1,22 @@ | ||
import Editor from "~/components/editor"; | ||
import { getInvitationByEventUrl } from "~/lib/db/schema/invitations.query"; | ||
|
||
export default async function Page({ | ||
params, | ||
}: { | ||
params: { subdomain: string }; | ||
}) { | ||
const invitation = await getInvitationByEventUrl(params.subdomain); | ||
|
||
export default async function Page() { | ||
return ( | ||
<Editor | ||
editorConfig={{ backLink: "/pg" }} | ||
editorData={[ | ||
{ | ||
id: "__body", | ||
type: "__body", | ||
name: "Body", | ||
styles: {}, | ||
content: [ | ||
{ | ||
id: "container", | ||
name: "Container", | ||
type: "container", | ||
styles: { | ||
display: "flex", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
gap: 10, | ||
paddingTop: 10, | ||
paddingRight: 10, | ||
paddingBottom: 10, | ||
paddingLeft: 10, | ||
width: "100%", | ||
height: "auto", | ||
}, | ||
content: [ | ||
{ | ||
id: "text", | ||
name: "Text", | ||
type: "text", | ||
styles: { | ||
textAlign: "left", | ||
}, | ||
content: { | ||
innerText: "Hello World", | ||
}, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
]} | ||
editorConfig={{ | ||
backLink: "/pg", | ||
invitationId: invitation.id, | ||
invitationTitle: invitation.title, | ||
invitationSubdomain: invitation.eventUrl, | ||
}} | ||
editorData={invitation.customFields} | ||
/> | ||
); | ||
} |
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,24 @@ | ||
import Script from "next/script"; | ||
import { env } from "~/lib/env"; | ||
|
||
export default function KakaoMapScriptLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<> | ||
<Script | ||
strategy="beforeInteractive" | ||
type="text/javascript" | ||
src={`${env.DAUMCDN_POSTOCDE_URL}`} | ||
/> | ||
<Script | ||
strategy="beforeInteractive" | ||
type="text/javascript" | ||
src={`${env.KAKAO_MAP_BASE_URL}?appkey=${env.KAKAO_MAP_API_KEY}&libraries=services&autoload=false`} | ||
/> | ||
{children} | ||
</> | ||
); | ||
} |
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
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