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.
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.
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.
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.
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.
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.
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)
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.
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
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.
Dan Brown [Mon, 27 Feb 2023 19:09:20 +0000 (19:09 +0000)]
Fixed language locale setting issue
Attempted to access an array that had been filtered and therefore could
have holes within, including as position 0 which would then be
accessed.
Also added cs language to internal map
Dan Brown [Thu, 23 Feb 2023 22:14:47 +0000 (22:14 +0000)]
Changed the way settings are loaded
This new method batch-loads them from the database, and removes the
cache-layer with the intention that a couple of batch fetches from the
DB is more efficient than hitting the cache each time.
Dan Brown [Thu, 23 Feb 2023 12:30:27 +0000 (12:30 +0000)]
Changed autosave handling for better editor performance
This changes how the editors interact with the parent page-editor
compontent, which handles auto-saving.
Instead of blasting the full editor content upon any change to that
parent compontent, the editors just alert of a change, without the
content. The parent compontent then requests the editor content from the
editor component when it needs that data for an autosave.
Dan Brown [Wed, 22 Feb 2023 14:32:40 +0000 (14:32 +0000)]
Made page-save HTML formatting much more efficient
Replaced the existing xpath-heavy system with a more manual traversal
approach. Fixes following slow areas of old system:
- Old system would repeat ID-setting action for elements (Headers could
be processed up to three times).
- Old system had a few very open xpath queries for headers.
- Old system would update links on every ID change, which triggers it's
own xpath query for links, leading to exponential scaling issues.
New system only does one xpath query for links when changes are needed.
Added test to cover.
Dan Brown [Mon, 20 Feb 2023 13:05:23 +0000 (13:05 +0000)]
Increased attachment link limit from 192 to 2k
Added test to cover.
Did attempt a 64k limit, but values over 2k significantly increase
chance of other issues since this URL may be used in redirect headers.
Would rather catch issues in-app.
Dan Brown [Mon, 20 Feb 2023 12:05:52 +0000 (12:05 +0000)]
Updated language files to remove literal "1" values
This is to encourge the ":count" values to be used instead of 1s in the
translated variants so that non-pluralised languages are hardcoded with
"1"s in their content, even when not used in a singular context.
Dan Brown [Sat, 18 Feb 2023 18:36:34 +0000 (18:36 +0000)]
Aded roles API controller methods
Altered & updated permissions repo, and existing connected
RoleController to suit.
Also extracts in-app success notifications to auto activity system.
Tweaked tests where required.