feat: 增加 aside 最新評論部件

style: 部分css調整和html優化
improvements: 刪除pwa中的theme-color配置,默認生成meta theme-color  close #340
improvements: 優化最後更新時間顯示(1小時內顯示 剛剛,1小時到24小時 顯示 xx小時前,1天到365天 顯示 xx天前,365天后直接顯示日期)
This commit is contained in:
Jerry
2020-08-29 01:11:11 +08:00
parent ee6f62f4bc
commit fe97d2e63f
23 changed files with 420 additions and 86 deletions

View File

@@ -95,11 +95,13 @@
})
}
let last_push_date = 'undefined';
let date_suffix = 'undefined';
if (theme.aside.card_webinfo.last_push_date) {
last_push_date = JSON.stringify({
zeroDay: _p("aside.card_webinfo.last_push_date.zero_day"),
suffix: _p("aside.card_webinfo.last_push_date.suffix")
date_suffix = JSON.stringify({
one_hour: _p("date_suffix.one_hour"),
hours: _p("date_suffix.hours"),
day: _p('date_suffix.day')
})
}
@@ -122,7 +124,7 @@ script.
message_next: '!{_p("Snackbar.bookmark.message_next")}'
},
runtime: '!{theme.runtimeshow.enable ? _p("aside.card_webinfo.runtime.unit") : ""}',
last_push_date: !{last_push_date},
date_suffix: !{date_suffix},
copyright: !{copyright},
ClickShowText: !{ClickShowText},
medium_zoom: !{theme.medium_zoom},