...
This commit is contained in:
parent
4dfc39751b
commit
182ea90dd3
@ -50,6 +50,9 @@ class BumsInterceptor : HandlerInterceptor {
|
|||||||
// if(remeberMe && authResult != null) {
|
// if(remeberMe && authResult != null) {
|
||||||
// rememberMeServices.loginSuccess(httpServletRequest, responce, authResult)
|
// rememberMeServices.loginSuccess(httpServletRequest, responce, authResult)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
modelAndView?.modelMap?.put(EncTypeKey, EncType11)
|
||||||
|
modelAndView?.modelMap?.put(ApiKeyWordKey,"Def")
|
||||||
super.postHandle(request, response, handler, modelAndView)
|
super.postHandle(request, response, handler, modelAndView)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -44,6 +44,7 @@ class SecurityConfig(
|
|||||||
.requestMatchers(
|
.requestMatchers(
|
||||||
"/", "/home.bs",
|
"/", "/home.bs",
|
||||||
"/bums/where.bs" ,
|
"/bums/where.bs" ,
|
||||||
|
"/tlg/repotToMe.bjx",
|
||||||
"/user/login.bs", "/user/signup.bs","/user/login.bjx",
|
"/user/login.bs", "/user/signup.bs","/user/login.bjx",
|
||||||
"/blog/viewer/**" , "/blog/posts" , "/blog/rankOfViews.bjx","/blog/recentOfPost.bjx",
|
"/blog/viewer/**" , "/blog/posts" , "/blog/rankOfViews.bjx","/blog/recentOfPost.bjx",
|
||||||
"/css/**", "/js/**", "/images/**", "/webjars/**", "/assets/**").permitAll()
|
"/css/**", "/js/**", "/images/**", "/webjars/**", "/assets/**").permitAll()
|
||||||
|
|||||||
@ -70,6 +70,21 @@ class Telegram {
|
|||||||
val keyworkd = arrayListOf("I0Z","dcBEW", "TGyG", "U=Qu", "Bm=s")
|
val keyworkd = arrayListOf("I0Z","dcBEW", "TGyG", "U=Qu", "Bm=s")
|
||||||
val keyworkd2 = arrayListOf("x-n", "Y_D", "u", "uoo", "dfhZ", "gSKY")
|
val keyworkd2 = arrayListOf("x-n", "Y_D", "u", "uoo", "dfhZ", "gSKY")
|
||||||
|
|
||||||
|
@ResponseBody
|
||||||
|
@PostMapping("repotToMe.bjx")
|
||||||
|
fun repotToMe(@RequestBody jsonString: String): ModelMap {
|
||||||
|
var returnModelMap = ModelMap()
|
||||||
|
val decodedBytes: ByteArray = Base64.getDecoder().decode(jsonString)
|
||||||
|
String(decodedBytes).let {
|
||||||
|
Gson().fromJson<RequestModel>(it, RequestModel::class.java)?.let { model ->
|
||||||
|
Gson().fromJson<ReportModel>(model.data, ReportModel::class.java)?.let { msg ->
|
||||||
|
sendMsg("${msg.name}님이 전송\n${msg.message}\n회신가능 메일${msg.email}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return returnModelMap
|
||||||
|
}
|
||||||
|
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@GetMapping("kesy/{path}")
|
@GetMapping("kesy/{path}")
|
||||||
fun getEncode(@PathVariable path: String): ModelMap {
|
fun getEncode(@PathVariable path: String): ModelMap {
|
||||||
@ -326,7 +341,7 @@ class Telegram {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// fun chatClient(): ChatClient {
|
// fun chatClient(): ChatClient {
|
||||||
// return OllamaChatClient(OllamaApi("https://lama.lunaticbum.kr"))
|
// return OllamaChatClient(OllamaApi("https://lama.lunaticbum.kr"))
|
||||||
// .withDefaultOptions(
|
// .withDefaultOptions(
|
||||||
// OllamaOptions.create()
|
// OllamaOptions.create()
|
||||||
|
|||||||
@ -26,3 +26,11 @@ class RequestModel {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
class ReportModel {
|
||||||
|
var name : String? = null
|
||||||
|
var email : String? = null
|
||||||
|
var message : String? = null
|
||||||
|
}
|
||||||
@ -1,9 +1,13 @@
|
|||||||
|
var enc = null
|
||||||
|
var keyword = null
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
const loginForm = document.getElementById('loginFormElement');
|
const loginForm = document.getElementById('loginFormElement');
|
||||||
loginForm.addEventListener('submit', function(e) {
|
loginForm.addEventListener('submit', function(e) {
|
||||||
e.preventDefault(); // 기본 폼 제출 동작 방지
|
e.preventDefault(); // 기본 폼 제출 동작 방지
|
||||||
submitLoginForm();
|
submitLoginForm();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if (document.querySelector(".rank_of_view")) {
|
if (document.querySelector(".rank_of_view")) {
|
||||||
fetch('blog/rankOfViews.bjx')
|
fetch('blog/rankOfViews.bjx')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
@ -115,11 +119,29 @@ onload = function() {
|
|||||||
// window.sessionStorage.setItem("REFRESH",get_cookie("refresh"))
|
// window.sessionStorage.setItem("REFRESH",get_cookie("refresh"))
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
function sendTlg(form, type,keyword) {
|
||||||
|
console.log(form)
|
||||||
|
let data = {
|
||||||
|
'name': form.querySelector("#name").value,
|
||||||
|
'email': form.querySelector("#email").value,
|
||||||
|
'message': form.querySelector("#message").value,
|
||||||
|
}
|
||||||
|
if (data.name != null && data.email != null && data.message != null && data.message.length > 0) {
|
||||||
|
if(confirm(JSON.stringify(data) + "\n해당 내용으로\n메시지 보내쉴?")) {
|
||||||
|
post(getMainPath()+"/tlg/repotToMe.bjx",type,JSON.stringify(data),keyword, function (resultData) {
|
||||||
|
alert(resultData)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
function get_cookie(name) {
|
function get_cookie(name) {
|
||||||
var value = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
|
var value = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
|
||||||
return value? value[2] : null;
|
return value? value[2] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function divider(key) {
|
function divider(key) {
|
||||||
return merge(padding(),key,padding())
|
return merge(padding(),key,padding())
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,35 +23,35 @@
|
|||||||
<section class="wrapper style1">
|
<section class="wrapper style1">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row gtr-200">
|
<div class="row gtr-200">
|
||||||
<div class="col-3 col-12-narrower">
|
<!-- <div class="col-3 col-12-narrower">-->
|
||||||
<div id="sidebar1">
|
<!-- <div id="sidebar1">-->
|
||||||
<section>
|
<!-- <section>-->
|
||||||
<h3>Just a Subheading</h3>
|
<!-- <h3>Just a Subheading</h3>-->
|
||||||
<p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus.
|
<!-- <p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus.-->
|
||||||
Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat.
|
<!-- Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat.-->
|
||||||
Aliquam luctus et mattis lectus sit amet pulvinar. Nam turpis et nisi etiam.</p>
|
<!-- Aliquam luctus et mattis lectus sit amet pulvinar. Nam turpis et nisi etiam.</p>-->
|
||||||
<footer>
|
<!-- <footer>-->
|
||||||
<a href="#" class="button">Continue Reading</a>
|
<!-- <a href="#" class="button">Continue Reading</a>-->
|
||||||
</footer>
|
<!-- </footer>-->
|
||||||
</section>
|
<!-- </section>-->
|
||||||
|
|
||||||
<section>
|
<!-- <section>-->
|
||||||
<h3>Another Subheading</h3>
|
<!-- <h3>Another Subheading</h3>-->
|
||||||
<ul class="links">
|
<!-- <ul class="links">-->
|
||||||
<li><a href="#">Amet turpis, feugiat sit amet</a></li>
|
<!-- <li><a href="#">Amet turpis, feugiat sit amet</a></li>-->
|
||||||
<li><a href="#">Ornare in hendrerit lectus</a></li>
|
<!-- <li><a href="#">Ornare in hendrerit lectus</a></li>-->
|
||||||
<li><a href="#">Semper mod quis eget dolore</a></li>
|
<!-- <li><a href="#">Semper mod quis eget dolore</a></li>-->
|
||||||
<li><a href="#">Consequat lorem phasellus</a></li>
|
<!-- <li><a href="#">Consequat lorem phasellus</a></li>-->
|
||||||
<li><a href="#">Amet turpis feugiat amet</a></li>
|
<!-- <li><a href="#">Amet turpis feugiat amet</a></li>-->
|
||||||
<li><a href="#">Semper mod quisturpis nisi</a></li>
|
<!-- <li><a href="#">Semper mod quisturpis nisi</a></li>-->
|
||||||
</ul>
|
<!-- </ul>-->
|
||||||
<footer>
|
<!-- <footer>-->
|
||||||
<a href="#" class="button">More Random Links</a>
|
<!-- <a href="#" class="button">More Random Links</a>-->
|
||||||
</footer>
|
<!-- </footer>-->
|
||||||
</section>
|
<!-- </section>-->
|
||||||
|
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="col-6 col-12-narrower imp-narrower">
|
<div class="col-6 col-12-narrower imp-narrower">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<article>
|
<article>
|
||||||
@ -69,36 +69,36 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3 col-12-narrower">
|
<!-- <div class="col-3 col-12-narrower">-->
|
||||||
<div id="sidebar2">
|
<!-- <div id="sidebar2">-->
|
||||||
|
|
||||||
<section>
|
<!-- <section>-->
|
||||||
<h3>Another Subheading</h3>
|
<!-- <h3>Another Subheading</h3>-->
|
||||||
<ul class="links">
|
<!-- <ul class="links">-->
|
||||||
<li><a href="#">Amet turpis, feugiat sit amet</a></li>
|
<!-- <li><a href="#">Amet turpis, feugiat sit amet</a></li>-->
|
||||||
<li><a href="#">Ornare in hendrerit lectus</a></li>
|
<!-- <li><a href="#">Ornare in hendrerit lectus</a></li>-->
|
||||||
<li><a href="#">Semper mod quis eget dolore</a></li>
|
<!-- <li><a href="#">Semper mod quis eget dolore</a></li>-->
|
||||||
<li><a href="#">Consequat lorem phasellus</a></li>
|
<!-- <li><a href="#">Consequat lorem phasellus</a></li>-->
|
||||||
<li><a href="#">Amet turpis feugiat amet</a></li>
|
<!-- <li><a href="#">Amet turpis feugiat amet</a></li>-->
|
||||||
<li><a href="#">Semper mod quisturpis nisi</a></li>
|
<!-- <li><a href="#">Semper mod quisturpis nisi</a></li>-->
|
||||||
</ul>
|
<!-- </ul>-->
|
||||||
<footer>
|
<!-- <footer>-->
|
||||||
<a href="#" class="button">More Random Links</a>
|
<!-- <a href="#" class="button">More Random Links</a>-->
|
||||||
</footer>
|
<!-- </footer>-->
|
||||||
</section>
|
<!-- </section>-->
|
||||||
|
|
||||||
<section>
|
<!-- <section>-->
|
||||||
<h3>Just a Subheading</h3>
|
<!-- <h3>Just a Subheading</h3>-->
|
||||||
<p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus.
|
<!-- <p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus.-->
|
||||||
Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat.
|
<!-- Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat.-->
|
||||||
Aliquam luctus et mattis lectus sit amet pulvinar. Nam turpis et nisi etiam.</p>
|
<!-- Aliquam luctus et mattis lectus sit amet pulvinar. Nam turpis et nisi etiam.</p>-->
|
||||||
<footer>
|
<!-- <footer>-->
|
||||||
<a href="#" class="button">Continue Reading</a>
|
<!-- <a href="#" class="button">Continue Reading</a>-->
|
||||||
</footer>
|
<!-- </footer>-->
|
||||||
</section>
|
<!-- </section>-->
|
||||||
|
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<section class="col-6 col-12-narrower">
|
<section class="col-6 col-12-narrower">
|
||||||
<h3>Get In Touch</h3>
|
<h3>Get In Touch</h3>
|
||||||
<form>
|
<div id="tlg_form" >
|
||||||
<div class="row gtr-50">
|
<div class="row gtr-50">
|
||||||
<div class="col-6 col-12-mobilep">
|
<div class="col-6 col-12-mobilep">
|
||||||
<input type="text" name="name" id="name" placeholder="Name" />
|
<input type="text" name="name" id="name" placeholder="Name" />
|
||||||
@ -43,11 +43,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<ul class="actions">
|
<ul class="actions">
|
||||||
<li><input type="submit" class="button alt" value="Send Message" /></li>
|
<li><input type="submit" class="button alt" value="Send Message" onclick='sendTlg(document.querySelector("#tlg_form"),"[[${enc}]]","[[${keyword}]]")' /></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user