grocy/views
zebardy 1a5f3ce926
Convert services to singletons and use lazy loading to improve performance (#479)
* use singletons to reduce need to recreate the same objects

* unable to make the constructor private

* comment out debug printing to log file

* correct typo of treating self() as a var instead of a function

* utilise Localisation service as a singleton

* fix errent line that should have been commented

* remove phpinfo

* correct mistake in stock controller

* try storing app in apcu

* serialise inside the app closures

* get timings for db-changed-time

* get timings for db-changed-time

* store localisation service in apcu

* stor translations in apcu instead of localisation service (due to database connection)

* correct syntax error

* forgot to uncomment instance map

* correct indentation and variable out of scope

* more timings for app execution time

* try apc caching for views

* correct scope for Pot variable

* remove additional fopen

* correct timings for app build time

* correct timings for app object build time

* correct timings for app route build time

* get timings for routing timings

* get more in depth timings for routing loading

* fix more in depth timings for routing loading

* start investigating session auth middleware creation

* start investigating session auth middleware creation

* start investigating Login controller time

* start investigating Login controller time

* in depth look at Logincontroller timings

* comment out debug printing

* lazily obtain valus for page rendering

* correct syntax error

* correct scope of variable

* correct visibiity of methds inherited from BaseController

* missing use for Userfieldsservice

* lazy loading of open api spec

* lazy loading of users service

* lazy loading of batteries service

* lazy loading of services in controllers

* lazy loading of services in services

* correct mistake

* fix userservice

* fix userservice

* fix userfieldservice

* fix chores service

* fix calendar service

* remove Dockerfile used for development

* Remove docker compose file used for development

* Clean up app.php

* remove last diff

* Clean up base controller

* Clean up controllers

* lean up middleware

* Clean up and tuen all services into singletons

* remove debug from routes.php

* remove acpu from localisation

* Complete removal of acpu from localisation

* fixes for things broken

* More fixes following merge

* Fix for start up bug. Re factoring singleton code had brroken due to scope of clas var.

* fix bug where getUsersService is declared twice

* bug fixes following merge

* bug fixes following merge

* bug fixes following merge

* bug fixes following merge

* bug fixes following merge

* Fix all the not working things...

* Deleted off-topic files

* Deleted off-topic files

Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2020-03-01 17:47:47 +01:00
..
components Fixed contextual time ago display was missing (references #513) 2020-02-02 17:55:35 +01:00
layout Don't crash when @stack['componentScripts'] is empty and properly format the output 2020-02-10 21:20:21 +01:00
about.blade.php Added a say-thanks-button on the about page 2019-09-20 10:08:10 +02:00
barcodescannertesting.blade.php Fixed the "Shopping list to stock workflow" with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING (fixes #537) 2020-02-02 13:01:31 +01:00
batteries.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
batteriesjournal.blade.php Squashed commit 2020-01-27 19:00:49 +01:00
batteriesoverview.blade.php Fixed the "Shopping list to stock workflow" with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING (fixes #537) 2020-02-02 13:01:31 +01:00
batteriessettings.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
batteryform.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
batterytracking.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
calendar.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
choreform.blade.php Added a chore period type "yearly" (closes #407) 2019-10-04 11:24:51 +02:00
chores.blade.php Finished migration to use gettext (this now closes #161) 2019-05-02 20:20:18 +02:00
choresjournal.blade.php Squashed commit 2020-01-27 19:00:49 +01:00
choresoverview.blade.php Fixed the "Shopping list to stock workflow" with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING (fixes #537) 2020-02-02 13:01:31 +01:00
choressettings.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
choretracking.blade.php Added a sub feature flag to disable chore assignments when not needed 2019-09-26 17:20:25 +02:00
consume.blade.php Convert services to singletons and use lazy loading to improve performance (#479) 2020-03-01 17:47:47 +01:00
equipment.blade.php Added a compact view for shopping list (for mobile shopping) (closes #453) 2020-01-24 22:05:08 +01:00
equipmentform.blade.php Use the summernote editor for product description (closes #288) 2019-08-15 14:35:28 +02:00
inventory.blade.php Fixed location_id handling when FEATURE_FLAG_STOCK_LOCATION_TRACKING is disabled (fixes #532) 2020-01-31 21:27:51 +01:00
locationcontentsheet.blade.php Use properly formatted numbers "everywhere" (partly references #389) 2019-09-26 15:25:30 +02:00
locationform.blade.php Implement "Free products" (closes #426) 2020-01-26 20:01:30 +01:00
locations.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
login.blade.php Added more product actions on the stock overview page (closes #327) 2019-09-20 13:37:53 +02:00
manageapikeys.blade.php Fixed the "Shopping list to stock workflow" with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING (fixes #537) 2020-02-02 13:01:31 +01:00
mealplan.blade.php Added a new setting to be able to start the meal plan on a different weekday (closes #429) 2020-01-25 20:01:40 +01:00
openapiui.blade.php Small Swagger UI refinements 2019-09-19 19:59:17 +02:00
productform.blade.php Changed some localization strings 2020-01-26 20:13:15 +01:00
productgroupform.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
productgroups.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
products.blade.php Use properly formatted numbers "everywhere" (partly references #389) 2019-09-26 15:25:30 +02:00
purchase.blade.php We don't need that switch-button, a native Boostrap button is enough and less disturbing 2020-02-03 21:21:42 +01:00
quantityunitconversionform.blade.php Properly show qu plural forms on the product or qu conversion edit page 2019-09-20 10:30:46 +02:00
quantityunitform.blade.php Only show the "Test plural forms"-button on the qu edit page when the current language requires more than 2 plural forms (references #261) 2019-09-20 10:33:44 +02:00
quantityunitpluraltesting.blade.php Fixed the "Shopping list to stock workflow" with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING (fixes #537) 2020-02-02 13:01:31 +01:00
quantityunits.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
recipeform.blade.php Annotate variable ingredient amounts (closes #530) 2020-02-02 17:26:32 +01:00
recipeposform.blade.php Optimized recipeposform input ordering (closes #533) 2020-02-01 08:59:37 +01:00
recipes.blade.php Make product card recipe ingredient indentation dynamic (references #556) 2020-02-10 19:30:49 +01:00
recipessettings.blade.php Changelog, small changes and added missing localization strings for #556 2020-02-10 18:24:15 +01:00
shoppinglist.blade.php Fixed the "Shopping list to stock workflow" with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING (fixes #537) 2020-02-02 13:01:31 +01:00
shoppinglistform.blade.php Added a notes field to shopping lists (references #245) 2019-09-20 18:08:38 +02:00
shoppinglistitemform.blade.php Added a new sub feature flag FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS 2019-10-05 13:10:56 +02:00
shoppinglistsettings.blade.php Little changes for #551 2020-02-09 15:36:03 +01:00
stockentries.blade.php Fixed the "Shopping list to stock workflow" with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING (fixes #537) 2020-02-02 13:01:31 +01:00
stockentryform.blade.php Rename /stockedit and /stockdetail to match the "naming conventions" (references #421) 2020-01-27 19:19:09 +01:00
stockjournal.blade.php Squashed commit 2020-01-27 19:00:49 +01:00
stockoverview.blade.php Fixed the "Shopping list to stock workflow" with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING (fixes #537) 2020-02-02 13:01:31 +01:00
stocksettings.blade.php Added an option to hide the calendar on the shopping list (closes #531) 2020-02-01 12:55:12 +01:00
taskcategories.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
taskcategoryform.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
taskform.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
tasks.blade.php Fixed the "Shopping list to stock workflow" with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING (fixes #537) 2020-02-02 13:01:31 +01:00
taskssettings.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
transfer.blade.php Implement "Free products" (closes #426) 2020-01-26 20:01:30 +01:00
userentities.blade.php Just name it "fields" not "userfields" for custom objects (references #242) 2019-09-18 16:25:38 +02:00
userentityform.blade.php Implement custom entities / objects (closes #242) 2019-09-18 16:18:15 +02:00
userfieldform.blade.php Added a new userfield type "preset-list" (closes #239) 2019-05-07 21:24:59 +02:00
userfields.blade.php Finished migration to use gettext (this now closes #161) 2019-05-02 20:20:18 +02:00
userform.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
userobjectform.blade.php Implement custom entities / objects (closes #242) 2019-09-18 16:18:15 +02:00
userobjects.blade.php Userobjects list page print optimizations (closes #396) 2019-09-27 13:23:10 +02:00
users.blade.php Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00