daemon-idc init
This commit is contained in:
parent
a0d9780189
commit
22a58a463a
@ -22,7 +22,7 @@ class LocalService extends AuthService
|
||||
}
|
||||
protected function login_process(array $formDatas): UserEntity
|
||||
{
|
||||
$this->getActionForm()->action_init_process('login', $formDatas);
|
||||
$this->getActionForm()->form_init_process('login', $formDatas);
|
||||
//입력값 검증
|
||||
$this->getActionForm()->validate($formDatas);
|
||||
//로그인 정보확인
|
||||
|
||||
@ -19,7 +19,10 @@
|
||||
<body>
|
||||
<?php if ($error = session('message')): ?> <?= alertTrait($error) ?><?php endif ?>
|
||||
<?= $this->renderSection('content') ?>
|
||||
<?= $this->include($viewDatas['layout']['layout'] . '/chat'); ?>
|
||||
</body>
|
||||
<?php foreach ($viewDatas['layout']['footerScripts'] as $javascript): ?> <?= $javascript ?><?php endforeach; ?>
|
||||
<?php foreach ($viewDatas['layout']['footerScripts'] as $javascript): ?>
|
||||
<?= $javascript ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</html>
|
||||
55
app/Views/layouts/front/chat.php
Normal file
55
app/Views/layouts/front/chat.php
Normal file
@ -0,0 +1,55 @@
|
||||
<style>
|
||||
#chat-floating-btn {
|
||||
position: fixed;
|
||||
right: 25px;
|
||||
bottom: 25px;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 50%;
|
||||
background: #0078d4;
|
||||
color: white;
|
||||
font-size: 26px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#chat-widget-container {
|
||||
position: fixed;
|
||||
right: 25px;
|
||||
bottom: 100px;
|
||||
width: 420px;
|
||||
height: 600px;
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
||||
display: none;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#chat-widget-container iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
}
|
||||
</style>
|
||||
<div id="chat-floating-btn">💬</div>
|
||||
<!-- Chat Popup -->
|
||||
<div id="chat-widget-container"><iframe src="http://localhost:3000/chat"></iframe></div>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const chatBtn = document.getElementById("chat-floating-btn");
|
||||
const chatWidget = document.getElementById("chat-widget-container");
|
||||
chatBtn.addEventListener("click", function () {
|
||||
if (chatWidget.style.display === "none" || chatWidget.style.display === "") {
|
||||
chatWidget.style.display = "block";
|
||||
} else {
|
||||
chatWidget.style.display = "none";
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user