Update meta files for new release.

This commit is contained in:
James Cole 2022-04-12 17:45:54 +02:00
parent 3813b7a9e8
commit ac5c11a8d7
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
120 changed files with 1676 additions and 2416 deletions

View File

@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## 5.7.2 - 2022-04-13
### Fixed
- Not configuring email would break registration.
- Extra validation on piggy bank amounts.
## 5.7.1 - 2022-04-05
### Fixed

View File

@ -108,7 +108,6 @@
"symfony/mailgun-mailer": "^6.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.6",
"barryvdh/laravel-ide-helper": "2.*",
"filp/whoops": "2.*",
"fakerphp/faker": "1.*",

281
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "a5240b2bca6890f8c42914d5d19b2a10",
"content-hash": "28dfb21ecd8812aeb96941a3038c643f",
"packages": [
{
"name": "bacon/bacon-qr-code",
@ -1855,16 +1855,16 @@
},
{
"name": "laravel/framework",
"version": "v9.7.0",
"version": "v9.8.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "54c9696ee3e558ab29317ed6e0cb16bb9db5aad4"
"reference": "9f468689964ac80b674a2fe71a56baa7e9e20493"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/54c9696ee3e558ab29317ed6e0cb16bb9db5aad4",
"reference": "54c9696ee3e558ab29317ed6e0cb16bb9db5aad4",
"url": "https://api.github.com/repos/laravel/framework/zipball/9f468689964ac80b674a2fe71a56baa7e9e20493",
"reference": "9f468689964ac80b674a2fe71a56baa7e9e20493",
"shasum": ""
},
"require": {
@ -2030,7 +2030,7 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2022-04-05T15:07:51+00:00"
"time": "2022-04-12T15:43:03+00:00"
},
{
"name": "laravel/passport",
@ -2111,16 +2111,16 @@
},
{
"name": "laravel/sanctum",
"version": "v2.15.0",
"version": "v2.15.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/sanctum.git",
"reference": "5be160413b6f37dcf8758663edeab12d0e806f56"
"reference": "31fbe6f85aee080c4dc2f9b03dc6dd5d0ee72473"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/sanctum/zipball/5be160413b6f37dcf8758663edeab12d0e806f56",
"reference": "5be160413b6f37dcf8758663edeab12d0e806f56",
"url": "https://api.github.com/repos/laravel/sanctum/zipball/31fbe6f85aee080c4dc2f9b03dc6dd5d0ee72473",
"reference": "31fbe6f85aee080c4dc2f9b03dc6dd5d0ee72473",
"shasum": ""
},
"require": {
@ -2172,7 +2172,7 @@
"issues": "https://github.com/laravel/sanctum/issues",
"source": "https://github.com/laravel/sanctum"
},
"time": "2022-03-28T13:53:05+00:00"
"time": "2022-04-08T13:39:49+00:00"
},
{
"name": "laravel/serializable-closure",
@ -2828,16 +2828,16 @@
},
{
"name": "league/flysystem",
"version": "3.0.14",
"version": "3.0.16",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "46a5450352540e89cb8e7eb20c58b5b4aae481f6"
"reference": "dea729954c596bdb6cdaecba6f73df9f3e2c4255"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/46a5450352540e89cb8e7eb20c58b5b4aae481f6",
"reference": "46a5450352540e89cb8e7eb20c58b5b4aae481f6",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/dea729954c596bdb6cdaecba6f73df9f3e2c4255",
"reference": "dea729954c596bdb6cdaecba6f73df9f3e2c4255",
"shasum": ""
},
"require": {
@ -2898,7 +2898,7 @@
],
"support": {
"issues": "https://github.com/thephpleague/flysystem/issues",
"source": "https://github.com/thephpleague/flysystem/tree/3.0.14"
"source": "https://github.com/thephpleague/flysystem/tree/3.0.16"
},
"funding": [
{
@ -2914,20 +2914,20 @@
"type": "tidelift"
}
],
"time": "2022-04-06T18:17:37+00:00"
"time": "2022-04-11T13:32:22+00:00"
},
{
"name": "league/fractal",
"version": "0.20",
"version": "0.20.1",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/fractal.git",
"reference": "419b0cbf5c23a06886a583c2fc0530db2360a70f"
"reference": "8b9d39b67624db9195c06f9c1ffd0355151eaf62"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/fractal/zipball/419b0cbf5c23a06886a583c2fc0530db2360a70f",
"reference": "419b0cbf5c23a06886a583c2fc0530db2360a70f",
"url": "https://api.github.com/repos/thephpleague/fractal/zipball/8b9d39b67624db9195c06f9c1ffd0355151eaf62",
"reference": "8b9d39b67624db9195c06f9c1ffd0355151eaf62",
"shasum": ""
},
"require": {
@ -2938,8 +2938,10 @@
"illuminate/contracts": "~5.0",
"mockery/mockery": "^1.3",
"pagerfanta/pagerfanta": "~1.0.0",
"phpstan/phpstan": "^1.4",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "~3.4",
"vimeo/psalm": "^4.22",
"zendframework/zend-paginator": "~2.3"
},
"suggest": {
@ -2980,22 +2982,22 @@
],
"support": {
"issues": "https://github.com/thephpleague/fractal/issues",
"source": "https://github.com/thephpleague/fractal/tree/0.20"
"source": "https://github.com/thephpleague/fractal/tree/0.20.1"
},
"time": "2022-03-07T23:12:17+00:00"
"time": "2022-04-11T12:47:17+00:00"
},
{
"name": "league/mime-type-detection",
"version": "1.9.0",
"version": "1.10.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/mime-type-detection.git",
"reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69"
"reference": "3e4a35d756eedc67096f30240a68a3149120dae7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/aa70e813a6ad3d1558fc927863d47309b4c23e69",
"reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69",
"url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/3e4a35d756eedc67096f30240a68a3149120dae7",
"reference": "3e4a35d756eedc67096f30240a68a3149120dae7",
"shasum": ""
},
"require": {
@ -3026,7 +3028,7 @@
"description": "Mime-type detection for Flysystem",
"support": {
"issues": "https://github.com/thephpleague/mime-type-detection/issues",
"source": "https://github.com/thephpleague/mime-type-detection/tree/1.9.0"
"source": "https://github.com/thephpleague/mime-type-detection/tree/1.10.0"
},
"funding": [
{
@ -3038,7 +3040,7 @@
"type": "tidelift"
}
],
"time": "2021-11-21T11:48:40+00:00"
"time": "2022-04-11T12:49:04+00:00"
},
{
"name": "league/oauth2-server",
@ -8201,91 +8203,6 @@
}
],
"packages-dev": [
{
"name": "barryvdh/laravel-debugbar",
"version": "v3.6.7",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-debugbar.git",
"reference": "b96f9820aaf1ff9afe945207883149e1c7afb298"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/b96f9820aaf1ff9afe945207883149e1c7afb298",
"reference": "b96f9820aaf1ff9afe945207883149e1c7afb298",
"shasum": ""
},
"require": {
"illuminate/routing": "^6|^7|^8|^9",
"illuminate/session": "^6|^7|^8|^9",
"illuminate/support": "^6|^7|^8|^9",
"maximebf/debugbar": "^1.17.2",
"php": ">=7.2",
"symfony/debug": "^4.3|^5|^6",
"symfony/finder": "^4.3|^5|^6"
},
"require-dev": {
"mockery/mockery": "^1.3.3",
"orchestra/testbench-dusk": "^4|^5|^6|^7",
"phpunit/phpunit": "^8.5|^9.0",
"squizlabs/php_codesniffer": "^3.5"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.6-dev"
},
"laravel": {
"providers": [
"Barryvdh\\Debugbar\\ServiceProvider"
],
"aliases": {
"Debugbar": "Barryvdh\\Debugbar\\Facades\\Debugbar"
}
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Barryvdh\\Debugbar\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "PHP Debugbar integration for Laravel",
"keywords": [
"debug",
"debugbar",
"laravel",
"profiler",
"webprofiler"
],
"support": {
"issues": "https://github.com/barryvdh/laravel-debugbar/issues",
"source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.6.7"
},
"funding": [
{
"url": "https://fruitcake.nl",
"type": "custom"
},
{
"url": "https://github.com/barryvdh",
"type": "github"
}
],
"time": "2022-02-09T07:52:32+00:00"
},
{
"name": "barryvdh/laravel-ide-helper",
"version": "v2.12.3",
@ -8691,72 +8608,6 @@
},
"time": "2020-07-09T08:09:16+00:00"
},
{
"name": "maximebf/debugbar",
"version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/maximebf/php-debugbar.git",
"reference": "0d44b75f3b5d6d41ae83b79c7a4bceae7fbc78b6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/maximebf/php-debugbar/zipball/0d44b75f3b5d6d41ae83b79c7a4bceae7fbc78b6",
"reference": "0d44b75f3b5d6d41ae83b79c7a4bceae7fbc78b6",
"shasum": ""
},
"require": {
"php": "^7.1|^8",
"psr/log": "^1|^2|^3",
"symfony/var-dumper": "^2.6|^3|^4|^5|^6"
},
"require-dev": {
"phpunit/phpunit": "^7.5.20 || ^9.4.2",
"twig/twig": "^1.38|^2.7|^3.0"
},
"suggest": {
"kriswallsmith/assetic": "The best way to manage assets",
"monolog/monolog": "Log using Monolog",
"predis/predis": "Redis storage"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.17-dev"
}
},
"autoload": {
"psr-4": {
"DebugBar\\": "src/DebugBar/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Maxime Bouroumeau-Fuseau",
"email": "maxime.bouroumeau@gmail.com",
"homepage": "http://maximebf.com"
},
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "Debug bar in the browser for php application",
"homepage": "https://github.com/maximebf/php-debugbar",
"keywords": [
"debug",
"debugbar"
],
"support": {
"issues": "https://github.com/maximebf/php-debugbar/issues",
"source": "https://github.com/maximebf/php-debugbar/tree/v1.18.0"
},
"time": "2021-12-27T18:49:48+00:00"
},
{
"name": "mockery/mockery",
"version": "1.5.0",
@ -10667,74 +10518,6 @@
],
"time": "2020-09-28T06:39:44+00:00"
},
{
"name": "symfony/debug",
"version": "v4.4.37",
"source": {
"type": "git",
"url": "https://github.com/symfony/debug.git",
"reference": "5de6c6e7f52b364840e53851c126be4d71e60470"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/debug/zipball/5de6c6e7f52b364840e53851c126be4d71e60470",
"reference": "5de6c6e7f52b364840e53851c126be4d71e60470",
"shasum": ""
},
"require": {
"php": ">=7.1.3",
"psr/log": "^1|^2|^3"
},
"conflict": {
"symfony/http-kernel": "<3.4"
},
"require-dev": {
"symfony/http-kernel": "^3.4|^4.0|^5.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Symfony\\Component\\Debug\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Provides tools to ease debugging PHP code",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/debug/tree/v4.4.37"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2022-01-02T09:41:36+00:00"
},
{
"name": "theseer/tokenizer",
"version": "1.2.1",
@ -10810,5 +10593,5 @@
"ext-xmlwriter": "*"
},
"platform-dev": [],
"plugin-api-version": "2.2.0"
"plugin-api-version": "2.3.0"
}

View File

@ -101,7 +101,7 @@ return [
'webhooks' => false,
'handle_debts' => true,
],
'version' => '5.7.1',
'version' => '5.7.2',
'api_version' => '1.5.6',
'db_version' => 18,

View File

@ -17,7 +17,7 @@
"axios-cache-adapter": "^2.7.3",
"core-js": "^3.6.5",
"date-fns": "^2.28.0",
"quasar": "^2.6.5",
"quasar": "^2.6.6",
"vue": "3",
"vue-i18n": "^9.0.0",
"vue-router": "^4.0.0",
@ -26,7 +26,7 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.13.14",
"@quasar/app": "^3.3.3",
"@quasar/app-webpack": "^3.5.1",
"@types/node": "^12.20.21",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",

View File

