Experimental rebuild.

This commit is contained in:
James Cole
2021-06-19 19:29:51 +02:00
parent 1f2c0f634b
commit 1bd87bfb88
34 changed files with 61 additions and 57 deletions

View File

@@ -102,6 +102,7 @@ Vue.component('date-picker', DatePicker)
export default {
name: "Calendar",
created() {
console.log('Now in calendar created');
this.ready = true;
this.locale = localStorage.locale ?? 'en-US';
},
@@ -128,9 +129,9 @@ export default {
],
),
resetDate: function () {
//console.log('Reset date to');
//console.log(this.defaultStart);
//console.log(this.defaultEnd);
console.log('Reset date to');
console.log(this.defaultStart);
console.log(this.defaultEnd);
this.range.start = this.defaultStart;
this.range.end = this.defaultEnd;
this.setStart(this.defaultStart);
@@ -511,7 +512,7 @@ export default {
},
generatePeriods: function () {
this.periods = [];
//console.log('The view range is "' + this.viewRange + '".');
console.log('The view range is "' + this.viewRange + '".');
switch (this.viewRange) {
case '1D':
this.generateDaily();

View File

@@ -66,6 +66,7 @@ export default new Vuex.Store(
state.currencyPreference = payload.payload;
},
initialiseStore(state) {
console.log('Now in initialiseStore()')
// if locale in local storage:
if (localStorage.locale) {
state.locale = localStorage.locale;
@@ -97,6 +98,7 @@ export default new Vuex.Store(
actions: {
updateCurrencyPreference(context) {
console.log('Now in updateCurrencyPreference');
if (localStorage.currencyPreference) {
context.commit('setCurrencyPreference', {payload: JSON.parse(localStorage.currencyPreference)});
return;

View File

@@ -61,7 +61,7 @@ const getters = {
// actions
const actions = {
initialiseStore(context) {
// console.log('initialiseStore');
console.log('initialiseStore for dashboard.');
// restore from local storage:
context.dispatch('restoreViewRange');

View File

@@ -138,8 +138,8 @@
"account_type_mortgage": "Hypothek",
"save_transactions_by_moving_js": "Keine Buchungen|Speichern Sie diese Buchung, indem Sie sie auf ein anderes Konto verschieben. |Speichern Sie diese Buchungen, indem Sie sie auf ein anderes Konto verschieben.",
"none_in_select_list": "(Keine)",
"transaction_expand_split": "Expand split",
"transaction_collapse_split": "Collapse split"
"transaction_expand_split": "Aufteilung erweitern",
"transaction_collapse_split": "Aufteilung reduzieren"
},
"list": {
"piggy_bank": "Sparschwein",

View File

@@ -138,8 +138,8 @@
"account_type_mortgage": "Pr\u00eat immobilier",
"save_transactions_by_moving_js": "Aucune op\u00e9ration|Conserver cette op\u00e9ration en la d\u00e9pla\u00e7ant vers un autre compte. |Conserver ces op\u00e9rations en les d\u00e9pla\u00e7ant vers un autre compte.",
"none_in_select_list": "(aucun)",
"transaction_expand_split": "Expand split",
"transaction_collapse_split": "Collapse split"
"transaction_expand_split": "D\u00e9velopper la ventilation",
"transaction_collapse_split": "R\u00e9duire la ventilation"
},
"list": {
"piggy_bank": "Tirelire",

View File

@@ -138,8 +138,8 @@
"account_type_mortgage": "Hipoteka",
"save_transactions_by_moving_js": "Brak transakcji|Zapisz t\u0119 transakcj\u0119, przenosz\u0105c j\u0105 na inne konto.|Zapisz te transakcje przenosz\u0105c je na inne konto.",
"none_in_select_list": "(\u017cadne)",
"transaction_expand_split": "Expand split",
"transaction_collapse_split": "Collapse split"
"transaction_expand_split": "Rozwi\u0144 podzia\u0142",
"transaction_collapse_split": "Zwi\u0144 podzia\u0142"
},
"list": {
"piggy_bank": "Skarbonka",

View File

@@ -138,8 +138,8 @@
"account_type_mortgage": "Hipoteca",
"save_transactions_by_moving_js": "Nenhuma transa\u00e7\u00e3o.|Salve esta transa\u00e7\u00e3o movendo-a para outra conta.|Salve essas transa\u00e7\u00f5es movendo-as para outra conta.",
"none_in_select_list": "(nenhum)",
"transaction_expand_split": "Expand split",
"transaction_collapse_split": "Collapse split"
"transaction_expand_split": "Exibir divis\u00e3o",
"transaction_collapse_split": "Esconder divis\u00e3o"
},
"list": {
"piggy_bank": "Cofrinho",

View File

@@ -85,6 +85,7 @@ new Vue({
this.$store.dispatch('dashboard/index/initialiseStore');
},
});
new Vue({
i18n,
store,

View File

@@ -6499,9 +6499,9 @@ vue-hot-reload-api@^2.3.0:
integrity sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==
vue-i18n@^8.24.2:
version "8.24.4"
resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-8.24.4.tgz#b158614c1df7db183d9cadddbb73e1d540269492"
integrity sha512-RZE94WUAGxEiBAANxQ0pptbRwDkNKNSXl3fnJslpFOxVMF6UkUtMDSuYGuW2blDrVgweIXVpethOVkYoNNT9xw==
version "8.24.5"
resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-8.24.5.tgz#7127a666d5be2199be69be39e439a419a90ff931"
integrity sha512-p8W5xOmniuZ8fj76VXe0vBL3bRWVU87jHuC/v8VwmhKVH2iMQsKnheB1U+umxDBqC/5g9K+NwzokepcLxnBAVQ==
vue-loader@^15.9.5:
version "15.9.7"