Skip to content

Commit

Permalink
- bookmark 기능 구현중 .. 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-creative committed Oct 18, 2023
1 parent 0454f8d commit 40011b0
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 16 deletions.
26 changes: 13 additions & 13 deletions src/main/java/com/sjs/jsvill/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ protected void configure(HttpSecurity http) throws Exception {


//antMatchers -> 요게 리소스에 들어가기 보다는 컨트롤러 mapping 할 때 걸리는걸 말하는듯?
http.authorizeRequests()
.antMatchers("/login", "/member/login", "/member/signUpNew", "/member/signUpOld", "/member/signUpAuth", "/member/signUpForm", "/member/signUpPinOld").permitAll()
.anyRequest().authenticated(); //anyRequest는 antMatchers로 지정한 url 이외의 모든 url을 지정하는 메소드, else같은 느낌임

http.formLogin()
.loginPage("/member/login") //불러올 로그인 페이지
.usernameParameter("phoneNumber")
.passwordParameter("pinNumber")
.defaultSuccessUrl("/home"); //로그인 성공 시 보낼 페이지

http.logout() //로그아웃 했을 때 지정해놓은 페이지 볼 수 있음
.logoutSuccessUrl("/member/login")
.invalidateHttpSession(true);
// http.authorizeRequests()
// .antMatchers("/login", "/member/login", "/member/signUpNew", "/member/signUpOld", "/member/signUpAuth", "/member/signUpForm", "/member/signUpPinOld").permitAll()
// .anyRequest().authenticated(); //anyRequest는 antMatchers로 지정한 url 이외의 모든 url을 지정하는 메소드, else같은 느낌임
//
// http.formLogin()
// .loginPage("/member/login") //불러올 로그인 페이지
// .usernameParameter("phoneNumber")
// .passwordParameter("pinNumber")
// .defaultSuccessUrl("/home"); //로그인 성공 시 보낼 페이지
//
// http.logout() //로그아웃 했을 때 지정해놓은 페이지 볼 수 있음
// .logoutSuccessUrl("/member/login")
// .invalidateHttpSession(true);
}

@Override
Expand Down
17 changes: 17 additions & 0 deletions src/main/resources/static/css/photo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.content {width:712px !important}
.content .pageTitle {color:#1dc078;font-weight:bold;font-size:20px}
.content input {border:none;height:30px}
.content input:focus {outline:none}
.content .input-container input {border:none;box-sizing:border-box;outline:0;padding:.75rem;position:relative;width:100%}
.content .info {position:relative;margin-top:40px;border:2px solid gray;padding:27px 18px 18px 18px;border-radius:8px}
.content .info .subTitle {position:absolute;padding:0 15px;top:-7px;background-color:white;font-size:16px;font-weight:bold}
.content textarea {width:81.5%;height:50px;border:none;background-color:#f6f6f6}
.content .cancelBtn {padding:6px 20px;border:1px solid lightgray;font-size:14px;font-weight:bold;color:gray;background-color:white}
.content .cancelBtn:active{color:black}
.content .registerBtn {padding:6px 20px;border:1px solid rgb(29, 192, 120);font-size:14px;color:white;background-color:rgb(29, 192, 120);margin-left:7px;font-weight:bold}


.contractType {
display:flex;align-items:center;margin-top:10px
}
.contractType>input:not(:first-child) {margin-left:30px}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions src/main/resources/templates/photo/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>사진 등록</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/registerContract.css"/>
<link rel="stylesheet" href="/css/photo.css"/>
<link rel="stylesheet" href="/css/common.css"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<style>
Expand All @@ -14,7 +14,7 @@
<body>

<th:block th:replace="~{layouts/includeNavLayout :: setContent(~{this::content})}">
<th:block th:fragment="content">
<th:block th:fragment="content" style="712px !important">
<div class="pageTitle">건물관리 / [[${data.groupTitle}]] / [[${data.unitTitle}]] / 사진 등록</div>
<form id="form" action="/photo/register" method="post" enctype="multipart/form-data">
<input type="hidden" name="contractRowid" th:value="${data.contractRowid}">
Expand All @@ -30,8 +30,12 @@
<div th:if="${#lists.size(data.photoDTOList)}==0" style="font-weight:bold;padding:5px 0;height:fit-content;font-size:14px">기존 사진이 없습니다.</div>
<div style="font-weight:bold;padding:5px 0;height:fit-content" th:unless="${#lists.size(data.photoDTOList)}==0" th:text="${#lists.size(data.photoDTOList)} + '개의 사진'"></div>
<a th:each="photoDTO:${data.photoDTOList}" th:href="${photoDTO.getFileKey}" target="_blank">
<img th:src="${photoDTO.getFileKey}" alt="photo" width="200px" height="200px" style="padding:10px">
<div style="display:inline-block;position:relative">
<img th:src="${photoDTO.getFileKey}" alt="photo" width="200px" height="200px" style="padding:10px">
<img src="/image/photo/empty-bookmark.png" alt="bookmark" width="20" style="position:absolute;top:9px;right:6px;width:50px">
</div>
</a>

</div>

<div style="margin:30px 0 40px 0;float:right">
Expand Down

1 comment on commit 40011b0

@Sean-creative
Copy link
Owner Author

@Sean-creative Sean-creative commented on 40011b0 Oct 19, 2023

Choose a reason for hiding this comment

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

bookmark 기능 구현중 .. 1 #2

Please sign in to comment.