@ -18,7 +18,7 @@ export default {
},
"list": {
"name": "Nombre",
"account_number": "Account number",
"account_number": "N\u00famero de cuenta",
"currentBalance": "Balance actual",
"lastActivity": "Actividad m\u00e1s reciente",
"active": "\u00bfEst\u00e1 Activo?"
@ -45,7 +45,7 @@ export default {
"delete": "Eliminar",
"reconcile": "Reconciliar",
"create_new_asset": "Crear nueva cuenta de activos",
"confirm_action": "Confirm action",
"confirm_action": "Confirmar acci\u00f3n",
"rule_trigger_source_account_starts_choice": "El nombre de la cuenta de origen comienza con..",
"rule_trigger_source_account_ends_choice": "El nombre de la cuenta de origen termina con..",
"rule_trigger_source_account_is_choice": "El nombre de la cuenta origen es..",

View File

@ -18,7 +18,7 @@ export default {
},
"list": {
"name": "Nimi",
"account_number": "Account number",
"account_number": "Tilinumero",
"currentBalance": "T\u00e4m\u00e4nhetkinen saldo",
"lastActivity": "Viimeisin tapahtuma",
"active": "Aktiivinen?"
@ -45,7 +45,7 @@ export default {
"delete": "Poista",
"reconcile": "T\u00e4sm\u00e4yt\u00e4",
"create_new_asset": "Luo uusi omaisuustili",
"confirm_action": "Confirm action",
"confirm_action": "Vahvista toiminto",
"rule_trigger_source_account_starts_choice": "L\u00e4hdetilin nimi alkaa ...",
"rule_trigger_source_account_ends_choice": "L\u00e4hdetilin nimi p\u00e4\u00e4ttyy..",
"rule_trigger_source_account_is_choice": "L\u00e4hdetilin nimi on..",

View File

@ -83,7 +83,7 @@ export default {
"rule_trigger_created_at_on_choice": "Transaction was made on..",
"rule_trigger_updated_at_on_choice": "Transaction was last edited on..",
"rule_trigger_budget_is_choice": "Le budget est..",
"rule_trigger_tag_is_choice": "Any tag is..",
"rule_trigger_tag_is_choice": "Un tag est..",
"rule_trigger_currency_is_choice": "La devise de l'op\u00e9ration est..",
"rule_trigger_foreign_currency_is_choice": "La devise \u00e9trang\u00e8re de l'op\u00e9ration est..",
"rule_trigger_has_attachments_choice": "A au moins autant de pi\u00e8ces jointes",
@ -97,13 +97,13 @@ export default {
"rule_trigger_has_any_tag_choice": "Dispose d'un ou de plusieurs tags",
"rule_trigger_any_notes_choice": "A une (ou plusieurs) note(s)",
"rule_trigger_no_notes_choice": "N'a pas de note",
"rule_trigger_notes_is_choice": "Notes are..",
"rule_trigger_notes_contains_choice": "Notes contain..",
"rule_trigger_notes_starts_choice": "Notes start with..",
"rule_trigger_notes_ends_choice": "Notes end with..",
"rule_trigger_notes_is_choice": "Les notes sont..",
"rule_trigger_notes_contains_choice": "Les notes contiennent..",
"rule_trigger_notes_starts_choice": "Les notes commencent par..",
"rule_trigger_notes_ends_choice": "Les notes se terminent par..",
"rule_trigger_bill_is_choice": "La facture est..",
"rule_trigger_external_id_is_choice": "External ID is..",
"rule_trigger_internal_reference_is_choice": "Internal reference is..",
"rule_trigger_external_id_is_choice": "L'ID externe est..",
"rule_trigger_internal_reference_is_choice": "La r\u00e9f\u00e9rence interne est..",
"rule_trigger_journal_id_choice": "L'ID du journal d'op\u00e9rations est..",
"rule_trigger_any_external_url_choice": "Transaction has an external URL",
"rule_trigger_no_external_url_choice": "Transaction has no external URL",

View File

@ -45,7 +45,7 @@ export default {
"delete": "Elimina",
"reconcile": "Riconcilia",
"create_new_asset": "Crea un nuovo conto attivit\u00e0",
"confirm_action": "Confirm action",
"confirm_action": "Conferma azione",
"rule_trigger_source_account_starts_choice": "Il nome del conto di origine inizia con..",
"rule_trigger_source_account_ends_choice": "Il nome del conto di origine termina con..",
"rule_trigger_source_account_is_choice": "Il nome del conto di origine \u00e8..",

View File

@ -24,4 +24,4 @@
// As a side effect, since `@quasar/app` reference `quasar` to augment it,
// this declaration also apply `quasar` own
// augmentations (eg. adds `$q` into Vue component context)
/// <reference types="@quasar/app" />
/// <reference types="@quasar/app-webpack" />

View File

@ -1,5 +1,5 @@
{
"extends": "@quasar/app/tsconfig-preset",
"extends": "@quasar/app-webpack/tsconfig-preset",
"compilerOptions": {
"baseUrl": "."
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!DOCTYPE html><html><head><base href=/v3/ ><title>Firefly III</title><meta charset=utf-8><meta name=description content="Personal finances manager"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"><link rel=icon type=image/png sizes=32x32 href=favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=favicon-16x16.png><link rel=apple-touch-icon sizes=76x76 href=maskable76.png><link rel=apple-touch-icon sizes=120x120 href=maskable120.png><link rel=apple-touch-icon sizes=152x152 href=maskable152.png><link rel=apple-touch-icon sizes=180x180 href=apple-touch-icon.png><link rel=mask-icon href=safari-pinned-tab.svg color=#3c8dbc><link href=maskable192.png rel=icon sizes=192x192><link href=maskable128.png rel=icon sizes=128x128><link rel=manifest href=manifest.webmanifest><meta name=msapplication-TileColor content=#1e6581><meta name=msapplication-TileImage content=maskable512.png><meta name=msapplication-tap-highlight content=no><meta name=application-name content="Firefly III"><meta name=robots content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-title content="Firefly III"><meta name=application-name content="Firefly III"><meta name=msapplication-TileColor content=#3c8dbc><meta name=msapplication-TileImage content="mstile-144x144.png?v=3e8AboOwbd"><meta name=theme-color content=#3c8dbc><script defer src=/v3/js/vendor.13f2d5d7.js></script><script defer src=/v3/js/app.e594ef63.js></script><link href=/v3/css/vendor.95f47b98.css rel=stylesheet><link href=/v3/css/app.50c7ba73.css rel=stylesheet></head><body><div id=q-app></div></body></html>
<!DOCTYPE html><html><head><base href=/v3/ ><title>Firefly III</title><meta charset=utf-8><meta name=description content="Personal finances manager"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"><link rel=icon type=image/png sizes=32x32 href=favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=favicon-16x16.png><link rel=apple-touch-icon sizes=76x76 href=maskable76.png><link rel=apple-touch-icon sizes=120x120 href=maskable120.png><link rel=apple-touch-icon sizes=152x152 href=maskable152.png><link rel=apple-touch-icon sizes=180x180 href=apple-touch-icon.png><link rel=mask-icon href=safari-pinned-tab.svg color=#3c8dbc><link href=maskable192.png rel=icon sizes=192x192><link href=maskable128.png rel=icon sizes=128x128><link rel=manifest href=manifest.webmanifest><meta name=msapplication-TileColor content=#1e6581><meta name=msapplication-TileImage content=maskable512.png><meta name=msapplication-tap-highlight content=no><meta name=application-name content="Firefly III"><meta name=robots content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-title content="Firefly III"><meta name=application-name content="Firefly III"><meta name=msapplication-TileColor content=#3c8dbc><meta name=msapplication-TileImage content="mstile-144x144.png?v=3e8AboOwbd"><meta name=theme-color content=#3c8dbc><script defer src=/v3/js/vendor.7fc1204b.js></script><script defer src=/v3/js/app.48914805.js></script><link href=/v3/css/vendor.aa6af465.css rel=stylesheet><link href=/v3/css/app.50c7ba73.css rel=stylesheet></head><body><div id=q-app></div></body></html>

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1056],{1056:(a,e,t)=>{t.r(e),t.d(e,{default:()=>B});var n=t(3673),i=t(2323);const s={class:"row q-mx-md"},r={class:"col-12"},d={class:"text-h6"},g={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,n._)("br",null,null,-1);function c(a,e,t,c,o,p){const f=(0,n.up)("q-card-section"),h=(0,n.up)("q-card"),m=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(m,null,{default:(0,n.w5)((()=>[(0,n._)("div",s,[(0,n._)("div",r,[(0,n.Wm)(h,{bordered:""},{default:(0,n.w5)((()=>[(0,n.Wm)(f,null,{default:(0,n.w5)((()=>[(0,n._)("div",d,(0,i.zw)(o.piggyBank.name),1)])),_:1}),(0,n.Wm)(f,null,{default:(0,n.w5)((()=>[(0,n._)("div",g,[(0,n._)("div",l,[(0,n.Uk)(" Name: "+(0,i.zw)(o.piggyBank.name),1),u])])])),_:1})])),_:1})])])])),_:1})}var o=t(4852);const p={name:"Show",data(){return{piggyBank:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getPiggyBank()},methods:{onRequest:function(a){this.page=a.page,this.getPiggyBank()},getPiggyBank:function(){(new o.Z).get(this.id).then((a=>this.parsePiggyBank(a)))},parsePiggyBank:function(a){this.piggyBank={name:a.data.data.attributes.name}}}};var f=t(4260),h=t(4379),m=t(151),k=t(5589),w=t(7518),_=t.n(w);const y=(0,f.Z)(p,[["render",c]]),B=y;_()(p,"components",{QPage:h.Z,QCard:m.Z,QCardSection:k.Z})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[150],{150:(t,a,e)=>{e.r(a),e.d(a,{default:()=>_});var i=e(9835),n=e(6970);function s(t,a,e,s,r,g){const l=(0,i.up)("router-link"),o=(0,i.up)("q-badge"),u=(0,i.up)("q-card-section"),d=(0,i.up)("q-card"),p=(0,i.up)("q-fab-action"),c=(0,i.up)("q-fab"),h=(0,i.up)("q-page-sticky"),f=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(f,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,null,{default:(0,i.w5)((()=>[(0,i.Wm)(u,null,{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(r.tags,(t=>((0,i.wg)(),(0,i.iD)("span",null,[(0,i.Wm)(o,{outline:"",class:"q-ma-xs",color:"blue"},{default:(0,i.w5)((()=>[(0,i.Wm)(l,{to:{name:"tags.show",params:{id:t.id}}},{default:(0,i.w5)((()=>[(0,i.Uk)((0,n.zw)(t.attributes.tag),1)])),_:2},1032,["to"])])),_:2},1024)])))),256))])),_:1})])),_:1}),(0,i.Wm)(h,{position:"bottom-right",offset:[18,18]},{default:(0,i.w5)((()=>[(0,i.Wm)(c,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,i.w5)((()=>[(0,i.Wm)(p,{color:"primary",square:"",to:{name:"tags.create"},icon:"fas fa-exchange-alt",label:"New tag"},null,8,["to"])])),_:1})])),_:1})])),_:1})}var r=e(1049),g=e(1569);class l{list(t,a){let e="/api/v1/tags";return g.api.get(e,{params:{page:t,cache:a}})}}const o={name:"Index",watch:{$route(t){"tags.index"===t.name&&(this.page=1,this.updateBreadcrumbs(),this.triggerUpdate())}},data(){return{tags:[],loading:!1}},computed:{...(0,r.Se)("fireflyiii",["getRange","getCacheKey"])},created(){},mounted(){if(null===this.getRange.start||null===this.getRange.end){const t=(0,r.oR)();t.subscribe(((t,a)=>{"fireflyiii/setRange"===t.type&&(this.range={start:t.payload.start,end:t.payload.end},this.triggerUpdate())}))}null!==this.getRange.start&&null!==this.getRange.end&&(this.range={start:this.getRange.start,end:this.getRange.end},this.triggerUpdate())},methods:{updateBreadcrumbs:function(){this.$route.meta.pageTitle="firefly.tags",this.$route.meta.breadcrumbs=[{title:"tags"}]},onRequest:function(t){this.page=t.pagination.page,this.triggerUpdate()},triggerUpdate:function(){this.loading||(this.loading=!0,this.getPage(1))},getPage:function(t){const a=new l;this.rows=[],a.list(t,this.getCacheKey).then((a=>{for(let t in a.data.data)if(a.data.data.hasOwnProperty(t)){let e=a.data.data[t];this.tags.push(e)}t<parseInt(a.data.meta.pagination.total_pages)&&this.getPage(t+1),t===parseInt(a.data.meta.pagination.total_pages)&&(this.loading=!1)}))}}};var u=e(1639),d=e(9885),p=e(4458),c=e(3190),h=e(990),f=e(3388),m=e(9361),b=e(935),w=e(9984),y=e.n(w);const q=(0,u.Z)(o,[["render",s]]),_=q;y()(o,"components",{QPage:d.Z,QCard:p.Z,QCardSection:c.Z,QBadge:h.Z,QPageSticky:f.Z,QFab:m.Z,QFabAction:b.Z})}}]);

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1501],{1501:(t,n,a)=>{a.r(n),a.d(n,{default:()=>z});var e=a(9835),s=a(6970);const i={class:"row q-mx-md"},r={class:"col-12"},o={class:"text-h6"},l={class:"row"},u={class:"col-12 q-mb-xs"},c=(0,e._)("br",null,null,-1),d=(0,e._)("br",null,null,-1),p=(0,e._)("br",null,null,-1);function g(t,n,a,g,w,h){const _=(0,e.up)("q-card-section"),f=(0,e.up)("q-card"),b=(0,e.up)("q-page");return(0,e.wg)(),(0,e.j4)(b,null,{default:(0,e.w5)((()=>[(0,e._)("div",i,[(0,e._)("div",r,[(0,e.Wm)(f,{bordered:""},{default:(0,e.w5)((()=>[(0,e.Wm)(_,null,{default:(0,e.w5)((()=>[(0,e._)("div",o,"Transaction: "+(0,s.zw)(w.title),1)])),_:1}),(0,e.Wm)(_,null,{default:(0,e.w5)((()=>[((0,e.wg)(!0),(0,e.iD)(e.HY,null,(0,e.Ko)(w.group.transactions,((t,n)=>((0,e.wg)(),(0,e.iD)("div",l,[(0,e._)("div",u,[(0,e._)("strong",null,"index "+(0,s.zw)(n),1),c,(0,e.Uk)(" "+(0,s.zw)(t.description),1),d,(0,e.Uk)(" "+(0,s.zw)(t.amount),1),p,(0,e.Uk)(" "+(0,s.zw)(t.source_name)+" --\x3e "+(0,s.zw)(t.destination_name),1)])])))),256))])),_:1})])),_:1})])])])),_:1})}var w=a(9466),h=a(8925);const _={name:"Show",data(){return{title:"",group:{transactions:[]},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getTransaction()},mounted(){},components:{LargeTable:h.Z},methods:{onRequest:function(t){this.page=t.page,this.getTag()},getTransaction:function(){let t=new w.Z;this.loading=!0,t.get(this.id).then((t=>this.parseTransaction(t.data.data)))},parseTransaction:function(t){this.group={group_title:t.attributes.group_title,transactions:[]},null!==t.attributes.group_title&&(this.title=t.attributes.group_title);for(let n in t.attributes.transactions)if(t.attributes.transactions.hasOwnProperty(n)){let a=t.attributes.transactions[n];this.group.transactions.push(a),0===parseInt(n)&&null===t.attributes.group_title&&(this.title=a.description)}this.loading=!1}}};var f=a(1639),b=a(9885),m=a(4458),v=a(3190),k=a(9984),T=a.n(k);const q=(0,f.Z)(_,[["render",g]]),z=q;T()(_,"components",{QPage:b.Z,QCard:m.Z,QCardSection:v.Z})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[4887],{4887:(e,t,s)=>{s.r(t),s.d(t,{default:()=>Z});var a=s(3673),r=s(2323);const o={class:"row q-mx-md"},i={class:"col-12"},n={class:"text-h6"},g={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,a._)("br",null,null,-1),h={class:"row q-mt-sm"},c={class:"col-12"};function w(e,t,s,w,d,p){const m=(0,a.up)("q-card-section"),y=(0,a.up)("q-card"),b=(0,a.up)("LargeTable"),f=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(f,null,{default:(0,a.w5)((()=>[(0,a._)("div",o,[(0,a._)("div",i,[(0,a.Wm)(y,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,(0,r.zw)(d.category.name),1)])),_:1}),(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a._)("div",g,[(0,a._)("div",l,[(0,a.Uk)(" Name: "+(0,r.zw)(d.category.name),1),u])])])),_:1})])),_:1})])]),(0,a._)("div",h,[(0,a._)("div",c,[(0,a.Wm)(b,{ref:"table",title:"Transactions",rows:d.rows,loading:e.loading,onOnRequest:p.onRequest,"rows-number":d.rowsNumber,"rows-per-page":d.rowsPerPage,page:d.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var d=s(9695),p=s(3386),m=s(4682);const y={name:"Show",data(){return{category:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1,id:0}},created(){"no-category"===this.$route.params.id&&(this.id=0,this.getWithoutCategory()),"no-category"!==this.$route.params.id&&(this.id=parseInt(this.$route.params.id),this.getCategory())},components:{LargeTable:d.Z},methods:{onRequest:function(e){this.page=e.page,this.getCategory()},getWithoutCategory:function(){this.category={name:"(without category)"},this.loading=!0;const e=new m.Z;this.rows=[];let t=new p.Z;t.transactionsWithoutCategory(this.page,this.getCacheKey).then((t=>{let s=e.parseResponse(t);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},getCategory:function(){let e=new p.Z;e.get(this.id).then((e=>this.parseCategory(e))),this.loading=!0;const t=new m.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let s=t.parseResponse(e);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},parseCategory:function(e){this.category={name:e.data.data.attributes.name}}}};var b=s(4260),f=s(4379),C=s(151),_=s(5589),P=s(7518),q=s.n(P);const v=(0,b.Z)(y,[["render",w]]),Z=v;q()(y,"components",{QPage:f.Z,QCard:C.Z,QCardSection:_.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1730],{1730:(e,t,s)=>{s.r(t),s.d(t,{default:()=>Z});var a=s(9835),r=s(6970);const o={class:"row q-mx-md"},i={class:"col-12"},n={class:"text-h6"},g={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,a._)("br",null,null,-1),h={class:"row q-mt-sm"},c={class:"col-12"};function w(e,t,s,w,d,p){const m=(0,a.up)("q-card-section"),y=(0,a.up)("q-card"),b=(0,a.up)("LargeTable"),f=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(f,null,{default:(0,a.w5)((()=>[(0,a._)("div",o,[(0,a._)("div",i,[(0,a.Wm)(y,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,(0,r.zw)(d.category.name),1)])),_:1}),(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a._)("div",g,[(0,a._)("div",l,[(0,a.Uk)(" Name: "+(0,r.zw)(d.category.name),1),u])])])),_:1})])),_:1})])]),(0,a._)("div",h,[(0,a._)("div",c,[(0,a.Wm)(b,{ref:"table",title:"Transactions",rows:d.rows,loading:e.loading,onOnRequest:p.onRequest,"rows-number":d.rowsNumber,"rows-per-page":d.rowsPerPage,page:d.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var d=s(8925),p=s(4255),m=s(3247);const y={name:"Show",data(){return{category:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1,id:0}},created(){"no-category"===this.$route.params.id&&(this.id=0,this.getWithoutCategory()),"no-category"!==this.$route.params.id&&(this.id=parseInt(this.$route.params.id),this.getCategory())},components:{LargeTable:d.Z},methods:{onRequest:function(e){this.page=e.page,this.getCategory()},getWithoutCategory:function(){this.category={name:"(without category)"},this.loading=!0;const e=new m.Z;this.rows=[];let t=new p.Z;t.transactionsWithoutCategory(this.page,this.getCacheKey).then((t=>{let s=e.parseResponse(t);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},getCategory:function(){let e=new p.Z;e.get(this.id).then((e=>this.parseCategory(e))),this.loading=!0;const t=new m.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let s=t.parseResponse(e);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},parseCategory:function(e){this.category={name:e.data.data.attributes.name}}}};var b=s(1639),f=s(9885),C=s(4458),_=s(3190),P=s(9984),q=s.n(P);const v=(0,b.Z)(y,[["render",w]]),Z=v;q()(y,"components",{QPage:f.Z,QCard:C.Z,QCardSection:_.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1502],{1502:(e,a,t)=>{t.r(a),t.d(a,{default:()=>Q});var i=t(3673);const s={class:"row q-mx-md"},n={class:"col-xl-4 col-lg-6 col-md-12 q-pa-xs"},l=(0,i._)("div",{class:"text-h6"},"Email address",-1),o=(0,i._)("p",{class:"text-primary"}," If you change your email address you will be logged out. You must confirm your address change before you can login again. ",-1),d=(0,i.Uk)("Change address");function r(e,a,t,r,u,c){const m=(0,i.up)("q-card-section"),p=(0,i.up)("q-icon"),f=(0,i.up)("q-input"),g=(0,i.up)("q-btn"),h=(0,i.up)("q-card-actions"),b=(0,i.up)("q-card"),w=(0,i.up)("q-fab-action"),q=(0,i.up)("q-fab"),_=(0,i.up)("q-page-sticky"),y=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(y,null,{default:(0,i.w5)((()=>[(0,i._)("div",s,[(0,i._)("div",n,[(0,i.Wm)(b,{bordered:""},{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[l])),_:1}),(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[(0,i.Wm)(f,{outlined:"",type:"email",required:"",modelValue:u.emailAddress,"onUpdate:modelValue":a[0]||(a[0]=e=>u.emailAddress=e),label:"Email address"},{prepend:(0,i.w5)((()=>[(0,i.Wm)(p,{name:"fas fa-envelope"})])),_:1},8,["modelValue"]),o])),_:1}),u.emailTouched?((0,i.wg)(),(0,i.j4)(h,{key:0},{default:(0,i.w5)((()=>[(0,i.Wm)(g,{flat:"",onClick:c.confirmAddressChange},{default:(0,i.w5)((()=>[d])),_:1},8,["onClick"])])),_:1})):(0,i.kq)("",!0)])),_:1})])]),(0,i.Wm)(_,{position:"bottom-right",offset:[18,18]},{default:(0,i.w5)((()=>[(0,i.Wm)(q,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,i.w5)((()=>[(0,i.Wm)(w,{color:"primary",square:"",to:{name:"profile.data"},icon:"fas fa-database",label:"Manage data"},null,8,["to"])])),_:1})])),_:1})])),_:1})}var u=t(5474);class c{get(){return u.api.get("/api/v1/about/user")}put(e,a){return console.log("here we are"),u.api.put("/api/v1/users/"+e,a)}logout(){return u.api.post("/logout")}}const m={name:"Index",data(){return{tab:"mails",id:0,emailAddress:"",emailOriginal:"",emailTouched:!1}},watch:{emailAddress:function(e){this.emailTouched=!1,this.emailOriginal!==e&&(this.emailTouched=!0)}},created(){this.getUserInfo()},methods:{getUserInfo:function(){(new c).get().then((e=>{this.emailAddress=e.data.data.attributes.email,this.emailOriginal=e.data.data.attributes.email,this.id=parseInt(e.data.data.id)}))},confirmAddressChange:function(){this.$q.dialog({title:"Confirm",message:"Are you sure?",cancel:!0,persistent:!1}).onOk((()=>{this.submitAddressChange()})).onCancel((()=>{})).onDismiss((()=>{}))},submitAddressChange:function(){(new c).put(this.id,{email:this.emailAddress}).then((e=>{(new c).logout()}))}}};var p=t(4260),f=t(4379),g=t(151),h=t(5589),b=t(4842),w=t(4554),q=t(9367),_=t(2165),y=t(4264),A=t(9200),C=t(9975),k=t(7518),v=t.n(k);const Z=(0,p.Z)(m,[["render",r]]),Q=Z;v()(m,"components",{QPage:f.Z,QCard:g.Z,QCardSection:h.Z,QInput:b.Z,QIcon:w.Z,QCardActions:q.Z,QBtn:_.Z,QPageSticky:y.Z,QFab:A.Z,QFabAction:C.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1951],{1951:(e,a,t)=>{t.r(a),t.d(a,{default:()=>Q});var i=t(9835);const s={class:"row q-mx-md"},n={class:"col-xl-4 col-lg-6 col-md-12 q-pa-xs"},l=(0,i._)("div",{class:"text-h6"},"Email address",-1),o=(0,i._)("p",{class:"text-primary"}," If you change your email address you will be logged out. You must confirm your address change before you can login again. ",-1),d=(0,i.Uk)("Change address");function r(e,a,t,r,u,c){const m=(0,i.up)("q-card-section"),p=(0,i.up)("q-icon"),f=(0,i.up)("q-input"),g=(0,i.up)("q-btn"),h=(0,i.up)("q-card-actions"),b=(0,i.up)("q-card"),w=(0,i.up)("q-fab-action"),q=(0,i.up)("q-fab"),_=(0,i.up)("q-page-sticky"),y=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(y,null,{default:(0,i.w5)((()=>[(0,i._)("div",s,[(0,i._)("div",n,[(0,i.Wm)(b,{bordered:""},{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[l])),_:1}),(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[(0,i.Wm)(f,{outlined:"",type:"email",required:"",modelValue:u.emailAddress,"onUpdate:modelValue":a[0]||(a[0]=e=>u.emailAddress=e),label:"Email address"},{prepend:(0,i.w5)((()=>[(0,i.Wm)(p,{name:"fas fa-envelope"})])),_:1},8,["modelValue"]),o])),_:1}),u.emailTouched?((0,i.wg)(),(0,i.j4)(h,{key:0},{default:(0,i.w5)((()=>[(0,i.Wm)(g,{flat:"",onClick:c.confirmAddressChange},{default:(0,i.w5)((()=>[d])),_:1},8,["onClick"])])),_:1})):(0,i.kq)("",!0)])),_:1})])]),(0,i.Wm)(_,{position:"bottom-right",offset:[18,18]},{default:(0,i.w5)((()=>[(0,i.Wm)(q,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,i.w5)((()=>[(0,i.Wm)(w,{color:"primary",square:"",to:{name:"profile.data"},icon:"fas fa-database",label:"Manage data"},null,8,["to"])])),_:1})])),_:1})])),_:1})}var u=t(1569);class c{get(){return u.api.get("/api/v1/about/user")}put(e,a){return console.log("here we are"),u.api.put("/api/v1/users/"+e,a)}logout(){return u.api.post("/logout")}}const m={name:"Index",data(){return{tab:"mails",id:0,emailAddress:"",emailOriginal:"",emailTouched:!1}},watch:{emailAddress:function(e){this.emailTouched=!1,this.emailOriginal!==e&&(this.emailTouched=!0)}},created(){this.getUserInfo()},methods:{getUserInfo:function(){(new c).get().then((e=>{this.emailAddress=e.data.data.attributes.email,this.emailOriginal=e.data.data.attributes.email,this.id=parseInt(e.data.data.id)}))},confirmAddressChange:function(){this.$q.dialog({title:"Confirm",message:"Are you sure?",cancel:!0,persistent:!1}).onOk((()=>{this.submitAddressChange()})).onCancel((()=>{})).onDismiss((()=>{}))},submitAddressChange:function(){(new c).put(this.id,{email:this.emailAddress}).then((e=>{(new c).logout()}))}}};var p=t(1639),f=t(9885),g=t(4458),h=t(3190),b=t(6611),w=t(2857),q=t(1821),_=t(8879),y=t(3388),A=t(9361),C=t(935),k=t(9984),v=t.n(k);const Z=(0,p.Z)(m,[["render",r]]),Q=Z;v()(m,"components",{QPage:f.Z,QCard:g.Z,QCardSection:h.Z,QInput:b.Z,QIcon:w.Z,QCardActions:q.Z,QBtn:_.Z,QPageSticky:y.Z,QFab:A.Z,QFabAction:C.Z})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8797],{8797:(t,e,i)=>{i.r(e),i.d(e,{default:()=>q});var r=i(3673),s=i(2323);const a={class:"row q-mx-md"},u={class:"col-12"},n={class:"text-h6"},l={class:"row"},o={class:"col-12 q-mb-xs"},d=(0,r._)("br",null,null,-1);function c(t,e,i,c,p,f){const h=(0,r.up)("q-card-section"),g=(0,r.up)("q-card"),w=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(w,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",u,[(0,r.Wm)(g,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(h,null,{default:(0,r.w5)((()=>[(0,r._)("div",n,(0,s.zw)(p.group.title),1)])),_:1}),(0,r.Wm)(h,null,{default:(0,r.w5)((()=>[(0,r._)("div",l,[(0,r._)("div",o,[(0,r.Uk)(" Title: "+(0,s.zw)(p.group.title),1),d])])])),_:1})])),_:1})])])])),_:1})}var p=i(1403);const f={name:"Show",data(){return{group:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getGroup()},components:{},methods:{onRequest:function(t){this.page=t.page,this.getGroup()},getGroup:function(){let t=new p.Z;t.get(this.id).then((t=>this.parseGroup(t)))},parseGroup:function(t){this.group={title:t.data.data.attributes.title}}}};var h=i(4260),g=i(4379),w=i(151),_=i(5589),m=i(7518),v=i.n(m);const b=(0,h.Z)(f,[["render",c]]),q=b;v()(f,"components",{QPage:g.Z,QCard:w.Z,QCardSection:_.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2372],{2372:(t,e,i)=>{i.r(e),i.d(e,{default:()=>q});var r=i(9835),s=i(6970);const a={class:"row q-mx-md"},u={class:"col-12"},n={class:"text-h6"},l={class:"row"},o={class:"col-12 q-mb-xs"},d=(0,r._)("br",null,null,-1);function c(t,e,i,c,p,f){const h=(0,r.up)("q-card-section"),g=(0,r.up)("q-card"),w=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(w,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",u,[(0,r.Wm)(g,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(h,null,{default:(0,r.w5)((()=>[(0,r._)("div",n,(0,s.zw)(p.group.title),1)])),_:1}),(0,r.Wm)(h,null,{default:(0,r.w5)((()=>[(0,r._)("div",l,[(0,r._)("div",o,[(0,r.Uk)(" Title: "+(0,s.zw)(p.group.title),1),d])])])),_:1})])),_:1})])])])),_:1})}var p=i(1741);const f={name:"Show",data(){return{group:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getGroup()},components:{},methods:{onRequest:function(t){this.page=t.page,this.getGroup()},getGroup:function(){let t=new p.Z;t.get(this.id).then((t=>this.parseGroup(t)))},parseGroup:function(t){this.group={title:t.data.data.attributes.title}}}};var h=i(1639),g=i(9885),w=i(4458),_=i(3190),m=i(9984),v=i.n(m);const b=(0,h.Z)(f,[["render",c]]),q=b;v()(f,"components",{QPage:g.Z,QCard:w.Z,QCardSection:_.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2074],{2074:(e,s,t)=>{t.r(s),t.d(s,{default:()=>Q});var r=t(3673),l=t(2323);const o={class:"row q-mx-md"},i={class:"col-12"},a={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Info for new rule group",-1),d={class:"row q-mx-md"},c={class:"col-12"},m={class:"row"},h={class:"col-12 text-right"},b={class:"row"},p={class:"col-12 text-right"},f=(0,r._)("br",null,null,-1);function g(e,s,t,g,w,_){const v=(0,r.up)("q-btn"),q=(0,r.up)("q-banner"),E=(0,r.up)("q-card-section"),R=(0,r.up)("q-input"),k=(0,r.up)("q-card"),x=(0,r.up)("q-checkbox"),C=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(C,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,[(0,r._)("div",i,[""!==w.errorMessage?((0,r.wg)(),(0,r.j4)(q,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(v,{flat:"",onClick:_.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,l.zw)(w.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",n,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[(0,r.Wm)(R,{"error-message":w.submissionErrors.title,error:w.hasSubmissionErrors.title,"bottom-slots":"",disable:_.disabledInput,type:"text",clearable:"",modelValue:w.title,"onUpdate:modelValue":s[0]||(s[0]=e=>w.title=e),label:e.$t("form.title"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])),_:1})])),_:1})])]),(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[(0,r._)("div",m,[(0,r._)("div",h,[(0,r.Wm)(v,{disable:_.disabledInput,color:"primary",label:"Submit",onClick:_.submitRuleGroup},null,8,["disable","onClick"])])]),(0,r._)("div",b,[(0,r._)("div",p,[(0,r.Wm)(x,{disable:_.disabledInput,modelValue:w.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>w.doReturnHere=e),"left-label":"",label:"Return here to create another one"},null,8,["disable","modelValue"]),f,(0,r.Wm)(x,{modelValue:w.doResetForm,"onUpdate:modelValue":s[2]||(s[2]=e=>w.doResetForm=e),"left-label":"",disable:!w.doReturnHere||_.disabledInput,label:"Reset form after submission"},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var w=t(5474);class _{post(e){let s="/api/v1/rule_groups";return w.api.post(s,e)}}var v=t(3617);const q={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",title:""}},computed:{...(0,v.Se)("fireflyiii",["getCacheKey"]),disabledInput:function(){return this.submitting}},created(){this.resetForm()},methods:{resetForm:function(){this.title="",this.resetErrors()},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRuleGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRuleGroup();(new _).post(e).catch(this.processErrors).then(this.processSuccess)},buildRuleGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new rule group",show:!0,action:{show:!0,text:"Go to piggy",link:{name:"rule-groups.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var E=t(4260),R=t(4379),k=t(5607),x=t(2165),C=t(151),S=t(5589),I=t(4842),W=t(5735),y=t(7518),V=t.n(y);const Z=(0,E.Z)(q,[["render",g]]),Q=Z;V()(q,"components",{QPage:R.Z,QBanner:k.Z,QBtn:x.Z,QCard:C.Z,QCardSection:S.Z,QInput:I.Z,QCheckbox:W.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2476],{2476:(e,s,t)=>{t.r(s),t.d(s,{default:()=>Q});var r=t(9835),l=t(6970);const o={class:"row q-mx-md"},i={class:"col-12"},a={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Info for new rule group",-1),d={class:"row q-mx-md"},c={class:"col-12"},m={class:"row"},h={class:"col-12 text-right"},b={class:"row"},p={class:"col-12 text-right"},f=(0,r._)("br",null,null,-1);function g(e,s,t,g,w,_){const v=(0,r.up)("q-btn"),q=(0,r.up)("q-banner"),E=(0,r.up)("q-card-section"),R=(0,r.up)("q-input"),k=(0,r.up)("q-card"),x=(0,r.up)("q-checkbox"),C=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(C,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,[(0,r._)("div",i,[""!==w.errorMessage?((0,r.wg)(),(0,r.j4)(q,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(v,{flat:"",onClick:_.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,l.zw)(w.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",n,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[(0,r.Wm)(R,{"error-message":w.submissionErrors.title,error:w.hasSubmissionErrors.title,"bottom-slots":"",disable:_.disabledInput,type:"text",clearable:"",modelValue:w.title,"onUpdate:modelValue":s[0]||(s[0]=e=>w.title=e),label:e.$t("form.title"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])),_:1})])),_:1})])]),(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[(0,r._)("div",m,[(0,r._)("div",h,[(0,r.Wm)(v,{disable:_.disabledInput,color:"primary",label:"Submit",onClick:_.submitRuleGroup},null,8,["disable","onClick"])])]),(0,r._)("div",b,[(0,r._)("div",p,[(0,r.Wm)(x,{disable:_.disabledInput,modelValue:w.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>w.doReturnHere=e),"left-label":"",label:"Return here to create another one"},null,8,["disable","modelValue"]),f,(0,r.Wm)(x,{modelValue:w.doResetForm,"onUpdate:modelValue":s[2]||(s[2]=e=>w.doResetForm=e),"left-label":"",disable:!w.doReturnHere||_.disabledInput,label:"Reset form after submission"},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var w=t(1569);class _{post(e){let s="/api/v1/rule_groups";return w.api.post(s,e)}}var v=t(1049);const q={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",title:""}},computed:{...(0,v.Se)("fireflyiii",["getCacheKey"]),disabledInput:function(){return this.submitting}},created(){this.resetForm()},methods:{resetForm:function(){this.title="",this.resetErrors()},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRuleGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRuleGroup();(new _).post(e).catch(this.processErrors).then(this.processSuccess)},buildRuleGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new rule group",show:!0,action:{show:!0,text:"Go to piggy",link:{name:"rule-groups.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var E=t(1639),R=t(9885),k=t(7128),x=t(8879),C=t(4458),S=t(3190),I=t(6611),W=t(1221),y=t(9984),V=t.n(y);const Z=(0,E.Z)(q,[["render",g]]),Q=Z;V()(q,"components",{QPage:R.Z,QBanner:k.Z,QBtn:x.Z,QCard:C.Z,QCardSection:S.Z,QInput:I.Z,QCheckbox:W.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2574],{2574:(e,i,l)=>{l.r(i),l.d(i,{default:()=>h});var a=l(3673);const n=(0,a._)("div",{class:"row q-mx-md"},[(0,a._)("div",{class:"col-7"},[(0,a._)("p",null," Hi! With your active support and feedback I'm capable of building this fancy new layout. So thank you for testing and playing around. I'm grateful for your help. "),(0,a._)("p",null,[(0,a.Uk)(" The "),(0,a._)("strong",null,"v2"),(0,a.Uk)(" layout was built to be perfect for each page. This new "),(0,a._)("strong",null,"v3"),(0,a.Uk)(' layout has a different approach. I\'m building a "minimum viable product", where each page has '),(0,a._)("em",null,"minimal"),(0,a.Uk)(" functionality. But any functionality that's there should work. It may not do everything you need and stuff may be missing. The things that you see are things that work. ")]),(0,a._)("p",null," If you spot problems, feel free to report them. Here are some known issues. "),(0,a._)("ul",null,[(0,a._)("li",{class:"text-negative"},"You will lose data when you edit certain objects;"),(0,a._)("li",null,"Caching is fairly aggressive and a page refresh may be necessary to get new information. This is especially obvious when you make new transactions or accounts; "),(0,a._)("li",null,"Not all menu's are (un)folded correctly for all pages;"),(0,a._)("li",null,"Breadcrumbs are missing or incorrect;"),(0,a._)("li",null,"You can't make transaction splits;"),(0,a._)("li",null,"Accounts, budgets, transactions, etc. have only limited fields available in the edit, create and view screens;"),(0,a._)("li",null,'Occasionally, you may spot a "TODO". I\'ve limited their presence, but sometimes I just need a placeholder;'),(0,a._)("li",null,[(0,a.Uk)("Missing translations, "),(0,a._)("code",null,"firefly.abc"),(0,a.Uk)(" references, or transactions formatted in another locale;")])]),(0,a._)("p",null,[(0,a.Uk)(" If you need to visit a "),(0,a._)("strong",null,"v1"),(0,a.Uk)(" alternative for the page you are seeing, please change the URL to "),(0,a._)("code",null,"*/profile"),(0,a.Uk)(" (where "),(0,a._)("code",null,"*"),(0,a.Uk)(" is your Firefly III URL). From there, you can navigate to any "),(0,a._)("strong",null,"v1"),(0,a.Uk)(" page. You may not be able to visit the v1 dashboard. ")]),(0,a._)("p",null,[(0,a.Uk)(" Tickets on GitHub that concern v3 will be "),(0,a._)("em",{class:"text-negative"},"closed"),(0,a.Uk)(". This rule may change in the future. Until then, please leave your feedback here: ")]),(0,a._)("ul",null,[(0,a._)("li",null,[(0,a._)("a",{href:"https://github.com/firefly-iii/firefly-iii/discussions/5589"},"GitHub discussion")]),(0,a._)("li",null,[(0,a._)("a",{href:"https://gitter.im/firefly-iii/firefly-iii"},"Gitter.im chat")]),(0,a._)("li",null,[(0,a._)("a",{href:"mailto:james@firefly-iii.org"},"james@firefly-iii.org")])]),(0,a._)("p",null,[(0,a.Uk)(" Thanks again,"),(0,a._)("br"),(0,a.Uk)(" James ")])])],-1);function t(e,i,l,t,s,o){const r=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(r,null,{default:(0,a.w5)((()=>[n])),_:1})}const s={name:"Index"};var o=l(4260),r=l(4379),u=l(7518),c=l.n(u);const f=(0,o.Z)(s,[["render",t]]),h=f;c()(s,"components",{QPage:r.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[3015],{3015:(e,s,t)=>{t.r(s),t.d(s,{default:()=>k});var r=t(3673),a=t(2323);const i={class:"row q-mx-md"},n={class:"col-12"},o={class:"text-h6"},u={class:"row"},l={class:"col-12 q-mb-xs"},c=(0,r._)("br",null,null,-1),p={class:"row q-mt-sm"},d={class:"col-12"};function w(e,s,t,w,g,h){const m=(0,r.up)("q-card-section"),b=(0,r.up)("q-card"),f=(0,r.up)("LargeTable"),_=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(_,null,{default:(0,r.w5)((()=>[(0,r._)("div",i,[(0,r._)("div",n,[(0,r.Wm)(b,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,(0,a.zw)(g.subscription.name),1)])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",l,[(0,r.Uk)(" Name: "+(0,a.zw)(g.subscription.name),1),c])])])),_:1})])),_:1})])]),(0,r._)("div",p,[(0,r._)("div",d,[(0,r.Wm)(f,{ref:"table",title:"Transactions",rows:g.rows,loading:e.loading,onOnRequest:h.onRequest,"rows-number":g.rowsNumber,"rows-per-page":g.rowsPerPage,page:g.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var g=t(9695),h=t(7859),m=t(4682);const b={name:"Show",data(){return{subscription:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getSubscription()},components:{LargeTable:g.Z},methods:{onRequest:function(e){this.page=e.page,this.getSubscription()},getSubscription:function(){let e=new h.Z;e.get(this.id).then((e=>this.parseSubscription(e))),this.loading=!0;const s=new m.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let t=s.parseResponse(e);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseSubscription:function(e){this.subscription={name:e.data.data.attributes.name}}}};var f=t(4260),_=t(4379),q=t(151),v=t(5589),P=t(7518),S=t.n(P);const Z=(0,f.Z)(b,[["render",w]]),k=Z;S()(b,"components",{QPage:_.Z,QCard:q.Z,QCardSection:v.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2686],{2686:(e,s,t)=>{t.r(s),t.d(s,{default:()=>k});var r=t(9835),a=t(6970);const i={class:"row q-mx-md"},n={class:"col-12"},o={class:"text-h6"},u={class:"row"},l={class:"col-12 q-mb-xs"},c=(0,r._)("br",null,null,-1),p={class:"row q-mt-sm"},d={class:"col-12"};function w(e,s,t,w,g,h){const m=(0,r.up)("q-card-section"),b=(0,r.up)("q-card"),f=(0,r.up)("LargeTable"),_=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(_,null,{default:(0,r.w5)((()=>[(0,r._)("div",i,[(0,r._)("div",n,[(0,r.Wm)(b,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,(0,a.zw)(g.subscription.name),1)])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",l,[(0,r.Uk)(" Name: "+(0,a.zw)(g.subscription.name),1),c])])])),_:1})])),_:1})])]),(0,r._)("div",p,[(0,r._)("div",d,[(0,r.Wm)(f,{ref:"table",title:"Transactions",rows:g.rows,loading:e.loading,onOnRequest:h.onRequest,"rows-number":g.rowsNumber,"rows-per-page":g.rowsPerPage,page:g.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var g=t(8925),h=t(3684),m=t(3247);const b={name:"Show",data(){return{subscription:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getSubscription()},components:{LargeTable:g.Z},methods:{onRequest:function(e){this.page=e.page,this.getSubscription()},getSubscription:function(){let e=new h.Z;e.get(this.id).then((e=>this.parseSubscription(e))),this.loading=!0;const s=new m.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let t=s.parseResponse(e);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseSubscription:function(e){this.subscription={name:e.data.data.attributes.name}}}};var f=t(1639),_=t(9885),q=t(4458),v=t(3190),P=t(9984),S=t.n(P);const Z=(0,f.Z)(b,[["render",w]]),k=Z;S()(b,"components",{QPage:_.Z,QCard:q.Z,QCardSection:v.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2998],{2998:(e,t,r)=>{r.r(t),r.d(t,{default:()=>q});var i=r(3673),n=r(2323);const a={class:"row q-mx-md"},c={class:"col-12"},s={class:"text-h6"},u={class:"row"},l={class:"col-12 q-mb-xs"},d=(0,i._)("br",null,null,-1);function o(e,t,r,o,f,h){const g=(0,i.up)("q-card-section"),p=(0,i.up)("q-card"),w=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(w,null,{default:(0,i.w5)((()=>[(0,i._)("div",a,[(0,i._)("div",c,[(0,i.Wm)(p,{bordered:""},{default:(0,i.w5)((()=>[(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i._)("div",s,(0,n.zw)(f.recurrence.title),1)])),_:1}),(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i._)("div",u,[(0,i._)("div",l,[(0,i.Uk)(" Title: "+(0,n.zw)(f.recurrence.title),1),d])])])),_:1})])),_:1})])])])),_:1})}var f=r(96);const h={name:"Show",data(){return{recurrence:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getRecurring()},methods:{onRequest:function(e){this.page=e.page,this.getRecurring()},getRecurring:function(){(new f.Z).get(this.id).then((e=>this.parseRecurring(e)))},parseRecurring:function(e){this.recurrence={title:e.data.data.attributes.title}}}};var g=r(4260),p=r(4379),w=r(151),_=r(5589),m=r(7518),v=r.n(m);const b=(0,g.Z)(h,[["render",o]]),q=b;v()(h,"components",{QPage:p.Z,QCard:w.Z,QCardSection:_.Z})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[3569],{3569:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var i=a(3673);function n(e,t,a,n,s,r){const o=(0,i.up)("ApexChart");return(0,i.wg)(),(0,i.iD)("div",null,[(0,i.Wm)(o,{width:"100%",ref:"chart",height:"350",type:"line",options:s.options,series:s.series},null,8,["options","series"])])}a(71);var s=a(5474),r=a(6810);class o{overview(e,t){let a=(0,r.Z)(e.start,"y-MM-dd"),i=(0,r.Z)(e.end,"y-MM-dd");return s.api.get("/api/v1/chart/account/overview",{params:{start:a,end:i,cache:t}})}}var l=a(3617),h=a(8825);const d={name:"HomeChart",computed:{...(0,l.Se)("fireflyiii",["getRange","getCacheKey"])},data(){return{range:{start:null,end:null},loading:!1,currencies:[],options:{theme:{mode:"dark"},dataLabels:{enabled:!1},noData:{text:"Loading..."},chart:{id:"vuechart-home",toolbar:{show:!0,tools:{download:!1,selection:!1,pan:!1}}},yaxis:{labels:{formatter:this.numberFormatter}},labels:[],xaxis:{categories:[]}},series:[],locale:"en-US",dateFormat:"MMMM d, y"}},created(){const e=(0,h.Z)();this.locale=e.lang.getLocale(),this.dateFormat=this.$t("config.month_and_day_fns")},mounted(){const e=(0,h.Z)();if(this.options.theme.mode=e.dark.isActive?"dark":"light",null===this.range.start||null===this.range.end){const e=(0,l.oR)();e.subscribe(((e,t)=>{"fireflyiii/setRange"===e.type&&(this.range=e.payload,this.buildChart())}))}null!==this.getRange.start&&null!==this.getRange.end&&this.buildChart()},methods:{numberFormatter:function(e,t){var a;let i=null!==(a=this.currencies[t])&&void 0!==a?a:"EUR";return Intl.NumberFormat(this.locale,{style:"currency",currency:i}).format(e)},buildChart:function(){if(null!==this.getRange.start&&null!==this.getRange.end){let e=this.getRange.start,t=this.getRange.end;if(!1===this.loading){this.loading=!0;const a=new o;this.generateStaticLabels({start:e,end:t}),a.overview({start:e,end:t},this.getCacheKey).then((e=>{this.generateSeries(e.data)}))}}},generateSeries:function(e){let t;this.series=[];for(let a in e)if(e.hasOwnProperty(a)){t={},t.name=e[a].label,t.data=[],this.currencies.push(e[a].currency_code);for(let i in e[a].entries)t.data.push(e[a].entries[i]);this.series.push(t)}this.loading=!1},generateStaticLabels:function(e){let t,a=new Date(e.start),i=[];while(a<=e.end)i.push((0,r.Z)(a,this.dateFormat)),t=a.setDate(a.getDate()+1),a=new Date(t);this.options={...this.options,labels:i}}},components:{ApexChart:(0,i.RC)((()=>a.e(4736).then(a.t.bind(a,2585,23))))}};var c=a(4260);const u=(0,c.Z)(d,[["render",n]]),g=u}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[39],{39:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var n=a(3673);const r=(0,n._)("p",null," ",-1),i=(0,n._)("p",null," ",-1),s=(0,n._)("p",null," ",-1),l=(0,n._)("p",null," ",-1);function o(e,t,a,o,g,u){const p=(0,n.up)("LargeTable"),c=(0,n.up)("q-fab-action"),d=(0,n.up)("q-fab"),f=(0,n.up)("q-page-sticky"),m=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(m,null,{default:(0,n.w5)((()=>[(0,n.Wm)(p,{ref:"table",title:e.$t("firefly.title_"+this.type),rows:g.rows,loading:g.loading,onOnRequest:u.onRequest,"rows-number":g.rowsNumber,"rows-per-page":g.rowsPerPage,page:g.page},null,8,["title","rows","loading","onOnRequest","rows-number","rows-per-page","page"]),r,i,s,l,(0,n.Wm)(f,{position:"bottom-right",offset:[18,18]},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{color:"primary",square:"",to:{name:"transactions.create",params:{type:"transfer"}},icon:"fas fa-exchange-alt",label:"New transfer"},null,8,["to"]),(0,n.Wm)(c,{color:"primary",square:"",to:{name:"transactions.create",params:{type:"deposit"}},icon:"fas fa-long-arrow-alt-right",label:"New deposit"},null,8,["to"]),(0,n.Wm)(c,{color:"primary",square:"",to:{name:"transactions.create",params:{type:"withdrawal"}},icon:"fas fa-long-arrow-alt-left",label:"New withdrawal"},null,8,["to"])])),_:1})])),_:1})])),_:1})}var g=a(3617),u=a(5474);class p{list(e,t,a){let n="api/v1/transactions";return u.api.get(n,{params:{page:t,cache:a,type:e}})}}var c=a(9695),d=a(4682);const f={name:"Index",components:{LargeTable:c.Z},watch:{$route(e){"transactions.index"===e.name&&(this.type=e.params.type,this.page=1,this.triggerUpdate())}},data(){return{loading:!1,rows:[],columns:[{name:"type",label:" ",field:"type",style:"width: 30px"},{name:"description",label:"Description",field:"description",align:"left"},{name:"amount",label:"Amount",field:"amount"},{name:"date",label:"Date",field:"date",align:"left"},{name:"source",label:"Source",field:"source",align:"left"},{name:"destination",label:"Destination",field:"destination",align:"left"},{name:"category",label:"Category",field:"category",align:"left"},{name:"budget",label:"Budget",field:"budget",align:"left"},{name:"menu",label:" ",field:"menu",align:"left"}],type:"withdrawal",page:1,rowsPerPage:50,rowsNumber:100,range:{start:null,end:null}}},computed:{...(0,g.Se)("fireflyiii",["getRange","getCacheKey","getListPageSize"])},created(){this.rowsPerPage=this.getListPageSize},mounted(){if(this.type=this.$route.params.type,null===this.getRange.start||null===this.getRange.end){const e=(0,g.oR)();e.subscribe(((e,t)=>{"fireflyiii/setRange"===e.type&&(this.range={start:e.payload.start,end:e.payload.end},this.triggerUpdate())}))}null!==this.getRange.start&&null!==this.getRange.end&&(this.range={start:this.getRange.start,end:this.getRange.end},this.triggerUpdate())},methods:{onRequest:function(e){this.page=e.page,this.triggerUpdate()},formatAmount:function(e,t){return Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)},gotoTransaction:function(e,t){this.$router.push({name:"transactions.show",params:{id:1}})},triggerUpdate:function(){if(this.loading)return;if(null===this.range.start||null===this.range.end)return;this.loading=!0;const e=new p,t=new d.Z;this.rows=[],e.list(this.type,this.page,this.getCacheKey).then((e=>{let a=t.parseResponse(e);this.rowsPerPage=a.rowsPerPage,this.rowsNumber=a.rowsNumber,this.rows=a.rows,this.loading=!1}))}}};var m=a(4260),h=a(4379),w=a(4264),b=a(9200),y=a(9975),P=a(7518),R=a.n(P);const q=(0,m.Z)(f,[["render",o]]),_=q;R()(f,"components",{QPage:h.Z,QPageSticky:w.Z,QFab:b.Z,QFabAction:y.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2708],{2708:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N});var s=a(3673),n=a(2323);const r={class:"row q-mx-md"},o={class:"col-12"},i={class:"text-h6"},c={class:"row"},u={class:"col-12 q-mb-xs"},l=(0,s._)("br",null,null,-1),d=(0,s._)("br",null,null,-1),w={class:"row q-mt-sm"},g={class:"col-12"};function p(e,t,a,p,m,h){const b=(0,s.up)("q-card-section"),f=(0,s.up)("q-card"),_=(0,s.up)("LargeTable"),q=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(q,null,{default:(0,s.w5)((()=>[(0,s._)("div",r,[(0,s._)("div",o,[(0,s.Wm)(f,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[(0,s._)("div",i,(0,n.zw)(m.account.name),1)])),_:1}),(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[(0,s._)("div",c,[(0,s._)("div",u,[(0,s.Uk)(" Name: "+(0,n.zw)(m.account.name),1),l,(0,s.Uk)(" IBAN: "+(0,n.zw)(m.account.iban),1),d])])])),_:1})])),_:1})])]),(0,s._)("div",w,[(0,s._)("div",g,[(0,s.Wm)(_,{ref:"table",title:"Transactions",rows:m.rows,loading:e.loading,onOnRequest:h.onRequest,"rows-number":m.rowsNumber,"rows-per-page":m.rowsPerPage,page:m.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var m=a(1901),h=a(9695),b=a(4682);const f={name:"Show",data(){return{account:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getAccount()},mounted(){},components:{LargeTable:h.Z},methods:{onRequest:function(e){this.page=e.page,this.getAccount()},getAccount:function(){let e=new m.Z;e.get(this.id).then((e=>this.parseAccount(e))),this.loading=!0;const t=new b.Z;this.rows=[],e.transactions(this.id,this.page).then((e=>{let a=t.parseResponse(e);this.rowsPerPage=a.rowsPerPage,this.rowsNumber=a.rowsNumber,this.rows=a.rows,this.loading=!1}))},parseAccount:function(e){this.account={name:e.data.data.attributes.name,iban:e.data.data.attributes.iban}}}};var _=a(4260),q=a(4379),v=a(151),P=a(5589),Z=a(7518),k=a.n(Z);const A=(0,_.Z)(f,[["render",p]]),N=A;k()(f,"components",{QPage:q.Z,QCard:v.Z,QCardSection:P.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[3903],{9172:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N});var s=a(9835),n=a(6970);const r={class:"row q-mx-md"},o={class:"col-12"},i={class:"text-h6"},c={class:"row"},u={class:"col-12 q-mb-xs"},l=(0,s._)("br",null,null,-1),d=(0,s._)("br",null,null,-1),w={class:"row q-mt-sm"},g={class:"col-12"};function p(e,t,a,p,m,h){const b=(0,s.up)("q-card-section"),f=(0,s.up)("q-card"),_=(0,s.up)("LargeTable"),q=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(q,null,{default:(0,s.w5)((()=>[(0,s._)("div",r,[(0,s._)("div",o,[(0,s.Wm)(f,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[(0,s._)("div",i,(0,n.zw)(m.account.name),1)])),_:1}),(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[(0,s._)("div",c,[(0,s._)("div",u,[(0,s.Uk)(" Name: "+(0,n.zw)(m.account.name),1),l,(0,s.Uk)(" IBAN: "+(0,n.zw)(m.account.iban),1),d])])])),_:1})])),_:1})])]),(0,s._)("div",w,[(0,s._)("div",g,[(0,s.Wm)(_,{ref:"table",title:"Transactions",rows:m.rows,loading:e.loading,onOnRequest:h.onRequest,"rows-number":m.rowsNumber,"rows-per-page":m.rowsPerPage,page:m.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var m=a(160),h=a(8925),b=a(3247);const f={name:"Show",data(){return{account:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getAccount()},mounted(){},components:{LargeTable:h.Z},methods:{onRequest:function(e){this.page=e.page,this.getAccount()},getAccount:function(){let e=new m.Z;e.get(this.id).then((e=>this.parseAccount(e))),this.loading=!0;const t=new b.Z;this.rows=[],e.transactions(this.id,this.page).then((e=>{let a=t.parseResponse(e);this.rowsPerPage=a.rowsPerPage,this.rowsNumber=a.rowsNumber,this.rows=a.rows,this.loading=!1}))},parseAccount:function(e){this.account={name:e.data.data.attributes.name,iban:e.data.data.attributes.iban}}}};var _=a(1639),q=a(9885),v=a(4458),P=a(3190),Z=a(9984),k=a.n(Z);const A=(0,_.Z)(f,[["render",p]]),N=A;k()(f,"components",{QPage:q.Z,QCard:v.Z,QCardSection:P.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[4411],{4411:(t,e,a)=>{a.r(e),a.d(e,{default:()=>C});var n=a(3673);const s={class:"row q-mx-md"},o={class:"col-12"},l=(0,n._)("div",{class:"text-h6"},"Export page",-1),r=(0,n._)("p",null," Just to see if this works. Button defaults to this year. ",-1),c=(0,n.Uk)("Download transactions");function d(t,e,a,d,i,u){const p=(0,n.up)("q-card-section"),f=(0,n.up)("q-btn"),w=(0,n.up)("q-card"),m=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(m,null,{default:(0,n.w5)((()=>[(0,n._)("div",s,[(0,n._)("div",o,[(0,n.Wm)(w,{bordered:""},{default:(0,n.w5)((()=>[(0,n.Wm)(p,null,{default:(0,n.w5)((()=>[l])),_:1}),(0,n.Wm)(p,null,{default:(0,n.w5)((()=>[r])),_:1}),(0,n.Wm)(p,null,{default:(0,n.w5)((()=>[(0,n._)("p",null,[(0,n.Wm)(f,{onClick:u.downloadTransactions},{default:(0,n.w5)((()=>[c])),_:1},8,["onClick"])])])),_:1})])),_:1})])])])),_:1})}a(71),a(7965),a(6016);var i=a(5474);class u{transactions(t,e){let a="/api/v1/data/export/transactions";return i.api.get(a,{params:{start:t,end:e}})}}var p=a(9401),f=a(814),w=a(6810);const m={name:"Index",methods:{downloadTransactions:function(){let t=new u,e=(0,w.Z)((0,p.Z)(new Date),"yyyy-MM-dd"),a=(0,w.Z)((0,f.Z)(new Date),"yyyy-MM-dd");t.transactions(e,a).then((t=>{let e="export-transactions.csv";const a=new Blob([t.data],{type:"application/octet-stream"}),n=document.createElement("a");n.href=URL.createObjectURL(a),n.download=e,n.click(),URL.revokeObjectURL(n.href)}))}}};var _=a(4260),y=a(4379),h=a(151),k=a(5589),v=a(2165),Z=a(7518),b=a.n(Z);const x=(0,_.Z)(m,[["render",d]]),C=x;b()(m,"components",{QPage:y.Z,QCard:h.Z,QCardSection:k.Z,QBtn:v.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2131],{2131:(e,s,t)=>{t.r(s),t.d(s,{default:()=>Q});var r=t(3673),o=t(2323);const a={class:"row q-mx-md"},i={class:"col-12"},l={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Info for new budget",-1),d={class:"row"},m={class:"col-12 q-mb-xs"},c={class:"row q-mx-md"},b={class:"col-12"},h={class:"row"},p={class:"col-12 text-right"},f={class:"row"},g={class:"col-12 text-right"},w=(0,r._)("br",null,null,-1);function _(e,s,t,_,v,q){const E=(0,r.up)("q-btn"),k=(0,r.up)("q-banner"),x=(0,r.up)("q-card-section"),C=(0,r.up)("q-input"),R=(0,r.up)("q-card"),I=(0,r.up)("q-checkbox"),S=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(S,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",i,[""!==v.errorMessage?((0,r.wg)(),(0,r.j4)(k,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(E,{flat:"",onClick:q.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,o.zw)(v.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",l,[(0,r._)("div",n,[(0,r.Wm)(R,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(x,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(x,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",m,[(0,r.Wm)(C,{"error-message":v.submissionErrors.name,error:v.hasSubmissionErrors.name,"bottom-slots":"",disable:q.disabledInput,type:"text",clearable:"",modelValue:v.name,"onUpdate:modelValue":s[0]||(s[0]=e=>v.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",c,[(0,r._)("div",b,[(0,r.Wm)(R,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(x,null,{default:(0,r.w5)((()=>[(0,r._)("div",h,[(0,r._)("div",p,[(0,r.Wm)(E,{disable:q.disabledInput,color:"primary",label:"Submit",onClick:q.submitBudget},null,8,["disable","onClick"])])]),(0,r._)("div",f,[(0,r._)("div",g,[(0,r.Wm)(I,{disable:q.disabledInput,modelValue:v.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>v.doReturnHere=e),"left-label":"",label:"Return here to create another one"},null,8,["disable","modelValue"]),w,(0,r.Wm)(I,{modelValue:v.doResetForm,"onUpdate:modelValue":s[2]||(s[2]=e=>v.doResetForm=e),"left-label":"",disable:!v.doReturnHere||q.disabledInput,label:"Reset form after submission"},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var v=t(5474);class q{post(e){let s="/api/v1/budgets";return v.api.post(s,e)}}const E={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.resetForm(),this.type=this.$route.params.type},methods:{resetForm:function(){this.name="",this.resetErrors()},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitBudget:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildBudget();let s=new q;s.post(e).catch(this.processErrors).then(this.processSuccess)},buildBudget:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new budget",show:!0,action:{show:!0,text:"Go to budget",link:{name:"budgets.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var k=t(4260),x=t(4379),C=t(5607),R=t(2165),I=t(151),S=t(5589),W=t(4842),y=t(5735),V=t(7518),B=t.n(V);const Z=(0,k.Z)(E,[["render",_]]),Q=Z;B()(E,"components",{QPage:x.Z,QBanner:C.Z,QBtn:R.Z,QCard:I.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:y.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[4640],{4640:(e,s,t)=>{t.r(s),t.d(s,{default:()=>Q});var r=t(9835),o=t(6970);const a={class:"row q-mx-md"},i={class:"col-12"},l={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Info for new budget",-1),d={class:"row"},m={class:"col-12 q-mb-xs"},c={class:"row q-mx-md"},b={class:"col-12"},h={class:"row"},p={class:"col-12 text-right"},f={class:"row"},g={class:"col-12 text-right"},w=(0,r._)("br",null,null,-1);function _(e,s,t,_,v,q){const E=(0,r.up)("q-btn"),k=(0,r.up)("q-banner"),x=(0,r.up)("q-card-section"),C=(0,r.up)("q-input"),R=(0,r.up)("q-card"),I=(0,r.up)("q-checkbox"),S=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(S,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",i,[""!==v.errorMessage?((0,r.wg)(),(0,r.j4)(k,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(E,{flat:"",onClick:q.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,o.zw)(v.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",l,[(0,r._)("div",n,[(0,r.Wm)(R,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(x,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(x,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",m,[(0,r.Wm)(C,{"error-message":v.submissionErrors.name,error:v.hasSubmissionErrors.name,"bottom-slots":"",disable:q.disabledInput,type:"text",clearable:"",modelValue:v.name,"onUpdate:modelValue":s[0]||(s[0]=e=>v.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",c,[(0,r._)("div",b,[(0,r.Wm)(R,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(x,null,{default:(0,r.w5)((()=>[(0,r._)("div",h,[(0,r._)("div",p,[(0,r.Wm)(E,{disable:q.disabledInput,color:"primary",label:"Submit",onClick:q.submitBudget},null,8,["disable","onClick"])])]),(0,r._)("div",f,[(0,r._)("div",g,[(0,r.Wm)(I,{disable:q.disabledInput,modelValue:v.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>v.doReturnHere=e),"left-label":"",label:"Return here to create another one"},null,8,["disable","modelValue"]),w,(0,r.Wm)(I,{modelValue:v.doResetForm,"onUpdate:modelValue":s[2]||(s[2]=e=>v.doResetForm=e),"left-label":"",disable:!v.doReturnHere||q.disabledInput,label:"Reset form after submission"},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var v=t(1569);class q{post(e){let s="/api/v1/budgets";return v.api.post(s,e)}}const E={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.resetForm(),this.type=this.$route.params.type},methods:{resetForm:function(){this.name="",this.resetErrors()},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitBudget:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildBudget();let s=new q;s.post(e).catch(this.processErrors).then(this.processSuccess)},buildBudget:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new budget",show:!0,action:{show:!0,text:"Go to budget",link:{name:"budgets.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var k=t(1639),x=t(9885),C=t(7128),R=t(8879),I=t(4458),S=t(3190),W=t(6611),y=t(1221),V=t(9984),B=t.n(V);const Z=(0,k.Z)(E,[["render",_]]),Q=Z;B()(E,"components",{QPage:x.Z,QBanner:C.Z,QBtn:R.Z,QCard:I.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:y.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7427],{7427:(e,t,a)=>{a.r(t),a.d(t,{default:()=>$});var i=a(3673),o=a(2323);const n=(0,i.Uk)("Edit"),s=(0,i.Uk)("Delete");function l(e,t,a,l,r,p){const u=(0,i.up)("q-th"),d=(0,i.up)("q-tr"),g=(0,i.up)("router-link"),w=(0,i.up)("q-td"),c=(0,i.up)("q-item-label"),h=(0,i.up)("q-item-section"),m=(0,i.up)("q-item"),f=(0,i.up)("q-list"),b=(0,i.up)("q-btn-dropdown"),k=(0,i.up)("q-table"),y=(0,i.up)("q-fab-action"),q=(0,i.up)("q-fab"),_=(0,i.up)("q-page-sticky"),W=(0,i.up)("q-page"),Z=(0,i.Q2)("close-popup");return(0,i.wg)(),(0,i.j4)(W,null,{default:(0,i.w5)((()=>[(0,i.Wm)(k,{title:e.$t("firefly.webhooks"),rows:r.rows,columns:r.columns,"row-key":"id",onRequest:p.onRequest,pagination:r.pagination,"onUpdate:pagination":t[0]||(t[0]=e=>r.pagination=e),loading:r.loading,class:"q-ma-md"},{header:(0,i.w5)((e=>[(0,i.Wm)(d,{props:e},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.cols,(t=>((0,i.wg)(),(0,i.j4)(u,{key:t.name,props:e},{default:(0,i.w5)((()=>[(0,i.Uk)((0,o.zw)(t.label),1)])),_:2},1032,["props"])))),128))])),_:2},1032,["props"])])),body:(0,i.w5)((e=>[(0,i.Wm)(d,{props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(w,{key:"title",props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(g,{to:{name:"webhooks.show",params:{id:e.row.id}},class:"text-primary"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,o.zw)(e.row.title),1)])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,i.Wm)(w,{key:"menu",props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(b,{color:"primary",label:"Actions",size:"sm"},{default:(0,i.w5)((()=>[(0,i.Wm)(f,null,{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(m,{clickable:"",to:{name:"webhooks.edit",params:{id:e.row.id}}},{default:(0,i.w5)((()=>[(0,i.Wm)(h,null,{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[n])),_:1})])),_:1})])),_:2},1032,["to"])),[[Z]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(m,{clickable:"",onClick:t=>p.deleteWebhook(e.row.id,e.row.title)},{default:(0,i.w5)((()=>[(0,i.Wm)(h,null,{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[s])),_:1})])),_:1})])),_:2},1032,["onClick"])),[[Z]])])),_:2},1024)])),_:2},1024)])),_:2},1032,["props"])])),_:2},1032,["props"])])),_:1},8,["title","rows","columns","onRequest","pagination","loading"]),(0,i.Wm)(_,{position:"bottom-right",offset:[18,18]},{default:(0,i.w5)((()=>[(0,i.Wm)(q,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,i.w5)((()=>[(0,i.Wm)(y,{color:"primary",square:"",to:{name:"webhooks.create"},icon:"fas fa-exchange-alt",label:"New webhook"},null,8,["to"])])),_:1})])),_:1})])),_:1})}var r=a(3617),p=a(2017),u=a(5474);class d{list(e,t){let a="/api/v1/webhooks";return u.api.get(a,{params:{page:e,cache:t}})}}const g={name:"Index",watch:{$route(e){"webhooks.index"===e.name&&(this.page=1,this.updateBreadcrumbs(),this.triggerUpdate())}},data(){return{rows:[],pagination:{sortBy:"desc",descending:!1,page:1,rowsPerPage:5,rowsNumber:100},loading:!1,columns:[{name:"title",label:"Title",field:"title",align:"left"},{name:"menu",label:" ",field:"menu",align:"right"}]}},computed:{...(0,r.Se)("fireflyiii",["getCacheKey","getListPageSize"])},created(){this.pagination.rowsPerPage=this.getListPageSize},mounted(){this.triggerUpdate()},methods:{deleteWebhook:function(e,t){this.$q.dialog({title:"Confirm",message:'Do you want to delete webhook "'+t+'"?',cancel:!0,persistent:!0}).onOk((()=>{this.destroyWebhook(e)}))},destroyWebhook:function(e){new p.Z("webhooks").destroy(e).then((()=>{this.$store.dispatch("fireflyiii/refreshCacheKey"),this.triggerUpdate()}))},updateBreadcrumbs:function(){this.$route.meta.pageTitle="firefly.webhooks",this.$route.meta.breadcrumbs=[{title:"webhooks"}]},onRequest:function(e){this.page=e.pagination.page,this.triggerUpdate()},triggerUpdate:function(){if(this.loading)return;this.loading=!0;const e=new d;this.rows=[],e.list(this.page,this.getCacheKey).then((e=>{this.pagination.rowsPerPage=e.data.meta.pagination.per_page,this.pagination.rowsNumber=e.data.meta.pagination.total,this.pagination.page=this.page;for(let t in e.data.data)if(e.data.data.hasOwnProperty(t)){let a=e.data.data[t],i={id:a.id,title:a.attributes.title};this.rows.push(i)}this.loading=!1}))}}};var w=a(4260),c=a(4379),h=a(4993),m=a(8186),f=a(2414),b=a(3884),k=a(2226),y=a(7011),q=a(3414),_=a(2035),W=a(2350),Z=a(4264),Q=a(9200),P=a(9975),U=a(677),C=a(7518),v=a.n(C);const T=(0,w.Z)(g,[["render",l]]),$=T;v()(g,"components",{QPage:c.Z,QTable:h.Z,QTr:m.Z,QTh:f.Z,QTd:b.Z,QBtnDropdown:k.Z,QList:y.Z,QItem:q.Z,QItemSection:_.Z,QItemLabel:W.Z,QPageSticky:Z.Z,QFab:Q.Z,QFabAction:P.Z}),v()(g,"directives",{ClosePopup:U.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[4782],{4782:(e,t,a)=>{a.r(t),a.d(t,{default:()=>$});var i=a(9835),o=a(6970);const n=(0,i.Uk)("Edit"),s=(0,i.Uk)("Delete");function l(e,t,a,l,r,p){const u=(0,i.up)("q-th"),d=(0,i.up)("q-tr"),g=(0,i.up)("router-link"),w=(0,i.up)("q-td"),c=(0,i.up)("q-item-label"),h=(0,i.up)("q-item-section"),m=(0,i.up)("q-item"),f=(0,i.up)("q-list"),b=(0,i.up)("q-btn-dropdown"),k=(0,i.up)("q-table"),y=(0,i.up)("q-fab-action"),q=(0,i.up)("q-fab"),_=(0,i.up)("q-page-sticky"),W=(0,i.up)("q-page"),Z=(0,i.Q2)("close-popup");return(0,i.wg)(),(0,i.j4)(W,null,{default:(0,i.w5)((()=>[(0,i.Wm)(k,{title:e.$t("firefly.webhooks"),rows:r.rows,columns:r.columns,"row-key":"id",onRequest:p.onRequest,pagination:r.pagination,"onUpdate:pagination":t[0]||(t[0]=e=>r.pagination=e),loading:r.loading,class:"q-ma-md"},{header:(0,i.w5)((e=>[(0,i.Wm)(d,{props:e},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.cols,(t=>((0,i.wg)(),(0,i.j4)(u,{key:t.name,props:e},{default:(0,i.w5)((()=>[(0,i.Uk)((0,o.zw)(t.label),1)])),_:2},1032,["props"])))),128))])),_:2},1032,["props"])])),body:(0,i.w5)((e=>[(0,i.Wm)(d,{props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(w,{key:"title",props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(g,{to:{name:"webhooks.show",params:{id:e.row.id}},class:"text-primary"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,o.zw)(e.row.title),1)])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,i.Wm)(w,{key:"menu",props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(b,{color:"primary",label:"Actions",size:"sm"},{default:(0,i.w5)((()=>[(0,i.Wm)(f,null,{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(m,{clickable:"",to:{name:"webhooks.edit",params:{id:e.row.id}}},{default:(0,i.w5)((()=>[(0,i.Wm)(h,null,{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[n])),_:1})])),_:1})])),_:2},1032,["to"])),[[Z]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(m,{clickable:"",onClick:t=>p.deleteWebhook(e.row.id,e.row.title)},{default:(0,i.w5)((()=>[(0,i.Wm)(h,null,{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[s])),_:1})])),_:1})])),_:2},1032,["onClick"])),[[Z]])])),_:2},1024)])),_:2},1024)])),_:2},1032,["props"])])),_:2},1032,["props"])])),_:1},8,["title","rows","columns","onRequest","pagination","loading"]),(0,i.Wm)(_,{position:"bottom-right",offset:[18,18]},{default:(0,i.w5)((()=>[(0,i.Wm)(q,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,i.w5)((()=>[(0,i.Wm)(y,{color:"primary",square:"",to:{name:"webhooks.create"},icon:"fas fa-exchange-alt",label:"New webhook"},null,8,["to"])])),_:1})])),_:1})])),_:1})}var r=a(1049),p=a(7913),u=a(1569);class d{list(e,t){let a="/api/v1/webhooks";return u.api.get(a,{params:{page:e,cache:t}})}}const g={name:"Index",watch:{$route(e){"webhooks.index"===e.name&&(this.page=1,this.updateBreadcrumbs(),this.triggerUpdate())}},data(){return{rows:[],pagination:{sortBy:"desc",descending:!1,page:1,rowsPerPage:5,rowsNumber:100},loading:!1,columns:[{name:"title",label:"Title",field:"title",align:"left"},{name:"menu",label:" ",field:"menu",align:"right"}]}},computed:{...(0,r.Se)("fireflyiii",["getCacheKey","getListPageSize"])},created(){this.pagination.rowsPerPage=this.getListPageSize},mounted(){this.triggerUpdate()},methods:{deleteWebhook:function(e,t){this.$q.dialog({title:"Confirm",message:'Do you want to delete webhook "'+t+'"?',cancel:!0,persistent:!0}).onOk((()=>{this.destroyWebhook(e)}))},destroyWebhook:function(e){new p.Z("webhooks").destroy(e).then((()=>{this.$store.dispatch("fireflyiii/refreshCacheKey"),this.triggerUpdate()}))},updateBreadcrumbs:function(){this.$route.meta.pageTitle="firefly.webhooks",this.$route.meta.breadcrumbs=[{title:"webhooks"}]},onRequest:function(e){this.page=e.pagination.page,this.triggerUpdate()},triggerUpdate:function(){if(this.loading)return;this.loading=!0;const e=new d;this.rows=[],e.list(this.page,this.getCacheKey).then((e=>{this.pagination.rowsPerPage=e.data.meta.pagination.per_page,this.pagination.rowsNumber=e.data.meta.pagination.total,this.pagination.page=this.page;for(let t in e.data.data)if(e.data.data.hasOwnProperty(t)){let a=e.data.data[t],i={id:a.id,title:a.attributes.title};this.rows.push(i)}this.loading=!1}))}}};var w=a(1639),c=a(9885),h=a(1746),m=a(9546),f=a(1682),b=a(7220),k=a(2045),y=a(3246),q=a(490),_=a(1233),W=a(3115),Z=a(3388),Q=a(9361),P=a(935),U=a(2146),C=a(9984),v=a.n(C);const T=(0,w.Z)(g,[["render",l]]),$=T;v()(g,"components",{QPage:c.Z,QTable:h.Z,QTr:m.Z,QTh:f.Z,QTd:b.Z,QBtnDropdown:k.Z,QList:y.Z,QItem:q.Z,QItemSection:_.Z,QItemLabel:W.Z,QPageSticky:Z.Z,QFab:Q.Z,QFabAction:P.Z}),v()(g,"directives",{ClosePopup:U.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[4326],{4326:(e,r,s)=>{s.r(r),s.d(r,{default:()=>k});var a=s(3673),t=s(2323);const n={class:"row q-mx-md"},o={class:"col-12"},c={class:"text-h6"},u={class:"row"},i={class:"col-12 q-mb-xs"},l=(0,a._)("br",null,null,-1),d=(0,a._)("br",null,null,-1),w={class:"row q-mt-sm"},g={class:"col-12"};function h(e,r,s,h,p,m){const b=(0,a.up)("q-card-section"),f=(0,a.up)("q-card"),_=(0,a.up)("LargeTable"),y=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(y,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a._)("div",o,[(0,a.Wm)(f,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("div",c,(0,t.zw)(p.currency.name),1)])),_:1}),(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("div",u,[(0,a._)("div",i,[(0,a.Uk)(" Name: "+(0,t.zw)(p.currency.name),1),l,(0,a.Uk)(" Code: "+(0,t.zw)(p.currency.code),1),d])])])),_:1})])),_:1})])]),(0,a._)("div",w,[(0,a._)("div",g,[(0,a.Wm)(_,{ref:"table",title:"Transactions",rows:p.rows,loading:e.loading,onOnRequest:m.onRequest,"rows-number":p.rowsNumber,"rows-per-page":p.rowsPerPage,page:p.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var p=s(9695),m=s(4969),b=s(4682);const f={name:"Show",data(){return{currency:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1,code:""}},created(){this.code=this.$route.params.code,this.getCurrency()},components:{LargeTable:p.Z},methods:{onRequest:function(e){this.page=e.page,this.getCurrency()},getCurrency:function(){let e=new m.Z;e.get(this.code).then((e=>this.parseCurrency(e))),this.loading=!0;const r=new b.Z;this.rows=[],e.transactions(this.code,this.page,this.getCacheKey).then((e=>{let s=r.parseResponse(e);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},parseCurrency:function(e){this.currency={name:e.data.data.attributes.name,code:e.data.data.attributes.code}}}};var _=s(4260),y=s(4379),C=s(151),q=s(5589),v=s(7518),P=s.n(v);const Z=(0,_.Z)(f,[["render",h]]),k=Z;P()(f,"components",{QPage:y.Z,QCard:C.Z,QCardSection:q.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[4851],{4851:(e,r,s)=>{s.r(r),s.d(r,{default:()=>k});var a=s(9835),t=s(6970);const n={class:"row q-mx-md"},o={class:"col-12"},c={class:"text-h6"},u={class:"row"},i={class:"col-12 q-mb-xs"},l=(0,a._)("br",null,null,-1),d=(0,a._)("br",null,null,-1),w={class:"row q-mt-sm"},g={class:"col-12"};function h(e,r,s,h,p,m){const b=(0,a.up)("q-card-section"),f=(0,a.up)("q-card"),_=(0,a.up)("LargeTable"),y=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(y,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a._)("div",o,[(0,a.Wm)(f,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("div",c,(0,t.zw)(p.currency.name),1)])),_:1}),(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("div",u,[(0,a._)("div",i,[(0,a.Uk)(" Name: "+(0,t.zw)(p.currency.name),1),l,(0,a.Uk)(" Code: "+(0,t.zw)(p.currency.code),1),d])])])),_:1})])),_:1})])]),(0,a._)("div",w,[(0,a._)("div",g,[(0,a.Wm)(_,{ref:"table",title:"Transactions",rows:p.rows,loading:e.loading,onOnRequest:m.onRequest,"rows-number":p.rowsNumber,"rows-per-page":p.rowsPerPage,page:p.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var p=s(8925),m=s(1484),b=s(3247);const f={name:"Show",data(){return{currency:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1,code:""}},created(){this.code=this.$route.params.code,this.getCurrency()},components:{LargeTable:p.Z},methods:{onRequest:function(e){this.page=e.page,this.getCurrency()},getCurrency:function(){let e=new m.Z;e.get(this.code).then((e=>this.parseCurrency(e))),this.loading=!0;const r=new b.Z;this.rows=[],e.transactions(this.code,this.page,this.getCacheKey).then((e=>{let s=r.parseResponse(e);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},parseCurrency:function(e){this.currency={name:e.data.data.attributes.name,code:e.data.data.attributes.code}}}};var _=s(1639),y=s(9885),C=s(4458),q=s(3190),v=s(9984),P=s.n(v);const Z=(0,_.Z)(f,[["render",h]]),k=Z;P()(f,"components",{QPage:y.Z,QCard:C.Z,QCardSection:q.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[5266],{5266:(e,t,a)=>{a.r(t),a.d(t,{default:()=>v});var s=a(9835);const n={key:0,class:"q-ma-md"},o={key:1,class:"q-ma-md"},r={key:2,class:"row q-ma-md"},i={class:"col-12"},l=(0,s._)("div",{class:"text-h6"},"Firefly III",-1),c=(0,s._)("div",{class:"text-subtitle2"},"What's playing?",-1);function u(e,t,a,u,m,f){const d=(0,s.up)("NewUser"),p=(0,s.up)("Boxes"),h=(0,s.up)("q-card-section"),w=(0,s.up)("HomeChart"),y=(0,s.up)("q-card"),g=(0,s.up)("q-fab-action"),b=(0,s.up)("q-fab"),C=(0,s.up)("q-page-sticky"),q=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(q,null,{default:(0,s.w5)((()=>[0===e.assetCount?((0,s.wg)(),(0,s.iD)("div",n,[(0,s.Wm)(d,{onCreatedAccounts:e.refreshThenCount},null,8,["onCreatedAccounts"])])):(0,s.kq)("",!0),e.assetCount>0?((0,s.wg)(),(0,s.iD)("div",o,[(0,s.Wm)(p)])):(0,s.kq)("",!0),e.assetCount>0?((0,s.wg)(),(0,s.iD)("div",r,[(0,s._)("div",i,[(0,s.Wm)(y,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(h,null,{default:(0,s.w5)((()=>[l,c])),_:1}),(0,s.Wm)(h,null,{default:(0,s.w5)((()=>[(0,s.Wm)(w)])),_:1})])),_:1})])])):(0,s.kq)("",!0),e.assetCount>0?((0,s.wg)(),(0,s.j4)(C,{key:3,position:"bottom-right",offset:[18,18]},{default:(0,s.w5)((()=>[(0,s.Wm)(b,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,s.w5)((()=>[(0,s.Wm)(g,{color:"primary",square:"",icon:"fas fa-chart-pie",label:"New budget",to:{name:"budgets.create"}},null,8,["to"]),(0,s.Wm)(g,{color:"primary",square:"",icon:"far fa-money-bill-alt",label:"New asset account",to:{name:"accounts.create",params:{type:"asset"}}},null,8,["to"]),(0,s.Wm)(g,{color:"primary",square:"",icon:"fas fa-exchange-alt",label:"New transfer",to:{name:"transactions.create",params:{type:"transfer"}}},null,8,["to"]),(0,s.Wm)(g,{color:"primary",square:"",icon:"fas fa-long-arrow-alt-right",label:"New deposit",to:{name:"transactions.create",params:{type:"deposit"}}},null,8,["to"]),(0,s.Wm)(g,{color:"primary",square:"",icon:"fas fa-long-arrow-alt-left",label:"New withdrawal",to:{name:"transactions.create",params:{type:"withdrawal"}}},null,8,["to"])])),_:1})])),_:1})):(0,s.kq)("",!0)])),_:1})}a(702);var m=a(3836),f=a(1049);const d=(0,s.aZ)({name:"PageIndex",components:{Boxes:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(8044)]).then(a.bind(a,8044)))),HomeChart:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(7480)]).then(a.bind(a,7480)))),NewUser:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(3064),a.e(1543)]).then(a.bind(a,1543))))},data(){return{assetCount:1}},computed:{...(0,f.Se)("fireflyiii",["getCacheKey"])},mounted(){this.countAssetAccounts()},methods:{refreshThenCount:function(){this.$store.dispatch("fireflyiii/refreshCacheKey"),this.countAssetAccounts()},countAssetAccounts:function(){let e=new m.Z;e.list("asset",1,this.getCacheKey).then((e=>{this.assetCount=parseInt(e.data.meta.pagination.total)}))}}});var p=a(1639),h=a(9885),w=a(4458),y=a(3190),g=a(3388),b=a(9361),C=a(935),q=a(9984),k=a.n(q);const W=(0,p.Z)(d,[["render",u]]),v=W;k()(d,"components",{QPage:h.Z,QCard:w.Z,QCardSection:y.Z,QPageSticky:g.Z,QFab:b.Z,QFabAction:C.Z})}}]);

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[5348],{5348:(a,e,t)=>{t.r(e),t.d(e,{default:()=>B});var n=t(9835),i=t(6970);const s={class:"row q-mx-md"},r={class:"col-12"},d={class:"text-h6"},g={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,n._)("br",null,null,-1);function c(a,e,t,c,o,p){const f=(0,n.up)("q-card-section"),h=(0,n.up)("q-card"),m=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(m,null,{default:(0,n.w5)((()=>[(0,n._)("div",s,[(0,n._)("div",r,[(0,n.Wm)(h,{bordered:""},{default:(0,n.w5)((()=>[(0,n.Wm)(f,null,{default:(0,n.w5)((()=>[(0,n._)("div",d,(0,i.zw)(o.piggyBank.name),1)])),_:1}),(0,n.Wm)(f,null,{default:(0,n.w5)((()=>[(0,n._)("div",g,[(0,n._)("div",l,[(0,n.Uk)(" Name: "+(0,i.zw)(o.piggyBank.name),1),u])])])),_:1})])),_:1})])])])),_:1})}var o=t(670);const p={name:"Show",data(){return{piggyBank:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getPiggyBank()},methods:{onRequest:function(a){this.page=a.page,this.getPiggyBank()},getPiggyBank:function(){(new o.Z).get(this.id).then((a=>this.parsePiggyBank(a)))},parsePiggyBank:function(a){this.piggyBank={name:a.data.data.attributes.name}}}};var f=t(1639),h=t(9885),m=t(4458),k=t(3190),w=t(9984),_=t.n(w);const y=(0,f.Z)(p,[["render",c]]),B=y;_()(p,"components",{QPage:h.Z,QCard:m.Z,QCardSection:k.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1162],{1162:(t,e,a)=>{a.r(e),a.d(e,{default:()=>v});var l=a(3673);const s={class:"row q-mx-md"},d={class:"col-4"},n=(0,l._)("div",{class:"text-h6"},"Reports",-1);function o(t,e,a,o,i,u){const c=(0,l.up)("q-card-section"),r=(0,l.up)("q-select"),p=(0,l.up)("q-input"),m=(0,l.up)("q-btn"),b=(0,l.up)("q-card-actions"),h=(0,l.up)("q-card"),f=(0,l.up)("q-page");return(0,l.wg)(),(0,l.j4)(f,null,{default:(0,l.w5)((()=>[(0,l._)("div",s,[(0,l._)("div",d,[(0,l.Wm)(h,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(c,null,{default:(0,l.w5)((()=>[n])),_:1}),(0,l.Wm)(c,null,{default:(0,l.w5)((()=>[(0,l.Wm)(r,{"bottom-slots":"",outlined:"",modelValue:i.type,"onUpdate:modelValue":e[0]||(e[0]=t=>i.type=t),"emit-value":"",class:"q-pr-xs","map-options":"",options:i.types,label:"Report type"},null,8,["modelValue","options"]),(0,l.Wm)(r,{"bottom-slots":"",outlined:"",disable:i.loading,modelValue:i.selectedAccounts,"onUpdate:modelValue":e[1]||(e[1]=t=>i.selectedAccounts=t),class:"q-pr-xs",multiple:"","emit-value":"","use-chips":"","map-options":"",options:i.accounts,label:"Included accounts"},null,8,["disable","modelValue","options"]),(0,l.Wm)(p,{"bottom-slots":"",type:"date",modelValue:i.start_date,"onUpdate:modelValue":e[2]||(e[2]=t=>i.start_date=t),label:t.$t("form.start_date"),hint:"Start date",outlined:""},null,8,["modelValue","label"]),(0,l.Wm)(p,{"bottom-slots":"",type:"date",modelValue:i.end_date,"onUpdate:modelValue":e[3]||(e[3]=t=>i.end_date=t),label:t.$t("form.start_date"),hint:"Start date",outlined:""},null,8,["modelValue","label"])])),_:1}),(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(m,{disable:i.loading||i.selectedAccounts.length<1,onClick:u.submit,color:"primary",label:"View report"},null,8,["disable","onClick"])])),_:1})])),_:1})])])])),_:1})}a(5363);var i=a(3349),u=a(11),c=a(6810),r=a(9011);const p={name:"Index",created(){this.getAccounts(),this.start_date=(0,c.Z)((0,u.Z)(new Date),"yyyy-MM-dd"),this.end_date=(0,c.Z)((0,r.Z)(new Date),"yyyy-MM-dd")},data(){return{loading:!1,type:"default",selectedAccounts:[],accounts:[],start_date:"",end_date:"",types:[{value:"default",label:"Default financial report"}]}},methods:{submit:function(){let t=this.start_date.replace("-",""),e=this.end_date.replace("-",""),a=this.selectedAccounts.join(",");"default"===this.type&&this.$router.push({name:"reports.default",params:{accounts:a,start:t,end:e}})},getAccounts:function(){this.loading=!0,this.getPage(1)},getPage:function(t){(new i.Z).list("all",t,this.getCacheKey).then((e=>{let a=parseInt(e.data.meta.pagination.total_pages);for(let t in e.data.data)if(e.data.data.hasOwnProperty(t)){let a=e.data.data[t];"liabilities"!==a.attributes.type&&"asset"!==a.attributes.type||this.accounts.push({value:parseInt(a.id),label:a.attributes.type+": "+a.attributes.name,decimal_places:parseInt(a.attributes.currency_decimal_places)})}t<a&&this.getPage(t+1),t===a&&(this.loading=!1,this.accounts.sort(((t,e)=>t.label>e.label?1:e.label>t.label?-1:0)))}))}}};var m=a(4260),b=a(4379),h=a(151),f=a(5589),y=a(8516),_=a(4842),g=a(9367),w=a(2165),V=a(7518),Z=a.n(V);const q=(0,m.Z)(p,[["render",o]]),v=q;Z()(p,"components",{QPage:b.Z,QCard:h.Z,QCardSection:f.Z,QSelect:y.Z,QInput:_.Z,QCardActions:g.Z,QBtn:w.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[5439],{1673:(t,e,a)=>{a.r(e),a.d(e,{default:()=>v});var l=a(9835);const s={class:"row q-mx-md"},d={class:"col-4"},n=(0,l._)("div",{class:"text-h6"},"Reports",-1);function o(t,e,a,o,i,u){const c=(0,l.up)("q-card-section"),r=(0,l.up)("q-select"),p=(0,l.up)("q-input"),m=(0,l.up)("q-btn"),b=(0,l.up)("q-card-actions"),h=(0,l.up)("q-card"),f=(0,l.up)("q-page");return(0,l.wg)(),(0,l.j4)(f,null,{default:(0,l.w5)((()=>[(0,l._)("div",s,[(0,l._)("div",d,[(0,l.Wm)(h,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(c,null,{default:(0,l.w5)((()=>[n])),_:1}),(0,l.Wm)(c,null,{default:(0,l.w5)((()=>[(0,l.Wm)(r,{"bottom-slots":"",outlined:"",modelValue:i.type,"onUpdate:modelValue":e[0]||(e[0]=t=>i.type=t),"emit-value":"",class:"q-pr-xs","map-options":"",options:i.types,label:"Report type"},null,8,["modelValue","options"]),(0,l.Wm)(r,{"bottom-slots":"",outlined:"",disable:i.loading,modelValue:i.selectedAccounts,"onUpdate:modelValue":e[1]||(e[1]=t=>i.selectedAccounts=t),class:"q-pr-xs",multiple:"","emit-value":"","use-chips":"","map-options":"",options:i.accounts,label:"Included accounts"},null,8,["disable","modelValue","options"]),(0,l.Wm)(p,{"bottom-slots":"",type:"date",modelValue:i.start_date,"onUpdate:modelValue":e[2]||(e[2]=t=>i.start_date=t),label:t.$t("form.start_date"),hint:"Start date",outlined:""},null,8,["modelValue","label"]),(0,l.Wm)(p,{"bottom-slots":"",type:"date",modelValue:i.end_date,"onUpdate:modelValue":e[3]||(e[3]=t=>i.end_date=t),label:t.$t("form.start_date"),hint:"Start date",outlined:""},null,8,["modelValue","label"])])),_:1}),(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(m,{disable:i.loading||i.selectedAccounts.length<1,onClick:u.submit,color:"primary",label:"View report"},null,8,["disable","onClick"])])),_:1})])),_:1})])])])),_:1})}a(8964);var i=a(3836),u=a(7164),c=a(8898),r=a(5057);const p={name:"Index",created(){this.getAccounts(),this.start_date=(0,c.Z)((0,u.Z)(new Date),"yyyy-MM-dd"),this.end_date=(0,c.Z)((0,r.Z)(new Date),"yyyy-MM-dd")},data(){return{loading:!1,type:"default",selectedAccounts:[],accounts:[],start_date:"",end_date:"",types:[{value:"default",label:"Default financial report"}]}},methods:{submit:function(){let t=this.start_date.replace("-",""),e=this.end_date.replace("-",""),a=this.selectedAccounts.join(",");"default"===this.type&&this.$router.push({name:"reports.default",params:{accounts:a,start:t,end:e}})},getAccounts:function(){this.loading=!0,this.getPage(1)},getPage:function(t){(new i.Z).list("all",t,this.getCacheKey).then((e=>{let a=parseInt(e.data.meta.pagination.total_pages);for(let t in e.data.data)if(e.data.data.hasOwnProperty(t)){let a=e.data.data[t];"liabilities"!==a.attributes.type&&"asset"!==a.attributes.type||this.accounts.push({value:parseInt(a.id),label:a.attributes.type+": "+a.attributes.name,decimal_places:parseInt(a.attributes.currency_decimal_places)})}t<a&&this.getPage(t+1),t===a&&(this.loading=!1,this.accounts.sort(((t,e)=>t.label>e.label?1:e.label>t.label?-1:0)))}))}}};var m=a(1639),b=a(9885),h=a(4458),f=a(3190),y=a(7887),_=a(6611),g=a(1821),w=a(8879),V=a(9984),Z=a.n(V);const q=(0,m.Z)(p,[["render",o]]),v=q;Z()(p,"components",{QPage:b.Z,QCard:h.Z,QCardSection:f.Z,QSelect:y.Z,QInput:_.Z,QCardActions:g.Z,QBtn:w.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[569],{569:(e,t,l)=>{l.r(t),l.d(t,{default:()=>p});var n=l(3673);const s={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},i=(0,n._)("div",{style:{"font-size":"30vh"}}," 404 ",-1),o=(0,n._)("div",{class:"text-h2",style:{opacity:".4"}}," Oops. Nothing here... ",-1);function c(e,t,l,c,r,a){const u=(0,n.up)("q-btn");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("div",null,[i,o,(0,n.Wm)(u,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})])])}const r=(0,n.aZ)({name:"Error404"});var a=l(4260),u=l(2165),f=l(7518),d=l.n(f);const h=(0,a.Z)(r,[["render",c]]),p=h;d()(r,"components",{QBtn:u.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[6071],{6071:(e,a,l)=>{l.r(a),l.d(a,{default:()=>_});var n=l(3673);const r={class:"row q-mx-md"},t={class:"col-xl-4 col-lg-6 col-md-12 q-pa-xs"},c=(0,n.Uk)(" Empty / TODO ");function d(e,a,l,d,s,u){const i=(0,n.up)("q-card-section"),o=(0,n.up)("q-card"),f=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(f,null,{default:(0,n.w5)((()=>[(0,n._)("div",r,[(0,n._)("div",t,[(0,n.Wm)(o,{bordered:""},{default:(0,n.w5)((()=>[(0,n.Wm)(i,null,{default:(0,n.w5)((()=>[c])),_:1})])),_:1})])])])),_:1})}const s={name:"Data",data(){return{}}};var u=l(4260),i=l(4379),o=l(151),f=l(5589),p=l(7518),m=l.n(p);const w=(0,u.Z)(s,[["render",d]]),_=w;m()(s,"components",{QPage:i.Z,QCard:o.Z,QCardSection:f.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[5724],{5724:(e,a,l)=>{l.r(a),l.d(a,{default:()=>_});var n=l(9835);const r={class:"row q-mx-md"},t={class:"col-xl-4 col-lg-6 col-md-12 q-pa-xs"},c=(0,n.Uk)(" Empty / TODO ");function d(e,a,l,d,s,u){const i=(0,n.up)("q-card-section"),o=(0,n.up)("q-card"),f=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(f,null,{default:(0,n.w5)((()=>[(0,n._)("div",r,[(0,n._)("div",t,[(0,n.Wm)(o,{bordered:""},{default:(0,n.w5)((()=>[(0,n.Wm)(i,null,{default:(0,n.w5)((()=>[c])),_:1})])),_:1})])])])),_:1})}const s={name:"Data",data(){return{}}};var u=l(1639),i=l(9885),o=l(4458),f=l(3190),p=l(9984),m=l.n(p);const w=(0,u.Z)(s,[["render",d]]),_=w;m()(s,"components",{QPage:i.Z,QCard:o.Z,QCardSection:f.Z})}}]);

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[576],{576:(e,i,l)=>{l.r(i),l.d(i,{default:()=>h});var a=l(9835);const n=(0,a._)("div",{class:"row q-mx-md"},[(0,a._)("div",{class:"col-7"},[(0,a._)("p",null," Hi! With your active support and feedback I'm capable of building this fancy new layout. So thank you for testing and playing around. I'm grateful for your help. "),(0,a._)("p",null,[(0,a.Uk)(" The "),(0,a._)("strong",null,"v2"),(0,a.Uk)(" layout was built to be perfect for each page. This new "),(0,a._)("strong",null,"v3"),(0,a.Uk)(' layout has a different approach. I\'m building a "minimum viable product", where each page has '),(0,a._)("em",null,"minimal"),(0,a.Uk)(" functionality. But any functionality that's there should work. It may not do everything you need and stuff may be missing. The things that you see are things that work. ")]),(0,a._)("p",null," If you spot problems, feel free to report them. Here are some known issues. "),(0,a._)("ul",null,[(0,a._)("li",{class:"text-negative"},"You will lose data when you edit certain objects;"),(0,a._)("li",null,"Caching is fairly aggressive and a page refresh may be necessary to get new information. This is especially obvious when you make new transactions or accounts; "),(0,a._)("li",null,"Not all menu's are (un)folded correctly for all pages;"),(0,a._)("li",null,"Breadcrumbs are missing or incorrect;"),(0,a._)("li",null,"You can't make transaction splits;"),(0,a._)("li",null,"Accounts, budgets, transactions, etc. have only limited fields available in the edit, create and view screens;"),(0,a._)("li",null,'Occasionally, you may spot a "TODO". I\'ve limited their presence, but sometimes I just need a placeholder;'),(0,a._)("li",null,[(0,a.Uk)("Missing translations, "),(0,a._)("code",null,"firefly.abc"),(0,a.Uk)(" references, or transactions formatted in another locale;")])]),(0,a._)("p",null,[(0,a.Uk)(" If you need to visit a "),(0,a._)("strong",null,"v1"),(0,a.Uk)(" alternative for the page you are seeing, please change the URL to "),(0,a._)("code",null,"*/profile"),(0,a.Uk)(" (where "),(0,a._)("code",null,"*"),(0,a.Uk)(" is your Firefly III URL). From there, you can navigate to any "),(0,a._)("strong",null,"v1"),(0,a.Uk)(" page. You may not be able to visit the v1 dashboard. ")]),(0,a._)("p",null,[(0,a.Uk)(" Tickets on GitHub that concern v3 will be "),(0,a._)("em",{class:"text-negative"},"closed"),(0,a.Uk)(". This rule may change in the future. Until then, please leave your feedback here: ")]),(0,a._)("ul",null,[(0,a._)("li",null,[(0,a._)("a",{href:"https://github.com/firefly-iii/firefly-iii/discussions/5589"},"GitHub discussion")]),(0,a._)("li",null,[(0,a._)("a",{href:"https://gitter.im/firefly-iii/firefly-iii"},"Gitter.im chat")]),(0,a._)("li",null,[(0,a._)("a",{href:"mailto:james@firefly-iii.org"},"james@firefly-iii.org")])]),(0,a._)("p",null,[(0,a.Uk)(" Thanks again,"),(0,a._)("br"),(0,a.Uk)(" James ")])])],-1);function t(e,i,l,t,s,o){const r=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(r,null,{default:(0,a.w5)((()=>[n])),_:1})}const s={name:"Index"};var o=l(1639),r=l(9885),u=l(9984),c=l.n(u);const f=(0,o.Z)(s,[["render",t]]),h=f;c()(s,"components",{QPage:r.Z})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[656],{656:(e,t,a)=>{a.r(t),a.d(t,{default:()=>v});var s=a(3673);const n={key:0,class:"q-ma-md"},o={key:1,class:"q-ma-md"},r={key:2,class:"row q-ma-md"},i={class:"col-12"},l=(0,s._)("div",{class:"text-h6"},"Firefly III",-1),c=(0,s._)("div",{class:"text-subtitle2"},"What's playing?",-1);function u(e,t,a,u,m,f){const d=(0,s.up)("NewUser"),p=(0,s.up)("Boxes"),h=(0,s.up)("q-card-section"),w=(0,s.up)("HomeChart"),y=(0,s.up)("q-card"),g=(0,s.up)("q-fab-action"),b=(0,s.up)("q-fab"),C=(0,s.up)("q-page-sticky"),q=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(q,null,{default:(0,s.w5)((()=>[0===e.assetCount?((0,s.wg)(),(0,s.iD)("div",n,[(0,s.Wm)(d,{onCreatedAccounts:e.refreshThenCount},null,8,["onCreatedAccounts"])])):(0,s.kq)("",!0),e.assetCount>0?((0,s.wg)(),(0,s.iD)("div",o,[(0,s.Wm)(p)])):(0,s.kq)("",!0),e.assetCount>0?((0,s.wg)(),(0,s.iD)("div",r,[(0,s._)("div",i,[(0,s.Wm)(y,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(h,null,{default:(0,s.w5)((()=>[l,c])),_:1}),(0,s.Wm)(h,null,{default:(0,s.w5)((()=>[(0,s.Wm)(w)])),_:1})])),_:1})])])):(0,s.kq)("",!0),e.assetCount>0?((0,s.wg)(),(0,s.j4)(C,{key:3,position:"bottom-right",offset:[18,18]},{default:(0,s.w5)((()=>[(0,s.Wm)(b,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,s.w5)((()=>[(0,s.Wm)(g,{color:"primary",square:"",icon:"fas fa-chart-pie",label:"New budget",to:{name:"budgets.create"}},null,8,["to"]),(0,s.Wm)(g,{color:"primary",square:"",icon:"far fa-money-bill-alt",label:"New asset account",to:{name:"accounts.create",params:{type:"asset"}}},null,8,["to"]),(0,s.Wm)(g,{color:"primary",square:"",icon:"fas fa-exchange-alt",label:"New transfer",to:{name:"transactions.create",params:{type:"transfer"}}},null,8,["to"]),(0,s.Wm)(g,{color:"primary",square:"",icon:"fas fa-long-arrow-alt-right",label:"New deposit",to:{name:"transactions.create",params:{type:"deposit"}}},null,8,["to"]),(0,s.Wm)(g,{color:"primary",square:"",icon:"fas fa-long-arrow-alt-left",label:"New withdrawal",to:{name:"transactions.create",params:{type:"withdrawal"}}},null,8,["to"])])),_:1})])),_:1})):(0,s.kq)("",!0)])),_:1})}a(71);var m=a(3349),f=a(3617);const d=(0,s.aZ)({name:"PageIndex",components:{Boxes:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(3171)]).then(a.bind(a,3171)))),HomeChart:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(3569)]).then(a.bind(a,3569)))),NewUser:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(3064),a.e(3311)]).then(a.bind(a,3311))))},data(){return{assetCount:1}},computed:{...(0,f.Se)("fireflyiii",["getCacheKey"])},mounted(){this.countAssetAccounts()},methods:{refreshThenCount:function(){this.$store.dispatch("fireflyiii/refreshCacheKey"),this.countAssetAccounts()},countAssetAccounts:function(){let e=new m.Z;e.list("asset",1,this.getCacheKey).then((e=>{this.assetCount=parseInt(e.data.meta.pagination.total)}))}}});var p=a(4260),h=a(4379),w=a(151),y=a(5589),g=a(4264),b=a(9200),C=a(9975),q=a(7518),k=a.n(q);const W=(0,p.Z)(d,[["render",u]]),v=W;k()(d,"components",{QPage:h.Z,QCard:w.Z,QCardSection:y.Z,QPageSticky:g.Z,QFab:b.Z,QFabAction:C.Z})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[9191],{9191:(e,t,a)=>{a.r(t),a.d(t,{default:()=>W});var o=a(3673),i=a(2323);const s={class:"row q-mx-md"},l={class:"col-12"},n={class:"text-h6"},r={class:"row"},d={class:"col-12 q-mb-xs"},u=(0,o._)("br",null,null,-1);function c(e,t,a,c,h,w){const b=(0,o.up)("q-card-section"),f=(0,o.up)("q-card"),k=(0,o.up)("q-page");return(0,o.wg)(),(0,o.j4)(k,null,{default:(0,o.w5)((()=>[(0,o._)("div",s,[(0,o._)("div",l,[(0,o.Wm)(f,{bordered:""},{default:(0,o.w5)((()=>[(0,o.Wm)(b,null,{default:(0,o.w5)((()=>[(0,o._)("div",n,(0,i.zw)(h.webhook.title),1)])),_:1}),(0,o.Wm)(b,null,{default:(0,o.w5)((()=>[(0,o._)("div",r,[(0,o._)("div",d,[(0,o.Uk)(" Name: "+(0,i.zw)(h.webhook.title),1),u])])])),_:1})])),_:1})])])])),_:1})}var h=a(4514);const w={name:"Show",data(){return{webhook:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getWebhook()},methods:{getWebhook:function(){(new h.Z).get(this.id).then((e=>this.parseWebhook(e)))},parseWebhook:function(e){this.webhook={title:e.data.data.attributes.title}}}};var b=a(4260),f=a(4379),k=a(151),p=a(5589),_=a(7518),m=a.n(_);const v=(0,b.Z)(w,[["render",c]]),W=v;m()(w,"components",{QPage:f.Z,QCard:k.Z,QCardSection:p.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[6719],{6719:(e,t,a)=>{a.r(t),a.d(t,{default:()=>W});var o=a(9835),i=a(6970);const s={class:"row q-mx-md"},l={class:"col-12"},n={class:"text-h6"},r={class:"row"},d={class:"col-12 q-mb-xs"},u=(0,o._)("br",null,null,-1);function c(e,t,a,c,h,w){const b=(0,o.up)("q-card-section"),f=(0,o.up)("q-card"),k=(0,o.up)("q-page");return(0,o.wg)(),(0,o.j4)(k,null,{default:(0,o.w5)((()=>[(0,o._)("div",s,[(0,o._)("div",l,[(0,o.Wm)(f,{bordered:""},{default:(0,o.w5)((()=>[(0,o.Wm)(b,null,{default:(0,o.w5)((()=>[(0,o._)("div",n,(0,i.zw)(h.webhook.title),1)])),_:1}),(0,o.Wm)(b,null,{default:(0,o.w5)((()=>[(0,o._)("div",r,[(0,o._)("div",d,[(0,o.Uk)(" Name: "+(0,i.zw)(h.webhook.title),1),u])])])),_:1})])),_:1})])])])),_:1})}var h=a(9599);const w={name:"Show",data(){return{webhook:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getWebhook()},methods:{getWebhook:function(){(new h.Z).get(this.id).then((e=>this.parseWebhook(e)))},parseWebhook:function(e){this.webhook={title:e.data.data.attributes.title}}}};var b=a(1639),f=a(9885),k=a(4458),p=a(3190),_=a(9984),m=a.n(_);const v=(0,b.Z)(w,[["render",c]]),W=v;m()(w,"components",{QPage:f.Z,QCard:k.Z,QCardSection:p.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8418],{8418:(s,e,t)=>{t.r(e),t.d(e,{default:()=>M});var r=t(3673),i=t(2323);const o={class:"row q-mx-md"},l={class:"col-12"},a={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Edit group",-1),d={class:"row"},c={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},m={class:"col-12"},p={class:"row"},b={class:"col-12 text-right"},f={class:"row"},g={class:"col-12 text-right"};function w(s,e,t,w,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),k=(0,r.up)("q-card-section"),x=(0,r.up)("q-input"),C=(0,r.up)("q-card"),G=(0,r.up)("q-checkbox"),y=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,[(0,r._)("div",l,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",n,[(0,r.Wm)(C,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(x,{"error-message":_.submissionErrors.title,error:_.hasSubmissionErrors.title,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.title,"onUpdate:modelValue":e[0]||(e[0]=s=>_.title=s),label:s.$t("form.title"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",m,[(0,r.Wm)(C,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",p,[(0,r._)("div",b,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitGroup},null,8,["disable","onClick"])])]),(0,r._)("div",f,[(0,r._)("div",g,[(0,r.Wm)(G,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":e[1]||(e[1]=s=>_.doReturnHere=s),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(1403),v=t(5474);class q{post(s,e){let t="/api/v1/object_groups/"+s;return v.api.put(t,e)}}const E={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",id:0,title:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectGroup()},methods:{collectGroup:function(){let s=new _.Z;s.get(this.id).then((s=>this.parseGroup(s)))},parseGroup:function(s){this.title=s.data.data.attributes.title},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const s=this.buildGroup();let e=new q;e.post(this.id,s).catch(this.processErrors).then(this.processSuccess)},buildGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(s){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!s)return;this.submitting=!1;let e={level:"success",text:"Group is updated",show:!0,action:{show:!0,text:"Go to group",link:{name:"groups.show",params:{id:parseInt(s.data.data.id)}}}};this.$q.localStorage.set("flash",e),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(s){if(s.response){let e=s.response.data;this.errorMessage=e.message,console.log(e);for(let s in e.errors)e.errors.hasOwnProperty(s)&&(this.submissionErrors[s]=e.errors[s][0],this.hasSubmissionErrors[s]=!0)}this.submitting=!1}}};var k=t(4260),x=t(4379),C=t(5607),G=t(2165),y=t(151),S=t(5589),W=t(4842),Z=t(5735),I=t(7518),Q=t.n(I);const R=(0,k.Z)(E,[["render",w]]),M=R;Q()(E,"components",{QPage:x.Z,QBanner:C.Z,QBtn:G.Z,QCard:y.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:Z.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[6826],{6882:(s,e,t)=>{t.r(e),t.d(e,{default:()=>M});var r=t(9835),i=t(6970);const o={class:"row q-mx-md"},l={class:"col-12"},a={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Edit group",-1),d={class:"row"},c={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},m={class:"col-12"},p={class:"row"},b={class:"col-12 text-right"},f={class:"row"},g={class:"col-12 text-right"};function w(s,e,t,w,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),k=(0,r.up)("q-card-section"),x=(0,r.up)("q-input"),C=(0,r.up)("q-card"),G=(0,r.up)("q-checkbox"),y=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,[(0,r._)("div",l,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",n,[(0,r.Wm)(C,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(x,{"error-message":_.submissionErrors.title,error:_.hasSubmissionErrors.title,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.title,"onUpdate:modelValue":e[0]||(e[0]=s=>_.title=s),label:s.$t("form.title"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",m,[(0,r.Wm)(C,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",p,[(0,r._)("div",b,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitGroup},null,8,["disable","onClick"])])]),(0,r._)("div",f,[(0,r._)("div",g,[(0,r.Wm)(G,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":e[1]||(e[1]=s=>_.doReturnHere=s),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(1741),v=t(1569);class q{post(s,e){let t="/api/v1/object_groups/"+s;return v.api.put(t,e)}}const E={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",id:0,title:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectGroup()},methods:{collectGroup:function(){let s=new _.Z;s.get(this.id).then((s=>this.parseGroup(s)))},parseGroup:function(s){this.title=s.data.data.attributes.title},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const s=this.buildGroup();let e=new q;e.post(this.id,s).catch(this.processErrors).then(this.processSuccess)},buildGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(s){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!s)return;this.submitting=!1;let e={level:"success",text:"Group is updated",show:!0,action:{show:!0,text:"Go to group",link:{name:"groups.show",params:{id:parseInt(s.data.data.id)}}}};this.$q.localStorage.set("flash",e),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(s){if(s.response){let e=s.response.data;this.errorMessage=e.message,console.log(e);for(let s in e.errors)e.errors.hasOwnProperty(s)&&(this.submissionErrors[s]=e.errors[s][0],this.hasSubmissionErrors[s]=!0)}this.submitting=!1}}};var k=t(1639),x=t(9885),C=t(7128),G=t(8879),y=t(4458),S=t(3190),W=t(6611),Z=t(1221),I=t(9984),Q=t.n(I);const R=(0,k.Z)(E,[["render",w]]),M=R;Q()(E,"components",{QPage:x.Z,QBanner:C.Z,QBtn:G.Z,QCard:y.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:Z.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1570],{1570:(e,s,r)=>{r.r(s),r.d(s,{default:()=>H});var t=r(3673),o=r(2323);const a={class:"row q-mx-md"},i={class:"col-12"},l={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,t._)("div",{class:"text-h6"},"Info for new category",-1),d={class:"row"},m={class:"col-12 q-mb-xs"},c={class:"row q-mx-md"},h={class:"col-12"},b={class:"row"},p={class:"col-12 text-right"},f={class:"row"},g={class:"col-12 text-right"},w=(0,t._)("br",null,null,-1);function _(e,s,r,_,v,q){const y=(0,t.up)("q-btn"),C=(0,t.up)("q-banner"),E=(0,t.up)("q-card-section"),k=(0,t.up)("q-input"),x=(0,t.up)("q-card"),R=(0,t.up)("q-checkbox"),I=(0,t.up)("q-page");return(0,t.wg)(),(0,t.j4)(I,null,{default:(0,t.w5)((()=>[(0,t._)("div",a,[(0,t._)("div",i,[""!==v.errorMessage?((0,t.wg)(),(0,t.j4)(C,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,t.w5)((()=>[(0,t.Wm)(y,{flat:"",onClick:q.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(v.errorMessage)+" ",1)])),_:1})):(0,t.kq)("",!0)])]),(0,t._)("div",l,[(0,t._)("div",n,[(0,t.Wm)(x,{bordered:""},{default:(0,t.w5)((()=>[(0,t.Wm)(E,null,{default:(0,t.w5)((()=>[u])),_:1}),(0,t.Wm)(E,null,{default:(0,t.w5)((()=>[(0,t._)("div",d,[(0,t._)("div",m,[(0,t.Wm)(k,{"error-message":v.submissionErrors.name,error:v.hasSubmissionErrors.name,"bottom-slots":"",disable:q.disabledInput,type:"text",clearable:"",modelValue:v.name,"onUpdate:modelValue":s[0]||(s[0]=e=>v.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,t._)("div",c,[(0,t._)("div",h,[(0,t.Wm)(x,{class:"q-mt-xs"},{default:(0,t.w5)((()=>[(0,t.Wm)(E,null,{default:(0,t.w5)((()=>[(0,t._)("div",b,[(0,t._)("div",p,[(0,t.Wm)(y,{disable:q.disabledInput,color:"primary",label:"Submit",onClick:q.submitCategory},null,8,["disable","onClick"])])]),(0,t._)("div",f,[(0,t._)("div",g,[(0,t.Wm)(R,{disable:q.disabledInput,modelValue:v.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>v.doReturnHere=e),"left-label":"",label:"Return here to create another one"},null,8,["disable","modelValue"]),w,(0,t.Wm)(R,{modelValue:v.doResetForm,"onUpdate:modelValue":s[2]||(s[2]=e=>v.doResetForm=e),"left-label":"",disable:!v.doReturnHere||q.disabledInput,label:"Reset form after submission"},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var v=r(5474);class q{post(e){let s="/api/v1/categories";return v.api.post(s,e)}}const y={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.resetForm(),this.type=this.$route.params.type},methods:{resetForm:function(){this.name="",this.resetErrors()},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitCategory:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildCategory();let s=new q;s.post(e).catch(this.processErrors).then(this.processSuccess)},buildCategory:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new category",show:!0,action:{show:!0,text:"Go to category",link:{name:"categories.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var C=r(4260),E=r(4379),k=r(5607),x=r(2165),R=r(151),I=r(5589),S=r(4842),W=r(5735),V=r(7518),Z=r.n(V);const Q=(0,C.Z)(y,[["render",_]]),H=Q;Z()(y,"components",{QPage:E.Z,QBanner:k.Z,QBtn:x.Z,QCard:R.Z,QCardSection:I.Z,QInput:S.Z,QCheckbox:W.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[6919],{6919:(e,s,r)=>{r.r(s),r.d(s,{default:()=>H});var t=r(9835),o=r(6970);const a={class:"row q-mx-md"},i={class:"col-12"},l={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,t._)("div",{class:"text-h6"},"Info for new category",-1),d={class:"row"},m={class:"col-12 q-mb-xs"},c={class:"row q-mx-md"},h={class:"col-12"},b={class:"row"},p={class:"col-12 text-right"},f={class:"row"},g={class:"col-12 text-right"},w=(0,t._)("br",null,null,-1);function _(e,s,r,_,v,q){const y=(0,t.up)("q-btn"),C=(0,t.up)("q-banner"),E=(0,t.up)("q-card-section"),k=(0,t.up)("q-input"),x=(0,t.up)("q-card"),R=(0,t.up)("q-checkbox"),I=(0,t.up)("q-page");return(0,t.wg)(),(0,t.j4)(I,null,{default:(0,t.w5)((()=>[(0,t._)("div",a,[(0,t._)("div",i,[""!==v.errorMessage?((0,t.wg)(),(0,t.j4)(C,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,t.w5)((()=>[(0,t.Wm)(y,{flat:"",onClick:q.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(v.errorMessage)+" ",1)])),_:1})):(0,t.kq)("",!0)])]),(0,t._)("div",l,[(0,t._)("div",n,[(0,t.Wm)(x,{bordered:""},{default:(0,t.w5)((()=>[(0,t.Wm)(E,null,{default:(0,t.w5)((()=>[u])),_:1}),(0,t.Wm)(E,null,{default:(0,t.w5)((()=>[(0,t._)("div",d,[(0,t._)("div",m,[(0,t.Wm)(k,{"error-message":v.submissionErrors.name,error:v.hasSubmissionErrors.name,"bottom-slots":"",disable:q.disabledInput,type:"text",clearable:"",modelValue:v.name,"onUpdate:modelValue":s[0]||(s[0]=e=>v.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,t._)("div",c,[(0,t._)("div",h,[(0,t.Wm)(x,{class:"q-mt-xs"},{default:(0,t.w5)((()=>[(0,t.Wm)(E,null,{default:(0,t.w5)((()=>[(0,t._)("div",b,[(0,t._)("div",p,[(0,t.Wm)(y,{disable:q.disabledInput,color:"primary",label:"Submit",onClick:q.submitCategory},null,8,["disable","onClick"])])]),(0,t._)("div",f,[(0,t._)("div",g,[(0,t.Wm)(R,{disable:q.disabledInput,modelValue:v.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>v.doReturnHere=e),"left-label":"",label:"Return here to create another one"},null,8,["disable","modelValue"]),w,(0,t.Wm)(R,{modelValue:v.doResetForm,"onUpdate:modelValue":s[2]||(s[2]=e=>v.doResetForm=e),"left-label":"",disable:!v.doReturnHere||q.disabledInput,label:"Reset form after submission"},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var v=r(1569);class q{post(e){let s="/api/v1/categories";return v.api.post(s,e)}}const y={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.resetForm(),this.type=this.$route.params.type},methods:{resetForm:function(){this.name="",this.resetErrors()},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitCategory:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildCategory();let s=new q;s.post(e).catch(this.processErrors).then(this.processSuccess)},buildCategory:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new category",show:!0,action:{show:!0,text:"Go to category",link:{name:"categories.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var C=r(1639),E=r(9885),k=r(7128),x=r(8879),R=r(4458),I=r(3190),S=r(6611),W=r(1221),V=r(9984),Z=r.n(V);const Q=(0,C.Z)(y,[["render",_]]),H=Q;Z()(y,"components",{QPage:E.Z,QBanner:k.Z,QBtn:x.Z,QCard:R.Z,QCardSection:I.Z,QInput:S.Z,QCheckbox:W.Z})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[3083],{3083:(e,t,a)=>{a.r(t),a.d(t,{default:()=>U});var i=a(3673),s=a(2323);const n=(0,i.Uk)("Edit"),r=(0,i.Uk)("Delete");function o(e,t,a,o,l,p){const u=(0,i.up)("q-th"),d=(0,i.up)("q-tr"),g=(0,i.up)("router-link"),h=(0,i.up)("q-td"),c=(0,i.up)("q-item-label"),m=(0,i.up)("q-item-section"),w=(0,i.up)("q-item"),f=(0,i.up)("q-list"),y=(0,i.up)("q-btn-dropdown"),b=(0,i.up)("q-table"),_=(0,i.up)("q-page"),k=(0,i.Q2)("close-popup");return(0,i.wg)(),(0,i.j4)(_,null,{default:(0,i.w5)((()=>[(0,i.Wm)(b,{title:e.$t("firefly.object_groups"),rows:l.rows,columns:l.columns,"row-key":"id",onRequest:p.onRequest,pagination:l.pagination,"onUpdate:pagination":t[0]||(t[0]=e=>l.pagination=e),loading:l.loading,class:"q-ma-md"},{header:(0,i.w5)((e=>[(0,i.Wm)(d,{props:e},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.cols,(t=>((0,i.wg)(),(0,i.j4)(u,{key:t.name,props:e},{default:(0,i.w5)((()=>[(0,i.Uk)((0,s.zw)(t.label),1)])),_:2},1032,["props"])))),128))])),_:2},1032,["props"])])),body:(0,i.w5)((e=>[(0,i.Wm)(d,{props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(h,{key:"title",props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(g,{to:{name:"groups.show",params:{id:e.row.id}},class:"text-primary"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,s.zw)(e.row.title),1)])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,i.Wm)(h,{key:"menu",props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(y,{color:"primary",label:"Actions",size:"sm"},{default:(0,i.w5)((()=>[(0,i.Wm)(f,null,{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(w,{clickable:"",to:{name:"groups.edit",params:{id:e.row.id}}},{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[n])),_:1})])),_:1})])),_:2},1032,["to"])),[[k]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(w,{clickable:"",onClick:t=>p.deleteGroup(e.row.id,e.row.title)},{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[r])),_:1})])),_:1})])),_:2},1032,["onClick"])),[[k]])])),_:2},1024)])),_:2},1024)])),_:2},1032,["props"])])),_:2},1032,["props"])])),_:1},8,["title","rows","columns","onRequest","pagination","loading"])])),_:1})}var l=a(3617),p=a(2017),u=a(5474);class d{list(e,t,a){let i="/api/v1/object_groups";return u.api.get(i,{params:{page:t,cache:a,type:e}})}}const g={name:"Index",watch:{$route(e){"groups.index"===e.name&&(this.page=1,this.updateBreadcrumbs(),this.triggerUpdate())}},data(){return{rows:[],pagination:{sortBy:"desc",descending:!1,page:1,rowsPerPage:5,rowsNumber:100},loading:!1,columns:[{name:"title",label:"Title",field:"title",align:"left"},{name:"menu",label:" ",field:"menu",align:"right"}]}},computed:{...(0,l.Se)("fireflyiii",["getRange","getCacheKey","getListPageSize"])},created(){this.pagination.rowsPerPage=this.getListPageSize},mounted(){if(this.type=this.$route.params.type,null===this.getRange.start||null===this.getRange.end){const e=(0,l.oR)();e.subscribe(((e,t)=>{"fireflyiii/setRange"===e.type&&(this.range={start:e.payload.start,end:e.payload.end},this.triggerUpdate())}))}null!==this.getRange.start&&null!==this.getRange.end&&(this.range={start:this.getRange.start,end:this.getRange.end},this.triggerUpdate())},methods:{deleteGroup:function(e,t){this.$q.dialog({title:"Confirm",message:'Do you want to delete group "'+t+'"? Any resources in this group will be saved.',cancel:!0,persistent:!0}).onOk((()=>{this.destroyGroup(e)}))},destroyGroup:function(e){new p.Z("object_groups").destroy(e).then((()=>{this.$store.dispatch("fireflyiii/refreshCacheKey"),this.triggerUpdate()}))},updateBreadcrumbs:function(){this.$route.meta.pageTitle="firefly.groups",this.$route.meta.breadcrumbs=[{title:"groups"}]},onRequest:function(e){this.page=e.pagination.page,this.triggerUpdate()},triggerUpdate:function(){if(this.loading)return;if(null===this.range.start||null===this.range.end)return;this.loading=!0;const e=new d;this.rows=[],e.list(this.page,this.getCacheKey).then((e=>{this.pagination.rowsPerPage=e.data.meta.pagination.per_page,this.pagination.rowsNumber=e.data.meta.pagination.total,this.pagination.page=this.page;for(let t in e.data.data)if(e.data.data.hasOwnProperty(t)){let a=e.data.data[t],i={id:a.id,title:a.attributes.title};this.rows.push(i)}this.loading=!1}))}}};var h=a(4260),c=a(4379),m=a(4993),w=a(8186),f=a(2414),y=a(3884),b=a(2226),_=a(7011),k=a(3414),q=a(2035),R=a(2350),Z=a(677),W=a(7518),P=a.n(W);const Q=(0,h.Z)(g,[["render",o]]),U=Q;P()(g,"components",{QPage:c.Z,QTable:m.Z,QTr:w.Z,QTh:f.Z,QTd:y.Z,QBtnDropdown:b.Z,QList:_.Z,QItem:k.Z,QItemSection:q.Z,QItemLabel:R.Z}),P()(g,"directives",{ClosePopup:Z.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7083],{7083:(e,t,a)=>{a.r(t),a.d(t,{default:()=>U});var i=a(9835),s=a(6970);const n=(0,i.Uk)("Edit"),r=(0,i.Uk)("Delete");function o(e,t,a,o,l,p){const u=(0,i.up)("q-th"),d=(0,i.up)("q-tr"),g=(0,i.up)("router-link"),h=(0,i.up)("q-td"),c=(0,i.up)("q-item-label"),m=(0,i.up)("q-item-section"),w=(0,i.up)("q-item"),f=(0,i.up)("q-list"),y=(0,i.up)("q-btn-dropdown"),b=(0,i.up)("q-table"),_=(0,i.up)("q-page"),k=(0,i.Q2)("close-popup");return(0,i.wg)(),(0,i.j4)(_,null,{default:(0,i.w5)((()=>[(0,i.Wm)(b,{title:e.$t("firefly.object_groups"),rows:l.rows,columns:l.columns,"row-key":"id",onRequest:p.onRequest,pagination:l.pagination,"onUpdate:pagination":t[0]||(t[0]=e=>l.pagination=e),loading:l.loading,class:"q-ma-md"},{header:(0,i.w5)((e=>[(0,i.Wm)(d,{props:e},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.cols,(t=>((0,i.wg)(),(0,i.j4)(u,{key:t.name,props:e},{default:(0,i.w5)((()=>[(0,i.Uk)((0,s.zw)(t.label),1)])),_:2},1032,["props"])))),128))])),_:2},1032,["props"])])),body:(0,i.w5)((e=>[(0,i.Wm)(d,{props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(h,{key:"title",props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(g,{to:{name:"groups.show",params:{id:e.row.id}},class:"text-primary"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,s.zw)(e.row.title),1)])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,i.Wm)(h,{key:"menu",props:e},{default:(0,i.w5)((()=>[(0,i.Wm)(y,{color:"primary",label:"Actions",size:"sm"},{default:(0,i.w5)((()=>[(0,i.Wm)(f,null,{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(w,{clickable:"",to:{name:"groups.edit",params:{id:e.row.id}}},{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[n])),_:1})])),_:1})])),_:2},1032,["to"])),[[k]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(w,{clickable:"",onClick:t=>p.deleteGroup(e.row.id,e.row.title)},{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[r])),_:1})])),_:1})])),_:2},1032,["onClick"])),[[k]])])),_:2},1024)])),_:2},1024)])),_:2},1032,["props"])])),_:2},1032,["props"])])),_:1},8,["title","rows","columns","onRequest","pagination","loading"])])),_:1})}var l=a(1049),p=a(7913),u=a(1569);class d{list(e,t,a){let i="/api/v1/object_groups";return u.api.get(i,{params:{page:t,cache:a,type:e}})}}const g={name:"Index",watch:{$route(e){"groups.index"===e.name&&(this.page=1,this.updateBreadcrumbs(),this.triggerUpdate())}},data(){return{rows:[],pagination:{sortBy:"desc",descending:!1,page:1,rowsPerPage:5,rowsNumber:100},loading:!1,columns:[{name:"title",label:"Title",field:"title",align:"left"},{name:"menu",label:" ",field:"menu",align:"right"}]}},computed:{...(0,l.Se)("fireflyiii",["getRange","getCacheKey","getListPageSize"])},created(){this.pagination.rowsPerPage=this.getListPageSize},mounted(){if(this.type=this.$route.params.type,null===this.getRange.start||null===this.getRange.end){const e=(0,l.oR)();e.subscribe(((e,t)=>{"fireflyiii/setRange"===e.type&&(this.range={start:e.payload.start,end:e.payload.end},this.triggerUpdate())}))}null!==this.getRange.start&&null!==this.getRange.end&&(this.range={start:this.getRange.start,end:this.getRange.end},this.triggerUpdate())},methods:{deleteGroup:function(e,t){this.$q.dialog({title:"Confirm",message:'Do you want to delete group "'+t+'"? Any resources in this group will be saved.',cancel:!0,persistent:!0}).onOk((()=>{this.destroyGroup(e)}))},destroyGroup:function(e){new p.Z("object_groups").destroy(e).then((()=>{this.$store.dispatch("fireflyiii/refreshCacheKey"),this.triggerUpdate()}))},updateBreadcrumbs:function(){this.$route.meta.pageTitle="firefly.groups",this.$route.meta.breadcrumbs=[{title:"groups"}]},onRequest:function(e){this.page=e.pagination.page,this.triggerUpdate()},triggerUpdate:function(){if(this.loading)return;if(null===this.range.start||null===this.range.end)return;this.loading=!0;const e=new d;this.rows=[],e.list(this.page,this.getCacheKey).then((e=>{this.pagination.rowsPerPage=e.data.meta.pagination.per_page,this.pagination.rowsNumber=e.data.meta.pagination.total,this.pagination.page=this.page;for(let t in e.data.data)if(e.data.data.hasOwnProperty(t)){let a=e.data.data[t],i={id:a.id,title:a.attributes.title};this.rows.push(i)}this.loading=!1}))}}};var h=a(1639),c=a(9885),m=a(1746),w=a(9546),f=a(1682),y=a(7220),b=a(2045),_=a(3246),k=a(490),q=a(1233),R=a(3115),Z=a(2146),W=a(9984),P=a.n(W);const Q=(0,h.Z)(g,[["render",o]]),U=Q;P()(g,"components",{QPage:c.Z,QTable:m.Z,QTr:w.Z,QTh:f.Z,QTd:y.Z,QBtnDropdown:b.Z,QList:_.Z,QItem:k.Z,QItemSection:q.Z,QItemLabel:R.Z}),P()(g,"directives",{ClosePopup:Z.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[6841],{6841:(e,t,l)=>{l.r(t),l.d(t,{default:()=>b});var a=l(3673),i=l(2323);const s={class:"row q-mx-md"},u={class:"col-12"},r={class:"text-h6"},n={class:"row"},d={class:"col-12 q-mb-xs"},c=(0,a._)("br",null,null,-1);function o(e,t,l,o,f,h){const p=(0,a.up)("q-card-section"),w=(0,a.up)("q-card"),_=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(_,null,{default:(0,a.w5)((()=>[(0,a._)("div",s,[(0,a._)("div",u,[(0,a.Wm)(w,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(p,null,{default:(0,a.w5)((()=>[(0,a._)("div",r,(0,i.zw)(f.rule.title),1)])),_:1}),(0,a.Wm)(p,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a._)("div",d,[(0,a.Uk)(" Rule: "+(0,i.zw)(f.rule.title),1),c])])])),_:1})])),_:1})])])])),_:1})}var f=l(8240);const h={name:"Show",data(){return{rule:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getRule()},methods:{onRequest:function(e){this.page=e.page,this.getRule()},getRule:function(){(new f.Z).get(this.id).then((e=>this.parseRule(e)))},parseRule:function(e){this.rule={title:e.data.data.attributes.title}}}};var p=l(4260),w=l(4379),_=l(151),m=l(5589),g=l(7518),v=l.n(g);const R=(0,p.Z)(h,[["render",o]]),b=R;v()(h,"components",{QPage:w.Z,QCard:_.Z,QCardSection:m.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7222],{7222:(e,t,l)=>{l.r(t),l.d(t,{default:()=>b});var a=l(9835),i=l(6970);const s={class:"row q-mx-md"},u={class:"col-12"},r={class:"text-h6"},n={class:"row"},d={class:"col-12 q-mb-xs"},c=(0,a._)("br",null,null,-1);function o(e,t,l,o,f,h){const p=(0,a.up)("q-card-section"),w=(0,a.up)("q-card"),_=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(_,null,{default:(0,a.w5)((()=>[(0,a._)("div",s,[(0,a._)("div",u,[(0,a.Wm)(w,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(p,null,{default:(0,a.w5)((()=>[(0,a._)("div",r,(0,i.zw)(f.rule.title),1)])),_:1}),(0,a.Wm)(p,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a._)("div",d,[(0,a.Uk)(" Rule: "+(0,i.zw)(f.rule.title),1),c])])])),_:1})])),_:1})])])])),_:1})}var f=l(9543);const h={name:"Show",data(){return{rule:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getRule()},methods:{onRequest:function(e){this.page=e.page,this.getRule()},getRule:function(){(new f.Z).get(this.id).then((e=>this.parseRule(e)))},parseRule:function(e){this.rule={title:e.data.data.attributes.title}}}};var p=l(1639),w=l(9885),_=l(4458),m=l(3190),g=l(9984),v=l.n(g);const R=(0,p.Z)(h,[["render",o]]),b=R;v()(h,"components",{QPage:w.Z,QCard:_.Z,QCardSection:m.Z})}}]);

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7480],{7480:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var i=a(9835);function n(e,t,a,n,s,r){const o=(0,i.up)("ApexChart");return(0,i.wg)(),(0,i.iD)("div",null,[(0,i.Wm)(o,{width:"100%",ref:"chart",height:"350",type:"line",options:s.options,series:s.series},null,8,["options","series"])])}a(702);var s=a(1569),r=a(8898);class o{overview(e,t){let a=(0,r.Z)(e.start,"y-MM-dd"),i=(0,r.Z)(e.end,"y-MM-dd");return s.api.get("/api/v1/chart/account/overview",{params:{start:a,end:i,cache:t}})}}var l=a(1049),h=a(9302);const d={name:"HomeChart",computed:{...(0,l.Se)("fireflyiii",["getRange","getCacheKey"])},data(){return{range:{start:null,end:null},loading:!1,currencies:[],options:{theme:{mode:"dark"},dataLabels:{enabled:!1},noData:{text:"Loading..."},chart:{id:"vuechart-home",toolbar:{show:!0,tools:{download:!1,selection:!1,pan:!1}}},yaxis:{labels:{formatter:this.numberFormatter}},labels:[],xaxis:{categories:[]}},series:[],locale:"en-US",dateFormat:"MMMM d, y"}},created(){const e=(0,h.Z)();this.locale=e.lang.getLocale(),this.dateFormat=this.$t("config.month_and_day_fns")},mounted(){const e=(0,h.Z)();if(this.options.theme.mode=e.dark.isActive?"dark":"light",null===this.range.start||null===this.range.end){const e=(0,l.oR)();e.subscribe(((e,t)=>{"fireflyiii/setRange"===e.type&&(this.range=e.payload,this.buildChart())}))}null!==this.getRange.start&&null!==this.getRange.end&&this.buildChart()},methods:{numberFormatter:function(e,t){var a;let i=null!==(a=this.currencies[t])&&void 0!==a?a:"EUR";return Intl.NumberFormat(this.locale,{style:"currency",currency:i}).format(e)},buildChart:function(){if(null!==this.getRange.start&&null!==this.getRange.end){let e=this.getRange.start,t=this.getRange.end;if(!1===this.loading){this.loading=!0;const a=new o;this.generateStaticLabels({start:e,end:t}),a.overview({start:e,end:t},this.getCacheKey).then((e=>{this.generateSeries(e.data)}))}}},generateSeries:function(e){let t;this.series=[];for(let a in e)if(e.hasOwnProperty(a)){t={},t.name=e[a].label,t.data=[],this.currencies.push(e[a].currency_code);for(let i in e[a].entries)t.data.push(e[a].entries[i]);this.series.push(t)}this.loading=!1},generateStaticLabels:function(e){let t,a=new Date(e.start),i=[];while(a<=e.end)i.push((0,r.Z)(a,this.dateFormat)),t=a.setDate(a.getDate()+1),a=new Date(t);this.options={...this.options,labels:i}}},components:{ApexChart:(0,i.RC)((()=>a.e(4736).then(a.t.bind(a,7092,23))))}};var c=a(1639);const u=(0,c.Z)(d,[["render",n]]),g=u}}]);

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7544],{7544:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var n=a(9835);const r=(0,n._)("p",null," ",-1),i=(0,n._)("p",null," ",-1),s=(0,n._)("p",null," ",-1),l=(0,n._)("p",null," ",-1);function o(e,t,a,o,g,u){const p=(0,n.up)("LargeTable"),c=(0,n.up)("q-fab-action"),d=(0,n.up)("q-fab"),f=(0,n.up)("q-page-sticky"),m=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(m,null,{default:(0,n.w5)((()=>[(0,n.Wm)(p,{ref:"table",title:e.$t("firefly.title_"+this.type),rows:g.rows,loading:g.loading,onOnRequest:u.onRequest,"rows-number":g.rowsNumber,"rows-per-page":g.rowsPerPage,page:g.page},null,8,["title","rows","loading","onOnRequest","rows-number","rows-per-page","page"]),r,i,s,l,(0,n.Wm)(f,{position:"bottom-right",offset:[18,18]},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{color:"primary",square:"",to:{name:"transactions.create",params:{type:"transfer"}},icon:"fas fa-exchange-alt",label:"New transfer"},null,8,["to"]),(0,n.Wm)(c,{color:"primary",square:"",to:{name:"transactions.create",params:{type:"deposit"}},icon:"fas fa-long-arrow-alt-right",label:"New deposit"},null,8,["to"]),(0,n.Wm)(c,{color:"primary",square:"",to:{name:"transactions.create",params:{type:"withdrawal"}},icon:"fas fa-long-arrow-alt-left",label:"New withdrawal"},null,8,["to"])])),_:1})])),_:1})])),_:1})}var g=a(1049),u=a(1569);class p{list(e,t,a){let n="api/v1/transactions";return u.api.get(n,{params:{page:t,cache:a,type:e}})}}var c=a(8925),d=a(3247);const f={name:"Index",components:{LargeTable:c.Z},watch:{$route(e){"transactions.index"===e.name&&(this.type=e.params.type,this.page=1,this.triggerUpdate())}},data(){return{loading:!1,rows:[],columns:[{name:"type",label:" ",field:"type",style:"width: 30px"},{name:"description",label:"Description",field:"description",align:"left"},{name:"amount",label:"Amount",field:"amount"},{name:"date",label:"Date",field:"date",align:"left"},{name:"source",label:"Source",field:"source",align:"left"},{name:"destination",label:"Destination",field:"destination",align:"left"},{name:"category",label:"Category",field:"category",align:"left"},{name:"budget",label:"Budget",field:"budget",align:"left"},{name:"menu",label:" ",field:"menu",align:"left"}],type:"withdrawal",page:1,rowsPerPage:50,rowsNumber:100,range:{start:null,end:null}}},computed:{...(0,g.Se)("fireflyiii",["getRange","getCacheKey","getListPageSize"])},created(){this.rowsPerPage=this.getListPageSize},mounted(){if(this.type=this.$route.params.type,null===this.getRange.start||null===this.getRange.end){const e=(0,g.oR)();e.subscribe(((e,t)=>{"fireflyiii/setRange"===e.type&&(this.range={start:e.payload.start,end:e.payload.end},this.triggerUpdate())}))}null!==this.getRange.start&&null!==this.getRange.end&&(this.range={start:this.getRange.start,end:this.getRange.end},this.triggerUpdate())},methods:{onRequest:function(e){this.page=e.page,this.triggerUpdate()},formatAmount:function(e,t){return Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)},gotoTransaction:function(e,t){this.$router.push({name:"transactions.show",params:{id:1}})},triggerUpdate:function(){if(this.loading)return;if(null===this.range.start||null===this.range.end)return;this.loading=!0;const e=new p,t=new d.Z;this.rows=[],e.list(this.type,this.page,this.getCacheKey).then((e=>{let a=t.parseResponse(e);this.rowsPerPage=a.rowsPerPage,this.rowsNumber=a.rowsNumber,this.rows=a.rows,this.loading=!1}))}}};var m=a(1639),h=a(9885),w=a(3388),b=a(9361),y=a(935),P=a(9984),R=a.n(P);const q=(0,m.Z)(f,[["render",o]]),_=q;R()(f,"components",{QPage:h.Z,QPageSticky:w.Z,QFab:b.Z,QFabAction:y.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[9740],{9740:(s,e,t)=>{t.r(e),t.d(e,{default:()=>R});var i=t(3673),r=t(2323);const a={class:"row q-mx-md"},n={class:"col-12"},o={class:"row q-mx-md q-mt-md"},l={class:"col-12"},d=(0,i._)("div",{class:"text-h6"},"Edit piggy bank",-1),u={class:"row"},c={class:"col-12 q-mb-xs"},m={class:"row q-mx-md"},h={class:"col-12"},g={class:"row"},p={class:"col-12 text-right"},b={class:"row"},f={class:"col-12 text-right"};function w(s,e,t,w,k,_){const y=(0,i.up)("q-btn"),v=(0,i.up)("q-banner"),q=(0,i.up)("q-card-section"),E=(0,i.up)("q-input"),x=(0,i.up)("q-card"),B=(0,i.up)("q-checkbox"),C=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(C,null,{default:(0,i.w5)((()=>[(0,i._)("div",a,[(0,i._)("div",n,[""!==k.errorMessage?((0,i.wg)(),(0,i.j4)(v,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,i.w5)((()=>[(0,i.Wm)(y,{flat:"",onClick:_.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,i.w5)((()=>[(0,i.Uk)((0,r.zw)(k.errorMessage)+" ",1)])),_:1})):(0,i.kq)("",!0)])]),(0,i._)("div",o,[(0,i._)("div",l,[(0,i.Wm)(x,{bordered:""},{default:(0,i.w5)((()=>[(0,i.Wm)(q,null,{default:(0,i.w5)((()=>[d])),_:1}),(0,i.Wm)(q,null,{default:(0,i.w5)((()=>[(0,i._)("div",u,[(0,i._)("div",c,[(0,i.Wm)(E,{"error-message":k.submissionErrors.name,error:k.hasSubmissionErrors.name,"bottom-slots":"",disable:_.disabledInput,type:"text",clearable:"",modelValue:k.name,"onUpdate:modelValue":e[0]||(e[0]=s=>k.name=s),label:s.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,i._)("div",m,[(0,i._)("div",h,[(0,i.Wm)(x,{class:"q-mt-xs"},{default:(0,i.w5)((()=>[(0,i.Wm)(q,null,{default:(0,i.w5)((()=>[(0,i._)("div",g,[(0,i._)("div",p,[(0,i.Wm)(y,{disable:_.disabledInput,color:"primary",label:"Update",onClick:_.submitPiggyBank},null,8,["disable","onClick"])])]),(0,i._)("div",b,[(0,i._)("div",f,[(0,i.Wm)(B,{disable:_.disabledInput,modelValue:k.doReturnHere,"onUpdate:modelValue":e[1]||(e[1]=s=>k.doReturnHere=s),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var k=t(4852),_=t(5474);class y{post(s,e){let t="/api/v1/piggy_banks/"+s;return _.api.put(t,e)}}const v={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectPiggyBank()},methods:{collectPiggyBank:function(){let s=new k.Z;s.get(this.id).then((s=>this.parsePiggyBank(s)))},parsePiggyBank:function(s){this.name=s.data.data.attributes.name},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitPiggyBank:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const s=this.buildPiggyBank();(new y).post(this.id,s).catch(this.processErrors).then(this.processSuccess)},buildPiggyBank:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(s){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!s)return;this.submitting=!1;let e={level:"success",text:"Piggy is updated",show:!0,action:{show:!0,text:"Go to piggy",link:{name:"piggy-banks.show",params:{id:parseInt(s.data.data.id)}}}};this.$q.localStorage.set("flash",e),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(s){if(s.response){let e=s.response.data;this.errorMessage=e.message,console.log(e);for(let s in e.errors)e.errors.hasOwnProperty(s)&&(this.submissionErrors[s]=e.errors[s][0],this.hasSubmissionErrors[s]=!0)}this.submitting=!1}}};var q=t(4260),E=t(4379),x=t(5607),B=t(2165),C=t(151),P=t(5589),S=t(4842),W=t(5735),Z=t(7518),I=t.n(Z);const Q=(0,q.Z)(v,[["render",w]]),R=Q;I()(v,"components",{QPage:E.Z,QBanner:x.Z,QBtn:B.Z,QCard:C.Z,QCardSection:P.Z,QInput:S.Z,QCheckbox:W.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7586],{7586:(s,e,t)=>{t.r(e),t.d(e,{default:()=>R});var i=t(9835),r=t(6970);const a={class:"row q-mx-md"},n={class:"col-12"},o={class:"row q-mx-md q-mt-md"},l={class:"col-12"},d=(0,i._)("div",{class:"text-h6"},"Edit piggy bank",-1),u={class:"row"},c={class:"col-12 q-mb-xs"},m={class:"row q-mx-md"},h={class:"col-12"},g={class:"row"},p={class:"col-12 text-right"},b={class:"row"},f={class:"col-12 text-right"};function w(s,e,t,w,k,_){const y=(0,i.up)("q-btn"),v=(0,i.up)("q-banner"),q=(0,i.up)("q-card-section"),E=(0,i.up)("q-input"),x=(0,i.up)("q-card"),B=(0,i.up)("q-checkbox"),C=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(C,null,{default:(0,i.w5)((()=>[(0,i._)("div",a,[(0,i._)("div",n,[""!==k.errorMessage?((0,i.wg)(),(0,i.j4)(v,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,i.w5)((()=>[(0,i.Wm)(y,{flat:"",onClick:_.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,i.w5)((()=>[(0,i.Uk)((0,r.zw)(k.errorMessage)+" ",1)])),_:1})):(0,i.kq)("",!0)])]),(0,i._)("div",o,[(0,i._)("div",l,[(0,i.Wm)(x,{bordered:""},{default:(0,i.w5)((()=>[(0,i.Wm)(q,null,{default:(0,i.w5)((()=>[d])),_:1}),(0,i.Wm)(q,null,{default:(0,i.w5)((()=>[(0,i._)("div",u,[(0,i._)("div",c,[(0,i.Wm)(E,{"error-message":k.submissionErrors.name,error:k.hasSubmissionErrors.name,"bottom-slots":"",disable:_.disabledInput,type:"text",clearable:"",modelValue:k.name,"onUpdate:modelValue":e[0]||(e[0]=s=>k.name=s),label:s.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,i._)("div",m,[(0,i._)("div",h,[(0,i.Wm)(x,{class:"q-mt-xs"},{default:(0,i.w5)((()=>[(0,i.Wm)(q,null,{default:(0,i.w5)((()=>[(0,i._)("div",g,[(0,i._)("div",p,[(0,i.Wm)(y,{disable:_.disabledInput,color:"primary",label:"Update",onClick:_.submitPiggyBank},null,8,["disable","onClick"])])]),(0,i._)("div",b,[(0,i._)("div",f,[(0,i.Wm)(B,{disable:_.disabledInput,modelValue:k.doReturnHere,"onUpdate:modelValue":e[1]||(e[1]=s=>k.doReturnHere=s),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var k=t(670),_=t(1569);class y{post(s,e){let t="/api/v1/piggy_banks/"+s;return _.api.put(t,e)}}const v={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectPiggyBank()},methods:{collectPiggyBank:function(){let s=new k.Z;s.get(this.id).then((s=>this.parsePiggyBank(s)))},parsePiggyBank:function(s){this.name=s.data.data.attributes.name},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitPiggyBank:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const s=this.buildPiggyBank();(new y).post(this.id,s).catch(this.processErrors).then(this.processSuccess)},buildPiggyBank:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(s){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!s)return;this.submitting=!1;let e={level:"success",text:"Piggy is updated",show:!0,action:{show:!0,text:"Go to piggy",link:{name:"piggy-banks.show",params:{id:parseInt(s.data.data.id)}}}};this.$q.localStorage.set("flash",e),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(s){if(s.response){let e=s.response.data;this.errorMessage=e.message,console.log(e);for(let s in e.errors)e.errors.hasOwnProperty(s)&&(this.submissionErrors[s]=e.errors[s][0],this.hasSubmissionErrors[s]=!0)}this.submitting=!1}}};var q=t(1639),E=t(9885),x=t(7128),B=t(8879),C=t(4458),P=t(3190),S=t(6611),W=t(1221),Z=t(9984),I=t.n(Z);const Q=(0,q.Z)(v,[["render",w]]),R=Q;I()(v,"components",{QPage:E.Z,QBanner:x.Z,QBtn:B.Z,QCard:C.Z,QCardSection:P.Z,QInput:S.Z,QCheckbox:W.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[766],{766:(t,n,a)=>{a.r(n),a.d(n,{default:()=>z});a(246);var e=a(3673),s=a(2323);const i={class:"row q-mx-md"},r={class:"col-12"},o={class:"text-h6"},l={class:"row"},u={class:"col-12 q-mb-xs"},c=(0,e._)("br",null,null,-1),d=(0,e._)("br",null,null,-1),p=(0,e._)("br",null,null,-1);function g(t,n,a,g,w,h){const _=(0,e.up)("q-card-section"),f=(0,e.up)("q-card"),b=(0,e.up)("q-page");return(0,e.wg)(),(0,e.j4)(b,null,{default:(0,e.w5)((()=>[(0,e._)("div",i,[(0,e._)("div",r,[(0,e.Wm)(f,{bordered:""},{default:(0,e.w5)((()=>[(0,e.Wm)(_,null,{default:(0,e.w5)((()=>[(0,e._)("div",o,"Transaction: "+(0,s.zw)(w.title),1)])),_:1}),(0,e.Wm)(_,null,{default:(0,e.w5)((()=>[((0,e.wg)(!0),(0,e.iD)(e.HY,null,(0,e.Ko)(w.group.transactions,((t,n)=>((0,e.wg)(),(0,e.iD)("div",l,[(0,e._)("div",u,[(0,e._)("strong",null,"index "+(0,s.zw)(n),1),c,(0,e.Uk)(" "+(0,s.zw)(t.description),1),d,(0,e.Uk)(" "+(0,s.zw)(t.amount),1),p,(0,e.Uk)(" "+(0,s.zw)(t.source_name)+" --\x3e "+(0,s.zw)(t.destination_name),1)])])))),256))])),_:1})])),_:1})])])])),_:1})}var w=a(9961),h=a(9695);const _={name:"Show",data(){return{title:"",group:{transactions:[]},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getTransaction()},mounted(){},components:{LargeTable:h.Z},methods:{onRequest:function(t){this.page=t.page,this.getTag()},getTransaction:function(){let t=new w.Z;this.loading=!0,t.get(this.id).then((t=>this.parseTransaction(t.data.data)))},parseTransaction:function(t){this.group={group_title:t.attributes.group_title,transactions:[]},null!==t.attributes.group_title&&(this.title=t.attributes.group_title);for(let n in t.attributes.transactions)if(t.attributes.transactions.hasOwnProperty(n)){let a=t.attributes.transactions[n];this.group.transactions.push(a),0===parseInt(n)&&null===t.attributes.group_title&&(this.title=a.description)}this.loading=!1}}};var f=a(4260),b=a(4379),m=a(151),v=a(5589),k=a(7518),T=a.n(k);const q=(0,f.Z)(_,[["render",g]]),z=q;T()(_,"components",{QPage:b.Z,QCard:m.Z,QCardSection:v.Z})}}]);

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7697],{7697:(e,t,r)=>{r.r(t),r.d(t,{default:()=>q});var i=r(9835),n=r(6970);const a={class:"row q-mx-md"},c={class:"col-12"},s={class:"text-h6"},u={class:"row"},l={class:"col-12 q-mb-xs"},d=(0,i._)("br",null,null,-1);function o(e,t,r,o,f,h){const g=(0,i.up)("q-card-section"),p=(0,i.up)("q-card"),w=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(w,null,{default:(0,i.w5)((()=>[(0,i._)("div",a,[(0,i._)("div",c,[(0,i.Wm)(p,{bordered:""},{default:(0,i.w5)((()=>[(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i._)("div",s,(0,n.zw)(f.recurrence.title),1)])),_:1}),(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i._)("div",u,[(0,i._)("div",l,[(0,i.Uk)(" Title: "+(0,n.zw)(f.recurrence.title),1),d])])])),_:1})])),_:1})])])])),_:1})}var f=r(4352);const h={name:"Show",data(){return{recurrence:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getRecurring()},methods:{onRequest:function(e){this.page=e.page,this.getRecurring()},getRecurring:function(){(new f.Z).get(this.id).then((e=>this.parseRecurring(e)))},parseRecurring:function(e){this.recurrence={title:e.data.data.attributes.title}}}};var g=r(1639),p=r(9885),w=r(4458),_=r(3190),m=r(9984),v=r.n(m);const b=(0,g.Z)(h,[["render",o]]),q=b;v()(h,"components",{QPage:p.Z,QCard:w.Z,QCardSection:_.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7345],{7345:(e,s,t)=>{t.r(s),t.d(s,{default:()=>M});var r=t(3673),i=t(2323);const a={class:"row q-mx-md"},o={class:"col-12"},n={class:"row q-mx-md q-mt-md"},l={class:"col-12"},d=(0,r._)("div",{class:"text-h6"},"Edit budget",-1),u={class:"row"},c={class:"col-12 q-mb-xs"},m={class:"row q-mx-md"},h={class:"col-12"},b={class:"row"},p={class:"col-12 text-right"},g={class:"row"},f={class:"col-12 text-right"};function w(e,s,t,w,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),k=(0,r.up)("q-card-section"),x=(0,r.up)("q-input"),B=(0,r.up)("q-card"),C=(0,r.up)("q-checkbox"),y=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",n,[(0,r._)("div",l,[(0,r.Wm)(B,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[d])),_:1}),(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",c,[(0,r.Wm)(x,{"error-message":_.submissionErrors.name,error:_.hasSubmissionErrors.name,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.name,"onUpdate:modelValue":s[0]||(s[0]=e=>_.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",m,[(0,r._)("div",h,[(0,r.Wm)(B,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",b,[(0,r._)("div",p,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitBudget},null,8,["disable","onClick"])])]),(0,r._)("div",g,[(0,r._)("div",f,[(0,r.Wm)(C,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(7914),v=t(5474);class q{post(e,s){let t="/api/v1/budgets/"+e;return v.api.put(t,s)}}const E={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",id:0,name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectBudget()},methods:{collectBudget:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseBudget(e)))},parseBudget:function(e){this.name=e.data.data.attributes.name},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitBudget:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildBudget();let s=new q;s.post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildBudget:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!e)return;this.submitting=!1;let s={level:"success",text:"Budget is updated",show:!0,action:{show:!0,text:"Go to budget",link:{name:"budgets.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var k=t(4260),x=t(4379),B=t(5607),C=t(2165),y=t(151),S=t(5589),W=t(4842),Z=t(5735),I=t(7518),Q=t.n(I);const R=(0,k.Z)(E,[["render",w]]),M=R;Q()(E,"components",{QPage:x.Z,QBanner:B.Z,QBtn:C.Z,QCard:y.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:Z.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7919],{7919:(e,s,t)=>{t.r(s),t.d(s,{default:()=>M});var r=t(9835),i=t(6970);const a={class:"row q-mx-md"},o={class:"col-12"},n={class:"row q-mx-md q-mt-md"},l={class:"col-12"},d=(0,r._)("div",{class:"text-h6"},"Edit budget",-1),u={class:"row"},c={class:"col-12 q-mb-xs"},m={class:"row q-mx-md"},h={class:"col-12"},b={class:"row"},p={class:"col-12 text-right"},g={class:"row"},f={class:"col-12 text-right"};function w(e,s,t,w,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),k=(0,r.up)("q-card-section"),x=(0,r.up)("q-input"),B=(0,r.up)("q-card"),C=(0,r.up)("q-checkbox"),y=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",n,[(0,r._)("div",l,[(0,r.Wm)(B,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[d])),_:1}),(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",c,[(0,r.Wm)(x,{"error-message":_.submissionErrors.name,error:_.hasSubmissionErrors.name,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.name,"onUpdate:modelValue":s[0]||(s[0]=e=>_.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",m,[(0,r._)("div",h,[(0,r.Wm)(B,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",b,[(0,r._)("div",p,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitBudget},null,8,["disable","onClick"])])]),(0,r._)("div",g,[(0,r._)("div",f,[(0,r.Wm)(C,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(7912),v=t(1569);class q{post(e,s){let t="/api/v1/budgets/"+e;return v.api.put(t,s)}}const E={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",id:0,name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectBudget()},methods:{collectBudget:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseBudget(e)))},parseBudget:function(e){this.name=e.data.data.attributes.name},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitBudget:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildBudget();let s=new q;s.post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildBudget:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!e)return;this.submitting=!1;let s={level:"success",text:"Budget is updated",show:!0,action:{show:!0,text:"Go to budget",link:{name:"budgets.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var k=t(1639),x=t(9885),B=t(7128),C=t(8879),y=t(4458),S=t(3190),W=t(6611),Z=t(1221),I=t(9984),Q=t.n(I);const R=(0,k.Z)(E,[["render",w]]),M=R;Q()(E,"components",{QPage:x.Z,QBanner:B.Z,QBtn:C.Z,QCard:y.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:Z.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[5044],{5044:(e,s,t)=>{t.r(s),t.d(s,{default:()=>Q});var r=t(3673),o=t(2323);const a={class:"row q-mx-md"},l={class:"col-12"},i={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u={class:"text-h6"},d={class:"row"},m={class:"col-12 q-mb-xs"},c={class:"row"},b={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},p={class:"col-12"},f={class:"row"},w={class:"col-12 text-right"},X={class:"row"},g={class:"col-12 text-right"},_=(0,r._)("br",null,null,-1);function v(e,s,t,v,q,x){const E=(0,r.up)("q-btn"),k=(0,r.up)("q-banner"),y=(0,r.up)("q-card-section"),V=(0,r.up)("q-input"),C=(0,r.up)("q-card"),I=(0,r.up)("q-checkbox"),R=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",l,[""!==q.errorMessage?((0,r.wg)(),(0,r.j4)(k,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(E,{flat:"",onClick:x.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,o.zw)(q.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",i,[(0,r._)("div",n,[(0,r.Wm)(C,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,"Info for "+(0,o.zw)(e.$route.params.type)+" "+(0,o.zw)(e.index),1)])),_:1}),(0,r.Wm)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",m,[(0,r.Wm)(V,{"error-message":q.submissionErrors.name,error:q.hasSubmissionErrors.name,"bottom-slots":"",disable:x.disabledInput,type:"text",clearable:"",modelValue:q.name,"onUpdate:modelValue":s[0]||(s[0]=e=>q.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])]),(0,r._)("div",c,[(0,r._)("div",b,[(0,r.Wm)(V,{"error-message":q.submissionErrors.iban,error:q.hasSubmissionErrors.iban,mask:"AA## XXXX XXXX XXXX XXXX XXXX XXXX XXXX XX","bottom-slots":"",disable:x.disabledInput,type:"text",clearable:"",modelValue:q.iban,"onUpdate:modelValue":s[1]||(s[1]=e=>q.iban=e),label:e.$t("form.iban"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",p,[(0,r.Wm)(C,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",f,[(0,r._)("div",w,[(0,r.Wm)(E,{disable:x.disabledInput,color:"primary",label:"Submit",onClick:x.submitAccount},null,8,["disable","onClick"])])]),(0,r._)("div",X,[(0,r._)("div",g,[(0,r.Wm)(I,{disable:x.disabledInput,modelValue:q.doReturnHere,"onUpdate:modelValue":s[2]||(s[2]=e=>q.doReturnHere=e),"left-label":"",label:"Return here to create another one"},null,8,["disable","modelValue"]),_,(0,r.Wm)(I,{modelValue:q.doResetForm,"onUpdate:modelValue":s[3]||(s[3]=e=>q.doResetForm=e),"left-label":"",disable:!q.doReturnHere||x.disabledInput,label:"Reset form after submission"},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var q=t(5077);const x={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",name:"",iban:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.resetForm(),this.type=this.$route.params.type},methods:{resetForm:function(){this.name="",this.iban="",this.resetErrors()},resetErrors:function(){this.submissionErrors={name:"",iban:""},this.hasSubmissionErrors={name:!1,iban:!1}},submitAccount:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildAccount();let s=new q.Z;s.post(e).catch(this.processErrors).then(this.processSuccess)},buildAccount:function(){let e={name:this.name,iban:this.iban,type:this.type};return"asset"===this.type&&(e.account_role="defaultAsset"),e},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new account lol",show:!0,action:{show:!0,text:"Go to account",link:{name:"accounts.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var E=t(4260),k=t(4379),y=t(5607),V=t(2165),C=t(151),I=t(5589),R=t(4842),S=t(5735),W=t(7518),Z=t.n(W);const A=(0,E.Z)(x,[["render",v]]),Q=A;Z()(x,"components",{QPage:k.Z,QBanner:y.Z,QBtn:V.Z,QCard:C.Z,QCardSection:I.Z,QInput:R.Z,QCheckbox:S.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[7956],{7956:(e,s,t)=>{t.r(s),t.d(s,{default:()=>Q});var r=t(9835),o=t(6970);const a={class:"row q-mx-md"},l={class:"col-12"},i={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u={class:"text-h6"},d={class:"row"},m={class:"col-12 q-mb-xs"},c={class:"row"},b={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},p={class:"col-12"},f={class:"row"},w={class:"col-12 text-right"},X={class:"row"},g={class:"col-12 text-right"},_=(0,r._)("br",null,null,-1);function v(e,s,t,v,q,x){const E=(0,r.up)("q-btn"),k=(0,r.up)("q-banner"),y=(0,r.up)("q-card-section"),V=(0,r.up)("q-input"),C=(0,r.up)("q-card"),I=(0,r.up)("q-checkbox"),R=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",l,[""!==q.errorMessage?((0,r.wg)(),(0,r.j4)(k,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(E,{flat:"",onClick:x.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,o.zw)(q.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",i,[(0,r._)("div",n,[(0,r.Wm)(C,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,"Info for "+(0,o.zw)(e.$route.params.type)+" "+(0,o.zw)(e.index),1)])),_:1}),(0,r.Wm)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",m,[(0,r.Wm)(V,{"error-message":q.submissionErrors.name,error:q.hasSubmissionErrors.name,"bottom-slots":"",disable:x.disabledInput,type:"text",clearable:"",modelValue:q.name,"onUpdate:modelValue":s[0]||(s[0]=e=>q.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])]),(0,r._)("div",c,[(0,r._)("div",b,[(0,r.Wm)(V,{"error-message":q.submissionErrors.iban,error:q.hasSubmissionErrors.iban,mask:"AA## XXXX XXXX XXXX XXXX XXXX XXXX XXXX XX","bottom-slots":"",disable:x.disabledInput,type:"text",clearable:"",modelValue:q.iban,"onUpdate:modelValue":s[1]||(s[1]=e=>q.iban=e),label:e.$t("form.iban"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",p,[(0,r.Wm)(C,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(y,null,{default:(0,r.w5)((()=>[(0,r._)("div",f,[(0,r._)("div",w,[(0,r.Wm)(E,{disable:x.disabledInput,color:"primary",label:"Submit",onClick:x.submitAccount},null,8,["disable","onClick"])])]),(0,r._)("div",X,[(0,r._)("div",g,[(0,r.Wm)(I,{disable:x.disabledInput,modelValue:q.doReturnHere,"onUpdate:modelValue":s[2]||(s[2]=e=>q.doReturnHere=e),"left-label":"",label:"Return here to create another one"},null,8,["disable","modelValue"]),_,(0,r.Wm)(I,{modelValue:q.doResetForm,"onUpdate:modelValue":s[3]||(s[3]=e=>q.doResetForm=e),"left-label":"",disable:!q.doReturnHere||x.disabledInput,label:"Reset form after submission"},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var q=t(1138);const x={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",name:"",iban:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.resetForm(),this.type=this.$route.params.type},methods:{resetForm:function(){this.name="",this.iban="",this.resetErrors()},resetErrors:function(){this.submissionErrors={name:"",iban:""},this.hasSubmissionErrors={name:!1,iban:!1}},submitAccount:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildAccount();let s=new q.Z;s.post(e).catch(this.processErrors).then(this.processSuccess)},buildAccount:function(){let e={name:this.name,iban:this.iban,type:this.type};return"asset"===this.type&&(e.account_role="defaultAsset"),e},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new account lol",show:!0,action:{show:!0,text:"Go to account",link:{name:"accounts.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var E=t(1639),k=t(9885),y=t(7128),V=t(8879),C=t(4458),I=t(3190),R=t(6611),S=t(1221),W=t(9984),Z=t.n(W);const A=(0,E.Z)(x,[["render",v]]),Q=A;Z()(x,"components",{QPage:k.Z,QBanner:y.Z,QBtn:V.Z,QCard:C.Z,QCardSection:I.Z,QInput:R.Z,QCheckbox:S.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8152],{8152:(t,a,e)=>{e.r(a),e.d(a,{default:()=>_});var i=e(3673),n=e(2323);function s(t,a,e,s,r,g){const l=(0,i.up)("router-link"),o=(0,i.up)("q-badge"),u=(0,i.up)("q-card-section"),d=(0,i.up)("q-card"),p=(0,i.up)("q-fab-action"),c=(0,i.up)("q-fab"),h=(0,i.up)("q-page-sticky"),f=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(f,null,{default:(0,i.w5)((()=>[(0,i.Wm)(d,null,{default:(0,i.w5)((()=>[(0,i.Wm)(u,null,{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(r.tags,(t=>((0,i.wg)(),(0,i.iD)("span",null,[(0,i.Wm)(o,{outline:"",class:"q-ma-xs",color:"blue"},{default:(0,i.w5)((()=>[(0,i.Wm)(l,{to:{name:"tags.show",params:{id:t.id}}},{default:(0,i.w5)((()=>[(0,i.Uk)((0,n.zw)(t.attributes.tag),1)])),_:2},1032,["to"])])),_:2},1024)])))),256))])),_:1})])),_:1}),(0,i.Wm)(h,{position:"bottom-right",offset:[18,18]},{default:(0,i.w5)((()=>[(0,i.Wm)(c,{label:"Actions",square:"","vertical-actions-align":"right","label-position":"left",color:"green",icon:"fas fa-chevron-up",direction:"up"},{default:(0,i.w5)((()=>[(0,i.Wm)(p,{color:"primary",square:"",to:{name:"tags.create"},icon:"fas fa-exchange-alt",label:"New tag"},null,8,["to"])])),_:1})])),_:1})])),_:1})}var r=e(3617),g=e(5474);class l{list(t,a){let e="/api/v1/tags";return g.api.get(e,{params:{page:t,cache:a}})}}const o={name:"Index",watch:{$route(t){"tags.index"===t.name&&(this.page=1,this.updateBreadcrumbs(),this.triggerUpdate())}},data(){return{tags:[],loading:!1}},computed:{...(0,r.Se)("fireflyiii",["getRange","getCacheKey"])},created(){},mounted(){if(null===this.getRange.start||null===this.getRange.end){const t=(0,r.oR)();t.subscribe(((t,a)=>{"fireflyiii/setRange"===t.type&&(this.range={start:t.payload.start,end:t.payload.end},this.triggerUpdate())}))}null!==this.getRange.start&&null!==this.getRange.end&&(this.range={start:this.getRange.start,end:this.getRange.end},this.triggerUpdate())},methods:{updateBreadcrumbs:function(){this.$route.meta.pageTitle="firefly.tags",this.$route.meta.breadcrumbs=[{title:"tags"}]},onRequest:function(t){this.page=t.pagination.page,this.triggerUpdate()},triggerUpdate:function(){this.loading||(this.loading=!0,this.getPage(1))},getPage:function(t){const a=new l;this.rows=[],a.list(t,this.getCacheKey).then((a=>{for(let t in a.data.data)if(a.data.data.hasOwnProperty(t)){let e=a.data.data[t];this.tags.push(e)}t<parseInt(a.data.meta.pagination.total_pages)&&this.getPage(t+1),t===parseInt(a.data.meta.pagination.total_pages)&&(this.loading=!1)}))}}};var u=e(4260),d=e(4379),p=e(151),c=e(5589),h=e(9721),f=e(4264),m=e(9200),b=e(9975),w=e(7518),y=e.n(w);const q=(0,u.Z)(o,[["render",s]]),_=q;y()(o,"components",{QPage:d.Z,QCard:p.Z,QCardSection:c.Z,QBadge:h.Z,QPageSticky:f.Z,QFab:m.Z,QFabAction:b.Z})}}]);

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8218],{8218:(e,t,l)=>{l.r(t),l.d(t,{default:()=>p});var n=l(9835);const s={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},i=(0,n._)("div",{style:{"font-size":"30vh"}}," 404 ",-1),o=(0,n._)("div",{class:"text-h2",style:{opacity:".4"}}," Oops. Nothing here... ",-1);function c(e,t,l,c,r,a){const u=(0,n.up)("q-btn");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("div",null,[i,o,(0,n.Wm)(u,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})])])}const r=(0,n.aZ)({name:"Error404"});var a=l(1639),u=l(8879),f=l(9984),d=l.n(f);const h=(0,a.Z)(r,[["render",c]]),p=h;d()(r,"components",{QBtn:u.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[6602],{6140:(e,s,t)=>{t.r(s),t.d(s,{default:()=>M});var r=t(3673),i=t(2323);const l={class:"row q-mx-md"},o={class:"col-12"},a={class:"row q-mx-md q-mt-md"},u={class:"col-12"},n=(0,r._)("div",{class:"text-h6"},"Edit rule group",-1),d={class:"row"},c={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},m={class:"col-12"},p={class:"row"},b={class:"col-12 text-right"},f={class:"row"},g={class:"col-12 text-right"};function w(e,s,t,w,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),R=(0,r.up)("q-card-section"),x=(0,r.up)("q-input"),k=(0,r.up)("q-card"),C=(0,r.up)("q-checkbox"),G=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(G,null,{default:(0,r.w5)((()=>[(0,r._)("div",l,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",u,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[n])),_:1}),(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(x,{"error-message":_.submissionErrors.title,error:_.hasSubmissionErrors.title,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.title,"onUpdate:modelValue":s[0]||(s[0]=e=>_.title=e),label:e.$t("form.title"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",m,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",p,[(0,r._)("div",b,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitRuleGroup},null,8,["disable","onClick"])])]),(0,r._)("div",f,[(0,r._)("div",g,[(0,r.Wm)(C,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(4145),v=t(5474);class q{post(e,s){let t="/api/v1/rule_groups/"+e;return v.api.put(t,s)}}const E={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,title:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectRuleGroup()},methods:{collectRuleGroup:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseRuleGroup(e)))},parseRuleGroup:function(e){this.title=e.data.data.attributes.title},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRuleGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRuleGroup();(new q).post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildRuleGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!e)return;this.submitting=!1;let s={level:"success",text:"Rule group is is updated",show:!0,action:{show:!0,text:"Go to rule group",link:{name:"rule.index"}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var R=t(4260),x=t(4379),k=t(5607),C=t(2165),G=t(151),S=t(5589),W=t(4842),Z=t(5735),y=t(7518),I=t.n(y);const Q=(0,R.Z)(E,[["render",w]]),M=Q;I()(E,"components",{QPage:x.Z,QBanner:k.Z,QBtn:C.Z,QCard:G.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:Z.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8344],{8344:(e,s,t)=>{t.r(s),t.d(s,{default:()=>M});var r=t(9835),i=t(6970);const l={class:"row q-mx-md"},o={class:"col-12"},a={class:"row q-mx-md q-mt-md"},u={class:"col-12"},n=(0,r._)("div",{class:"text-h6"},"Edit rule group",-1),d={class:"row"},c={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},m={class:"col-12"},p={class:"row"},b={class:"col-12 text-right"},f={class:"row"},g={class:"col-12 text-right"};function w(e,s,t,w,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),R=(0,r.up)("q-card-section"),x=(0,r.up)("q-input"),k=(0,r.up)("q-card"),C=(0,r.up)("q-checkbox"),G=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(G,null,{default:(0,r.w5)((()=>[(0,r._)("div",l,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",u,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[n])),_:1}),(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(x,{"error-message":_.submissionErrors.title,error:_.hasSubmissionErrors.title,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.title,"onUpdate:modelValue":s[0]||(s[0]=e=>_.title=e),label:e.$t("form.title"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",m,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",p,[(0,r._)("div",b,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitRuleGroup},null,8,["disable","onClick"])])]),(0,r._)("div",f,[(0,r._)("div",g,[(0,r.Wm)(C,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(6739),v=t(1569);class q{post(e,s){let t="/api/v1/rule_groups/"+e;return v.api.put(t,s)}}const E={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,title:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectRuleGroup()},methods:{collectRuleGroup:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseRuleGroup(e)))},parseRuleGroup:function(e){this.title=e.data.data.attributes.title},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRuleGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRuleGroup();(new q).post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildRuleGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!e)return;this.submitting=!1;let s={level:"success",text:"Rule group is is updated",show:!0,action:{show:!0,text:"Go to rule group",link:{name:"rule.index"}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var R=t(1639),x=t(9885),k=t(7128),C=t(8879),G=t(4458),S=t(3190),W=t(6611),Z=t(1221),y=t(9984),I=t.n(y);const Q=(0,R.Z)(E,[["render",w]]),M=Q;I()(E,"components",{QPage:x.Z,QBanner:k.Z,QBtn:C.Z,QCard:G.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:Z.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[3443],{3443:(e,t,s)=>{s.r(t),s.d(t,{default:()=>N});var a=s(3673),r=s(2323);const o={class:"row q-mx-md"},i={class:"col-12"},n={class:"text-h6"},u={class:"row"},d={class:"col-12 q-mb-xs"},g=(0,a._)("br",null,null,-1),l={class:"row q-mt-sm"},h={class:"col-12"};function w(e,t,s,w,c,p){const m=(0,a.up)("q-card-section"),b=(0,a.up)("q-card"),f=(0,a.up)("LargeTable"),_=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(_,null,{default:(0,a.w5)((()=>[(0,a._)("div",o,[(0,a._)("div",i,[(0,a.Wm)(b,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,(0,r.zw)(c.budget.name),1)])),_:1}),(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a._)("div",u,[(0,a._)("div",d,[(0,a.Uk)(" Name: "+(0,r.zw)(c.budget.name),1),g])])])),_:1})])),_:1})])]),(0,a._)("div",l,[(0,a._)("div",h,[(0,a.Wm)(f,{ref:"table",title:"Transactions",rows:c.rows,loading:e.loading,onOnRequest:p.onRequest,"rows-number":c.rowsNumber,"rows-per-page":c.rowsPerPage,page:c.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var c=s(9695),p=s(7914),m=s(4682);const b={name:"Show",data(){return{budget:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){"no-budget"===this.$route.params.id&&(this.id=0,this.getWithoutBudget()),"no-budget"!==this.$route.params.id&&(this.id=parseInt(this.$route.params.id),this.getBudget())},components:{LargeTable:c.Z},methods:{onRequest:function(e){this.page=e.page,this.getBudget()},getWithoutBudget:function(){this.budget={name:"(without budget)"},this.loading=!0;const e=new m.Z;this.rows=[];let t=new p.Z;t.transactionsWithoutBudget(this.page,this.getCacheKey).then((t=>{let s=e.parseResponse(t);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},getBudget:function(){let e=new p.Z;e.get(this.id).then((e=>this.parseBudget(e))),this.loading=!0;const t=new m.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let s=t.parseResponse(e);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},parseBudget:function(e){this.budget={name:e.data.data.attributes.name}}}};var f=s(4260),_=s(4379),P=s(151),q=s(5589),v=s(7518),Z=s.n(v);const B=(0,f.Z)(b,[["render",w]]),N=B;Z()(b,"components",{QPage:_.Z,QCard:P.Z,QCardSection:q.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8376],{3543:(e,t,s)=>{s.r(t),s.d(t,{default:()=>N});var a=s(9835),r=s(6970);const o={class:"row q-mx-md"},i={class:"col-12"},n={class:"text-h6"},u={class:"row"},d={class:"col-12 q-mb-xs"},g=(0,a._)("br",null,null,-1),l={class:"row q-mt-sm"},h={class:"col-12"};function w(e,t,s,w,c,p){const m=(0,a.up)("q-card-section"),b=(0,a.up)("q-card"),f=(0,a.up)("LargeTable"),_=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(_,null,{default:(0,a.w5)((()=>[(0,a._)("div",o,[(0,a._)("div",i,[(0,a.Wm)(b,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,(0,r.zw)(c.budget.name),1)])),_:1}),(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a._)("div",u,[(0,a._)("div",d,[(0,a.Uk)(" Name: "+(0,r.zw)(c.budget.name),1),g])])])),_:1})])),_:1})])]),(0,a._)("div",l,[(0,a._)("div",h,[(0,a.Wm)(f,{ref:"table",title:"Transactions",rows:c.rows,loading:e.loading,onOnRequest:p.onRequest,"rows-number":c.rowsNumber,"rows-per-page":c.rowsPerPage,page:c.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var c=s(8925),p=s(7912),m=s(3247);const b={name:"Show",data(){return{budget:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){"no-budget"===this.$route.params.id&&(this.id=0,this.getWithoutBudget()),"no-budget"!==this.$route.params.id&&(this.id=parseInt(this.$route.params.id),this.getBudget())},components:{LargeTable:c.Z},methods:{onRequest:function(e){this.page=e.page,this.getBudget()},getWithoutBudget:function(){this.budget={name:"(without budget)"},this.loading=!0;const e=new m.Z;this.rows=[];let t=new p.Z;t.transactionsWithoutBudget(this.page,this.getCacheKey).then((t=>{let s=e.parseResponse(t);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},getBudget:function(){let e=new p.Z;e.get(this.id).then((e=>this.parseBudget(e))),this.loading=!0;const t=new m.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let s=t.parseResponse(e);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},parseBudget:function(e){this.budget={name:e.data.data.attributes.name}}}};var f=s(1639),_=s(9885),P=s(4458),q=s(3190),v=s(9984),Z=s.n(v);const B=(0,f.Z)(b,[["render",w]]),N=B;Z()(b,"components",{QPage:_.Z,QCard:P.Z,QCardSection:q.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[6333],{6333:(e,s,t)=>{t.r(s),t.d(s,{default:()=>V});var r=t(3673),i=t(2323);const l={class:"row q-mx-md"},o={class:"col-12"},a={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Edit rule",-1),d={class:"row"},c={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},m={class:"col-12"},b={class:"row"},p={class:"col-12 text-right"},f={class:"row"},w={class:"col-12 text-right"};function g(e,s,t,g,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),R=(0,r.up)("q-card-section"),k=(0,r.up)("q-input"),x=(0,r.up)("q-card"),C=(0,r.up)("q-checkbox"),S=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(S,null,{default:(0,r.w5)((()=>[(0,r._)("div",l,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",n,[(0,r.Wm)(x,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(k,{"error-message":_.submissionErrors.title,error:_.hasSubmissionErrors.title,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.title,"onUpdate:modelValue":s[0]||(s[0]=e=>_.title=e),label:e.$t("form.title"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",m,[(0,r.Wm)(x,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",b,[(0,r._)("div",p,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitRule},null,8,["disable","onClick"])])]),(0,r._)("div",f,[(0,r._)("div",w,[(0,r.Wm)(C,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(8240),v=t(5474);class q{post(e,s){let t="/api/v1/rules/"+e;return v.api.put(t,s)}}const E={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,title:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectRule()},methods:{collectRule:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseRule(e)))},parseRule:function(e){this.title=e.data.data.attributes.title},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRule:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRule();(new q).post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildRule:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!e)return;this.submitting=!1;let s={level:"success",text:"Rule is updated",show:!0,action:{show:!0,text:"Go to rule",link:{name:"rules.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var R=t(4260),k=t(4379),x=t(5607),C=t(2165),S=t(151),W=t(5589),Z=t(4842),y=t(5735),I=t(7518),Q=t.n(I);const M=(0,R.Z)(E,[["render",g]]),V=M;Q()(E,"components",{QPage:k.Z,QBanner:x.Z,QBtn:C.Z,QCard:S.Z,QCardSection:W.Z,QInput:Z.Z,QCheckbox:y.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8387],{8387:(e,s,t)=>{t.r(s),t.d(s,{default:()=>V});var r=t(9835),i=t(6970);const l={class:"row q-mx-md"},o={class:"col-12"},a={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Edit rule",-1),d={class:"row"},c={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},m={class:"col-12"},b={class:"row"},p={class:"col-12 text-right"},f={class:"row"},w={class:"col-12 text-right"};function g(e,s,t,g,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),R=(0,r.up)("q-card-section"),k=(0,r.up)("q-input"),x=(0,r.up)("q-card"),C=(0,r.up)("q-checkbox"),S=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(S,null,{default:(0,r.w5)((()=>[(0,r._)("div",l,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",n,[(0,r.Wm)(x,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(k,{"error-message":_.submissionErrors.title,error:_.hasSubmissionErrors.title,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.title,"onUpdate:modelValue":s[0]||(s[0]=e=>_.title=e),label:e.$t("form.title"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",m,[(0,r.Wm)(x,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",b,[(0,r._)("div",p,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitRule},null,8,["disable","onClick"])])]),(0,r._)("div",f,[(0,r._)("div",w,[(0,r.Wm)(C,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(9543),v=t(1569);class q{post(e,s){let t="/api/v1/rules/"+e;return v.api.put(t,s)}}const E={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,title:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectRule()},methods:{collectRule:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseRule(e)))},parseRule:function(e){this.title=e.data.data.attributes.title},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRule:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRule();(new q).post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildRule:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!e)return;this.submitting=!1;let s={level:"success",text:"Rule is updated",show:!0,action:{show:!0,text:"Go to rule",link:{name:"rules.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var R=t(1639),k=t(9885),x=t(7128),C=t(8879),S=t(4458),W=t(3190),Z=t(6611),y=t(1221),I=t(9984),Q=t.n(I);const M=(0,R.Z)(E,[["render",g]]),V=M;Q()(E,"components",{QPage:k.Z,QBanner:x.Z,QBtn:C.Z,QCard:S.Z,QCardSection:W.Z,QInput:Z.Z,QCheckbox:y.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8493],{8493:(t,e,a)=>{a.r(e),a.d(e,{default:()=>C});var n=a(9835);const s={class:"row q-mx-md"},o={class:"col-12"},l=(0,n._)("div",{class:"text-h6"},"Export page",-1),r=(0,n._)("p",null," Just to see if this works. Button defaults to this year. ",-1),c=(0,n.Uk)("Download transactions");function d(t,e,a,d,i,u){const p=(0,n.up)("q-card-section"),f=(0,n.up)("q-btn"),w=(0,n.up)("q-card"),m=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(m,null,{default:(0,n.w5)((()=>[(0,n._)("div",s,[(0,n._)("div",o,[(0,n.Wm)(w,{bordered:""},{default:(0,n.w5)((()=>[(0,n.Wm)(p,null,{default:(0,n.w5)((()=>[l])),_:1}),(0,n.Wm)(p,null,{default:(0,n.w5)((()=>[r])),_:1}),(0,n.Wm)(p,null,{default:(0,n.w5)((()=>[(0,n._)("p",null,[(0,n.Wm)(f,{onClick:u.downloadTransactions},{default:(0,n.w5)((()=>[c])),_:1},8,["onClick"])])])),_:1})])),_:1})])])])),_:1})}a(702),a(4641),a(3269);var i=a(1569);class u{transactions(t,e){let a="/api/v1/data/export/transactions";return i.api.get(a,{params:{start:t,end:e}})}}var p=a(444),f=a(9771),w=a(8898);const m={name:"Index",methods:{downloadTransactions:function(){let t=new u,e=(0,w.Z)((0,p.Z)(new Date),"yyyy-MM-dd"),a=(0,w.Z)((0,f.Z)(new Date),"yyyy-MM-dd");t.transactions(e,a).then((t=>{let e="export-transactions.csv";const a=new Blob([t.data],{type:"application/octet-stream"}),n=document.createElement("a");n.href=URL.createObjectURL(a),n.download=e,n.click(),URL.revokeObjectURL(n.href)}))}}};var _=a(1639),y=a(9885),h=a(4458),k=a(3190),v=a(8879),Z=a(9984),b=a.n(Z);const x=(0,_.Z)(m,[["render",d]]),C=x;b()(m,"components",{QPage:y.Z,QCard:h.Z,QCardSection:k.Z,QBtn:v.Z})}}]);

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8611],{8611:(s,e,t)=>{t.r(e),t.d(e,{default:()=>$});var r=t(9835),a=t(6970);const i={class:"row q-mx-md"},o={class:"col-12"},n={class:"row q-mx-md q-mt-md"},l={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Edit account",-1),c={class:"row"},d={class:"col-12 q-mb-xs"},m={class:"row"},b={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},p={class:"col-12"},f={class:"row"},g={class:"col-12 text-right"},w={class:"row"},X={class:"col-12 text-right"};function _(s,e,t,_,v,E){const q=(0,r.up)("q-btn"),x=(0,r.up)("q-banner"),k=(0,r.up)("q-card-section"),C=(0,r.up)("q-input"),y=(0,r.up)("q-card"),A=(0,r.up)("q-checkbox"),I=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(I,null,{default:(0,r.w5)((()=>[(0,r._)("div",i,[(0,r._)("div",o,[""!==v.errorMessage?((0,r.wg)(),(0,r.j4)(x,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:E.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,a.zw)(v.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",n,[(0,r._)("div",l,[(0,r.Wm)(y,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",c,[(0,r._)("div",d,[(0,r.Wm)(C,{"error-message":v.submissionErrors.name,error:v.hasSubmissionErrors.name,"bottom-slots":"",disable:E.disabledInput,type:"text",clearable:"",modelValue:v.name,"onUpdate:modelValue":e[0]||(e[0]=s=>v.name=s),label:s.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])]),(0,r._)("div",m,[(0,r._)("div",b,[(0,r.Wm)(C,{"error-message":v.submissionErrors.iban,error:v.hasSubmissionErrors.iban,mask:"AA## XXXX XXXX XXXX XXXX XXXX XXXX XXXX XX","bottom-slots":"",disable:E.disabledInput,type:"text",clearable:"",modelValue:v.iban,"onUpdate:modelValue":e[1]||(e[1]=s=>v.iban=s),label:s.$t("form.iban"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",p,[(0,r.Wm)(y,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",f,[(0,r._)("div",g,[(0,r.Wm)(q,{disable:E.disabledInput,color:"primary",label:"Update",onClick:E.submitAccount},null,8,["disable","onClick"])])]),(0,r._)("div",w,[(0,r._)("div",X,[(0,r.Wm)(A,{disable:E.disabledInput,modelValue:v.doReturnHere,"onUpdate:modelValue":e[2]||(e[2]=s=>v.doReturnHere=s),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var v=t(160),E=t(1569);class q{post(s,e){let t="/api/v1/accounts/"+s;return E.api.put(t,e)}}const x={name:"Edit",data(){return{tab:"split-0",submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",id:0,name:"",iban:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectAccount()},methods:{collectAccount:function(){let s=new v.Z;s.get(this.id).then((s=>this.parseAccount(s)))},parseAccount:function(s){this.name=s.data.data.attributes.name,this.iban=s.data.data.attributes.iban},resetErrors:function(){this.submissionErrors={name:"",iban:""},this.hasSubmissionErrors={name:!1,iban:!1}},submitAccount:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const s=this.buildAccount();let e=new q;e.post(this.id,s).catch(this.processErrors).then(this.processSuccess)},buildAccount:function(){let s={name:this.name,iban:this.iban};return s},dismissBanner:function(){this.errorMessage=""},processSuccess:function(s){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!s)return;this.submitting=!1;let e={level:"success",text:"TODO I am updated lol",show:!0,action:{show:!0,text:"Go to account",link:{name:"accounts.show",params:{id:parseInt(s.data.data.id)}}}};this.$q.localStorage.set("flash",e),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(s){if(s.response){let e=s.response.data;this.errorMessage=e.message,console.log(e);for(let s in e.errors)e.errors.hasOwnProperty(s)&&(this.submissionErrors[s]=e.errors[s][0],this.hasSubmissionErrors[s]=!0)}this.submitting=!1}}};var k=t(1639),C=t(9885),y=t(7128),A=t(8879),I=t(4458),S=t(3190),W=t(6611),V=t(1221),Z=t(9984),Q=t.n(Z);const R=(0,k.Z)(x,[["render",_]]),$=R;Q()(x,"components",{QPage:C.Z,QBanner:y.Z,QBtn:A.Z,QCard:I.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:V.Z})}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[5389],{5389:(e,s,t)=>{t.r(s),t.d(s,{default:()=>V});var r=t(3673),a=t(2323);const i={class:"row q-mx-md"},o={class:"col-12"},n={class:"row q-mx-md q-mt-md"},l={class:"col-12"},d=(0,r._)("div",{class:"text-h6"},"Edit category",-1),u={class:"row"},c={class:"col-12 q-mb-xs"},m={class:"row q-mx-md"},h={class:"col-12"},p={class:"row"},b={class:"col-12 text-right"},g={class:"row"},f={class:"col-12 text-right"};function w(e,s,t,w,_,v){const y=(0,r.up)("q-btn"),C=(0,r.up)("q-banner"),q=(0,r.up)("q-card-section"),E=(0,r.up)("q-input"),k=(0,r.up)("q-card"),x=(0,r.up)("q-checkbox"),S=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(S,null,{default:(0,r.w5)((()=>[(0,r._)("div",i,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(C,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(y,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,a.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",n,[(0,r._)("div",l,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[d])),_:1}),(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",c,[(0,r.Wm)(E,{"error-message":_.submissionErrors.name,error:_.hasSubmissionErrors.name,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.name,"onUpdate:modelValue":s[0]||(s[0]=e=>_.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",m,[(0,r._)("div",h,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[(0,r._)("div",p,[(0,r._)("div",b,[(0,r.Wm)(y,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitCategory},null,8,["disable","onClick"])])]),(0,r._)("div",g,[(0,r._)("div",f,[(0,r.Wm)(x,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(3386),v=t(5474);class y{post(e,s){let t="/api/v1/categories/"+e;return v.api.put(t,s)}}const C={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",id:0,name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectCategory()},methods:{collectCategory:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseCategory(e)))},parseCategory:function(e){this.name=e.data.data.attributes.name},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitCategory:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildCategory();let s=new y;s.post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildCategory:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!e)return;this.submitting=!1;let s={level:"success",text:"Category is updated",show:!0,action:{show:!0,text:"Go to category",link:{name:"categories.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var q=t(4260),E=t(4379),k=t(5607),x=t(2165),S=t(151),W=t(5589),Z=t(4842),I=t(5735),Q=t(7518),R=t.n(Q);const M=(0,q.Z)(C,[["render",w]]),V=M;R()(C,"components",{QPage:E.Z,QBanner:k.Z,QBtn:x.Z,QCard:S.Z,QCardSection:W.Z,QInput:Z.Z,QCheckbox:I.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8907],{8907:(e,s,t)=>{t.r(s),t.d(s,{default:()=>V});var r=t(9835),a=t(6970);const i={class:"row q-mx-md"},o={class:"col-12"},n={class:"row q-mx-md q-mt-md"},l={class:"col-12"},d=(0,r._)("div",{class:"text-h6"},"Edit category",-1),u={class:"row"},c={class:"col-12 q-mb-xs"},m={class:"row q-mx-md"},h={class:"col-12"},p={class:"row"},b={class:"col-12 text-right"},g={class:"row"},f={class:"col-12 text-right"};function w(e,s,t,w,_,v){const y=(0,r.up)("q-btn"),C=(0,r.up)("q-banner"),q=(0,r.up)("q-card-section"),E=(0,r.up)("q-input"),k=(0,r.up)("q-card"),x=(0,r.up)("q-checkbox"),S=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(S,null,{default:(0,r.w5)((()=>[(0,r._)("div",i,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(C,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(y,{flat:"",onClick:v.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,a.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",n,[(0,r._)("div",l,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[d])),_:1}),(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",c,[(0,r.Wm)(E,{"error-message":_.submissionErrors.name,error:_.hasSubmissionErrors.name,"bottom-slots":"",disable:v.disabledInput,type:"text",clearable:"",modelValue:_.name,"onUpdate:modelValue":s[0]||(s[0]=e=>_.name=e),label:e.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",m,[(0,r._)("div",h,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[(0,r._)("div",p,[(0,r._)("div",b,[(0,r.Wm)(y,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitCategory},null,8,["disable","onClick"])])]),(0,r._)("div",g,[(0,r._)("div",f,[(0,r.Wm)(x,{disable:v.disabledInput,modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(4255),v=t(1569);class y{post(e,s){let t="/api/v1/categories/"+e;return v.api.put(t,s)}}const C={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",id:0,name:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectCategory()},methods:{collectCategory:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseCategory(e)))},parseCategory:function(e){this.name=e.data.data.attributes.name},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitCategory:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildCategory();let s=new y;s.post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildCategory:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!e)return;this.submitting=!1;let s={level:"success",text:"Category is updated",show:!0,action:{show:!0,text:"Go to category",link:{name:"categories.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var q=t(1639),E=t(9885),k=t(7128),x=t(8879),S=t(4458),W=t(3190),Z=t(6611),I=t(1221),Q=t(9984),R=t.n(Q);const M=(0,q.Z)(C,[["render",w]]),V=M;R()(C,"components",{QPage:E.Z,QBanner:k.Z,QBtn:x.Z,QCard:S.Z,QCardSection:W.Z,QInput:Z.Z,QCheckbox:I.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[8641],{8641:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var r=t(3673);const u=(0,r.Uk)(" Here be default report. ");function a(e,n,t,a,f,i){const l=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(l,null,{default:(0,r.w5)((()=>[u])),_:1})}const f={name:"Default"};var i=t(4260),l=t(4379),s=t(7518),c=t.n(s);const o=(0,i.Z)(f,[["render",a]]),p=o;c()(f,"components",{QPage:l.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[9009],{9009:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var r=t(9835);const u=(0,r.Uk)(" Here be default report. ");function a(e,n,t,a,f,i){const l=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(l,null,{default:(0,r.w5)((()=>[u])),_:1})}const f={name:"Default"};var i=t(1639),l=t(9885),s=t(9984),c=t.n(s);const o=(0,i.Z)(f,[["render",a]]),p=o;c()(f,"components",{QPage:l.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[902],{902:(s,e,t)=>{t.r(e),t.d(e,{default:()=>$});var r=t(3673),a=t(2323);const i={class:"row q-mx-md"},o={class:"col-12"},n={class:"row q-mx-md q-mt-md"},l={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Edit account",-1),c={class:"row"},d={class:"col-12 q-mb-xs"},m={class:"row"},b={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},p={class:"col-12"},f={class:"row"},g={class:"col-12 text-right"},w={class:"row"},X={class:"col-12 text-right"};function _(s,e,t,_,v,E){const q=(0,r.up)("q-btn"),x=(0,r.up)("q-banner"),k=(0,r.up)("q-card-section"),C=(0,r.up)("q-input"),y=(0,r.up)("q-card"),A=(0,r.up)("q-checkbox"),I=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(I,null,{default:(0,r.w5)((()=>[(0,r._)("div",i,[(0,r._)("div",o,[""!==v.errorMessage?((0,r.wg)(),(0,r.j4)(x,{key:0,"inline-actions":"",rounded:"",class:"bg-orange text-white"},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",onClick:E.dismissBanner,label:"Dismiss"},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,a.zw)(v.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",n,[(0,r._)("div",l,[(0,r.Wm)(y,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",c,[(0,r._)("div",d,[(0,r.Wm)(C,{"error-message":v.submissionErrors.name,error:v.hasSubmissionErrors.name,"bottom-slots":"",disable:E.disabledInput,type:"text",clearable:"",modelValue:v.name,"onUpdate:modelValue":e[0]||(e[0]=s=>v.name=s),label:s.$t("form.name"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])]),(0,r._)("div",m,[(0,r._)("div",b,[(0,r.Wm)(C,{"error-message":v.submissionErrors.iban,error:v.hasSubmissionErrors.iban,mask:"AA## XXXX XXXX XXXX XXXX XXXX XXXX XXXX XX","bottom-slots":"",disable:E.disabledInput,type:"text",clearable:"",modelValue:v.iban,"onUpdate:modelValue":e[1]||(e[1]=s=>v.iban=s),label:s.$t("form.iban"),outlined:""},null,8,["error-message","error","disable","modelValue","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",p,[(0,r.Wm)(y,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(k,null,{default:(0,r.w5)((()=>[(0,r._)("div",f,[(0,r._)("div",g,[(0,r.Wm)(q,{disable:E.disabledInput,color:"primary",label:"Update",onClick:E.submitAccount},null,8,["disable","onClick"])])]),(0,r._)("div",w,[(0,r._)("div",X,[(0,r.Wm)(A,{disable:E.disabledInput,modelValue:v.doReturnHere,"onUpdate:modelValue":e[2]||(e[2]=s=>v.doReturnHere=s),"left-label":"",label:"Return here"},null,8,["disable","modelValue"])])])])),_:1})])),_:1})])])])),_:1})}var v=t(1901),E=t(5474);class q{post(s,e){let t="/api/v1/accounts/"+s;return E.api.put(t,e)}}const x={name:"Edit",data(){return{tab:"split-0",submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",type:"",id:0,name:"",iban:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectAccount()},methods:{collectAccount:function(){let s=new v.Z;s.get(this.id).then((s=>this.parseAccount(s)))},parseAccount:function(s){this.name=s.data.data.attributes.name,this.iban=s.data.data.attributes.iban},resetErrors:function(){this.submissionErrors={name:"",iban:""},this.hasSubmissionErrors={name:!1,iban:!1}},submitAccount:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const s=this.buildAccount();let e=new q;e.post(this.id,s).catch(this.processErrors).then(this.processSuccess)},buildAccount:function(){let s={name:this.name,iban:this.iban};return s},dismissBanner:function(){this.errorMessage=""},processSuccess:function(s){if(this.$store.dispatch("fireflyiii/refreshCacheKey"),!s)return;this.submitting=!1;let e={level:"success",text:"TODO I am updated lol",show:!0,action:{show:!0,text:"Go to account",link:{name:"accounts.show",params:{id:parseInt(s.data.data.id)}}}};this.$q.localStorage.set("flash",e),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(s){if(s.response){let e=s.response.data;this.errorMessage=e.message,console.log(e);for(let s in e.errors)e.errors.hasOwnProperty(s)&&(this.submissionErrors[s]=e.errors[s][0],this.hasSubmissionErrors[s]=!0)}this.submitting=!1}}};var k=t(4260),C=t(4379),y=t(5607),A=t(2165),I=t(151),S=t(5589),W=t(4842),V=t(5735),Z=t(7518),Q=t.n(Z);const R=(0,k.Z)(x,[["render",_]]),$=R;Q()(x,"components",{QPage:C.Z,QBanner:y.Z,QBtn:A.Z,QCard:I.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:V.Z})}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2260],{2260:(e,a,t)=>{t.r(a),t.d(a,{default:()=>C});var s=t(3673),r=t(2323);const n={class:"row q-mx-md"},o={class:"col-12"},i={class:"text-h6"},g={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,s._)("br",null,null,-1),c={class:"row q-mt-sm"},d={class:"col-12"};function w(e,a,t,w,p,h){const m=(0,s.up)("q-card-section"),f=(0,s.up)("q-card"),b=(0,s.up)("LargeTable"),_=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(_,null,{default:(0,s.w5)((()=>[(0,s._)("div",n,[(0,s._)("div",o,[(0,s.Wm)(f,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[(0,s._)("div",i,(0,r.zw)(p.tag.tag),1)])),_:1}),(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[(0,s._)("div",g,[(0,s._)("div",l,[(0,s.Uk)(" Tag: "+(0,r.zw)(p.tag.tag),1),u])])])),_:1})])),_:1})])]),(0,s._)("div",c,[(0,s._)("div",d,[(0,s.Wm)(b,{ref:"table",title:"Transactions",rows:p.rows,loading:e.loading,onOnRequest:h.onRequest,"rows-number":p.rowsNumber,"rows-per-page":p.rowsPerPage,page:p.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var p=t(5474);class h{get(e){let a="/api/v1/tags/"+e;return p.api.get(a)}transactions(e,a,t){let s="/api/v1/tags/"+e+"/transactions";return p.api.get(s,{params:{page:a,cache:t}})}}var m=t(9695),f=t(4682);const b={name:"Show",data(){return{tag:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getTag()},mounted(){},components:{LargeTable:m.Z},methods:{onRequest:function(e){this.page=e.page,this.getTag()},getTag:function(){let e=new h;e.get(this.id).then((e=>this.parseTag(e))),this.loading=!0;const a=new f.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let t=a.parseResponse(e);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseTag:function(e){this.tag={tag:e.data.data.attributes.tag}}}};var _=t(4260),v=t(4379),q=t(151),P=t(5589),T=t(7518),Z=t.n(T);const k=(0,_.Z)(b,[["render",w]]),C=k;Z()(b,"components",{QPage:v.Z,QCard:q.Z,QCardSection:P.Z})}}]);
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[9069],{9069:(e,a,t)=>{t.r(a),t.d(a,{default:()=>C});var s=t(9835),r=t(6970);const n={class:"row q-mx-md"},o={class:"col-12"},i={class:"text-h6"},g={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,s._)("br",null,null,-1),c={class:"row q-mt-sm"},d={class:"col-12"};function w(e,a,t,w,p,h){const m=(0,s.up)("q-card-section"),f=(0,s.up)("q-card"),b=(0,s.up)("LargeTable"),_=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(_,null,{default:(0,s.w5)((()=>[(0,s._)("div",n,[(0,s._)("div",o,[(0,s.Wm)(f,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[(0,s._)("div",i,(0,r.zw)(p.tag.tag),1)])),_:1}),(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[(0,s._)("div",g,[(0,s._)("div",l,[(0,s.Uk)(" Tag: "+(0,r.zw)(p.tag.tag),1),u])])])),_:1})])),_:1})])]),(0,s._)("div",c,[(0,s._)("div",d,[(0,s.Wm)(b,{ref:"table",title:"Transactions",rows:p.rows,loading:e.loading,onOnRequest:h.onRequest,"rows-number":p.rowsNumber,"rows-per-page":p.rowsPerPage,page:p.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var p=t(1569);class h{get(e){let a="/api/v1/tags/"+e;return p.api.get(a)}transactions(e,a,t){let s="/api/v1/tags/"+e+"/transactions";return p.api.get(s,{params:{page:a,cache:t}})}}var m=t(8925),f=t(3247);const b={name:"Show",data(){return{tag:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getTag()},mounted(){},components:{LargeTable:m.Z},methods:{onRequest:function(e){this.page=e.page,this.getTag()},getTag:function(){let e=new h;e.get(this.id).then((e=>this.parseTag(e))),this.loading=!0;const a=new f.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let t=a.parseResponse(e);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseTag:function(e){this.tag={tag:e.data.data.attributes.tag}}}};var _=t(1639),v=t(9885),q=t(4458),P=t(3190),T=t(9984),Z=t.n(T);const k=(0,_.Z)(b,[["render",w]]),C=k;Z()(b,"components",{QPage:v.Z,QCard:q.Z,QCardSection:P.Z})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More