From ccd627151f028b7a3e23f69b4b0634c4b2da4563 Mon Sep 17 00:00:00 2001 From: Murod Khaydarov Date: Fri, 25 Jan 2019 06:19:37 +0300 Subject: [PATCH] remove pages (#27) * remove pages * requested changes and unit tests * update * fix unit test * requested changes * add confirmation * remove deeply * remove log * bugfix * update placeholder --- public/dist/code-styling.bundle.js | 2 +- public/dist/editor.bundle.js | 12 ++--- public/dist/main.bundle.js | 4 +- public/dist/main.css | 2 +- src/controllers/pages.js | 4 ++ src/controllers/pagesOrder.js | 14 ++++++ src/frontend/js/modules/writing.js | 50 ++++++++++++++++++--- src/frontend/styles/components/header.pcss | 1 + src/frontend/styles/components/page.pcss | 1 + src/frontend/styles/components/writing.pcss | 8 ++++ src/frontend/styles/vars.pcss | 23 +++++++++- src/models/alias.js | 13 ++++++ src/models/page.js | 2 +- src/models/pageOrder.js | 37 +++++++++++++++ src/routes/api/pages.js | 48 ++++++++++++++++++-- src/views/pages/form.twig | 14 +++--- test/models/page.js | 37 ++++++++++++--- test/models/pageOrder.js | 2 +- test/rest/aliases.js | 3 +- test/rest/pages.js | 32 +++++++++---- 20 files changed, 265 insertions(+), 44 deletions(-) diff --git a/public/dist/code-styling.bundle.js b/public/dist/code-styling.bundle.js index 2381307..163b831 100644 --- a/public/dist/code-styling.bundle.js +++ b/public/dist/code-styling.bundle.js @@ -1 +1 @@ -(window.webpackJsonpDocs=window.webpackJsonpDocs||[]).push([[0],Array(59).concat([function(e,n,t){var r=t(64),a=t(19);e.exports=function(e){return r(a(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(19);e.exports=function(e){return Object(r(e))}},function(e,n,t){"use strict";var r=t(22),a=t(10),i=t(12),o=t(9),s=t(16),c=t(73),u=t(31),l=t(79),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){var r=t(76),a=t(65);e.exports=Object.keys||function(e){return r(e,a)}},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){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},,,,,,,function(e,n,t){"use strict";var r=t(38)(!0);t(62)(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(74),a=t(30),i=t(31),o={};t(9)(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(75),i=t(65),o=t(60)("IE_PROTO"),s=function(){},c=function(){var e,n=t(20)("iframe"),r=i.length;for(n.style.display="none",t(36).appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write("