]> BookStack Code Mirror - bookstack/log
bookstack
17 months agoOIDC: Added testing of PKCE flow 4804/head
Dan Brown [Sat, 27 Jan 2024 16:41:15 +0000 (16:41 +0000)]
OIDC: Added testing of PKCE flow

Also compared full flow to RFC spec during this process

17 months agoOIDC: Added PKCE functionality
Dan Brown [Thu, 25 Jan 2024 14:24:46 +0000 (14:24 +0000)]
OIDC: Added PKCE functionality

Related to #4734.
Uses core logic from League AbstractProvider.

17 months agoMerge pull request #4796 from BookStackApp/v23-12
Dan Brown [Wed, 24 Jan 2024 10:38:14 +0000 (10:38 +0000)]
Merge pull request #4796 from BookStackApp/v23-12

Merge in v23.12.2 changes

17 months agoDependancies: Updated PHP deps via composer 4796/head
Dan Brown [Wed, 24 Jan 2024 10:27:09 +0000 (10:27 +0000)]
Dependancies: Updated PHP deps via composer

17 months agoUpdated translator attribution before v23.12.2 release
Dan Brown [Wed, 24 Jan 2024 10:25:24 +0000 (10:25 +0000)]
Updated translator attribution before v23.12.2 release

17 months agoMerged l10n_development into v23-12
Dan Brown [Wed, 24 Jan 2024 10:22:13 +0000 (10:22 +0000)]
Merged l10n_development into v23-12

Squash merge
Closes #4779

17 months agoEntity selector: Fixed initial load overwriting initial search
Dan Brown [Tue, 23 Jan 2024 15:39:09 +0000 (15:39 +0000)]
Entity selector: Fixed initial load overwriting initial search

This changes how initial searches can be handled via config rather than
specific action so they can be considered in how the initial data load
is done, to prevent the default empty state loading and overwriting the
search data if it lands later (which was commonly likely).

For #4778

17 months agoAttachment List: Fixed broken ctrl-click functionality
Dan Brown [Tue, 23 Jan 2024 15:01:07 +0000 (15:01 +0000)]
Attachment List: Fixed broken ctrl-click functionality

Fixes #4782

17 months agoMerge pull request #4758 from BookStackApp/range_request_support
Dan Brown [Wed, 17 Jan 2024 11:10:38 +0000 (11:10 +0000)]
Merge pull request #4758 from BookStackApp/range_request_support

Range request support

17 months agoMerge branch 'development' of github.com:BookStackApp/BookStack into development
Dan Brown [Tue, 16 Jan 2024 12:14:44 +0000 (12:14 +0000)]
Merge branch 'development' of github.com:BookStackApp/BookStack into development

17 months agoUpdated translator attribution
Dan Brown [Tue, 16 Jan 2024 12:14:25 +0000 (12:14 +0000)]
Updated translator attribution

