Update meta files.

This commit is contained in:
James Cole
2020-07-02 20:23:45 +02:00
parent 6874d6469d
commit 45f5a38512
66 changed files with 583 additions and 203 deletions

View File

@@ -7,12 +7,9 @@
<h3 class="card-title"><a :href="account.uri">{{ account.title }}</a></h3>
</div>
<div class="card-body table-responsive p-0">
<transaction-list-small :transactions="account.transactions" :account_id="account.id" />
<!--
<transaction-list-large :transactions="account.transactions" v-if="1===accounts.length" />
<transaction-list-medium :transactions="account.transactions" v-if="2===accounts.length" />
<transaction-list-small :transactions="account.transactions" v-if="accounts.length > 2" />
-->
<transaction-list-large :transactions="account.transactions" v-if="1===accounts.length" :account_id="account.id" />
<transaction-list-medium :transactions="account.transactions" v-if="2===accounts.length" :account_id="account.id" />
<transaction-list-small :transactions="account.transactions" v-if="accounts.length > 2" :account_id="account.id" />
</div>
</div>
</div>

View File

@@ -1,10 +1,76 @@
<template>
<table class="table table-striped">
<caption style="display:none;">{{ $t('firefly.transaction_table_description') }}</caption>
<thead>
<tr>
<th class="text-left">{{ $t('firefly.description') }}</th>
<th>{{ $t('firefly.opposing_account') }}</th>
<th class="text-right">{{ $t('firefly.amount') }}</th>
<th>{{ $t('firefly.category') }}</th>
<th>{{ $t('firefly.budget') }}</th>
</tr>
</thead>
<tbody>
<tr v-for="transaction in this.transactions">
<td>
<a :href="'transactions/show/' + transaction.id " :title="transaction.date">
<span v-if="transaction.attributes.transactions.length > 1">{{ transaction.attributes.group_title }}</span>
<span v-if="1===transaction.attributes.transactions.length">{{ transaction.attributes.transactions[0].description }}</span>
</a>
</td>
<td>
<span v-for="tr in transaction.attributes.transactions">
<a :href="'accounts/show/' + transaction.destination_id" v-if="'withdrawal' === tr.type">{{ tr.destination_name }}</a>
<a :href="'accounts/show/' + transaction.source_id" v-if="'deposit' === tr.type">{{ tr.source_name }}</a>
<a :href="'accounts/show/' + transaction.destination_id" v-if="'transfer' === tr.type && tr.source_id === account_id">{{ tr.destination_name }}</a>
<a :href="'accounts/show/' + transaction.source_id" v-if="'transfer' === tr.type && tr.destination_id === account_id">{{ tr.source_name }}</a>
<br />
</span>
</td>
<td style="text-align:right;">
<span v-for="tr in transaction.attributes.transactions">
<span v-if="'withdrawal' === tr.type" class="text-danger">
{{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>
</span>
<span v-if="'deposit' === tr.type" class="text-success">
{{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>
</span>
<span v-if="'transfer' === tr.type && tr.source_id === account_id" class="text-info">
{{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>
</span>
<span v-if="'transfer' === tr.type && tr.destination_id === account_id" class="text-info">
{{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>
</span>
</span>
</td>
<td>
cat
</td>
<td>
bud
</td>
</tr>
</tbody>
</table>
</template>
<script>
export default {
name: "TransactionListLarge"
name: "TransactionListLarge",
props: {
transactions: {
type: Array,
default: function () {
return [];
}
},
account_id: {
type: Number,
default: function () {
return 0;
}
},
}
}
</script>

View File

@@ -1,10 +1,68 @@
<template>
<table class="table table-striped">
<caption style="display:none;">{{ $t('firefly.transaction_table_description') }}</caption>
<thead>
<tr>
<th class="text-left">{{ $t('firefly.description') }}</th>
<th>{{ $t('firefly.opposing_account') }}</th>
<th class="text-right">{{ $t('firefly.amount') }}</th>
</tr>
</thead>
<tbody>
<tr v-for="transaction in this.transactions">
<td>
<a :href="'transactions/show/' + transaction.id " :title="transaction.date">
<span v-if="transaction.attributes.transactions.length > 1">{{ transaction.attributes.group_title }}</span>
<span v-if="1===transaction.attributes.transactions.length">{{ transaction.attributes.transactions[0].description }}</span>
</a>
</td>
<td>
<span v-for="tr in transaction.attributes.transactions">
<a :href="'accounts/show/' + transaction.destination_id" v-if="'withdrawal' === tr.type">{{ tr.destination_name }}</a>
<a :href="'accounts/show/' + transaction.source_id" v-if="'deposit' === tr.type">{{ tr.source_name }}</a>
<a :href="'accounts/show/' + transaction.destination_id" v-if="'transfer' === tr.type && tr.source_id === account_id">{{ tr.destination_name }}</a>
<a :href="'accounts/show/' + transaction.source_id" v-if="'transfer' === tr.type && tr.destination_id === account_id">{{ tr.source_name }}</a>
<br />
</span>
</td>
<td style="text-align:right;">
<span v-for="tr in transaction.attributes.transactions">
<span v-if="'withdrawal' === tr.type" class="text-danger">
{{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>
</span>
<span v-if="'deposit' === tr.type" class="text-success">
{{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>
</span>
<span v-if="'transfer' === tr.type && tr.source_id === account_id" class="text-info">
{{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>
</span>
<span v-if="'transfer' === tr.type && tr.destination_id === account_id" class="text-info">
{{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>
</span>
</span>
</td>
</tr>
</tbody>
</table>
</template>
<script>
export default {
name: "TransactionListMedium"
name: "TransactionListMedium",
props: {
transactions: {
type: Array,
default: function () {
return [];
}
},
account_id: {
type: Number,
default: function () {
return 0;
}
},
}
}
</script>

View File

@@ -1,10 +1,10 @@
<template>
<table class="table table-striped">
<caption style="display:none;">A table containing transactions.</caption>
<caption style="display:none;">{{ $t('firefly.transaction_table_description') }}</caption>
<thead>
<tr>
<th class="text-left">Description</th>
<th class="text-right">Amount</th>
<th class="text-left">{{ $t('firefly.description') }}</th>
<th class="text-right">{{ $t('firefly.amount') }}</th>
</tr>
</thead>
<tbody>

View File

@@ -6,7 +6,14 @@
"net_worth": "\u010cist\u00e9 jm\u011bn\u00ed",
"paid": "Zaplaceno",
"yourAccounts": "Va\u0161e \u00fa\u010dty",
"go_to_asset_accounts": "Zobrazit \u00fa\u010dty s aktivy"
"go_to_asset_accounts": "Zobrazit \u00fa\u010dty s aktivy",
"transaction_table_description": "A table containing your transactions",
"account": "\u00da\u010det",
"description": "Popis",
"amount": "\u010c\u00e1stka",
"budget": "Rozpo\u010det",
"category": "Kategorie",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "cs"

View File

@@ -6,7 +6,14 @@
"net_worth": "Eigenkapital",
"paid": "Bezahlt",
"yourAccounts": "Deine Konten",
"go_to_asset_accounts": "Bestandskonten anzeigen"
"go_to_asset_accounts": "Bestandskonten anzeigen",
"transaction_table_description": "Eine Tabelle mit Ihren Buchungen",
"account": "Konto",
"description": "Beschreibung",
"amount": "Betrag",
"budget": "Budget",
"category": "Kategorie",
"opposing_account": "Gegenkonto"
},
"config": {
"html_language": "de"

View File

@@ -6,7 +6,14 @@
"net_worth": "\u039a\u03b1\u03b8\u03b1\u03c1\u03ae \u03b1\u03be\u03af\u03b1",
"paid": "\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ad\u03bd\u03bf",
"yourAccounts": "\u039f\u03b9 \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03bf\u03af \u03c3\u03b1\u03c2",
"go_to_asset_accounts": "\u0394\u03b5\u03af\u03c4\u03b5 \u03c4\u03bf\u03c5\u03c2 \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03bf\u03cd\u03c2 \u03ba\u03b5\u03c6\u03b1\u03bb\u03b1\u03af\u03bf\u03c5 \u03c3\u03b1\u03c2"
"go_to_asset_accounts": "\u0394\u03b5\u03af\u03c4\u03b5 \u03c4\u03bf\u03c5\u03c2 \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03bf\u03cd\u03c2 \u03ba\u03b5\u03c6\u03b1\u03bb\u03b1\u03af\u03bf\u03c5 \u03c3\u03b1\u03c2",
"transaction_table_description": "A table containing your transactions",
"account": "\u039b\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03cc\u03c2",
"description": "\u03a0\u03b5\u03c1\u03b9\u03b3\u03c1\u03b1\u03c6\u03ae",
"amount": "\u03a0\u03bf\u03c3\u03cc",
"budget": "\u03a0\u03c1\u03bf\u03cb\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03bc\u03cc\u03c2",
"category": "\u039a\u03b1\u03c4\u03b7\u03b3\u03bf\u03c1\u03af\u03b1",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "el"

View File

@@ -6,7 +6,14 @@
"net_worth": "Net worth",
"paid": "Paid",
"yourAccounts": "Your accounts",
"go_to_asset_accounts": "View your asset accounts"
"go_to_asset_accounts": "View your asset accounts",
"transaction_table_description": "A table containing your transactions",
"account": "Account",
"description": "Description",
"amount": "Amount",
"budget": "Budget",
"category": "Category",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "en"

View File

@@ -6,7 +6,14 @@
"net_worth": "Valor Neto",
"paid": "Pagado",
"yourAccounts": "Tus cuentas",
"go_to_asset_accounts": "Ver tus cuentas de activos"
"go_to_asset_accounts": "Ver tus cuentas de activos",
"transaction_table_description": "A table containing your transactions",
"account": "Cuenta",
"description": "Descripci\u00f3n",
"amount": "Cantidad",
"budget": "Presupuesto",
"category": "Categoria",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "es"

View File

@@ -6,7 +6,14 @@
"net_worth": "Varallisuus",
"paid": "Maksettu",
"yourAccounts": "Omat tilisi",
"go_to_asset_accounts": "Tarkastele omaisuustilej\u00e4si"
"go_to_asset_accounts": "Tarkastele omaisuustilej\u00e4si",
"transaction_table_description": "A table containing your transactions",
"account": "Tili",
"description": "Kuvaus",
"amount": "Summa",
"budget": "Budjetti",
"category": "Kategoria",
"opposing_account": "Vastatili"
},
"config": {
"html_language": "fi"

View File

@@ -6,7 +6,14 @@
"net_worth": "Avoir net",
"paid": "Pay\u00e9",
"yourAccounts": "Vos comptes",
"go_to_asset_accounts": "Afficher vos comptes d'actifs"
"go_to_asset_accounts": "Afficher vos comptes d'actifs",
"transaction_table_description": "Une table contenant vos op\u00e9rations",
"account": "Compte",
"description": "Description",
"amount": "Montant",
"budget": "Budget",
"category": "Cat\u00e9gorie",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "fr"

View File

@@ -6,7 +6,14 @@
"net_worth": "Nett\u00f3 \u00e9rt\u00e9k",
"paid": "Kifizetve",
"yourAccounts": "Banksz\u00e1ml\u00e1k",
"go_to_asset_accounts": "Eszk\u00f6zsz\u00e1ml\u00e1k megtekint\u00e9se"
"go_to_asset_accounts": "Eszk\u00f6zsz\u00e1ml\u00e1k megtekint\u00e9se",
"transaction_table_description": "A table containing your transactions",
"account": "Banksz\u00e1mla",
"description": "Le\u00edr\u00e1s",
"amount": "\u00d6sszeg",
"budget": "K\u00f6lts\u00e9gkeret",
"category": "Kateg\u00f3ria",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "hu"

View File

@@ -6,7 +6,14 @@
"net_worth": "Nilai bersih",
"paid": "Dibayar",
"yourAccounts": "Akun anda",
"go_to_asset_accounts": "Menampilkan rekening aset"
"go_to_asset_accounts": "Menampilkan rekening aset",
"transaction_table_description": "A table containing your transactions",
"account": "Rekening",
"description": "Deskripsi",
"amount": "Jumlah",
"budget": "Anggaran",
"category": "Kategori",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "id"

View File

@@ -6,7 +6,14 @@
"net_worth": "Patrimonio",
"paid": "Pagati",
"yourAccounts": "I tuoi conti",
"go_to_asset_accounts": "Visualizza i tuoi conti attivit\u00e0"
"go_to_asset_accounts": "Visualizza i tuoi conti attivit\u00e0",
"transaction_table_description": "Una tabella contenente le tue transazioni",
"account": "Conto",
"description": "Descrizione",
"amount": "Importo",
"budget": "Budget",
"category": "Categoria",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "it"

View File

@@ -6,7 +6,14 @@
"net_worth": "Formue",
"paid": "Betalt",
"yourAccounts": "Dine kontoer",
"go_to_asset_accounts": "Se aktivakontoene dine"
"go_to_asset_accounts": "Se aktivakontoene dine",
"transaction_table_description": "A table containing your transactions",
"account": "Konto",
"description": "Beskrivelse",
"amount": "Bel\u00f8p",
"budget": "Busjett",
"category": "Kategori",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "nb"

View File

@@ -6,7 +6,14 @@
"net_worth": "Kapitaal",
"paid": "Betaald",
"yourAccounts": "Je betaalrekeningen",
"go_to_asset_accounts": "Bekijk je betaalrekeningen"
"go_to_asset_accounts": "Bekijk je betaalrekeningen",
"transaction_table_description": "A table containing your transactions",
"account": "Rekening",
"description": "Omschrijving",
"amount": "Bedrag",
"budget": "Budget",
"category": "Categorie",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "nl"

View File

@@ -6,7 +6,14 @@
"net_worth": "Warto\u015b\u0107 netto",
"paid": "Zap\u0142acone",
"yourAccounts": "Twoje konta",
"go_to_asset_accounts": "Zobacz swoje konta aktyw\u00f3w"
"go_to_asset_accounts": "Zobacz swoje konta aktyw\u00f3w",
"transaction_table_description": "A table containing your transactions",
"account": "Konto",
"description": "Opis",
"amount": "Kwota",
"budget": "Bud\u017cet",
"category": "Kategoria",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "pl"

View File

@@ -6,7 +6,14 @@
"net_worth": "Valor L\u00edquido",
"paid": "Pago",
"yourAccounts": "Suas contas",
"go_to_asset_accounts": "Veja suas contas ativas"
"go_to_asset_accounts": "Veja suas contas ativas",
"transaction_table_description": "Uma tabela contendo suas transa\u00e7\u00f5es",
"account": "Conta",
"description": "Descri\u00e7\u00e3o",
"amount": "Valor",
"budget": "Or\u00e7amento",
"category": "Categoria",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "pt-br"

View File

@@ -6,7 +6,14 @@
"net_worth": "Valoarea net\u0103",
"paid": "Pl\u0103tit",
"yourAccounts": "Conturile dvs.",
"go_to_asset_accounts": "Vizualiza\u021bi conturile de active"
"go_to_asset_accounts": "Vizualiza\u021bi conturile de active",
"transaction_table_description": "A table containing your transactions",
"account": "Cont",
"description": "Descriere",
"amount": "Sum\u0103",
"budget": "Buget",
"category": "Categorie",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "ro"

View File

@@ -6,7 +6,14 @@
"net_worth": "\u041c\u043e\u0438 \u0441\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u044f",
"paid": "\u041e\u043f\u043b\u0430\u0447\u0435\u043d\u043e",
"yourAccounts": "\u0412\u0430\u0448\u0438 \u0441\u0447\u0435\u0442\u0430",
"go_to_asset_accounts": "\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0432\u0430\u0448\u0438\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0441\u0447\u0435\u0442\u043e\u0432"
"go_to_asset_accounts": "\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0432\u0430\u0448\u0438\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0441\u0447\u0435\u0442\u043e\u0432",
"transaction_table_description": "A table containing your transactions",
"account": "\u0421\u0447\u0451\u0442",
"description": "\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435",
"amount": "\u0421\u0443\u043c\u043c\u0430",
"budget": "\u0411\u044e\u0434\u0436\u0435\u0442",
"category": "\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "ru"

View File

@@ -6,7 +6,14 @@
"net_worth": "Nettof\u00f6rm\u00f6genhet",
"paid": "Betald",
"yourAccounts": "Dina konton",
"go_to_asset_accounts": "Visa dina tillg\u00e5ngskonton"
"go_to_asset_accounts": "Visa dina tillg\u00e5ngskonton",
"transaction_table_description": "A table containing your transactions",
"account": "Konto",
"description": "Beskrivning",
"amount": "Belopp",
"budget": "Budget",
"category": "Kategori",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "sv"

View File

@@ -6,7 +6,14 @@
"net_worth": "Net de\u011fer",
"paid": "\u00d6dendi",
"yourAccounts": "Hesaplar\u0131n\u0131z",
"go_to_asset_accounts": "Varl\u0131k hesaplar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fcleyin"
"go_to_asset_accounts": "Varl\u0131k hesaplar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fcleyin",
"transaction_table_description": "A table containing your transactions",
"account": "Hesap",
"description": "A\u00e7\u0131klama",
"amount": "Miktar",
"budget": "B\u00fct\u00e7e",
"category": "Kategori",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "tr"

View File

@@ -6,7 +6,14 @@
"net_worth": "T\u00e0i s\u1ea3n th\u1ef1c",
"paid": "\u0110\u00e3 thanh to\u00e1n",
"yourAccounts": "T\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n",
"go_to_asset_accounts": "Xem t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n"
"go_to_asset_accounts": "Xem t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n",
"transaction_table_description": "A table containing your transactions",
"account": "T\u00e0i kho\u1ea3n",
"description": "S\u1ef1 mi\u00eau t\u1ea3",
"amount": "S\u1ed1 ti\u1ec1n",
"budget": "Ng\u00e2n s\u00e1ch",
"category": "Danh m\u1ee5c",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "vi"

View File

@@ -6,7 +6,14 @@
"net_worth": "\u51c0\u503c",
"paid": "\u5df2\u4ed8\u6b3e",
"yourAccounts": "\u60a8\u7684\u5e10\u6237",
"go_to_asset_accounts": "\u68c0\u89c6\u60a8\u7684\u8d44\u4ea7\u5e10\u6237"
"go_to_asset_accounts": "\u68c0\u89c6\u60a8\u7684\u8d44\u4ea7\u5e10\u6237",
"transaction_table_description": "A table containing your transactions",
"account": "\u5e10\u6237",
"description": "\u63cf\u8ff0",
"amount": "\u91d1\u989d",
"budget": "\u9884\u7b97",
"category": "\u5206\u7c7b",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "zh-cn"

View File

@@ -6,7 +6,14 @@
"net_worth": "\u6de8\u503c",
"paid": "\u5df2\u4ed8\u6b3e",
"yourAccounts": "\u60a8\u7684\u5e33\u6236",
"go_to_asset_accounts": "\u6aa2\u8996\u60a8\u7684\u8cc7\u7522\u5e33\u6236"
"go_to_asset_accounts": "\u6aa2\u8996\u60a8\u7684\u8cc7\u7522\u5e33\u6236",
"transaction_table_description": "A table containing your transactions",
"account": "\u5e33\u6236",
"description": "\u63cf\u8ff0",
"amount": "\u91d1\u984d",
"budget": "\u9810\u7b97",
"category": "\u5206\u985e",
"opposing_account": "Opposing account"
},
"config": {
"html_language": "zh-tw"