G-1: 메신저 Webhook Relay + _send_to_room 실제 httpx 호출 구현 G-2: POST /api/tasks/bulk SR 대량작업 엔드포인트 (최대 100건) G-3: 라이선스 만료 알림 스케줄러 (매일 09:00 KST) G-4: 체험판 upgrade_banner 필드 + license.py 배너 로직 G-5: core/auto_rca.py + incidents/problem auto-rca 엔드포인트 G-6: core/deploy_impact.py + vibe impact-analysis 엔드포인트 G-7: core/ticket_classifier.py + SR 생성 시 AI 분류 + ai-suggestion API G-8: VulnPatchRecord 모델 + vuln_scan 패치추적 4개 엔드포인트 G-9: core/jira_sync.py + gateway Jira/Confluence 연동 엔드포인트 G-10: core/push_notify.py + routers/push.py + PushSubscription 모델 G-11: approvals 다중승인 (위임/서명/기한초과/마감연장) G-12: alembic.ini + migrations/ + cicd/migrate_to_postgres.sh 하네스: guardia-orchestrator 확장기능 Phase 반영 봇명령어: /sr /status /license /bulk 슬래시 명령어 추가 설치스크립트: setup/ (Ubuntu, CentOS, RHEL, Windows) --test 옵션 포함 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
226 lines
4.2 KiB
JavaScript
226 lines
4.2 KiB
JavaScript
|
|
// iframe resize?? ???? width, height
|
|
var frmMinWidth;
|
|
var frmMinHeight;
|
|
var applyMinSize = false;
|
|
// iframe resize?? ???? width, height
|
|
var frmMaxWidth;
|
|
var frmMaxHeight;
|
|
var applyMaxSize = false;
|
|
function setMinSize(width, height)
|
|
{
|
|
frmMinWidth = width;
|
|
frmMinHeight = height
|
|
applyMinSize = true;
|
|
}
|
|
function setMaxSize(width, height)
|
|
{
|
|
frmMaxWidth = width;
|
|
frmMaxHeight = height
|
|
applyMaxSize = true;
|
|
}
|
|
|
|
function resizeIframe(name)
|
|
{
|
|
if (name == null || name == "")
|
|
{
|
|
name = "mainContents";
|
|
}
|
|
|
|
try
|
|
{
|
|
var oBody = document.frames(name).document.body;
|
|
//var oIFrame = document.all(name);
|
|
var oIFrame = $(name);
|
|
//var frmWidth = oBody.scrollWidth + (oIFrame.offsetWidth - oIFrame.clientWidth);
|
|
//var frmHeight = oBody.scrollHeight + (oIFrame.offsetHeight - oIFrame.clientHeight);
|
|
var frmWidth = oBody.scrollWidth;
|
|
var frmHeight = oBody.scrollHeight;
|
|
|
|
if (applyMinSize)
|
|
{
|
|
frmWidth = Math.max(frmWidth, frmMinWidth);
|
|
frmHeight = Math.max(frmHeight, frmMinHeight);
|
|
}
|
|
if (applyMaxSize)
|
|
{
|
|
frmWidth = Math.min(frmWidth, frmMaxWidth);
|
|
frmHeight = Math.min(frmHeight, frmMaxHeight);
|
|
}
|
|
|
|
oIFrame.style.height = frmHeight;
|
|
oIFrame.style.width = frmWidth;
|
|
}
|
|
catch (e)
|
|
{
|
|
window.status = "IFrame Resize Error";
|
|
}
|
|
}
|
|
|
|
function parentResizeIframe(name)
|
|
{
|
|
if (parent && parent != this && parent.resizeIframe != null)
|
|
{
|
|
parent.resizeIframe(name);
|
|
}
|
|
}
|
|
|
|
function parentResizeIframeTree(name)
|
|
{
|
|
if (parent && parent != this && parent.resizeIframe != null)
|
|
{
|
|
parent.resizeIframeTree(name);
|
|
}
|
|
}
|
|
|
|
|
|
function resizeIframeTree(name)
|
|
{
|
|
if (name == null || name == "")
|
|
{
|
|
name = "cafemain";
|
|
}
|
|
|
|
try
|
|
{
|
|
var oBody = document.frames(name).document.body;
|
|
var oIFrame = document.all(name);
|
|
var frmWidth = oBody.scrollWidth;
|
|
var frmHeight = oBody.scrollHeight;
|
|
|
|
if (applyMinSize)
|
|
{
|
|
frmWidth = Math.max(frmWidth, frmMinWidth);
|
|
frmHeight = Math.max(frmHeight, frmMinHeight);
|
|
}
|
|
if (applyMaxSize)
|
|
{
|
|
frmWidth = Math.min(frmWidth, frmMaxWidth);
|
|
frmHeight = Math.min(frmHeight, frmMaxHeight);
|
|
}
|
|
|
|
oIFrame.style.height = frmHeight-3;
|
|
oIFrame.style.width = frmWidth-3;
|
|
}
|
|
catch (e)
|
|
{
|
|
window.status = "IFrame Resize Error";
|
|
}
|
|
}
|
|
|
|
|
|
function parentResizeIframeTreeInit(name)
|
|
{
|
|
if (parent && parent != this && parent.resizeIframe != null)
|
|
{
|
|
parent.resizeIframeTreeInit(name);
|
|
}
|
|
}
|
|
|
|
function resizeIframeTreeInit(name)
|
|
{
|
|
if (name == null || name == "")
|
|
{
|
|
name = "cafemain";
|
|
}
|
|
try
|
|
{
|
|
var oBody = document.frames(name).document.body;
|
|
var oIFrame = document.all(name);
|
|
var frmWidth = oBody.scrollWidth;
|
|
var frmHeight = oBody.scrollHeight;
|
|
if (applyMinSize)
|
|
{
|
|
frmWidth = Math.max(frmWidth, frmMinWidth);
|
|
frmHeight = Math.max(frmHeight, frmMinHeight);
|
|
}
|
|
if (applyMaxSize)
|
|
{
|
|
frmWidth = Math.min(frmWidth, frmMaxWidth);
|
|
frmHeight = Math.min(frmHeight, frmMaxHeight);
|
|
}
|
|
oIFrame.style.height = frmHeight-3;
|
|
oIFrame.style.width = frmWidth-3+16;
|
|
}
|
|
catch (e)
|
|
{
|
|
window.status = "IFrame Resize Error";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// F5?? ???????? iframe ?????? refresh ?????? ????
|
|
document.onkeydown = trapRefresh;
|
|
function trapRefresh()
|
|
{
|
|
if (event.keyCode == 116)
|
|
{
|
|
event.keyCode = 0;
|
|
event.cancelBubble = true;
|
|
event.returnValue = false;
|
|
document.location.reload();
|
|
}
|
|
}
|
|
|
|
function parentPlusIframe(name, height)
|
|
{
|
|
if (parent && parent != this && parent.plusIframe != null)
|
|
{
|
|
parent.plusIframe(name, height);
|
|
}
|
|
}
|
|
|
|
function plusIframe(name, height) {
|
|
if (name == null || name == "")
|
|
{
|
|
name = "cafemain";
|
|
}
|
|
|
|
try
|
|
{
|
|
var oBody = document.frames(name).document.body;
|
|
var oIFrame = document.all(name);
|
|
var frmHeight = oBody.scrollHeight;
|
|
|
|
if (applyMinSize)
|
|
{
|
|
frmHeight = Math.max(frmHeight, frmMinHeight);
|
|
}
|
|
if (applyMaxSize)
|
|
{
|
|
frmHeight = Math.min(frmHeight, frmMaxHeight);
|
|
}
|
|
oIFrame.style.height = frmHeight + height;
|
|
}
|
|
catch (e)
|
|
{
|
|
window.status = "IFrame Size Plus Error";
|
|
}
|
|
}
|
|
|
|
function resizepopup() {
|
|
var winW = 356, winH = 200;
|
|
winW = 356;
|
|
winH = document.body.scrollHeight;
|
|
|
|
if(winH > 550){
|
|
winH = 550;
|
|
}
|
|
window.resizeTo(winW,winH+30);
|
|
|
|
}
|
|
|
|
function resizepopup2(wid) {
|
|
var winW = wid, winH = 200;
|
|
winW = wid;
|
|
winH = document.body.scrollHeight;
|
|
|
|
if(winH > 550){
|
|
winH = 550;
|
|
}
|
|
window.resizeTo(winW,winH+40);
|
|
|
|
}
|
|
|