diff --git a/package.json b/package.json index cf837de..8ed6d8f 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build:dev": "webpack ./src/frontend/js/app.js --o='./public/dist/[name].bundle.js' --output-library=Docs --output-public-path=/dist/ -p --mode=development --watch", "precommit": "yarn lint && yarn test --exit", "generatePassword": "node ./generatePassword.js", - "editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,image,table,inline-code,marker,warning}@latest" + "editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,image,table,inline-code,marker,warning,checklist}@latest" }, "dependencies": { "bcrypt": "^3.0.3", @@ -35,6 +35,7 @@ "node-fetch": "^2.3.0", "nodemon": "^1.18.3", "twig": "~1.12.0", + "typescript-eslint": "^0.0.1-alpha.0", "uuid4": "^1.0.0" }, "devDependencies": { @@ -43,15 +44,16 @@ "@babel/polyfill": "^7.2.5", "@babel/preset-env": "^7.1.0", "@codexteam/misprints": "^1.0.0", + "@editorjs/checklist": "^1.1.0", "@editorjs/code": "^2.4.1", "@editorjs/delimiter": "^1.1.0", - "@editorjs/editorjs": "^2.16.0", - "@editorjs/header": "^2.3.2", - "@editorjs/image": "^2.3.3", + "@editorjs/editorjs": "^2.17.0", + "@editorjs/header": "^2.4.1", + "@editorjs/image": "^2.3.4", "@editorjs/inline-code": "^1.3.1", "@editorjs/list": "^1.4.0", "@editorjs/marker": "^1.2.2", - "@editorjs/table": "^1.2.0", + "@editorjs/table": "^1.2.2", "@editorjs/warning": "^1.1.1", "autoprefixer": "^9.1.3", "babel": "^6.23.0", @@ -61,8 +63,8 @@ "chai-http": "^4.0.0", "css-loader": "^1.0.0", "cssnano": "^4.1.0", - "eslint": "^5.3.0", - "eslint-config-codex": "github:codex-team/eslint-config", + "eslint": "^6.8.0", + "eslint-config-codex": "^1.3.4", "eslint-plugin-chai-friendly": "^0.4.1", "eslint-plugin-import": "^2.14.0", "eslint-plugin-node": "^8.0.1", diff --git a/public/dist/code-styling.bundle.js b/public/dist/code-styling.bundle.js index ae08ed7..3d3c64a 100644 --- a/public/dist/code-styling.bundle.js +++ b/public/dist/code-styling.bundle.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],Array(60).concat([function(e,n,t){var r=t(62),a=t(17);e.exports=function(e){return r(a(e))}},function(e,n,t){var r=t(17);e.exports=function(e){return Object(r(e))}},function(e,n,t){var r=t(11);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,n,t){var r=t(32)("keys"),a=t(21);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,n,t){var r=t(66),a=t(65);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(18),a=t(60),i=t(67)(!1),s=t(63)("IE_PROTO");e.exports=function(e,n){var t,o=a(e),c=0,l=[];for(t in o)t!=s&&r(o,t)&&l.push(t);for(;n.length>c;)r(o,t=n[c++])&&(~i(l,t)||l.push(t));return l}},function(e,n,t){var r=t(60),a=t(16),i=t(68);e.exports=function(e){return function(n,t,s){var o,c=r(n),l=a(c.length),u=i(s,l);if(e&&t!=t){for(;l>u;)if((o=c[u++])!=o)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===t)return e||u||0;return!e&&-1}}},function(e,n,t){var r=t(20),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){var r=t(7),a=t(62),i=t(61),s=t(16),o=t(90);e.exports=function(e,n){var t=1==e,c=2==e,l=3==e,u=4==e,g=6==e,f=5==e||g,d=n||o;return function(n,o,p){for(var v,h,E=i(n),b=a(E),m=r(o,p,3),_=s(b.length),y=0,N=t?d(n,_):c?d(n,0):void 0;_>y;y++)if((f||y in b)&&(h=m(v=b[y],y,E),e))if(t)N[y]=h;else if(h)switch(e){case 3:return!0;case 5:return v;case 6:return y;case 2:N.push(v)}else if(u)return!1;return g?-1:l||u?u:N}}},function(e,n,t){"use strict";var r=t(13);e.exports=function(e,n){return!!e&&r(function(){n?e.call(null,function(){},1):e.call(null)})}},function(e,n,t){"use strict";var r=t(23),a=t(9),i=t(14),s=t(10),o=t(19),c=t(94),l=t(33),u=t(97),g=t(1)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,n,t,p,v,h,E){c(t,n,p);var b,m,_,y=function(e){if(!f&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new t(this,e)}}return function(){return new t(this,e)}},N=n+" Iterator",O="values"==v,x=!1,S=e.prototype,M=S[g]||S["@@iterator"]||v&&S[v],R=M||y(v),w=v?O?y("entries"):R:void 0,A="Array"==n&&S.entries||M;if(A&&(_=u(A.call(new e)))!==Object.prototype&&_.next&&(l(_,N,!0),r||"function"==typeof _[g]||s(_,g,d)),O&&M&&"values"!==M.name&&(x=!0,R=function(){return M.call(this)}),r&&!E||!f&&!x&&S[g]||s(S,g,R),o[n]=R,o[N]=d,v)if(b={values:O?R:y("values"),keys:h?R:y("keys"),entries:w},E)for(m in b)m in S||i(S,m,b[m]);else a(a.P+a.F*(f||x),n,b);return b}},,,,,,,,,,,,,,,function(e,n,t){"use strict";var r=t(2),a=t(61),i=t(16),s=t(20),o=t(34),c=t(35),l=Math.max,u=Math.min,g=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;t(36)("replace",2,function(e,n,t,p){return[function(r,a){var i=e(this),s=null==r?void 0:r[n];return void 0!==s?s.call(r,i,a):t.call(String(i),r,a)},function(e,n){var a=p(t,e,this,n);if(a.done)return a.value;var g=r(e),f=String(this),d="function"==typeof n;d||(n=String(n));var h=g.global;if(h){var E=g.unicode;g.lastIndex=0}for(var b=[];;){var m=c(g,f);if(null===m)break;if(b.push(m),!h)break;""===String(m[0])&&(g.lastIndex=o(f,i(g.lastIndex),E))}for(var _,y="",N=0,O=0;O=N&&(y+=f.slice(N,S)+T,N=S+x.length)}return y+f.slice(N)}];function v(e,n,r,i,s,o){var c=r+e.length,l=i.length,u=d;return void 0!==s&&(s=a(s),u=f),t.call(o,u,function(t,a){var o;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":o=s[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>l){var f=g(u/10);return 0===f?t:f<=l?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}o=i[u-1]}return void 0===o?"":o})}})},function(e,n,t){"use strict";var r=t(88),a=t(2),i=t(40),s=t(34),o=t(16),c=t(35),l=t(24),u=Math.min,g=[].push,f=!!function(){try{return new RegExp("x","y")}catch(e){}}();t(36)("split",2,function(e,n,t,d){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var a=String(this);if(void 0===e&&0===n)return[];if(!r(e))return t.call(a,e,n);for(var i,s,o,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===n?4294967295:n>>>0,p=new RegExp(e.source,u+"g");(i=l.call(p,a))&&!((s=p.lastIndex)>f&&(c.push(a.slice(f,i.index)),i.length>1&&i.index=d));)p.lastIndex===i.index&&p.lastIndex++;return f===a.length?!o&&p.test("")||c.push(""):c.push(a.slice(f)),c.length>d?c.slice(0,d):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,r){var a=e(this),i=null==t?void 0:t[n];return void 0!==i?i.call(t,a,r):p.call(String(a),t,r)},function(e,n){var r=d(p,e,this,n,p!==t);if(r.done)return r.value;var l=a(e),g=String(this),v=i(l,RegExp),h=l.unicode,E=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(f?"y":"g"),b=new v(f?l:"^(?:"+l.source+")",E),m=void 0===n?4294967295:n>>>0;if(0===m)return[];if(0===g.length)return null===c(b,g)?[g]:[];for(var _=0,y=0,N=[];y=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(95),a=t(31),i=t(33),s={};t(10)(s,t(1)("iterator"),function(){return this}),e.exports=function(e,n,t){e.prototype=r(s,{next:a(1,t)}),i(e,n+" Iterator")}},function(e,n,t){var r=t(2),a=t(96),i=t(65),s=t(63)("IE_PROTO"),o=function(){},c=function(){var e,n=t(22)("iframe"),r=i.length;for(n.style.display="none",t(41).appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write("