60 lines
1.5 KiB
Handlebars
60 lines
1.5 KiB
Handlebars
<Headers::H2 @title='Statistics' />
|
|
|
|
<dl class='grid lg:grid-cols-3 gap-5 mb-4'>
|
|
<Stat
|
|
@title='Database size'
|
|
@value={{format-bytes @model.stats.databaseSize}}
|
|
>
|
|
<:icon>
|
|
<Icons::DatabaseOutline @size={{40}} class='fill-base-2' />
|
|
</:icon>
|
|
</Stat>
|
|
<Stat
|
|
@title='Last update'
|
|
@value={{date-time-format @model.stats.lastUpdate}}
|
|
>
|
|
<:icon>
|
|
<Icons::Calendar @size={{40}} class='fill-base-2' />
|
|
</:icon>
|
|
</Stat>
|
|
<Stat @title='The version' @value={{@model.version.pkgVersion}}>
|
|
<:icon>
|
|
<Icons::SourceBranch @size={{40}} class='fill-base-2' />
|
|
</:icon>
|
|
</Stat>
|
|
</dl>
|
|
|
|
<Headers::H2>
|
|
<LinkTo @route='admin.indexes.index'>Indexes</LinkTo>
|
|
</Headers::H2>
|
|
|
|
<SimpleTable @data={{@model.indexes.results}} class='w-full' as |Column data|>
|
|
<Column @name='UID' @prop='uid'>
|
|
<LinkTo @route='admin.indexes.item' @model={{data.uid}}>
|
|
{{data.uid}}
|
|
</LinkTo>
|
|
</Column>
|
|
<Column @name='Primary key' @prop='primaryKey' />
|
|
<Column @name='Created at' @prop='createdAt'>
|
|
{{date-time-format
|
|
data.createdAt
|
|
year='numeric'
|
|
month='numeric'
|
|
day='numeric'
|
|
hour='numeric'
|
|
minute='numeric'
|
|
second='numeric'
|
|
}}
|
|
</Column>
|
|
<Column @name='Updated at' @prop='updatedAt'>
|
|
{{date-time-format
|
|
data.updatedAt
|
|
year='numeric'
|
|
month='numeric'
|
|
day='numeric'
|
|
hour='numeric'
|
|
minute='numeric'
|
|
second='numeric'
|
|
}}
|
|
</Column>
|
|
</SimpleTable>
|