bf8e7f3393
Started addition of favourite system
2021-05-16 00:29:56 +01:00
9e7bcacf8c
Moved NotifyException render work from handler to exception
...
As continued from last commit.
2021-05-08 19:00:09 +01:00
7be7d7d1e7
Updated not-found image path handling to have better ux
...
Added test to cover.
Started refactoring some of the app error handling in
the process of this.
Fixes #2696
2021-05-08 18:49:58 +01:00
4cbd1a9eb5
Extend /users API endpoint
...
* add /users/{id} to get a single user
* add variable to print fields that are otherwise hidden (e.g. email)
2021-05-06 11:20:08 +02:00
07626669da
Test API Endpoint for users
2021-05-05 14:16:15 +02:00
43b6633183
Filtered scripts in custom HTML head for exports
...
Since it appeared to cause problems in some scenarios.
Related to #2490
2021-05-03 23:59:52 +01:00
5c9c1d1a4b
Updated shelf sort to allow default sort, added testing
...
Done during review of #2515
2021-03-21 23:06:15 +00:00
ab4c5a55b8
Merge branch 'feature/sort-shelf-books' of git://github.com/guillaumehanotel/BookStack into guillaumehanotel-feature/sort-shelf-books
2021-03-21 21:52:39 +00:00
06706a2d9c
Added user filter to audit log
...
Included testing to cover.
Closes #2472
2021-03-21 15:04:32 +00:00
691db40a33
Added login/register theme events
2021-03-19 21:54:50 +00:00
2ae89f2c32
Added the possibility of social provider extension via theme
...
Also started docs page
2021-03-19 16:22:47 +00:00
9d37af9453
Added web-middleware based theme events
2021-03-17 12:56:56 +00:00
c1f67372a7
Merge branch 'master' of git://github.com/webfoersterei/BookStack into webfoersterei-master
2021-03-14 22:55:30 +00:00
da929d5edc
Updates search to use user slugs
2021-03-10 22:51:18 +00:00
124c4d0778
Updated register paths to include user slugs
2021-03-10 22:37:53 +00:00
19d79b6a0f
Started rolling out user slugs to model and core controllers
2021-03-09 23:06:12 +00:00
98a1e57ba9
Ran phpcbf and updated phpcs.xml
2021-03-07 22:24:05 +00:00
1f2fd58e28
Merge branch 'master' of git://github.com/Ereza/BookStack into Ereza-master
2021-03-07 17:25:07 +00:00
d731a4f695
Updated language lists with Bosnian, Indonesian, Latvian & Portuguese
2021-03-07 17:02:28 +00:00
745d15d200
Allow uploads of files containing dots in filename. Closes BookStackApp/BookStack#2217
2021-03-04 22:27:20 +01:00
b0f4500c34
Added env option for setting dark mode default
...
Also allowed config-centralised default user settings for this change
and bought existing user-level view options into that default settings
system to be cleaner in code usage.
For #2081
2021-02-07 23:12:05 +00:00
7893e8229f
Add Catalan translation
2021-02-04 00:55:01 +01:00
a7848b916b
Improve sorting Shelf Books
2021-01-31 04:28:25 +01:00
26ba056302
Sort Books within Shelves
2021-01-29 08:02:18 +01:00
99c42033b1
Add prev and next button to navigate through different pages
2021-01-27 10:15:28 +05:30
7ba6962707
Removed lesser-used middleware and updated localization middleware
...
So that DB/User access is not explicitly enforced.
Same for GlobalViewData middleware although that was also just doubling
up on ways to access user/auth info.
Also cleaned up Localization Middleware doc blocks.
2021-01-17 13:41:43 +00:00
6eda1c1fb2
Added status endpoint
...
For #2467
2021-01-17 13:21:57 +00:00
d0a7a8b890
Improved some query efficiencies on user list
2021-01-10 23:02:30 +00:00
14ea6c9de3
Made fixes/updates during pre-release review
...
- Fixed page editor default focus not working as expected due to
misnamed attribute.
- Added owned_by to relevant areas of the API including the docs.
- Made book relation on page accessible even if deleted since it could cause an issue on views, such as audit trail, when the relation is accessed when the book is deleted.
2021-01-03 22:29:58 +00:00
e53e4f85c7
Aligned norwegian lang with others and used correct locale
2021-01-02 15:58:23 +00:00
a04a800258
Merge branch 'master' of git://github.com/Swoy/BookStack into Swoy-master
2021-01-02 15:45:18 +00:00
92922288dd
Added iframe CSP, improved session cookie security
...
Added iframe CSP headers with configuration via .env.
Updated session cookies to be lax by default, dynamically changing to
none when iframes configured to allow third-party control.
Updated cookie security to be auto-secure if a https APP_URL is set.
Related to #2427 and #2207 .
2021-01-02 02:43:50 +00:00
588fd7d165
Fixed short editor in firefox and optimised some queries
...
Optimised permission fetching so that it won't initialise a bunch
of models for the role permissions and instead does a manual
query to get the data directly.
2021-01-02 01:22:41 +00:00
5e686bb624
Added user ownership migrate to delete screen.
2021-01-01 18:31:01 +00:00
99b14621f9
Moved permission updating to its own tool
...
And added support for owner changing.
2021-01-01 17:49:48 +00:00
da9083bf1f
Fixed view path
2020-12-31 17:27:23 +00:00
8833b5bc3b
Added user-select input
2020-12-31 17:25:20 +00:00
b493becadf
Started change for entities to have concept of owners
2020-12-30 18:25:35 +00:00
00308ad4ab
Cleaned up some user/image areas of the app
...
Further cleanup of docblocks and standardisation of repos.
2020-12-08 23:46:38 +00:00
0b01a77c16
Swapped out HTML diff implementation for own, removes tidy depdendancy
2020-11-29 19:08:13 +00:00
8aedba14a3
Added page export API controller
2020-11-28 15:39:40 +00:00
53bcfe528d
Added pages API doc examples
...
Made some tweaks to related content and other examples while there.
2020-11-28 15:21:54 +00:00
1c8102bb89
Started pages API
2020-11-22 14:56:19 +00:00
ebeca256f0
Updated old exportService name in controllers
2020-11-22 01:26:14 +00:00
a042e22481
Focused base Entity class cleanup
...
Removed some common functions from other entities.
Aligned implementation of getUrl()
Cleaned phpdocs and added typehinting.
Also extracted sibling search logic out of controller.
2020-11-22 01:20:38 +00:00
ef1b98019a
Fixed some mis-refactoring and split search service
...
Search service broken into index and runner tools.
2020-11-22 00:17:45 +00:00
c7a2d568bf
Moved models to folder, renamed managers to tools
...
Tools seems to fit better since the classes were a bit of a mixed bunch
and did not always manage.
Also simplified the structure of the SlugGenerator class.
Also focused EntityContext on shelves and simplified to use session
helper.
2020-11-21 23:20:54 +00:00
5e01c30882
Aligned constructors across controller classes
...
Since they no longer needed to run the parent contructor
since the parent constructor was no longer needed.
2020-11-21 17:08:37 +00:00
f76a2a69f7
Cleaned up api docs implementation, added missing titles
2020-11-21 17:03:24 +00:00
bd6a1a66d1
Implemented remainder of activity types
...
Also fixed audit log to work for non-entity items.
2020-11-20 19:33:11 +00:00