Commit graph

277 commits

Author SHA1 Message Date
1db17b29ae Add support for images in webp format 2023-12-30 19:13:13 +01:00
d2501c2d3a Replace for..each loops with for..of
💡 Needs Helma with enabled ES6 features in Rhino
2023-08-27 00:09:17 +02:00
675d0c4182 Add support for lazy loading in image macro 2021-12-04 22:12:05 +01:00
0ec3464962 Remove obsolete code in comments 2021-04-04 14:22:49 +02:00
34f61ea7d9 Use hashed filenames when saving
Refactor File.getName() method to return a string consisting of the
hashed filename, a random string and the current timestamp.

This way, there should be no more issue with unsupported characters in the
filename.

Furthermore, Helma’s internal access names are now fully decoupled from
the filename and thus, the full unicode set should be available for naming.
2021-04-04 13:46:40 +02:00
11639f9319 chg: reverted to more strict file name pattern 2020-05-31 22:21:07 +02:00
751d1d2523 fix: “null” string showing in alt/title attributes of images 2020-05-24 13:06:51 +02:00
44b59e87fd fix: boolean check for alpine value
See https://github.com/alpinejs/alpine/pull/486
2020-05-17 15:07:55 +02:00
eaa3ba2357 chg: rewrote most client-side code with alpine.js 2020-05-02 17:44:26 +02:00
da1c419875 chg: rewrote most client-side code without using jquery 2020-04-13 13:40:06 +02:00
307723572a add: some http headers for better changes to get a reasonable response 2020-04-10 20:34:37 +02:00
b61940c2e1 add: display of a user’s timeline 2018-05-11 16:53:20 +02:00
c3d64dc829 fix: unwanted code running after caught exception 2018-05-05 16:56:53 +02:00
fdfee2e50d fix: display of file origin in File and Image prototypes
* ignore origins with c:\fakepath\ (i.e. uploaded from local file system)
 * use `description_macro()` for output of either this.description or this.origin (if available) or nothing, instead of macro default
 * prevent setting this.description in `update()` methods or from formica bookmarklet
2016-06-26 13:21:57 +02:00
2eeb4549ce fix: do not create a helma.Image instance if constraints are fulfilled
obviously, helma.Image already compresses image data and a recent change actually removed code preventing this for images fulfilling the max width and height constraints

see http://help.antville.org/stories/2239244/
2016-05-26 12:36:42 +02:00
ee28a1466a fix: don’t resize layout images (except their thumbnails) 2016-04-09 18:24:20 +02:00
0fe4d4b160 fix: replaced getURL() with corresponding helma.Http methods for more configuration options and better results 2016-03-28 18:28:41 +02:00
4d2867d744 fix: added missing change in $Image#embed skin for improved formica image link 2016-01-16 23:43:11 +01:00
b2e72f533f chg: output OpenGraph data in the main action of an image 2015-08-10 16:22:10 +02:00
5b7a409dd1 fix: encode URLs 2015-08-10 16:21:21 +02:00
4a81ae03cb Removed undesired whitespace after an image box 2015-05-20 15:29:28 +02:00
12da671a20 Slightly refactored story, image and poll macros for not showing “via” footer on the same site; story macro now with default story filter. 2015-05-08 15:14:46 +02:00
efea5874c8 Do not display the “via” footer if the image is from the current site 2015-04-26 13:42:36 +02:00
b765cb13cd Fixed bug causing image upload error in formica.html 2015-04-04 22:37:47 +02:00
68d3b1e8d1 Fixed bug causing wrong macro output introduced in last commit 2015-04-04 15:26:52 +02:00
242f3f61da Fixed macro output for layout images (no box per default) 2015-04-04 15:23:59 +02:00
5391f96840 Merge branch 'develop' into feature/revise-translations
* develop:
  Fixed compatibility issues with missing core stylesheet / JavaScript
  Moved client-side upload code to Images#upload skin
  Re-added click handler for cancel links (compatibility)
  Fixed display of Gravatar for accounts
  Added code for embedded audio and video player (HTML5)
  (Whitespace)
  Updated proxy URL
  Updated translation files
  Slightly rearranged code
  Moved image dimension limits from image creation to site settings
  Fixed batch upload for layout images
  Refactored Story.getAbstract() method. Commented out abstract for custom content.
  Refactored Story.getDelta() method. Commented out calculation for custom content.
  Moved calculation of delta behind sanitizing comment title and completely removed HTML sanitization
  Moved calculation of delta behind sanitizing comment title and replaced call for setMetadata() with setCustomContent()
  Fixed appearance of button for new site creation
  Added box argument to image macro output
  Added metadata for Open Graph et al. to Stories.create_action()
  Implemented first version of multiple image upload by drag&drop
  Refactored Comment.update() method - text is now required, title remains optional - sanitize text first to catch potential empty string afterwards

