3201 Commits

Author SHA1 Message Date
Luke Towers
3b09403758 Trigger richeditor change event on the textarea element, not the form.
Related: 83b1350b4f
2022-09-25 23:05:06 -06:00
Luke Towers
83b1350b4f Trigger codeeditor change event on the textarea element, not the form. 2022-09-23 00:37:41 -06:00
Marc Jauvin
7fe03164c1
Fix column preview on Import (#707)
Fixes the following error when previewing a column on Import:

"Call to undefined method League\Csv\Reader::setOffset()"
on line 253 of modules/backend/behaviors/ImportExportController.php
Credit to @alxy
ref. octobercms/october#5629
2022-09-20 10:31:54 -06:00
Arvis Lācis
87a0a470d3
Update HTTP links to HTTPS links in comments (#699) 2022-09-16 17:43:19 -06:00
Ben Thomson
9637b67c23
Correctly handle arrayed POST data in AJAX calls (#689)
Uses FormData object to handle arrayed POST data.

Fixes https://github.com/wintercms/winter/issues/683.

Refs:
- https://github.com/wintercms/winter/issues/683#issuecomment-1244682887 (also fixed)
- a4cfd0d23f
2022-09-16 10:00:43 +08:00
Marc Jauvin
e695dd837c
Apply imageWidth/imageHeight to the image itself, not the whole widget (#685)
Fixes an issue where the imageWidth constraints were smaller than the field itself which would cause the entire field to shrink in size instead of just the image itself. Fixes #684
2022-09-12 10:55:37 -06:00
hecc127
cc4346ee9f
Minor fix on numberrange filter (#682) 2022-09-07 16:00:16 -06:00
Romain 'Maz' BILLOIR
e5fa59efab
Add richeditor settings form french translation (#674) 2022-09-06 00:39:00 -06:00
Romain 'Maz' BILLOIR
1a2fe34bcd
Fix richeditor html custom styles field comment translations (#675) 2022-09-06 00:38:20 -06:00
Robert Alexa
f2f58935b2
Fix issue where labels are not toggling the switches (#676) 2022-09-05 13:43:20 -06:00
Robert Alexa
c42e5399cd
Increase width of MediaManager Crop & insert inputs (#673) 2022-09-05 12:44:16 -06:00
Ben Thomson
a283413bc5 Add licenses 2022-09-05 11:53:22 +08:00
Ben Thomson
886d38dc26 Add simple notes about subsplit repos 2022-09-05 11:48:56 +08:00
Robert Alexa
3787bad410
Add support for input range (#668)
Co-authored-by: Luke Towers <github@luketowers.ca>
2022-09-03 11:18:27 +08:00
vllvll
1d5bf6b233
Allow "0" as a search term (#669) 2022-09-02 08:51:14 -06:00
Hendrik Erz
c2b44bea2c
Pass autogenerated admin password as the default during winter:install (#665)
Also enables the use of `admin` as a password during the seeding process, not that it would be a good idea to use it.
2022-08-31 15:37:34 -06:00
Luke Towers
707e8f61f0
Don't use type submit on update pages
Type = submit causes the form to be submitted if the enter key is pressed in non-multiline fields.
2022-08-31 10:22:16 -06:00
Luke Towers
6e1862f0d0
Don't use submit buttons on create pages
Type = submit causes the form to be submitted if the enter key is pressed in non-multiline fields.
2022-08-31 10:21:59 -06:00
AIC BV
8a46279880
Properly centre list-icon in filelist widget (#660) 2022-08-25 11:11:26 -06:00
Luke Towers
46c7893cc3 Update frontend event names 2022-08-24 21:12:57 -06:00
Luke Towers
4fc736790a Fix support for getting URLs to uploaded files 2022-08-23 21:48:51 -06:00
Luke Towers
b58af6a313 Fix issues when processing uploads 2022-08-23 20:45:45 -06:00
Luke Towers
461549e733 Compile JS 2022-08-23 20:45:28 -06:00
Luke Towers
f758ca5a37 Make the UploadableWidget more configurable
Adds the following methods to the UploadableWidget trait to make it more portable / configurable.
- uploadableGetDisk()
- uploadableGetUploadPath()
- uploadableGetUploadUrl()
2022-08-23 15:01:20 -06:00
Luke Towers
bbca30e34a Merge branch 'develop' into wip/s3-stream
* develop:
  Revert "Fix default value for taglist formwidget in relation mode"
  Fix issue when saving file model related fields
2022-08-23 13:58:51 -06:00
Luke Towers
6ff502f404
Revert "Fix default value for taglist formwidget in relation mode"
This caused an issue with taglists where existing relation values were being converted into their IDs instead of the actual nameFrom value. 

If Post belongsToMany Authors and the following configuration is used:
```yaml
authors:
    label: Authors
    type: taglist
    mode: relation
    separator: comma
    customTags: true
    nameFrom: full_name
```
Then loading a form with the authors relation already set would cause the ID of the authors to be displayed in the field instead of the full name and would cause issues when attempting to save the form.
2022-08-23 12:47:54 -06:00
Luke Towers
0244745a96 Fix issue when saving file model related fields 2022-08-23 10:17:23 -06:00
Luke Towers
a017d6657d Revert public to protected, not necessary at this point in time 2022-08-22 16:50:43 -06:00
Luke Towers
e35e5dff35 Initial code review 2022-08-22 16:40:12 -06:00
Luke Towers
2939d9987a Merge branch 'develop' into wip/s3-stream
* develop:
  Add silent option to mix webpack fixture during mix:watch
  Fix support for cropping images with url unsafe characters in their path
  Fix migrations not being run if notes output is not provided.
  Minor style tweak (#651)
  Add support for data-request-parent (#650)
  Make getOptionsFromModel() accessible on a formWidget object (#653)
  Fix typo in signal processing for mix:watch (#646)
  Added mix:compile parent args to mix:watch signature (#647)
  Fixed comment for mix:compile (#648)
  Store system first boot date in the database explicitly (#639)
  Add support for exit codes in MixCompile (#642)
  Style up migrations and updates using new Laravel CLI components (#641)
  Simplify "run migrations on login" check
  Disabled the plusplus checking rule (#643)
  Restored root phpunit configuration file (#644)
  Fix default value for taglist formwidget in relation mode (#611)
  Allow UserPreferences to be interacted without a logged in user
  Fix status widget output on clean installation (#633)
  Improve Vietnamese translation (#636)
  Document new ** value for app.trustedProxies
2022-08-22 15:43:38 -06:00
Luke Towers
d11fc6b622
Fix support for cropping images with url unsafe characters in their path 2022-08-22 13:27:18 -06:00
Jack Wilkinson
e20574e292 Removed loadAssets event 2022-08-19 19:24:21 +01:00
Jack Wilkinson
5798fea3e5 Allowed for public get relation model calls 2022-08-19 19:23:49 +01:00
Jack Wilkinson
7aa1b7a859 Simplified extension event logic 2022-08-19 19:23:08 +01:00
Jack Wilkinson
2508376f09 Added richeditor init event 2022-08-19 19:16:32 +01:00
Luke Towers
a4cfd0d23f
Add support for data-request-parent (#650)
See https://github.com/octobercms/october/pull/5136

Also see:
- octobercms/october#5084 
- octobercms/october#4925 
- octobercms/october#2727 (Somewhat related, not entirely though)
- https://github.com/octoberrain/test-plugin/issues/73 (Somewhat related)
- octobercms/october#5447 (may be related)
2022-08-18 18:38:28 -06:00
Jack Wilkinson
9cd137bd47 Switched streaming to implementing file upload events 2022-08-19 01:20:55 +01:00
Marc Jauvin
c7868856b4
Make getOptionsFromModel() accessible on a formWidget object (#653) 2022-08-18 14:22:18 -06:00
Jack Wilkinson
6cc862db99 Added support for streamed uploads to media manager 2022-08-11 17:04:25 +01:00
Jack Wilkinson
bfbd5e8290 Code cleanup 2022-08-11 17:03:15 +01:00
Jack Wilkinson
ca8de88017 Added fix for upload progress bar 2022-08-11 15:32:35 +01:00
Ben Thomson
a1b4a3fa30 Simplify "run migrations on login" check 2022-08-10 15:17:25 +08:00
Jack Wilkinson
699eb9081d Initial s3 streaming work for FileUpload widget 2022-08-09 19:05:10 +01:00
Marc Jauvin
305cb588c8
Fix default value for taglist formwidget in relation mode (#611) 2022-08-09 09:32:36 +08:00
Luke Towers
ed933b4d2e
Allow UserPreferences to be interacted without a logged in user
Winter\Storm\Auth\Models\Preference->get() allows for no user context to be present
2022-08-07 14:28:15 -06:00
QuangTrọngOnline
1990badd26
Improve Vietnamese translation (#636)
Credit to @quangtrongonline
2022-08-04 13:54:02 -06:00
Simon Mannsfeld
929e8f2dd3
Improved German translation (#623)
Credit to @simonmannsfeld
2022-08-02 17:35:43 -06:00
Arvis Lācis
b8046c2228
Fix return types for MediaManager widget functions (#632)
Fixes #629.
2022-08-02 15:49:31 -06:00
Chris Sadler
1218cd6cf9
Fix typo in MediaManager.php (#616)
Fix typo in reference to MediaLibrary, fixing an error when getting vector image thumbnails in the media manager.
2022-07-19 00:24:13 -06:00
Ben Thomson
43468b3b9f Automatically inject bootstrap into winter:test command
This commit also enforces some testing environment variables at the process level.
2022-07-18 08:32:12 +08:00