releaf-core 2.1.1 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ckeditor/config.js +4 -10
- data/app/lib/releaf/action_controller/exceptions.rb +2 -2
- data/app/lib/releaf/responders.rb +0 -2
- data/app/models/releaf/settings.rb +154 -1
- data/app/views/releaf/error_pages/{access_denied.html.haml → forbidden.html.haml} +0 -0
- data/lib/releaf/root/settings_manager.rb +9 -1
- data/lib/releaf-core.rb +0 -1
- metadata +12 -359
- data/app/assets/images/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/app/assets/images/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/images/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/app/assets/images/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/app/assets/images/ckeditor/plugins/icons.png +0 -0
- data/app/assets/images/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/app/assets/images/ckeditor/plugins/image/images/noimage.png +0 -0
- data/app/assets/images/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/images/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/images/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- data/app/assets/images/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/app/assets/images/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- data/app/assets/images/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/app/assets/images/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/envelope.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/heart.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/kiss.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/images/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/images/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/images/ckeditor/plugins/widget/images/handle.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/icons.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/close.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/lock.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
- data/app/assets/javascripts/ckeditor/CHANGES.md +0 -1637
- data/app/assets/javascripts/ckeditor/LICENSE.md +0 -1420
- data/app/assets/javascripts/ckeditor/README.md +0 -39
- data/app/assets/javascripts/ckeditor/basepath.js.erb +0 -6
- data/app/assets/javascripts/ckeditor/build-config.js +0 -190
- data/app/assets/javascripts/ckeditor/ckeditor.js +0 -1331
- data/app/assets/javascripts/ckeditor/jquery.js +0 -10
- data/app/assets/javascripts/ckeditor/lang/af.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ar.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/az.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/bg.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/bn.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/bs.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ca.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/cs.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/cy.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/da.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/de-ch.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/de.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/el.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/en-au.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/en-ca.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/en-gb.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/en.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/eo.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/es-mx.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/es.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/et.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/eu.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/fa.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/fi.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/fo.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/fr-ca.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/fr.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/gl.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/gu.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/he.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/hi.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/hr.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/hu.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/id.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/is.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/it.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ja.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ka.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/km.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ko.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ku.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/lt.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/lv.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/mk.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/mn.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ms.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/nb.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/nl.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/no.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/oc.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/pl.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/pt-br.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/pt.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ro.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ru.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/si.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/sk.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/sl.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/sq.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/sr-latn.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/sr.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/sv.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/th.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/tr.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/tt.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/ug.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/uk.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/vi.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/zh-cn.js +0 -5
- data/app/assets/javascripts/ckeditor/lang/zh.js +0 -5
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -8
- data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -14
- data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
- data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -25
- data/app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -24
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -8
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -8
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -21
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -44
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -8
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -30
- data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -55
- data/app/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -13
- data/app/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +0 -20
- data/app/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +0 -28
- data/app/assets/javascripts/ckeditor/plugins/scayt/README.md +0 -25
- data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -32
- data/app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -14
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ro.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +0 -14
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
- data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -21
- data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -18
- data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -28
- data/app/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -25
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -91
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
- data/app/assets/javascripts/ckeditor/styles.js +0 -137
- data/app/assets/javascripts/ckeditor-jquery.js +0 -3
- data/app/assets/stylesheets/ckeditor/contents.css +0 -208
- data/app/assets/stylesheets/ckeditor/plugins/colordialog/dialogs/colordialog.css +0 -20
- data/app/assets/stylesheets/ckeditor/plugins/copyformatting/styles/copyformatting.css +0 -45
- data/app/assets/stylesheets/ckeditor/plugins/scayt/dialogs/dialog.css +0 -23
- data/app/assets/stylesheets/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
- data/app/assets/stylesheets/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +0 -25
- data/app/assets/stylesheets/ckeditor/plugins/tableselection/styles/tableselection.css +0 -36
- data/app/assets/stylesheets/ckeditor/plugins/templates/dialogs/templates.css +0 -84
- data/app/assets/stylesheets/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
- data/app/assets/stylesheets/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +0 -43
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog.css +0 -5
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie.css +0 -5
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie8.css +0 -5
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_iequirks.css +0 -5
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor.css +0 -5
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_gecko.css +0 -5
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie.css +0 -5
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie8.css +0 -5
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_iequirks.css +0 -5
- data/app/lib/releaf/responders/access_denied_responder.rb +0 -9
- data/app/lib/releaf/responders/error_responder.rb +0 -9
- data/app/lib/releaf/responders/page_not_found_responder.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faa9d0a6ff3255fb86e0b98bb23aa58ec88acbd010125ff1eb1a39c707454c67
|
4
|
+
data.tar.gz: d624883646f5d56b5b9261f9fb8e09f0e2a348235a5aef111725e15e501f0fc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2da526978e85e75d245ec0006acd05ede0ef50ee7ab86ac8b2ddc8b7968efadeb93ee1c036c798171542a3beb8d491b30a1011edfc6039f96569423d62218059
|
7
|
+
data.tar.gz: 72c8729ab6d1cb96e1d975a7369091e5506f88923c11d5fd2411335d9f5ef334993ac1acef65cfbe945b4a9643078a9a59620f02113ad4d6338364a1b1f1e116
|
@@ -1,10 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
CKEDITOR.editorConfig = function( config ) {
|
7
|
-
// Define changes to default configuration here. For example:
|
8
|
-
// config.language = 'fr';
|
9
|
-
// config.uiColor = '#AADC6E';
|
10
|
-
};
|
1
|
+
CKEDITOR.editorConfig = function (config){
|
2
|
+
config.removePlugins = 'exportpdf'
|
3
|
+
true
|
4
|
+
}
|
@@ -7,10 +7,10 @@ module Releaf::ActionController::Exceptions
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def page_not_found
|
10
|
-
|
10
|
+
render "releaf/error_pages/page_not_found", status: :not_found, formats: :html
|
11
11
|
end
|
12
12
|
|
13
13
|
def access_denied
|
14
|
-
|
14
|
+
render "releaf/error_pages/forbidden", status: :forbidden, formats: :html
|
15
15
|
end
|
16
16
|
end
|
@@ -11,8 +11,6 @@ module Releaf::Responders
|
|
11
11
|
update: Releaf::Responders::AfterSaveResponder,
|
12
12
|
confirm_destroy: Releaf::Responders::ConfirmDestroyResponder,
|
13
13
|
destroy: Releaf::Responders::DestroyResponder,
|
14
|
-
access_denied: Releaf::Responders::AccessDeniedResponder,
|
15
|
-
page_not_found: Releaf::Responders::PageNotFoundResponder,
|
16
14
|
}
|
17
15
|
end
|
18
16
|
|
@@ -1,4 +1,32 @@
|
|
1
|
-
class Releaf::Settings <
|
1
|
+
class Releaf::Settings < ActiveRecord::Base
|
2
|
+
|
3
|
+
self.table_name = table_name_prefix + "settings"
|
4
|
+
|
5
|
+
class SettingNotFound < RuntimeError; end
|
6
|
+
|
7
|
+
belongs_to :thing, polymorphic: true, optional: true
|
8
|
+
|
9
|
+
# get the value field, YAML decoded
|
10
|
+
def value
|
11
|
+
YAML.load(self[:value], permitted_classes: [DateTime, Time, Date]) if self[:value].present?
|
12
|
+
end
|
13
|
+
|
14
|
+
# set the value field, YAML encoded
|
15
|
+
def value=(new_value)
|
16
|
+
self[:value] = new_value.to_yaml
|
17
|
+
end
|
18
|
+
|
19
|
+
def rewrite_cache
|
20
|
+
Rails.cache.write(cache_key, value)
|
21
|
+
end
|
22
|
+
|
23
|
+
def expire_cache
|
24
|
+
Rails.cache.delete(cache_key)
|
25
|
+
end
|
26
|
+
|
27
|
+
def cache_key
|
28
|
+
self.class.cache_key(var, thing)
|
29
|
+
end
|
2
30
|
|
3
31
|
scope :registered, -> { where(var: registered_keys, thing_type: nil, thing_id: nil).order(:var) }
|
4
32
|
|
@@ -36,4 +64,129 @@ class Releaf::Settings < RailsSettings::Base
|
|
36
64
|
def self.supported_types
|
37
65
|
[:boolean, :date, :time, :datetime, :integer, :float, :decimal, :email, :text, :textarea, :richtext]
|
38
66
|
end
|
67
|
+
|
68
|
+
class << self
|
69
|
+
def cache_prefix(&block)
|
70
|
+
@cache_prefix = block
|
71
|
+
end
|
72
|
+
|
73
|
+
def cache_key(var_name, scope_object)
|
74
|
+
scope = ["rails_settings_cached"]
|
75
|
+
scope << @cache_prefix.call if @cache_prefix
|
76
|
+
scope << "#{scope_object.class.name}-#{scope_object.id}" if scope_object
|
77
|
+
scope << var_name.to_s
|
78
|
+
scope.join("/")
|
79
|
+
end
|
80
|
+
|
81
|
+
def [](key)
|
82
|
+
return super(key) unless rails_initialized?
|
83
|
+
val = Rails.cache.fetch(cache_key(key, @object)) do
|
84
|
+
super(key)
|
85
|
+
end
|
86
|
+
val
|
87
|
+
end
|
88
|
+
|
89
|
+
# set a setting value by [] notation
|
90
|
+
def []=(var_name, value)
|
91
|
+
super
|
92
|
+
Rails.cache.write(cache_key(var_name, @object), value)
|
93
|
+
value
|
94
|
+
end
|
95
|
+
|
96
|
+
# get or set a variable with the variable as the called method
|
97
|
+
# rubocop:disable Style/MethodMissing
|
98
|
+
def method_missing(method, *args)
|
99
|
+
method_name = method.to_s
|
100
|
+
super(method, *args)
|
101
|
+
rescue NoMethodError
|
102
|
+
# set a value for a variable
|
103
|
+
if method_name[-1] == "="
|
104
|
+
var_name = method_name.sub("=", "")
|
105
|
+
value = args.first
|
106
|
+
self[var_name] = value
|
107
|
+
else
|
108
|
+
# retrieve a value
|
109
|
+
self[method_name]
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
# destroy the specified settings record
|
114
|
+
def destroy(var_name)
|
115
|
+
var_name = var_name.to_s
|
116
|
+
obj = object(var_name)
|
117
|
+
raise SettingNotFound, "Setting variable \"#{var_name}\" not found" if obj.nil?
|
118
|
+
|
119
|
+
obj.destroy
|
120
|
+
true
|
121
|
+
end
|
122
|
+
|
123
|
+
# retrieve all settings as a hash (optionally starting with a given namespace)
|
124
|
+
def get_all(starting_with = nil)
|
125
|
+
vars = thing_scoped.select("var, value")
|
126
|
+
vars = vars.where("var LIKE '#{starting_with}%'") if starting_with
|
127
|
+
result = {}
|
128
|
+
vars.each { |record| result[record.var] = record.value }
|
129
|
+
result.reverse_merge!(default_settings(starting_with))
|
130
|
+
result.with_indifferent_access
|
131
|
+
end
|
132
|
+
|
133
|
+
def where(sql = nil)
|
134
|
+
vars = thing_scoped.where(sql) if sql
|
135
|
+
vars
|
136
|
+
end
|
137
|
+
|
138
|
+
# get a setting value by [] notation
|
139
|
+
def [](var_name)
|
140
|
+
val = object(var_name)
|
141
|
+
return val.value if val
|
142
|
+
end
|
143
|
+
|
144
|
+
# set a setting value by [] notation
|
145
|
+
def []=(var_name, value)
|
146
|
+
var_name = var_name.to_s
|
147
|
+
|
148
|
+
record = object(var_name) || thing_scoped.new(var: var_name)
|
149
|
+
record.value = value
|
150
|
+
record.save!
|
151
|
+
|
152
|
+
value
|
153
|
+
end
|
154
|
+
|
155
|
+
def merge!(var_name, hash_value)
|
156
|
+
raise ArgumentError unless hash_value.is_a?(Hash)
|
157
|
+
|
158
|
+
old_value = self[var_name] || {}
|
159
|
+
raise TypeError, "Existing value is not a hash, can't merge!" unless old_value.is_a?(Hash)
|
160
|
+
|
161
|
+
new_value = old_value.merge(hash_value)
|
162
|
+
self[var_name] = new_value if new_value != old_value
|
163
|
+
|
164
|
+
new_value
|
165
|
+
end
|
166
|
+
|
167
|
+
def object(var_name)
|
168
|
+
return nil unless table_exists?
|
169
|
+
thing_scoped.where(var: var_name.to_s).first
|
170
|
+
end
|
171
|
+
|
172
|
+
def thing_scoped
|
173
|
+
unscoped.where("thing_type is NULL and thing_id is NULL")
|
174
|
+
end
|
175
|
+
|
176
|
+
def source(filename)
|
177
|
+
Default.source(filename)
|
178
|
+
end
|
179
|
+
|
180
|
+
def rails_initialized?
|
181
|
+
Rails.application && Rails.application.initialized?
|
182
|
+
end
|
183
|
+
|
184
|
+
private
|
185
|
+
|
186
|
+
def default_settings(starting_with = nil)
|
187
|
+
return {} unless Default.enabled?
|
188
|
+
return Default.instance if starting_with.nil?
|
189
|
+
Default.instance.select { |key, _| key.to_s.start_with?(starting_with) }
|
190
|
+
end
|
191
|
+
end
|
39
192
|
end
|
File without changes
|
@@ -1,8 +1,16 @@
|
|
1
1
|
module Releaf::Root
|
2
2
|
class SettingsManager
|
3
|
+
CAST_MAP = {
|
4
|
+
"false" => false,
|
5
|
+
"true" => true,
|
6
|
+
}
|
3
7
|
|
4
8
|
def self.read(controller:, key:)
|
5
|
-
controller.send(:cookies)[key]
|
9
|
+
value = controller.send(:cookies)[key]
|
10
|
+
|
11
|
+
return CAST_MAP[value] if CAST_MAP.key? value
|
12
|
+
|
13
|
+
value
|
6
14
|
end
|
7
15
|
|
8
16
|
def self.write(controller:, key:, value:)
|
data/lib/releaf-core.rb
CHANGED