diff --git a/app/routes/admin/index.js b/app/routes/admin/index.js index ac5f2f3..5928227 100644 --- a/app/routes/admin/index.js +++ b/app/routes/admin/index.js @@ -7,7 +7,10 @@ export default class AdminIndexRoute extends Route { @service session; async model() { + const indexes = this.modelFor('admin'); + return hash({ + indexes, health: this.meilisearch.getHealth(), version: this.meilisearch.getVersion(), stats: this.meilisearch.getStats(), diff --git a/app/templates/admin/index.hbs b/app/templates/admin/index.hbs index 4b3d5cb..4f77c68 100644 --- a/app/templates/admin/index.hbs +++ b/app/templates/admin/index.hbs @@ -1,4 +1,5 @@ -
+

Stats

+
<:icon> {{#if (eq @model.health.status 'available')}} @@ -33,3 +34,33 @@
+ +

Indexes

+ + + + + + {{date-time-format + data.createdAt + year='numeric' + month='numeric' + day='numeric' + hour='numeric' + minute='numeric' + second='numeric' + }} + + + {{date-time-format + data.updatedAt + year='numeric' + month='numeric' + day='numeric' + hour='numeric' + minute='numeric' + second='numeric' + }} + + +