Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove more unused scripts.
James Cole628cc9e5de4e
diff --git a/public/v1/js/ff/admin/update/.htaccess b/public/v1/js/ff/admin/update/.htaccessdeleted file mode 100644index 45552cb63e..0000000000--- a/public/v1/js/ff/admin/update/.htaccess+++ /dev/null@@ -1 +0,0 @@-Options -Indexes\ No newline at end of filediff --git a/public/v1/js/ff/admin/update/index.js b/public/v1/js/ff/admin/update/index.jsdeleted file mode 100644index ff742b8da2..0000000000--- a/public/v1/js/ff/admin/update/index.js+++ /dev/null@@ -1,26 +0,0 @@-/*- * index.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/>.- */--$(function () {- "use strict";-- // Enable update button.--});diff --git a/public/v1/js/ff/categories/edit.js b/public/v1/js/ff/categories/edit.jsdeleted file mode 100644index 536c28a7e6..0000000000--- a/public/v1/js/ff/categories/edit.js+++ /dev/null@@ -1,24 +0,0 @@-/*- * 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/>.- */--$(function () {- "use strict";- $(".content-wrapper form input[type='text']:enabled:visible:first").first().focus();-});\ No newline at end of filediff --git a/public/v1/js/ff/categories/index.js b/public/v1/js/ff/categories/index.jsdeleted file mode 100644index 0d8e1e589f..0000000000--- a/public/v1/js/ff/categories/index.js+++ /dev/null@@ -1,23 +0,0 @@-/*- * index.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/>.- */--$(function () {- "use strict";-});\ No newline at end of filediff --git a/public/v1/js/ff/piggy-banks/create.js b/public/v1/js/ff/piggy-banks/create.jsdeleted file mode 100644index b845537c64..0000000000--- a/public/v1/js/ff/piggy-banks/create.js+++ /dev/null@@ -1,26 +0,0 @@-/*- * create.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/>.- */---$(document).ready(function () {- "use strict";- $("#ffInput_name").focus().select();--});diff --git a/public/v1/js/ff/rule-groups/create.js b/public/v1/js/ff/rule-groups/create.jsdeleted file mode 100644index 253bf321cc..0000000000--- a/public/v1/js/ff/rule-groups/create.js+++ /dev/null@@ -1,25 +0,0 @@-/*- * create.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/>.- */---$(document).ready(function () {- "use strict";- $(".content-wrapper form input:enabled:visible:first").first().focus().select();-});diff --git a/public/v1/js/ff/rule-groups/edit.js b/public/v1/js/ff/rule-groups/edit.jsdeleted file mode 100644index 3a58a30762..0000000000--- a/public/v1/js/ff/rule-groups/edit.js+++ /dev/null@@ -1,25 +0,0 @@-/*- * 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/>.- */---$(document).ready(function () {- "use strict";- $(".content-wrapper form input[type='text']:enabled:visible:first").first().focus();-});diff --git a/public/v1/js/ff/rules/select-transactions.js b/public/v1/js/ff/rules/select-transactions.jsdeleted file mode 100644index 5f236e103a..0000000000--- a/public/v1/js/ff/rules/select-transactions.js+++ /dev/null@@ -1,24 +0,0 @@-/*- * select-transactions.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/>.- */---$(document).ready(function () {- "use strict";-});diff --git a/public/v1/js/ff/tags/show.js b/public/v1/js/ff/tags/show.jsdeleted file mode 100644index 34cd2a00c5..0000000000--- a/public/v1/js/ff/tags/show.js+++ /dev/null@@ -1,27 +0,0 @@-/*- * show.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/>.- */--/*- Some vars as prep for the map:- */-$(function () {- "use strict";--});diff --git a/resources/views/categories/edit.blade.php b/resources/views/categories/edit.blade.phpindex 67683d7a90..0ce7342f8d 100644--- a/resources/views/categories/edit.blade.php+++ b/resources/views/categories/edit.blade.php@@ -55,6 +55,4 @@@endsection@section('scripts')@vite(['js/pages/generic.js'])-- <script type="text/javascript" src="v1/js/ff/categories/edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>@endsectiondiff --git a/resources/views/categories/index.blade.php b/resources/views/categories/index.blade.phpindex 96d8f4a057..f4182ce388 100644--- a/resources/views/categories/index.blade.php+++ b/resources/views/categories/index.blade.php@@ -29,6 +29,4 @@@section('scripts')@vite(['js/pages/generic.js'])- <script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>- <script type="text/javascript" src="v1/js/ff/categories/index.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>@endsectiondiff --git a/resources/views/piggy-banks/create.blade.php b/resources/views/piggy-banks/create.blade.phpindex 9cf0d188f0..2bdfa9c891 100644--- a/resources/views/piggy-banks/create.blade.php+++ b/resources/views/piggy-banks/create.blade.php@@ -55,9 +55,6 @@@section('scripts')@vite(['js/pages/generic-nodates.js'])- <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/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>@endsectiondiff --git a/resources/views/piggy-banks/edit.blade.php b/resources/views/piggy-banks/edit.blade.phpindex 57477065cc..db974fb62b 100644--- a/resources/views/piggy-banks/edit.blade.php+++ b/resources/views/piggy-banks/edit.blade.php@@ -62,9 +62,6 @@@endsection@section('scripts')@vite(['js/pages/generic-nodates.js'])- <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/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>@endsectiondiff --git a/resources/views/rules/index.blade.php b/resources/views/rules/index.blade.phpindex ec28c71bf9..2bf15ae3d1 100644--- a/resources/views/rules/index.blade.php+++ b/resources/views/rules/index.blade.php@@ -173,7 +173,7 @@@endsection@section('scripts')- @vite(['js/pages/generic.js'])+ @vite(['js/pages/generic-nodates.js'])<script type="text/javascript" nonce="{{ $JS_NONCE }}">var moveRuleGroupUrl = '{{ route('rule-groups.move') }}';var duplicateRuleUrl = '{{ route('rules.duplicate') }}';diff --git a/resources/views/rules/rule-group/create.blade.php b/resources/views/rules/rule-group/create.blade.phpindex f291849f3e..7f3d11eac2 100644--- a/resources/views/rules/rule-group/create.blade.php+++ b/resources/views/rules/rule-group/create.blade.php@@ -47,6 +47,5 @@</form>@endsection@section('scripts')- @vite(['js/pages/generic.js'])- <script type="text/javascript" src="v1/js/ff/rule-groups/create.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>+ @vite(['js/pages/generic-nodates.js'])@endsectiondiff --git a/resources/views/rules/rule-group/delete.blade.php b/resources/views/rules/rule-group/delete.blade.phpindex e643a402b2..53b16020fa 100644--- a/resources/views/rules/rule-group/delete.blade.php+++ b/resources/views/rules/rule-group/delete.blade.php@@ -46,3 +46,6 @@</div></form>@endsection+@section('scripts')+ @vite(['js/pages/generic-nodates.js'])+@endsectiondiff --git a/resources/views/rules/rule-group/edit.blade.php b/resources/views/rules/rule-group/edit.blade.phpindex 1b8285259f..3b868c49fe 100644--- a/resources/views/rules/rule-group/edit.blade.php+++ b/resources/views/rules/rule-group/edit.blade.php@@ -55,6 +55,5 @@@endsection@section('scripts')- <script type="text/javascript" src="v1/js/ff/rule-groups/edit.js?v={{ $FF_BUILD_TIME }}"- nonce="{{ $JS_NONCE }}"></script>+ @vite(['js/pages/generic-nodates.js'])@endsectiondiff --git a/resources/views/rules/rule-group/select-transactions.blade.php b/resources/views/rules/rule-group/select-transactions.blade.phpindex 8a6a52fa38..dc986d02f6 100644--- a/resources/views/rules/rule-group/select-transactions.blade.php+++ b/resources/views/rules/rule-group/select-transactions.blade.php@@ -36,6 +36,7 @@</form>@endsection@section('scripts')+ @vite(['js/pages/generic-nodates.js'])@endsection@section('styles')diff --git a/resources/views/rules/rule/create.blade.php b/resources/views/rules/rule/create.blade.phpindex 13599235a7..f14eb71e03 100644--- a/resources/views/rules/rule/create.blade.php+++ b/resources/views/rules/rule/create.blade.php@@ -142,7 +142,7 @@@endsection@section('scripts')- @vite(['js/pages/generic.js'])+ @vite(['js/pages/generic-nodates.js']){{-- 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" nonce="{{ $JS_NONCE }}">diff --git a/resources/views/rules/rule/delete.blade.php b/resources/views/rules/rule/delete.blade.phpindex 1e44ab51c5..ff21df2cad 100644--- a/resources/views/rules/rule/delete.blade.php+++ b/resources/views/rules/rule/delete.blade.php@@ -27,5 +27,5 @@</form>@endsection@section('scripts')- @vite(['js/pages/generic.js'])+ @vite(['js/pages/generic-nodates.js'])@endsectiondiff --git a/resources/views/rules/rule/edit.blade.php b/resources/views/rules/rule/edit.blade.phpindex d88a07ba4c..c2e98d0bf7 100644--- a/resources/views/rules/rule/edit.blade.php+++ b/resources/views/rules/rule/edit.blade.php@@ -126,7 +126,7 @@@endsection@section('scripts')- @vite(['js/pages/generic.js'])+ @vite(['js/pages/generic-nodates.js'])@include('rules.partials.test-trigger-modal'){{-- new auto complete --}}diff --git a/resources/views/rules/rule/select-transactions.blade.php b/resources/views/rules/rule/select-transactions.blade.phpindex 77bfc3b533..9b2122b7bc 100644--- a/resources/views/rules/rule/select-transactions.blade.php+++ b/resources/views/rules/rule/select-transactions.blade.php@@ -34,8 +34,7 @@</form>@endsection@section('scripts')- @vite(['js/pages/generic.js'])- <script type="text/javascript" src="v1/js/ff/rules/select-transactions.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>+ @vite(['js/pages/generic-nodates.js'])@endsection@section('styles')diff --git a/resources/views/settings/update/index.blade.php b/resources/views/settings/update/index.blade.phpindex df87804f8f..4ba2e333ba 100644--- a/resources/views/settings/update/index.blade.php+++ b/resources/views/settings/update/index.blade.php@@ -65,8 +65,4 @@@endsection@section('scripts')@vite(['js/pages/generic.js'])- <script type="text/javascript" nonce="{{ $JS_NONCE }}">- var updateCheckUrl = '{{ route('settings.update-check.manual') }}';- </script>- <script type="text/javascript" src="v1/js/ff/admin/update/index.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>@endsectiondiff --git a/resources/views/tags/show.blade.php b/resources/views/tags/show.blade.phpindex a10ee1536d..174e61ef7f 100644--- a/resources/views/tags/show.blade.php+++ b/resources/views/tags/show.blade.php@@ -303,6 +303,5 @@@endif</script><script src="v1/lib/leaflet/leaflet.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>- <script src="v1/js/ff/tags/show.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script><script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>@endsection