diff --git a/frontend/src/components/admin_eyecatches/main.ts b/frontend/src/components/admin_eyecatches/main.ts index 997be7a..1f1cb3a 100644 --- a/frontend/src/components/admin_eyecatches/main.ts +++ b/frontend/src/components/admin_eyecatches/main.ts @@ -26,8 +26,7 @@ submit_btn_post.addEventListener('click', function () { }, function (err, data) { if (data !== null) { - ;(document.getElementById('src_post') as HTMLInputElement).value = - 'https://code-database-images.s3-ap-northeast-1.amazonaws.com/' + 'eyecatches/' + filename + ;(document.getElementById('src_post') as HTMLInputElement).value = 'https://image.code-database.com/' + 'eyecatches/' + filename const formdata = new FormData(document.getElementById('form_post') as HTMLFormElement) const XHR = new XMLHttpRequest() XHR.open('POST', '/admin/eyecatches/') @@ -72,8 +71,7 @@ for (let i = 0; i < forms.length; i++) { { Bucket: albumBucketName, Key: 'eyecatches/' + filename, ContentType: files[0].type, Body: files[0], ACL: 'public-read' }, function (err, data) { if (data !== null) { - document.querySelectorAll('#src_put')[i].value = - 'https://code-database-images.s3-ap-northeast-1.amazonaws.com/' + 'eyecatches/' + filename + document.querySelectorAll('#src_put')[i].value = 'https://image.code-database.com/' + 'eyecatches/' + filename const formdata = new FormData(forms[i]) const XHR = new XMLHttpRequest() XHR.open('PUT', '/admin/eyecatches/') diff --git a/frontend/src/components/user_about/index.html b/frontend/src/components/user_about/index.html index c302068..a12fd32 100644 --- a/frontend/src/components/user_about/index.html +++ b/frontend/src/components/user_about/index.html @@ -93,13 +93,22 @@

(アプリの例)

GolangとVue.jsとChart.jsで小さなSPAアプリを作る方法について解説 +