17 months agoUpdated translations with latest Crowdin changes (#4747)
Dan Brown [Tue, 16 Jan 2024 12:10:22 +0000 (12:10 +0000)]
Updated translations with latest Crowdin changes (#4747)

17 months agoChapters API: Added missing book_slug field
Dan Brown [Tue, 16 Jan 2024 12:06:13 +0000 (12:06 +0000)]
Chapters API: Added missing book_slug field

Was removed during previous changes, but reflected in response examples.
This adds into all standard single chapter responses.
For #4765

17 months agoUploads: Explicitly disabled s3 streaming in config 4758/head
Dan Brown [Mon, 15 Jan 2024 13:36:04 +0000 (13:36 +0000)]
Uploads: Explicitly disabled s3 streaming in config

This was the default option anyway, just adding here for
better visibility of this being set.
Can't enable without issues as the app will attempt to seek which does
not work for these streams. Also have not tested on non-s3, s3-like
systems.

17 months agoAttachments: Drag and drop video support
Dan Brown [Mon, 15 Jan 2024 11:50:05 +0000 (11:50 +0000)]
Attachments: Drag and drop video support

Supports dragging and dropping video attahchments to embed them in the
editor as HTML video tags.

17 months agoRange requests: Added test cases to cover functionality
Dan Brown [Sun, 14 Jan 2024 15:50:00 +0000 (15:50 +0000)]
Range requests: Added test cases to cover functionality

Fixed some found issues in the process.

17 months agoReadme: Updates sponsor list
Dan Brown [Wed, 10 Jan 2024 14:33:49 +0000 (14:33 +0000)]
Readme: Updates sponsor list

17 months agoRange requests: Added basic HTTP range support
Dan Brown [Sun, 7 Jan 2024 20:34:03 +0000 (20:34 +0000)]
Range requests: Added basic HTTP range support

17 months agoRange requests: Extracted stream output handling to new class
Dan Brown [Sun, 7 Jan 2024 14:03:13 +0000 (14:03 +0000)]
Range requests: Extracted stream output handling to new class

18 months agoUpdated translator attribution before release v23.12
Dan Brown [Fri, 29 Dec 2023 12:08:39 +0000 (12:08 +0000)]
Updated translator attribution before release v23.12

18 months agoUpdated translations with latest Crowdin changes (#4658)
Dan Brown [Thu, 28 Dec 2023 17:49:38 +0000 (17:49 +0000)]
Updated translations with latest Crowdin changes (#4658)

18 months agoLanguages: Added Finnish to language list
Dan Brown [Thu, 28 Dec 2023 15:24:51 +0000 (15:24 +0000)]
Languages: Added Finnish to language list

18 months agoPermissions: Updated generation querying to be more efficient
Dan Brown [Sat, 23 Dec 2023 13:35:57 +0000 (13:35 +0000)]
Permissions: Updated generation querying to be more efficient

Query of existing entity permissions during view permission generation
could cause timeouts or SQL placeholder limits due to massive whereOr
query generation, where an "or where" clause would be created for each
entity type/id combo involved, which could be all within 20 books.

This updates the query handling to use a query per type involved, with
no "or where"s, and to be chunked at large entity counts.

Also tweaked role-specific permission regen to chunk books at
half-previous rate to prevent such a large scope being involved on each
chunk.

For #4695

18 months agoDeps: Updated php depenencies via composer
Dan Brown [Fri, 22 Dec 2023 15:48:46 +0000 (15:48 +0000)]
Deps: Updated php depenencies via composer

18 months agoMerge pull request #4729 from BookStackApp/description_wysiwyg
Dan Brown [Fri, 22 Dec 2023 15:28:13 +0000 (15:28 +0000)]
Merge pull request #4729 from BookStackApp/description_wysiwyg

Simple WYSIWYG for description fields and comments

18 months agoInput WYSIWYG: Fixed up some dark mode elements 4729/head
Dan Brown [Fri, 22 Dec 2023 15:16:06 +0000 (15:16 +0000)]
Input WYSIWYG: Fixed up some dark mode elements

18 months agoInput WYSIWYG: Updated exports to handle HTML descriptions
Dan Brown [Fri, 22 Dec 2023 14:57:20 +0000 (14:57 +0000)]
Input WYSIWYG: Updated exports to handle HTML descriptions

18 months agoInput WYSIWYG: Updated API examples to align with changes
Dan Brown [Fri, 22 Dec 2023 14:37:48 +0000 (14:37 +0000)]
Input WYSIWYG: Updated API examples to align with changes

18 months agoInput WYSIWYG: Updated API testing, fixed description set issue
Dan Brown [Fri, 22 Dec 2023 13:17:23 +0000 (13:17 +0000)]
Input WYSIWYG: Updated API testing, fixed description set issue

Fixed issue where an existing description_html field would not be
updated via 'description' input.

18 months agoInput WYSIWYG: Updated API to show/accept html descriptions
Dan Brown [Thu, 21 Dec 2023 13:23:52 +0000 (13:23 +0000)]
Input WYSIWYG: Updated API to show/accept html descriptions

Also aligned books, shelves and chapters to return description content
and some relations (where not breaking API) in create/update responses
also so that information can be seen direct from that input in a
request.

API docs and tests not yet updated to match.

18 months agoInput WYSIWYG: Aligned newline handling with old descriptions
Dan Brown [Wed, 20 Dec 2023 17:40:58 +0000 (17:40 +0000)]
Input WYSIWYG: Aligned newline handling with old descriptions

To ensure consistenent behaviour before/after changes.
Added tests to cover.

18 months agoInput WYSIWYG: Fixed existing tests, fixed empty description handling
Dan Brown [Wed, 20 Dec 2023 17:21:09 +0000 (17:21 +0000)]
Input WYSIWYG: Fixed existing tests, fixed empty description handling

18 months agoInput WYSIWYG: Updated tests, Added simple html limiting
Dan Brown [Tue, 19 Dec 2023 15:10:29 +0000 (15:10 +0000)]
Input WYSIWYG: Updated tests, Added simple html limiting

18 months agoInput WYSIWYG: Added testing for description references
Dan Brown [Tue, 19 Dec 2023 12:55:51 +0000 (12:55 +0000)]
Input WYSIWYG: Added testing for description references

18 months agoInput WYSIWYG: Added dynamic options for entity selector popups
Dan Brown [Tue, 19 Dec 2023 12:09:57 +0000 (12:09 +0000)]
Input WYSIWYG: Added dynamic options for entity selector popups

So that multiple elements on the page can share the same popup, with
different search options.

18 months agoInput WYSIWYG: Updated UpdateUrlCommand, Added chapter HTML display
Dan Brown [Mon, 18 Dec 2023 18:31:16 +0000 (18:31 +0000)]
Input WYSIWYG: Updated UpdateUrlCommand, Added chapter HTML display

18 months agoInput WYSIWYG: Updated reference link updating for descriptions
Dan Brown [Mon, 18 Dec 2023 18:12:36 +0000 (18:12 +0000)]
Input WYSIWYG: Updated reference link updating for descriptions

18 months agoInput WYSIWYG: Added reference store & fetch handling
Dan Brown [Mon, 18 Dec 2023 16:23:40 +0000 (16:23 +0000)]
Input WYSIWYG: Added reference store & fetch handling

For book, shelves and chapters.
Made much of the existing handling generic to entity types.
Added new MixedEntityListLoader to help load lists somewhat efficiently.
Only manually tested so far.

18 months agoInput WYSIWYG: Added description_html field, added store logic
Dan Brown [Sun, 17 Dec 2023 15:02:15 +0000 (15:02 +0000)]
Input WYSIWYG: Added description_html field, added store logic

Rolled out HTML editor field and store logic across all target entity
types. Cleaned up WYSIWYG input logic and design.
Cleaned up some injected classes while there.

18 months agoInput WYSIWYG: Added compontent and rough logic to book form
Dan Brown [Sat, 16 Dec 2023 14:48:35 +0000 (14:48 +0000)]
Input WYSIWYG: Added compontent and rough logic to book form

Just as a draft for prototyping and playing around to get things
started.

18 months agoMerge pull request #4728 from BookStackApp/friendlier_buttons
Dan Brown [Sat, 16 Dec 2023 14:04:57 +0000 (14:04 +0000)]
Merge pull request #4728 from BookStackApp/friendlier_buttons

Design: Updated buttons to be a bit friendlier

18 months agoDesign: Updated buttons to be a bit friendlier 4728/head
Dan Brown [Sat, 16 Dec 2023 14:03:12 +0000 (14:03 +0000)]
Design: Updated buttons to be a bit friendlier

Old all-caps button design made them a bit angry, and kinda odd and
outdated. This updates them to use their original source text casing
(which may help for translation variations) while being a bit rounder
with a better defined shadow for outline buttons.

18 months agoMerge pull request #4727 from BookStackApp/editor_video_alignment
Dan Brown [Sat, 16 Dec 2023 12:32:52 +0000 (12:32 +0000)]
Merge pull request #4727 from BookStackApp/editor_video_alignment

WYSWIYG: Allowed video/embed alignment controls

18 months agoWYSWIYG: Allowed video/embed alignment controls 4727/head
Dan Brown [Sat, 16 Dec 2023 12:22:40 +0000 (12:22 +0000)]
WYSWIYG: Allowed video/embed alignment controls

Required a lot of working around TinyMCE since it added a
preview/wrapper element in the editor which complicates things.
Added view new "fixes.js" file so large hacks to default TinyMCe
functionality are kept in one place.

18 months agoUsers API: Fixed sending invite when using form requests
Dan Brown [Wed, 13 Dec 2023 15:11:42 +0000 (15:11 +0000)]
Users API: Fixed sending invite when using form requests

- Cast send_invite value in cases where it might not have been a boolean,
  which occurs on non-JSON requests.
- Added test to cover.
- Updated API docs to mention and shown boolean usage.

18 months agoMerge pull request #4721 from BookStackApp/default-templates
Dan Brown [Tue, 12 Dec 2023 16:06:35 +0000 (16:06 +0000)]
Merge pull request #4721 from BookStackApp/default-templates

Continued: Default book templates

18 months agoDefault templates: Fixed syntax for php8.0, added test 4721/head
Dan Brown [Tue, 12 Dec 2023 15:59:12 +0000 (15:59 +0000)]
Default templates: Fixed syntax for php8.0, added test

Null accessor is akward in php8.0 and throws warnings, so removed.
Added test to check template assingment handling on page delete.

18 months agoDefault templates: Added permission checks to selector test
Dan Brown [Tue, 12 Dec 2023 15:41:56 +0000 (15:41 +0000)]
Default templates: Added permission checks to selector test

18 months agoDefault templates: Cleaned up ux, added case for added endpoint
Dan Brown [Tue, 12 Dec 2023 15:38:09 +0000 (15:38 +0000)]
Default templates: Cleaned up ux, added case for added endpoint

Cleaned up and updated page picker a bit, allowing longer names to show,
clicking through to item without triggering popup, and updated to use
hidden attributes instead of styles.

Added phpunit tests to cover supporting entity-selector-templates
endpoint.

18 months agoDefault templates: Added tests to cover functionality
Dan Brown [Tue, 12 Dec 2023 15:04:40 +0000 (15:04 +0000)]
Default templates: Added tests to cover functionality

Included new helper in Test PermissionProvider to set app to public,
since that's a common test scenario.

18 months agoPage Templates: Changed template field name, added API support
Dan Brown [Tue, 12 Dec 2023 12:14:00 +0000 (12:14 +0000)]
Page Templates: Changed template field name, added API support

18 months agoDefault templates: Added page picker and working forms
Dan Brown [Mon, 11 Dec 2023 15:55:43 +0000 (15:55 +0000)]
Default templates: Added page picker and working forms

- Adapted existing page picker to be usable elsewhere.
- Added endpoint for getting templates for entity picker.
- Added search template filter to support above.
- Updated book save handling to check/validate submitted template.
  - Allows non-visible pages to flow through the save process, if not
    being changed.
- Updated page deletes to handle removal of default usage on books.
- Tweaked wording and form styles to suit.
- Updated migration to explicity reflect default value.

18 months agoDefault Templates: Started review and updates from PR code
Dan Brown [Mon, 11 Dec 2023 12:33:20 +0000 (12:33 +0000)]
Default Templates: Started review and updates from PR code

18 months agoMerge branch 'development' into default-templates
Dan Brown [Mon, 11 Dec 2023 11:41:43 +0000 (11:41 +0000)]
Merge branch 'development' into default-templates

18 months agoPHPStan: Fixed larastan loading and address some level2 issues
Dan Brown [Sun, 10 Dec 2023 14:58:05 +0000 (14:58 +0000)]
PHPStan: Fixed larastan loading and address some level2 issues

18 months agoURL Handling: Removed referrer-based redirect handling
Dan Brown [Sun, 10 Dec 2023 12:37:21 +0000 (12:37 +0000)]
URL Handling: Removed referrer-based redirect handling

Swapped back handling to instead be pre-determined instead of being
based upon session/referrer which would cause inconsistent results when
referrer data was not available (redirect to app-loaded images/files).

To support, this adds a mechansism to provide a URL through request
data.

Also cleaned up some imports in code while making changes.
Closes #4656.

18 months agoDepenencies: Updated NPM packages
Dan Brown [Sat, 9 Dec 2023 10:49:28 +0000 (10:49 +0000)]
Depenencies: Updated NPM packages

Avoided updating markdown-it package to 14 for now since it would cause
bundle size to inflate. Don't think ESBuild is properly tree shaking
"entities" sub package which inflates size.

18 months agoDependencies: Updated composer PHP deps
Dan Brown [Sat, 9 Dec 2023 10:05:23 +0000 (10:05 +0000)]
Dependencies: Updated composer PHP deps

18 months agoSAML2: Fixed non-spec point of logout, Improved redirect location
Dan Brown [Fri, 8 Dec 2023 18:38:52 +0000 (18:38 +0000)]
SAML2: Fixed non-spec point of logout, Improved redirect location

This changes the point-of-logout to be within the initial part of the
SAML logout flow, as per 5.3.2 of the SAML spec, processing step 2.
This also improves the logout redirect handling to use the global
redirect suggestion so that auto-login handling is properly taken into
account.

Added tests to cover.
Manual testing performed against keycloak.
For #4713

18 months agoMerge pull request #4714 from BookStackApp/oidc_logout
Dan Brown [Thu, 7 Dec 2023 18:00:32 +0000 (18:00 +0000)]
Merge pull request #4714 from BookStackApp/oidc_logout

OIDC RP-Initiated logout

18 months agoOIDC: Update example env option to reflect correct default 4714/head
Dan Brown [Thu, 7 Dec 2023 17:59:48 +0000 (17:59 +0000)]
OIDC: Update example env option to reflect correct default

18 months agoOIDC RP Logout: Fixed issues during testing
Dan Brown [Thu, 7 Dec 2023 17:45:17 +0000 (17:45 +0000)]
OIDC RP Logout: Fixed issues during testing

- Disabled by default due to strict rejection by auth systems.
- Fixed issue when autoloading logout URL, but not provided in
  autodiscovery response.
- Added proper handling for if the logout URL contains a query string
  already.
- Added extra tests to cover.
- Forced config endpoint to be used, if set as a string, instead of
  autodiscovery endpoint.

18 months agoTests: Fixed debug test to work with social class changes
Dan Brown [Wed, 6 Dec 2023 16:57:15 +0000 (16:57 +0000)]
Tests: Fixed debug test to work with social class changes

18 months agoOIDC RP Logout: Added autodiscovery support and test cases
Dan Brown [Wed, 6 Dec 2023 16:41:50 +0000 (16:41 +0000)]
OIDC RP Logout: Added autodiscovery support and test cases

18 months agoAuth: Refactored OIDC RP-logout PR code, Extracted logout
Dan Brown [Wed, 6 Dec 2023 13:49:53 +0000 (13:49 +0000)]
Auth: Refactored OIDC RP-logout PR code, Extracted logout

Extracted logout to the login service so the logic can be shared instead
of re-implemented at each stage. For this, the SocialAuthService was
split so the driver management is in its own class, so it can be used
elsewhere without use (or circular dependencies) of the
SocialAuthService.

During review of #4467

18 months agoMerge branch 'fix/oidc-logout' into development
Dan Brown [Wed, 6 Dec 2023 12:14:43 +0000 (12:14 +0000)]
Merge branch 'fix/oidc-logout' into development

18 months agoRTL: Made a range of fixes & improvments for RTL text
Dan Brown [Tue, 5 Dec 2023 18:53:48 +0000 (18:53 +0000)]
RTL: Made a range of fixes & improvments for RTL text

- Updated HTML exports to have auto direction to properly react to RTL
  text when in the content.
- Fixed RTL spacing issues in new editor design changes.
- Fixed pointer arrow being angled wrong on RTL languages.

Related to #4645

18 months agoSAML2: Included parsed groups in dump data
Dan Brown [Sun, 3 Dec 2023 19:35:05 +0000 (19:35 +0000)]
SAML2: Included parsed groups in dump data

Updated code style of class while there.
Removed redundant check and string translation used.

For #4706

18 months agoMerge branch 'v23-10' into development
Dan Brown [Sun, 3 Dec 2023 18:57:07 +0000 (18:57 +0000)]
Merge branch 'v23-10' into development

19 months agoMerge pull request #4688 from BookStackApp/include-parser
Dan Brown [Mon, 27 Nov 2023 21:54:18 +0000 (21:54 +0000)]
Merge pull request #4688 from BookStackApp/include-parser

New include tag parser

19 months agoIncludes: Added back support for parse theme event 4688/head
Dan Brown [Mon, 27 Nov 2023 21:38:43 +0000 (21:38 +0000)]
Includes: Added back support for parse theme event

Managed to do this in an API-compatible way although resuling output may
differ due to new dom handling in general, although user content is used
inline to remain as comptable as possible.

19 months agoIncludes: Added ID de-duplicating and more thorough clean-up
Dan Brown [Mon, 27 Nov 2023 20:16:27 +0000 (20:16 +0000)]
Includes: Added ID de-duplicating and more thorough clean-up

19 months agoIncludes: Switched page to new system
Dan Brown [Mon, 27 Nov 2023 19:54:47 +0000 (19:54 +0000)]
Includes: Switched page to new system

- Added mulit-level depth parsing.
- Updating usage of HTML doc in page content to be efficient.
- Removed now redundant PageContentTest cases.
- Made some include system fixes based upon testing.

19 months agoIncludes: Updated logic regarding parent block els, added tests
Dan Brown [Sat, 25 Nov 2023 17:32:00 +0000 (17:32 +0000)]
Includes: Updated logic regarding parent block els, added tests

Expanded tests with many more cases, and added fixes for failed
scenarios.
Updated logic to specifically handling parent <p> tags, and now assume
compatibility with parent block types elswhere to allow use in a
variety of scenarios (td, details, blockquote etc...).

19 months agoIncludes: Added block-level handling to new include system
Dan Brown [Fri, 24 Nov 2023 23:39:16 +0000 (23:39 +0000)]
Includes: Added block-level handling to new include system

Implements block promoting to body (including position choosing based
upon likely tag position within parent) and block splitting where we're
only a single depth down from the body child.

19 months agoIncludes: Developed to get new system working with inline includes
Dan Brown [Thu, 23 Nov 2023 14:29:07 +0000 (14:29 +0000)]
Includes: Developed to get new system working with inline includes

Adds logic for locating and splitting text nodes.
Adds specific classes to offload tag/content specific logic.

19 months agoIncludes: Started foundations for new include tag parser
Dan Brown [Wed, 22 Nov 2023 22:14:28 +0000 (22:14 +0000)]
Includes: Started foundations for new include tag parser

19 months agoImages: Prevented base64 extraction without permission 4684/head
Dan Brown [Mon, 20 Nov 2023 13:32:31 +0000 (13:32 +0000)]
Images: Prevented base64 extraction without permission

Also added content sniffing as an extra check.
Added tests to cover.

19 months agoImages: Forced intervention loading via specific method
Dan Brown [Sun, 19 Nov 2023 16:34:29 +0000 (16:34 +0000)]
Images: Forced intervention loading via specific method

Updated image loading for intervention library to be via a specific
'initFromBinary' method to avoid being overly accepting of input types
and mechansisms.

For CVE-2023-6199

19 months agoFavicon: Moved resizing to specific resizer class
Dan Brown [Sun, 19 Nov 2023 15:57:19 +0000 (15:57 +0000)]
Favicon: Moved resizing to specific resizer class

19 months agoLogicalTheme: Added events for registering web routes
Dan Brown [Fri, 17 Nov 2023 13:45:57 +0000 (13:45 +0000)]
LogicalTheme: Added events for registering web routes

Added to allow easier registration of routes.
Added for normal web and authed routes.
Included testing to cover.

19 months agoHTML: Tweaked output from full HtmlDocument
Dan Brown [Tue, 14 Nov 2023 17:23:05 +0000 (17:23 +0000)]
HTML: Tweaked output from full HtmlDocument

Saves specifically the document element on output to HTML, since this
results in just the outer HTML being saved while not including the extra
XML tags which would show up before with the changes to force utf8
usage.

19 months agoMerge pull request #4673 from BookStackApp/html_doc_alignment
Dan Brown [Tue, 14 Nov 2023 17:22:30 +0000 (17:22 +0000)]
Merge pull request #4673 from BookStackApp/html_doc_alignment

HTML: Aligned and standardised DOMDocument usage

19 months agoHTML: Aligned and standardised DOMDocument usage 4673/head
Dan Brown [Tue, 14 Nov 2023 15:46:32 +0000 (15:46 +0000)]
HTML: Aligned and standardised DOMDocument usage

Adds a thin wrapper for DOMDocument to simplify and align usage within
all areas of BookStack.
Also means we move away from old depreacted mb_convert_encoding usage.

Closes #4638

19 months agoMerge pull request #4661 from BookStackApp/tinymce_update
Dan Brown [Tue, 14 Nov 2023 13:15:32 +0000 (13:15 +0000)]
Merge pull request #4661 from BookStackApp/tinymce_update

WYSIWYG: Updated TinyMCE from 6.5.1 to 6.7.2

19 months agoMerge branch 'Man-in-Black-patch-1' into development
Dan Brown [Tue, 14 Nov 2023 10:40:30 +0000 (10:40 +0000)]
Merge branch 'Man-in-Black-patch-1' into development

19 months agoNotifications: Review of PR to include path path #4629
Dan Brown [Tue, 14 Nov 2023 10:31:44 +0000 (10:31 +0000)]
Notifications: Review of PR to include path path #4629

- Merged book and chapter name items to a single page path list item
  which has links to parent page/chapter.
- Added permission filtering to page path elements.
- Added page path to also be on comment notifications.
- Updated testing to cover.
- Added new Message Line objects to support.

Done during review of #4629

19 months agoAdded book name to the mail template
Sascha [Thu, 26 Oct 2023 12:01:38 +0000 (14:01 +0200)]
Added book name to the mail template

added book name

synced with actual file from dev branch

added book name

add book name

added book name

extended with chaptername

extended with chapter name

Update PageUpdateNotification.php

Update notifications.php

Update notifications.php

Update notifications.php

correction of chapter syntax

correction of chapter syntax

19 months agoJS: Removed random extra import
Dan Brown [Thu, 9 Nov 2023 13:36:00 +0000 (13:36 +0000)]
JS: Removed random extra import

19 months agoWYSIWYG: Updated TinyMCE from 6.5.1 to 6.7.2 4661/head
Dan Brown [Thu, 9 Nov 2023 13:34:00 +0000 (13:34 +0000)]
WYSIWYG: Updated TinyMCE from 6.5.1 to 6.7.2

19 months agoUpdated translator attribution before release v23.10.2
Dan Brown [Tue, 7 Nov 2023 15:12:15 +0000 (15:12 +0000)]
Updated translator attribution before release v23.10.2

19 months agoMerge branch 'development' of github.com:BookStackApp/BookStack into development
Dan Brown [Tue, 7 Nov 2023 15:09:54 +0000 (15:09 +0000)]
Merge branch 'development' of github.com:BookStackApp/BookStack into development

19 months agoDropdowns: Fixed bad direction logic, added dynmaic height
Dan Brown [Tue, 7 Nov 2023 15:07:11 +0000 (15:07 +0000)]
Dropdowns: Fixed bad direction logic, added dynmaic height

Changes since adding notifications would cause direction to be assessed
upon max height of 80vh, which caused large dropdowns like the audit log
dropdown to drop up and/or go offscreen.
This restores the default assessment of 500px, and adds dynamic
max-height adjustment to provide more room for large dropdowns.

For #4652

19 months agoUpdated translations with latest Crowdin changes (#4643)
Dan Brown [Tue, 7 Nov 2023 14:40:53 +0000 (14:40 +0000)]
Updated translations with latest Crowdin changes (#4643)

19 months agoPWA: Prevent passing credentials to avoid redirection issues
Dan Brown [Tue, 7 Nov 2023 14:33:37 +0000 (14:33 +0000)]
PWA: Prevent passing credentials to avoid redirection issues

For #4649
More of a patch around the issue for now.
Have opened #4656 to properly address.

20 months agoUpdated translations with latest Crowdin changes (#4631)
Dan Brown [Thu, 2 Nov 2023 14:30:34 +0000 (14:30 +0000)]
Updated translations with latest Crowdin changes (#4631)

20 months agoLangs: Enabled Nynorsk option, updated translator attribution
Dan Brown [Thu, 2 Nov 2023 14:17:56 +0000 (14:17 +0000)]
Langs: Enabled Nynorsk option, updated translator attribution

20 months agoMD Editor: Fixed lack of toolbar BG when in fullscreen
Dan Brown [Thu, 2 Nov 2023 12:41:07 +0000 (12:41 +0000)]
MD Editor: Fixed lack of toolbar BG when in fullscreen

For #4641

20 months agoEditor toolbox: Updated tabs to use link color
Dan Brown [Thu, 2 Nov 2023 12:34:57 +0000 (12:34 +0000)]
Editor toolbox: Updated tabs to use link color

Change due to link color being more suitable in this case since it's not
specifically a block with light text which is what app color is suited
for.
Specifically better for dark mode when a dark app color is used.

For #4630

20 months agoPage JS: Improved block jumping and highlighting
Dan Brown [Wed, 1 Nov 2023 18:49:47 +0000 (18:49 +0000)]
Page JS: Improved block jumping and highlighting

- Updated anchor scroll change to open up details blocks if the target
  exists within.
- Updated highlighting and animation implementation to fix hardly visible highlighting.
- Removed old, now unused, handing of CM instances in details blocks.

Related to #4637.