Commit graph

79 commits

Author SHA1 Message Date
4ee6d89bf5 chg: moved parser files into tools dir 2020-03-29 21:36:52 +02:00
243e80d8ac chg: moved build scripts into their own dir 2020-03-29 21:13:12 +02:00
d47cf60be5 chg: generate jsdoc files during build 2020-03-29 20:36:15 +02:00
f555a0e417 chg: replaced some ant tasks with yarn scripts 2020-03-29 20:33:29 +02:00
7cc3adedbf chg: replaced gradle build tasks with yarn scripts 2020-03-27 21:57:05 +01:00
af9b02de26 chg: bumped version of marked npm package 2020-03-27 21:26:58 +01:00
d29a2a1c3f chg: replaced sanitize-html npm package with string-strip-html 2020-03-27 21:21:59 +01:00
1205d82fda chg: bumped codemirror version 2020-03-22 15:23:49 +01:00
e3f3e29502 chg: bumped versions of browserify and less 2020-03-22 14:36:24 +01:00
9cf539c382 chg: moved client build from gradle to npm script 2020-03-22 14:35:50 +01:00
eed7d08028 fix: missing less compiler for creating static css 2018-05-05 16:57:24 +02:00
065679f7f0 chg: directly require() server-side node modules
needs `rhino.optlevel = -1` to prevent [“generated bytecode for method exceeds 64K limit” error](https://groups.google.com/forum/#!msg/mozilla-rhino/N_O4Got4ED8/gqMnItFFzL8J)
2018-04-29 23:55:57 +02:00
86108f1bc8 chg: updated dependencies 2018-03-17 20:25:26 +01:00
76d98b32e1 fix: stickiness of version for marked
also fixed license to be spdx conform
2017-03-17 17:17:48 +01:00
f5cff5ba44 chg: bumped versions and rebuilt client files
note: marked is sticky @0.3.3 because of issue #872https://github.com/chjj/marked/issues/872
2017-03-17 16:53:55 +01:00
d28d18c0fe chg: experimental branch using rhino’s commonjs support
needs helma’s feature/commonjs-support branch

the less-rhino-1.7.5.js implementation uses its own require() implementation which breaks rhino’s one. thus, the official java impl is used instead – which is quite slow, unfortunately… needs to be resolved in a better way before this can be merged.

however, using marked with require() works like a charm :)
2016-12-17 14:36:52 +01:00
cd5cd15018 del: definition of JSON object in external module
use Rhino’s implemented JSON support instead
2016-12-17 10:01:19 +01:00
40519bc0ea Cleaned up all and upgraded some NPM modules 2015-04-17 13:26:38 +02: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
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
bb12a80358 Replaced all references to uikit package with uikit-bower, added marked package and subsequently removed uikit. 2015-03-17 15:55:09 +01:00
8ae9afae6f Implemented first version of working WYSIWYG story editor 2015-03-07 12:28:05 +01:00
0733d19622 Added json2 and lessjs via node_modules / npm 2015-02-21 21:55:46 +01:00
8beedd6799 Fixed package name to lower case 2015-01-28 18:00:58 +01:00
a86db532e1 Enabled minifying of JS code including source maps 2015-01-25 19:02:37 +01:00
aa4c527fcd Replaced copy&pasta version of MD5 implementation with js-md5 NPM module 2015-01-11 14:25:00 +01:00
f899a12fb0 Refactored galleries using the jquery-collagePlus plugin 2015-01-06 12:30:47 +01:00
e5f641a050 Fixed license and author 2015-01-03 11:21:14 +01:00
c27d28b692 Implemented build process for client-side (static) code and assets using Browserify 2015-01-01 20:23:21 +01:00