Dan Brown [Thu, 29 Sep 2022 14:05:57 +0000 (15:05 +0100)]
Added contents to book-show endpoint
Created a generic list formatting helper class for this, to align with
logic used on the search results endpoint and for easier future re-use
in a standardised way.
Also updated some class property types.
Added test to cover new books-contents results.
Related to #3734
Dan Brown [Wed, 28 Sep 2022 19:48:29 +0000 (20:48 +0100)]
Updated shelf book management to allow scroll on mobile
Updates book drag handling to be limited to the handle so scrolling can
be done on the items themselves.
Increased handling area and improved styling to support
Dan Brown [Wed, 28 Sep 2022 12:50:40 +0000 (13:50 +0100)]
Improved tag suggestion handling
- Aligned prefix-type filtering with back-end.
- Increased suggestion search cut-off from 3 to 4.
- Increased amount of suggestions shown.
- Ordered suggestions to be name asc, as you'd expect on search.
- Updated front-end filtering to use full search query, instead of
truncated version, for further front-end filtering capability.
Dan Brown [Tue, 27 Sep 2022 11:23:16 +0000 (12:23 +0100)]
Tweaked license and readme text
Updated license copyright line to better help it be detected as MIT by
automatic license systems (Such as GitHub license detection) while
removing contributors link which would not actually list all
contributors.
Also added year range back in to be more specific about active lifetime.
Dan Brown [Tue, 27 Sep 2022 01:48:05 +0000 (02:48 +0100)]
Refactored app service providers
Removed old pagination provider as url handling now achieved in a better
way.
Removed unused broadcast service provider.
Moved view-based tweaks into specific provider.
Reorganised provider config list.
Dan Brown [Tue, 27 Sep 2022 00:27:51 +0000 (01:27 +0100)]
Cleaned testing service provider usage
Moved testing content out of AppServiceProvider, to a testing-specific
service provider. Updated docs and added composer commands to support
parallel testing.
Also reverted unintentional change to wysiwyg/config.js.
Dan Brown [Thu, 22 Sep 2022 15:54:27 +0000 (16:54 +0100)]
Removed usage of laravel/ui dependency
Brings app auth controller handling aligned within the app, rather than
having many overrides of the framwork packages causing confusion and
messiness over time.
Dan Brown [Fri, 2 Sep 2022 18:19:01 +0000 (19:19 +0100)]
Updated & improved language locale handling
Extracted much of the language and locale work to a seperate, focused class.
Updated php set_locale usage to prioritise UTF8 usage.
Added locale options for windows.
Clarified what's a locale and a bookstack language string.
Dan Brown [Thu, 1 Sep 2022 11:53:34 +0000 (12:53 +0100)]
Added test & update to prevent page creation w/ empty slug
Caused by changes to page repo in reference work,
This adds back in the slug generate although at a more central place.
Adds a test case to cover the problematic scenario.
Dan Brown [Tue, 23 Aug 2022 16:05:42 +0000 (17:05 +0100)]
Updated API docs with better request format explanation
Explained the content-types accepted by BookStack.
Made it clear that 'Content-Type' is expected on requests.
Added example to shown how to achieve more complex formats using
non-json requests.
Also added link to api-scripts repo.
Dan Brown [Sat, 20 Aug 2022 11:07:38 +0000 (12:07 +0100)]
Added entity meta link to reference page
Not totally happy with implementation as is requires extra service to be
injected to core controllers, but does the job.
Included test to cover.
Updated some controller properties to be typed while there.
Dan Brown [Wed, 10 Aug 2022 16:50:35 +0000 (17:50 +0100)]
Reduced the memory usage, db queries and cache hits loading revisions
Updated revision listing to only fetch required fields, massively
reducing memory usage by not loading content.
This also updates user avatar handling to effectively cache the avatar
url within request to avoid re-searching from cache, which may improve
performance of others areas of the application.
This also upates handling of the revisions list view to extract table
row to its own view to break things down a bit.
Dan Brown [Wed, 10 Aug 2022 12:51:54 +0000 (13:51 +0100)]
Improved WYSWYG editor code block layout update
To help prevent against empty areas during inital empty-cache loads.
This delays the original layout update a little to give time for the
layout to render as expected.
Dan Brown [Wed, 10 Aug 2022 07:06:48 +0000 (08:06 +0100)]
Fixed failed permission checks due to non-loaded fields
Added additional exceptions to prevent such cases in the future, so
that they are caught in dev ideally.
Added test case specifically for reported favourite scenario.