diff --git a/src/components/desktop/AmountInput.vue b/src/components/desktop/AmountInput.vue new file mode 100644 index 00000000..19a53dc4 --- /dev/null +++ b/src/components/desktop/AmountInput.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/src/desktop-main.js b/src/desktop-main.js index cb4f2e7a..67c8932f 100644 --- a/src/desktop-main.js +++ b/src/desktop-main.js @@ -50,6 +50,8 @@ import { i18nFunctions } from '@/lib/i18n.js'; +import AmountInput from '@/components/desktop/AmountInput.vue'; + import '@/styles/desktop/base.css'; import '@/styles/desktop/layout.css'; import '@/styles/desktop/font-size.css'; @@ -306,6 +308,8 @@ app.use(router); app.component('PerfectScrollbar', PerfectScrollbar); app.component('VueDatePicker', VueDatePicker); +app.component('AmountInput', AmountInput); + app.config.globalProperties.$version = version.getVersion(); app.config.globalProperties.$buildTime = version.getBuildTime(); diff --git a/src/locales/en.js b/src/locales/en.js index e767242c..b714c2d2 100644 --- a/src/locales/en.js +++ b/src/locales/en.js @@ -917,6 +917,8 @@ export default { 'Transaction Detail': 'Transaction Detail', 'No transaction data': 'No transaction data', 'Are you sure you want to delete this transaction?': 'Are you sure you want to delete this transaction?', + 'Amount value is not number': 'Amount value is not number', + 'Amount value exceeds limitation': 'Amount value exceeds limitation', 'Unable to delete this transaction': 'Unable to delete this transaction', 'Transaction Data': 'Transaction Data', 'Statistics Data': 'Statistics Data', diff --git a/src/locales/zh_Hans.js b/src/locales/zh_Hans.js index 91b7cded..04b973d1 100644 --- a/src/locales/zh_Hans.js +++ b/src/locales/zh_Hans.js @@ -917,6 +917,8 @@ export default { 'Transaction Detail': '交易详情', 'No transaction data': '没有交易数据', 'Are you sure you want to delete this transaction?': '您确定要删除该交易?', + 'Amount value is not number': '金额值不是数值', + 'Amount value exceeds limitation': '金额数值超出限制', 'Unable to delete this transaction': '无法删除该交易', 'Transaction Data': '交易数据', 'Statistics Data': '统计数据', diff --git a/src/views/desktop/ExchangeRatesPage.vue b/src/views/desktop/ExchangeRatesPage.vue index 28fdb97f..137aa10e 100644 --- a/src/views/desktop/ExchangeRatesPage.vue +++ b/src/views/desktop/ExchangeRatesPage.vue @@ -1,13 +1,224 @@ - exchange rates + + + + {{ $t('Exchange Rates Data') }} + + + + + + + + {{ $t('Data source') }} + {{ exchangeRatesData.dataSource }} + {{ exchangeRatesData.dataSource }} + , {{ $t('Last Updated') }} {{ exchangeRatesDataUpdateTime }} + + + + {{ $t('No exchange rates data') }} + + + + + {{ $t('Base Currency') }} + + + + + + + + {{ $t('Base Amount') }} + + + + + + + + + + {{ $t('Currency') }} + {{ $t('Amount') }} + + + + + + + {{ exchangeRate.currencyDisplayName }} + {{ exchangeRate.currencyCode }} + + {{ getDisplayConvertedAmount(exchangeRate) }} + + + + + + + + {{ snackbarMessage }} + + + {{ $t('Close') }} + + + + + +