diff --git a/frontend/src/common/log.js b/frontend/src/common/log.js index c8dd5c45a..49f76584b 100644 --- a/frontend/src/common/log.js +++ b/frontend/src/common/log.js @@ -2,7 +2,17 @@ import Event from "pubsub-js"; class Log { constructor() { - this.logs = []; + this.created = new Date; + this.logs = [ + /* EXAMPLE LOG MESSAGE + { + "msg": "waiting for events", + "level": "debug", + "time": this.created.toISOString(), + }, + */ + ]; + this.logId = 0; Event.subscribe("log", this.onLog.bind(this)); diff --git a/frontend/src/css/app.css b/frontend/src/css/app.css index 04f0410fa..d454bd79f 100644 --- a/frontend/src/css/app.css +++ b/frontend/src/css/app.css @@ -71,7 +71,8 @@ main { color: white; } -#photoprism .p-log-message { +#photoprism .p-log-empty, +#photoprism .p-log-message{ display: block; text-align: left; font-size: 1em; diff --git a/frontend/src/pages/settings/logs.vue b/frontend/src/pages/settings/logs.vue index ee0cd3a1e..2fb0c52f8 100644 --- a/frontend/src/pages/settings/logs.vue +++ b/frontend/src/pages/settings/logs.vue @@ -2,6 +2,9 @@ +

+ Nothing to see here yet. Be patient. +

{{ log.time | luxon:format('yyyy-LL-dd hh:mm:ss') }} {{ level(log) }} {{ log.msg }}