Rebuild new frontend.

This commit is contained in:
James Cole
2020-11-22 07:50:55 +01:00
parent 4a54f484aa
commit ce7bc723ac
55 changed files with 449 additions and 119 deletions

View File

@@ -102,7 +102,7 @@ export default {
accounts: []
}
},
mounted() {
created() {
console.log('mounted account list.');
axios.get('./api/v1/accounts?type=' + this.$props.accountTypes)
.then(response => {

View File

@@ -93,6 +93,14 @@
<script>
export default {
name: "BudgetLimitRow",
mounted() {
this.locale = localStorage.locale ?? 'en-US';
},
data() {
return {
locale: 'en-US',
}
},
props: {
budgetLimit: {
type: Object,

View File

@@ -26,8 +26,8 @@
<div class="card-body table-responsive p-0">
<table class="table table-sm">
<tbody>
<BudgetLimitRow v-bind:key="budgetLimit.id" v-for="budgetLimit in budgetLimits" :budgetLimit="budgetLimit" />
<BudgetRow v-bind:key="budget.id" v-for="budget in budgets" :budget="budget" />
<BudgetLimitRow v-bind:key="key" v-for="(budgetLimit, key) in budgetLimits" :budgetLimit="budgetLimit" />
<BudgetRow v-bind:key="key" v-for="(budget, key) in budgets" :budget="budget" />
</tbody>
</table>
</div>

View File

@@ -34,6 +34,14 @@
<script>
export default {
name: "BudgetRow",
mounted() {
this.locale = localStorage.locale ?? 'en-US';
},
data() {
return {
locale: 'en-US',
}
},
props: {
budget: {
type: Object,

View File

@@ -21,6 +21,9 @@
<template>
<div>
<top-boxes/>
<div class="row">
<div class="col">
@@ -35,12 +38,11 @@
</div>
</div>
<!--
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<main-category />
<div class="row">
<div class="col">
<main-category-list />
</div>
-->
</div>
<!--
<div class="row">
@@ -67,7 +69,7 @@
<script>
export default {
name: "Dashboard",
mounted() {
created() {
if (!localStorage.currencyPreference) {
this.getCurrencyPreference();
}

View File

@@ -19,40 +19,40 @@
-->
<template>
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ $t('firefly.yourAccounts') }}</h3>
</div>
<div class="card-body">
<div>
<canvas id="mainAccountsChart" style="min-height: 400px; height: 400px; max-height: 400px; max-width: 100%;"></canvas>
</div>
</div>
<div class="card-footer">
<a href="./accounts/asset" class="btn btn-default button-sm"><i class="far fa-money-bill-alt"></i> {{ $t('firefly.go_to_asset_accounts') }}</a>
</div>
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ $t('firefly.yourAccounts') }}</h3>
</div>
<div class="card-body">
<div>
<canvas id="mainAccountsChart" style="min-height: 400px; height: 400px; max-height: 400px; max-width: 100%;"></canvas>
</div>
</div>
<div class="card-footer">
<a href="./accounts/asset" class="btn btn-default button-sm"><i class="far fa-money-bill-alt"></i> {{ $t('firefly.go_to_asset_accounts') }}</a>
</div>
</div>
</template>
<script>
import DataConverter from "../charts/DataConverter";
import DefaultLineOptions from "../charts/DefaultLineOptions";
import DataConverter from "../charts/DataConverter";
import DefaultLineOptions from "../charts/DefaultLineOptions";
export default {
name: "MainAccount",
mounted() {
axios.get('./api/v1/chart/account/overview?start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
export default {
name: "MainAccount",
created() {
axios.get('./api/v1/chart/account/overview?start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
let chartData = DataConverter.methods.convertChart(response.data);
chartData = DataConverter.methods.colorizeLineData(chartData);
let lineChartCanvas = $('#mainAccountsChart').get(0).getContext('2d');
new Chart(lineChartCanvas, {
type: 'line',
data: chartData,
options: DefaultLineOptions.methods.getDefaultOptions()
});
});
},
}
let chartData = DataConverter.methods.convertChart(response.data);
chartData = DataConverter.methods.colorizeLineData(chartData);
let lineChartCanvas = $('#mainAccountsChart').get(0).getContext('2d');
new Chart(lineChartCanvas, {
type: 'line',
data: chartData,
options: DefaultLineOptions.methods.getDefaultOptions()
});
});
},
}
</script>

View File

@@ -44,7 +44,7 @@ export default {
accounts: [],
}
},
mounted() {
created() {
axios.get('./api/v1/preferences/frontpageAccounts')
.then(response => {
this.loadAccounts(response);

View File

@@ -57,7 +57,7 @@
export default {
name: "MainBillsList",
mounted() {
created() {
axios.get('./api/v1/bills?start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
this.loadBills(response.data.data);

View File

@@ -39,7 +39,7 @@
import DataConverter from "../charts/DataConverter";
export default {
name: "MainBudget",
mounted() {
created() {
axios.get('./api/v1/chart/budget/overview?start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
let chartData = DataConverter.methods.convertChart(response.data);

View File

@@ -78,28 +78,23 @@ export default {
locale: 'en-US',
}
},
mounted() {
created() {
this.locale = localStorage.locale ?? 'en-US';
console.log('Mounted.')
this.collectData();
},
methods:
{
collectData() {
console.log('collectData');
this.getBudgets();
},
getBudgets() {
console.log('getBudgets()');
axios.get('./api/v1/budgets?start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
console.log('Go to parseBudgets');
this.parseBudgets(response.data);
}
);
},
parseBudgets(data) {
console.log('in parseBudgets');
for (let key in data.data) {
if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {
let current = data.data[key];
@@ -120,23 +115,18 @@ export default {
}
}
console.log('Found ' + this.rawBudgets.length + ' budgets + expense info.');
this.getBudgetLimits();
},
getBudgetLimits() {
console.log('getBudgetLimits');
axios.get('./api/v1/budgets/limits?start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
console.log('Go to parse budget limits.');
this.parseBudgetLimits(response.data);
}
);
},
parseBudgetLimits(data) {
console.log('parsebudgetlimits');
for (let key in data.included) {
if (data.included.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {
this.budgets[data.included[key].id] =
@@ -225,7 +215,6 @@ export default {
// };
//
//
// console.log(data.data[key]);
//
// let period = data.data[key].attributes.period ?? 'other';
// this.budgetLimits[period].push(obj);
@@ -234,19 +223,14 @@ export default {
},
filterBudgets(budgetId, currencyId) {
//console.log('filterBudgets(' + budgetId + ',' + currencyId + ')');
for (let key in this.rawBudgets) {
if (this.rawBudgets.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {
if (this.rawBudgets[key].currency_id === currencyId && this.rawBudgets[key].id === budgetId) {
//console.log('found! (' + budgetId + ',' + currencyId + ')');
this.rawBudgets.splice(key, 1);
}
}
}
console.log('Budgets to display left: ' + this.rawBudgets.length);
}
}
}
</script>

View File

@@ -39,7 +39,7 @@
import DataConverter from "../charts/DataConverter";
export default {
name: "MainCategory",
mounted() {
created() {
axios.get('./api/v1/chart/category/overview?start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
let chartData = DataConverter.methods.convertChart(response.data);

View File

@@ -0,0 +1,174 @@
<!--
- MainCategoryList.vue
- Copyright (c) 2020 james@firefly-iii.org
-
- This file is part of Firefly III (https://github.com/firefly-iii).
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<template>
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ $t('firefly.categories') }}</h3>
</div>
<div class="card-body table-responsive p-0">
<table class="table table-sm">
<tbody>
<tr v-for="category in sortedList">
<td style="width:20%;">
<a :href="'./categories/show/' + category.id">{{ category.name }}</a>
<!--<p>Spent: {{ category.spentPct }}</p>
<p>earned: {{ category.earnedPct }}</p>
-->
</td>
<td class="align-middle">
<!-- SPENT -->
<div class="progress" v-if="category.spentPct > 0">
<div class="progress-bar progress-bar-striped bg-danger" role="progressbar" :aria-valuenow="category.spentPct"
:style="{ width: category.spentPct + '%'}" aria-valuemin="0"
aria-valuemax="100">
<span v-if="category.spentPct > 20">
{{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}
</span>
</div>
<span v-if="category.spentPct <= 20">&nbsp;
{{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}
</span>
</div>
<!-- EARNED -->
<div class="progress justify-content-end" v-if="category.earnedPct > 0" title="hello2">
<span v-if="category.earnedPct <= 20">
{{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}
&nbsp;</span>
<div class="progress-bar progress-bar-striped bg-success" role="progressbar" :aria-valuenow="category.earnedPct" :style="{ width: category.earnedPct + '%'}" aria-valuemin="0"
aria-valuemax="100" title="hello">
<span v-if="category.earnedPct > 20">
{{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}
</span>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
<script>
export default {
name: "MainCategoryList",
mounted() {
this.locale = localStorage.locale ?? 'en-US';
this.getCategories();
},
data() {
return {
locale: 'en-US',
categories: [],
sortedList: [],
spent: 0,
earned: 0
}
},
methods:
{
getCategories() {
axios.get('./api/v1/categories?start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
this.parseCategories(response.data);
}
);
},
parseCategories(data) {
for (let key in data.data) {
if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {
let current = data.data[key];
let entryKey = null;
let categoryId = parseInt(current.id);
// loop spent info:
for (let subKey in current.attributes.spent) {
if (current.attributes.spent.hasOwnProperty(subKey) && /^0$|^[1-9]\d*$/.test(subKey) && subKey <= 4294967294) {
let spentData = current.attributes.spent[subKey];
entryKey = spentData.currency_id.toString() + '-' + current.id.toString();
// does the categories list thing have this combo? if not, create it.
this.categories[entryKey] = this.categories[entryKey] ??
{
id: categoryId,
name: current.attributes.name,
currency_code: spentData.currency_code,
currency_symbol: spentData.currency_symbol,
spent: 0,
earned: 0,
spentPct: 0,
earnedPct: 0,
};
this.categories[entryKey].spent = parseFloat(spentData.sum);
this.spent = parseFloat(spentData.sum) < this.spent ? parseFloat(spentData.sum) : this.spent;
}
}
// loop earned info
for (let subKey in current.attributes.earned) {
if (current.attributes.earned.hasOwnProperty(subKey) && /^0$|^[1-9]\d*$/.test(subKey) && subKey <= 4294967294) {
let earnedData = current.attributes.earned[subKey];
entryKey = earnedData.currency_id.toString() + '-' + current.id.toString();
// does the categories list thing have this combo? if not, create it.
this.categories[entryKey] = this.categories[entryKey] ??
{
id: categoryId,
name: current.attributes.name,
currency_code: earnedData.currency_code,
currency_symbol: earnedData.currency_symbol,
spent: 0,
earned: 0,
spentPct: 0,
earnedPct: 0,
};
this.categories[entryKey].earned = parseFloat(earnedData.sum);
this.earned = parseFloat(earnedData.sum) > this.earned ? parseFloat(earnedData.sum) : this.earned;
}
}
}
}
this.sortCategories();
},
sortCategories() {
this.categories.sort(function (one, two) {
return (one.spent + one.earned) - (two.spent + two.earned);
});
for (let cat in this.categories) {
if (this.categories.hasOwnProperty(cat)) {
let current = this.categories[cat];
current.spentPct = (current.spent / this.spent) * 100;
current.earnedPct = (current.earned / this.earned) * 100;
this.sortedList.push(current);
}
}
}
}
}
</script>
<style scoped>
</style>

View File

@@ -42,7 +42,7 @@
transactions: []
}
},
mounted() {
created() {
axios.get('./api/v1/transactions?type=deposit&limit=10&start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
this.transactions = response.data.data;

View File

@@ -41,7 +41,7 @@
export default {
name: "MainDebit",
mounted() {
created() {
axios.get('./api/v1/chart/account/expense?start=' + window.sessionStart + '&end=' + window.sessionEnd)
.then(response => {
let chartData = DataConverter.methods.convertChart(response.data);

View File

@@ -66,7 +66,7 @@
<script>
export default {
name: "MainPiggyList",
mounted() {
created() {
axios.get('./api/v1/piggy_banks')
.then(response => {
this.loadPiggyBanks(response.data.data);

View File

@@ -168,7 +168,7 @@ export default {
return this.filterOnNotCurrency(this.netWorth);
},
},
mounted() {
created() {
this.prepareComponent();
this.currencyPreference = localStorage.currencyPreference ? JSON.parse(localStorage.currencyPreference) : {};
},

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "\u0421\u043f\u0435\u0441\u0442\u043e\u0432\u043d\u0430 \u0441\u043c\u0435\u0442\u043a\u0430",
"account_role_sharedAsset": "\u0421\u043c\u0435\u0442\u043a\u0430 \u0437\u0430 \u0441\u043f\u043e\u0434\u0435\u043b\u0435\u043d\u0438 \u0430\u043a\u0442\u0438\u0432\u0438",
"account_role_ccAsset": "\u041a\u0440\u0435\u0434\u0438\u0442\u043d\u0430 \u043a\u0430\u0440\u0442\u0430",
"account_role_cashWalletAsset": "\u041f\u0430\u0440\u0438\u0447\u0435\u043d \u043f\u043e\u0440\u0442\u0444\u0435\u0439\u043b"
"account_role_cashWalletAsset": "\u041f\u0430\u0440\u0438\u0447\u0435\u043d \u043f\u043e\u0440\u0442\u0444\u0435\u0439\u043b",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "\u041a\u0430\u0441\u0438\u0447\u043a\u0430",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Spo\u0159ic\u00ed \u00fa\u010det",
"account_role_sharedAsset": "Sd\u00edlen\u00fd \u00fa\u010det aktiv",
"account_role_ccAsset": "Kreditn\u00ed karta",
"account_role_cashWalletAsset": "Pen\u011b\u017eenka"
"account_role_cashWalletAsset": "Pen\u011b\u017eenka",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Pokladni\u010dka",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Sparkonto",
"account_role_sharedAsset": "Gemeinsames Bestandskonto",
"account_role_ccAsset": "Kreditkarte",
"account_role_cashWalletAsset": "Geldb\u00f6rse"
"account_role_cashWalletAsset": "Geldb\u00f6rse",
"daily_budgets": "Tagesbudgets",
"weekly_budgets": "Wochenbudgets",
"monthly_budgets": "Monatsbudgets",
"quarterly_budgets": "Quartalsbudgets",
"half_year_budgets": "Halbjahresbudgets",
"yearly_budgets": "Jahresbudgets",
"other_budgets": "Zeitlich befristete Budgets"
},
"list": {
"piggy_bank": "Sparschwein",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "\u039b\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03cc\u03c2 \u03b1\u03c0\u03bf\u03c4\u03b1\u03bc\u03af\u03b5\u03c5\u03c3\u03b7\u03c2",
"account_role_sharedAsset": "\u039a\u03bf\u03b9\u03bd\u03cc\u03c2 \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03cc\u03c2 \u03ba\u03b5\u03c6\u03b1\u03bb\u03b1\u03af\u03bf\u03c5",
"account_role_ccAsset": "\u03a0\u03b9\u03c3\u03c4\u03c9\u03c4\u03b9\u03ba\u03ae \u03ba\u03ac\u03c1\u03c4\u03b1",
"account_role_cashWalletAsset": "\u03a0\u03bf\u03c1\u03c4\u03bf\u03c6\u03cc\u03bb\u03b9 \u03bc\u03b5\u03c4\u03c1\u03b7\u03c4\u03ce\u03bd"
"account_role_cashWalletAsset": "\u03a0\u03bf\u03c1\u03c4\u03bf\u03c6\u03cc\u03bb\u03b9 \u03bc\u03b5\u03c4\u03c1\u03b7\u03c4\u03ce\u03bd",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "\u039a\u03bf\u03c5\u03bc\u03c0\u03b1\u03c1\u03ac\u03c2",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Savings account",
"account_role_sharedAsset": "Shared asset account",
"account_role_ccAsset": "Credit card",
"account_role_cashWalletAsset": "Cash wallet"
"account_role_cashWalletAsset": "Cash wallet",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Piggy bank",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Savings account",
"account_role_sharedAsset": "Shared asset account",
"account_role_ccAsset": "Credit card",
"account_role_cashWalletAsset": "Cash wallet"
"account_role_cashWalletAsset": "Cash wallet",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Piggy bank",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Cuentas de ahorros",
"account_role_sharedAsset": "Cuenta de ingresos compartida",
"account_role_ccAsset": "Tarjeta de Cr\u00e9dito",
"account_role_cashWalletAsset": "Billetera de efectivo"
"account_role_cashWalletAsset": "Billetera de efectivo",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Alcancilla",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "S\u00e4\u00e4st\u00f6tili",
"account_role_sharedAsset": "Jaettu k\u00e4ytt\u00f6tili",
"account_role_ccAsset": "Luottokortti",
"account_role_cashWalletAsset": "K\u00e4teinen"
"account_role_cashWalletAsset": "K\u00e4teinen",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "S\u00e4\u00e4st\u00f6possu",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Compte d\u2019\u00e9pargne",
"account_role_sharedAsset": "Compte d'actif partag\u00e9",
"account_role_ccAsset": "Carte de cr\u00e9dit",
"account_role_cashWalletAsset": "Porte-monnaie"
"account_role_cashWalletAsset": "Porte-monnaie",
"daily_budgets": "Budgets quotidiens",
"weekly_budgets": "Budgets hebdomadaires",
"monthly_budgets": "Budgets mensuels",
"quarterly_budgets": "Budgets trimestriels",
"half_year_budgets": "Budgets semestriels",
"yearly_budgets": "Budgets annuels",
"other_budgets": "Budgets \u00e0 p\u00e9riode personnalis\u00e9e"
},
"list": {
"piggy_bank": "Tirelire",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Megtakar\u00edt\u00e1si sz\u00e1mla",
"account_role_sharedAsset": "Megosztott eszk\u00f6zsz\u00e1mla",
"account_role_ccAsset": "Hitelk\u00e1rtya",
"account_role_cashWalletAsset": "K\u00e9szp\u00e9nz"
"account_role_cashWalletAsset": "K\u00e9szp\u00e9nz",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Malacpersely",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Conto risparmio",
"account_role_sharedAsset": "Conto attivit\u00e0 condiviso",
"account_role_ccAsset": "Carta di credito",
"account_role_cashWalletAsset": "Portafoglio"
"account_role_cashWalletAsset": "Portafoglio",
"daily_budgets": "Budget giornalieri",
"weekly_budgets": "Budget settimanali",
"monthly_budgets": "Budget mensili",
"quarterly_budgets": "Bilanci trimestrali",
"half_year_budgets": "Bilanci semestrali",
"yearly_budgets": "Budget annuali",
"other_budgets": "Budget a periodi personalizzati"
},
"list": {
"piggy_bank": "Salvadanaio",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Sparekonto",
"account_role_sharedAsset": "Delt aktivakonto",
"account_role_ccAsset": "Kredittkort",
"account_role_cashWalletAsset": "Kontant lommebok"
"account_role_cashWalletAsset": "Kontant lommebok",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Sparegris",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Spaarrekening",
"account_role_sharedAsset": "Gedeelde betaalrekening",
"account_role_ccAsset": "Credit card",
"account_role_cashWalletAsset": "Cash"
"account_role_cashWalletAsset": "Cash",
"daily_budgets": "Dagelijkse budgetten",
"weekly_budgets": "Wekelijkse budgetten",
"monthly_budgets": "Maandelijkse budgetten",
"quarterly_budgets": "Driemaandelijkse budgetten",
"half_year_budgets": "Halfjaarlijkse budgetten",
"yearly_budgets": "Jaarlijkse budgetten",
"other_budgets": "Aangepaste budgetten"
},
"list": {
"piggy_bank": "Spaarpotje",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Konto oszcz\u0119dno\u015bciowe",
"account_role_sharedAsset": "Wsp\u00f3\u0142dzielone konto aktyw\u00f3w",
"account_role_ccAsset": "Karta kredytowa",
"account_role_cashWalletAsset": "Portfel got\u00f3wkowy"
"account_role_cashWalletAsset": "Portfel got\u00f3wkowy",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Skarbonka",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Conta poupan\u00e7a",
"account_role_sharedAsset": "Contas de ativos compartilhadas",
"account_role_ccAsset": "Cart\u00e3o de cr\u00e9dito",
"account_role_cashWalletAsset": "Carteira de dinheiro"
"account_role_cashWalletAsset": "Carteira de dinheiro",
"daily_budgets": "Or\u00e7amentos di\u00e1rios",
"weekly_budgets": "Or\u00e7amentos semanais",
"monthly_budgets": "Or\u00e7amentos mensais",
"quarterly_budgets": "Or\u00e7amentos trimestrais",
"half_year_budgets": "Or\u00e7amentos semestrais",
"yearly_budgets": "Or\u00e7amentos anuais",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Cofrinho",

View File

@@ -25,16 +25,23 @@
"go_to_bills": "Mergi la facturi",
"bills": "Facturi",
"go_to_piggies": "Mergi la pu\u0219culi\u021b\u0103",
"saved": "Saved",
"saved": "Salvat",
"piggy_banks": "Pu\u0219culi\u021b\u0103",
"piggy_bank": "Pu\u0219culi\u021b\u0103",
"amounts": "Amounts",
"Default asset account": "Ccont de active implicit",
"Default asset account": "Cont de active implicit",
"account_role_defaultAsset": "Contul implicit activ",
"account_role_savingAsset": "Cont de economii",
"account_role_sharedAsset": "Contul de active partajat",
"account_role_ccAsset": "Card de credit",
"account_role_cashWalletAsset": "Cash - Numerar"
"account_role_cashWalletAsset": "Cash - Numerar",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Pu\u0219culi\u021b\u0103",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "\u0421\u0431\u0435\u0440\u0435\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0447\u0435\u0442",
"account_role_sharedAsset": "\u041e\u0431\u0449\u0438\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0447\u0451\u0442",
"account_role_ccAsset": "\u041a\u0440\u0435\u0434\u0438\u0442\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0430",
"account_role_cashWalletAsset": "\u041a\u043e\u0448\u0435\u043b\u0451\u043a \u0441 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u043c\u0438"
"account_role_cashWalletAsset": "\u041a\u043e\u0448\u0435\u043b\u0451\u043a \u0441 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u043c\u0438",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "\u041a\u043e\u043f\u0438\u043b\u043a\u0430",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "\u0160etriaci \u00fa\u010det",
"account_role_sharedAsset": "Zdie\u013ean\u00fd \u00fa\u010det akt\u00edv",
"account_role_ccAsset": "Kreditn\u00e1 karta",
"account_role_cashWalletAsset": "Pe\u0148a\u017eenka"
"account_role_cashWalletAsset": "Pe\u0148a\u017eenka",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Pokladni\u010dka",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "Sparkonto",
"account_role_sharedAsset": "Delat tillg\u00e5ngskonto",
"account_role_ccAsset": "Kreditkort",
"account_role_cashWalletAsset": "Pl\u00e5nbok"
"account_role_cashWalletAsset": "Pl\u00e5nbok",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "Spargris",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "T\u00e0i kho\u1ea3n ti\u1ebft ki\u1ec7m",
"account_role_sharedAsset": "t\u00e0i kho\u1ea3n d\u00f9ng chung",
"account_role_ccAsset": "Th\u1ebb t\u00edn d\u1ee5ng",
"account_role_cashWalletAsset": "V\u00ed ti\u1ec1n m\u1eb7t"
"account_role_cashWalletAsset": "V\u00ed ti\u1ec1n m\u1eb7t",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "\u1ed0ng heo con",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "\u50a8\u84c4\u5e10\u6237",
"account_role_sharedAsset": "\u5171\u7528\u8d44\u4ea7\u5e10\u6237",
"account_role_ccAsset": "\u4fe1\u7528\u5361",
"account_role_cashWalletAsset": "\u73b0\u91d1\u94b1\u5305"
"account_role_cashWalletAsset": "\u73b0\u91d1\u94b1\u5305",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "\u5b58\u94b1\u7f50",

View File

@@ -34,7 +34,14 @@
"account_role_savingAsset": "\u5132\u84c4\u5e33\u6236",
"account_role_sharedAsset": "\u5171\u7528\u8cc7\u7522\u5e33\u6236",
"account_role_ccAsset": "\u4fe1\u7528\u5361",
"account_role_cashWalletAsset": "\u73fe\u91d1\u9322\u5305"
"account_role_cashWalletAsset": "\u73fe\u91d1\u9322\u5305",
"daily_budgets": "Daily budgets",
"weekly_budgets": "Weekly budgets",
"monthly_budgets": "Monthly budgets",
"quarterly_budgets": "Quarterly budgets",
"half_year_budgets": "Half-yearly budgets",
"yearly_budgets": "Yearly budgets",
"other_budgets": "Custom timed budgets"
},
"list": {
"piggy_bank": "\u5c0f\u8c6c\u64b2\u6eff",

View File

@@ -23,9 +23,7 @@ import TopBoxes from "../components/dashboard/TopBoxes";
import MainAccount from "../components/dashboard/MainAccount";
import MainAccountList from "../components/dashboard/MainAccountList";
import MainBillsList from "../components/dashboard/MainBillsList";
import MainBudget from "../components/dashboard/MainBudget";
import MainBudgetList from "../components/dashboard/MainBudgetList";
import MainCategory from "../components/dashboard/MainCategory";
import MainCredit from "../components/dashboard/MainCredit";
import MainDebit from "../components/dashboard/MainDebit";
import MainPiggyList from "../components/dashboard/MainPiggyList";
@@ -34,6 +32,7 @@ import TransactionListMedium from "../components/transactions/TransactionListMed
import TransactionListSmall from "../components/transactions/TransactionListSmall";
import DatePicker from 'v-calendar/lib/components/date-picker.umd'
import Calendar from "../components/dashboard/Calendar";
import MainCategoryList from "../components/dashboard/MainCategoryList";
/**
* First we will load Axios via bootstrap.js
* jquery and bootstrap-sass preloaded in app.js
@@ -42,6 +41,7 @@ import Calendar from "../components/dashboard/Calendar";
require('../bootstrap');
require('chart.js');
Vue.config.devtools = false;
Vue.component('transaction-list-large', TransactionListLarge);
Vue.component('transaction-list-medium', TransactionListMedium);
@@ -54,9 +54,8 @@ Vue.component('top-boxes', TopBoxes);
Vue.component('main-account', MainAccount);
Vue.component('main-account-list', MainAccountList);
Vue.component('main-bills-list', MainBillsList);
Vue.component('main-budget', MainBudget);
Vue.component('main-budget-list', MainBudgetList);
Vue.component('main-category', MainCategory);
Vue.component('main-category-list', MainCategoryList);
Vue.component('main-credit', MainCredit);
Vue.component('main-debit', MainDebit);
Vue.component('main-piggy-list', MainPiggyList);
@@ -66,11 +65,12 @@ let i18n = require('../i18n');
let props = {};
new Vue({
i18n,
el: "#dashboard",
render: (createElement) => {
return createElement(Dashboard, { props: props });
return createElement(Dashboard, {props: props});
},
});
@@ -78,6 +78,6 @@ new Vue({
i18n,
el: "#calendar",
render: (createElement) => {
return createElement(Calendar, { props: props });
return createElement(Calendar, {props: props});
},
});

View File

@@ -6392,20 +6392,20 @@ string-width@^4.1.0, string-width@^4.2.0:
strip-ansi "^6.0.0"
string.prototype.trimend@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.2.tgz#6ddd9a8796bc714b489a3ae22246a208f37bfa46"
integrity sha512-8oAG/hi14Z4nOVP0z6mdiVZ/wqjDtWSLygMigTzAb+7aPEDTleeFf+WrF+alzecxIRkckkJVn+dTlwzJXORATw==
version "1.0.3"
resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.3.tgz#a22bd53cca5c7cf44d7c9d5c732118873d6cd18b"
integrity sha512-ayH0pB+uf0U28CtjlLvL7NaohvR1amUvVZk+y3DYb0Ey2PUV5zPkkKy9+U1ndVEIXO8hNg18eIv9Jntbii+dKw==
dependencies:
call-bind "^1.0.0"
define-properties "^1.1.3"
es-abstract "^1.18.0-next.1"
string.prototype.trimstart@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.2.tgz#22d45da81015309cd0cdd79787e8919fc5c613e7"
integrity sha512-7F6CdBTl5zyu30BJFdzSTlSlLPwODC23Od+iLoVH8X6+3fvDPPuBVVj9iaB1GOsSTSIgVfsfm27R2FGrAPznWg==
version "1.0.3"
resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.3.tgz#9b4cb590e123bb36564401d59824298de50fd5aa"
integrity sha512-oBIBUy5lea5tt0ovtOFiEQaBkoBBkyJhZXzJYrSmDo5IUUqbOPvVezuRs/agBIdZ2p2Eo1FD6bD9USyBLfl3xg==
dependencies:
call-bind "^1.0.0"
define-properties "^1.1.3"
es-abstract "^1.18.0-next.1"
string_decoder@^1.0.0, string_decoder@^1.1.1:
version "1.3.0"