Conflicts:
	i18n/antville.pot
	i18n/de.po
	i18n/en.po
	i18n/messages.de.js
	i18n/messages.en.js
2015-03-27 22:02:27 +01:00
0a0f1fc376 Moved image dimension limits from image creation to site settings 2015-03-27 15:48:35 +01:00
af25a813de Added box argument to image macro output 2015-03-27 11:49:41 +01:00
20e605aa7b Added accusatives for user-defined objects. Replaced user with account. Balanced out gender in german translation. 2015-03-25 16:04:47 +01:00
dd3fbb9a0a Fixed HTML for validation with validator.w3.org 2015-02-22 14:36:00 +01:00
9ef3184d11 Refactored code with required client-side functionality to basically work with disabled JS, too. Fixes #36 2015-02-21 19:21:35 +01:00
119aadacd5 Updated gettext messages and i18n files 2015-01-31 22:11:30 +01:00
6276392100 Removed global client-side scripts array and refactored page-specific scripts, now that library code is loaded at once 2015-01-31 00:00:12 +01:00
fc6e6c5932 Refactored layout import which was not working anymore for a while and nobody noticed it o_0 2015-01-30 15:00:51 +01:00
c0ebad15e1 Added scripts array to contain all scripts from individual skins that are going to be executed after library code has loaded asynchronously 2015-01-11 22:05:05 +01:00
61a9557789 Only add custom width and/or height to image style 2015-01-11 20:58:05 +01:00
873ddcd9fa Changed position of tooltip 2015-01-11 13:21:21 +01:00
6d2a296389 Added tooltips with the full date to output of created / modified values in tables 2015-01-11 13:18:11 +01:00
03ebe385bc Cleaned up CSS.
Moved content of style attributes to main.less or the stylesheet skins of Root and Site.
Adapted original Antville colors for some of UIKits elements (e.g. primary button, default alert, pagination) and the Jala calendar
2015-01-11 13:08:19 +01:00
4a24d7cf1e Refactored global macros for story, image, file and poll 2015-01-07 17:17:20 +01:00
1dd49a9bec Added $HopObject#meta skin for consistent display of posted / last modified information 2015-01-06 14:03:44 +01:00
7e2fd74e1e Fixed undesired “collage” of tagged stories 2015-01-06 13:16:02 +01:00
f899a12fb0 Refactored galleries using the jquery-collagePlus plugin 2015-01-06 12:30:47 +01:00
28f29dcc88 Work-around for UIKit issue https://github.com/uikit/uikit/issues/833 2015-01-05 22:20:46 +01:00
00d645e9c8 Implemented client-side script to prevent duplicate form submits
Removed client-side click handler for cancel links and used macros or simple relative paths instead
2015-01-04 13:35:59 +01:00
ae5dbd759f Implemented activity feed and refactored admin forms 2015-01-03 21:22:48 +01:00
c70eb730b1 Always redirect to main action after editing a story, image, comment or poll 2015-01-01 20:32:22 +01:00
b5a7cdbcb7 Refactored remaining prototypes for UIKit support as well as unified and smoothed already refactored ones 2014-12-21 17:22:01 +01:00
387a66638c Refactored images for UIKit support 2014-12-17 23:54:38 +01:00