...
This commit is contained in:
parent
4dfc39751b
commit
182ea90dd3
@ -50,6 +50,9 @@ class BumsInterceptor : HandlerInterceptor {
|
||||
// if(remeberMe && authResult != null) {
|
||||
// rememberMeServices.loginSuccess(httpServletRequest, responce, authResult)
|
||||
// }
|
||||
|
||||
modelAndView?.modelMap?.put(EncTypeKey, EncType11)
|
||||
modelAndView?.modelMap?.put(ApiKeyWordKey,"Def")
|
||||
super.postHandle(request, response, handler, modelAndView)
|
||||
}
|
||||
|
||||
|
||||
@ -44,6 +44,7 @@ class SecurityConfig(
|
||||
.requestMatchers(
|
||||
"/", "/home.bs",
|
||||
"/bums/where.bs" ,
|
||||
"/tlg/repotToMe.bjx",
|
||||
"/user/login.bs", "/user/signup.bs","/user/login.bjx",
|
||||
"/blog/viewer/**" , "/blog/posts" , "/blog/rankOfViews.bjx","/blog/recentOfPost.bjx",
|
||||
"/css/**", "/js/**", "/images/**", "/webjars/**", "/assets/**").permitAll()
|
||||
|
||||
@ -70,6 +70,21 @@ class Telegram {
|
||||
val keyworkd = arrayListOf("I0Z","dcBEW", "TGyG", "U=Qu", "Bm=s")
|
||||
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
|
||||
@GetMapping("kesy/{path}")
|
||||
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"))
|
||||
// .withDefaultOptions(
|
||||
// OllamaOptions.create()
|
||||
|
||||
@ -26,3 +26,11 @@ class RequestModel {
|
||||
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() {
|
||||
const loginForm = document.getElementById('loginFormElement');
|
||||
loginForm.addEventListener('submit', function(e) {
|
||||
e.preventDefault(); // 기본 폼 제출 동작 방지
|
||||
submitLoginForm();
|
||||
});
|
||||
|
||||
|
||||
if (document.querySelector(".rank_of_view")) {
|
||||
fetch('blog/rankOfViews.bjx')
|
||||
.then(response => response.json())
|
||||
@ -115,11 +119,29 @@ onload = function() {
|
||||
// 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) {
|
||||
var value = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
|
||||
return value? value[2] : null;
|
||||
}
|
||||
|
||||
function divider(key) {
|
||||
return merge(padding(),key,padding())
|
||||
}
|
||||
|
||||
@ -23,35 +23,35 @@
|
||||
<section class="wrapper style1">
|
||||
<div class="container">
|
||||
<div class="row gtr-200">
|
||||
<div class="col-3 col-12-narrower">
|
||||
<div id="sidebar1">
|
||||
<section>
|
||||
<h3>Just a Subheading</h3>
|
||||
<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.
|
||||
Aliquam luctus et mattis lectus sit amet pulvinar. Nam turpis et nisi etiam.</p>
|
||||
<footer>
|
||||
<a href="#" class="button">Continue Reading</a>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- <div class="col-3 col-12-narrower">-->
|
||||
<!-- <div id="sidebar1">-->
|
||||
<!-- <section>-->
|
||||
<!-- <h3>Just a Subheading</h3>-->
|
||||
<!-- <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.-->
|
||||
<!-- Aliquam luctus et mattis lectus sit amet pulvinar. Nam turpis et nisi etiam.</p>-->
|
||||
<!-- <footer>-->
|
||||
<!-- <a href="#" class="button">Continue Reading</a>-->
|
||||
<!-- </footer>-->
|
||||
<!-- </section>-->
|
||||
|
||||
<section>
|
||||
<h3>Another Subheading</h3>
|
||||
<ul class="links">
|
||||
<li><a href="#">Amet turpis, feugiat sit amet</a></li>
|
||||
<li><a href="#">Ornare in hendrerit lectus</a></li>
|
||||
<li><a href="#">Semper mod quis eget dolore</a></li>
|
||||
<li><a href="#">Consequat lorem phasellus</a></li>
|
||||
<li><a href="#">Amet turpis feugiat amet</a></li>
|
||||
<li><a href="#">Semper mod quisturpis nisi</a></li>
|
||||
</ul>
|
||||
<footer>
|
||||
<a href="#" class="button">More Random Links</a>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- <section>-->
|
||||
<!-- <h3>Another Subheading</h3>-->
|
||||
<!-- <ul class="links">-->
|
||||
<!-- <li><a href="#">Amet turpis, feugiat sit amet</a></li>-->
|
||||
<!-- <li><a href="#">Ornare in hendrerit lectus</a></li>-->
|
||||
<!-- <li><a href="#">Semper mod quis eget dolore</a></li>-->
|
||||
<!-- <li><a href="#">Consequat lorem phasellus</a></li>-->
|
||||
<!-- <li><a href="#">Amet turpis feugiat amet</a></li>-->
|
||||
<!-- <li><a href="#">Semper mod quisturpis nisi</a></li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- <footer>-->
|
||||
<!-- <a href="#" class="button">More Random Links</a>-->
|
||||
<!-- </footer>-->
|
||||
<!-- </section>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="col-6 col-12-narrower imp-narrower">
|
||||
<div id="content">
|
||||
<article>
|
||||
@ -69,36 +69,36 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3 col-12-narrower">
|
||||
<div id="sidebar2">
|
||||
<!-- <div class="col-3 col-12-narrower">-->
|
||||
<!-- <div id="sidebar2">-->
|
||||
|
||||
<section>
|
||||
<h3>Another Subheading</h3>
|
||||
<ul class="links">
|
||||
<li><a href="#">Amet turpis, feugiat sit amet</a></li>
|
||||
<li><a href="#">Ornare in hendrerit lectus</a></li>
|
||||
<li><a href="#">Semper mod quis eget dolore</a></li>
|
||||
<li><a href="#">Consequat lorem phasellus</a></li>
|
||||
<li><a href="#">Amet turpis feugiat amet</a></li>
|
||||
<li><a href="#">Semper mod quisturpis nisi</a></li>
|
||||
</ul>
|
||||
<footer>
|
||||
<a href="#" class="button">More Random Links</a>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- <section>-->
|
||||
<!-- <h3>Another Subheading</h3>-->
|
||||
<!-- <ul class="links">-->
|
||||
<!-- <li><a href="#">Amet turpis, feugiat sit amet</a></li>-->
|
||||
<!-- <li><a href="#">Ornare in hendrerit lectus</a></li>-->
|
||||
<!-- <li><a href="#">Semper mod quis eget dolore</a></li>-->
|
||||
<!-- <li><a href="#">Consequat lorem phasellus</a></li>-->
|
||||
<!-- <li><a href="#">Amet turpis feugiat amet</a></li>-->
|
||||
<!-- <li><a href="#">Semper mod quisturpis nisi</a></li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- <footer>-->
|
||||
<!-- <a href="#" class="button">More Random Links</a>-->
|
||||
<!-- </footer>-->
|
||||
<!-- </section>-->
|
||||
|
||||
<section>
|
||||
<h3>Just a Subheading</h3>
|
||||
<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.
|
||||
Aliquam luctus et mattis lectus sit amet pulvinar. Nam turpis et nisi etiam.</p>
|
||||
<footer>
|
||||
<a href="#" class="button">Continue Reading</a>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- <section>-->
|
||||
<!-- <h3>Just a Subheading</h3>-->
|
||||
<!-- <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.-->
|
||||
<!-- Aliquam luctus et mattis lectus sit amet pulvinar. Nam turpis et nisi etiam.</p>-->
|
||||
<!-- <footer>-->
|
||||
<!-- <a href="#" class="button">Continue Reading</a>-->
|
||||
<!-- </footer>-->
|
||||
<!-- </section>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
</section>
|
||||
<section class="col-6 col-12-narrower">
|
||||
<h3>Get In Touch</h3>
|
||||
<form>
|
||||
<div id="tlg_form" >
|
||||
<div class="row gtr-50">
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<input type="text" name="name" id="name" placeholder="Name" />
|
||||
@ -43,11 +43,11 @@
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user