feat(exporter, landing): fix GORM bugs and redesign landing page#150
Open
2heunxun wants to merge 6 commits into
Open
feat(exporter, landing): fix GORM bugs and redesign landing page#1502heunxun wants to merge 6 commits into
2heunxun wants to merge 6 commits into
Conversation
owjs3901
requested changes
May 25, 2026
Comment on lines
+1
to
+19
| import { globalCss } from '@devup-ui/react' | ||
|
|
||
| globalCss({ | ||
| '.shiki, .shiki span': { | ||
| fontFamily: 'D2Coding', | ||
| fontSize: '13px', | ||
| lineHeight: '1.65', | ||
| }, | ||
| '.shiki': { | ||
| background: 'transparent !important', | ||
| padding: '0', | ||
| margin: '0', | ||
| overflowX: 'auto', | ||
| }, | ||
| '[data-theme="dark"] .shiki, [data-theme="dark"] .shiki span': { | ||
| color: 'var(--shiki-dark) !important', | ||
| backgroundColor: 'transparent !important', | ||
| }, | ||
| }) |
Contributor
There was a problem hiding this comment.
code-window.tsx에서 밖에 사용되지 않으므로 해당 파일 안에 정의되는 것이 더욱 적절해 보입니다
Comment on lines
+52
to
+72
| export function StaticCodeBlock({ | ||
| title, | ||
| html, | ||
| }: { | ||
| title: string | ||
| html: string | ||
| }) { | ||
| return ( | ||
| <CodeWindow title={title}> | ||
| <HighlightedCode html={html} /> | ||
| </CodeWindow> | ||
| ) | ||
| } | ||
|
|
||
| export function HeroCodeWrapper({ children }: { children: React.ReactNode }) { | ||
| return ( | ||
| <Flex justifyContent={[null, null, null, 'flex-end']} w="100%"> | ||
| {children} | ||
| </Flex> | ||
| ) | ||
| } |
Contributor
There was a problem hiding this comment.
use client 가 필요 없는 코드들이 use client가 선언된 파일 내에 정의되어 있는 것은 피해야 합니다
Contributor
There was a problem hiding this comment.
changelog는 우리는 사용하지 않고 있습니다
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
이 PR은 두 가지 주요 변경을 포함합니다.
1. GORM 익스포터 버그 수정 및 기능 보완
버그 수정
go_type_for_column미정의로 인한 컴파일 오류test_go_type_mapping테스트가 존재하지 않는 함수go_type_for_column을 호출하고 있었습니다.내부 enum 매핑이 불필요한 단순 타입 테스트용 2-파라미터 래퍼를 추가하여 해결했습니다.
HasMany 필드명 복수형 중복 (
Postss→Posts)이미 복수형인 테이블명(예:
posts)에s를 추가로 붙여Postss같은 잘못된 Go 식별자가 생성되는 문제를 수정했습니다.기능 보완
JSONB 커스텀 타입 매핑
Custom { custom_type: "JSONB" }를string대신datatypes.JSON으로 매핑하고,gorm.io/datatypes임포트를 자동으로 추가합니다.type:JSONB태그는 유지되어 DB 컬럼 타입도 정확히 명시됩니다.HasMany 역방향 관계에
on_delete/on_update반영스키마 컨텍스트에서 역방향 관계를 생성할 때 FK constraint 정보가 누락되어 있었습니다.
ReverseRelation구조체에on_delete,on_update를 추가하고 GORM 태그에 반영합니다.테스트 추가
test_table_with_jsonb_columndatatypes.JSON매핑 및 임포트 검증test_server_default_skippedNOW()등 서버 함수 기본값이 GORM 태그에서 제외되고, 리터럴 기본값은 포함되는 동작 검증test_has_many_with_constrainton_delete/on_update가 HasMany 태그에 반영되는 동작 검증test_go_type_mapping(3 케이스 추가)JSONB,jsonb, 기타 커스텀 타입 매핑 검증2. 랜딩 페이지 전면 리디자인
신규 컴포넌트
code-tabs.tsxcode-window.tsxcopy-install.tsx_lib/highlight.ts제거된 컴포넌트
example.tsx(ExampleContainer,ExampleImage,ExampleProvider)join-icon-button.tsx(JoinIconButton)페이지 변경 사항
CopyInstall버튼 추가변경 파일 요약
테스트