Wykres commitów

13496 Commity (e124a08e8da74371cc1c60a8ed64b1046b7c9431)

Autor SHA1 Wiadomość Data
Matt Westcott e124a08e8d Use ContextMixin for image chooser views
so that we can use other mixins to populate the context
2022-08-02 19:28:49 +02:00
Matt Westcott dd892a6508 Use ChosenResponseMixin for returning 'image chosen' responses 2022-08-02 19:28:49 +02:00
Matt Westcott de2662ff56 Make chooser upload view into a class-based view 2022-08-02 19:28:49 +02:00
Matt Westcott db41ae4dde Make image_chosen view into a class-based view 2022-08-02 19:28:49 +02:00
Matt Westcott ade352d538 Split out get_object_list and filter_object_list methods 2022-08-02 19:28:49 +02:00
Matt Westcott f861bf991e Move collection filter into filter form 2022-08-02 19:28:49 +02:00
Matt Westcott 0ab0ecc78f Remove unnecessary seek operation
file.open does this already.
2022-08-02 18:53:56 +02:00
Matt Westcott 8ca7cc72d5 Remove now-unnecessary save_object methods 2022-08-02 18:53:56 +02:00
Matt Westcott 9d7f0d16c5 Handle deletion of original file in form.save 2022-08-02 18:53:56 +02:00
Matt Westcott 9667088e98 Move setting metadata / reindexing into form.save() 2022-08-02 18:53:56 +02:00
Matt Westcott fe73506747 Move file.open call into set-file-metadata method
If the file is already open this is the same as seek(0), so there are no unwanted side effects from this.
2022-08-02 18:53:56 +02:00
Matt Westcott fcb2776383 Add a _set_document_file_metadata helper method 2022-08-02 18:53:56 +02:00
Matt Westcott a9aa3cdc21 Add a _set_image_file_metadata helper method 2022-08-02 18:53:56 +02:00
Matt Westcott 112f2ea7da Fix focus() to focus the correct button in the 'chosen' vs 'unchosen' divs according to the widget state 2022-08-02 16:41:46 +02:00
Matt Westcott f91daa7f3e Use textContent rather than innerText for accessing title element
innerText is unimplemented by jest / jsdom, as per https://github.com/jsdom/jsdom/issues/1245
2022-08-02 16:41:45 +02:00
Matt Westcott d1f21993dc Deprecate createPageChooser 2022-08-02 16:38:28 +02:00
Matt Westcott e21e1d6644 Correctly handle edit link element being omitted from chooser widget 2022-08-02 16:37:24 +02:00
Matt Westcott 7d2f1d4286 Make PageChooser widget inherit from base Chooser 2022-08-02 16:35:59 +02:00
Matt Westcott f048970b73 make the 'edit_link' key name customisable 2022-08-02 16:35:58 +02:00
Matt Westcott edb40be2a0 Support urlParams when calling ModalWorkflow from chooser widgets 2022-08-02 16:32:49 +02:00
Matt Westcott dc4deae871 eliminate jQuery from PageChooser 2022-08-02 16:32:49 +02:00
Matt Westcott 3a7c302228 Refactor a PageChooser class out of createPageChooser 2022-08-02 16:32:49 +02:00
LB (Ben Johnston) 8cda62471d
Add third party tutorials (#8924) 2022-08-01 09:25:41 -04:00
Paritosh Kabra 63e0181f93 Fix query search in filtered image admin listing
- fixes #8029
- Fix Search Images within a Collection and an empty search query param - `admin/images/?collection_id=1&q=1`
2022-08-01 20:20:46 +10:00
LB Johnston 65f2512b87 changelog for #8903 2022-08-01 08:22:27 +10:00
Sage Abdullah d87d53fca8 Fix privacy dialog toggle color in status side panel 2022-08-01 08:22:27 +10:00
Sage Abdullah 2961c90ae1 Add missing type="button" in collections/_privacy_switch.html 2022-08-01 08:22:27 +10:00
LB Johnston 18ad15a18f changelog entry for #8922
- resolves #8818
2022-07-31 04:11:07 +10:00
LB Johnston 22e904fb01 Refine dashboard design - summary panels
* Update colours and icons for summary panels
* add h1 id for aria referencing
* rework layout to use flex box & not floats
* move summary styles to own component scss file
* now functions correctly in RTL mode
2022-07-31 04:11:07 +10:00
PaarthAgarwal 684c173729 Refine dashboard design - header
* Updated header - updated avatar alignment, use theme variables
* pulled header_description out of h1, added info of header_description
* #8818
2022-07-31 04:11:07 +10:00
Jaap Roes 649a8623a0 Correctly validate from/to column index in redirect import
- fixes #8813
- relates to #6913 #8814
- add file hash check to ensure that no content can be tampered with mid-request after form submis
2022-07-30 17:54:02 +10:00
PaarthAgarwal 37b83a3976 updated page listings header to new designs
- fixes #8868
2022-07-30 17:30:21 +10:00
Scott Cranfill f72aec9b61 Ensure consistent sidebar icon position whether expanded or collapsed
Adding vertical margin gives them same height when collapsed as the text with line-height when expanded.
2022-07-30 17:22:49 +10:00
PaarthAgarwal bcb5b2baac fix breadcrumbs for root page on page listing
- when breadcrumbs show in the root page - it is the only item
- ensure the content is inset so that it shows correctly
2022-07-26 22:46:24 +10:00
PaarthAgarwal 887a259723 added translate button to header actions dropdown, removed all the instances of is_parent
- Fixed failing tests, added check for simple_translations enabled
- resolves #8866
2022-07-26 22:36:35 +10:00
PaarthAgarwal 2a751e9b00 updated help block colours & link styles
- resolves #8896
2022-07-26 22:01:12 +10:00
LB (Ben Johnston) 7313419fc9
add links to styleguide help blocks for easier validation (#8899) 2022-07-25 13:59:55 -04:00
LB Johnston dc61036614 changelog for #8777 & #8778 2022-07-23 11:33:01 +10:00
Matt Westcott 157f7674bc Eliminate the custom response name 'imageChosen' 2022-07-23 11:33:01 +10:00
Matt Westcott dec7cdd9bf Deprecate createImageChooser 2022-07-23 11:33:01 +10:00
Matt Westcott 89d89334ca Make ImageChooser a subclass of Chooser
Need to split out a Chooser.initHTMLElements method so that we can set up this.previewImage before using it in getStateFromHTML.
2022-07-23 11:33:01 +10:00
Matt Westcott 20d941cfbf eliminate jquery from ImageChooser 2022-07-23 11:33:01 +10:00
Matt Westcott 57562c0f3a Refactor an ImageChooser class out of createImageChooser
Use the client/src/components/ChooserWidget Chooser class as a guide, but don't copy code from there (so that any image-specific customisations don't get lost in translation)
2022-07-23 11:33:01 +10:00
Matt Westcott 870b1df5e7 Rename getStateFromHtml to getStateFromHTML
because that matches things like innerHTML, and it'll be annoying to change once it's used in the wild
2022-07-23 11:11:08 +10:00
Matt Westcott 6dba0cf447 Eliminate the custom response name 'documentChosen' 2022-07-23 11:11:08 +10:00
Matt Westcott 61d45e3150 Deprecate createDocumentChooser 2022-07-23 11:11:08 +10:00
Matt Westcott 049bb340c9 Make DocumentChooser a subclass of Chooser
Remove pretty much the entire implementation because it's identical :-)
2022-07-23 11:11:08 +10:00
Matt Westcott b87585d044 eliminate jquery from DocumentChooser 2022-07-23 11:11:08 +10:00
Matt Westcott 96c92d4a68 Refactor a DocumentChooser class out of createDocumentChooser
Use the client/src/components/ChooserWidget Chooser class as a guide, but don't copy code from there (so that any snippet-specific customisations don't get lost in translation)
2022-07-23 11:11:08 +10:00
LB Johnston 1849122e5f documentation - update reference/contrib content to markdown 2022-07-23 10:42:06 +10:00