grocy/controllers
Katharina Bogad f7bc6a3f6d Modernize Javascript
This *absolute commit monster* does the following things:

- Introduce gulp to build javascript and css files.

  This includes moving node_modules out of the public/ folder.
  Use `gulp --tasks` to get a list of all tasks; however some
  of them are automatically generated.

  Use `gulp live` to watch for changes and automatically recompile
  what's needed.

- Upgrade to yarn2
- Upgrade FullCalendar to 4.4.2

  I know that 5.x is the current version, but two major version upgrades
  are too much right now. Also v5 would break any custom css as they
  renamed a bunch of classes.

- Move Styles to sass

  (Most) global styles are now included in one sass file. This also
  means that we now compile our own bootstrap.

- Javascript is now in strict mode

  Because everything is a module now, `use strict` is now in effect
  for all javascript files. There are probably still some parts left
  where implicit variable declarations were used.

- grocy*.js were split up in modules.

  `window.Grocy` is now an instance of GrocyClass. API-wise nothing
  has changed (albeit some functions were added regarding Undo actions)
  At the Moment, this leaks a whole bunch of functions into window
  (that was easier than tracking those down).

- FindObjectIn... style functions were removed.

  Array.prototype.find and Array.prototype.filter suffice.

- Use babel to preprocess javascript.
- Use rollup to bundle javascript.

  rollup bundles and tree-shakes es6 javascript bundles.
  It also allows to "import" css files and generate css
  files specific to this javascript file. This is used
  in viewjs scripts, for example when importing FullCalendar,
  to generate an associated viewcss file.

- Use postcss to post-process css files.

  postcss uses autoprefixer to handle browser compatiblity.
  Internally this uses the package `browserslist`; and is currently
  configured to the default setting.

- Minify assets when building in production

  `gulp publish` builds all assets in production mode, that is,
  the assets get minified. This includes javascript as well as
  css files.

- css bundling

  concatCss is used to pull @imports of non-sass-files into one
  grocy.css

- animate.css is now in the main bundle

  animate.css was used in so many places that it is now located
  in the main style bundle.
2021-06-18 12:44:39 +02:00
..
Users Squashed commit 2020-12-07 19:48:33 +01:00
BaseApiController.php Fixed API equals/not equals filter comparison (fixes #1182) 2020-12-16 21:52:24 +01:00
BaseController.php Set HTMLPurifier cache path (fixes #1497) 2021-06-12 20:56:58 +02:00
BatteriesApiController.php Sanitize user input on all API routes (references #996) 2020-10-14 22:49:29 +02:00
BatteriesController.php Make it possible to hide chores/batteries (closes #1069) 2020-12-20 10:19:44 +01:00
CalendarApiController.php Applied PHP-CS-Fixer rules 2020-09-01 21:29:47 +02:00
CalendarController.php Applied PHP formatting rules 2020-08-31 20:40:31 +02:00
ChoresApiController.php Fixed constant typo (fixes #1260) 2021-01-06 09:31:36 +01:00
ChoresController.php Make it possible to hide chores/batteries (closes #1069) 2020-12-20 10:19:44 +01:00
EquipmentController.php Squashed commit 2020-11-17 19:11:02 +01:00
ExceptionController.php Fixed database migration error handling 2020-12-20 16:52:13 +01:00
FilesApiController.php Applied PHP-CS-Fixer rules 2020-09-01 21:29:47 +02:00
GenericEntityApiController.php Fixed API key deletion was not possible (fixes #1203) 2020-12-21 16:20:12 +01:00
GenericEntityController.php Squashed commit 2020-11-17 19:11:02 +01:00
LoginController.php More authentication refactoring to also provide "plugable" credentials handling (references #921, needed for #305) 2020-10-19 18:38:12 +02:00
OpenApiController.php Fixed API key deletion was not possible (fixes #1203) 2020-12-21 16:20:12 +01:00
RecipesApiController.php Sanitize user input on all API routes (references #996) 2020-10-14 22:49:29 +02:00
RecipesController.php Typo 2021-01-03 22:42:16 +01:00
StockApiController.php Fixed client side webhook runner (references #1500) 2021-06-13 08:40:16 +02:00
StockController.php Fixed stock entry grocycode download (references #1500) 2021-06-12 20:15:48 +02:00
SystemApiController.php Modernize Javascript 2021-06-18 12:44:39 +02:00
SystemController.php Applied PHP-CS-Fixer rules 2020-09-01 21:29:47 +02:00
TasksApiController.php Sanitize user input on all API routes (references #996) 2020-10-14 22:49:29 +02:00
TasksController.php Squashed commit 2020-11-17 19:11:02 +01:00
UsersApiController.php Implemented user pictures (closes #1158) 2020-12-20 22:08:50 +01:00
UsersController.php Implemented Userfields for users (closes #1159) 2020-12-20 22:16:58 +01:00