GitHub(nextgroup2706/ken_nogi)は今後使わず自社Gitea運用に切替え。 NodeSrvは旧リポジトリの履歴を破棄しファイルのみ統合(Dokploy用サービスアカウントは 別途mygit-admin/NodeSrv.gitに履歴あり)。notepmエクスポート(12GB)とPleasanter インストーラzip(208MB)はサイズが大きいため.gitignoreで除外。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
24 lines
744 B
JavaScript
24 lines
744 B
JavaScript
document.getElementById('cards').addEventListener('click', async (event) => {
|
|
const button = event.target.closest('button[data-action]');
|
|
if (!button) return;
|
|
const { action, composeId } = button.dataset;
|
|
|
|
if (action === 'logs') {
|
|
const res = await fetch(`/api/compose/${composeId}/logs`);
|
|
if (!res.ok) {
|
|
alert(`ログ取得に失敗しました (status: ${res.status})`);
|
|
return;
|
|
}
|
|
const data = await res.json();
|
|
alert(data.logs || 'ログなし');
|
|
return;
|
|
}
|
|
|
|
const res = await fetch(`/api/compose/${composeId}/${action}`, { method: 'POST' });
|
|
if (res.ok) {
|
|
alert(`${action} を実行しました`);
|
|
} else {
|
|
alert(`${action} に失敗しました (status: ${res.status})`);
|
|
}
|
|
});
|