Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions frontend/src/components/admin_eyecatches/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down Expand Up @@ -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<HTMLInputElement>('#src_put')[i].value =
'https://code-database-images.s3-ap-northeast-1.amazonaws.com/' + 'eyecatches/' + filename
document.querySelectorAll<HTMLInputElement>('#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/')
Expand Down
11 changes: 10 additions & 1 deletion frontend/src/components/user_about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,22 @@
<br />
<p>(アプリの例)</p>
<img
src="https://code-database-images.s3-ap-northeast-1.amazonaws.com/uploads/file1588119331504golang_vue.gif"
src="https://image.code-database.com/uploads/file1588119331504golang_vue.gif"
alt="GolangとVue.jsとChart.jsで小さなSPAアプリを作る方法について解説"
/>
</div>
</div>
</div>
</div>
<iframe
sandbox="allow-popups allow-scripts allow-modals allow-forms allow-same-origin"
style="width: 120px; height: 240px"
marginwidth="0"
marginheight="0"
scrolling="no"
frameborder="0"
src="//rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=codedatabas03-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=4480511202&linkId=22f8ae23776bcd506b66a0686248fb2a"
></iframe>
<div class="col s12 m12 l12 center">
<a class="toKnowledgesLink" href="/knowledges">記事一覧をみる</a>
</div>
Expand Down