Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor/style] 게시판 리팩토링 및 적응형 UI 수정 #456

Merged
merged 41 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
ea5923a
[refactor] 게시판 리팩토링 작업 진행 중 #429
whitedot Feb 1, 2024
f80d3ec
[refactor] basic 게시판 쓰기 리팩토링 #429
whitedot Feb 1, 2024
a310c92
[refactor] basic 게시판 읽기 리팩토링 #429
whitedot Feb 5, 2024
c92f481
Merge branch 'front-boardstyle' of https://github.com/gnuboard/g6 int…
whitedot Feb 6, 2024
7a9cc73
[style] ckeditor 사용 게시판에서 읽기 > 본문 여백 스타일 조정 #354
whitedot Feb 6, 2024
1146d62
[style] 게시판 읽기에서 본문/댓글 버튼 더보기 영역 스타일 공통화 #429
whitedot Feb 6, 2024
f3599ed
[refactor] basic 게시판 목록 리팩토링 #429
whitedot Feb 6, 2024
aebd825
[refactor] Q&A (1:1문의) 목록 리팩토링 #429
whitedot Feb 6, 2024
2a2fefa
[refactor] Q&A (1:1문의) 글쓰기 리팩토링 #429
whitedot Feb 7, 2024
892f23c
[refactor] Q&A (1:1문의) 읽기 리팩토링 #429
whitedot Feb 7, 2024
74fd295
[refactor] basic 게시판, Q&A (1:1문의) 읽기 일부 리팩토링 #429
whitedot Feb 8, 2024
b8d3074
[fix] basic 게시판 읽기에서 추천/비추천 DOM 생성 조건 추가 #429
whitedot Feb 8, 2024
6948931
[fix] basic 게시판 읽기에서 첨부파일다운로드 DOM 생성 조건 추가 #429
whitedot Feb 8, 2024
b23fa00
[fix] CSS 변수명 수정 --main_color > --primaryColor
whitedot Feb 8, 2024
541a86c
[remove] 사용하지 않는 이미지 삭제 #448
whitedot Feb 8, 2024
e75e9f0
[style] basic 게시판 읽기에서 회원 사이드뷰 UI 수정 #429
whitedot Feb 8, 2024
8f9b7da
[style/remove] 게시판 SNS 공유 관련 스타일시트 삭제 #429
whitedot Feb 8, 2024
fcf6627
[style/remove] 게시판 첨부파일 관련 스타일시트 삭제 #429
whitedot Feb 8, 2024
0d593e7
[fix] basic 게시판 읽기에서 댓글 관련 코드 일부 수정 #429
whitedot Feb 8, 2024
d1728fb
[fix/remove] 게시판 대댓글 아이콘 표시 #429 및 사용하지 않는 이미지 삭제 #448
whitedot Feb 8, 2024
d90059b
[style/remove] zoom:1 삭제 #433
whitedot Feb 8, 2024
0c3a5fc
[style/remove] zoom:1 삭제 #433 게시판 SNS 공유 스타일시트 삭제 #429
whitedot Feb 8, 2024
1f8cc25
[style/remove] zoom:1 삭제 #433
whitedot Feb 13, 2024
82af08a
[refactor] gallery 게시판 쓰기 리팩토링 #429
whitedot Feb 13, 2024
76da01b
[fix] basic 게시판 쓰기에서 옵션 제공되지 않을 때 div 랜더링하지 않도록 처리 #429
whitedot Feb 13, 2024
14220d8
[fix] 게시판 쓰기 옵션 div 랜더링 조건 변경 #429
whitedot Feb 13, 2024
fe9af4c
[fix] 게시판 쓰기 옵션 div 랜더링 조건 변경 추가 처리 #429
whitedot Feb 13, 2024
586d144
[fix] 게시판 쓰기 옵션 div 랜더링 조건 추가 처리 (비밀글) #429
whitedot Feb 13, 2024
9276c25
[refactor] galler 게시판 읽기 #429
whitedot Feb 13, 2024
b6a4307
Merge branch 'master' into front
whitedot Feb 13, 2024
8dbf89a
[fix] master > front > front-boardstyle 충돌 처리
whitedot Feb 13, 2024
eaf14af
[fix] 게시판 읽기에서 이전글 다음글 요소 랜더링 조건 추가 #429
whitedot Feb 13, 2024
db14bd3
[refactor/remove] basic 게시판 사용하지 않는 요소 제거 #429
whitedot Feb 13, 2024
219e9dc
[refactor] #429 gallery 게시판 목록 리팩토링
whitedot Feb 14, 2024
67827b4
[remove] #452 gallery 목록에서 본문 내용 일부 보여주는 부분 제거
whitedot Feb 14, 2024
bd86cef
Merge branch 'master' into front
whitedot Feb 14, 2024
858d795
Merge branch 'front' into front-boardstyle
whitedot Feb 14, 2024
c4ce071
[refact] 게시판 > 갤러리 목록 페이지 > 썸네일 기본 이미지 추가
KimTom89 Feb 14, 2024
7860787
[fix] #429 gallery 게시판 목록에서 선택복사/이동/삭제 버튼 안 뜨던 오류 수정 및 thumbnail 클래스 제거
whitedot Feb 14, 2024
da3242d
[refactor/style] #429 적응형 모바일 UI/디자인 변경 및 게시판 리팩토링 스타일 적용
whitedot Feb 16, 2024
a106823
[fix] master > front > front-boardstyle 충돌 처리
whitedot Feb 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lib/board_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,12 @@ def get_list_thumbnail(request: Request, board: Board, write: WriteBaseModel, th

# 섬네일 생성
if source_file:
src = thumbnail(source_file, width=thumb_width, height=thumb_height, **kwargs)
if src:
result["src"] = src
result["src"] = thumbnail(source_file, width=thumb_width, height=thumb_height, **kwargs)
# 이미지가 없을 때
else:
result["src"] = thumbnail("./static/img/dummy-donotremove.png",
target_path="./data/thumbnail_tmp",
width=thumb_width, height=thumb_height, **kwargs)

return result

Expand Down
4 changes: 2 additions & 2 deletions lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,11 +1039,11 @@ def thumbnail(source_file: str, target_path: str = None, width: int = 200, heigh

except UnidentifiedImageError as e:
print("원본 이미지 객체 생성 실패 : ", e)
return False
return ""

except Exception as e:
print("섬네일 생성 실패 : ", e)
return False
return ""


def get_editor_image(contents: str, view: bool = True) -> list:
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/templates/ckeditor4/body.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="write_div">
<div class="write_editor">
<div class="content ckeditor">
<textarea id="{{ tag_name }}" name="{{ tag_name }}" class="ckeditor-textarea" maxlength="65536" style="height: 0px;">
{{ content }}
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/templates/ckeditor4/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{%- endmacro %}

{% macro body(tag_name, content="") -%}
<div class="write_div">
<div class="write_editor">
<div class="content ckeditor">
<textarea id="{{ tag_name }}" name="{{ tag_name }}" class="ckeditor-textarea" maxlength="65536" style="height: 0px;">
{{- content -}}
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/templates/textarea/body.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="write_div">
<div class="write_editor">
<div class="editor-wrapper">
<div id="normal_editor" name='normal_editor'></div>
<textarea id="{{ tag_name }}" name="{{ tag_name }}" class="editor-textarea" maxlength="65536" style="min-width: 100%">
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/templates/textarea/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{%- endmacro %}

{% macro body(tag_name, content="") -%}
<div class="write_div">
<div class="write_editor">
<div class="editor-wrapper">
<div id="normal_editor" name='normal_editor'></div>
<textarea id="{{ tag_name }}" name="{{ tag_name }}" class="editor-textarea" maxlength="65536" style="min-width: 100%">
Expand Down
Binary file removed static/img/btn_cmt.png
Binary file not shown.
Binary file removed static/img/btn_idx_right.png
Binary file not shown.
Binary file removed static/img/btn_search.jpg
Binary file not shown.
Binary file removed static/img/btn_top.gif
Binary file not shown.
Binary file removed static/img/bullet.gif
Binary file not shown.
Binary file removed static/img/captcha.png
Binary file not shown.
Binary file removed static/img/close_btn.gif
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/ft.png
Binary file not shown.
Binary file removed static/img/ft_logo.png
Binary file not shown.
Binary file removed static/img/gnb_bg.gif
Binary file not shown.
Binary file removed static/img/gnb_bg00.gif
Binary file not shown.
Binary file removed static/img/gnb_bg01.gif
Binary file not shown.
Binary file removed static/img/ico-default-naverpay.png
Binary file not shown.
Binary file removed static/img/ico-mobile-applepay.png
Binary file not shown.
Binary file removed static/img/ico-mobile-kakaopay.png
Binary file not shown.
Binary file removed static/img/ico-mobile-naverpay.png
Binary file not shown.
Binary file removed static/img/icon_reply.gif
Binary file not shown.
Binary file removed static/img/icon_secret.gif
Binary file not shown.
Binary file removed static/img/kakao.png
Binary file not shown.
Binary file removed static/img/kpay.png
Binary file not shown.
Binary file removed static/img/logo_new.png
Binary file not shown.
Binary file removed static/img/logo_red.png
Binary file not shown.
Binary file removed static/img/logo_white.png
Binary file not shown.
Binary file removed static/img/lpay_logo.png
Binary file not shown.
Binary file removed static/img/m_logo.png
Diff not rendered.
Binary file removed static/img/mobile/btn_close.png
Diff not rendered.
Binary file removed static/img/mobile/gnb_sch.png
Diff not rendered.
Binary file removed static/img/mobile/icon_menu.png
Diff not rendered.
Binary file removed static/img/mobile/icon_my.png
Diff not rendered.
Binary file removed static/img/more-btn.gif
Diff not rendered.
Binary file removed static/img/pay_icon1.png
Diff not rendered.
Binary file removed static/img/pay_icon2.png
Diff not rendered.
Binary file removed static/img/pay_icon3.png
Diff not rendered.
Binary file removed static/img/pay_icon4.png
Diff not rendered.
Binary file removed static/img/payco.png
Diff not rendered.
Binary file removed static/img/payco_logo.png
Diff not rendered.
Binary file removed static/img/samsungpay.png
Diff not rendered.
Binary file removed static/img/sch_btn.png
Diff not rendered.
Binary file removed static/img/tnb_shop.jpg
Diff not rendered.
Binary file removed static/img/ts01.gif
Diff not rendered.
Binary file removed static/img/ts02.gif
Diff not rendered.
Binary file removed static/img/ts03.gif
Diff not rendered.
4 changes: 2 additions & 2 deletions static/js/autosave.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $(function () {
}
const autosavePop = $("#autosave_pop");
// 임시저장된 글목록을 가져옴
$("#btn_autosave").click(function () {
$("#btn_autosave_list").click(function () {
if (autosavePop.is(":hidden")) {
$.ajax(g6_bbs_url + "/ajax/autosave_list", {
headers: {
Expand Down Expand Up @@ -125,7 +125,7 @@ $(function () {
});
});

$(".autosave_close").click(function () {
$("#autosave_close").click(function () {
$("#autosave_pop").hide();
});
});
Loading