diff --git a/.codexdocsrc b/.codexdocsrc.sample similarity index 55% rename from .codexdocsrc rename to .codexdocsrc.sample index f42c13c..f6c51c2 100644 --- a/.codexdocsrc +++ b/.codexdocsrc.sample @@ -1,9 +1,10 @@ { - "title": "CodeX Editor   🤩🧦🤨", + "title": "CodeX Docs", "menu": [ "Guides", "API", "Plugins", {"title": "Support Project", "uri": "/support"} - ] + ], + "landingFrameSrc": "https://codex.so/editor?frame=1" } diff --git a/.gitignore b/.gitignore index 1a1c337..73f8b0a 100644 --- a/.gitignore +++ b/.gitignore @@ -70,3 +70,5 @@ typings/ # Cache of babel and others .cache/ .eslintcache +.DS_Store +.codexdocsrc diff --git a/nodemon.json b/nodemon.json new file mode 100644 index 0000000..2b0661c --- /dev/null +++ b/nodemon.json @@ -0,0 +1,11 @@ +{ + "ignore": [ + "node_modules", + "src/frontend", + "public/dist" + ], + "events": { + "restart": "echo \"App restarted due to: '$FILENAME'\"" + }, + "ext": "js,twig" +} diff --git a/package.json b/package.json index cdf6f0a..a12f49e 100644 --- a/package.json +++ b/package.json @@ -16,17 +16,23 @@ "@babel/polyfill": "^7.0.0", "bcrypt": "^3.0.3", "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", "commander": "^2.19.0", + "codex.editor.image": "^2.0.3", + "codex.editor.quote": "^2.1.5", + "codex.editor.raw": "^2.0.2", "cookie-parser": "~1.4.3", "csurf": "^1.9.0", "debug": "~4.1.0", "dotenv": "^6.2.0", + "jsonwebtoken": "^8.4.0", + "eslint-plugin-standard": "^4.0.0", "express": "~4.16.0", "http-errors": "~1.7.1", - "jsonwebtoken": "^8.4.0", - "module-dispatcher": "^1.0.2", + "module-dispatcher": "^2.0.0", "morgan": "~1.9.0", "multer": "^1.3.1", "nedb": "^1.8.0", @@ -45,9 +51,9 @@ "babel-loader": "^8.0.2", "chai": "^4.1.2", "chai-http": "^4.0.0", - "codex.editor.code": "^2.0.0", - "codex.editor.inline-code": "^1.0.1", - "codex.editor.list": "^1.0.2", + "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", "cross-env": "^5.2.0", "css-loader": "^1.0.0", @@ -55,6 +61,8 @@ "eslint": "^5.3.0", "eslint-config-codex": "github:codex-team/eslint-config", "eslint-plugin-chai-friendly": "^0.4.1", + "eslint-plugin-import": "^2.14.0", + "eslint-plugin-node": "^8.0.1", "highlight.js": "^9.13.1", "husky": "^1.1.2", "mini-css-extract-plugin": "^0.4.3", diff --git a/public/dist/code-styling.bundle.js b/public/dist/code-styling.bundle.js index c20d36c..f000270 100644 --- a/public/dist/code-styling.bundle.js +++ b/public/dist/code-styling.bundle.js @@ -1 +1 @@ -(window.webpackJsonpDocs=window.webpackJsonpDocs||[]).push([[2],Array(50).concat([function(e,n){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,n,t){var r=t(56),a=t(50);e.exports=function(e){return r(a(e))}},function(e,n,t){var r=t(30)("keys"),a=t(18);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,n,t){var r=t(50);e.exports=function(e){return Object(r(e))}},function(e,n,t){"use strict";var r=t(19),a=t(12),i=t(14),o=t(11),s=t(13),c=t(66),u=t(29),l=t(72),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,x=O[f]||O["@@iterator"]||v&&O[v],M=x||_(v),S=v?w?_("entries"):M:void 0,A="Array"==n&&O.entries||x;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&&x&&"values"!==x.name&&(N=!0,M=function(){return x.call(this)}),r&&!h||!g&&!N&&O[f]||o(O,f,M),s[n]=M,s[R]=d,v)if(b={values:w?M:_("values"),keys:E?M:_("keys"),entries:S},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(69),a=t(57);e.exports=Object.keys||function(e){return r(e,a)}},function(e,n,t){var r=t(10);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(65)(!0);t(54)(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){var r=t(28),a=t(50);e.exports=function(e){return function(n,t){var i,o,s=String(a(n)),c=r(t),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):i:e?s.slice(c,c+2):o-56320+(i-55296<<10)+65536}}},function(e,n,t){"use strict";var r=t(67),a=t(27),i=t(29),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(68),i=t(57),o=t(52)("IE_PROTO"),s=function(){},c=function(){var e,n=t(17)("iframe"),r=i.length;for(n.style.display="none",t(34).appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write("