Commit Graph

4780 Commits

Author SHA1 Message Date
Luke Towers dd8ceaa106 Merge branch 'develop' into wip/laravel-6 2020-06-27 20:06:39 -06:00
Luke Towers b2d88d6da9 Fix issue when refreshing an entire form that occurs because the toggleEmptyTabs timer runs after the elements it was based on have all been replaced. 2020-06-24 11:33:44 -06:00
Ben Thomson 47ca69e1f4
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-06-23 11:01:21 +08:00
Giuseppe Montuoro cbbc82ac86
Use the current context when making redirects in FormController onSave handlers (#5132)
Related: d0546599d1
2020-06-20 16:04:57 -06:00
Luke Towers ef36399cf7 Improve error handling for invalid counter properties on backend menu items 2020-06-19 23:54:44 -06:00
Luke Towers 1b8fae0ef0 Fix visual glitch on inspector autocomplete fields.
Fixes #5085
2020-06-18 11:55:14 -06:00
Luke Towers dc400a0e20 Fix issue where the throttle feature was no longer logging IP addresses.
Fixes #5128
2020-06-18 11:27:53 -06:00
Luke Towers b384954a29 Improve Froala sanitization of pasted content. 2020-06-18 11:03:48 -06:00
Luke Towers 9c6c6b5a12 Merge branch 'develop' into wip/laravel-6 2020-06-17 03:37:55 -06:00
Luke Towers 0cdda52eb8 Fix bug where a field with `@context` in the name would completely break forms if it also depended on other fields.
The bug occurred because if specific fields aren't detected in onRefresh(), the entire Form widget HTML will be returned as the result instead of specific fields. This created a problem because the october.form.js JS is not setup to gracefully handle having the entire root form DOM node completely replaced in the middle of a request being completed. Specifically, this would cause problems when trying to detect empty tabs, and then the problems would cascade from there as there would be an instance of october.form.js attached to the page with broken references to no-longer existing DOM nodes.

This fix solves the immediate issue of `field@context` using the `dependsOn` feature breaking by ensuring that the actual final field name for a given field is used instead of the name used in the configuration of the field. Future work should probably be done to better support an entire form being re-rendered if no fields are detected in onRefresh however.
2020-06-17 03:05:40 -06:00
Tomasz Strojny 68d0667bd4
Updated Polish translation (#5129) 2020-06-17 16:10:37 +08:00
Romain 'Maz' BILLOIR 81a11f70c4
Fix Froala strip empty tags issue (#5126)
Co-authored-by: Ben Thomson <git@alfreido.com>
2020-06-16 14:59:40 +08:00
Luke Towers 24f87ae10e Also remove custom sorts from relationcontroller lists / pivot manage modes.
Fixes https://github.com/octobercms/october/issues/4335#issuecomment-643706004, refs: 5f8a5454ee
2020-06-14 14:29:21 -06:00
Luke Towers ad69711634 Merge branch 'develop' into wip/laravel-6 2020-06-11 10:38:29 -06:00
Ben Thomson 8dba43ba0b
Allow plugin autoloaders to load on restricted pages and actions (#5120)
Allow plugin autoloaders to load, even on restricted pages. This allows (enabled) plugins to load their autoloaders on any pages, allowing includes in migration files to run.

Fixes #5110.
2020-06-09 21:46:17 -06:00
Luke Towers c03fd66aeb Support new onUpload() AJAX handler for uploads instead of postback takeovers.
Fixes #5104. Refs: 4f7e2995c7
2020-06-05 16:01:22 -06:00
Luke Towers 02af8bb254 Improve error handling when uploading a file that exceeds the server's post_max_size 2020-06-05 15:56:15 -06:00
Luke Towers 314b15dd13 Support decompiling mediamanager assets 2020-06-05 15:52:59 -06:00
Luke Towers 434f2cd433 Improve error handling for UploadableWidgets 2020-06-05 15:52:27 -06:00
Luke Towers 547d9bffeb Support nested asset files and files under a symlinked directory when decompiling backend assets 2020-06-05 15:51:12 -06:00
Luke Towers 33795fe6aa Delete unnecessary file 2020-06-04 09:19:24 -06:00
Alexander Guth 9e64e63805
Add filters widget to the pivot view (#5099)
Fixes #5089
2020-06-02 00:53:57 -06:00
Samuell b63a39b106
Add missing import (#5101) 2020-06-01 10:42:15 -06:00
Luke Towers 5c3ba9a28a Fix naming conflict
Reported by @alxy https://github.com/octobercms/october/pull/5088#issuecomment-636448210
2020-05-31 11:23:31 -06:00
Luke Towers 5c7ba9fbe9 Update combined jquery file to 3.4.0, added fix for #5097 2020-05-31 02:32:58 -06:00
Luke Towers 252c9b7f58 Merge branch 'develop' into wip/laravel-6 2020-05-27 12:44:54 -06:00
Ben Thomson a43833d511
Trigger dependency check for remote values for inspector dropdown properties (#5071) 2020-05-27 09:36:21 +08:00
Marco Grüter b417a4938f
Render the css classes on the filter widget (#5067) 2020-05-26 15:25:06 -06:00
Nick Khaetsky ce7335f6cb
Add warning with missing dependencies on Updates page (#5077)
Fixes #4843.
2020-05-26 10:05:40 -06:00
Alwin Drenth 8196b8169e
Improved Dutch translations (#5091) 2020-05-26 09:59:11 -06:00
Dieter Holvoet 40d8bb453e
Get file and folder metadata for media items using a single network call if possible (#5046)
Co-Authored-By: Ben Thomson <ben@abweb.com.au>. Fixes #5045.
2020-05-26 03:20:41 -06:00
Luke Towers 71d579b947 Update language string 2020-05-25 18:11:05 -06:00
Luke Towers 9ecfb4867b Add new backend.allow_unsafe_markdown permission 2020-05-25 18:02:20 -06:00
Luke Towers 655c8011b9
Fix client side validation (#5088)
* Add data-request-validate to core save buttons

* Check if client side validation is desired before running it

Fixes #5076.
2020-05-25 12:53:48 -06:00
Luke Towers 62a4354b6f Merge branch 'develop' into wip/laravel-6 2020-05-22 21:04:15 -06:00
Luke Towers 0c46209725 Fix crash when a cached path doesn't actually exist in the specified datasource
Fixes an issue when using databaseTemplates where if the pathCache had been generated, and then any template was removed from the database manually the pathCache being out of date would cause an exception to be thrown elsewhere.
2020-05-22 21:01:45 -06:00
Luke Towers 908d2f91c4 Merge branch 'develop' into wip/laravel-6 2020-05-21 09:47:38 -06:00
Nick Khaetsky 7af73a0ade
Add "Install themes" button on updates page (#5075)
Very often in our community people asking question:"How do i install theme from marketplace?" 
And to answer that question we should say "Just press Install plugins button!"
That's not very intuitive for beginners. This PR adds one button that leads right to themes installation page.
2020-05-19 11:16:49 -06:00
Ben Thomson cf12edb861
Use IE11-compatible code for worker deregistration. (#5079)
Fixes #5078.
2020-05-19 18:59:03 +08:00
Ben Thomson c3a5780d37
Update providers and alias to use October Validator service 2020-05-19 12:47:49 +08:00
Ben Thomson 5c8f567323
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-05-18 08:35:03 +08:00
Mantas Šimkūnas a5ccfb2f99
Documented indeterminate checkboxes (#5068) 2020-05-12 11:30:03 -06:00
Marc Jauvin 15e4e53901
fix typos in halcyon (#5066) 2020-05-05 11:12:45 -06:00
Flynsarmy b896924dec
Only prepare the filter widget if there are scopes to prepare (#5064)
Fixes #5063. Collaborative effort between @LukeTowers & @Flynsarmy
2020-05-05 00:07:08 -06:00
Luke Towers e78d5fe2bf Merge branch 'develop' into wip/laravel-6
# Conflicts:
#	modules/system/classes/UpdateManager.php
#	modules/system/classes/VersionManager.php
2020-04-29 16:58:58 -06:00
Luke Towers fc8e258c6d set attributes and save instead of creating via mass assignment to play nicer with various features and avoid requiring fillable properties to be set 2020-04-29 16:48:46 -06:00
Marc Jauvin 29740ea1e8
add input tag id to css selector so it does not get overriden by a more generic css rule (#5057)
Improves on fix to #5054
2020-04-29 15:50:12 -06:00
Luke Towers 35ecf7019d Fix visual bug with remember checkbox on mobile.
Fixes #5054
2020-04-28 09:56:02 -06:00
Tobias Kündig dc72cafcd1
Don't persist failed search terms (#5039)
If a column is defined as searchable, that is not actually searchable (like a partial) and a user filters a list using the searchbox, an Exception is thrown.

Unfortunately, this errorenous search term has already been persisted to the session so on subsequent page loads, the user is presented with an Exception with no way to resolve it themselves.

This PR catches any exception that happens during the search and resets any persisted search terms so that the user can continue working after a page load.

The exception itself will still be thrown.

To reproduce the issue this PR solves:

Set a partial column in any list as searchable: true
Submit a search query
Hit F5
2020-04-27 01:55:40 -06:00
Web-VPF a2b835864e
Updated Russian translation (#5048) 2020-04-21 14:50:50 -06:00
Calum 1c621ae4c9
Support git submodules in october:util git pull (#5047) 2020-04-19 19:56:19 -06:00
Aurélien Roy 6097566c52
Allow blob files naming in AJAX request (#5042) 2020-04-18 20:43:47 -06:00
Ben Thomson 28e8758648
Further compat fixes 2020-04-17 11:45:48 +08:00
Ben Thomson 3720af4c02
Make ImportModel compatible with League/CSV v9 2020-04-17 11:37:30 +08:00
Đorđe Jocić d029d6ea24
Added Serbian translation (#5040) 2020-04-14 21:58:47 -06:00
Ben Thomson 965732bd45
Allow sidePanel to be used independent of sideNav
Also, updated compiled assets
2020-04-15 00:16:29 +08:00
4NIK3T baca3c8adf
Allow translations of default column values (#5038)
Currently the default column values cannot be translated. This change will allow us to translate them.
2020-04-12 11:17:45 -06:00
Kallef Alexandre b4c65e9feb
Added plugin:rollback command (#4389) 2020-04-11 09:46:22 -06:00
Mike Robinson d69ade86d1
Validate backend forms client-side (#4804)
Fixes #4799.
2020-04-09 14:24:51 -06:00
Ben Thomson 460aca5b01
Reset outline to default - roll back #4895 (#5035)
Replaces #4965. Rolls back #4895. Fixes #4964. Partially fixes #4819.

The previous attempts to add a stylised "focus" ring, while with the best intentions, did not take into account how "outline" normally works for people using visual aids. Most high contrast software will effect the outline if its available (ie. make it bolder or more prevalant), thus the "outline" property is paramount to maintaining accessibility.

The previous changes also present issues with elements using box-shadows already, and again, on high contrast, box-shadows are no longer rendered.

This change will bring back the outline property for focus, but with an addition to allow a blue highlight for Firefox, would should keep it in "parity" with WebKit.

Refs:
- https://a11yproject.com/posts/never-remove-css-outlines/
-  http://www.outlinenone.com
- https://stackoverflow.com/questions/52589391/css-box-shadow-vs-outline
2020-04-09 11:50:00 -06:00
Luke Towers 6a6331ba15 Merge branch 'develop' into wip/laravel-6 2020-04-08 12:40:02 -06:00
Ashleigh Sims 439ed2cc33
Unsuspend a backend user from user update screen (#5032) 2020-04-07 13:22:41 -06:00
Ben Thomson 9155e7de7e
Properly scope the search query in filter widgets.
The search input in filters used a local data request to filter options. While this worked fine for most cases, it failed inside modal relations as the relation keys were not being pushed through due to the request not being linked to the relation modal.

This refactors the request to run through the relation modal, emulating the functionality of "data-track-input" to debounce text entry.

Fixes https://github.com/octobercms/october/issues/4775
2020-04-06 15:45:22 +08:00
Ben Thomson b5d5e8c20d
Update dashboard column count in lang strings (now 12 columns) 2020-04-05 22:47:36 +08:00
Blaž Oražem 758d8e01e3
Slovenian language update (#5028) 2020-04-05 22:46:24 +08:00
Luke Towers 9574e2dba9 Merge branch 'develop' into wip/laravel-6 2020-04-04 23:16:56 -06:00
Luke Towers 4b4a9af266 satisfy the code sniffer 2020-04-04 22:26:52 -06:00
Luke Towers 5d4f3dd90a Support ignoreTimezone on `type: date` filter scopes too 2020-04-04 22:16:32 -06:00
Larry Barker 56e2805f15
Add option to ignore timestamps for date range filters (#4966) 2020-04-04 22:12:32 -06:00
Luke Towers c7c94347f2 Compile assets 2020-04-04 22:02:18 -06:00
Rike-cz b445b65150
Add support for linkable form tabs (#4754) 2020-04-04 21:56:48 -06:00
Luke Towers 3ca80f70f1 Merge branch 'develop' into wip/laravel-6 2020-04-04 21:41:36 -06:00
Luke Towers ed2d63dd0e add missing break statements 2020-04-04 21:41:24 -06:00
Luke Towers c2544d40b4 Fixed bug from relation controller customization improvements PR 2020-04-04 21:24:53 -06:00
Luke Towers 4b22d06c60 Merge branch 'develop' into wip/laravel-6 2020-04-04 14:11:05 -06:00
Szabó Gergő b8a6571c1c
Improved Hungarian translation (#5027) 2020-04-04 14:05:01 -06:00
Ben Thomson cc1c1096b0
Remove newline between "throws" and "return" 2020-04-05 01:06:47 +08:00
Dan Harrin 903b5b01ea
Add support for "soft" components (#4539) 2020-04-05 01:02:43 +08:00
Ben Thomson c7ba577fae
Use root namespace for Exception in catch block 2020-04-05 00:55:35 +08:00
Luke Towers 44cc5d371b Merge branch 'develop' into wip/laravel-6 2020-04-04 02:32:16 -06:00
Luke Towers 4f7e2995c7
Simplify Media Library upload logic (#5026)
Based heavily off the work done by @alxy in #4314

May require https://github.com/rainlab/pages-plugin/pull/421 if testing with RainLab.Pages.

Replaces #4314, related: #4311, Credit to @alxy for the initial work.
2020-04-04 02:11:28 -06:00
Luke Towers 459677a168 Code cleanup left over from #4311 2020-04-04 00:44:44 -06:00
Luke Towers 0edde0eb94 Improve opcache config check 2020-04-03 09:08:22 -06:00
Tobias Kündig 86197f59cb
Add Preset buttons for editor toolbar settings (#4700)
Fixes #4187.
2020-04-03 08:47:20 -06:00
Luke Towers 8b9c001b9a Allow disabled plugin's translations to load for display translations on system pages 2020-04-02 22:15:30 -06:00
Luke Towers d9a7942058 Fixed issue where Froala toolbar popups appearing outside of the editor would not display.
Code was left over from when redactor was still the main editor.
2020-04-02 11:38:45 -06:00
LeMaX10 ea42de9181
Use plugin & theme path helpers in the update manager (#4770) 2020-04-02 10:52:23 -06:00
Tobias Kündig 32443135c9
Remove JS layout calculations of the backend navbar by using flexbox (#4811) 2020-04-02 10:47:24 -06:00
Luke Towers ccb2c372bb Only force absolute URLs for media items if cms.linkPolicy = force
This fixes #4082 & rainlab/pages-plugin#405. Reverts a previous breaking change from Build 444 (introduced in #3536) by limiting the scope to which it applies.
2020-04-02 10:18:23 -06:00
yfktn 158fc43f62
Trigger change events when RelationController pivot records are created or updated (#4997)
Fixes #4996. When any pivot value change or add with relationManager, the filterFields will triggered too.
2020-04-02 09:33:41 -06:00
Marc Jauvin b1d41caf03
Improve PluginManager code (#5023) 2020-04-02 09:30:15 -06:00
Marc Jauvin 600fbd7cfa
Improve code readability for exists method (#5022) 2020-04-02 08:33:58 -06:00
Luke Towers 61b4ef6a47 Minor cleanups to the PluginManager.
Cleans up docblocks and makes most helper methods more permissive of incorrectly cased plugin identifiers. Replaces #4838 & #4837. Credit to @mjuavin for the case insensitivity fixes.
2020-04-01 21:30:54 -06:00
Luke Towers e4571c3dd4
Add usingSource method to active datasource (#5017)
This allows the `theme:sync` command to properly sync to specified targets.

Fixes #4887. Replaces #4935. Credit to @bennothommo for the initial implementation.
2020-04-01 18:12:50 +08:00
Romain 'Maz' BILLOIR 2b22c0e49a
Allows model scope with join (#4970)
More info in [this forum post](https://octobercms.com/forum/post/displays-a-related-model-with-scope-which-uses-join-doesnt-work-is-that-an-october-issue)
2020-03-31 16:45:19 -06:00
Tobias Kündig 6e25c5a8d0
Fix saving of translations in relation controller by re-using the form widget's model (#4822)
This PR is an addition to https://github.com/octobercms/october/pull/4193

Re-using the pivotWidget's and manageWidget's models for saving form data fixes https://github.com/rainlab/translate-plugin/issues/209, where translations are not saved for the model when editing it in a relation widget.

I did some manual testing with this change and everything was working as expected: Translations are now properly saved when creating or editing related models with pivot data. Creating related models in `single` mode now works as well.

Credits to @alxy for his previous work on this issue!
2020-03-31 11:44:13 -06:00
Luke Towers 8c7d50a638 Remove leftover code 2020-03-31 10:09:11 -06:00
Luke Towers 832809841f Switch to using league/csv >= 9.1 2020-03-31 09:57:36 -06:00
Luke Towers ff02e59740 Merge branch 'develop' into wip/laravel-6 2020-03-31 09:54:00 -06:00
Luke Towers 802d8c8e09 Temporary workaround until the L6 upgrade can be merged in to use league/csv >= 9.1 2020-03-31 09:53:35 -06:00
Rike-cz 2fa306b5a7
Add iconv fallback support for mbstring unsupported encodings (#5015) 2020-03-31 09:15:17 -06:00
Luke Towers 79f0a9413b Merge branch 'develop' into wip/laravel-6
# Conflicts:
#	composer.json
2020-03-31 04:36:47 -06:00
Luke Towers cd0b6a791f escape import CSV column names 2020-03-31 04:17:41 -06:00
Luke Towers 6711dae8ef Improve asset file path handling when moving assets 2020-03-31 04:09:18 -06:00
Luke Towers 2b8939cc8b Improve asset file path handling 2020-03-31 03:37:31 -06:00
Samuell a9b4a5b2c7
Prevent browser caching of list checkboxes (#4949) 2020-03-31 02:31:16 -06:00
fansaien 9995dddc75
Load mail layouts from view files if not found in the database (#4904)
Brings mail layouts more in line with the rest of the mail template pieces by loading from the relevant view files when the layout doesn't exist in the database.
2020-03-31 02:27:46 -06:00
Luke Towers d3596310c6 z-index fixes for richeditor toolbar.
Fixes #4868. Related to d7b0e55ceb.
2020-03-31 01:35:21 -06:00
Ayumi 8ceccb07a4
Add an unique identifier to all the filter container popup boxes (#4846)
Fixes #4845.
2020-03-31 01:07:07 -06:00
Luke Towers 243c835c24 Minor performance improvement for PluginManager.
Suggested by @tobias-kuendig in #4337, implemented because normalizeIdentifier() would be called more frequently by merging #4838.
2020-03-31 00:36:33 -06:00
Luke Towers 52cdfda935 Trigger form change events when items are added / removed in a repeater.
Fixes #3595. Replaces #4736. Credit to @SebastiaanKloos for the initial solution.

Also fixes a longstanding issue where dynamically added fields were not considered when refreshing dependant fields.
2020-03-30 18:07:53 -06:00
Larry Barker 0522f50bf4
Add support for non-numeric menu counter values (#4661)
Documented in https://github.com/octobercms/docs/pull/447
2020-03-30 11:49:03 -06:00
Klaas Poortinga 3a7224c2ec
Improve richeditor support for preview mode and attributes property (#5011) 2020-03-30 11:33:03 -06:00
Klaas Poortinga 141893d6a7
MediaFinder modifications (#5010) 2020-03-30 11:30:59 -06:00
Klaas Poortinga 280ae00b88
Colorpicker improvements (#5002)
* add readonly and disabled support to colorpicker

* add support for attributes in colorpicker widget

* Hide default options is disabled and readonly state. Modify styling to be more inline with spectrum disabled state
2020-03-29 10:06:02 -06:00
Klaas Poortinga 2ad046f7ae
Markdown formwidget improvements (#5004)
* add readonly and disabled support to markdown editor

* add attributes support to markdown editor
2020-03-29 09:37:03 -06:00
Kmarty 8c0598cc4a
Fix: Not reflecting "defaultMask" when uploading file@CMS (#4698)
When uploading file through "CMS"->"Files"->"Add" -> "Upload file(s)", uploaded file doesn't have set file permissions according to "cms.defaultMask.file" from Config.

This patch fixes it so "defaultMask" can be different from umask and file has correctly set its permissions (usefull when required permissions are other than "644") as well as it has files/directories directly created in CMS section.
2020-03-29 09:27:23 -06:00
Klaas Poortinga 1aa3250c3a
Add support for the attributes property to fileupload formwidget (#5012) 2020-03-29 09:03:31 -06:00
Ben Thomson 98a2fb150f
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-03-29 15:45:31 +08:00
Ben Thomson a92597064b
october:env command fixes
- Adds quotes around all strings inserted into config files, preventing them from being interpreted as constants.
- Changed all private methods in OctoberEnv.php to protected.
- Updated test to check some config files for expected changes.
2020-03-29 15:42:46 +08:00
Dan Harrin cd86c62b94
Relation Manager Customisation Improvements (#4444)
This change allows for easy customisation of the relation manager titles and toolbar buttons.

For buttons - define your custom strings directly in the standard `toolbarButtons` syntax...

```
toolbarButtons:
    create: acme.blog::lang.subcategory.CreateButtonText
    delete: # omit the string to fall back to the default button text
```

...and the old syntax still works...

```
toolbarButtons: create|delete
```

For titles - define different strings for each mode (form, list or pivot)...

```
title:
    form: acme.blog::lang.subcategory.FormTitle
    list: acme.blog::lang.subcategory.ListTitle
```

This feature provides developer convenience, for example in this situation where I have a relation manager that is used to assign user permissions to a project:
Before
![Screenshot 2019-07-10 at 09 28 22](https://user-images.githubusercontent.com/41773797/60953626-6bc0de80-a2f5-11e9-8001-04e816ad6967.png)
After
![Screenshot 2019-07-10 at 09 32 51](https://user-images.githubusercontent.com/41773797/60953773-b9d5e200-a2f5-11e9-93a9-69238ea696aa.png)

This PR contains no breaking changes.
2020-03-27 12:56:07 -06:00
Web-VPF 3fe1c26e66
Improved Russian translation (#5005) 2020-03-27 12:16:21 -06:00
Ben Thomson ef606c76c5
Merge branch 'develop' into wip/laravel-6 2020-03-27 14:52:15 +08:00
Klaas Poortinga cbfa309c39
Modify password field to support placeholder attribute (#5003) 2020-03-26 13:38:40 -06:00
Fl0Cri bd2a774a58
Add UTF-8 BOM when exporting with useList option (#4873)
Same as #1958 but when using the list controller without an ExportModel (with `useList` in the export options)
2020-03-26 13:17:51 -06:00
Ben Thomson 6dbfdd7e65
Allow quotes to be correctly handled by october:env (#4986)
This fix will apply quotes around string environment variables which contain either a single, or double, quote as well as any variables with a hash symbol - escaping any double-quotes encountered. When artisan october:env is run, this should correctly transfer all configuration values from the config files to the .env file.

Fixes #4979.
2020-03-26 23:40:01 +08:00
Klaas Poortinga c79bea7449
Modify codeditor widget to implement html attributes set through form field definition (#5001) 2020-03-25 14:47:39 -06:00
datune f98c71aa14
Replace Illuminate Dumper with Symfony Dumper (#4998)
See https://github.com/laravel/framework/pull/25087
2020-03-24 11:51:27 -06:00
jacobdekeizer 3450921c26
Fix docbocks ListController behaviour. (#4989)
* Fix docbocks ListController behaviour.
2020-03-23 20:12:49 +11:00
Flynsarmy 39980d8346
Add formGetRedirectUrl method. (#4954)
Fixes #4946. Documented in https://github.com/octobercms/docs/pull/432
2020-03-22 00:32:27 -06:00
Luke Towers 12c952b978 Merge branch 'develop' into wip/laravel-6 2020-03-20 16:48:36 -06:00
Larry Barker 09b7e1b2fd
Add adaptive size options (#4992)
Popups can be "adaptive" meaning they fill the width and/or height of the screen. This PR adds this information to the docs to make it better known.
2020-03-19 09:55:18 -06:00
Ben Thomson 8c61985114 Merge branch 'develop' into wip/laravel-6 2020-03-16 17:13:42 +08:00
jacobdekeizer 2a86f7b32f
Fix docblocks and imports in FormController behaviour. (#4972) 2020-03-16 11:47:26 +08:00
Ben Thomson 96c062bb47
Allow dot-notation for specifying external parameters for a component (#4978) 2020-03-13 09:03:18 +08:00
Ben Thomson cca8da2af3
Get correct model when not using ID for "keyFrom" in Record Finder (#4977)
getLoadValue() was previously using the find method for getting the selected model on load when not using the Record Finder in relation mode.

This means it was searching by the primary key, regardless of whether the keyFrom setting on the Record Finder widget was changed. This has the effect of the keyFrom setting being correctly used to determine the value of the record finder field when a model is selected, but the widget being unable to find the model when it refreshes or reloads.

This change instead searches for the field's value in the column specified for the keyFrom setting, allowing us to use a different identifying column for loading the selected record.
2020-03-13 07:47:01 +08:00
Marc Jauvin 6c391b5e82
Add config for throttling login attempts into Backend (#4974) 2020-03-11 10:57:19 +08:00
Ben Thomson 2f500ab034
Auto-detect correct postback handler for datatable widget. (#4967)
This change removes the default postback handler for the datatable
widget (onSave) and instead relies on the closest form's request
handler. While `onSave` was a safe default, it did not take into account
the relation widget using other handlers.

The table widget will use an explicitly specified handler first, then it
will try and use the form's request handler, before using `onSave` as a
fallback, although this should really never occur.

Fixes #4776.
2020-03-05 16:37:16 +08:00
Luke Towers 307a662647
Improve German translation (#4961) 2020-03-04 14:49:54 -06:00
Marten 1fac424f71
Updated getParameter method hints in Router (#4908) 2020-03-04 16:36:09 +08:00
Luke Towers 8eb045f2d1 Minor performance improvement
Don't bother retrieving the translated URL at construction time, it will be run through the translator during the validation process so there's no need to always hit the translator on every single Page model being loaded.
2020-03-03 10:38:03 -06:00
Samuel Georges aff120fcec Remove return types
These can be added back in post-Laravel 6 era (> PHP 7.2)
Also removed the defaults since they are no longer needed, supplied by the new objects

Refs #4929
2020-03-01 18:15:44 +11:00
Klaas Poortinga bf8ab3612e
Modify menu structure to objects (#4929)
* Modify menu structure to objects
2020-03-01 17:10:37 +10:00
Alwin Drenth 56b2864ef5
Change PluginBase::boot return type to void (PhpDocBlock) (#4957) 2020-02-28 17:52:01 +08:00
Alwin Drenth 1d65e61ffc
Update Dutch translation (#4958) 2020-02-28 17:47:33 +08:00
Ben Thomson c6e61206ed Add roles and updated PHP version to module Composer requirements 2020-02-27 17:40:56 +08:00
Samuel Georges 73b551cf04 Switch to October Rain assetic 2020-02-27 20:07:42 +11:00
Samuel Georges 6e607361dc Restore default password setting 2020-02-27 20:07:41 +11:00
Samuel Georges 7b00768f3a Remove local notes support 2020-02-27 20:07:41 +11:00
Ben Thomson a2966da395 Use October provider for Redis service 2020-02-27 16:57:32 +08:00
Ben Thomson 0394494fbe Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-02-26 17:40:47 +08:00
Ben Thomson 9911c6b581 Add new validation type lang strings. 2020-02-26 17:10:51 +08:00
Marc Jauvin 7b6053768d
Fix argument name in event handler examples (#4950) 2020-02-19 23:42:51 -06:00
danielbidala c27e4d1148
Display '0' in preview mode for type: number fields (#4944) 2020-02-19 23:26:17 -06:00
Ben Thomson f8634e0757 Immediately load a lazy tab if it is the initial active tab.
Fixes #4879
2020-02-19 10:49:15 +08:00
Luke Towers 7048e2c567 Improve escaping of option values provided to the dropdown field type. 2020-02-16 23:49:01 -06:00
Luke Towers 136fd53109 Improve error handling on invalid model attributes being used for form fields 2020-02-13 16:48:39 -06:00
Samuell a68f3abf1c
Fix pagination reset if search input is filled (#4918)
Fixes #4914.
2020-02-12 07:52:09 -08:00
Rike-cz 495b0f085a Ignore user preferences for lists when setup modal is disabled (#4921) 2020-02-10 14:24:09 +08:00
Samuel Georges dc5431f9c4 Apply z-index change to CSS
Refs #3837
2020-02-09 17:27:18 +11:00
Adrien 7d7a99f688 Update lang.php (#4931)
Corrected dashboard warnings_link from 'Vue' to 'Voir'
2020-02-08 14:08:53 +10:00
Ben Thomson 5e4916148f Revert Laravel Dusk changes (#4919)
The Browser tests will be made into a RainLab plugin. (https://github.com/rainlab/dusk-plugin)
2020-02-07 16:59:39 +08:00
Ayumi 153120fdc7
Improve error message for when safe mode is enabled (#4926) 2020-02-03 12:09:50 -08:00
Ben Thomson ef86ddc482 Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-02-03 15:56:33 +08:00
Ben Thomson 65c3a88179
[Laravel 6] Add support for Laravel Dusk tests (#4919) 2020-02-03 12:21:04 +08:00
Ben Thomson 3f982c25c7
Add "styles" for repeater widgets (#4877)
Can be one of three values:
- "default": Shows all repeater items expanded on load.
- "collapsed": Shows all repeater items collapsed on load.
- "accordion": Shows only the first repeater item expanded on load. When another item is clicked, all other open items are collapsed.

Implements  #4801. Refs: https://github.com/rainlab/builder-plugin/issues/165, #2631
2020-02-02 09:12:01 +08:00
Samuell 45dde59b5f
Add missing backend translations for SK language (#4912) 2020-02-02 09:09:43 +08:00
Samuell a593ceffda
Use middle mouse click to open list row in new window (#4917) 2020-01-29 13:31:19 -06:00
Aurélien Roy 5e7ae1bb72 Add disabled state for unchecked checkbox (#4916) 2020-01-28 11:02:20 -06:00
Luke Towers f700e236d1
Merge branch 'develop' into wip/laravel-6 2020-01-27 12:06:45 -06:00
Luke Towers e8dca35c15 Include author name in plugin search results.
Fixes #4907
2020-01-23 13:07:18 -06:00
Luke Towers 2b5d811180 Allow plugins to be loaded on routes starting with /combine but not /combine/.
Fixes #4886.
2020-01-21 12:26:20 -06:00
Ayumi a647b48715 Set a consistent focus ring style on all browsers (#4895)
Fixes #4892. Related: #4819
2020-01-21 12:09:04 -06:00
Ben Thomson c7b85fcd6e
Default to using Bootstrap 3 pagination.
L5.6 introduced Bootstrap 4 validation. While it is likely our pagination is all custom and is using the Storm UI, just to be safe, we'll make sure pagination is using Bootstrap 3 classes in all circumstances to retain current functionality.

This should have no effect on simple pagination, which is overriden with our custom template on the next line.
2020-01-21 08:44:10 +08:00
Ben Thomson 12208e526f Adjust User rules to limit lengths of emails and logins 2020-01-20 16:48:09 +08:00
Ben Thomson 4716084f14 Change User rules to use min for character lengths 2020-01-20 16:39:23 +08:00
Ben Thomson 11b7111413 Use old signature for `where` method in CmsObjectCollection.
Refs: https://github.com/octobercms/october/pull/4893#discussion_r368408407
2020-01-20 16:25:50 +08:00
Ben Thomson 9ecad139c4 Comment tweak for CmsObjectCollection::where() 2020-01-20 13:59:29 +08:00
Ben Thomson cf67e83598
Make slug route param optional for CMS module.
This allows the home page to load.
2020-01-19 23:23:27 +08:00
Ben Thomson f9d7c79de5
Link Input alias to October's Input facade 2020-01-19 23:16:50 +08:00
Ben Thomson 56785bcd3c
Fix missing output when UpdateManager is run within the Backend 2020-01-19 23:15:02 +08:00
Ben Thomson 852ed1afb8
Remove deprecated `getNotes` method from UpdateManager 2020-01-19 22:56:24 +08:00
Ben Thomson 8279bc63e4
Seed admin password that passes our current validation rules 2020-01-19 22:27:12 +08:00
Ben Thomson 4302f8d4f5
Change module seeders to only temporary unguard attributes 2020-01-19 22:26:46 +08:00
Ben Thomson 662b1c2e45
Fix incompatible `where` method in CmsObjectCollection
Signature for the `where` method changes in L6, so a wrapper has been put in place.
2020-01-19 16:35:01 +08:00
Ben Thomson 5d3d4ad0b2
Merge branch 'develop' into wip/laravel-5.9 2020-01-18 21:00:40 +08:00
Samuel Georges e3b42b2f10 Make cms.backendForceSecure an explicit setting
This no longer hinges on app.debug because it creates confusion for devops engineers. This is based on three independent reports coming from app environments that use a reverse proxy. The engineer will follow the proper security instructions by disabling debug mode, which in turn creates an infinite redirect loop when opening the back-end area, only to leave them scratching their heads

Ultimately it is the web server configuration's job to handle the enforcement of HTTPS, the app no longer enforces it as a strong opinion, but we still keep the setting available as a convenient security check for standard environments that do not use a reverse proxy
2020-01-18 18:05:26 +11:00
Scott Bedard 60ffd91064 Fix small typo in number range filter widget (#4891)
When a `max` is defined with no `min`, the filter should read "Negative infinity → max". Right now, it reads "Infinity → max", which is not accurate.
2020-01-17 12:11:38 -06:00
Ayumi 06b1f57755 Expand the character limit of error messages in Event log list (#4830) 2020-01-16 20:37:38 +08:00
Ben Thomson c046466913 Set Dropzone.js uploaders to have no time limit (#4878)
The upgrade to the latest Dropzone.js brought in a new `timeout` configuration variable, which defaults to 30s. This removes the time limit and restores original functionality.

Fixes #4869
2020-01-14 16:47:25 -06:00
Flynsarmy 0bbc12af45 Remove excess spaces from tab title hovers (#4876) 2020-01-14 19:58:54 +08:00
jacobdekeizer 3a28771c2c Fix registerSchedule typehint in PluginBase (#4871) 2020-01-10 11:55:54 +08:00
Samuel Georges d46accfc4f Don't force highlight nothing element
Causes "Uncaught TypeError: Cannot read property 'element' of undefined at DecoratedClass.SelectOnClose._handleSelectOnClose"

Refs #4867
2020-01-07 07:04:25 +11:00
Luke Towers 64d7464ed3
Improve cms.combiner.beforePrepare event docs
Related: #4865
2020-01-06 11:40:20 -06:00
Samuel Georges 8ce9525b44 Take 2
Refs #4867
2020-01-06 22:12:14 +11:00
Samuel Georges ec0918e284 Fixes removal of first item from taglist
Tested #4867 but it broke the use of pressing TAB after entering a tag to lock it in. This seems to retain that functionality and yet still fix the issue

Replaces #4867
2020-01-06 21:19:12 +11:00
Samuel Georges 4a1295162c List support for tr.nolink class
The `nolink` CSS class can now be applied to table rows elements (TR) in addition to table data elements (TD) to disable the click event
2020-01-06 19:44:06 +11:00
Samuel Georges 06da92e06d Fixes multi click issue
When the popup is hidden during its loading sequence, the invisible buttons are still clickable and prone to misclicks

Fixes #4729
2020-01-06 18:56:28 +11:00
Szabó Gergő b9a7dab177 Apply custom secondary color to Media (#4863) 2020-01-03 21:17:50 +11:00
Samuel Georges cd4f56c64c Broken link report
Refs https://github.com/octobercms/docs/issues/427
2019-12-30 09:55:38 +11:00