]> BookStack Code Mirror - bookstack/log
bookstack
2 years agoStarted item permission design revamp
Dan Brown [Sun, 2 Oct 2022 12:17:28 +0000 (13:17 +0100)]
Started item permission design revamp

2 years agoStarted playing with table icons
Dan Brown [Fri, 30 Sep 2022 17:26:58 +0000 (18:26 +0100)]
Started playing with table icons

To make a little more accessible, Related to #3397

2 years agoMerge pull request #3757 from BookStackApp/tests_entity_cleanup
Dan Brown [Thu, 29 Sep 2022 21:18:34 +0000 (22:18 +0100)]
Merge pull request #3757 from BookStackApp/tests_entity_cleanup

Testing cleanup

2 years agoQuick run through of applying new test entity helper class 3757/head
Dan Brown [Thu, 29 Sep 2022 21:11:16 +0000 (22:11 +0100)]
Quick run through of applying new test entity helper class

2 years agoMigrated much test entity usage via find/replace
Dan Brown [Thu, 29 Sep 2022 16:31:38 +0000 (17:31 +0100)]
Migrated much test entity usage via find/replace

2 years agoExtracted entity testcase methods to own class
Dan Brown [Thu, 29 Sep 2022 15:49:25 +0000 (16:49 +0100)]
Extracted entity testcase methods to own class

Also added some new fetch helper methods for future use.

2 years agoAdded contents to book-show endpoint
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

2 years agoUpdated shelf book management to allow scroll on mobile
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

2 years agoAdded api format advisory regarding PUT/DELETE form data
Dan Brown [Wed, 28 Sep 2022 19:15:48 +0000 (20:15 +0100)]
Added api format advisory regarding PUT/DELETE form data

2 years agoUpdated book copy to copy shelf relations
Dan Brown [Wed, 28 Sep 2022 13:14:51 +0000 (14:14 +0100)]
Updated book copy to copy shelf relations

Where permission to edit the shelf is allowed.
For #3699

2 years agoImproved tag suggestion handling
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.

Related to #3720

2 years agoApplied permissions to revision action visibility
Dan Brown [Wed, 28 Sep 2022 10:10:06 +0000 (11:10 +0100)]
Applied permissions to revision action visibility

Related to #3723

2 years agoSplit out some development-specific readme parts to own pages
Dan Brown [Tue, 27 Sep 2022 19:11:58 +0000 (20:11 +0100)]
Split out some development-specific readme parts to own pages

2 years agoMerge branch 'auth_review' into development
Dan Brown [Tue, 27 Sep 2022 18:34:48 +0000 (19:34 +0100)]
Merge branch 'auth_review' into development

2 years agoUpdated WYSIWYG config to allow styles on list elements
Dan Brown [Tue, 27 Sep 2022 18:05:03 +0000 (19:05 +0100)]
Updated WYSIWYG config to allow styles on list elements

2 years agoAdded MATLAB/Octave code highlighting support
Dan Brown [Tue, 27 Sep 2022 17:52:21 +0000 (18:52 +0100)]
Added MATLAB/Octave code highlighting support

2 years agoMerge branch 'development' of github.com:BookStackApp/BookStack into development
Dan Brown [Tue, 27 Sep 2022 17:45:08 +0000 (18:45 +0100)]
Merge branch 'development' of github.com:BookStackApp/BookStack into development

2 years agoFixed custom code theme not showing in WYSIWYG
Dan Brown [Tue, 27 Sep 2022 17:44:06 +0000 (18:44 +0100)]
Fixed custom code theme not showing in WYSIWYG

Fixes #3753
Was caused by not including added styles to the code block shadow root.

2 years agoTweaked license and readme text
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.

2 years agoUpdated composer deps, incremented dev version
Dan Brown [Tue, 27 Sep 2022 01:56:13 +0000 (02:56 +0100)]
Updated composer deps, incremented dev version

2 years agoRefactored app service providers
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.

2 years agoMerge pull request #3751 from BookStackApp/parallel_testing
Dan Brown [Tue, 27 Sep 2022 00:31:37 +0000 (01:31 +0100)]
Merge pull request #3751 from BookStackApp/parallel_testing

Parallel Testing Support

