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>
1.9 KiB
1.9 KiB
別記資料 スクリプト(Scripts)全文 (17/28)
// ...(前ファイルからの続き)
await axios.post("/pleasanter/api/binaries/" + guid + "/get", jsonReq)
.then(function (response) {
binary = decodeBase64(response.data.Response.Base64);
filename = response.data.Response.FileName;
zip.folder(zipFilename).file(filename, binary, {
binary: true
});
})
.catch(function (error) {
console.log(error);
})
.finally(function () { });
}
saveAs(await zip.generateAsync({
type: "blob"
}), zipFilename + ".zip");
}
/**
* base64デコード処理
* @param base64 base64文字列
* @return デコードしたバイナリデータ
*/
function decodeBase64(base64) {
const bin = atob(base64.replace(/^.*,/, ''));
var buffer = new Uint8Array(bin.length);
for (var i = 0; i < bin.length; i++) {
buffer[i] = bin.charCodeAt(i);
}
return buffer.buffer;
}
//説明欄にコメントがある場合、追加
function attachmentComments(attach) {
let comments = '';
if ($('#Results_' + attach + 'Field>div.field-control').attr('title')) {
comments = $('#Results_' + attach + 'Field>div.field-control').attr('title');
}
if (comments) {
let div1 = document.createElement('div');
div1.innerHTML = comments;
div1.style.marginLeft = '121px';
div1.style.fontWeight = 'bold';
div1.style.color = '#00F';
//位置調整とコメント追加
$('#Results_' + attach + 'Field').append(div1);
$('#Results_' + attach + 'Field').css('margin-bottom', '10px');
}
}