Commit graph

657 commits

Author SHA1 Message Date
1c3889fae8 chg: replaced marked node module with commonmark java library 2020-05-17 11:31:56 +02:00
a5fd70eba5 chg: load all necessary files from within editor skin 2020-05-02 16:27:21 +02:00
e214e9c80f del: work-around for https://github.com/uikit/uikit/issues/1149
was fixed alreday in 2015 with fe0b2e0010
2020-05-02 15:58:43 +02:00
da1c419875 chg: rewrote most client-side code without using jquery 2020-04-13 13:40:06 +02:00
0c77ab756c fix: missing markdown rendering in multiple places 2020-04-04 11:14:24 +02:00
7ed88a16b4 del: support for instant articles 2020-04-03 11:31:11 +02:00
c588441add del: support for amplified mobile pages 2020-04-03 11:18:51 +02:00
9ca613268f chg: reformatted long line 2020-03-22 15:21:59 +01:00
e1660721ef fix: story formatting issues due to mixing helma and markdown features 2020-03-22 15:21:31 +01:00
c36302a83f chg: refactored deletion of accounts and sites 2018-05-21 15:00:57 +02:00
9f7d1a8529 fix: wrong namespace for sanitizeHtml method 2018-04-30 11:28:17 +02:00
1b2bd820a0 fix: insufficient and invalidating amp output 2018-04-27 14:42:11 +02:00
59bedf9e78 fix: display of modifier in list of story updates 2017-03-18 00:12:24 +01:00
3ead0b8019 add: basic support for Google’s accelerated mobile pages (AMP) 2016-06-26 20:36:28 +02:00
79d6c265e2 new: skin for instant article 2016-05-25 17:21:29 +02:00
6180ee475c fix: refactored for latest update in Helma’s format() method to prevent huge gaps in <pre> elements 2015-08-14 14:25:53 +02:00
34af2b0bd9 fix: missing simple linebreaks in story 2015-08-14 11:29:47 +02:00
eb8e1dbd8b fix: replaced arbitrary patterns with specific ones 2015-08-10 17:15:01 +02:00
aa7b66ba90 fix: corrected link to story from list of recent updates 2015-08-10 15:40:00 +02:00
733d334a66 fix: redirect to a Story’s main action after saving 2015-08-10 14:29:43 +02:00
0d2b6f8ec4 chg: link the site name to the site and the story abstract to the story 2015-08-10 14:25:05 +02:00
8b57c60aa2 fix: wrap the link to the content around the whole history element 2015-08-10 14:23:56 +02:00
22442d9e30 fix: refactored linebreak_filter() to fix output of Markdown code segments 2015-08-10 14:22:46 +02:00
43a6443e22 Refactored story filters to remove unwanted side-effects (see http://scifi.antville.org/stories/2188604) 2015-05-20 15:30:41 +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
4c668ed024 Fixed date output 2015-05-02 19:56:30 +02:00
ebf70d6655 Made markdown mode the default and removed plain mode in Story.format_filter() 2015-05-02 19:38:42 +02:00
1706463463 Disabled extended mode from url_filter() again 2015-05-02 18:26:50 +02:00
74a7379118 Refactored url_filter() to only reformate textual URLs without adding an HTML link element (which is done by the MarkDown renderer now, anyway). Thus, hopefully fixing e.g. nasty issues with links in attributes causing layout havoc, once and for all. 2015-05-02 18:25:10 +02:00
47d152ecc4 Optimized Open Graph output for conditions where title or description is not available 2015-04-27 10:49:28 +02:00
bf8bf20c63 Fixed bracketing 2015-04-26 13:39:59 +02:00
5ac84497e7 Added getDescription() method returning the story text in a plain format usable for Open Graph; slightly modified Open Graph output of story title 2015-04-26 13:19:30 +02:00
dde6f1b160 Changed order of format filters one more time (hopefully the last one) 2015-04-17 14:04:13 +02:00
cd9b084cd7 Added work-around for cursor positioning issue until official fix is available. See https://github.com/uikit/uikit/issues/1149 2015-04-17 13:21:15 +02:00
8f0a1dcfff Fixed bug causing scrambled rendering of Markdown links [foobar](http://…) 2015-04-12 15:36:49 +02:00
cd2dfc1260 Extended Story.isCustomContent() method with all currently known keys *not* intended for custom content – fixes bug described in https://help.antville.org/stories/2220699 2015-04-12 14:04:37 +02:00
1b4687ebeb Enabled use of value macro in stories 2015-04-04 22:38:21 +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
1d14d1f1d5 Refactored Story.getAbstract() method. Commented out abstract for custom content. 2015-03-27 13:12:41 +01:00
494767a986 Refactored Story.getDelta() method. Commented out calculation for custom content. 2015-03-27 13:12:21 +01:00
e54eb458cc Moved calculation of delta behind sanitizing comment title and completely removed HTML sanitization 2015-03-27 13:07:18 +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
509446d905 Fixed overlooked occurrence of render_action() which was renamed to render_json_action() 2015-03-25 12:23:47 +01:00
ec30345b64 Removed “Macro” suffix from File and Poll buttons 2015-03-25 11:31:35 +01:00
4cc65b574c Removed condition for cursor mode to fix issue where macro buttons would not work anymore 2015-03-25 11:31:00 +01:00
95d3a7f6cb Merge branch 'develop' into feature/wysiwyg-editor
* develop:
  Renamed Stories.render_action() to render_json_action()
  Added account image with link to https://gravatar.com
  Added HTML sanitizer for comments and stories. Fixes issue 64.
  Added button for easily adding a username to the troll filter
  Implemented “gaslighting” of troll comments, i.e. hiding a comment of a known troll for everyone else but themselves
  Removed misleading trailing “(Server)” from console output
  Fixes issue 143
  Separated rendering of core and custom CSS with Less and added more detailed error output
  Improved display of console messages
  Added bottom margin after article meta in case there is no title
  Introduced another value for the color of borders, vertical and horizontal lines

Conflicts:
	code/Global/0.node.js
	code/Global/Global.js
	code/Site/$Site.skin
	code/Story/$Story.skin
	code/Story/Story.js
	code/Story/Story.skin
2015-03-25 10:56:53 +01:00
f9f86ad037 Merge branch 'feature/troll-handling' into develop 2015-03-25 10:47:15 +01:00
4be67618f6 Renamed Stories.render_action() to render_json_action() 2015-03-25 10:43:44 +01:00
86edcaac33 Added HTML sanitizer for comments and stories. Fixes issue 64.
I added the sanitize-html NPM module [1] using its default settings.

```json
{
  "allowedTags": [
    "h3",
    "h4",
    "h5",
    "h6",
    "blockquote",
    "p",
    "a",
    "ul",
    "ol",
    "nl",
    "li",
    "b",
    "i",
    "strong",
    "em",
    "strike",
    "code",
    "hr",
    "br",
    "div",
    "table",
    "thead",
    "caption",
    "tbody",
    "tr",
    "th",
    "td",
    "pre"
  ],
  "allowedAttributes": {
    "a": [
      "href",
      "name",
      "target"
    ],
    "img": [
      "src"
    ]
  },
  "selfClosing": [
    "img",
    "br",
    "hr",
    "area",
    "base",
    "basefont",
    "input",
    "link",
    "meta"
  ],
  "allowedSchemes": [
    "http",
    "https",
    "ftp",
    "mailto"
  ]
}
```

[1] https://www.npmjs.com/package/sanitize-html
2015-03-22 16:36:14 +01:00
316774202a Fixes issue 143 2015-03-22 13:11:19 +01:00