Skip to content

Firefly III: a personal finances manager

Small improvements to various pages.

James Cole73e6976bd907
diff --git a/package-lock.json b/package-lock.json
index 0869ba40c7..68e3866683 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1773,6 +1773,25 @@
"integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",
"license": "MIT"
},
+ "node_modules/@full-ui/headless-calendar": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/@full-ui/headless-calendar/-/headless-calendar-7.0.1.tgz",
+ "integrity": "sha512-ridxaPRKiSzfeXkk8kta1wC9asYqPWXf4q0KbUW5hRvWQ1rkxeUbhBarcMEOFC7FvJHczPSAm0JzSrXv/ykuKw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "temporal-polyfill": "^1.0.1"
+ }
+ },
+ "node_modules/@fullcalendar/core": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-7.0.1.tgz",
+ "integrity": "sha512-SRJT4lSRZZGVCz6ss48pFCNiIS7iutpQVID73GFQufH94MTYs+akCW9aKCjMwsnEWad5UV7Mcm4xndFQ4dDi0g==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@full-ui/headless-calendar": "7.0.1",
+ "temporal-polyfill": "^1.0.1"
+ }
+ },
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
@@ -2036,6 +2055,9 @@
"arm"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2057,6 +2079,9 @@
"arm"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2078,6 +2103,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2099,6 +2127,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2120,6 +2151,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2141,6 +2175,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2313,6 +2350,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2330,6 +2370,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2347,6 +2390,9 @@
"ppc64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2364,6 +2410,9 @@
"s390x"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2381,6 +2430,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -2398,6 +2450,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -3558,9 +3613,9 @@
"license": "MIT"
},
"node_modules/baseline-browser-mapping": {
- "version": "2.10.44",
- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.44.tgz",
- "integrity": "sha512-T3ghW+sl/ZJ8w1v/yQx3qvJ9040DWoLBz8JT/CILbAKcFyG9b2MRe75v6W5uXjv6uH1lumK2Kv46y2zSkcej0Q==",
+ "version": "2.11.0",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.0.tgz",
+ "integrity": "sha512-oCu2wfipvX3AePSgmOuKkIywOu+8n9psz7hXYmk56ghpu3+7KzNIBopaOs4c9BrtdnTtW30unG9GTfHo7EwERQ==",
"dev": true,
"license": "Apache-2.0",
"bin": {
@@ -5920,6 +5975,20 @@
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
+ "node_modules/fullcalendar": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fullcalendar/-/fullcalendar-7.0.1.tgz",
+ "integrity": "sha512-e4HymMjH93UtKq9srPeN1cwmVsW5w6CmVNIb4qr4q1tMpl8RpMD9zaJAbbtlSjjMH0ELGP9yJwq9l34wDPUenA==",
+ "license": "MIT",
+ "dependencies": {
+ "@full-ui/headless-calendar": "7.0.1",
+ "@fullcalendar/core": "7.0.1",
+ "preact": "^10.29.0"
+ },
+ "peerDependencies": {
+ "temporal-polyfill": "^1.0.1"
+ }
+ },
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
@@ -7476,6 +7545,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -7497,6 +7569,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -7518,6 +7593,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -7539,6 +7617,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -8651,9 +8732,9 @@
}
},
"node_modules/postcss": {
- "version": "8.5.20",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.20.tgz",
- "integrity": "sha512-lW616l85ucIQL+FocMmL7pQFPqBmwejrCMg+iPxyImlrANNJG9NHq/RkyCZopDhd8C3LA03PHRJDjkbGu8vvug==",
+ "version": "8.5.21",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.21.tgz",
+ "integrity": "sha512-v4sDNP3fdNiWMfabO7OwOQdOX8TiQSztKyT1Wj0w+j7LDallJThJRBBBmzVGyYj0crMh7jlV4zepPkiNu9UwDQ==",
"dev": true,
"funding": [
{
@@ -9286,6 +9367,24 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/preact": {
+ "version": "10.29.7",
+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.29.7.tgz",
+ "integrity": "sha512-DCHYrK/B10yUD3ZjLfhZ3WIE/9Vf9VFUODcRE2dRomTYDpJk6z6L9wecSfhfE6M9ZTHUdyQkoC46arIDhEV84Q==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/preact"
+ },
+ "peerDependencies": {
+ "preact-render-to-string": ">=5"
+ },
+ "peerDependenciesMeta": {
+ "preact-render-to-string": {
+ "optional": true
+ }
+ }
+ },
"node_modules/pretty-time": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/pretty-time/-/pretty-time-1.1.0.tgz",
@@ -10642,6 +10741,31 @@
"url": "https://opencollective.com/webpack"
}
},
+ "node_modules/temporal-polyfill": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/temporal-polyfill/-/temporal-polyfill-1.0.1.tgz",
+ "integrity": "sha512-N2SoI9olnW7BUsU8RosDphZQl9s+WJ8O7PoJMFCr/e5/1rFkVI4GNOWaSeySG+UoP04foPYsnLWbJmbXOiShZg==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "temporal-spec": "1.0.0",
+ "temporal-utils": "1.0.1"
+ }
+ },
+ "node_modules/temporal-spec": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/temporal-spec/-/temporal-spec-1.0.0.tgz",
+ "integrity": "sha512-00Ahj1e1ifaERTMOIIGpOCdOo9IEk2m6GGSMedsn9a2SIsGLdOTbmME1Htv6IM82b6VHrzSUTIVc7YHy6hdhFQ==",
+ "license": "Apache-2.0",
+ "peer": true
+ },
+ "node_modules/temporal-utils": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/temporal-utils/-/temporal-utils-1.0.1.tgz",
+ "integrity": "sha512-HAixuesxFQIUaQk3ptX2jhfO/FsOkgVkDDMawvp6n/fkB1q6BKfs3lURw9I+pK/2e2e/q/vrLrxmeqauBoyGMQ==",
+ "license": "MIT",
+ "peer": true
+ },
"node_modules/terser": {
"version": "5.49.0",
"resolved": "https://registry.npmjs.org/terser/-/terser-5.49.0.tgz",
@@ -11102,6 +11226,12 @@
"node": ">= 0.4"
}
},
+ "node_modules/use-bootstrap-tag": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/use-bootstrap-tag/-/use-bootstrap-tag-2.2.2.tgz",
+ "integrity": "sha512-9ny8LwuYCCeqgIdC50wfzaUZC5ELJfnQvoiukKGxDkxlss3sX1d5MXtJ5Whi00TseFA6g0I9fW/9f0eIgIWVLQ==",
+ "license": "MIT"
+ },
"node_modules/util": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz",
@@ -12148,13 +12278,15 @@
"bootstrap5-tags": "^1.7.17",
"cally": "^0.9.2",
"date-fns": "4.4.0",
+ "fullcalendar": "^7.0.1",
"i18next": "^26.0.3",
"i18next-chained-backend": "^5.0.0",
"i18next-http-backend": "^4.0.0",
"i18next-localstorage-backend": "^4.2.0",
"patch-package": "^8.0.1",
"shepherd.js": "^15.2.2",
- "store": "^2.0.12"
+ "store": "^2.0.12",
+ "use-bootstrap-tag": "^2.2.2"
},
"devDependencies": {
"concurrently": "^10",
diff --git a/public/v1/js/ff/bills/create.js b/public/v1/js/ff/bills/create.js
index 4ee97b5474..38eba72606 100644
--- a/public/v1/js/ff/bills/create.js
+++ b/public/v1/js/ff/bills/create.js
@@ -22,12 +22,5 @@
$(document).ready(function () {
"use strict";
- $(".content-wrapper form input:enabled:visible:first").first().focus().select();
- if (!Modernizr.inputtypes.date) {
- $('input[type="date"]').datepicker(
- {
- dateFormat: 'yy-mm-dd'
- }
- );
- }
+ $("#ffInput_name").focus().select();
});
diff --git a/public/v1/js/ff/common/autocomplete.js b/public/v1/js/ff/common/autocomplete.js
index 9a300052a8..465243c612 100644
--- a/public/v1/js/ff/common/autocomplete.js
+++ b/public/v1/js/ff/common/autocomplete.js
@@ -23,38 +23,35 @@
*/
function initTagsAC() {
console.log('initTagsAC()');
- var tagTags = new Bloodhound({
- datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
- queryTokenizer: Bloodhound.tokenizers.whitespace,
- prefetch: {
- url: 'api/v1/autocomplete/tags?uid=' + uid,
- filter: function (list) {
- return $.map(list, function (item) {
- return {name: item.name};
- });
- }
- },
- remote: {
- url: 'api/v1/autocomplete/tags?query=%QUERY&uid=' + uid,
- wildcard: '%QUERY',
- filter: function (list) {
- return $.map(list, function (item) {
- return {name: item.name};
- });
- }
- }
- });
- tagTags.initialize();
- $('input[name="tags"]').tagsinput({
- typeaheadjs: {
- hint: true,
- highlight: true,
- name: 'tags',
- displayKey: 'name',
- valueKey: 'name',
- source: tagTags.ttAdapter()
- }
- });
+
+ var inputElement = document.getElementById('ffInput_tags');
+ new BootstrapSimpleAutocomplete(inputElement, {
+ fetchFunction: function (query) {
+ // Custom data fetching logic
+ return fetch('api/v1/autocomplete/tags?_token=' + token + '&query=' + encodeURIComponent(query),
+ {
+ method: 'GET',
+ credentials: 'include',
+ headers: {
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json',
+ 'X-CSRF-TOKEN': token
+ },
+ }
+ )
+ .then((response) => response.json())
+ .then((data) => {
+ var result = [];
+ for(var i in data) {
+ if(data.hasOwnProperty(i)) {
+ result.push(data[i].name);
+ }
+ }
+ // Process data if needed
+ return result;
+ });
+ },
+ });
}
/**
diff --git a/public/v1/js/ff/object-groups/ac.js b/public/v1/js/ff/object-groups/ac.js
new file mode 100644
index 0000000000..cbdd6b85d0
--- /dev/null
+++ b/public/v1/js/ff/object-groups/ac.js
@@ -0,0 +1,58 @@
+/*
+ * edit.js
+ * Copyright (c) 2019 [email protected]
+ *
+ * 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/>.
+ */
+
+/** global: Modernizr */
+
+$(document).ready(function () {
+ "use strict";
+ // auto complete for object group.
+ console.log('Object group auto complete thing.');
+
+ var inputElement = document.getElementById('ffInput_object_group');
+ new BootstrapSimpleAutocomplete(inputElement, {
+ fetchFunction: function (query) {
+ // Custom data fetching logic
+ return fetch('api/v1/autocomplete/object-groups?_token=' + token + '&query=' + encodeURIComponent(query),
+ {
+ method: 'GET',
+ credentials: 'include',
+ headers: {
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json',
+ 'X-CSRF-TOKEN': token
+ },
+ }
+ )
+ .then((response) => response.json())
+ .then((data) => {
+ var result = [];
+ for(var i in data) {
+ if(data.hasOwnProperty(i)) {
+ result.push(data[i].name);
+ }
+ }
+ // Process data if needed
+ return result;
+ });
+ },
+ });
+
+
+});
diff --git a/public/v1/js/ff/object-groups/create-edit.js b/public/v1/js/ff/object-groups/create-edit.js
index 828f8f84d1..5e32e28740 100644
--- a/public/v1/js/ff/object-groups/create-edit.js
+++ b/public/v1/js/ff/object-groups/create-edit.js
@@ -25,11 +25,11 @@ $(document).ready(function () {
// auto complete for object group.
console.log('Object group auto complete thing.');
- var inputElement = document.getElementById('ffInput_object_group');
+ var inputElement = document.getElementById('ffInput_title');
new BootstrapSimpleAutocomplete(inputElement, {
fetchFunction: function (query) {
// Custom data fetching logic
- return fetch('api/v1/autocomplete/object-groups?_token=' + token + 'query=' + encodeURIComponent(query),
+ return fetch('api/v1/autocomplete/object-groups?_token=' + token + '&query=' + encodeURIComponent(query),
{
method: 'GET',
credentials: 'include',
diff --git a/public/v1/js/ff/piggy-banks/create.js b/public/v1/js/ff/piggy-banks/create.js
index 4ee97b5474..2157290a21 100644
--- a/public/v1/js/ff/piggy-banks/create.js
+++ b/public/v1/js/ff/piggy-banks/create.js
@@ -22,12 +22,6 @@
$(document).ready(function () {
"use strict";
- $(".content-wrapper form input:enabled:visible:first").first().focus().select();
- if (!Modernizr.inputtypes.date) {
- $('input[type="date"]').datepicker(
- {
- dateFormat: 'yy-mm-dd'
- }
- );
- }
+ $("#ffInput_name").focus().select();
+
});
diff --git a/public/v1/js/ff/recurring/create.js b/public/v1/js/ff/recurring/create.js
index 70ab44a212..98d8e27b31 100644
--- a/public/v1/js/ff/recurring/create.js
+++ b/public/v1/js/ff/recurring/create.js
@@ -25,38 +25,34 @@ var calendar;
$(document).ready(function () {
"use strict";
$(".content-wrapper form input:enabled:visible:first").first().focus().select();
- if (!Modernizr.inputtypes.date) {
- $('input[type="date"]').datepicker(
- {
- dateFormat: 'yy-mm-dd'
- }
- );
- }
initializeButtons();
initializeAutoComplete();
- respondToFirstDateChange();
- respondToRepetitionEnd();
- $('.switch-button').on('click', switchTransactionType);
- $('#ffInput_repetition_end').on('change', respondToRepetitionEnd);
- $('#ffInput_first_date').on('change', respondToFirstDateChange);
-
+ // respondToFirstDateChange();
+ // respondToRepetitionEnd();
+ // $('.switch-button').on('click', switchTransactionType);
+ // $('#ffInput_repetition_end').on('change', respondToRepetitionEnd);
+ // $('#ffInput_first_date').on('change', respondToFirstDateChange);
+ //
// new date
- var firstDate = $('#ffInput_first_date').val();
-
- // create calendar on load:
- calendar = $('#recurring_calendar').fullCalendar(
- {
- defaultDate: firstDate,
- editable: false,
- height: 400,
- width: 200,
- contentHeight: 400,
- aspectRatio: 1.25,
- eventLimit: true,
- eventSources: [],
- });
-
- $('#calendar-link').on('click', showRepCalendar);
+ // var firstDate = $('#ffInput_first_date').val();
+ //
+ //
+ //
+ //
+ // // create calendar on load:
+ // calendar = $('#recurring_calendar').fullCalendar(
+ // {
+ // defaultDate: firstDate,
+ // editable: false,
+ // height: 400,
+ // width: 200,
+ // contentHeight: 400,
+ // aspectRatio: 1.25,
+ // eventLimit: true,
+ // eventSources: [],
+ // });
+ //
+ // $('#calendar-link').on('click', showRepCalendar);
});
/**
@@ -142,9 +138,9 @@ function parseRepetitionSuggestions(data) {
function initializeAutoComplete() {
initTagsAC();
- initExpenseAC();
- initRevenueAC();
- initCategoryAC();
+ // initExpenseAC();
+ // initRevenueAC();
+ // initCategoryAC();
}
/**
diff --git a/resources/assets/v3/js/pages/recurring/create.js b/resources/assets/v3/js/pages/recurring/create.js
new file mode 100644
index 0000000000..ebddd2e57e
--- /dev/null
+++ b/resources/assets/v3/js/pages/recurring/create.js
@@ -0,0 +1,100 @@
+/*
+ * dashboard.js
+ * Copyright (c) 2026 [email protected]
+ *
+ * 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/>.
+ */
+
+import '../../boot/bootstrap.js';
+import sidebar from '../../pages/shared/sidebar.js';
+import dates from '../shared/dates.js';
+import Autocomplete from "bootstrap5-autocomplete";
+let create = function () {
+ return {
+ createCategoryAutocomplete() {
+ console.log('here we are');
+ let token = 'hello';
+ Autocomplete.init('#ffInput_category', {
+
+ server: './api/v1/autocomplete/categories?_token=' + token,
+ onServerResponse: function(data) {
+ console.log(data.body);
+ return Promise.resolve(data);
+ },
+
+ fetchFunction: function (query) {
+ // Custom data fetching logic
+ return fetch('api/v1/autocomplete/categories?_token=' + token + '&query=' + encodeURIComponent(query),
+ {
+ method: 'GET',
+ credentials: 'include',
+ headers: {
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json',
+ 'X-CSRF-TOKEN': token
+ },
+ }
+ )
+ .then((response) => response.json())
+ .then((data) => {
+ var result = [];
+ for(var i in data) {
+ if(data.hasOwnProperty(i)) {
+ result.push(data[i].name);
+ }
+ }
+ // Process data if needed
+ return result;
+ });
+ },
+ });
+ },
+ init() {
+ this.createAutocomplete();
+ },
+ createAutocomplete() {
+ this.createCategoryAutocomplete();
+ }
+ }
+};
+
+
+const comps = {
+ create,
+ sidebar,
+ dates
+};
+
+function loadPage(comps) {
+ // console.log('loadPage');
+ Object.keys(comps).forEach(comp => {
+ let data = comps[comp]();
+ Alpine.data(comp, () => data);
+ // console.log(comp);
+ });
+ Alpine.start();
+}
+
+// wait for load until bootstrapped event is received.
+document.addEventListener('firefly-iii-bootstrapped', () => {
+ // console.log('Loaded through event listener.');
+ loadPage(comps);
+});
+// or is bootstrapped before event is triggered.
+if (window.bootstrapped) {
+ // console.log('Loaded through window variable.');
+ loadPage(comps);
+}
diff --git a/resources/assets/v3/package.json b/resources/assets/v3/package.json
index e2acdf3f4f..51b407dd4a 100644
--- a/resources/assets/v3/package.json
+++ b/resources/assets/v3/package.json
@@ -6,20 +6,22 @@
"@popperjs/core": "^2.11.8",
"admin-lte": "^4.0.0",
"alpinejs": "^3.15.12",
+ "axios": "^1.18",
"bootstrap": "^5",
+ "bootstrap-icons": "^1.13.1",
"bootstrap5-autocomplete": "^1",
"bootstrap5-tags": "^1.7.17",
- "bootstrap-icons": "^1.13.1",
"cally": "^0.9.2",
- "shepherd.js": "^15.2.2",
- "store": "^2.0.12",
+ "date-fns": "4.4.0",
+ "fullcalendar": "^7.0.1",
"i18next": "^26.0.3",
"i18next-chained-backend": "^5.0.0",
"i18next-http-backend": "^4.0.0",
"i18next-localstorage-backend": "^4.2.0",
"patch-package": "^8.0.1",
- "date-fns": "4.4.0",
- "axios": "^1.18"
+ "shepherd.js": "^15.2.2",
+ "store": "^2.0.12",
+ "use-bootstrap-tag": "^2.2.2"
},
"type": "module",
"scripts": {
@@ -30,10 +32,10 @@
"devDependencies": {
"concurrently": "^10",
"laravel-vite-plugin": "^3.1",
+ "postcss": "^8.5.14",
+ "sass": "^1",
"tailwindcss": "^4.0.0",
"vite": "^8.0.0",
- "sass": "^1",
- "vite-plugin-manifest-sri": "^0.2.0",
- "postcss": "^8.5.14"
+ "vite-plugin-manifest-sri": "^0.2.0"
}
}
diff --git a/resources/assets/v3/vite.config.js b/resources/assets/v3/vite.config.js
index 99f6856951..be6571865a 100644
--- a/resources/assets/v3/vite.config.js
+++ b/resources/assets/v3/vite.config.js
@@ -71,6 +71,7 @@ export default defineConfig(({command, mode, isSsrBuild, isPreview}) => {
// rules
// recurring transactions
+ 'js/pages/recurring/create.js',
// subscriptions
diff --git a/resources/views/bills/create.blade.php b/resources/views/bills/create.blade.php
index d8b18a0aed..a39ebd8484 100644
--- a/resources/views/bills/create.blade.php
+++ b/resources/views/bills/create.blade.php
@@ -62,19 +62,11 @@
@endsection
-@section('styles')
- <link href="v1/css/bootstrap-tagsinput.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
-@endsection
@section('scripts')
@vite(['js/pages/generic.js'])
- <script type="text/javascript" src="v1/js/lib/bootstrap-tagsinput.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/bills/create.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
{{-- auto complete for object groups --}}
- <script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
+ <script type="text/javascript" src="v1/js/lib/bootstrap-simple-autocomplete.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
+ <script type="text/javascript" src="v1/js/ff/object-groups/ac.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@endsection
diff --git a/resources/views/bills/edit.blade.php b/resources/views/bills/edit.blade.php
index fa91a5e53d..9474d1344a 100644
--- a/resources/views/bills/edit.blade.php
+++ b/resources/views/bills/edit.blade.php
@@ -67,30 +67,9 @@
</form>
@endsection
-@section('styles')
- <link href="v1/css/bootstrap-tagsinput.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all"
- nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
-@endsection
@section('scripts')
@vite(['js/pages/generic.js'])
- <script type="text/javascript" src="v1/js/lib/bootstrap-tagsinput.min.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/ff/accounts/edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-
- {{-- new auto complete for object groups --}}
- <script type="text/javascript" src="v1/js/lib/bootstrap-simple-autocomplete.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
-
{{-- auto complete for object groups --}}
- <script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
+ <script type="text/javascript" src="v1/js/lib/bootstrap-simple-autocomplete.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
+ <script type="text/javascript" src="v1/js/ff/object-groups/ac.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@endsection
diff --git a/resources/views/object-groups/edit.blade.php b/resources/views/object-groups/edit.blade.php
index 99e1b56537..bdf6ea0f5e 100644
--- a/resources/views/object-groups/edit.blade.php
+++ b/resources/views/object-groups/edit.blade.php
@@ -43,21 +43,8 @@
@endsection
@section('scripts')
@vite(['js/pages/generic.js'])
- <script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/ff/piggy-banks/create.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- {{-- auto complete for object groups --}}
- <script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
+ {{-- new auto complete --}}
+ <script type="text/javascript" src="v1/js/lib/bootstrap-simple-autocomplete.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
@endsection
-
-@section('styles')
- <link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
-@endsection
diff --git a/resources/views/piggy-banks/create.blade.php b/resources/views/piggy-banks/create.blade.php
index 01b593b4bb..581efea23c 100644
--- a/resources/views/piggy-banks/create.blade.php
+++ b/resources/views/piggy-banks/create.blade.php
@@ -55,16 +55,12 @@
@section('scripts')
@vite(['js/pages/generic.js'])
- <script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/piggy-banks/create.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
{{-- auto complete for object groups --}}
- <script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
+ <script type="text/javascript" src="v1/js/lib/bootstrap-simple-autocomplete.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
+ <script type="text/javascript" src="v1/js/ff/object-groups/ac.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@endsection
@section('styles')
- <link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
@endsection
diff --git a/resources/views/piggy-banks/edit.blade.php b/resources/views/piggy-banks/edit.blade.php
index 1eed3b0c45..1c3bf95239 100644
--- a/resources/views/piggy-banks/edit.blade.php
+++ b/resources/views/piggy-banks/edit.blade.php
@@ -62,21 +62,9 @@
@endsection
@section('scripts')
@vite(['js/pages/generic.js'])
- <script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/piggy-banks/create.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
{{-- auto complete for object groups --}}
- <script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
-@endsection
-
-@section('styles')
- <link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
+ <script type="text/javascript" src="v1/js/lib/bootstrap-simple-autocomplete.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
+ <script type="text/javascript" src="v1/js/ff/object-groups/ac.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@endsection
diff --git a/resources/views/recurring/create.blade.php b/resources/views/recurring/create.blade.php
index 8bbd0c3d7d..8de9d407c1 100644
--- a/resources/views/recurring/create.blade.php
+++ b/resources/views/recurring/create.blade.php
@@ -2,7 +2,7 @@
@section('content')
<form action="{{ route('recurring.store') }}" method="post" id="store" class="form-horizontal"
- enctype="multipart/form-data">
+ enctype="multipart/form-data" x-data="create">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
{{-- row with recurrence information --}}
<div class="row">
@@ -96,13 +96,13 @@
{!! AccountForm::activeDepositDestinations('deposit_source_id', null, ['label' => trans('form.deposit_source_id')]) !!}
{{-- destination if deposit or transfer: --}}
- {{ AccountForm::longAccountList('destination_id', null, ['label' => trans('form.asset_destination_account')]) }}
+ {!! AccountForm::longAccountList('destination_id', null, ['label' => trans('form.asset_destination_account')]) !!}
{{-- destination account name for withdrawals --}}
{{-- {!! ExpandedForm::text('destination_name', null, {label: trans('form.expense_account')}) }} --}}
{{-- NEW for withdrawals, also a drop down with expense accounts, loans, debts, mortgages or (cash). --}}
- {{ AccountForm::activeWithdrawalDestinations('withdrawal_destination_id', null, ['label' => trans('form.withdrawal_destination_id')]) }}
+ {!! AccountForm::activeWithdrawalDestinations('withdrawal_destination_id', null, ['label' => trans('form.withdrawal_destination_id')]) !!}
</div>
</div>
</div>
@@ -200,18 +200,11 @@
</div>
@endsection
@section('scripts')
- @vite(['js/pages/generic.js'])
- <script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
+ @vite(['js/pages/recurring/create.js'])
+ <!--
+ <script type="text/javascript" src="v1/js/lib/bootstrap-simple-autocomplete.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/common/autocomplete.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/bootstrap-tagsinput.min.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/lib/fc/fullcalendar.min.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var transactionType = "{{ $preFilled['transaction_type'] }}";
var suggestUrl = "{{ route('recurring.suggest') }}";
@@ -220,15 +213,8 @@
</script>
<script type="text/javascript" src="v1/js/ff/recurring/create.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
+ -->
@endsection
@section('styles')
- <link href="v1/css/bootstrap-tagsinput.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all"
- nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
- <link href="v1/lib/fc/fullcalendar.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all"
- nonce="{{ $JS_NONCE }}">
@endsection
diff --git a/resources/views/rules/rule/edit.blade.php b/resources/views/rules/rule/edit.blade.php
index e2bf87636a..d88a07ba4c 100644
--- a/resources/views/rules/rule/edit.blade.php
+++ b/resources/views/rules/rule/edit.blade.php
@@ -122,11 +122,11 @@
</div>
</form>
- @vite(['js/pages/generic.js'])
@endsection
@section('scripts')
+ @vite(['js/pages/generic.js'])
@include('rules.partials.test-trigger-modal')
{{-- new auto complete --}}