Skip to content

Firefly III: a personal finances manager

Fix modals, some buttons, active/inactive budgets.

James Cole3a6ee117bc8d
diff --git a/package-lock.json b/package-lock.json
index 0c30d983d4..82f2d4eead 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2064,6 +2064,9 @@
"arm"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2085,6 +2088,9 @@
"arm"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2106,6 +2112,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2127,6 +2136,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2148,6 +2160,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2169,6 +2184,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2341,6 +2359,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2358,6 +2379,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2375,6 +2399,9 @@
"ppc64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2392,6 +2419,9 @@
"s390x"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2409,6 +2439,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2426,6 +2459,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -7547,6 +7583,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -7568,6 +7607,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -7589,6 +7631,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -7610,6 +7655,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MPL-2.0",
"optional": true,
"os": [
diff --git a/resources/assets/v1/mix-manifest.json b/resources/assets/v1/mix-manifest.json
index dfb89239c8..589bf385c3 100644
--- a/resources/assets/v1/mix-manifest.json
+++ b/resources/assets/v1/mix-manifest.json
@@ -73,6 +73,8 @@
"/public/v1/js/ff/transactions/mass/edit-bulk.js": "/public/v1/js/ff/transactions/mass/edit-bulk.js",
"/public/v1/js/ff/transactions/mass/edit.js": "/public/v1/js/ff/transactions/mass/edit.js",
"/public/v1/js/ff/transactions/show.js": "/public/v1/js/ff/transactions/show.js",
+ "/public/v1/js/js/layout.js": "/public/v1/js/js/layout.js",
+ "/public/v1/js/js/layout.js.LICENSE.txt": "/public/v1/js/js/layout.js.LICENSE.txt",
"/public/v1/js/lib/Chart.bundle.min.js": "/public/v1/js/lib/Chart.bundle.min.js",
"/public/v1/js/lib/accounting.min.js": "/public/v1/js/lib/accounting.min.js",
"/public/v1/js/lib/bootstrap-multiselect.js": "/public/v1/js/lib/bootstrap-multiselect.js",
@@ -131,5 +133,13 @@
"/public/v1/js/lib/typeahead/typeahead.bundle.min.js": "/public/v1/js/lib/typeahead/typeahead.bundle.min.js",
"/public/v1/js/lib/typeahead/typeahead.jquery.js": "/public/v1/js/lib/typeahead/typeahead.jquery.js",
"/public/v1/js/lib/typeahead/typeahead.jquery.min.js": "/public/v1/js/lib/typeahead/typeahead.jquery.min.js",
- "/public/v1/js/lib/vue.js": "/public/v1/js/lib/vue.js"
+ "/public/v1/js/lib/vue.js": "/public/v1/js/lib/vue.js",
+ "/public/v1/js/webhooks/create.js": "/public/v1/js/webhooks/create.js",
+ "/public/v1/js/webhooks/create.js.LICENSE.txt": "/public/v1/js/webhooks/create.js.LICENSE.txt",
+ "/public/v1/js/webhooks/edit.js": "/public/v1/js/webhooks/edit.js",
+ "/public/v1/js/webhooks/edit.js.LICENSE.txt": "/public/v1/js/webhooks/edit.js.LICENSE.txt",
+ "/public/v1/js/webhooks/index.js": "/public/v1/js/webhooks/index.js",
+ "/public/v1/js/webhooks/index.js.LICENSE.txt": "/public/v1/js/webhooks/index.js.LICENSE.txt",
+ "/public/v1/js/webhooks/show.js": "/public/v1/js/webhooks/show.js",
+ "/public/v1/js/webhooks/show.js.LICENSE.txt": "/public/v1/js/webhooks/show.js.LICENSE.txt"
}
diff --git a/resources/assets/v1/webpack.mix.js b/resources/assets/v1/webpack.mix.js
index b3a690c5ff..404a7d8b10 100644
--- a/resources/assets/v1/webpack.mix.js
+++ b/resources/assets/v1/webpack.mix.js
@@ -27,7 +27,7 @@ mix.webpackConfig({
// 'vue$': 'vue/dist/vue.runtime.common.js'
},
fallback: {
- "stream": require.resolve("stream-browserify"),
+ // "stream": require.resolve("stream-browserify"),
"zlib": false,
"https": false,
"http": false
@@ -36,21 +36,3 @@ mix.webpackConfig({
});
mix.js('src/app.js', 'build').copy('build','../../../public/v1/js');
-// mix.js('src/app_vue.js', 'build').vue({version: 2});
-// mix.js('src/create_transaction.js', 'build').vue({version: 2});
-// mix.js('src/edit_transaction.js', 'build').vue({version: 2});
-// mix.js('src/profile.js', 'build').vue({version: 2});
-//
-// // webhooks
-// mix.js('src/webhooks/index.js', 'build/webhooks').vue({version: 2});
-// mix.js('src/webhooks/create.js', 'build/webhooks').vue({version: 2});
-// mix.js('src/webhooks/edit.js', 'build/webhooks').vue({version: 2});
-// mix.js('src/webhooks/show.js', 'build/webhooks').vue({version: 2}).copy('build','../../../public/v1/js')
-
-// exchange rates
-// mix.js('src/exchange-rates/index.js', 'build/exchange-rates').vue({version: 2});
-// mix.js('src/exchange-rates/rates.js', 'build/exchange-rates').vue({version: 2});
-
-// administrations
-// mix.js('src/administrations/index.js', 'build/administrations').vue({version: 2});
-// mix.js('src/administrations/edit.js', 'build/administrations').vue({version: 2});
diff --git a/resources/assets/v3/js/pages/transactions/create.js b/resources/assets/v3/js/pages/transactions/create.js
index 9fe863193f..939fe41eed 100644
--- a/resources/assets/v3/js/pages/transactions/create.js
+++ b/resources/assets/v3/js/pages/transactions/create.js
@@ -346,7 +346,7 @@ let create = function () {
this.formData.foreignCurrencies = data.foreignCurrencies;
});
- loadBudgets().then(data => {
+ loadBudgets(false).then(data => {
this.formData.budgets = data;
this.formStates.loadingBudgets = false;
});
diff --git a/resources/assets/v3/js/pages/transactions/edit.js b/resources/assets/v3/js/pages/transactions/edit.js
index 0fb4d7e757..976b399ca9 100644
--- a/resources/assets/v3/js/pages/transactions/edit.js
+++ b/resources/assets/v3/js/pages/transactions/edit.js
@@ -298,7 +298,7 @@ let transactions = function () {
this.formData.foreignCurrencies = data.foreignCurrencies;
});
- loadBudgets().then(data => {
+ loadBudgets(true).then(data => {
this.formData.budgets = data;
this.formStates.loadingBudgets = false;
});
diff --git a/resources/assets/v3/js/pages/transactions/shared/load-budgets.js b/resources/assets/v3/js/pages/transactions/shared/load-budgets.js
index a2f883f8bf..3279e65ce6 100644
--- a/resources/assets/v3/js/pages/transactions/shared/load-budgets.js
+++ b/resources/assets/v3/js/pages/transactions/shared/load-budgets.js
@@ -21,7 +21,7 @@
import Get from "../../../api/model/budget/get.js";
-export function loadBudgets() {
+export function loadBudgets(includeInactive) {
let params = {
page: 1, limit: 1337
};
@@ -34,10 +34,19 @@ export function loadBudgets() {
for (let i in response.data.data) {
if (response.data.data.hasOwnProperty(i)) {
let current = response.data.data[i];
- let obj = {
- id: current.id, name: current.attributes.name,
- };
- returnData.push(obj);
+ if(true === current.attributes.active) {
+ let obj = {
+ id: current.id, name: current.attributes.name,
+ };
+ returnData.push(obj);
+ continue;
+ }
+ if(includeInactive && false === current.attributes.active) {
+ let obj = {
+ id: current.id, name: current.attributes.name,
+ };
+ returnData.push(obj);
+ }
}
}
return returnData;
diff --git a/resources/views/accounts/reconcile/overview.blade.php b/resources/views/accounts/reconcile/overview.blade.php
index eeada18115..5202ae1172 100644
--- a/resources/views/accounts/reconcile/overview.blade.php
+++ b/resources/views/accounts/reconcile/overview.blade.php
@@ -4,7 +4,7 @@
<h5 class="modal-title">
{{ __('firefly.overview_of_reconcile_modal') }}
</h5>
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{ __('firefly.close') }}"></button>
+ <button type="button" class="btn-close" data-bs-dismiss="modal" tabindex="-1" aria-label="{{ __('firefly.close') }}"></button>
</div>
<form class="form-horizontal inline" id="income" action="{{ $route }}" method="POST">
diff --git a/resources/views/profile/oauth/index.blade.php b/resources/views/profile/oauth/index.blade.php
index f53ed83a0c..04033801dc 100644
--- a/resources/views/profile/oauth/index.blade.php
+++ b/resources/views/profile/oauth/index.blade.php
@@ -121,9 +121,9 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
- <h4 class="modal-title">
+ <h5 class="modal-title">
{{ __('firefly.profile_oauth_create_client') }}
- </h4>
+ </h5>
<button aria-hidden="true" class="close" data-bs-dismiss="modal"
type="button">&times;
@@ -225,9 +225,9 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
- <h4 class="modal-title">
+ <h5 class="modal-title">
{{ __('firefly.profile_oauth_edit_client') }}
- </h4>
+ </h5>
<button aria-hidden="true" class="close" data-bs-dismiss="modal"
type="button">&times;
@@ -311,9 +311,9 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
- <h4 class="modal-title">
+ <h5 class="modal-title">
{{ __('firefly.profile_oauth_client_secret_title') }}
- </h4>
+ </h5>
<button aria-hidden="true" class="close" data-bs-dismiss="modal"
type="button">&times;
@@ -415,9 +415,9 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
- <h4 class="modal-title">
+ <h5 class="modal-title">
{{ __('firefly.profile_create_token') }}
- </h4>
+ </h5>
<button aria-hidden="true" class="close" data-bs-dismiss="modal" type="button">
&times;
@@ -496,9 +496,9 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
- <h4 class="modal-title">
+ <h5 class="modal-title">
{{ __('firefly.profile_personal_access_token') }}
- </h4>
+ </h5>
<button aria-hidden="true" class="close" data-bs-dismiss="modal" type="button">
&times;
diff --git a/resources/views/recurring/edit.blade.php b/resources/views/recurring/edit.blade.php
index dba9c64ab0..57c0a50203 100644
--- a/resources/views/recurring/edit.blade.php
+++ b/resources/views/recurring/edit.blade.php
@@ -182,7 +182,7 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
- <h4 class="modal-title">{{ __('firefly.recurring_calendar_view') }}</h4>
+ <h5 class="modal-title">{{ __('firefly.recurring_calendar_view') }}</h5>
</div>
<div class="modal-body">
<div id="recurring_calendar" class="calendar-display">
diff --git a/resources/views/webhooks/show.blade.php b/resources/views/webhooks/show.blade.php
index 35170e1137..ede7a263d5 100644
--- a/resources/views/webhooks/show.blade.php
+++ b/resources/views/webhooks/show.blade.php
@@ -208,7 +208,7 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
- <h4 class="modal-title">{{ __('firefly.message_content_title') }}</h4>
+ <h5 class="modal-title">{{ __('firefly.message_content_title') }}</h5>
</div>
<div class="modal-body">
<p>
@@ -228,7 +228,7 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
- <h4 class="modal-title">{{ __('firefly.attempt_content_title') }}</h4>
+ <h5 class="modal-title">{{ __('firefly.attempt_content_title') }}</h5>
</div>
<div class="modal-body">
<p>
@@ -242,7 +242,7 @@
<template x-for="message in message_attempts">
<div style="border:1px #eee solid;margin-bottom:0.5em;">
<strong>
- <span x-text="i18next.t('firefly.webhook_attempt_at', {moment: message.created_at})"
+ <span x-text="i18next.t('firefly.webhook_attempt_at', {moment: message.created_at})"></span>
<span class="text-danger">(<span x-text="message.status_code"></span>)</span>
</strong>
<p>