From a4031f151fd4d8ad0b89285698720efbc171970f Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Mon, 18 Feb 2019 10:42:12 +0300 Subject: [PATCH] Code tool updated (#45) --- package.json | 6 +++--- public/dist/code-styling.bundle.js | 2 +- public/dist/code-styling.css | 2 +- public/dist/editor.bundle.js | 20 ++++++++++---------- public/dist/main.bundle.js | 6 +++--- public/dist/main.css | 2 +- src/frontend/js/classes/codeStyler.js | 8 +++++--- src/frontend/js/classes/editor.js | 14 +++++++------- src/frontend/styles/components/page.pcss | 9 +++++++-- src/views/pages/blocks/code.twig | 3 ++- src/views/pages/form.twig | 4 ++-- yarn.lock | 18 +++++++++--------- 12 files changed, 51 insertions(+), 43 deletions(-) diff --git a/package.json b/package.json index 8ea80c0..e5a31b8 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dependencies": { "@babel/polyfill": "^7.0.0", "body-parser": "latest", - "codex.editor": "^2.1.3", + "codex.editor": "^2.8.1", "codex.editor.delimiter": "^1.0.2", "codex.editor.embed": "^2.1.2", "codex.editor.header": "^2.0.5", @@ -25,7 +25,7 @@ "eslint-plugin-standard": "^4.0.0", "express": "~4.16.0", "http-errors": "~1.7.1", - "module-dispatcher": "^1.0.2", + "module-dispatcher": "^2.0.0", "morgan": "~1.9.0", "multer": "^1.3.1", "nedb": "^1.8.0", @@ -44,7 +44,7 @@ "babel-loader": "^8.0.2", "chai": "^4.1.2", "chai-http": "^4.0.0", - "codex.editor.code": "^2.0.0", + "codex.editor.code": "^2.3.1", "codex.editor.inline-code": "^1.2.0", "codex.editor.list": "^1.2.3", "codex.editor.marker": "^1.0.1", diff --git a/public/dist/code-styling.bundle.js b/public/dist/code-styling.bundle.js index 19af361..1952027 100644 --- a/public/dist/code-styling.bundle.js +++ b/public/dist/code-styling.bundle.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],Array(33).concat([function(e,n,t){var r=t(17);e.exports=function(e){return Object(r(e))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,n,t){var r=t(63),a=t(17);e.exports=function(e){return r(a(e))}},function(e,n,t){var r=t(13);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,n,t){var r=t(35)("keys"),a=t(23);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,n,t){var r=t(67),a=t(66);e.exports=Object.keys||function(e){return r(e,a)}},function(e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,n,t){var r=t(21),a=t(62),i=t(68)(!1),o=t(64)("IE_PROTO");e.exports=function(e,n){var t,s=a(e),c=0,u=[];for(t in s)t!=o&&r(s,t)&&u.push(t);for(;n.length>c;)r(s,t=n[c++])&&(~i(u,t)||u.push(t));return u}},function(e,n,t){var r=t(62),a=t(12),i=t(69);e.exports=function(e){return function(n,t,o){var s,c=r(n),u=a(c.length),l=i(o,u);if(e&&t!=t){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===t)return e||l||0;return!e&&-1}}},function(e,n,t){var r=t(16),a=Math.max,i=Math.min;e.exports=function(e,n){return(e=r(e))<0?a(e+n,0):i(e,n)}},function(e,n,t){"use strict";var r=t(25),a=t(10),i=t(15),o=t(11),s=t(22),c=t(87),u=t(36),l=t(90),f=t(1)("iterator"),g=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,n,t,p,v,E,h){c(t,n,p);var b,m,y,_=function(e){if(!g&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new t(this,e)}}return function(){return new t(this,e)}},R=n+" Iterator",w="values"==v,N=!1,O=e.prototype,M=O[f]||O["@@iterator"]||v&&O[v],S=M||_(v),x=v?w?_("entries"):S:void 0,A="Array"==n&&O.entries||M;if(A&&(y=l(A.call(new e)))!==Object.prototype&&y.next&&(u(y,R,!0),r||"function"==typeof y[f]||o(y,f,d)),w&&M&&"values"!==M.name&&(N=!0,S=function(){return M.call(this)}),r&&!h||!g&&!N&&O[f]||o(O,f,S),s[n]=S,s[R]=d,v)if(b={values:w?S:_("values"),keys:E?S:_("keys"),entries:x},h)for(m in b)m in O||i(O,m,b[m]);else a(a.P+a.F*(g||N),n,b);return b}},,,,,,,,,,,,,,,,function(e,n,t){"use strict";var r=t(42)(!0);t(70)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,n=this._t,t=this._i;return t>=n.length?{value:void 0,done:!0}:(e=r(n,t),this._i+=e.length,{value:e,done:!1})})},function(e,n,t){"use strict";var r=t(88),a=t(34),i=t(36),o={};t(11)(o,t(1)("iterator"),function(){return this}),e.exports=function(e,n,t){e.prototype=r(o,{next:a(1,t)}),i(e,n+" Iterator")}},function(e,n,t){var r=t(2),a=t(89),i=t(66),o=t(64)("IE_PROTO"),s=function(){},c=function(){var e,n=t(24)("iframe"),r=i.length;for(n.style.display="none",t(40).appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write("