From 534533d73e787df566651c7a5f16e4467c423a89 Mon Sep 17 00:00:00 2001 From: Stan Fortonski Date: Sun, 6 Jun 2021 17:07:54 +0200 Subject: [PATCH] Post saving improvements --- package-lock.json | 6 +-- package.json | 2 +- public/js/admin.js | 2 +- public/js/app.js | 2 +- resources/js/admin.js | 1 + resources/js/scripts/post-date.js | 16 +++++++ resources/views/admin/posts/index.blade.php | 20 ++++----- resources/views/admin/posts/save.blade.php | 48 +++++++++++---------- 8 files changed, 58 insertions(+), 39 deletions(-) create mode 100644 resources/js/scripts/post-date.js diff --git a/package-lock.json b/package-lock.json index f1287e0..412fcfc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14156,9 +14156,9 @@ } }, "sass": { - "version": "1.34.1", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.34.1.tgz", - "integrity": "sha512-scLA7EIZM+MmYlej6sdVr0HRbZX5caX5ofDT9asWnUJj21oqgsC+1LuNfm0eg+vM0fCTZHhwImTiCU0sx9h9CQ==", + "version": "1.32.13", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.32.13.tgz", + "integrity": "sha512-dEgI9nShraqP7cXQH+lEXVf73WOPCse0QlFzSD8k+1TcOxCMwVXfQlr0jtoluZysQOyJGnfr21dLvYKDJq8HkA==", "dev": true, "requires": { "chokidar": ">=3.0.0 <4.0.0" diff --git a/package.json b/package.json index 72b8d94..0c4591e 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "lodash": "^4.17.21", "perfect-scrollbar": "^1.5.1", "resolve-url-loader": "^3.1.3", - "sass": "^1.34.1", + "sass": "~1.32.13", "sass-loader": "^10.2.0", "vue-template-compiler": "^2.6.13" }, diff --git a/public/js/admin.js b/public/js/admin.js index e3d84fd..b689474 100644 --- a/public/js/admin.js +++ b/public/js/admin.js @@ -1,2 +1,2 @@ /*! For license information please see admin.js.LICENSE.txt */ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=49)}({1:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},18:function(e,t,n){e.exports=function(){"use strict";var e='.custom-file input[type="file"]',t=".custom-file-label",n="form",r="input",o=function(e){var n="",r=e.parentNode.querySelector(t);return r&&(n=r.textContent),n},i=function(e){if(e.childNodes.length>0)for(var t=[].slice.call(e.childNodes),n=0;n1)for(var n=1;n=r.length&&n.substr(0,0+r.length)===r;var n,r},Ve=function(e){return function(t){return t.replace(e,"")}},$e=Ve(/^\s+|\s+$/g),We=Ve(/^\s+/g),Ke=Ve(/\s+$/g),Xe=function(e){return 0=e.length&&t(n)}))}))}))})(K(e,s),vr).get((function(e){var r=function(e,t){for(var n=[],r=[],o=0,i=e.length;o\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wo=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ko=/[<>&\"\']/g,Xo=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Yo={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Go={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Jo={"<":"<",">":">","&":"&",""":'"',"'":"'"},Qo=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n>10),56320+(1023&t))):Yo[t]||String.fromCharCode(t):Jo[e]||Zo[e]||(n=e,(r=Bt("div").dom).innerHTML=n,r.textContent||r.innerText||n);var n,r}))}},oi={},ii={},ai=Tt.makeMap,ui=Tt.each,si=Tt.extend,ci=Tt.explode,li=Tt.inArray,fi=function(e,t){return(e=Tt.trim(e))?e.split(t||" "):[]},di=function(e,t){var n;return e&&(n={},"string"==typeof e&&(e={"*":e}),ui(e,(function(e,r){n[r]=n[r.toUpperCase()]=("map"===t?ai:ci)(e,/[, ]/)}))),n},mi=function(e){var t,n,r,o,i,a,u,s,c,l,f={},d={},m=[],p={},g={},h=function(t,n,r){var o=e[t];return o?o=ai(o,/[, ]/,ai(o.toUpperCase(),/[, ]/)):(o=oi[t])||(o=ai(n," ",ai(n.toUpperCase()," ")),o=si(o,r),oi[t]=o),o},v=(t=(e=e||{}).schema,s={},c=function(e,t,r){var o,i,a=function(e,t){for(var n={},r=0,o=e.length;r