From 3ffd6586aca37735c93a7f00963b610d26d56c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ghi=C8=9B=C4=83=20Biz=C4=83u?= Date: Fri, 26 Oct 2018 13:20:33 +0300 Subject: [PATCH] Release 1.0.2, update demo live. --- HISTORY.txt | 10 +++++++++- VERSION.txt | 2 +- docs/index.html | 2 +- ...ee.css => app.292b48e1ca4c138fc4d2b8b9e23e455c.css} | 4 ++-- .../css/app.292b48e1ca4c138fc4d2b8b9e23e455c.css.map | 1 + .../css/app.613633fc3760ff13b1206317c639daee.css.map | 1 - ...4bf662046545b13d.js => app.34192fcf62436d2f7bd3.js} | 4 ++-- docs/static/js/app.34192fcf62436d2f7bd3.js.map | 1 + docs/static/js/app.6dac4bf662046545b13d.js.map | 1 - docs/static/js/manifest.2ae2e69a05c33dfc65f8.js.map | 2 +- 10 files changed, 18 insertions(+), 10 deletions(-) rename docs/static/css/{app.613633fc3760ff13b1206317c639daee.css => app.292b48e1ca4c138fc4d2b8b9e23e455c.css} (74%) create mode 100644 docs/static/css/app.292b48e1ca4c138fc4d2b8b9e23e455c.css.map delete mode 100644 docs/static/css/app.613633fc3760ff13b1206317c639daee.css.map rename docs/static/js/{app.6dac4bf662046545b13d.js => app.34192fcf62436d2f7bd3.js} (56%) create mode 100644 docs/static/js/app.34192fcf62436d2f7bd3.js.map delete mode 100644 docs/static/js/app.6dac4bf662046545b13d.js.map diff --git a/HISTORY.txt b/HISTORY.txt index cdb7a8c..4255384 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -1,13 +1,21 @@ Changelog ========= -1.0.2 - (unreleased) +1.0.2 - (2018-10-26) -------------------- * Fix: - update the date structure to have ids for all cells in order to fix the rendering of table on rows / columns order change - fix links rendering +* Improve: + - design + - trim input + +* Features: + - debug mode + - add search filters + 1.0.1 - (2018-10-10) -------------------- * Fix: diff --git a/VERSION.txt b/VERSION.txt index e063e2f..6d7de6e 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -1.0.2.dev0 +1.0.2 diff --git a/docs/index.html b/docs/index.html index 304ff68..7c44509 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -Datatables admin
+Datatables admin
diff --git a/docs/static/css/app.613633fc3760ff13b1206317c639daee.css b/docs/static/css/app.292b48e1ca4c138fc4d2b8b9e23e455c.css similarity index 74% rename from docs/static/css/app.613633fc3760ff13b1206317c639daee.css rename to docs/static/css/app.292b48e1ca4c138fc4d2b8b9e23e455c.css index cf8ef2c..e7661d9 100644 --- a/docs/static/css/app.613633fc3760ff13b1206317c639daee.css +++ b/docs/static/css/app.292b48e1ca4c138fc4d2b8b9e23e455c.css @@ -1,2 +1,2 @@ -@import url(https://fonts.googleapis.com/css?family=Open+Sans|Tangerine);body.dta{font-family:Open Sans,sans-serif;background:#eee;color:#000}body.dta div#datatables-admin{background:#fff;padding:20px;margin:20px}body.dta div#datatables-admin h1{font-family:Tangerine,cursive;color:#000;text-align:center;font-size:86px;font-weight:500;margin:20px}body.dta div#datatables-admin table#editor{background:#eee;border-spacing:5px;color:#000;margin:auto}body.dta div#datatables-admin table#editor td,body.dta div#datatables-admin table#editor th,body.dta div#datatables-admin table#editor tr{background:#fff;padding:5px;margin:5px;text-align:center}body.dta div#datatables-admin .dta-btn,body.dta div#datatables-admin table#editor th{-ms-user-select:none;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}body.dta div#datatables-admin .dta-btn{color:#a0b228}body.dta div#datatables-admin .dta-btn:hover{color:#819110;cursor:pointer}body.dta div#datatables-admin div.table-preview-container{text-align:center;margin-top:40px}body.dta div#datatables-admin table.table-render-preview{margin:auto}body.dta div#datatables-admin button.render-table{margin-bottom:40px;padding:10px;border-radius:6px;background:#a0b228;color:#fff;border:none;font-size:16px;font-weight:900}body.dta div#datatables-admin button.render-table:hover{background:#819110;cursor:pointer}body.dta a{color:#a0b228;text-decoration:none;font-weight:900}body.dta a:hover{color:#819110}body.dta ul.filters-list{padding:50px}body.dta ul.filters-list li{float:left;margin-right:40px;color:#a0b228}body.dta ul.filters-list li:hover{cursor:pointer;color:#819110} -/*# sourceMappingURL=app.613633fc3760ff13b1206317c639daee.css.map */ \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Open+Sans|Tangerine);body.dta{font-family:Open Sans,sans-serif;background:#eee;color:#000}body.dta div#datatables-admin{background:#fff;padding:20px;margin:20px}body.dta div#datatables-admin h1{font-family:Tangerine,cursive;color:#000;text-align:center;font-size:86px;font-weight:500;margin:20px}body.dta div#datatables-admin table#editor{background:#eee;border-spacing:5px;color:#000;margin:auto}body.dta div#datatables-admin table#editor td,body.dta div#datatables-admin table#editor th,body.dta div#datatables-admin table#editor tr{background:#fff;padding:5px;margin:5px;text-align:center}body.dta div#datatables-admin .dta-btn,body.dta div#datatables-admin table#editor th{-ms-user-select:none;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}body.dta div#datatables-admin .dta-btn{color:#a0b228}body.dta div#datatables-admin .dta-btn:hover{color:#819110;cursor:pointer}body.dta div#datatables-admin div.table-preview-container{text-align:center;margin-top:40px}body.dta div#datatables-admin table.table-render-preview{margin:auto}body.dta div#datatables-admin button.render-table{margin-bottom:40px;padding:10px;border-radius:6px;background:#a0b228;color:#fff;border:none;font-size:16px;font-weight:900}body.dta div#datatables-admin button.render-table:hover{background:#819110;cursor:pointer}body.dta a{color:#a0b228;text-decoration:none;font-weight:900}body.dta a:hover{color:#819110}body.dta div.filters-container{clear:both;text-align:center}body.dta div.filters-container ul.filters-list{display:inline-block;margin:0;padding:0;zoom:1;*display:inline}body.dta ul.filters-list li{float:left;color:#a0b228;padding:10px 20px;margin-right:20px;list-style:none}body.dta ul.filters-list li.is-selected{border-bottom:2px solid #a0b228}body.dta ul.filters-list li:hover{cursor:pointer;color:#819110} +/*# sourceMappingURL=app.292b48e1ca4c138fc4d2b8b9e23e455c.css.map */ \ No newline at end of file diff --git a/docs/static/css/app.292b48e1ca4c138fc4d2b8b9e23e455c.css.map b/docs/static/css/app.292b48e1ca4c138fc4d2b8b9e23e455c.css.map new file mode 100644 index 0000000..6d30a9c --- /dev/null +++ b/docs/static/css/app.292b48e1ca4c138fc4d2b8b9e23e455c.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["app.292b48e1ca4c138fc4d2b8b9e23e455c.css"],"names":[],"mappings":"AAAA,yEAAyE,AAIzE,SACE,iCAAqC,AACrC,gBAAoB,AACpB,UAAe,CAChB,AACD,8BACE,gBAAoB,AACpB,aAAc,AACd,WAAa,CACd,AACD,iCACE,8BAAkC,AAClC,WAAe,AACf,kBAAmB,AACnB,eAAgB,AAChB,gBAAiB,AACjB,WAAa,CACd,AACD,2CACE,gBAAoB,AACpB,mBAAoB,AACpB,WAAe,AACf,WAAa,CACd,AACD,0IAGE,gBAAoB,AACpB,YAAa,AACb,WAAY,AACZ,iBAAmB,CACpB,AASD,qFAPE,qBAAsB,AAClB,iBAAkB,AACtB,sBAAuB,AACvB,wBAAyB,AACzB,yBAA0B,AAC1B,mBAAqB,CAYtB,AAVD,uCACE,aAAe,CAShB,AACD,6CACE,cAAe,AACf,cAAgB,CACjB,AACD,0DACE,kBAAmB,AACnB,eAAiB,CAClB,AACD,yDACE,WAAa,CACd,AACD,kDACE,mBAAoB,AACpB,aAAc,AACd,kBAAmB,AACnB,mBAAoB,AACpB,WAAe,AACf,YAAa,AACb,eAAgB,AAChB,eAAiB,CAClB,AACD,wDACE,mBAAoB,AACpB,cAAgB,CACjB,AACD,WACE,cAAe,AACf,qBAAsB,AACtB,eAAiB,CAClB,AACD,iBACE,aAAe,CAChB,AACD,+BACE,WAAY,AACZ,iBAAmB,CACpB,AACD,+CACE,qBAAsB,AACtB,SAAU,AACV,UAAW,AAEX,OAAO,CACP,cAAiB,CAClB,AACD,4BACE,WAAY,AACZ,cAAe,AACf,kBAAmB,AACnB,kBAAmB,AACnB,eAAiB,CAClB,AACD,wCACE,+BAAiC,CAClC,AACD,kCACE,eAAgB,AAChB,aAAe,CAChB","file":"app.292b48e1ca4c138fc4d2b8b9e23e455c.css","sourcesContent":["@import url(https://fonts.googleapis.com/css?family=Open+Sans|Tangerine);\n/* https://coolors.co/96adc8-d7ffab-fcff6c-d89d6a-6d454c\n #FFFFFF #EEEEEE #757575 #000000 #bfd630 #A0B228 #819110\n*/\nbody.dta {\n font-family: 'Open Sans', sans-serif;\n background: #EEEEEE;\n color: #000000;\n}\nbody.dta div#datatables-admin {\n background: #FFFFFF;\n padding: 20px;\n margin: 20px;\n}\nbody.dta div#datatables-admin h1 {\n font-family: 'Tangerine', cursive;\n color: #000000;\n text-align: center;\n font-size: 86px;\n font-weight: 500;\n margin: 20px;\n}\nbody.dta div#datatables-admin table#editor {\n background: #EEEEEE;\n border-spacing: 5px;\n color: #000000;\n margin: auto;\n}\nbody.dta div#datatables-admin table#editor tr,\nbody.dta div#datatables-admin table#editor td,\nbody.dta div#datatables-admin table#editor th {\n background: #FFFFFF;\n padding: 5px;\n margin: 5px;\n text-align: center;\n}\nbody.dta div#datatables-admin table#editor th {\n -ms-user-select: none;\n user-select: none;\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -o-user-select: none;\n}\nbody.dta div#datatables-admin .dta-btn {\n color: #A0B228;\n\n -ms-user-select: none;\n\n user-select: none;\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -o-user-select: none;\n}\nbody.dta div#datatables-admin .dta-btn:hover {\n color: #819110;\n cursor: pointer;\n}\nbody.dta div#datatables-admin div.table-preview-container {\n text-align: center;\n margin-top: 40px;\n}\nbody.dta div#datatables-admin table.table-render-preview {\n margin: auto;\n}\nbody.dta div#datatables-admin button.render-table {\n margin-bottom: 40px;\n padding: 10px;\n border-radius: 6px;\n background: #A0B228;\n color: #FFFFFF;\n border: none;\n font-size: 16px;\n font-weight: 900;\n}\nbody.dta div#datatables-admin button.render-table:hover {\n background: #819110;\n cursor: pointer;\n}\nbody.dta a {\n color: #A0B228;\n text-decoration: none;\n font-weight: 900;\n}\nbody.dta a:hover {\n color: #819110;\n}\nbody.dta div.filters-container {\n clear: both;\n text-align: center;\n}\nbody.dta div.filters-container ul.filters-list {\n display: inline-block;\n margin: 0;\n padding: 0;\n /* For IE, the outcast */\n zoom:1;\n *display: inline;\n}\nbody.dta ul.filters-list li {\n float: left;\n color: #A0B228;\n padding: 10px 20px;\n margin-right: 20px;\n list-style: none;\n}\nbody.dta ul.filters-list li.is-selected {\n border-bottom: 2px solid #A0B228;\n}\nbody.dta ul.filters-list li:hover {\n cursor: pointer;\n color: #819110;\n}"]} \ No newline at end of file diff --git a/docs/static/css/app.613633fc3760ff13b1206317c639daee.css.map b/docs/static/css/app.613633fc3760ff13b1206317c639daee.css.map deleted file mode 100644 index c09bcbc..0000000 --- a/docs/static/css/app.613633fc3760ff13b1206317c639daee.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["app.613633fc3760ff13b1206317c639daee.css"],"names":[],"mappings":"AAAA,yEAAyE,AAIzE,SACE,iCAAqC,AACrC,gBAAoB,AACpB,UAAe,CAChB,AACD,8BACE,gBAAoB,AACpB,aAAc,AACd,WAAa,CACd,AACD,iCACE,8BAAkC,AAClC,WAAe,AACf,kBAAmB,AACnB,eAAgB,AAChB,gBAAiB,AACjB,WAAa,CACd,AACD,2CACE,gBAAoB,AACpB,mBAAoB,AACpB,WAAe,AACf,WAAa,CACd,AACD,0IAGE,gBAAoB,AACpB,YAAa,AACb,WAAY,AACZ,iBAAmB,CACpB,AASD,qFAPE,qBAAsB,AAClB,iBAAkB,AACtB,sBAAuB,AACvB,wBAAyB,AACzB,yBAA0B,AAC1B,mBAAqB,CAYtB,AAVD,uCACE,aAAe,CAShB,AACD,6CACE,cAAe,AACf,cAAgB,CACjB,AACD,0DACE,kBAAmB,AACnB,eAAiB,CAClB,AACD,yDACE,WAAa,CACd,AACD,kDACE,mBAAoB,AACpB,aAAc,AACd,kBAAmB,AACnB,mBAAoB,AACpB,WAAe,AACf,YAAa,AACb,eAAgB,AAChB,eAAiB,CAClB,AACD,wDACE,mBAAoB,AACpB,cAAgB,CACjB,AACD,WACE,cAAe,AACf,qBAAsB,AACtB,eAAiB,CAClB,AACD,iBACE,aAAe,CAChB,AACD,yBACE,YAAc,CACf,AACD,4BACE,WAAY,AACZ,kBAAmB,AACnB,aAAe,CAChB,AACD,kCACE,eAAgB,AAChB,aAAe,CAChB","file":"app.613633fc3760ff13b1206317c639daee.css","sourcesContent":["@import url(https://fonts.googleapis.com/css?family=Open+Sans|Tangerine);\n/* https://coolors.co/96adc8-d7ffab-fcff6c-d89d6a-6d454c\n #FFFFFF #EEEEEE #757575 #000000 #bfd630 #A0B228 #819110\n*/\nbody.dta {\n font-family: 'Open Sans', sans-serif;\n background: #EEEEEE;\n color: #000000;\n}\nbody.dta div#datatables-admin {\n background: #FFFFFF;\n padding: 20px;\n margin: 20px;\n}\nbody.dta div#datatables-admin h1 {\n font-family: 'Tangerine', cursive;\n color: #000000;\n text-align: center;\n font-size: 86px;\n font-weight: 500;\n margin: 20px;\n}\nbody.dta div#datatables-admin table#editor {\n background: #EEEEEE;\n border-spacing: 5px;\n color: #000000;\n margin: auto;\n}\nbody.dta div#datatables-admin table#editor tr,\nbody.dta div#datatables-admin table#editor td,\nbody.dta div#datatables-admin table#editor th {\n background: #FFFFFF;\n padding: 5px;\n margin: 5px;\n text-align: center;\n}\nbody.dta div#datatables-admin table#editor th {\n -ms-user-select: none;\n user-select: none;\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -o-user-select: none;\n}\nbody.dta div#datatables-admin .dta-btn {\n color: #A0B228;\n\n -ms-user-select: none;\n\n user-select: none;\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -o-user-select: none;\n}\nbody.dta div#datatables-admin .dta-btn:hover {\n color: #819110;\n cursor: pointer;\n}\nbody.dta div#datatables-admin div.table-preview-container {\n text-align: center;\n margin-top: 40px;\n}\nbody.dta div#datatables-admin table.table-render-preview {\n margin: auto;\n}\nbody.dta div#datatables-admin button.render-table {\n margin-bottom: 40px;\n padding: 10px;\n border-radius: 6px;\n background: #A0B228;\n color: #FFFFFF;\n border: none;\n font-size: 16px;\n font-weight: 900;\n}\nbody.dta div#datatables-admin button.render-table:hover {\n background: #819110;\n cursor: pointer;\n}\nbody.dta a {\n color: #A0B228;\n text-decoration: none;\n font-weight: 900;\n}\nbody.dta a:hover {\n color: #819110;\n}\nbody.dta ul.filters-list {\n padding: 50px;\n}\nbody.dta ul.filters-list li {\n float: left;\n margin-right: 40px;\n color: #A0B228;\n}\nbody.dta ul.filters-list li:hover {\n cursor: pointer;\n color: #819110;\n}"]} \ No newline at end of file diff --git a/docs/static/js/app.6dac4bf662046545b13d.js b/docs/static/js/app.34192fcf62436d2f7bd3.js similarity index 56% rename from docs/static/js/app.6dac4bf662046545b13d.js rename to docs/static/js/app.34192fcf62436d2f7bd3.js index 76d4fc5..c9f4d11 100644 --- a/docs/static/js/app.6dac4bf662046545b13d.js +++ b/docs/static/js/app.34192fcf62436d2f7bd3.js @@ -1,2 +1,2 @@ -webpackJsonp([1],{NHnr:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=o("7+uW"),i={name:"app",data:function(){return{LOREM:"Click me to edit",NONE:"",IS_DEBUG_MODE:!1,filters:[{id:"filter01",text:"Demo category"},{id:"filter02",text:"Demo category 2"},{id:"filter02",text:"Sub-category 3"}],columns:[{id:"001",text:"Click me to edit"},{id:"002",text:"Demo column 2"},{id:"003",text:"Demo column 3"},{id:"004",text:"URL"}],rows:[[{id:"005",text:"Demo category"},{id:"006",text:"Sub-category 1"},{id:"007",text:"col3 data1"},{id:"008",text:"https://www.google.com"}],[{id:"009",text:"Demo category"},{id:"010",text:"Sub-category 2"},{id:"011",text:"col3 data2"},{id:"012",text:"https://www.yahoo.com"}],[{id:"013",text:"Demo category 2"},{id:"014",text:"Sub-category 3"},{id:"015",text:"col3 data3"},{id:"016",text:"https://www.yahoo.com"}]]}},methods:{generate_random:function(t,e){return Math.random()*(e-t)+t},generate_id:function(){return"__key_prefix__"+Date.now()+"_"+this.generate_random(1e4,99999)},new_data:function(t){return{id:this.generate_id(),text:t}},refresh:function(){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1])&&!confirm("Are you sure you want to delete this column?"))return;this.columns.splice(t,1);for(var e=0;e1&&void 0!==arguments[1]&&arguments[1])&&!confirm("Are you sure you want to delete this row?"))return;this.rows.splice(t,1),this.refresh()},delete_all_rows:function(){if(confirm("Are you sure you want to delete all rows?")){for(var t=this.rows.length,e=0;e\n {{ content }}\n \n ',props:["content"],methods:{emitChange:function(t){this.$emit("update",t.target.textContent)}}}),s.a.component("table-preview",{template:'\n
\n \n
\n
\n ',props:["content"],methods:{render_table:function(){var t=this.$parent.columns,e=this.$parent.rows,o=this.$parent.filters,s=document.querySelector(".table-render-preview");$.fn.DataTable.isDataTable(".table-render-preview")&&$(".table-render-preview").DataTable().clear().destroy();var i=document.createElement("table");i.className="table-render-preview",i.innerHTML=function(t,e){for(var o,s="",i=0;i"+t[i].text+"";for(s+="",i=0;i";for(var r=0;r"+(void 0!==(o=e[i][r].text)?"Link"+o+"":"N/A")+"":s+="";s+=""}return s+="
"+e[i][r].text+"
"}(t,e),s.parentNode.replaceChild(i,s);var r=$(".table-render-preview").dataTable({destroy:!0,aaSorting:[]});$(".dataTables_wrapper").append(function(t){for(var e="
    ",o=0;o"+t[o].text+"";return e+="
"}(o)),$(".search-filter").on("click",function(){r.fnFilter('"'+$(this).text()+'"')})}}}),new s.a({el:"#datatables-admin",template:"",components:{App:n}})},X9fO:function(t,e){}},["NHnr"]); -//# sourceMappingURL=app.6dac4bf662046545b13d.js.map \ No newline at end of file +webpackJsonp([1],{NHnr:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s("7+uW"),i={name:"app",data:function(){return{LOREM:"Click me to edit",NONE:"",IS_DEBUG_MODE:!1,filters:[{id:"filter01",text:"Demo category"},{id:"filter02",text:"Demo category 2"},{id:"filter02",text:"Sub-category 3"}],columns:[{id:"001",text:"Click me to edit"},{id:"002",text:"Demo column 2"},{id:"003",text:"Demo column 3"},{id:"004",text:"URL"}],rows:[[{id:"005",text:"Demo category"},{id:"006",text:"Sub-category 1"},{id:"007",text:"col3 data1"},{id:"008",text:"https://www.google.com"}],[{id:"009",text:"Demo category"},{id:"010",text:"Sub-category 2"},{id:"011",text:"col3 data2"},{id:"012",text:"https://www.yahoo.com"}],[{id:"013",text:"Demo category 2"},{id:"014",text:"Sub-category 3"},{id:"015",text:"col3 data3"},{id:"016",text:"https://www.yahoo.com"}]]}},methods:{generate_random:function(t,e){return Math.random()*(e-t)+t},generate_id:function(){return"__key_prefix__"+Date.now()+"_"+this.generate_random(1e4,99999)},new_data:function(t){return{id:this.generate_id(),text:t}},refresh:function(){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1])&&!confirm("Are you sure you want to delete this column?"))return;this.columns.splice(t,1);for(var e=0;e1&&void 0!==arguments[1]&&arguments[1])&&!confirm("Are you sure you want to delete this row?"))return;this.rows.splice(t,1),this.refresh()},delete_all_rows:function(){if(confirm("Are you sure you want to delete all rows?")){for(var t=this.rows.length,e=0;e\n {{ content }}\n \n ',props:["content"],methods:{emitChange:function(t){this.$emit("update",t.target.textContent)}}}),o.a.component("table-preview",{template:'\n
\n \n
\n
\n ',props:["content"],methods:{render_table:function(){var t=this.$parent.columns,e=this.$parent.rows,s=this.$parent.filters,o=document.querySelector(".table-render-preview");$.fn.DataTable.isDataTable(".table-render-preview")&&$(".table-render-preview").DataTable().clear().destroy();var i=document.createElement("table");i.className="table-render-preview",i.innerHTML=function(t,e){for(var s,o="",i=0;i"+t[i].text+"";for(o+="",i=0;i";for(var r=0;r"+(void 0!==(s=e[i][r].text)?"Link"+s+"":"N/A")+"":o+="";o+=""}return o+="
"+e[i][r].text+"
"}(t,e),o.parentNode.replaceChild(i,o);var r=$(".table-render-preview").dataTable({destroy:!0,aaSorting:[]});$(".dataTables_wrapper").append(function(t){for(var e="

Search filters:

    ",s=0;s"+t[s].text+"";return e+="
"}(s)),$(".search-filter").on("click",function(){r.fnFilter('"'+$(this).text()+'"'),$(".search-filter").removeClass("is-selected"),$(this).addClass("is-selected")})}}}),new o.a({el:"#datatables-admin",template:"",components:{App:n}})},X9fO:function(t,e){}},["NHnr"]); +//# sourceMappingURL=app.34192fcf62436d2f7bd3.js.map \ No newline at end of file diff --git a/docs/static/js/app.34192fcf62436d2f7bd3.js.map b/docs/static/js/app.34192fcf62436d2f7bd3.js.map new file mode 100644 index 0000000..5d75861 --- /dev/null +++ b/docs/static/js/app.34192fcf62436d2f7bd3.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///src/App.vue","webpack:///./src/App.vue?d291","webpack:///./src/App.vue","webpack:///./src/main.js"],"names":["App","name","data","LOREM","NONE","IS_DEBUG_MODE","filters","id","text","columns","rows","methods","generate_random","min","max","Math","random","generate_id","Date","now","this","new_data","refresh","i","length","j","$forceUpdate","update_col","content","col_index","trim","update_row","row_index","add_col","splice","delete_col","arguments","undefined","confirm","add_row","Array","delete_row","delete_all_rows","nr_rows","delete_all_cols","nr_cols","move_col_to_left","temp","slice","move_col_to_right","move_row_up","move_row_down","selectortype_template_index_0_src_App","render","_vm","_h","$createElement","_c","_self","attrs","_v","_l","column","index_col","key","staticClass","title","on","click","$event","update","row","index_row","domProps","textContent","_s","_e","staticRenderFns","src_App","__webpack_require__","normalizeComponent","ssrContext","Vue","config","productionTip","component","template","props","emitChange","ev","$emit","target","render_table","$parent","table_placeholder","document","querySelector","$","fn","DataTable","isDataTable","clear","destroy","new_el","createElement","className","innerHTML","url","result","make_table_html","parentNode","replaceChild","the_table","dataTable","aaSorting","append","filters_html","make_filters_html","fnFilter","removeClass","addClass","el","components"],"mappings":"qHAqDAA,GACAC,KAAA,MACAC,KAFA,WAGA,OACAC,MAAA,mBACAC,KAAA,GACAC,eAAA,EACAC,UAEAC,GAAA,WACAC,KAAA,kBAG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AAQc,GAAGf,KAAO,QAIvC,IADAoG,GAAU,kBACFrF,EAAI,EAAGA,EAAIb,EAAKc,OAAQD,IAAK,CACnCqF,GAAU,OACV,IAAI,IAAInF,EAAI,EAAGA,EAAIf,EAAKa,GAAGC,OAAQC,IACX,OAAnBhB,EAAQgB,GAAGjB,MAA2C,OAA1BC,EAAQgB,GAAGjB,KAAKsB,OAC7C8E,GAAU,aAlBHvE,KADQsE,EAmBiBjG,EAAKa,GAAGE,GAAGjB,MAjBtC,YAAcmG,EAAK,2BAA6BA,EAAM,8CAAgDA,EAAM,cAE5G,OAe8C,QAEnDC,GAAU,OAASlG,EAAKa,GAAGE,GAAGjB,KAAO,QAGzCoG,GAAU,QAIZ,OAFAA,GAAU,mBAWOC,CAAgBpG,EAASC,GAC5CoF,EAAkBgB,WAAWC,aAAaR,EAAQT,GAElD,IAAIkB,EAAYf,EAAE,yBAAyBgB,WACzCX,SAAW,EACXY,eAGFjB,EAAE,uBAAuBkB,OAxDzB,SAA2B7G,GAEzB,IADA,IAAI8G,EAAe,wFACX7F,EAAI,EAAGA,EAAIjB,EAAQkB,OAAQD,IACjC6F,GAAgB,6BAA+B9G,EAAQiB,GAAGf,KAAO,QAInE,OAFA4G,GAAgB,cAmDcC,CAAkB/G,IAElD2F,EAAE,kBAAkB9B,GAAG,QAAS,WAC9B6C,EAAUM,SAAS,IAAMrB,EAAE7E,MAAMZ,OAAS,KAC1CyF,EAAE,kBAAkBsB,YAAY,eAChCtB,EAAE7E,MAAMoG,SAAS,qBAOzB,IAAItC,KACFuC,GAAI,oBACJnC,SAAU,SACVoC,YAAc1H","file":"static/js/app.34192fcf62436d2f7bd3.js","sourcesContent":["\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"datatables-admin\"}},[_c('h1',[_vm._v(\"Datatables admin\")]),_vm._v(\" \"),_c('table',{attrs:{\"id\":\"editor\"}},[_c('thead',[_c('tr',[_vm._l((_vm.columns),function(column,index_col){return _c('th',{key:column.id},[_c('i',{staticClass:\"fas fa-long-arrow-alt-left fa-2x dta-btn move-col-left\",attrs:{\"title\":\"Move column to left\"},on:{\"click\":function($event){_vm.move_col_to_left(index_col)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-long-arrow-alt-right fa-2x dta-btn move-col-right\",attrs:{\"title\":\"Move column to right\"},on:{\"click\":function($event){_vm.move_col_to_right(index_col)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-plus fa-2x dta-btn add-col\",attrs:{\"title\":\"Add a column after this one\"},on:{\"click\":function($event){_vm.add_col(index_col + 1)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-times fa-2x dta-btn delete-col\",attrs:{\"title\":\"Delete this column\"},on:{\"click\":function($event){_vm.delete_col(index_col)}}}),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('editable',{attrs:{\"content\":_vm.columns[index_col].text},on:{\"update\":function($event){_vm.update_col($event, index_col)}}})],1)}),_vm._v(\" \"),_c('th',[_c('i',{staticClass:\"fas fa-plus fa-2x dta-btn add-col\",attrs:{\"title\":\"Add a column\"},on:{\"click\":function($event){_vm.add_col(0)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-plus fa-2x dta-btn add-row\",attrs:{\"title\":\"Add a row\"},on:{\"click\":function($event){_vm.add_row(0)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-times fa-2x dta-btn delete-all-cols\",attrs:{\"title\":\"Delete all columns\"},on:{\"click\":_vm.delete_all_cols}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-times fa-2x dta-btn delete-all-rows\",attrs:{\"title\":\"Delete all rows\"},on:{\"click\":_vm.delete_all_rows}})])],2)]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.rows),function(row,index_row){return _c('tr',{key:index_row},[_vm._l((_vm.columns),function(column,index_col){return _c('td',{key:column.id},[_c('editable',{attrs:{\"content\":_vm.rows[index_row][index_col].text},on:{\"update\":function($event){_vm.update_row($event, index_row, index_col)}}})],1)}),_c('td',[_c('i',{staticClass:\"fas fa-long-arrow-alt-up fa-2x dta-btn move-row-up\",attrs:{\"title\":\"Move row up\"},on:{\"click\":function($event){_vm.move_row_up(index_row)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-long-arrow-alt-down fa-2x dta-btn move-row-down\",attrs:{\"title\":\"Move row down\"},on:{\"click\":function($event){_vm.move_row_down(index_row)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-plus fa-2x dta-btn add-row\",attrs:{\"title\":\"Add a row under this one\"},on:{\"click\":function($event){_vm.add_row(index_row + 1)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-times fa-2x dta-btn delete-row\",attrs:{\"title\":\"Delete this row\"},on:{\"click\":function($event){_vm.delete_row(index_row)}}})])],2)}))]),_vm._v(\" \"),(_vm.IS_DEBUG_MODE)?_c('div',[_c('p',[_c('b',[_vm._v(\"Columns:\")]),_vm._v(\" \"),_c('span',{domProps:{\"textContent\":_vm._s(_vm.columns)}})]),_vm._v(\" \"),_c('p',[_c('b',[_vm._v(\"Rows:\")]),_vm._v(\" \"),_c('span',{domProps:{\"textContent\":_vm._s(_vm.rows)}})])]):_vm._e(),_vm._v(\" \"),_c('table-preview')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6cc7b016\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6cc7b016\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6cc7b016\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from 'vue'\nimport App from './App'\n\nVue.config.productionTip = false\n\nVue.component('editable', {\n template: `\n
\n {{ content }}\n
\n `,\n props: ['content'],\n methods: {\n emitChange(ev) {\n this.$emit('update', ev.target.textContent)\n }\n }\n});\n\nVue.component('table-preview', {\n template: `\n
\n \n
\n
\n `,\n props: ['content'],\n methods: {\n render_table() {\n var columns = this.$parent.columns;\n var rows = this.$parent.rows;\n var filters = this.$parent.filters;\n var table_placeholder = document.querySelector('.table-render-preview');\n\n function make_filters_html(filters) {\n var filters_html = \"

Search filters:

    \";\n for(var i = 0; i < filters.length; i++) {\n filters_html += \"
  • \" + filters[i].text + \"
  • \";\n }\n filters_html += \"
\"\n\n return filters_html;\n }\n\n function make_table_html(columns, rows) {\n function render_link(url) {\n if(url !== undefined) {\n return \"Link\" + url + \"\";\n } else {\n return \"N/A\";\n }\n }\n\n var result = \"\";\n\n for(var i = 0; i < columns.length; i++) {\n result += \"\";\n }\n\n result += \"\"\n for(var i = 0; i < rows.length; i++) {\n result += \"\";\n for(var j = 0; j < rows[i].length; j++) {\n if(columns[j].text == \"URL\" || columns[j].text.trim() == \"URL\") {\n result += \"\";\n } else {\n result += \"\";\n }\n }\n result += \"\";\n }\n result += \"
\" + columns[i].text + \"
\" + render_link(rows[i][j].text) + \"\" + rows[i][j].text + \"
\";\n\n return result;\n }\n\n if ($.fn.DataTable.isDataTable(\".table-render-preview\")) {\n $('.table-render-preview').DataTable().clear().destroy();\n }\n\n var new_el = document.createElement(\"table\");\n new_el.className = \"table-render-preview\";\n new_el.innerHTML = make_table_html(columns, rows);\n table_placeholder.parentNode.replaceChild(new_el, table_placeholder);\n\n var the_table = $('.table-render-preview').dataTable({\n \"destroy\": true,\n aaSorting: []\n });\n\n $(\".dataTables_wrapper\").append(make_filters_html(filters));\n\n $(\".search-filter\").on(\"click\", function() {\n the_table.fnFilter('\"' + $(this).text() + '\"');\n $(\".search-filter\").removeClass(\"is-selected\");\n $(this).addClass(\"is-selected\");\n });\n }\n }\n});\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#datatables-admin',\n template: '',\n components: { App }\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""} \ No newline at end of file diff --git a/docs/static/js/app.6dac4bf662046545b13d.js.map b/docs/static/js/app.6dac4bf662046545b13d.js.map deleted file mode 100644 index 19241c0..0000000 --- a/docs/static/js/app.6dac4bf662046545b13d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///src/App.vue","webpack:///./src/App.vue?d291","webpack:///./src/App.vue","webpack:///./src/main.js"],"names":["App","name","data","LOREM","NONE","IS_DEBUG_MODE","filters","id","text","columns","rows","methods","generate_random","min","max","Math","random","generate_id","Date","now","this","new_data","refresh","i","length","j","$forceUpdate","update_col","content","col_index","trim","update_row","row_index","add_col","splice","delete_col","arguments","undefined","confirm","add_row","Array","delete_row","delete_all_rows","nr_rows","delete_all_cols","nr_cols","move_col_to_left","temp","slice","move_col_to_right","move_row_up","move_row_down","selectortype_template_index_0_src_App","render","_vm","_h","$createElement","_c","_self","attrs","_v","_l","column","index_col","key","staticClass","title","on","click","$event","update","row","index_row","domProps","textContent","_s","_e","staticRenderFns","src_App","__webpack_require__","normalizeComponent","ssrContext","Vue","config","productionTip","component","template","props","emitChange","ev","$emit","target","render_table","$parent","table_placeholder","document","querySelector","$","fn","DataTable","isDataTable","clear","destroy","new_el","createElement","className","innerHTML","url","result","make_table_html","parentNode","replaceChild","the_table","dataTable","aaSorting","append","filters_html","make_filters_html","fnFilter","el","components"],"mappings":"qHAqDAA,GACAC,KAAA,MACAC,KAFA,WAGA,OACAC,MAAA,mBACAC,KAAA,GACAC,eAAA,EACAC,UAEAC,GAAA,WACAC,KAAA,kBAGAD,GAAA,WACAC,KAAA,oBAGAD,GAAA,WACAC,KAAA,mBAGAC,UAEAF,GAAA,MACAC,KAAA,qBAGAD,GAAA,MACAC,KAAA,kBAGAD,GAAA,MACAC,KAAA,kBAGAD,GAAA,MACAC,KAAA,QAGAE,QAGAH,GAAA,MACAC,KAAA,kBAGAD,GAAA,MACAC,KAAA,mBAGAD,GAAA,MACAC,KAAA,eAGAD,GAAA,MACAC,KAAA,6BAMAD,GAAA,MACAC,KAAA,kBAGAD,GAAA,MACAC,KAAA,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2BAA6BA,EAAM,8CAAgDA,EAAM,cAE5G,OAe8C,QAEnDC,GAAU,OAASlG,EAAKa,GAAGE,GAAGjB,KAAO,QAGzCoG,GAAU,QAIZ,OAFAA,GAAU,mBAWOC,CAAgBpG,EAASC,GAC5CoF,EAAkBgB,WAAWC,aAAaR,EAAQT,GAElD,IAAIkB,EAAYf,EAAE,yBAAyBgB,WACzCX,SAAW,EACXY,eAGFjB,EAAE,uBAAuBkB,OAxDzB,SAA2B7G,GAEzB,IADA,IAAI8G,EAAe,4BACX7F,EAAI,EAAGA,EAAIjB,EAAQkB,OAAQD,IACjC6F,GAAgB,6BAA+B9G,EAAQiB,GAAGf,KAAO,QAInE,OAFA4G,GAAgB,QAmDcC,CAAkB/G,IAElD2F,EAAE,kBAAkB9B,GAAG,QAAS,WAC9B6C,EAAUM,SAAS,IAAMrB,EAAE7E,MAAMZ,OAAS,WAOlD,IAAI0E,KACFqC,GAAI,oBACJjC,SAAU,SACVkC,YAAcxH","file":"static/js/app.6dac4bf662046545b13d.js","sourcesContent":["\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"datatables-admin\"}},[_c('h1',[_vm._v(\"Datatables admin\")]),_vm._v(\" \"),_c('table',{attrs:{\"id\":\"editor\"}},[_c('thead',[_c('tr',[_vm._l((_vm.columns),function(column,index_col){return _c('th',{key:column.id},[_c('i',{staticClass:\"fas fa-long-arrow-alt-left fa-2x dta-btn move-col-left\",attrs:{\"title\":\"Move column to left\"},on:{\"click\":function($event){_vm.move_col_to_left(index_col)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-long-arrow-alt-right fa-2x dta-btn move-col-right\",attrs:{\"title\":\"Move column to right\"},on:{\"click\":function($event){_vm.move_col_to_right(index_col)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-plus fa-2x dta-btn add-col\",attrs:{\"title\":\"Add a column after this one\"},on:{\"click\":function($event){_vm.add_col(index_col + 1)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-times fa-2x dta-btn delete-col\",attrs:{\"title\":\"Delete this column\"},on:{\"click\":function($event){_vm.delete_col(index_col)}}}),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('editable',{attrs:{\"content\":_vm.columns[index_col].text},on:{\"update\":function($event){_vm.update_col($event, index_col)}}})],1)}),_vm._v(\" \"),_c('th',[_c('i',{staticClass:\"fas fa-plus fa-2x dta-btn add-col\",attrs:{\"title\":\"Add a column\"},on:{\"click\":function($event){_vm.add_col(0)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-plus fa-2x dta-btn add-row\",attrs:{\"title\":\"Add a row\"},on:{\"click\":function($event){_vm.add_row(0)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-times fa-2x dta-btn delete-all-cols\",attrs:{\"title\":\"Delete all columns\"},on:{\"click\":_vm.delete_all_cols}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-times fa-2x dta-btn delete-all-rows\",attrs:{\"title\":\"Delete all rows\"},on:{\"click\":_vm.delete_all_rows}})])],2)]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.rows),function(row,index_row){return _c('tr',{key:index_row},[_vm._l((_vm.columns),function(column,index_col){return _c('td',{key:column.id},[_c('editable',{attrs:{\"content\":_vm.rows[index_row][index_col].text},on:{\"update\":function($event){_vm.update_row($event, index_row, index_col)}}})],1)}),_c('td',[_c('i',{staticClass:\"fas fa-long-arrow-alt-up fa-2x dta-btn move-row-up\",attrs:{\"title\":\"Move row up\"},on:{\"click\":function($event){_vm.move_row_up(index_row)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-long-arrow-alt-down fa-2x dta-btn move-row-down\",attrs:{\"title\":\"Move row down\"},on:{\"click\":function($event){_vm.move_row_down(index_row)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-plus fa-2x dta-btn add-row\",attrs:{\"title\":\"Add a row under this one\"},on:{\"click\":function($event){_vm.add_row(index_row + 1)}}}),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-times fa-2x dta-btn delete-row\",attrs:{\"title\":\"Delete this row\"},on:{\"click\":function($event){_vm.delete_row(index_row)}}})])],2)}))]),_vm._v(\" \"),(_vm.IS_DEBUG_MODE)?_c('div',[_c('p',[_c('b',[_vm._v(\"Columns:\")]),_vm._v(\" \"),_c('span',{domProps:{\"textContent\":_vm._s(_vm.columns)}})]),_vm._v(\" \"),_c('p',[_c('b',[_vm._v(\"Rows:\")]),_vm._v(\" \"),_c('span',{domProps:{\"textContent\":_vm._s(_vm.rows)}})])]):_vm._e(),_vm._v(\" \"),_c('table-preview')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6cc7b016\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6cc7b016\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6cc7b016\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from 'vue'\nimport App from './App'\n\nVue.config.productionTip = false\n\nVue.component('editable', {\n template: `\n
\n {{ content }}\n
\n `,\n props: ['content'],\n methods: {\n emitChange(ev) {\n this.$emit('update', ev.target.textContent)\n }\n }\n});\n\nVue.component('table-preview', {\n template: `\n
\n \n
\n
\n `,\n props: ['content'],\n methods: {\n render_table() {\n var columns = this.$parent.columns;\n var rows = this.$parent.rows;\n var filters = this.$parent.filters;\n var table_placeholder = document.querySelector('.table-render-preview');\n\n function make_filters_html(filters) {\n var filters_html = \"
    \";\n for(var i = 0; i < filters.length; i++) {\n filters_html += \"
  • \" + filters[i].text + \"
  • \";\n }\n filters_html += \"
\"\n\n return filters_html;\n }\n\n function make_table_html(columns, rows) {\n function render_link(url) {\n if(url !== undefined) {\n return \"Link\" + url + \"\";\n } else {\n return \"N/A\";\n }\n }\n\n var result = \"\";\n\n for(var i = 0; i < columns.length; i++) {\n result += \"\";\n }\n\n result += \"\"\n for(var i = 0; i < rows.length; i++) {\n result += \"\";\n for(var j = 0; j < rows[i].length; j++) {\n if(columns[j].text == \"URL\" || columns[j].text.trim() == \"URL\") {\n result += \"\";\n } else {\n result += \"\";\n }\n }\n result += \"\";\n }\n result += \"
\" + columns[i].text + \"
\" + render_link(rows[i][j].text) + \"\" + rows[i][j].text + \"
\";\n\n return result;\n }\n\n if ($.fn.DataTable.isDataTable(\".table-render-preview\")) {\n $('.table-render-preview').DataTable().clear().destroy();\n }\n\n var new_el = document.createElement(\"table\");\n new_el.className = \"table-render-preview\";\n new_el.innerHTML = make_table_html(columns, rows);\n table_placeholder.parentNode.replaceChild(new_el, table_placeholder);\n\n var the_table = $('.table-render-preview').dataTable({\n \"destroy\": true,\n aaSorting: []\n });\n\n $(\".dataTables_wrapper\").append(make_filters_html(filters));\n\n $(\".search-filter\").on(\"click\", function() {\n the_table.fnFilter('\"' + $(this).text() + '\"');\n });\n }\n }\n});\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#datatables-admin',\n template: '',\n components: { App }\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""} \ No newline at end of file diff --git a/docs/static/js/manifest.2ae2e69a05c33dfc65f8.js.map b/docs/static/js/manifest.2ae2e69a05c33dfc65f8.js.map index bdba793..3d55413 100644 --- a/docs/static/js/manifest.2ae2e69a05c33dfc65f8.js.map +++ b/docs/static/js/manifest.2ae2e69a05c33dfc65f8.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap 48efdc991122f87b3966"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sB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AAAF,GAAoBA","file":"static/js/manifest.2ae2e69a05c33dfc65f8.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 48efdc991122f87b3966"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap 89514303b33fa038709d"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,IAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2ae2e69a05c33dfc65f8.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 89514303b33fa038709d"],"sourceRoot":""} \ No newline at end of file