From 68857e790c0df35d998b83a864b693f6d7b634dc Mon Sep 17 00:00:00 2001 From: wdg <2515717245@qq.com> Date: Sat, 22 Jan 2022 09:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E8=AE=A1=E5=8A=9F=E8=83=BD=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA-=E5=AE=8C=E5=96=84=E4=B8=8B=E8=BD=BD=E5=8A=A8?= =?UTF-8?q?=E4=BD=9C=E7=9A=84=E4=BF=A1=E6=81=AF=E8=AE=B0=E5=BD=95=20(#1349?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 添加redis/pg创建连接时的超时参数 (hhyo#1311) * 审计功能增强 * 审计功能SQL调整 * 审计功能增强CI依赖文件 * 移除migrations * 修复登录时用户不存在的bug以及记录登录的浏览器信息 * 无用包移除,额外信息移除ua * bootstrap-table升级到1.19.1以支持onExportSaved事件 * 下载动作记录详细查询信息 * 修改判断方法以兼容bootstrap-table1.19.1 --- .../js/bootstrap-table-export.min.js | 6 +- .../js/bootstrap-table-zh-CN.min.js | 6 +- .../js/bootstrap-table.min.css | 6 +- .../bootstrap-table/js/bootstrap-table.min.js | 6 +- sql/templates/archive.html | 4 +- sql/templates/archivedetail.html | 4 +- sql/templates/audit_sqlworkflow.html | 8 +- sql/templates/detail.html | 6 +- sql/templates/queryapplylist.html | 2 +- sql/templates/queryuserprivileges.html | 2 +- sql/templates/sqlquery.html | 82 +++++++++---------- sql/templates/sqlsubmit.html | 6 +- sql/templates/sqlworkflow.html | 8 +- 13 files changed, 72 insertions(+), 74 deletions(-) mode change 100755 => 100644 common/static/bootstrap-table/js/bootstrap-table-export.min.js diff --git a/common/static/bootstrap-table/js/bootstrap-table-export.min.js b/common/static/bootstrap-table/js/bootstrap-table-export.min.js old mode 100755 new mode 100644 index 345a231c37..220d375b25 --- a/common/static/bootstrap-table/js/bootstrap-table-export.min.js +++ b/common/static/bootstrap-table/js/bootstrap-table-export.min.js @@ -1,10 +1,10 @@ /** - * bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3). + * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) * - * @version v1.14.1 + * @version v1.19.1 * @homepage https://bootstrap-table.com * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableExport={exports:{}}.exports}})(this,function(){'use strict';function a(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function b(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function c(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function d(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var e=function(){function a(a,b){for(var c,d=0;d',dropitem:'
  • %s
  • '}},4:{icons:{export:'fa-download'},html:{dropmenu:'',dropitem:'%s'}}}[h.bootstrapVersion],j={json:'JSON',xml:'XML',png:'PNG',csv:'CSV',txt:'TXT',sql:'SQL',doc:'MS-Word',excel:'MS-Excel',xlsx:'MS-Excel (OpenXML)',powerpoint:'MS-Powerpoint',pdf:'PDF'};g.extend(g.fn.bootstrapTable.defaults,{showExport:!1,exportDataType:'basic',exportTypes:['json','xml','csv','txt','sql','excel'],exportOptions:{},exportFooter:!1}),g.extend(g.fn.bootstrapTable.defaults.icons,{export:i.icons.export}),g.extend(g.fn.bootstrapTable.locales,{formatExport:function(){return'Export data'}}),g.extend(g.fn.bootstrapTable.defaults,g.fn.bootstrapTable.locales),g.fn.bootstrapTable.methods.push('exportTable'),g.BootstrapTable=function(k){function l(){return b(this,l),c(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return d(l,k),e(l,[{key:'initToolbar',value:function(){var a=this,b=this.options;if(this.showToolbar=this.showToolbar||b.showExport,f(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),'initToolbar',this).call(this),!!this.options.showExport){var c=this.$toolbar.find('>.btn-group'),d=c.find('div.export');if(!d.length){d=g('\n
    \n \n '+i.html.dropmenu+'\n
    \n ').appendTo(c);var e=d.find('.dropdown-menu'),k=b.exportTypes;if('string'==typeof k){var r=k.slice(1,-1).replace(/ /g,'').split(',');k=r.map(function(a){return a.slice(1,-1)})}for(var m=k,n=Array.isArray(m),o=0,_iterator=n?m:m[Symbol.iterator]();;){var p;if(n){if(o>=m.length)break;p=m[o++]}else{if(o=m.next(),o.done)break;p=o.value}var q=p;j.hasOwnProperty(q)&&e.append(h.sprintf(i.html.dropitem,q,j[q]))}e.find('>li, >a').click(function(b){var c=b.currentTarget,d=g(c).data('type');a.exportTable({type:d,escape:!1})})}}}},{key:'exportTable',value:function(b){var c=this,d=this.options,e=this.header.stateField,f=d.cardView,h=function(){e&&c.hideColumn(e),f&&c.toggleView();var a=c.getData();if(d.exportFooter){var h=c.$tableFooter.find('tr').first(),i={},j=[];g.each(h.children(),function(a,b){var d=g(b).children('.th-inner').first().html();i[c.columns[a].field]=' '===d?null:d,j.push(d)}),c.append(i);var k=c.$body.children().last();g.each(k.children(),function(a,b){g(b).html(j[a])})}c.$el.tableExport(g.extend({},d.exportOptions,b)),d.exportFooter&&c.load(a),e&&c.showColumn(e),f&&c.toggleView()};if('all'===d.exportDataType&&d.pagination){var k='server'===d.sidePagination?'post-body.bs.table':'page-change.bs.table';this.$el.one(k,function(){h(),c.togglePagination()}),this.togglePagination()}else if('selected'===d.exportDataType){var i=this.getData(),j=this.getSelections();if(!j.length)return;'server'===d.sidePagination&&(i=a({total:d.totalRows},this.options.dataField,i),j=a({total:j.length},this.options.dataField,j)),this.load(j),h(),this.load(i)}else h()}}]),l}(g.BootstrapTable)})(jQuery)}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(t,e){return t(e={exports:{}},e.exports),e.exports}var g=function(t){return t&&t.Math==Math&&t},v=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof d&&d)||function(){return this}()||Function("return this")(),y=function(t){try{return!!t()}catch(t){return!0}},b=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,E={f:m&&!x.call({1:2},1)?function(t){var e=m(this,t);return!!e&&e.enumerable}:x},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S={}.toString,T=function(t){return S.call(t).slice(8,-1)},O="".split,j=y((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?O.call(t,""):Object(t)}:Object,P=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},A=function(t){return j(P(t))},R=function(t){return"object"==typeof t?null!==t:"function"==typeof t},C=function(t,e){if(!R(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!R(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!R(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!R(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},I={}.hasOwnProperty,L=function(t,e){return I.call(t,e)},M=v.document,D=R(M)&&R(M.createElement),_=function(t){return D?M.createElement(t):{}},$=!b&&!y((function(){return 7!=Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a})),k=Object.getOwnPropertyDescriptor,N={f:b?k:function(t,e){if(t=A(t),e=C(e,!0),$)try{return k(t,e)}catch(t){}if(L(t,e))return w(!E.f.call(t,e),t[e])}},F=function(t){if(!R(t))throw TypeError(String(t)+" is not an object");return t},B=Object.defineProperty,V={f:b?B:function(t,e,n){if(F(t),e=C(e,!0),F(n),$)try{return B(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},U=b?function(t,e,n){return V.f(t,e,w(1,n))}:function(t,e,n){return t[e]=n,t},G=function(t,e){try{U(v,t,e)}catch(n){v[t]=e}return e},H="__core-js_shared__",q=v[H]||G(H,{}),X=Function.toString;"function"!=typeof q.inspectSource&&(q.inspectSource=function(t){return X.call(t)});var K,W,z,Y=q.inspectSource,Q=v.WeakMap,J="function"==typeof Q&&/native code/.test(Y(Q)),Z=h((function(t){(t.exports=function(t,e){return q[t]||(q[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.10.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),tt=0,et=Math.random(),nt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++tt+et).toString(36)},rt=Z("keys"),ot=function(t){return rt[t]||(rt[t]=nt(t))},it={},at=v.WeakMap;if(J){var ct=q.state||(q.state=new at),lt=ct.get,ut=ct.has,ft=ct.set;K=function(t,e){return e.facade=t,ft.call(ct,t,e),e},W=function(t){return lt.call(ct,t)||{}},z=function(t){return ut.call(ct,t)}}else{var st=ot("state");it[st]=!0,K=function(t,e){return e.facade=t,U(t,st,e),e},W=function(t){return L(t,st)?t[st]:{}},z=function(t){return L(t,st)}}var pt,dt,ht={set:K,get:W,has:z,enforce:function(t){return z(t)?W(t):K(t,{})},getterFor:function(t){return function(e){var n;if(!R(e)||(n=W(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},gt=h((function(t){var e=ht.get,n=ht.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var a,c=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||L(o,"name")||U(o,"name",e),(a=n(o)).source||(a.source=r.join("string"==typeof e?e:""))),t!==v?(c?!u&&t[e]&&(l=!0):delete t[e],l?t[e]=o:U(t,e,o)):l?t[e]=o:G(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Y(this)}))})),vt=v,yt=function(t){return"function"==typeof t?t:void 0},bt=function(t,e){return arguments.length<2?yt(vt[t])||yt(v[t]):vt[t]&&vt[t][e]||v[t]&&v[t][e]},xt=Math.ceil,mt=Math.floor,Et=function(t){return isNaN(t=+t)?0:(t>0?mt:xt)(t)},wt=Math.min,St=function(t){return t>0?wt(Et(t),9007199254740991):0},Tt=Math.max,Ot=Math.min,jt=function(t,e){var n=Et(t);return n<0?Tt(n+e,0):Ot(n,e)},Pt=function(t){return function(e,n,r){var o,i=A(e),a=St(i.length),c=jt(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},At={includes:Pt(!0),indexOf:Pt(!1)}.indexOf,Rt=function(t,e){var n,r=A(t),o=0,i=[];for(n in r)!L(it,n)&&L(r,n)&&i.push(n);for(;e.length>o;)L(r,n=e[o++])&&(~At(i,n)||i.push(n));return i},Ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],It=Ct.concat("length","prototype"),Lt={f:Object.getOwnPropertyNames||function(t){return Rt(t,It)}},Mt={f:Object.getOwnPropertySymbols},Dt=bt("Reflect","ownKeys")||function(t){var e=Lt.f(F(t)),n=Mt.f;return n?e.concat(n(t)):e},_t=function(t,e){for(var n=Dt(e),r=V.f,o=N.f,i=0;i=74)&&(pt=zt.match(/Chrome\/(\d+)/))&&(dt=pt[1]);var Zt,te=dt&&+dt,ee=!!Object.getOwnPropertySymbols&&!y((function(){return!Symbol.sham&&(Wt?38===te:te>37&&te<41)})),ne=ee&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,re=Z("wks"),oe=v.Symbol,ie=ne?oe:oe&&oe.withoutSetter||nt,ae=function(t){return L(re,t)&&(ee||"string"==typeof re[t])||(ee&&L(oe,t)?re[t]=oe[t]:re[t]=ie("Symbol."+t)),re[t]},ce=ae("species"),le=function(t,e){var n;return Kt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Kt(n.prototype)?R(n)&&null===(n=n[ce])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ue=[].push,fe=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(l,u,f,s){for(var p,d,h=Xt(l),g=j(h),v=function(t,e,n){if(qt(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}(u,f,3),y=St(g.length),b=0,x=s||le,m=e?x(l,y):n||a?x(l,0):void 0;y>b;b++)if((c||b in g)&&(d=v(p=g[b],b,h),t))if(e)m[b]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:ue.call(m,p)}else switch(t){case 4:return!1;case 7:ue.call(m,p)}return i?-1:r||o?o:m}},se={forEach:fe(0),map:fe(1),filter:fe(2),some:fe(3),every:fe(4),find:fe(5),findIndex:fe(6),filterOut:fe(7)},pe=Object.keys||function(t){return Rt(t,Ct)},de=b?Object.defineProperties:function(t,e){F(t);for(var n,r=pe(e),o=r.length,i=0;o>i;)V.f(t,n=r[i++],e[n]);return t},he=bt("document","documentElement"),ge=ot("IE_PROTO"),ve=function(){},ye=function(t){return"