From 3623aade0b2ef7f49942cb7d007ecea1c48df8d8 Mon Sep 17 00:00:00 2001 From: Nikita Melnikov Date: Mon, 1 Apr 2019 17:32:14 +0300 Subject: [PATCH] Implement diff highlight (#85) * diff highlight * update docs and function renaming * fix * simplify code * lint code * lint code * rename classes * solution through split func * update code style * remove line numbers testing * Update main.css --- public/dist/code-styling.bundle.js | 2 +- public/dist/code-styling.css | 1 + public/dist/editor.bundle.js | 12 +++++----- public/dist/main.bundle.js | 4 ++-- public/dist/main.css | 2 +- src/frontend/js/classes/codeStyler.js | 15 +++++++++++++ src/frontend/styles/components/page.pcss | 12 +++++++++- src/frontend/styles/diff.pcss | 28 ++++++++++++++++++++++++ 8 files changed, 65 insertions(+), 11 deletions(-) create mode 100644 src/frontend/styles/diff.pcss diff --git a/public/dist/code-styling.bundle.js b/public/dist/code-styling.bundle.js index 66cd60d..ae08ed7 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(61),a=t(17);e.exports=function(e){return r(a(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(20);e.exports=function(e){return r[e]||(r[e]=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(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(62)("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(21),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(23),a=t(9),i=t(14),s=t(10),o=t(19),c=t(85),l=t(33),u=t(88),g=t(1)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,n,t,p,E,v,b){c(t,n,p);var m,h,_,y=function(e){if(!f&&e in R)return R[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"==E,M=!1,R=e.prototype,S=R[g]||R["@@iterator"]||E&&R[E],w=S||y(E),x=E?O?y("entries"):w:void 0,A="Array"==n&&R.entries||S;if(A&&(_=u(A.call(new e)))!==Object.prototype&&_.next&&(l(_,N,!0),r||"function"==typeof _[g]||s(_,g,d)),O&&S&&"values"!==S.name&&(M=!0,w=function(){return S.call(this)}),r&&!b||!f&&!M&&R[g]||s(R,g,w),o[n]=w,o[N]=d,E)if(m={values:O?w:y("values"),keys:v?w:y("keys"),entries:x},b)for(h in m)h in R||i(R,h,m[h]);else a(a.P+a.F*(f||M),n,m);return m}},,,,,,,,,,,,,,,function(e,n,t){"use strict";var r=t(39)(!0);t(69)(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(86),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(87),i=t(65),s=t(62)("IE_PROTO"),o=function(){},c=function(){var e,n=t(22)("iframe"),r=i.length;for(n.style.display="none",t(37).appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write("