2 years agoCleaned testing service provider usage 3751/head
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.

2 years agoAdded initial support for parallel testing
Dan Brown [Mon, 26 Sep 2022 20:25:32 +0000 (21:25 +0100)]
Added initial support for parallel testing

2 years agoAdded login throttling test, updated reset-pw test method names 3745/head
Dan Brown [Thu, 22 Sep 2022 16:29:38 +0000 (17:29 +0100)]
Added login throttling test, updated reset-pw test method names

2 years agoSplit out registration and pw-reset tests methods
Dan Brown [Thu, 22 Sep 2022 16:15:15 +0000 (17:15 +0100)]
Split out registration and pw-reset tests methods

2 years agoRemoved usage of laravel/ui dependency
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.

2 years agoUpdated auth controllers with property types
Dan Brown [Thu, 22 Sep 2022 14:12:05 +0000 (15:12 +0100)]
Updated auth controllers with property types

2 years agoUpdated translator attribution before release v22.09.1
Dan Brown [Tue, 20 Sep 2022 12:18:41 +0000 (13:18 +0100)]
Updated translator attribution before release v22.09.1

2 years agoNew Crowdin updates (#3710)
Dan Brown [Tue, 20 Sep 2022 12:16:15 +0000 (13:16 +0100)]
New Crowdin updates (#3710)

2 years agoAdded reason, if existing, into SAML acs error
Dan Brown [Tue, 20 Sep 2022 11:52:44 +0000 (12:52 +0100)]
Added reason, if existing, into SAML acs error

Closes #3731

2 years agoAdded extra setlocale format to help windows support
Dan Brown [Tue, 20 Sep 2022 10:59:36 +0000 (11:59 +0100)]
Added extra setlocale format to help windows support

Related to #3650

2 years agoFixed language request link in readme
Dan Brown [Mon, 19 Sep 2022 16:24:21 +0000 (17:24 +0100)]
Fixed language request link in readme

2 years agoMerge pull request #3728 from BookStackApp/php_formatting
Dan Brown [Sun, 18 Sep 2022 14:04:07 +0000 (15:04 +0100)]
Merge pull request #3728 from BookStackApp/php_formatting

Addition of PHPCS for formatting

2 years agoUpdated readme for phpcs usage, aligned gh action workflows 3728/head
Dan Brown [Sun, 18 Sep 2022 13:50:25 +0000 (14:50 +0100)]
Updated readme for phpcs usage, aligned gh action workflows

2 years agoAdded php lint gh action, updated composer scripts
Dan Brown [Sun, 18 Sep 2022 00:56:45 +0000 (01:56 +0100)]
Added php lint gh action, updated composer scripts

2 years agoAdded and ran PHPCS
Dan Brown [Sun, 18 Sep 2022 00:25:20 +0000 (01:25 +0100)]
Added and ran PHPCS

2 years agoAdded a little protection to migration query
Dan Brown [Thu, 8 Sep 2022 11:26:14 +0000 (12:26 +0100)]
Added a little protection to migration query

Just to be sure the query is filtered as expected to only affect
shelf-based images.

2 years agoNew Crowdin updates (#3701)
Dan Brown [Thu, 8 Sep 2022 10:59:57 +0000 (11:59 +0100)]
New Crowdin updates (#3701)

2 years agoUpdated translator attribution
Dan Brown [Thu, 8 Sep 2022 10:58:55 +0000 (11:58 +0100)]
Updated translator attribution

2 years agoMade a range of rtl fixes
Dan Brown [Tue, 6 Sep 2022 20:30:28 +0000 (21:30 +0100)]
Made a range of rtl fixes

Mostly around dropdowns and other items that had right/left specific
styling.
For #3702

2 years agoRemoved old thai files, added romanian as lang option
Dan Brown [Tue, 6 Sep 2022 16:41:32 +0000 (17:41 +0100)]
Removed old thai files, added romanian as lang option

Also applied styleci changes

2 years agoAdded image view access notice to role form
Dan Brown [Tue, 6 Sep 2022 16:20:35 +0000 (17:20 +0100)]
Added image view access notice to role form

Added to clarify the role permission in scenarios where users may have
not read the docs site to understand image access control.

Related to #3688

2 years agoWidened svg content attribute xss filtering
Dan Brown [Tue, 6 Sep 2022 16:01:56 +0000 (17:01 +0100)]
Widened svg content attribute xss filtering

Takes care of additional cases that can occur.
Closes #3705

2 years agoUpdated OIDC group attr option name
Dan Brown [Tue, 6 Sep 2022 15:32:42 +0000 (16:32 +0100)]
Updated OIDC group attr option name

To match the existing option name for display names.
Closes #3704

2 years agoMerge pull request #3698 from BookStackApp/include_theme_event
Dan Brown [Mon, 5 Sep 2022 15:51:01 +0000 (16:51 +0100)]
Merge pull request #3698 from BookStackApp/include_theme_event

Added "page_include_parse" theme event

2 years agoAdded "page_include_parse" theme event 3698/head
Dan Brown [Mon, 5 Sep 2022 15:40:42 +0000 (16:40 +0100)]
Added "page_include_parse" theme event

For custom control of include tag parsing.

2 years agoAdded permission visiblity control to image-delete button
Dan Brown [Mon, 5 Sep 2022 14:52:12 +0000 (15:52 +0100)]
Added permission visiblity control to image-delete button

Includes test to cover.
For #3697

2 years agoWrapped wysiwyg drawing change in editor transaction
Dan Brown [Mon, 5 Sep 2022 14:06:47 +0000 (15:06 +0100)]
Wrapped wysiwyg drawing change in editor transaction

To make the content changes made a undoable transaction that is picked
up as a change.
From my testing, should address #3682

2 years agoAddressed setlocale issue caught by phpstan
Dan Brown [Mon, 5 Sep 2022 12:33:05 +0000 (13:33 +0100)]
Addressed setlocale issue caught by phpstan

setlocale could be called with no second param if the language given to
the modified function was empty.

2 years agoApplied styleci changes, updated composer deps
Dan Brown [Mon, 5 Sep 2022 12:18:37 +0000 (13:18 +0100)]
Applied styleci changes, updated composer deps

2 years agoNew Crowdin updates (#3643)
Dan Brown [Mon, 5 Sep 2022 12:17:10 +0000 (13:17 +0100)]
New Crowdin updates (#3643)

2 years agoUpdated page revisions link visibility
Dan Brown [Sat, 3 Sep 2022 11:32:21 +0000 (12:32 +0100)]
Updated page revisions link visibility

To match the actual visibilities of the revisions listing page and
options.
Related to #2946

2 years agoUpdated & improved language locale handling
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.

For #3590 and maybe #3650

2 years agoFixed failing tests due to shelf text changes, applied styleci changes
Dan Brown [Fri, 2 Sep 2022 13:47:44 +0000 (14:47 +0100)]
Fixed failing tests due to shelf text changes, applied styleci changes

2 years agoMerge pull request #3693 from BookStackApp/local_secure_restricted
Dan Brown [Fri, 2 Sep 2022 13:41:25 +0000 (14:41 +0100)]
Merge pull request #3693 from BookStackApp/local_secure_restricted

Addition of a `local_secure_restricted` image storage option

2 years agoFixed local_secure_restricted preventing attachment uploads 3693/head
Dan Brown [Fri, 2 Sep 2022 13:40:17 +0000 (14:40 +0100)]
Fixed local_secure_restricted preventing attachment uploads

Due to option name change and therefore lack of handling.
Added test case to cover.

2 years agoAdded test and handling for local_secure_restricted in exports
Dan Brown [Fri, 2 Sep 2022 13:21:43 +0000 (14:21 +0100)]
Added test and handling for local_secure_restricted in exports

2 years agoAdded test to cover secure restricted functionality
Dan Brown [Fri, 2 Sep 2022 13:03:23 +0000 (14:03 +0100)]
Added test to cover secure restricted functionality

2 years agoFixed shelf covers being stored as 'cover_book'
Dan Brown [Fri, 2 Sep 2022 11:54:54 +0000 (12:54 +0100)]
Fixed shelf covers being stored as 'cover_book'

Are now stored as 'cover_bookshelf' as expected.
Added a migrate to alter existing shelf cover image types.

2 years agoStarted work on local_secure_restricted image option
Dan Brown [Thu, 1 Sep 2022 15:17:14 +0000 (16:17 +0100)]
Started work on local_secure_restricted image option

2 years agoAligned bookshelf terminology to consistently be 'Shelf'
Dan Brown [Thu, 1 Sep 2022 13:55:35 +0000 (14:55 +0100)]
Aligned bookshelf terminology to consistently be 'Shelf'

For #3553
EN only, other languages should be handled via CrowdIn

2 years agoFixed missing nested list indent next to floated content
Dan Brown [Thu, 1 Sep 2022 12:11:59 +0000 (13:11 +0100)]
Fixed missing nested list indent next to floated content

Fixes #3672

2 years agoAdded test & update to prevent page creation w/ empty slug
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.

2 years agoFixed lack of url reference updating on book child move
Dan Brown [Tue, 30 Aug 2022 21:12:52 +0000 (22:12 +0100)]
Fixed lack of url reference updating on book child move

2 years agoAdded book child reference handling on book url change
Dan Brown [Tue, 30 Aug 2022 21:00:32 +0000 (22:00 +0100)]
Added book child reference handling on book url change

Closes #3683

2 years agoApplied StyleCi changes, updated php deps
Dan Brown [Mon, 29 Aug 2022 16:46:41 +0000 (17:46 +0100)]
Applied StyleCi changes, updated php deps

2 years agoMerge pull request #3656 from BookStackApp/x_linking
Dan Brown [Mon, 29 Aug 2022 16:45:05 +0000 (17:45 +0100)]
Merge pull request #3656 from BookStackApp/x_linking

Link reference tracking & updating

2 years agoFixed phpstan wanring about usage of static 3656/head
Dan Brown [Mon, 29 Aug 2022 16:39:50 +0000 (17:39 +0100)]
Fixed phpstan wanring about usage of static

2 years agoAdded maintenance action to regenerate references
Dan Brown [Mon, 29 Aug 2022 16:30:26 +0000 (17:30 +0100)]
Added maintenance action to regenerate references

2 years agoMerge pull request #3616 from BookStackApp/oidc_group_sync
Dan Brown [Thu, 25 Aug 2022 10:17:18 +0000 (11:17 +0100)]
Merge pull request #3616 from BookStackApp/oidc_group_sync

Added OIDC group sync functionality

2 years agoUpdated API docs with better request format explanation
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.

Related to #3666 and #3652

2 years agoDoubled default revision limit
Dan Brown [Tue, 23 Aug 2022 15:31:34 +0000 (16:31 +0100)]
Doubled default revision limit

Due to potential increase of revision entries due to auto-changes.

2 years agoRolled out reference link updating logic usage
Dan Brown [Sun, 21 Aug 2022 17:05:19 +0000 (18:05 +0100)]
Rolled out reference link updating logic usage

Added test to cover updating of content on reference url change

2 years agoBuilt out cross link replacer, not yet tested
Dan Brown [Sun, 21 Aug 2022 10:29:34 +0000 (11:29 +0100)]
Built out cross link replacer, not yet tested

2 years agoStarted work on reference on-change-updates
Dan Brown [Sat, 20 Aug 2022 20:09:07 +0000 (21:09 +0100)]
Started work on reference on-change-updates

Refactored out revision-specific actions within PageRepo for
organisition and re-use for cross-linking work.

2 years agoAdded entity meta link to reference page
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.

2 years agoRolled out reference pages to all entities, added testing
Dan Brown [Fri, 19 Aug 2022 21:40:44 +0000 (22:40 +0100)]
Rolled out reference pages to all entities, added testing

Including testing to check permissions applied to listed references.

2 years agoAdded inbound references listing for pages
Dan Brown [Fri, 19 Aug 2022 12:14:43 +0000 (13:14 +0100)]
Added inbound references listing for pages

2 years agoAdded reference handling on page actions
Dan Brown [Wed, 17 Aug 2022 16:37:27 +0000 (17:37 +0100)]
Added reference handling on page actions

Page update/create/restore/clone/delete.
Added a couple of tests to cover a couple of those.

2 years agoAdded regenerate-references command test
Dan Brown [Wed, 17 Aug 2022 15:59:23 +0000 (16:59 +0100)]
Added regenerate-references command test

Also updated model resolvers to only fetch model ID, to prevent bringing
back way more data from database than desired.

2 years agoAdded reference storage system, and command to re-index
Dan Brown [Wed, 17 Aug 2022 13:39:53 +0000 (14:39 +0100)]
Added reference storage system, and command to re-index

Also re-named/orgranized some files for this, to make them "References"
specific instead of a subset of "Util".

2 years agoAdded system to extract model references from HTML content
Dan Brown [Tue, 16 Aug 2022 12:23:53 +0000 (13:23 +0100)]
Added system to extract model references from HTML content

For the start of a managed cross-linking system.

2 years agoRefactored search-based code to its own folder
Dan Brown [Tue, 16 Aug 2022 10:27:22 +0000 (11:27 +0100)]
Refactored search-based code to its own folder

Also applied StyleCI changes

2 years agoMerge pull request #3653 from krsriq/patch-1
Dan Brown [Mon, 15 Aug 2022 21:31:49 +0000 (22:31 +0100)]
Merge pull request #3653 from krsriq/patch-1

Fix typos

2 years agoFix typos 3653/head
Daniel Schmelz [Mon, 15 Aug 2022 20:41:44 +0000 (22:41 +0200)]
Fix typos

2 years agoMerge branch '3636-security-patch' into development
Dan Brown [Thu, 11 Aug 2022 14:15:19 +0000 (15:15 +0100)]
Merge branch '3636-security-patch' into development

2 years agoUpdated translator attribution pre v22.07.3 release
Dan Brown [Thu, 11 Aug 2022 12:17:18 +0000 (13:17 +0100)]
Updated translator attribution pre v22.07.3 release

2 years agoMerge branch 'persian_translate_22_08_10' into development
Dan Brown [Thu, 11 Aug 2022 12:15:15 +0000 (13:15 +0100)]
Merge branch 'persian_translate_22_08_10' into development

2 years agoNew Crowdin updates (#3635)
Dan Brown [Thu, 11 Aug 2022 12:12:55 +0000 (13:12 +0100)]
New Crowdin updates (#3635)

2 years agoAdded content security section to the api docs
Dan Brown [Thu, 11 Aug 2022 09:49:45 +0000 (10:49 +0100)]
Added content security section to the api docs

Related to #3636

2 years agoAdded content filtering of tags with javascript or data in values attr
Dan Brown [Thu, 11 Aug 2022 09:26:33 +0000 (10:26 +0100)]
Added content filtering of tags with javascript or data in values attr

Case would be blocked by CSP but adding for cases where CSP may not be
active when content taken externally.

For #3636

2 years agoCompletion of Persian translation 2022-08-10 3639/head
samad hassan allafi [Wed, 10 Aug 2022 18:25:31 +0000 (22:55 +0430)]
Completion of Persian translation 2022-08-10

2 years agoMerge pull request #3632 from BookStackApp/ownable_permission_fix
Dan Brown [Wed, 10 Aug 2022 16:59:46 +0000 (17:59 +0100)]
Merge pull request #3632 from BookStackApp/ownable_permission_fix

Fixed failed permission checks due to non-loaded fields

2 years agoReduced the memory usage, db queries and cache hits loading revisions
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.

For #3633

2 years agoImproved WYSWYG editor code block layout update
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.

For #3637

2 years agoFixed failed permission checks due to non-loaded fields 3632/head
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.

2 years agoUpdated translator attribution before release v22.07.2
Dan Brown [Tue, 9 Aug 2022 12:55:26 +0000 (13:55 +0100)]
Updated translator attribution before release v22.07.2

2 years agoMerge pull request #3630 from BookStackApp/export_template_parts
Dan Brown [Tue, 9 Aug 2022 12:51:24 +0000 (13:51 +0100)]
Merge pull request #3630 from BookStackApp/export_template_parts

Export template partials

2 years agoAdded test to cover export body start/end partial usage 3630/head
Dan Brown [Tue, 9 Aug 2022 12:49:42 +0000 (13:49 +0100)]
Added test to cover export body start/end partial usage

Morty Proxy This is a proxified and sanitized view of the page, visit original site.