Skip to content

Commit

Permalink
Upgrade to Tocas UI 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PichuChen committed Jul 18, 2024
1 parent 3344b63 commit c96b642
Showing 1 changed file with 40 additions and 36 deletions.
76 changes: 40 additions & 36 deletions web/index/timeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -396,52 +396,56 @@
const createdAt = object.published || 'Unknown';

card.innerHTML = `
<div class="ts-grid">
<div class="column">
<div class="ts-image is-circular">
<img class="author-avator" src="${avatarUrl}" />
<div class="ts-content">
<div class="ts-grid">
<div class="column">
<div class="ts-image is-circular">
<img class="author-avator" src="${avatarUrl}" width="48"/>
</div>
</div>
</div>
<div class="column is-fluid">
<div style="line-height: 1.5">
<div class="ts-text is-heavy author-name">${username}</div>
<div class="ts-meta is-small is-secondary">
<div class="item privacy-setting"><span class="ts-icon is-earth-asia-icon is-end-spaced"></span>公開</div>
<a href="#!" class="item created-time">${createdAt}</a>
<div class="column is-fluid">
<div style="line-height: 1.5">
<div class="ts-text is-heavy author-name">${username}</div>
<div class="ts-meta is-small is-secondary">
<div class="item privacy-setting"><span class="ts-icon is-earth-asia-icon is-end-spaced"></span>公開</div>
<a href="#!" class="item created-time">${createdAt}</a>
</div>
</div>
<div class="content has-vertically-spaced-small">
${object.content}
</div>
<div class="attachment has-hidden">
<div class="ts-image is-rounded">
<img src="./../assets/images/16-9.png" />
</div>
</div>
</div>
<div class="content has-vertically-spaced-small">
${object.content}
</div>
<div class="ts-divider is-section"></div>
<div class="ts-grid is-evenly-divided">
<div class="column">
<button class="ts-button is-dense is-start-icon is-ghost is-fluid">
<span class="reaction-button ts-icon is-thumbs-up-icon is-regular"></span>
</button>
</div>
<div class="attachment">
<div class="column">
<button class="ts-button is-dense is-start-icon is-ghost is-fluid">
<span class="comment-button ts-icon is-comment-icon is-regular"></span>
留言
</button>
</div>
<div class="column">
<button class="ts-button is-dense is-start-icon is-ghost is-fluid">
<span class="share-button ts-icon is-share-from-square-icon is-regular"></span>
分享
</button>
</div>
</div>
</div>
<div class="ts-divider is-section"></div>
<div class="ts-grid is-evenly-divided">
<div class="column">
<button class="ts-button is-dense is-start-icon is-ghost is-fluid">
<span class="reaction-button ts-icon is-thumbs-up-icon is-regular"></span>
</button>
</div>
<div class="column">
<button class="ts-button is-dense is-start-icon is-ghost is-fluid">
<span class="comment-button ts-icon is-comment-icon is-regular"></span>
留言
</button>
</div>
<div class="column">
<button class="ts-button is-dense is-start-icon is-ghost is-fluid">
<span class="share-button ts-icon is-share-from-square-icon is-regular"></span>
分享
</button>
</div>
</div>
`;
return card;


}

</script>
Expand Down

0 comments on commit c96b642

Please sign in to comment.