Skip to content

feat: Section body 부분 nojs preview 추가#5

Merged
JaeHyuckSa merged 1 commit intomainfrom
feature/cms-nodejs
May 5, 2025
Merged

feat: Section body 부분 nojs preview 추가#5
JaeHyuckSa merged 1 commit intomainfrom
feature/cms-nodejs

Conversation

@JaeHyuckSa
Copy link
Member

Section 어드민 페이지에서 Preview Mode 버튼이 있습니다. 그거 바탕으로 눌러서 ts/js 로 직접 해보시면 됩니다.

Signed-off-by: SaJH <wogur981208@gmail.com>
@JaeHyuckSa JaeHyuckSa added the enhancement New feature or request label May 3, 2025
@JaeHyuckSa JaeHyuckSa requested a review from Copilot May 3, 2025 10:03
@JaeHyuckSa JaeHyuckSa self-assigned this May 3, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new nojs preview capability to the Section admin page by introducing a custom code preview widget with TS/JS toggle buttons and dark mode options.

  • Added inline CSS and HTML template for the code preview widget
  • Created a new CodeEditorWidget used in the SectionAdminForm
  • Registered the SectionAdmin to display the widget in the admin view
Comments suppressed due to low confidence (1)

app/cms/admin.py:6

  • [nitpick] Consider extracting the inline CSS and HTML template from _CODE_PREVIEW_TEMPLATE into a separate static file to improve maintainability and ensure a clearer separation of concerns.
_CODE_PREVIEW_TEMPLATE = """

@JaeHyuckSa JaeHyuckSa merged commit 8724127 into main May 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants