]> BookStack Code Mirror - bookstack/log
bookstack
11 months agoLexical: Updated tests for node changes 5349/head
Dan Brown [Wed, 4 Dec 2024 20:03:05 +0000 (20:03 +0000)]
Lexical: Updated tests for node changes

11 months agoLexical: Reorganised custom node code into lexical codebase
Dan Brown [Wed, 4 Dec 2024 18:53:59 +0000 (18:53 +0000)]
Lexical: Reorganised custom node code into lexical codebase

Also cleaned up old unused imports.

11 months agoLexical: Merged custom table node code
Dan Brown [Tue, 3 Dec 2024 20:08:33 +0000 (20:08 +0000)]
Lexical: Merged custom table node code

11 months agoLexical: Merged list nodes
Dan Brown [Tue, 3 Dec 2024 19:03:52 +0000 (19:03 +0000)]
Lexical: Merged list nodes

11 months agoLexical: Extracted & merged heading & quote nodes
Dan Brown [Tue, 3 Dec 2024 17:04:50 +0000 (17:04 +0000)]
Lexical: Extracted & merged heading & quote nodes

11 months agoLexical: Merged custom paragraph node, removed old format/indent refs
Dan Brown [Tue, 3 Dec 2024 16:24:49 +0000 (16:24 +0000)]
Lexical: Merged custom paragraph node, removed old format/indent refs

Start of work to merge custom nodes into lexical, removing old unused
format/indent core logic while extending common block elements where
possible.

11 months agoMerge branch 'rashadkhan359/development' into development
Dan Brown [Tue, 3 Dec 2024 13:52:38 +0000 (13:52 +0000)]
Merge branch 'rashadkhan359/development' into development

11 months agoSearch API: Updated handling of parent detail, added testing
Dan Brown [Tue, 3 Dec 2024 13:47:45 +0000 (13:47 +0000)]
Search API: Updated handling of parent detail, added testing

Review of #5280.

- Removed additional non-needed loads which could ignore permissions.
- Updated new formatter method name to be more specific on use.
- Added test case to cover changes.
- Updated API examples to align parent id/info in info to be
  representative.

11 months agoMerge branch 'fix/markdown-export' into development
Dan Brown [Mon, 2 Dec 2024 11:50:15 +0000 (11:50 +0000)]
Merge branch 'fix/markdown-export' into development

11 months agoMD Exports: Added HTML description conversion
Dan Brown [Mon, 2 Dec 2024 11:46:56 +0000 (11:46 +0000)]
MD Exports: Added HTML description conversion

Also updated tests to cover checking description use/conversion.
Made during review of #5313

11 months agoMerge branch 'fix-ldap-display-name' into development
Dan Brown [Sun, 1 Dec 2024 18:44:23 +0000 (18:44 +0000)]
Merge branch 'fix-ldap-display-name' into development

11 months agoLDAP: Review and testing of mulitple-display-name attr support
Dan Brown [Sun, 1 Dec 2024 18:42:54 +0000 (18:42 +0000)]
LDAP: Review and testing of mulitple-display-name attr support

Review of #5295
Added test to cover functionality.
Moved splitting from config to service.

11 months agoMerge branch 'docker-simplify' into development
Dan Brown [Sun, 1 Dec 2024 16:10:22 +0000 (16:10 +0000)]
Merge branch 'docker-simplify' into development

11 months agoDev Docker: Fixed missing gd jpeg handling, forced migrations
Dan Brown [Sun, 1 Dec 2024 16:02:21 +0000 (16:02 +0000)]
Dev Docker: Fixed missing gd jpeg handling, forced migrations

Migrations run without force could fail startup in certain environment
conditions (when testing production env).
Also updated paths permission handling to update more needed locations.

11 months agoMerge branch 'portazips' into development
Dan Brown [Sun, 1 Dec 2024 13:06:43 +0000 (13:06 +0000)]
Merge branch 'portazips' into development

11 months agoMerge pull request #5259 from BookStackApp/typescript-conversions
Dan Brown [Sun, 1 Dec 2024 13:04:59 +0000 (13:04 +0000)]
Merge pull request #5259 from BookStackApp/typescript-conversions

Conversion of Services to TypeScript

