feat(project): meeting board button opens a blank Google Slides deck

A "회의록 보드" button next to attendees opens the week's Google Slides
deck in its own window. The deck is found (Drive appProperties) or
created in the shared drive MEETING_BOARD_FOLDER_ID as one BLANK slide,
named like "10월 2주차 (10/5~10/11)". Needs a token with Drive and
Slides scopes; the authorize script now requests them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 12:04:09 +09:00
parent 15e84ba5bc
commit c9d5e6e017
18 changed files with 427 additions and 13 deletions
+31
View File
@@ -10125,11 +10125,42 @@
else window.addEventListener("resize", apply);
}
// ── 회의록 보드 — 그 주차의 빈 Google 슬라이드를 독립 창으로. 팝업 차단을 피하려고 누르는 순간 빈 창을 먼저 열고,
// 서버(POST …/board — 없으면 공유 드라이브에 만든다)가 주소를 주면 그 창을 슬라이드로 바꾼다. 같은 주차는 같은 창 이름.
function initMeetBoard(week) {
const btn = el("pj-meet-board");
if (!btn) return;
btn.addEventListener("click", async function () {
const w = window.open("", "pj_meet_board_" + week, "popup=yes,width=1400,height=900");
if (w) {
try {
if (w.location.href === "about:blank") {
w.document.title = "회의록 보드";
w.document.body.innerHTML = '<p style="font:14px sans-serif;padding:24px;color:#555">회의록 보드를 여는 중…</p>';
}
} catch (_) {} // 이미 슬라이드가 열린 창(다른 출처)이면 그대로 두고 주소만 바꾼다
}
btn.disabled = true;
try {
const res = await api("POST", "/project/api/goals/meetings/" + week + "/board", {});
if (w && !w.closed) { w.location.replace(res.url); w.focus(); }
else showToast("팝업이 차단되어 창을 열지 못했습니다. 이 사이트의 팝업을 허용한 뒤 다시 눌러 주세요.", "error");
if (res.created) showToast("회의록 보드를 만들었습니다: " + res.title);
} catch (e) {
if (w && !w.closed) w.close();
showToast("회의록 보드를 열지 못했습니다: " + e.message, "error");
} finally {
btn.disabled = false;
}
});
}
function initGoalMeeting() {
const pane = el("pj-meet-pane");
if (!pane) return;
initMeetOrder();
initMeetTop(pane);
initMeetBoard(pane.dataset.week);
const week = pane.dataset.week, year = pane.dataset.year;
const isAdmin = pane.dataset.admin === "true";
const SCROLL_KEY = "pj_meet_scroll";