]> BookStack Code Mirror - bookstack/log
bookstack
2 years agoUpdated system CLI 4229/head
Dan Brown [Mon, 8 May 2023 14:16:30 +0000 (15:16 +0100)]
Updated system CLI

- Fixed wrong env details being used on restore.
- Updated update-url on restore actually work.
- Added better support for symlinked locations.
- Added warning against updating in docker-like (non git controlled)
  environments.

2 years agoUpdated translations with latest Crowdin changes (#4211)
Dan Brown [Mon, 8 May 2023 13:49:01 +0000 (14:49 +0100)]
Updated translations with latest Crowdin changes (#4211)

2 years agoFixed code block line-number bar showing in exports
Dan Brown [Mon, 8 May 2023 13:45:45 +0000 (14:45 +0100)]
Fixed code block line-number bar showing in exports

Also fixed in print view.
Likely crept in during CM6 changes.

For #4215

2 years agoUpdated php deps, formatted command changes
Dan Brown [Mon, 8 May 2023 13:37:01 +0000 (14:37 +0100)]
Updated php deps, formatted command changes

2 years agoPrevented shorcuts activating when in codemirror areas
Dan Brown [Mon, 8 May 2023 13:28:03 +0000 (14:28 +0100)]
Prevented shorcuts activating when in codemirror areas

For #4227

2 years agoWYSWIYG code blocks: copied head styles into shadow root
Dan Brown [Mon, 8 May 2023 11:21:53 +0000 (12:21 +0100)]
WYSWIYG code blocks: copied head styles into shadow root

Currently only link-based styles are made available in the shadow root
code editor environment, this adds normal styles to apply any user-added
via custom head content.

Fixes #4228

2 years agoFixed added padding around hr tags in details blocks
Dan Brown [Mon, 8 May 2023 11:01:52 +0000 (12:01 +0100)]
Fixed added padding around hr tags in details blocks

Due to manual handling & wrapping of non-block content in details block
not taking hr elements into account.
For #3963

2 years agoAdded WYSWIYG editor code editor cancel focus return
Dan Brown [Sun, 7 May 2023 18:36:10 +0000 (19:36 +0100)]
Added WYSWIYG editor code editor cancel focus return

Focus now returns to the editor properly when you quit out the code
editor without saving.
This also sets the return location to be correct on normal saving (Would
sometimes jump to the end of the document).

For #4109.

2 years agoAdded force option for update-url command
Dan Brown [Sat, 6 May 2023 22:05:25 +0000 (23:05 +0100)]
Added force option for update-url command

Includes test to cover.
Closes #4223

2 years agoAdded mostodon badge in readme, updated CLI
Dan Brown [Wed, 3 May 2023 09:56:36 +0000 (10:56 +0100)]
Added mostodon badge in readme, updated CLI

2 years agoSet page include limit to be 3 as expected instead of 4
Dan Brown [Tue, 2 May 2023 11:44:55 +0000 (12:44 +0100)]
Set page include limit to be 3 as expected instead of 4

2 years agoUpdated translator attribution pre v23.05 release
Dan Brown [Mon, 1 May 2023 18:39:20 +0000 (19:39 +0100)]
Updated translator attribution pre v23.05 release

2 years agoUpdated translations with latest Crowdin changes (#4163)
Dan Brown [Mon, 1 May 2023 18:37:49 +0000 (19:37 +0100)]
Updated translations with latest Crowdin changes (#4163)

2 years agoUpdated CLI & PHP deps, added gitignore for local composer
Dan Brown [Mon, 1 May 2023 17:44:46 +0000 (18:44 +0100)]
Updated CLI & PHP deps, added gitignore for local composer

2 years agoFixed broken favourites in code editor
Dan Brown [Mon, 1 May 2023 17:43:03 +0000 (18:43 +0100)]
Fixed broken favourites in code editor

2 years agoMerge pull request #4206 from BookStackApp/system_cli
Dan Brown [Fri, 28 Apr 2023 18:17:38 +0000 (19:17 +0100)]
Merge pull request #4206 from BookStackApp/system_cli

Added System CLI

2 years agoAdded system cli, and created backups directory 4206/head
Dan Brown [Fri, 28 Apr 2023 18:08:45 +0000 (19:08 +0100)]
Added system cli, and created backups directory

2 years agoAdded sessionindex to SAML2 single logout request to idp
Dan Brown [Fri, 28 Apr 2023 12:54:51 +0000 (13:54 +0100)]
Added sessionindex to SAML2 single logout request to idp

related to  #3936

2 years agoAdded oidc_id_token_pre_validate logical theme event
Dan Brown [Thu, 27 Apr 2023 22:40:14 +0000 (23:40 +0100)]
Added oidc_id_token_pre_validate logical theme event

For #4200

2 years agoMerge branch 'esakkiraja100116/development' into development
Dan Brown [Thu, 27 Apr 2023 15:34:14 +0000 (16:34 +0100)]
Merge branch 'esakkiraja100116/development' into development

2 years agoReview of #4202, Rolled out to other searches, added testing
Dan Brown [Thu, 27 Apr 2023 15:33:24 +0000 (16:33 +0100)]
Review of #4202, Rolled out to other searches, added testing

2 years agosuggesstion issue fix (#4175)
esakkiraja100116 [Wed, 26 Apr 2023 16:49:16 +0000 (22:19 +0530)]
suggesstion issue fix (#4175)

2 years agoAdding a video { width: 100%; } (#4204)
SnowCode [Thu, 27 Apr 2023 14:58:35 +0000 (16:58 +0200)]
Adding a video { width: 100%; }  (#4204)

* Adding a video { width: 100%; }

This is to prevent that videos included in pages don't exceed the page border

* Reverting precedent commit

* Adding a video { max-width: 100% } instead

2 years agoReview of #4192, Fixed formatting and added test
Dan Brown [Thu, 27 Apr 2023 14:52:16 +0000 (15:52 +0100)]
Review of #4192, Fixed formatting and added test

2 years agochanged PageContent.php to accept nested includes (#4192)
jasonF1000 [Thu, 27 Apr 2023 14:51:46 +0000 (16:51 +0200)]
changed PageContent.php to accept nested includes (#4192)

* changed app/Entities/Tools/PageContent.php to accept nested include levels. Tested it and it works.

* changed recommendations

This loop is now only around parsePageIncludes and bugfixes the space indentation.

* Update PageContent.php

fix spaces

2 years agoFixed sort urls with no params not building full path
Dan Brown [Thu, 27 Apr 2023 12:47:49 +0000 (13:47 +0100)]
Fixed sort urls with no params not building full path

The provided partial path would be return which may not resolve to the
full URL when used on systems like those hosting BookStack on a
sub-path.
Fixes #4201

2 years agoMerge pull request #4193 from BookStackApp/custom_dropzone
Dan Brown [Thu, 27 Apr 2023 12:43:38 +0000 (13:43 +0100)]
Merge pull request #4193 from BookStackApp/custom_dropzone

Custom dropzone implementation

2 years agoFixed linting and failing test issues from dropzone work 4193/head
Dan Brown [Thu, 27 Apr 2023 12:31:03 +0000 (13:31 +0100)]
Fixed linting and failing test issues from dropzone work

2 years agoDropzone: Adjusted styles for dark mode
Dan Brown [Thu, 27 Apr 2023 11:55:05 +0000 (12:55 +0100)]
Dropzone: Adjusted styles for dark mode

2 years agoRemoved dropzone from package and attribution list
Dan Brown [Wed, 26 Apr 2023 22:35:25 +0000 (23:35 +0100)]
Removed dropzone from package and attribution list

2 years agodropzone: Addressed existing todos, cleaned attachment ux
Dan Brown [Wed, 26 Apr 2023 22:31:38 +0000 (23:31 +0100)]
dropzone: Addressed existing todos, cleaned attachment ux

Updated dom layout of attahcments to prevent nested dropzones (No issue
but potential to be one) and updated edit form dropzone handling so the
dropzone item card was not as distracting.

2 years agoUpdated attachments to work with new dropzone
Dan Brown [Wed, 26 Apr 2023 15:41:34 +0000 (16:41 +0100)]
Updated attachments to work with new dropzone

- Fixes existing broken attachment edit tabs.
- Redesigns area to move away from old tabbed interface.
- Integrates new dropzone system, for both addition and edit.

2 years agoImage manager: fix upload control for drawing, updated styles
Dan Brown [Wed, 26 Apr 2023 13:23:28 +0000 (14:23 +0100)]
Image manager: fix upload control for drawing, updated styles

- Tightened image manager styles to address things that looked akward.
- Prevented visiblity/use of upload controls for drawings.
- Updated dropzone to use error handling from validation messages.

2 years agoMerge branch 'development' of github.com:BookStackApp/BookStack into development
Dan Brown [Wed, 26 Apr 2023 00:43:16 +0000 (01:43 +0100)]
Merge branch 'development' of github.com:BookStackApp/BookStack into development

2 years agoFixed broken shortcut hint overlay
Dan Brown [Wed, 26 Apr 2023 00:42:12 +0000 (01:42 +0100)]
Fixed broken shortcut hint overlay

Also updated event handler usage to use abort controller while there.

2 years agoDropzone: Polished image manager elements
Dan Brown [Tue, 25 Apr 2023 15:41:39 +0000 (16:41 +0100)]
Dropzone: Polished image manager elements

- Added file placeholder for non-image uploads.
- Added use of upload limits.
- Removed upload timeout variable.
- Added pass-through and usage of filetypes.
- Extracted some view text to language files and made use of existing
  text.

2 years ago.vscode folder is added in .gitignore file (#4197)
Esakkiraja [Tue, 25 Apr 2023 14:25:31 +0000 (19:55 +0530)]
.vscode folder is added in .gitignore file (#4197)

Squash of 7 commits.

---------

Co-authored-by: esakkiraja100116 <redacted>
2 years agoDropzone: Developed ux further
Dan Brown [Tue, 25 Apr 2023 12:10:25 +0000 (13:10 +0100)]
Dropzone: Developed ux further

- Added image manager button for uploads.
- Added image manager placeholder sidebar text for guidance.
- Improved dropzone layer styling.
- Removed old dropzone styles.
- Got success events and auto-hide working.
- Updated upload items to animate out.

2 years agoDropzone: started on design/ui of uploading
Dan Brown [Mon, 24 Apr 2023 22:24:58 +0000 (23:24 +0100)]
Dropzone: started on design/ui of uploading

- Added new wider target handling.
- Updated upload item dom with design and seperate "landing" zone.
- Added new helper for simple dom element creation.

2 years agoDropzone: Swapped fetch for XHR for progress tracking
Dan Brown [Mon, 24 Apr 2023 17:18:08 +0000 (18:18 +0100)]
Dropzone: Swapped fetch for XHR for progress tracking

2 years agoStarted custom dropzone implementation
Dan Brown [Mon, 24 Apr 2023 15:19:20 +0000 (16:19 +0100)]
Started custom dropzone implementation

2 years agoMerge pull request #4191 from tigsikram/fix-api-docs-timestamp
Dan Brown [Mon, 24 Apr 2023 13:46:40 +0000 (14:46 +0100)]
Merge pull request #4191 from tigsikram/fix-api-docs-timestamp

Fix timestamp in API docs example response

2 years agoFix timestamp in API docs example response 4191/head
Mark Weiler [Mon, 24 Apr 2023 09:19:00 +0000 (11:19 +0200)]
Fix timestamp in API docs example response

2 years agoMerge branch 'feature/mail-verify-peer' into development
Dan Brown [Sun, 23 Apr 2023 14:05:13 +0000 (15:05 +0100)]
Merge branch 'feature/mail-verify-peer' into development

2 years agoMail: updated peer verify option name and added test
Dan Brown [Sun, 23 Apr 2023 14:04:35 +0000 (15:04 +0100)]
Mail: updated peer verify option name and added test

2 years agoAdded clojure code language option
Dan Brown [Sun, 23 Apr 2023 13:16:31 +0000 (14:16 +0100)]
Added clojure code language option

For #4112

2 years agoMerge branch 'wkhtmltopdf-env-example' into development
Dan Brown [Fri, 21 Apr 2023 10:56:31 +0000 (11:56 +0100)]
Merge branch 'wkhtmltopdf-env-example' into development

2 years agoUpdated complete env wkhtml text and added advisory
Dan Brown [Fri, 21 Apr 2023 10:54:23 +0000 (11:54 +0100)]
Updated complete env wkhtml text and added advisory

Added advisory to start to refer to docs for full details.
Updated added WKHTMLTOPDF option text.

2 years agoUpdated php deps
Dan Brown [Fri, 21 Apr 2023 10:37:41 +0000 (11:37 +0100)]
Updated php deps

2 years agoEdits from reviewing public events page
Dan Brown [Thu, 20 Apr 2023 15:54:11 +0000 (16:54 +0100)]
Edits from reviewing public events page

2 years agoDocumented public JS events used
Dan Brown [Thu, 20 Apr 2023 15:25:48 +0000 (16:25 +0100)]
Documented public JS events used

Related to #4179

2 years agoMerge pull request #4181 from BookStackApp/js_formatting
Dan Brown [Wed, 19 Apr 2023 22:01:10 +0000 (23:01 +0100)]
Merge pull request #4181 from BookStackApp/js_formatting

Added standard JS formatting via ESLint

2 years agoESLINT: Added GH action and details to dev docs 4181/head
Dan Brown [Wed, 19 Apr 2023 21:56:55 +0000 (22:56 +0100)]
ESLINT: Added GH action and details to dev docs

2 years agoESLINT: Addressed remaining detected issues
Dan Brown [Wed, 19 Apr 2023 14:20:04 +0000 (15:20 +0100)]
ESLINT: Addressed remaining detected issues

2 years agoESLINT: Started inital pass at addressing issues
Dan Brown [Wed, 19 Apr 2023 09:46:13 +0000 (10:46 +0100)]
ESLINT: Started inital pass at addressing issues

2 years agoRan eslint fix on existing codebase
Dan Brown [Tue, 18 Apr 2023 21:20:02 +0000 (22:20 +0100)]
Ran eslint fix on existing codebase

Had to do some manual fixing of the app.js file due to misplaced
comments

2 years agoAdded code formatting standard via eslint
Dan Brown [Tue, 18 Apr 2023 21:19:27 +0000 (22:19 +0100)]
Added code formatting standard via eslint

2 years agoMerge pull request #3617 from BookStackApp/codemirror6
Dan Brown [Tue, 18 Apr 2023 14:35:39 +0000 (15:35 +0100)]
Merge pull request #3617 from BookStackApp/codemirror6

Upgrade to codemirror 6

2 years agoCM6: Further fixes/improvements after testing 3617/head
Dan Brown [Tue, 18 Apr 2023 14:08:17 +0000 (15:08 +0100)]
CM6: Further fixes/improvements after testing

- Updated event naming to be "cm6" when codemirror-specific.
- Removed cm block border in md editor to prevent double bordering.
- Updated copy handling to fallback to execCommand.

2 years agoCM6: Fixed a range of issues during browser testing
Dan Brown [Tue, 18 Apr 2023 13:21:22 +0000 (14:21 +0100)]
CM6: Fixed a range of issues during browser testing

- Fixed some keybindings not running as expected, due to some editor
  defaults overriding or further actions taking place since the action
  would not indicate it's been dealt with (by returning boolean).
- Fixed spacing/border-radius being used on codeblocks on non-intended
  areas like the MD editor.
- Fixed lack of BG on default light theme, visible on full screen md
  editor.
- Fixed error thrown when the user does not have access to change the
  current editor (Likely non-cm related existing issue)

2 years agoCM6: Added tabbing, fixed dark mode border in WYSIWYG
Dan Brown [Tue, 18 Apr 2023 12:41:28 +0000 (13:41 +0100)]
CM6: Added tabbing, fixed dark mode border in WYSIWYG

2 years agoCM6: Updated for popup editor, added new interface
Dan Brown [Mon, 17 Apr 2023 12:24:29 +0000 (13:24 +0100)]
CM6: Updated for popup editor, added new interface

New simple interface added for abstraction of CM editor in simple
use-cases, just to provide common actions like get/set content, focus
and set mode.

2 years agoCM6: Got WYSIWYG code blocks working
Dan Brown [Sun, 16 Apr 2023 22:48:45 +0000 (23:48 +0100)]
CM6: Got WYSIWYG code blocks working

Required monkey-patch to work around potential codemirror issue with
shadowdom+iframe usage.
Also updated JS packages to latest versions.

2 years agoCM6: Aligned styling with existing, improved theme handling
Dan Brown [Sun, 16 Apr 2023 15:05:16 +0000 (16:05 +0100)]
CM6: Aligned styling with existing, improved theme handling

2 years agoUpdated cm6 theme handling to allow extension via API
Dan Brown [Sat, 15 Apr 2023 14:35:41 +0000 (15:35 +0100)]
Updated cm6 theme handling to allow extension via API

Uses our custom event system, uses methods that take callables so that
internal dependancies can be passed.

2 years agoAdded cm6 strategy for splitting and dyn. loading langs
Dan Brown [Fri, 14 Apr 2023 17:08:57 +0000 (18:08 +0100)]
Added cm6 strategy for splitting and dyn. loading langs

Split out legacy modes to their own dynamically imported bundle to
reduce main code bundle size.

2 years agoAddressed existing cm6 todos
Dan Brown [Fri, 14 Apr 2023 13:08:40 +0000 (14:08 +0100)]
Addressed existing cm6 todos

- Updated clipboard handling
  - Removed old clipboard package for browser-native API.
- Updated codemirror editor events to use new props for new data types.

2 years agoCleaned up change handling in cm6 editor action handling
Dan Brown [Thu, 13 Apr 2023 16:38:11 +0000 (17:38 +0100)]
Cleaned up change handling in cm6 editor action handling

2 years agoFinished update pass of all md editor actions to cm6
Dan Brown [Thu, 13 Apr 2023 16:18:32 +0000 (17:18 +0100)]
Finished update pass of all md editor actions to cm6

2 years agoUpdated another range of actions for cm6
Dan Brown [Thu, 13 Apr 2023 11:51:52 +0000 (12:51 +0100)]
Updated another range of actions for cm6

2 years agoMade a start on updating editor actions
Dan Brown [Tue, 11 Apr 2023 12:16:04 +0000 (13:16 +0100)]
Made a start on updating editor actions

2 years agoGot md shortcuts working, marked actions for update
Dan Brown [Tue, 11 Apr 2023 10:48:58 +0000 (11:48 +0100)]
Got md shortcuts working, marked actions for update

2 years agoGot markdown editor barely functional
Dan Brown [Mon, 10 Apr 2023 14:01:44 +0000 (15:01 +0100)]
Got markdown editor barely functional

Updated content sync and preview scoll sync to work.
Many features commented out until they can be updated.

2 years agoMerge branch 'v23.02-branch' into development
Dan Brown [Fri, 7 Apr 2023 17:12:00 +0000 (18:12 +0100)]
Merge branch 'v23.02-branch' into development

2 years agoUpdated translator attribution before release v23.02.3
Dan Brown [Fri, 7 Apr 2023 17:06:44 +0000 (18:06 +0100)]
Updated translator attribution before release v23.02.3

2 years agoUpdated translations with latest Crowdin changes (#4131)
Dan Brown [Fri, 7 Apr 2023 16:59:34 +0000 (17:59 +0100)]
Updated translations with latest Crowdin changes (#4131)

2 years agoUpdated translations with latest Crowdin changes (#4131)
Dan Brown [Fri, 7 Apr 2023 16:59:34 +0000 (17:59 +0100)]
Updated translations with latest Crowdin changes (#4131)

2 years agoFixed tag numbering in last commit
Dan Brown [Fri, 7 Apr 2023 16:54:17 +0000 (17:54 +0100)]
Fixed tag numbering in last commit

2 years agoFixed click issue with tag suggestions in safari
Dan Brown [Fri, 7 Apr 2023 16:47:46 +0000 (17:47 +0100)]
Fixed click issue with tag suggestions in safari

Updated selectable elements to be divs instead of buttons since Safari
akwardly does not focus on buttons on click.
Also standardised keyboard handling to our standard nav class.
Also addressed empty tag values showing in results.
For #4139

2 years agoFixed error upon user delete with no migration id
Dan Brown [Fri, 7 Apr 2023 14:57:21 +0000 (15:57 +0100)]
Fixed error upon user delete with no migration id

Fixes #4162

2 years agoCleaned up old token services
Dan Brown [Tue, 4 Apr 2023 09:44:38 +0000 (10:44 +0100)]
Cleaned up old token services

2 years agoAdd WKHTMLTOPDF to .env.example.complete 4145/head
Daiki Urata [Thu, 30 Mar 2023 08:58:17 +0000 (17:58 +0900)]
Add WKHTMLTOPDF to .env.example.complete

2 years agoMerge branch 'v23.02-branch' into development
Dan Brown [Sat, 25 Mar 2023 12:33:59 +0000 (12:33 +0000)]
Merge branch 'v23.02-branch' into development

2 years agoFixed delete role failing with no migrate role provided
Dan Brown [Sat, 25 Mar 2023 12:07:59 +0000 (12:07 +0000)]
Fixed delete role failing with no migrate role provided

For #4128

2 years agoUpdated php deps
Dan Brown [Fri, 24 Mar 2023 14:46:30 +0000 (14:46 +0000)]
Updated php deps

2 years agoFixed issue with user delete ownership not migrating
Dan Brown [Fri, 24 Mar 2023 14:43:48 +0000 (14:43 +0000)]
Fixed issue with user delete ownership not migrating

Caused by input not being part of the submitted form.
Updated test to ensure the input is within a form.
For #4124

2 years agoUpdated php deps
Dan Brown [Mon, 13 Mar 2023 21:03:00 +0000 (21:03 +0000)]
Updated php deps

2 years agoMerged latest crowdin changes
Dan Brown [Sat, 25 Mar 2023 12:18:45 +0000 (12:18 +0000)]
Merged latest crowdin changes

2 years agoFixed delete role failing with no migrate role provided
Dan Brown [Sat, 25 Mar 2023 12:07:59 +0000 (12:07 +0000)]
Fixed delete role failing with no migrate role provided

For #4128

2 years agoUpdated php deps
Dan Brown [Fri, 24 Mar 2023 14:46:30 +0000 (14:46 +0000)]
Updated php deps

2 years agoFixed issue with user delete ownership not migrating
Dan Brown [Fri, 24 Mar 2023 14:43:48 +0000 (14:43 +0000)]
Fixed issue with user delete ownership not migrating

Caused by input not being part of the submitted form.
Updated test to ensure the input is within a form.
For #4124

2 years agoAllow a user to disable peer check when using TLS/STARTTLS 4126/head
Vincent Bernat [Fri, 24 Mar 2023 08:34:37 +0000 (09:34 +0100)]
Allow a user to disable peer check when using TLS/STARTTLS

This is useful when developing and on Docker setups. Despite setting
encryption to null, if a server supports STARTTLS with a self-signed
certificate, the mailer try to upgrade the connection with STARTTLS.

2 years agoAdded own twig/smarty packages for cm6 lang support
Dan Brown [Tue, 21 Mar 2023 20:53:35 +0000 (20:53 +0000)]
Added own twig/smarty packages for cm6 lang support

2 years agoMerge branch 'development' into codemirror6
Dan Brown [Sun, 19 Mar 2023 10:22:44 +0000 (10:22 +0000)]
Merge branch 'development' into codemirror6

2 years agoMerge pull request #4103 from BookStackApp/image_api
Dan Brown [Wed, 15 Mar 2023 11:45:36 +0000 (11:45 +0000)]
Merge pull request #4103 from BookStackApp/image_api

Image API Endpoints

2 years agoAdded examples, updated docs for image gallery api endpoints 4103/head
Dan Brown [Wed, 15 Mar 2023 11:37:03 +0000 (11:37 +0000)]
Added examples, updated docs for image gallery api endpoints

2 years agoAdded phpunit tests to cover image API endpoints
Dan Brown [Tue, 14 Mar 2023 19:29:08 +0000 (19:29 +0000)]
Added phpunit tests to cover image API endpoints

2 years agoStarted Image API build
Dan Brown [Tue, 14 Mar 2023 12:19:19 +0000 (12:19 +0000)]
Started Image API build

2 years agoUpdated php deps
Dan Brown [Mon, 13 Mar 2023 21:03:00 +0000 (21:03 +0000)]
Updated php deps

2 years agoMerge pull request #4099 from BookStackApp/permissions_api
Dan Brown [Mon, 13 Mar 2023 20:55:44 +0000 (20:55 +0000)]
Merge pull request #4099 from BookStackApp/permissions_api

Content-Permissions API Endpoints

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