12 months agoUpdated translator & dependency attribution before release v24.10.2
Dan Brown [Fri, 29 Nov 2024 13:46:37 +0000 (13:46 +0000)]
Updated translator & dependency attribution before release v24.10.2

12 months agoUpdated translations with latest Crowdin changes (#5331)
Dan Brown [Fri, 29 Nov 2024 13:40:09 +0000 (13:40 +0000)]
Updated translations with latest Crowdin changes (#5331)

12 months agoAttachments: Fixed full range request handling
Dan Brown [Fri, 29 Nov 2024 13:19:55 +0000 (13:19 +0000)]
Attachments: Fixed full range request handling

We were not responsing with a range request, where the requested range
was for the full extent of content. This changes things to always
provide a range request, even for the full range.

Change made since our existing logic could cause problems in chromium
browsers.

Elseif statement removed as its was likley redundant based upon other
existing checks.
This also changes responses for requested ranges beyond content, but I
think that's technically correct looking at the spec (416 are for when
there are no overlapping request/response ranges at all).

Updated tests to cover.
For #5342

12 months agoCode: Set base codemirror line height
Dan Brown [Fri, 29 Nov 2024 12:57:53 +0000 (12:57 +0000)]
Code: Set base codemirror line height

Prevents difference in line height between light/dark mode.
For #5146

12 months agoMerge branch 'oidc-content-type-issue' into development
Dan Brown [Thu, 28 Nov 2024 16:58:55 +0000 (16:58 +0000)]
Merge branch 'oidc-content-type-issue' into development

12 months agoOIDC: Added extra userinfo content-type normalisation and test
Dan Brown [Thu, 28 Nov 2024 16:58:06 +0000 (16:58 +0000)]
OIDC: Added extra userinfo content-type normalisation and test

During review of #5337

12 months agoIncludes: Workaround for PHP 8.3.14 bug
Dan Brown [Thu, 28 Nov 2024 16:30:59 +0000 (16:30 +0000)]
Includes: Workaround for PHP 8.3.14 bug

Changed DOMText creation to be done via document so its document
reference is correct to avoid a bug in PHP 8.3.14.
Ref: https://github.com/php/php-src/issues/16967

Fixes #5341

12 months agoDepenencies: Updated PHP packages
Dan Brown [Thu, 28 Nov 2024 16:25:01 +0000 (16:25 +0000)]
Depenencies: Updated PHP packages

12 months agoZIP Exports: Changed the instance id mechanism 5260/head
Dan Brown [Wed, 27 Nov 2024 16:30:19 +0000 (16:30 +0000)]
ZIP Exports: Changed the instance id mechanism

Adds an instance id via app settings.

12 months agoZIP Exports: Updated format doc with advisories regarding html/md
Dan Brown [Tue, 26 Nov 2024 17:53:20 +0000 (17:53 +0000)]
ZIP Exports: Updated format doc with advisories regarding html/md

12 months agoUpdates the OIDC userinfo endpoint request to allow for a `Content-Type` response... 5337/head
Wes Biggs [Tue, 26 Nov 2024 17:21:20 +0000 (11:21 -0600)]
Updates the OIDC userinfo endpoint request to allow for a `Content-Type` response header with optional parameters, like `application/json; charset=utf-8`. This was causing an issue when integrating with [node-oidc-provider](https://github.com/panva/node-oidc-provider).

12 months agoZIP Exports: Added detection/handling of images with external storage
Dan Brown [Tue, 26 Nov 2024 15:59:39 +0000 (15:59 +0000)]
ZIP Exports: Added detection/handling of images with external storage

Added test to cover.

12 months agoZIP Imports/Exports: Fixed some lint and test issues
Dan Brown [Mon, 25 Nov 2024 16:23:59 +0000 (16:23 +0000)]
ZIP Imports/Exports: Fixed some lint and test issues

- Updated test handling to create imports folder when required.
- Updated some tests to delete created import zip files.

12 months agoZIP Import & Exports: Addressed issues during testing
Dan Brown [Mon, 25 Nov 2024 15:54:15 +0000 (15:54 +0000)]
ZIP Import & Exports: Addressed issues during testing

- Handled links to within-zip page images found in chapter/book
  descriptions; Added test to cover.
- Fixed session showing unrelated success on failed import.

Tested import file-create undo on failure as part of this testing.

12 months agoZIP Imports: Updated import form to show loading indicator
Dan Brown [Fri, 22 Nov 2024 21:36:42 +0000 (21:36 +0000)]
ZIP Imports: Updated import form to show loading indicator

And disable button after submit.
Added here because the import could take some time, so it's best to show
an indicator to the user to show that something is happening, and help
prevent duplicate submission or re-submit attempts.

12 months agoZIP Imports: Added book content ordering to import preview
Dan Brown [Fri, 22 Nov 2024 21:03:04 +0000 (21:03 +0000)]
ZIP Imports: Added book content ordering to import preview

12 months agoZIP Imports: Added image type validation/handling
Dan Brown [Mon, 18 Nov 2024 17:42:49 +0000 (17:42 +0000)]
ZIP Imports: Added image type validation/handling

Images were missing their extension after import since it was
(potentially) not part of the import data.
This adds validation via mime sniffing (to match normal image upload
checks) and also uses the same logic to sniff out a correct extension.

Added tests to cover.
Also fixed some existing tests around zip functionality.

12 months agoZIP Exports: Added ID checks and testing to validator
Dan Brown [Mon, 18 Nov 2024 15:53:21 +0000 (15:53 +0000)]
ZIP Exports: Added ID checks and testing to validator

12 months agoZIP Imports: Covered import runner with further testing
Dan Brown [Sat, 16 Nov 2024 19:52:20 +0000 (19:52 +0000)]
ZIP Imports: Covered import runner with further testing

12 months agoZIP Imports: Started testing core import logic
Dan Brown [Sat, 16 Nov 2024 16:12:45 +0000 (16:12 +0000)]
ZIP Imports: Started testing core import logic

Fixed image size handling, and lack of attachment reference replacements
during testing.

12 months agoZIP Imports: Added high level import run tests
Dan Brown [Sat, 16 Nov 2024 13:57:41 +0000 (13:57 +0000)]
ZIP Imports: Added high level import run tests

12 months agoZIP Import: Finished base import process & error handling
Dan Brown [Thu, 14 Nov 2024 15:59:15 +0000 (15:59 +0000)]
ZIP Import: Finished base import process & error handling

Added file creation reverting and DB rollback on error.
Added error display on failed import.
Extracted likely shown import form/error text to translation files.

12 months agoUpdated translations with latest Crowdin changes (#5317)
Dan Brown [Wed, 13 Nov 2024 11:59:03 +0000 (11:59 +0000)]
Updated translations with latest Crowdin changes (#5317)

* New translations common.php (Ukrainian)

* New translations entities.php (Ukrainian)

* New translations errors.php (Ukrainian)

* New translations activities.php (Czech)

* New translations entities.php (Czech)

12 months agoDependencies: Updated composer packages
Dan Brown [Wed, 13 Nov 2024 11:39:04 +0000 (11:39 +0000)]
Dependencies: Updated composer packages

12 months agoZIP Imports: Finished off core import logic
Dan Brown [Mon, 11 Nov 2024 15:06:46 +0000 (15:06 +0000)]
ZIP Imports: Finished off core import logic

12 months agoZIP Imports: Built out reference parsing/updating logic
Dan Brown [Sun, 10 Nov 2024 16:03:50 +0000 (16:03 +0000)]
ZIP Imports: Built out reference parsing/updating logic

12 months agoExportFormatter: Add book description and check for empty book and chapter descriptio... 5313/head
czemu [Sun, 10 Nov 2024 08:39:33 +0000 (09:39 +0100)]
ExportFormatter: Add book description and check for empty book and chapter descriptions in markdown export

12 months agoZIP imports: Started actual import logic
Dan Brown [Sat, 9 Nov 2024 14:01:24 +0000 (14:01 +0000)]
ZIP imports: Started actual import logic

12 months agoLanguages: Added Turkmen to locale manager
Dan Brown [Fri, 8 Nov 2024 13:46:57 +0000 (13:46 +0000)]
Languages: Added Turkmen to locale manager

12 months agoTranslators: Updated before patch release
Dan Brown [Fri, 8 Nov 2024 13:31:21 +0000 (13:31 +0000)]
Translators: Updated before patch release

12 months agoUpdated translations with latest Crowdin changes (#5250)
Dan Brown [Fri, 8 Nov 2024 13:29:21 +0000 (13:29 +0000)]
Updated translations with latest Crowdin changes (#5250)

12 months agoTesting: Improved reliability
Dan Brown [Fri, 8 Nov 2024 11:35:18 +0000 (11:35 +0000)]
Testing: Improved reliability

- Added extra column/value check for page revision test for accuracy.
- Changed search sort test to use more reliable values.
  - Change due to database seeding somtimes generating values that
    proceeded the test value, expected to be first, in sort results.

12 months agoUpdate URL Command: Added revisions table support
Dan Brown [Fri, 8 Nov 2024 11:22:30 +0000 (11:22 +0000)]
Update URL Command: Added revisions table support

For #5292
Added test to cover.

12 months agoPHP Deps: Bumped up minor versions
Dan Brown [Fri, 8 Nov 2024 10:41:25 +0000 (10:41 +0000)]
PHP Deps: Bumped up minor versions

12 months agoMerge pull request #5312 from BookStackApp/system_cli_update
Dan Brown [Thu, 7 Nov 2024 17:22:08 +0000 (17:22 +0000)]
Merge pull request #5312 from BookStackApp/system_cli_update

System CLI update

12 months agoSystem CLI: Updated to 126de5599c state 5312/head
Dan Brown [Thu, 7 Nov 2024 17:10:35 +0000 (17:10 +0000)]
System CLI: Updated to 126de5599c state

12 months agoZIP Imports: Added parent and permission check pre-import
Dan Brown [Tue, 5 Nov 2024 15:41:58 +0000 (15:41 +0000)]
ZIP Imports: Added parent and permission check pre-import

12 months agoZIP Imports: Added full contents view to import display
Dan Brown [Tue, 5 Nov 2024 13:17:31 +0000 (13:17 +0000)]
ZIP Imports: Added full contents view to import display

Reduced import data will now be stored on the import itself, instead of
storing a set of totals.

12 months agoZIP Imports: Added parent selector for page/chapter imports
Dan Brown [Mon, 4 Nov 2024 16:21:22 +0000 (16:21 +0000)]
ZIP Imports: Added parent selector for page/chapter imports

12 months agoZIP Imports: Fleshed out continue page, Added testing
Dan Brown [Sun, 3 Nov 2024 17:28:18 +0000 (17:28 +0000)]
ZIP Imports: Fleshed out continue page, Added testing

12 months agoZIP Imports: Added listing, show view, delete, activity
Dan Brown [Sun, 3 Nov 2024 14:13:05 +0000 (14:13 +0000)]
ZIP Imports: Added listing, show view, delete, activity

12 months agoZIP Import: Added upload handling
Dan Brown [Sat, 2 Nov 2024 20:48:21 +0000 (20:48 +0000)]
ZIP Import: Added upload handling

Split attachment service storage work out so it can be shared.

12 months agoZIP Import: Added model+migration, and reader class
Dan Brown [Sat, 2 Nov 2024 17:17:34 +0000 (17:17 +0000)]
ZIP Import: Added model+migration, and reader class

12 months agoZIP Imports: Added validation message display, added testing
Dan Brown [Sat, 2 Nov 2024 14:51:04 +0000 (14:51 +0000)]
ZIP Imports: Added validation message display, added testing

Testing covers main UI access, and main non-successfull import actions.
Started planning stored import model.
Extracted some text to language files.

13 months agoZIP Exports: Got zip format validation functionally complete
Dan Brown [Wed, 30 Oct 2024 15:26:23 +0000 (15:26 +0000)]
ZIP Exports: Got zip format validation functionally complete

13 months agoZIP Exports: Started import validation
Dan Brown [Wed, 30 Oct 2024 13:13:41 +0000 (13:13 +0000)]
ZIP Exports: Started import validation

13 months agofix deprecated syntax 5293/head
Zero [Tue, 29 Oct 2024 15:07:15 +0000 (23:07 +0800)]
fix deprecated syntax

13 months agore-write Dockerfile
Zero [Tue, 29 Oct 2024 15:06:50 +0000 (23:06 +0800)]
re-write Dockerfile

13 months agoZIP Exports: Built out initial import view
Dan Brown [Tue, 29 Oct 2024 14:21:32 +0000 (14:21 +0000)]
ZIP Exports: Built out initial import view

Added syles for non-custom, non-image file inputs.
Started planning out back-end handling.

13 months agoZIP Exports: Added new import permission
Dan Brown [Tue, 29 Oct 2024 12:11:51 +0000 (12:11 +0000)]
ZIP Exports: Added new import permission

Also updated new route/view to new non-book-specific flow.
Also fixed down migration of old export permissions migration.

13 months agoAdapt tests with displayName array 5295/head
Matthieu Leboeuf [Mon, 28 Oct 2024 21:27:15 +0000 (22:27 +0100)]
Adapt tests with displayName array

13 months agoAdded support for concatenating multiple LDAP attributes in displayName
Matthieu Leboeuf [Mon, 28 Oct 2024 21:14:30 +0000 (22:14 +0100)]
Added support for concatenating multiple LDAP attributes in displayName

13 months agorespective book and chapter structure added. 5280/head
Rashad [Sun, 27 Oct 2024 17:20:20 +0000 (22:50 +0530)]
respective book and chapter structure added.

13 months agoZIP Exports: Tested each type and model of export
Dan Brown [Sun, 27 Oct 2024 14:33:43 +0000 (14:33 +0000)]
ZIP Exports: Tested each type and model of export

13 months agoMerge pull request #5291 from LordSimal/development
Dan Brown [Sun, 27 Oct 2024 09:54:11 +0000 (09:54 +0000)]
Merge pull request #5291 from LordSimal/development

fix tests namespace definition

13 months agofix tests namespace definition 5291/head
Kevin Pfeifer [Sat, 26 Oct 2024 11:24:49 +0000 (13:24 +0200)]
fix tests namespace definition

13 months agoZIP Exports: Added entity cross refs, Started export tests
Dan Brown [Wed, 23 Oct 2024 14:59:58 +0000 (15:59 +0100)]
ZIP Exports: Added entity cross refs, Started export tests

13 months agoZIP Exports: Added core logic for books/chapters
Dan Brown [Wed, 23 Oct 2024 10:30:32 +0000 (11:30 +0100)]
ZIP Exports: Added core logic for books/chapters

13 months agoZIP Exports: Reorganised files, added page md parsing
Dan Brown [Wed, 23 Oct 2024 09:48:26 +0000 (10:48 +0100)]
ZIP Exports: Reorganised files, added page md parsing

13 months agoZIP Exports: Added working image handling/inclusion
Dan Brown [Mon, 21 Oct 2024 12:59:15 +0000 (13:59 +0100)]
ZIP Exports: Added working image handling/inclusion

13 months agoZip Exports: Added attachment/image link resolving & JSON null handling
Dan Brown [Mon, 21 Oct 2024 11:13:41 +0000 (12:13 +0100)]
Zip Exports: Added attachment/image link resolving & JSON null handling

13 months agoEager loading for titles
Rashad [Sun, 20 Oct 2024 21:31:33 +0000 (03:01 +0530)]
Eager loading for titles

13 months agoAdded include func for search api
Rashad [Sun, 20 Oct 2024 21:12:49 +0000 (02:42 +0530)]
Added include func for search api

13 months agoZIP Export: Started building link/ref handling
Dan Brown [Sun, 20 Oct 2024 18:56:56 +0000 (19:56 +0100)]
ZIP Export: Started building link/ref handling

13 months agoZIP Export: Expanded page & added base attachment handling
Dan Brown [Sat, 19 Oct 2024 14:41:07 +0000 (15:41 +0100)]
ZIP Export: Expanded page & added base attachment handling

13 months agoTesting: Split export tests into multiple files
Dan Brown [Sat, 19 Oct 2024 12:59:42 +0000 (13:59 +0100)]
Testing: Split export tests into multiple files

13 months agoZIP Exports: Finished up format doc, move files, started builder
Dan Brown [Tue, 15 Oct 2024 15:14:11 +0000 (16:14 +0100)]
ZIP Exports: Finished up format doc, move files, started builder

Moved all existing export related app files into their new own dir.

13 months agoZIP Export: Continued expanding format doc types
Dan Brown [Tue, 15 Oct 2024 12:57:16 +0000 (13:57 +0100)]
ZIP Export: Continued expanding format doc types

13 months agoUsers: Changed name validation to min:1 instead of 2
Dan Brown [Tue, 15 Oct 2024 10:07:41 +0000 (11:07 +0100)]
Users: Changed name validation to min:1 instead of 2

Would cause scenarios where users could be created with 1 char, but then
fail to update due to validation differences.
Added test to cover.
For #5263

13 months agoZIP Export: Started types in format doc
Dan Brown [Sun, 13 Oct 2024 21:56:22 +0000 (22:56 +0100)]
ZIP Export: Started types in format doc

13 months agoZIP Export: Started defining format
Dan Brown [Sun, 13 Oct 2024 13:18:23 +0000 (14:18 +0100)]
ZIP Export: Started defining format

13 months agoTS: Converted dom and keyboard nav services 5259/head
Dan Brown [Fri, 11 Oct 2024 20:55:51 +0000 (21:55 +0100)]
TS: Converted dom and keyboard nav services

13 months agoTS: Converted app file and animations service
Dan Brown [Fri, 11 Oct 2024 14:19:19 +0000 (15:19 +0100)]
TS: Converted app file and animations service

Extracted functions out of app file during changes to clean up.
Altered animation function to use normal css prop names instead of JS
CSS prop names.

13 months agoSettings: Added test to cover setting category by view
Dan Brown [Fri, 11 Oct 2024 12:33:07 +0000 (13:33 +0100)]
Settings: Added test to cover setting category by view

13 months agoMove settings category layouts into their own view folder 5255/head
Lachlan Tripolone [Thu, 10 Oct 2024 23:42:48 +0000 (10:42 +1100)]
Move settings category layouts into their own view folder

13 months agoRefactor SettingController to validate categies by existing view files
Lachlan Tripolone [Thu, 10 Oct 2024 23:40:38 +0000 (10:40 +1100)]
Refactor SettingController to validate categies by existing view files

13 months agoTS: Coverted util service
Dan Brown [Thu, 10 Oct 2024 11:03:24 +0000 (12:03 +0100)]
TS: Coverted util service

13 months agoAttribution: Updated translator & license files before v24.10
Dan Brown [Wed, 9 Oct 2024 09:26:07 +0000 (10:26 +0100)]
Attribution: Updated translator & license files before v24.10

13 months agoUpdated translations with latest Crowdin changes (#5188)
Dan Brown [Wed, 9 Oct 2024 09:21:55 +0000 (10:21 +0100)]
Updated translations with latest Crowdin changes (#5188)

13 months agoJS: Converted/updated translation code to TS, fixed some comment counts
Dan Brown [Mon, 7 Oct 2024 21:55:10 +0000 (22:55 +0100)]
JS: Converted/updated translation code to TS, fixed some comment counts

- Migrated translation service to TS, stripping a lot of now unused code
  along the way.
- Added test to cover translation service.
- Fixed some comment count issues, where it was not showing correct
  value. or updating, on comment create or delete.

13 months agoSearch: Fixed last commented filter when using table prefixes
Dan Brown [Sat, 5 Oct 2024 14:20:04 +0000 (15:20 +0100)]
Search: Fixed last commented filter when using table prefixes

13 months agoSearching: Fixed some form search issues
Dan Brown [Sat, 5 Oct 2024 13:47:00 +0000 (14:47 +0100)]
Searching: Fixed some form search issues

- Form was not retaining certain filters
- Form request handling of entity type set wrong filter name
Added test to cover.

13 months agoWYSIWYG: Code & table fixes
Dan Brown [Sat, 5 Oct 2024 11:42:47 +0000 (12:42 +0100)]
WYSIWYG: Code & table fixes

- Fixed new code block insertion to remove selection area instead of
  just adding after.
- Added default table column widths to not be collapsed
- Updated table dom export to not duplicate colgroups.

13 months agoWYSIWYG: Fixed list indenting selection & display bugs
Dan Brown [Fri, 4 Oct 2024 14:11:09 +0000 (15:11 +0100)]
WYSIWYG: Fixed list indenting selection & display bugs

- Fixed selection breaking on multiple indent changes
- Fixed multi-indent showing numbers on empty child list until the nodes
  are fully re-rendered.