mirror of
https://github.com/gotson/komga.git
synced 2026-01-17 13:43:32 +01:00
feat(webui): display creation and last modified date on book page
Closes: #1547
This commit is contained in:
parent
f5f36b3d2f
commit
da35e012d4
3 changed files with 48 additions and 1 deletions
|
|
@ -168,6 +168,8 @@
|
|||
},
|
||||
"browse_book": {
|
||||
"comment": "COMMENT",
|
||||
"date_created": "CREATED",
|
||||
"date_modified": "LAST MODIFIED",
|
||||
"download_file": "Download file",
|
||||
"file": "FILE",
|
||||
"format": "FORMAT",
|
||||
|
|
|
|||
|
|
@ -410,6 +410,28 @@
|
|||
<v-col class="py-1" cols="8" sm="9" md="10" xl="11">{{ book.url }}</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-row class="align-center text-caption">
|
||||
<v-col class="py-1 text-uppercase" cols="4" sm="3" md="2" xl="1">{{ $t('browse_book.date_created') }}</v-col>
|
||||
<v-col class="py-1" cols="8" sm="9" md="10" xl="11">{{
|
||||
new Intl.DateTimeFormat($i18n.locale, {
|
||||
dateStyle: 'long',
|
||||
timeStyle: 'short'
|
||||
}).format(new Date(book.created))
|
||||
}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-row class="align-center text-caption">
|
||||
<v-col class="py-1 text-uppercase" cols="4" sm="3" md="2" xl="1">{{ $t('browse_book.date_modified') }}</v-col>
|
||||
<v-col class="py-1" cols="8" sm="9" md="10" xl="11">{{
|
||||
new Intl.DateTimeFormat($i18n.locale, {
|
||||
dateStyle: 'long',
|
||||
timeStyle: 'short'
|
||||
}).format(new Date(book.lastModified))
|
||||
}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-container>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -496,6 +496,28 @@
|
|||
<v-col class="py-1" cols="8" sm="9" md="10" xl="11">{{ book.url }}</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-row class="align-center text-caption">
|
||||
<v-col class="py-1 text-uppercase" cols="4" sm="3" md="2" xl="1">{{ $t('browse_book.date_created') }}</v-col>
|
||||
<v-col class="py-1" cols="8" sm="9" md="10" xl="11">{{
|
||||
new Intl.DateTimeFormat($i18n.locale, {
|
||||
dateStyle: 'long',
|
||||
timeStyle: 'short'
|
||||
}).format(new Date(book.created))
|
||||
}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-row class="align-center text-caption">
|
||||
<v-col class="py-1 text-uppercase" cols="4" sm="3" md="2" xl="1">{{ $t('browse_book.date_modified') }}</v-col>
|
||||
<v-col class="py-1" cols="8" sm="9" md="10" xl="11">{{
|
||||
new Intl.DateTimeFormat($i18n.locale, {
|
||||
dateStyle: 'long',
|
||||
timeStyle: 'short'
|
||||
}).format(new Date(book.lastModified))
|
||||
}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-container>
|
||||
|
||||
</div>
|
||||
|
|
@ -552,7 +574,8 @@ import {
|
|||
SearchConditionAgeRating,
|
||||
SearchConditionGenre,
|
||||
SearchConditionLanguage,
|
||||
SearchConditionPublisher, SearchConditionSeriesId,
|
||||
SearchConditionPublisher,
|
||||
SearchConditionSeriesId,
|
||||
SearchConditionTag,
|
||||
SearchOperatorIs,
|
||||
} from '@/types/komga-search'
|
||||
|
|
|
|||
Loading…
Reference in a new issue