Commit graph

37108 commits

Author SHA1 Message Date
Hypolite Petovan
7f4d399fc8
Merge pull request #12883 from xundeenergie/easy-image-attach
[frio] Easy image attach
2023-03-19 19:10:53 -04:00
Michael
12d2de2c93 Remove tabs if followed by new lines (or vice versa) 2023-03-19 20:16:41 +00:00
Philipp
88e339a43d
Adapt loglevels to reduce log-noise 2023-03-19 19:33:03 +01:00
Jakobus Schürz
cf63cbde72 remove removelink (it is not useful at the moment) 2023-03-19 19:14:10 +01:00
Jakobus Schürz
5040bd9a1a change response-handling (code-review) 2023-03-19 18:52:46 +01:00
Jakobus Schürz
57a7a3d6d8 change responsehandling to be ready for PR #12892 2023-03-19 18:52:46 +01:00
Jakobus Schürz
faa524faec revert changes, remove line (from code-review) 2023-03-19 18:52:46 +01:00
Jakobus Schürz
399ee74e05 revert to original (no changes needed anymore) 2023-03-19 18:52:46 +01:00
Jakobus Schürz
8a3361dfbe remove upload-url parameter 2023-03-19 18:52:46 +01:00
Jakobus Schürz
6436d2cd8a changes in case of code-review 2023-03-19 18:52:46 +01:00
Jakobus Schürz
fba33d3afc add options allowedFiles and more 2023-03-19 18:52:46 +01:00
Jakobus Schürz
c01f7f98ae reinsert Friendica\DI (accidentially removed before) 2023-03-19 18:52:46 +01:00
Jakobus Schürz
920dcca263 render max_imagesize in header.tpl
so it is reachable general from the whole website, and the dropzone-factory can use
it also to create dropzones from modal.js
2023-03-19 18:52:46 +01:00
Jakobus Schürz
16f065e260 changes in case of codereview 2023-03-19 18:52:45 +01:00
Jakobus Schürz
0cc2e1c22a apply changes from review 2023-03-19 18:52:45 +01:00
Jakobus Schürz
e62265b234 make errormessages visible 2023-03-19 18:52:45 +01:00
Jakobus Schürz
f876a053df add dropzone also onclick on comment-fake-form 2023-03-19 18:52:45 +01:00
Jakobus Schürz
512e5900e6 use round instead of floor to make imagesize <1M possible 2023-03-19 18:52:45 +01:00
Jakobus Schürz
1a1a1246b6 attach dropzone only when opening comment 2023-03-19 18:52:45 +01:00
Jakobus Schürz
d39781023e create factory 2023-03-19 18:52:45 +01:00
Jakobus Schürz
ada11a2c67 create factory for dropzones 2023-03-19 18:52:45 +01:00
Jakobus Schürz
39f7660a1d fix getting bytes from shorthand in php 2023-03-19 18:52:45 +01:00
Jakobus Schürz
721c065a44 fix editing in modal-jot
and add also timeout before removing images from dropzone
2023-03-19 18:52:45 +01:00
Jakobus Schürz
64066349aa add timeout before remove images from dropzone 2023-03-19 18:52:45 +01:00
Jakobus Schürz
2403932a83 improve image-upload
* create dropzone for editing in jot-modal
* customize css for dropzone to make it more beautiful (smaller
  margin/paddings...)
* change position of dropzone-element dircetly to textarea, so button
  for upload is small and under textarea (it's more clear)
* remove previews after upload. this shows the upload-progress, but
  preview is not needed after upload. you can't do anything with the
  preview, and dialog gets too big. You see successful upload, when
  bb-code link to image is inserted on cursor-position in textarea
2023-03-19 18:52:45 +01:00
Jakobus Schürz
1e030d594c remove unneeded chars ("css") from first html-tag 2023-03-19 18:52:45 +01:00
Jakobus Schürz
3688196859 create workaround for not working php
Strings:getBytesFromShorthand

i created a js-function which converts integer, k, m and g to MB
Just remove this code, when we found out, why Strings is in some files
not working.
2023-03-19 18:52:45 +01:00
Jakobus Schürz
00ae7d0f59 make dropzone work on editing postings/Comments 2023-03-19 18:52:45 +01:00
Jakobus Schürz
8242d1c72b remove console.log 2023-03-19 18:52:45 +01:00
Jakob Schürz
177bf9b67b fix missing DI 2023-03-19 18:52:45 +01:00
Jakobus Schürz
bd0bc943ad fix indentation 2023-03-19 18:52:45 +01:00
Jakobus Schürz
a6a0507a89 small modifications to equalize the scripts 2023-03-19 18:52:45 +01:00
Jakobus Schürz
be2afac60d take maxFilesize from systemsettings
* does not work everywhere...
2023-03-19 18:52:45 +01:00
Jakobus Schürz
359ad6ff5a fix a warning and suggestions for pullrequest
* fix indentation to tabs
* remove unneeded calls for dropzone.min.js and dropzone.min.css
* removed debug output
2023-03-19 18:52:45 +01:00
Jakobus Schürz
6a7f17559e fix composer dropzone 2023-03-19 18:52:45 +01:00
Jakobus Schürz
5107d4418e add enyo/dropzone 2023-03-19 18:52:45 +01:00
Jakobus Schürz
00c7e989b2 add missing css 2023-03-19 18:52:45 +01:00
Jakobus Schürz
3bb801c2c1 fix dropzone class in template 2023-03-19 18:52:45 +01:00
Jakobus Schürz
29d7b4ef24 fix path for js and css loading 2023-03-19 18:52:45 +01:00
Michael Vogel
9782c8e2ad
Merge pull request #12915 from nupplaphil/bug/baseurl_profile
Force correct string casting for BaseUrl
2023-03-19 12:10:51 +01:00
Philipp
29e4f0ea9a
Force correct string casting for BaseUrl 2023-03-19 11:21:17 +01:00
Philipp
c95e961683
Merge pull request #12892 from MrPetovan/bug/12888-media-upload-return
Prevent template generation in media/[photo|attachment]/upload output
2023-03-19 08:28:59 +01:00
Philipp
5062e174b7
Merge pull request #12914 from MrPetovan/bug/12842-bbcode-html-list
Rework new lines around list BBCode
2023-03-19 08:27:31 +01:00
Philipp
b8eea3f1d8
Merge pull request #12898 from MrPetovan/bug/12792-createSession-return
Ensure FactorySession->create returns an object no matter what
2023-03-19 08:26:05 +01:00
Hypolite Petovan
820c3923a7 Fix wrong assertion in DBKeyValueStorageTest 2023-03-18 23:36:07 -04:00
Hypolite Petovan
241a512589 Ensure FactorySession->create returns an object no matter what
- Rename redundant method name createSession
- Add exception logging
2023-03-18 23:36:07 -04:00
Hypolite Petovan
1ce438e964 Rework new lines around list BBCode
- Remove blanket new lines remover in HTML::toBBCode
- Add test to ensure the commutativity of the markups
2023-03-18 23:35:51 -04:00
Hypolite Petovan
200bdb55ba Normalize [ul] and [ol] BBCode output to <ul> and <ol> HTML tags 2023-03-18 23:35:51 -04:00
Hypolite Petovan
c3cecf3d28 Provide corresponding default value for $try_oembed in BBCodeTest->testConvert
- Add documentation about system.remove_multiplicated_lines expected value
2023-03-18 23:35:51 -04:00
Hypolite Petovan
67c0c279aa Remove extra whitespace in Content\Text\HTMLTest 2023-03-18 23:35:51 -04:00