From 5b8b560eb6f9c7a971eadff9d701d5e0c134ff38 Mon Sep 17 00:00:00 2001 From: InJun2 Date: Mon, 11 Dec 2023 22:45:24 +0900 Subject: [PATCH] =?UTF-8?q?:art:=20https=20url=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/assets/js/main.js | 10 +++---- .../resources/static/js/member/ajax-error.js | 4 +-- src/main/resources/static/js/member/login.js | 6 ++-- .../resources/static/js/member/member-edit.js | 8 ++--- .../resources/static/js/member/sign-up.js | 8 ++--- .../resources/static/js/post/create-post.js | 16 +++++----- .../resources/static/js/post/update-post.js | 10 +++---- .../resources/static/js/post/view-post.js | 30 +++++++++---------- .../sample/photo_uploader/attach_photo.js | 6 ++-- .../resources/templates/board/board_list.html | 4 +-- .../resources/templates/fragments/header.html | 8 ++--- .../templates/fragments/member-header.html | 10 +++---- src/main/resources/templates/index.html | 4 +-- .../resources/templates/member/login.html | 2 +- 14 files changed, 63 insertions(+), 63 deletions(-) diff --git a/src/main/resources/static/assets/js/main.js b/src/main/resources/static/assets/js/main.js index 93c8c9e..f9c14e8 100644 --- a/src/main/resources/static/assets/js/main.js +++ b/src/main/resources/static/assets/js/main.js @@ -7,10 +7,10 @@ function handleCommonError(response) { if (response.status === 401) { alert("[ " + response.status + " ] " + JSON.parse(response.responseText).message); window.localStorage.clear(); - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { alert("[ " + response.status + " ] " + JSON.parse(response.responseText).message); - location.href = "http://www.se-community.net/boards"; + location.href = "https://www.se-community.net/boards"; } } @@ -134,7 +134,7 @@ $(document).ready(function() { } $.ajax({ - url: 'http://www.se-community.net/api/v1/boards/category', + url: 'https://www.se-community.net/api/v1/boards/category', method: 'GET', contentType: 'application/json', success: function (result) { @@ -144,14 +144,14 @@ $(document).ready(function() { result.data.forEach(function (item) { const li = document.createElement('li'); const a = document.createElement('a'); - a.setAttribute('href', 'http://www.se-community.net/boards/' + item.id); + a.setAttribute('href', 'https://www.se-community.net/boards/' + item.id); a.textContent = item.name; li.append(a); ul.append(li); const li2 = document.createElement('li'); const a2 = document.createElement('a'); - a2.setAttribute('href', 'http://www.se-community.net/boards/' + item.id); + a2.setAttribute('href', 'https://www.se-community.net/boards/' + item.id); const h3 = document.createElement('h3'); h3.textContent = item.name; const p = document.createElement('p'); diff --git a/src/main/resources/static/js/member/ajax-error.js b/src/main/resources/static/js/member/ajax-error.js index 40ef457..118ae46 100644 --- a/src/main/resources/static/js/member/ajax-error.js +++ b/src/main/resources/static/js/member/ajax-error.js @@ -2,9 +2,9 @@ function handleCommonError(response) { if (response.status === 401) { alert("[ " + response.status + " ] " + JSON.parse(response.responseText).message); window.localStorage.clear(); - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { alert("[ " + response.status + " ] " + JSON.parse(response.responseText).message); - location.href = "http://www.se-community.net/boards"; + location.href = "https://www.se-community.net/boards"; } } \ No newline at end of file diff --git a/src/main/resources/static/js/member/login.js b/src/main/resources/static/js/member/login.js index 5e33edf..635cce8 100644 --- a/src/main/resources/static/js/member/login.js +++ b/src/main/resources/static/js/member/login.js @@ -1,7 +1,7 @@ document.addEventListener("DOMContentLoaded", function() { if (window.localStorage.getItem('X-SELAB-AUTH-TOKEN') != null) { alert('유저 정보가 이미 존재합니다.'); - location.href = "http://www.se-community.net/home"; + location.href = "https://www.se-community.net/home"; } }); @@ -12,14 +12,14 @@ function login_submit() { }); $.ajax({ - url: "http://www.se-community.net/api/v1/auth/login", + url: "https://www.se-community.net/api/v1/auth/login", data: data, contentType: 'application/json', type: "POST", success: function(result) { alert("로그인 성공!"); window.localStorage.setItem("X-SELAB-AUTH-TOKEN", result.data); - location.href = "http://www.se-community.net/boards"; + location.href = "https://www.se-community.net/boards"; }, error: function(response){ if(response.status === 400) { diff --git a/src/main/resources/static/js/member/member-edit.js b/src/main/resources/static/js/member/member-edit.js index 87706a9..555950b 100644 --- a/src/main/resources/static/js/member/member-edit.js +++ b/src/main/resources/static/js/member/member-edit.js @@ -84,14 +84,14 @@ function edit_submit() { }); $.ajax({ - url: "http://www.se-community.net/api/v1/members/edit", + url: "https://www.se-community.net/api/v1/members/edit", data: data, headers : requestHeaders, type: "PATCH", success: function() { alert("회원 정보 변경 성공 ! 다시 로그인을 진행해주세요"); window.localStorage.clear(); - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; }, error: function(response){ alert("code = "+ request.status + "\nmessage = " + request.responseText); @@ -106,12 +106,12 @@ function edit_submit() { document.addEventListener("DOMContentLoaded", function() { if(window.localStorage.getItem('X-SELAB-AUTH-TOKEN') == null) { alert('유저 토큰이 존재하지 않습니다'); - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; return; } $.ajax({ - url: 'http://www.se-community.net/api/v1/auth/info', + url: 'https://www.se-community.net/api/v1/auth/info', method: 'GET', headers : requestHeaders, success: function(result) { diff --git a/src/main/resources/static/js/member/sign-up.js b/src/main/resources/static/js/member/sign-up.js index 8898bfa..5791bf8 100644 --- a/src/main/resources/static/js/member/sign-up.js +++ b/src/main/resources/static/js/member/sign-up.js @@ -38,7 +38,7 @@ function email_duplication_check() { } $.ajax({ - url: "http://www.se-community.net/api/v1/members/email-check?email=" + email.val(), + url: "https://www.se-community.net/api/v1/members/email-check?email=" + email.val(), type: "GET", success: function() { alert("중복되지 않은 이메일입니다."); @@ -116,7 +116,7 @@ const maxLength = (e) =>{ document.addEventListener("DOMContentLoaded", function() { if (window.localStorage.getItem('X-SELAB-AUTH-TOKEN') != null) { alert('유저 정보가 이미 존재합니다.'); - location.href = "http://www.se-community.net/home"; + location.href = "https://www.se-community.net/home"; return; } @@ -153,13 +153,13 @@ function sign_up_submit() { }); $.ajax({ - url: "http://www.se-community.net/api/v1/members/signup", + url: "https://www.se-community.net/api/v1/members/signup", data: data, contentType: 'application/json', type: "POST", success: function() { alert("회원 가입 성공 !"); - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; }, error: function(response){ alert("[ " + response.status + " ] " + JSON.parse(response.responseText).message); diff --git a/src/main/resources/static/js/post/create-post.js b/src/main/resources/static/js/post/create-post.js index 595849e..2db5d5f 100644 --- a/src/main/resources/static/js/post/create-post.js +++ b/src/main/resources/static/js/post/create-post.js @@ -4,7 +4,7 @@ document.addEventListener('DOMContentLoaded', function () { if (authToken === null) { alert('유저 토큰이 존재하지 않습니다'); // 여기에 로컬 스토리지 토큰 삭제 추가 - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { // 요청 헤더에 토큰 추가 var requestHeaders = { @@ -16,7 +16,7 @@ document.addEventListener('DOMContentLoaded', function () { console.log(contestPath) $.ajax({ - url: 'http://www.se-community.net/api/v1/posts/' + contestPath, + url: 'https://www.se-community.net/api/v1/posts/' + contestPath, type: 'GET', headers: { 'X-SELAB-AUTH-TOKEN': authToken @@ -35,7 +35,7 @@ document.addEventListener('DOMContentLoaded', function () { }); $.ajax({ - url: 'http://www.se-community.net/api/v1/auth/info', + url: 'https://www.se-community.net/api/v1/auth/info', method: 'GET', headers : { 'X-SELAB-AUTH-TOKEN': authToken @@ -47,11 +47,11 @@ document.addEventListener('DOMContentLoaded', function () { if (response.status === 401) { alert('유저 토큰이 만료되었거나 잘못되었습니다. 다시 로그인을 진행해주세요'); window.localStorage.clear(); - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { alert('유저 토큰 정보를 불러오는데 실패하였습니다. 다시 로그인을 진행해주세요.'); window.localStorage.clear(); - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } } }); @@ -64,7 +64,7 @@ function create_post_submit() { if (authToken === null) { alert('유저 토큰이 존재하지 않습니다'); // 여기에 로컬 스토리지 토큰 삭제 추가 - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { oEditors.getById["editorTxt"].exec("UPDATE_CONTENTS_FIELD", []) let content = document.getElementById("editorTxt").value @@ -88,7 +88,7 @@ function create_post_submit() { const urlParams = new URLSearchParams("?boardId=" + postType.options[postType.selectedIndex].value) console.log(postType.options[postType.selectedIndex].value); $.ajax({ - url: "http://www.se-community.net/api/v1/posts?"+urlParams, + url: "https://www.se-community.net/api/v1/posts?"+urlParams, data: data, headers: { 'Content-Type': 'application/json', @@ -96,7 +96,7 @@ function create_post_submit() { }, type: "POST", success: function () { - location.href = "http://www.se-community.net/boards"; + location.href = "https://www.se-community.net/boards"; }, error: function(response) { diff --git a/src/main/resources/static/js/post/update-post.js b/src/main/resources/static/js/post/update-post.js index 2d6cdc4..b633089 100644 --- a/src/main/resources/static/js/post/update-post.js +++ b/src/main/resources/static/js/post/update-post.js @@ -3,7 +3,7 @@ document.addEventListener("DOMContentLoaded", function() { if(window.localStorage.getItem('X-SELAB-AUTH-TOKEN') == null) { alert('유저 토큰이 존재하지 않습니다'); // 여기에 로컬 스토리지 토큰 삭제 추가 - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } const pathArray = window.location.pathname.split("/"); @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function() { console.log(contestPath) $.ajax({ - url: 'http://www.se-community.net/api/v1/posts/'+ contestPath, + url: 'https://www.se-community.net/api/v1/posts/'+ contestPath, method: 'GET', headers :{ 'X-SELAB-AUTH-TOKEN': authToken @@ -33,7 +33,7 @@ function update_post_submit() { if (authToken === null) { alert('유저 토큰이 존재하지 않습니다'); // 여기에 로컬 스토리지 토큰 삭제 추가 - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { oEditors.getById["editorTxt"].exec("UPDATE_CONTENTS_FIELD", []) let content = document.getElementById("editorTxt").value @@ -54,7 +54,7 @@ function update_post_submit() { const pathArray = window.location.pathname.split("/"); const contestPath = pathArray[2]; $.ajax({ - url: "http://www.se-community.net/api/v1/posts/"+contestPath, + url: "https://www.se-community.net/api/v1/posts/"+contestPath, data: data, headers: { 'Content-Type': 'application/json', @@ -62,7 +62,7 @@ function update_post_submit() { }, type: "PATCH", success: function () { - location.href = "http://www.se-community.net/viewPost/"+contestPath; + location.href = "https://www.se-community.net/viewPost/"+contestPath; }, error: function(response) { diff --git a/src/main/resources/static/js/post/view-post.js b/src/main/resources/static/js/post/view-post.js index 9ff78eb..16f17aa 100644 --- a/src/main/resources/static/js/post/view-post.js +++ b/src/main/resources/static/js/post/view-post.js @@ -4,7 +4,7 @@ document.addEventListener('DOMContentLoaded', function () { if (authToken === null) { alert('유저 토큰이 존재하지 않습니다'); // 여기에 로컬 스토리지 토큰 삭제 추가 - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { // 요청 헤더에 토큰 추가 var requestHeaders = { @@ -16,7 +16,7 @@ document.addEventListener('DOMContentLoaded', function () { console.log(contestPath) $.ajax({ - url: 'http://www.se-community.net/api/v1/posts/' + contestPath, + url: 'https://www.se-community.net/api/v1/posts/' + contestPath, type: 'GET', headers: { 'X-SELAB-AUTH-TOKEN': authToken @@ -35,7 +35,7 @@ document.addEventListener('DOMContentLoaded', function () { }); $.ajax({ - url: 'http://www.se-community.net/api/v1/auth/info', + url: 'https://www.se-community.net/api/v1/auth/info', method: 'GET', headers : { 'X-SELAB-AUTH-TOKEN': authToken @@ -47,18 +47,18 @@ document.addEventListener('DOMContentLoaded', function () { if (response.status === 401) { alert('유저 토큰이 만료되었거나 잘못되었습니다. 다시 로그인을 진행해주세요'); window.localStorage.clear(); - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { alert('유저 토큰 정보를 불러오는데 실패하였습니다. 다시 로그인을 진행해주세요.'); window.localStorage.clear(); - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } } }); const urlParams = new URLSearchParams("?postId=" + contestPath) $.ajax({ - url: 'http://www.se-community.net/api/v1/comments?' + urlParams, + url: 'https://www.se-community.net/api/v1/comments?' + urlParams, type: 'GET', headers: { 'X-SELAB-AUTH-TOKEN': authToken @@ -110,7 +110,7 @@ function create_comment_submit() { }) $.ajax({ - url: "http://www.se-community.net/api/v1/comments", + url: "https://www.se-community.net/api/v1/comments", data: data, headers: { 'Content-Type': 'application/json', @@ -118,7 +118,7 @@ function create_comment_submit() { }, type: "POST", success: function () { - location.href = "http://www.se-community.net/viewPost/" + contestPath; + location.href = "https://www.se-community.net/viewPost/" + contestPath; }, error: function(response) { handleCommonError(response); @@ -132,7 +132,7 @@ function create_post_submit() { if (authToken === null) { alert('유저 토큰이 존재하지 않습니다'); // 여기에 로컬 스토리지 토큰 삭제 추가 - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { oEditors.getById["editorTxt"].exec("UPDATE_CONTENTS_FIELD", []) let content = document.getElementById("editorTxt").value @@ -156,7 +156,7 @@ function create_post_submit() { const urlParams = new URLSearchParams("?boardId=" + postType.options[postType.selectedIndex].value) console.log(postType.options[postType.selectedIndex].value); $.ajax({ - url: "http://www.se-community.net/api/v1/posts?"+urlParams, + url: "https://www.se-community.net/api/v1/posts?"+urlParams, data: data, headers: { 'Content-Type': 'application/json', @@ -164,7 +164,7 @@ function create_post_submit() { }, type: "POST", success: function () { - location.href = "http://www.se-community.net/boards"; + location.href = "https://www.se-community.net/boards"; }, error: function(response) { @@ -178,7 +178,7 @@ function updateButton() { const pathArray = window.location.pathname.split("/"); const contestPath = pathArray[2]; console.log(contestPath) - location.href = "http://www.se-community.net/updatePost/" + contestPath; + location.href = "https://www.se-community.net/updatePost/" + contestPath; } @@ -189,7 +189,7 @@ function deleteButton() { if (authToken === null) { alert('유저 토큰이 존재하지 않습니다'); // 여기에 로컬 스토리지 토큰 삭제 추가 - location.href = "http://www.se-community.net/login"; + location.href = "https://www.se-community.net/login"; } else { // 요청 헤더에 토큰 추가 var requestHeaders = { @@ -201,13 +201,13 @@ function deleteButton() { console.log(contestPath) $.ajax({ - url: 'http://www.se-community.net/api/v1/posts/' + contestPath, + url: 'https://www.se-community.net/api/v1/posts/' + contestPath, type: 'DELETE', headers: { 'X-SELAB-AUTH-TOKEN': authToken }, success: function () { - location.href = "http://www.se-community.net/boards"; + location.href = "https://www.se-community.net/boards"; }, error: function(response) { handleCommonError(response); diff --git a/src/main/resources/static/smarteditor/sample/photo_uploader/attach_photo.js b/src/main/resources/static/smarteditor/sample/photo_uploader/attach_photo.js index 5bd6d70..91d4c66 100644 --- a/src/main/resources/static/smarteditor/sample/photo_uploader/attach_photo.js +++ b/src/main/resources/static/smarteditor/sample/photo_uploader/attach_photo.js @@ -333,7 +333,7 @@ function html5Upload() { var tempFile, sUploadURL; - sUploadURL = 'http://www.se-community.net/images'; //upload URL + sUploadURL = 'https://www.se-community.net/images'; //upload URL //파일을 하나씩 보내고, 결과를 받음. for(var j=0, k=0; j < nImageInfoCnt; j++) { @@ -484,7 +484,7 @@ fdata.append("callback", imgFile.sCallback) jQuery3_4_1.ajax({ - url: "http://www.se-community.net/images" + url: "https://www.se-community.net/images" , data: fdata , method: "post" , enctype: "multipart/formdata; charset=utf-8" @@ -519,7 +519,7 @@ */ function callFileUploader (){ oFileUploader = new jindo.FileUploader(jindo.$("uploadInputBox"),{ - sUrl : 'http://www.se-community.net/images', //샘플 URL입니다. + sUrl : 'https://www.se-community.net/images', //샘플 URL입니다. sCallback : '/smarteditor2/sample/photo_uploader/callback.html', //업로드 이후에 iframe이 redirect될 콜백페이지의 주소 sFiletype : "*.jpg;*.png;*.bmp;*.gif", //허용할 파일의 형식. ex) "*", "*.*", "*.jpg", 구분자(;) sMsgNotAllowedExt : 'JPG, GIF, PNG, BMP 확장자만 가능합니다', //허용할 파일의 형식이 아닌경우에 띄워주는 경고창의 문구 diff --git a/src/main/resources/templates/board/board_list.html b/src/main/resources/templates/board/board_list.html index c6f2d64..010812e 100644 --- a/src/main/resources/templates/board/board_list.html +++ b/src/main/resources/templates/board/board_list.html @@ -73,10 +73,10 @@

[[${post.getTitle()}]
- +

SE COMMUNITY NOTICE

-

HANSHIN UNIVERSITY SOFTWARE ENGINEERING LABORATORY NOTICE

+

HANSHIN UNIVERSITY SOFTWARE ENGINEERING LABORATORY NOTICE

diff --git a/src/main/resources/templates/fragments/header.html b/src/main/resources/templates/fragments/header.html index ae2e926..e7c0869 100644 --- a/src/main/resources/templates/fragments/header.html +++ b/src/main/resources/templates/fragments/header.html @@ -2,7 +2,7 @@