diff --git a/frontend/src/components/SpringboardWidget.vue b/frontend/src/components/SpringboardWidget.vue new file mode 100644 index 0000000..9461fc0 --- /dev/null +++ b/frontend/src/components/SpringboardWidget.vue @@ -0,0 +1,831 @@ + + + + + + + {{ clock.weekday.value }} + {{ clock.time.value }} + {{ + clock.date.value + }} + + + + {{ clock.month.value }} + {{ clock.day.value }} + {{ clock.weekday.value }} + + + + + + {{ weather.location.value }} + {{ weather.forecast.value?.temperature ?? '--' }}° + + + + {{ weather.condition.value }} + + H: {{ forecastHigh ?? '--' }}° L: {{ forecastLow ?? '--' }}° + + + + + + SKY + + + {{ music.current.value.title }} + {{ music.current.value.artist }} + + + + + + + + + + + + + + + {{ + phone.t( + instance.settings.balanceSource === 'cash' + ? 'Home.widgetSystem.wallet.cash' + : 'Home.widgetSystem.wallet.bank', + ) + }} + {{ formatMoney(balance) }} + {{ bank.overview.value.playerName }} + + + + + {{ phone.t('Home.widgetSystem.transactions.name') }} + + + + + {{ transaction.label }} + {{ transaction.reference }} + + {{ + transaction.kind === 'deposit' || + transaction.kind === 'transfer_in' + ? '+' + : '−' + }}{{ formatMoney(transaction.amount) }} + + + + + + {{ phone.t('Home.widgetSystem.contacts.name') }} + + + + {{ + avatar(contact.name) + }} + {{ contact.name }} + + + + + + + + + + + + + + + − + + + + +