Michael
aacaa3c2cf
Log the command, not the module
2022-05-17 21:25:01 +00:00
Michael
4016a576d5
Log the execution time
2022-05-17 20:47:23 +00:00
atjn
31ed9b450d
Update default icon
2022-04-28 12:41:26 +02:00
Michael
4a22034be6
Unified output via the "httpExit" function
2022-04-10 08:31:55 +00:00
Philipp Holzer
0e45f22b06
optimizations
2022-01-04 20:59:29 +01:00
Philipp Holzer
c7f2ba213b
Fix OPTIONS
2022-01-04 20:59:25 +01:00
Philipp Holzer
eaad220738
Add explicit status setting for PSR/ResponseInterface & add tests for OPTIONS endpoint
2022-01-04 20:59:25 +01:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
...
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Michael
7218d6e171
Fix the performance calculation for the content
2021-12-09 13:04:51 +00:00
Philipp Holzer
e4000155f3
Fix Page Header usage
2021-11-27 12:40:58 +01:00
Philipp Holzer
7cd85873ee
Replace IRespondToRequests with PSR-7 ResponseInterface
2021-11-27 12:40:57 +01:00
Philipp Holzer
537b74f307
Inherit ApiResponse
from Response
2021-11-27 12:40:54 +01:00
Philipp Holzer
561aba18e3
Introduce Response
for Modules to create a testable way for module responses
2021-11-27 12:40:38 +01:00
Philipp Holzer
8bdd90066f
Make BaseModule
a real entity
...
- Add all dependencies, necessary to run the content (baseUrl, Arguments)
- Encapsulate all POST/GET/DELETE/PATCH/PUT methods as protected methods inside the BaseModule
- Return Module content ONLY per `BaseModule::run()` (including the Hook logic there as well)
2021-11-27 12:40:36 +01:00
Philipp Holzer
b5d2d32b44
Split and delete ModuleController
...
- $moduleName is part of the argument string => App\Arguments
- $isBackend boolean already part of App\Mode::isBackend()
- $module is now the direct return of App\Router::getModule()
- ModuleController::run() moved to BaseModule::run()
2021-11-27 12:39:45 +01:00
Philipp Holzer
de6bb280b1
Hotfix: Deleted content
2021-11-17 13:39:48 +01:00
Philipp Holzer
c95d47b0b4
Refactor App\Module to App\ModuleController and rename properties
2021-11-16 22:40:39 +01:00
Philipp Holzer
8f741c8b78
Remove afterpost() handling
2021-11-16 22:40:38 +01:00
Philipp
85304b6e8f
Update src/App/Page.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-16 21:12:12 +01:00
Philipp Holzer
489cd0884a
Make BaseModule methods dynamic
2021-11-14 23:49:06 +01:00
Philipp Holzer
714f0febc4
Replace $parameters
argument per method with static::$parameters
2021-11-14 23:49:05 +01:00
Philipp Holzer
018275919c
Create interface for static Module calls
2021-11-14 23:30:04 +01:00
Michael
63da4a75e9
The boot.php had been cleared of most functions
2021-11-04 20:29:59 +00:00
Philipp Holzer
58eea1adaa
Cleanup namespaces
2021-10-26 22:11:10 +02:00
Philipp Holzer
b216317477
Refactoring Core class structures ...
2021-10-26 22:11:09 +02:00
Michael
15b93b4459
"getUserNickname" is now "getLoggedInUserNickname"
2021-08-09 19:48:39 +00:00
Michael
b8fa75b2dd
Changed function name
2021-08-09 15:29:07 +00:00
Michael
fc283ab928
Remove direct calls to App->user
2021-08-08 10:14:56 +00:00
Michael
2502a9192d
Many more app-variables removed
2021-07-24 10:09:39 +00:00
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
Hypolite Petovan
6b0df74ed7
Add blocking author from an item context feature
2021-01-23 05:30:03 -05:00
Michael
5fb83d0632
Improved performance profiler
2020-12-09 22:10:27 +00:00
Vinzenz Vietzke
b830c42ec1
Add link to 512px icon, fix missing link
2020-10-03 20:25:10 +02:00
Hypolite Petovan
2e286d6a57
Move calendar/event stylesheets/scripts registration to modules
...
- Add media parameter to Page->registerStylesheet
- Fixes CSS precedence with custom theme stylesheet
2020-08-15 18:56:17 -04:00
Hypolite Petovan
cb03418937
Add checks for $a->user existence
...
- Variable can be empty/null in many cases
2020-07-09 15:09:07 -04:00
nupplaPhil
9eca2c98ed
Add license to src\App namespace
2020-02-08 20:42:47 +01:00
Hypolite Petovan
42990ac0f4
Append version parameter to script and stylesheets paths in App\Page
2020-01-31 19:41:20 -05:00
Philipp Holzer
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone
2020-01-19 22:23:44 +01:00
Philipp Holzer
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone
2020-01-19 21:29:36 +01:00
Philipp Holzer
2838635d64
Move L10n class from L10n subdir to Core (replacing old wrapper)
2020-01-19 16:31:30 +01:00
Philipp Holzer
c1dbb25656
Creating interfaces for Config/PConfig & fix tests
2019-12-29 20:18:19 +01:00
Hypolite Petovan
25194b58b8
Initialize class members in App\Page
...
- Addresses https://github.com/friendica/friendica/issues/7676#issuecomment-559680658
2019-11-29 11:33:48 -05:00
Hypolite Petovan
440d3eb9c4
Simplify Theme::getPathForfile to expand its uses
2019-11-28 12:27:16 -05:00
Hypolite Petovan
134d6d18f9
Pass Router parameter to module content method
2019-11-06 22:35:28 -05:00
Michael
bd62d548db
Added parameters
2019-11-05 20:22:54 +00:00
Hypolite Petovan
4a5dfefacc
Move theme determination after full module run
2019-10-06 11:18:51 -04:00
Philipp Holzer
90b438e082
Move mode settings to App\Mode
...
- Move isAjax() to App\Mode
- Move isTablet() to App\Mode
- Move isMobile() to App\Mode
- Refactor last usage of App->isBackend()
2019-08-17 09:09:13 +02:00
Philipp Holzer
30b69f1fc4
some fixings
2019-08-15 20:58:57 +02:00
Philipp Holzer
9f68e6b589
Add Page class for Frontend
...
- Move frontend logic (stylesheet, footerscript, content) to Page class
2019-08-15 20:52:42 +02:00