dbgate-web-premium 5.5.7-alpha.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +69 -0
- package/public/admin-license.html +121 -0
- package/public/admin-login.html +121 -0
- package/public/admin.html +121 -0
- package/public/build/bundle.css +663 -0
- package/public/build/bundle.js +100 -0
- package/public/build/bundle.js.map +1 -0
- package/public/build/diff2html.min.css +1 -0
- package/public/build/fonts/materialdesignicons-webfont.eot +0 -0
- package/public/build/fonts/materialdesignicons-webfont.ttf +0 -0
- package/public/build/fonts/materialdesignicons-webfont.woff +0 -0
- package/public/build/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/public/build/fonts/materialdesignicons.css +30062 -0
- package/public/build/query-parser-worker.js +2 -0
- package/public/build/query-parser-worker.js.map +1 -0
- package/public/bulma.css +419 -0
- package/public/dimensions.css +27 -0
- package/public/error.html +121 -0
- package/public/favicon.ico +0 -0
- package/public/global.css +197 -0
- package/public/icon-colors.css +32 -0
- package/public/index.html +121 -0
- package/public/license.html +121 -0
- package/public/login.html +121 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/not-logged.html +121 -0
- package/public/redirect.html +121 -0
- package/public/set-admin-password.html +121 -0
- package/public/unknown.svg +15 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(){"use strict";var t,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={},i={},o={};t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.oracleSplitterOptions=t.redisSplitterOptions=t.noSplitSplitterOptions=t.mongoSplitterOptions=t.sqliteSplitterOptions=t.postgreSplitterOptions=t.mssqlSplitterOptions=t.mysqlSplitterOptions=t.defaultSplitterOptions=void 0,t.defaultSplitterOptions={stringsBegins:["'"],stringsEnds:{"'":"'"},stringEscapes:{"'":"'"},allowSemicolon:!0,allowCustomDelimiter:!1,allowCustomSqlTerminator:!1,allowGoDelimiter:!1,allowSlashDelimiter:!1,allowDollarDollarString:!1,noSplit:!1,doubleDashComments:!0,multilineComments:!0,javaScriptComments:!1,returnRichInfo:!1,splitByLines:!1,preventSingleLineSplit:!1,adaptiveGoSplit:!1,ignoreComments:!1,copyFromStdin:!1,queryParameterStyle:null},t.mysqlSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{allowCustomDelimiter:!0,stringsBegins:["'","`"],stringsEnds:{"'":"'","`":"`"},stringEscapes:{"'":"\\","`":"`"}}),t.mssqlSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{allowSemicolon:!1,allowGoDelimiter:!0,stringsBegins:["'","["],stringsEnds:{"'":"'","[":"]"},stringEscapes:{"'":"'"}}),t.postgreSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{allowDollarDollarString:!0,stringsBegins:["'",'"'],stringsEnds:{"'":"'",'"':'"'},stringEscapes:{"'":"'",'"':'"'}}),t.sqliteSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{stringsBegins:["'",'"'],stringsEnds:{"'":"'",'"':'"'},stringEscapes:{"'":"'",'"':'"'}}),t.mongoSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{stringsBegins:["'",'"'],stringsEnds:{"'":"'",'"':'"'},stringEscapes:{"'":"\\",'"':"\\"}}),t.noSplitSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{noSplit:!0}),t.redisSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{splitByLines:!0}),t.oracleSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{allowCustomSqlTerminator:!0,allowSlashDelimiter:!0,stringsBegins:["'",'"'],stringsEnds:{"'":"'",'"':'"'},stringEscapes:{"'":"'",'"':'"'}}),Object.defineProperty(i,"__esModule",{value:!0}),i.splitQuery=i.finishSplitStream=i.getInitialDelimiter=i.splitQueryLine=i.scanToken=void 0;const r=o,s=";";function a(t,e,n){let{source:i,position:o,line:r,column:s,streamPosition:a}=t;for(;e>0;)"\n"==i[o]?(r+=1,s=0):s+=1,o+=1,a+=1,e-=1;t.position=o,t.streamPosition=a,t.line=r,t.column=s,t.wasDataInCommand||(n?(t.trimCommandStartPosition=a,t.trimCommandStartLine=r,t.trimCommandStartColumn=s):t.wasDataInCommand=!0),n||(t.noWhitePosition=a,t.noWhiteLine=r,t.noWhiteColumn=s)}const l={type:"whitespace",length:1},m={type:"eoln",length:1},p={type:"data",length:1};function c(t){var e;let n=t.position;const i=t.source,o=i[n];if(t.isCopyFromStdin){if(i.slice(n).startsWith("\\.")&&!t.wasDataOnLine)return{type:"copy_stdin_end",length:2};let e=n;for(;e<t.end&&"\n"!=i[e];)e++;return e<t.end&&"\n"==i[e]&&e++,{type:"copy_stdin_line",length:e-n}}if(t.options.stringsBegins.includes(o)){n++;const e=t.options.stringsEnds[o],r=t.options.stringEscapes[o];for(;n<t.end&&i[n]!=e;)r&&i[n]==r?n+=2:n++;return{type:"string",length:n-t.position+1}}if(t.options.queryParameterStyle&&1==(null===(e=t.options.queryParameterStyle)||void 0===e?void 0:e.length)&&o==t.options.queryParameterStyle&&("?"==t.options.queryParameterStyle||/[a-zA-Z0-9_]/.test(i[n+1]))){if(n++,"?"!=t.options.queryParameterStyle)for(;n<t.end&&/[a-zA-Z0-9_]/.test(i[n]);)n++;return{type:"parameter",value:i.slice(t.position,n),length:n-t.position}}if(t.currentDelimiter&&i.slice(n).startsWith(t.currentDelimiter))return{type:"delimiter",length:t.currentDelimiter.length};if(" "==o||"\t"==o||"\r"==o)return l;if("\n"==o)return m;if(t.options.doubleDashComments&&"-"==o&&"-"==i[n+1]){for(;n<t.end&&"\n"!=i[n];)n++;return{type:"comment",length:n-t.position}}if(t.options.multilineComments&&"/"==o&&"*"==i[n+1]){for(n+=2;n<t.end&&("*"!=i[n]||"/"!=i[n+1]);)n++;return{type:"comment",length:n-t.position+2}}if(t.options.allowCustomDelimiter&&!t.wasDataOnLine){const t=i.slice(n).match(/^DELIMITER[ \t]+([^\n]+)/i);if(t)return{type:"set_delimiter",value:t[1].trim(),length:t[0].length}}if(t.options.allowCustomSqlTerminator){const t=i.slice(n).match(/^SET[ \t]+SQLT(ERMINATOR)?[ \t]+(ON|OFF|".")/i);if(t){if("OFF"==t[2].toUpperCase())return{type:"set_sqlterminator",value:null,length:t[0].length};if("ON"==t[2].toUpperCase())return{type:"set_sqlterminator",value:s,length:t[0].length};if(t[2].startsWith('"'))return{type:"set_sqlterminator",value:t[2].slice(1,-1),length:t[0].length}}}if((t.options.allowGoDelimiter||t.options.adaptiveGoSplit)&&!t.wasDataOnLine){const t=i.slice(n).match(/^GO[\t\r ]*(\n|$)/i);if(t)return{type:"go_delimiter",length:t[0].endsWith("\n")?t[0].length-1:t[0].length}}if(t.options.allowSlashDelimiter&&!t.wasDataOnLine){const t=i.slice(n).match(/^\/[\t\r ]*(\n|$)/i);if(t)return{type:"slash_delimiter",length:t[0].endsWith("\n")?t[0].length-1:t[0].length}}if(t.options.adaptiveGoSplit){const t=i.slice(n).match(/^(CREATE|ALTER)\s*(PROCEDURE|FUNCTION|TRIGGER)/i);if(t)return{type:"create_routine",length:t[0].length}}if(t.options.copyFromStdin&&!t.wasDataOnLine&&i.slice(n).startsWith("COPY "))return{type:"copy",length:5};if(t.isCopyFromStdinCandidate&&i.slice(n).startsWith("FROM stdin;")){let e=n+11;const o=e-1;for(;e<t.end&&"\n"!=i[e];)e++;return"\n"==i[e]&&e++,{type:"copy_stdin_start",length:e-n,lengthWithoutWhitespace:o-n}}const r=function(t){if(!t.options.allowDollarDollarString)return null;let e=t.position;const n=t.source,i=/^(\$[a-zA-Z0-9_]*\$)/.exec(n.slice(e));if(!i)return null;const o=i[1];for(e+=o.length;e<t.end;){if(n.slice(e).startsWith(o))return{type:"string",length:e+o.length-t.position};e++}return null}(t);return r||p}function u(t,e){var n;const i={options:t.options,source:t.source,position:t.position,currentDelimiter:t.currentDelimiter,end:t.end,wasDataOnLine:t.wasDataOnLine,isCopyFromStdinCandidate:t.isCopyFromStdinCandidate,isCopyFromStdin:t.isCopyFromStdin};for(i.position+=e.length;i.position<i.end;){const t=c(i);if(t)switch(t.type){case"whitespace":i.position+=t.length;continue;case"eoln":return!1;case"comment":if(null===(n=t.value)||void 0===n?void 0:n.includes("\n"))return!0;i.position+=t.length;continue;default:return!0}else i.position+=1}}function d(t,e){t.commandPart+=t.source.slice(t.currentCommandStart,t.position),g(t,e)}function g(t,e){const n=t.commandPart.substring(t.trimCommandStartPosition-t.commandStartPosition,t.noWhitePosition-t.commandStartPosition);n.trim()&&(t.options.returnRichInfo?t.pushOutput({text:n,start:{position:t.commandStartPosition,line:t.commandStartLine,column:t.commandStartColumn},end:{position:t.streamPosition,line:t.line,column:t.column},trimStart:{position:t.trimCommandStartPosition,line:t.trimCommandStartLine,column:t.trimCommandStartColumn},trimEnd:{position:t.noWhitePosition,line:t.noWhiteLine,column:t.noWhiteColumn},specialMarker:e}):t.pushOutput(n))}function S(t){t.commandStartPosition=t.streamPosition,t.commandStartLine=t.line,t.commandStartColumn=t.column,t.trimCommandStartPosition=t.streamPosition,t.trimCommandStartLine=t.line,t.trimCommandStartColumn=t.column,t.wasDataInCommand=!1}function f(t){if(t.options.splitByLines)!function(t){for(;t.position<t.end;)"\n"==t.source[t.position]?(d(t),t.commandPart="",a(t,1,!0),t.currentCommandStart=t.position,S(t)):a(t,1,/\s/.test(t.source[t.position]));t.end>t.currentCommandStart&&(t.commandPart+=t.source.slice(t.currentCommandStart,t.position))}(t);else{for(;t.position<t.end;){const e=c(t);if(e)switch(e.type){case"string":case"data":case"parameter":a(t,e.length,!1),t.wasDataOnLine=!0;break;case"comment":a(t,e.length,!!t.options.ignoreComments),t.wasDataOnLine=!0;break;case"eoln":a(t,e.length,!0),t.wasDataOnLine=!1;break;case"whitespace":a(t,e.length,!0);break;case"set_delimiter":case"set_sqlterminator":d(t),t.commandPart="",t.currentDelimiter=e.value,a(t,e.length,!1),t.currentCommandStart=t.position,S(t);break;case"go_delimiter":d(t),t.commandPart="",a(t,e.length,!1),t.currentCommandStart=t.position,S(t),t.options.adaptiveGoSplit&&(t.currentDelimiter=s);break;case"slash_delimiter":d(t),t.commandPart="",a(t,e.length,!1),t.currentCommandStart=t.position,S(t);break;case"create_routine":a(t,e.length,!1),t.options.adaptiveGoSplit&&(t.currentDelimiter=null);break;case"copy":a(t,e.length,!1),t.isCopyFromStdinCandidate=!0,t.wasDataOnLine=!0;break;case"copy_stdin_start":a(t,e.lengthWithoutWhitespace,!1),a(t,e.length-e.lengthWithoutWhitespace,!0),t.isCopyFromStdin=!0,t.isCopyFromStdinCandidate=!1,t.wasDataOnLine=!1,d(t,"copy_stdin_start"),t.commandPart="",t.currentCommandStart=t.position,S(t);break;case"copy_stdin_line":a(t,e.length,!1),t.isCopyFromStdin=!0,t.isCopyFromStdinCandidate=!1,d(t,"copy_stdin_line"),t.commandPart="",t.currentCommandStart=t.position,S(t);break;case"copy_stdin_end":a(t,e.length,!1),t.isCopyFromStdin=!1,t.wasDataOnLine=!0,d(t,"copy_stdin_end"),t.commandPart="",t.currentCommandStart=t.position,S(t);break;case"delimiter":if(t.options.preventSingleLineSplit&&u(t,e)){a(t,e.length,!1),t.wasDataOnLine=!0;break}d(t),t.commandPart="",a(t,e.length,!1),t.currentCommandStart=t.position,S(t),t.isCopyFromStdinCandidate=!1}else a(t,1,!1)}t.end>t.currentCommandStart&&(t.commandPart+=t.source.slice(t.currentCommandStart,t.position))}}function h(t){return(null==t?void 0:t.adaptiveGoSplit)?s:!1===(null==t?void 0:t.allowSemicolon)?null:s}function y(t){g(t)}i.scanToken=c,i.splitQueryLine=f,i.getInitialDelimiter=h,i.finishSplitStream=y,i.splitQuery=function(t,e=null){var n;const i=Object.assign(Object.assign({},r.defaultSplitterOptions),e);if(i.noSplit){if(i.returnRichInfo){const e=t.split("\n");return[{text:t,start:{position:0,line:0,column:0},end:{position:t.length,line:e.length,column:(null===(n=e[e.length-1])||void 0===n?void 0:n.length)||0}}]}return[t]}const o=[],s={source:t,end:t.length,currentDelimiter:h(e),position:0,column:0,line:0,currentCommandStart:0,commandStartLine:0,commandStartColumn:0,commandStartPosition:0,streamPosition:0,noWhiteLine:0,noWhiteColumn:0,noWhitePosition:0,trimCommandStartPosition:0,trimCommandStartLine:0,trimCommandStartColumn:0,wasDataInCommand:!1,isCopyFromStdin:!1,isCopyFromStdinCandidate:!1,pushOutput:t=>o.push(t),wasDataOnLine:!1,options:i,commandPart:""};return f(s),y(s),o};var O={};Object.defineProperty(O,"__esModule",{value:!0}),O.replaceQueryParameters=O.extractQueryParameters=void 0;const C=i;function P(t,e){return{options:e,source:t,position:0,currentDelimiter:(0,C.getInitialDelimiter)(e),end:t.length,wasDataOnLine:!1,isCopyFromStdin:!1,isCopyFromStdinCandidate:!1}}O.extractQueryParameters=function(t,e){if(!t||!e)return[];const n=P(t,e),i=new Set;for(;n.position<n.end;){const t=(0,C.scanToken)(n);if(null===t)break;"parameter"===t.type&&("?"==t.value?i.add(`?${i.size+1}`):i.add(t.value)),n.position+=t.length}return Array.from(i)},O.replaceQueryParameters=function(t,e,n){if(!t||!n)return t;const i=P(t,n);let o="",r=0;for(;i.position<i.end;){const n=(0,C.scanToken)(i);if(null===n)break;if("parameter"===n.type){const s="?"==n.value?"?"+ ++r:n.value;e[s]?o+=e[s]:o+=t.substring(i.position,i.position+n.length)}else o+=t.substring(i.position,i.position+n.length);i.position+=n.length}return o},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.replaceQueryParameters=t.extractQueryParameters=t.splitQuery=void 0;var s=i;Object.defineProperty(t,"splitQuery",{enumerable:!0,get:function(){return s.splitQuery}});var a=O;Object.defineProperty(t,"extractQueryParameters",{enumerable:!0,get:function(){return a.extractQueryParameters}}),Object.defineProperty(t,"replaceQueryParameters",{enumerable:!0,get:function(){return a.replaceQueryParameters}}),r(o,t)}(n),onmessage=t=>{const e=n.splitQuery(t.data.text,t.data.options);postMessage(e)}}();
|
|
2
|
+
//# sourceMappingURL=query-parser-worker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-parser-worker.js","sources":["../../../../node_modules/dbgate-query-splitter/lib/options.js","../../../../node_modules/dbgate-query-splitter/lib/splitQuery.js","../../../../node_modules/dbgate-query-splitter/lib/queryParamHandler.js","../../../../node_modules/dbgate-query-splitter/lib/index.js","../../src/query/QueryParserWorker.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.oracleSplitterOptions = exports.redisSplitterOptions = exports.noSplitSplitterOptions = exports.mongoSplitterOptions = exports.sqliteSplitterOptions = exports.postgreSplitterOptions = exports.mssqlSplitterOptions = exports.mysqlSplitterOptions = exports.defaultSplitterOptions = void 0;\nexports.defaultSplitterOptions = {\n stringsBegins: [\"'\"],\n stringsEnds: { \"'\": \"'\" },\n stringEscapes: { \"'\": \"'\" },\n allowSemicolon: true,\n allowCustomDelimiter: false,\n allowCustomSqlTerminator: false,\n allowGoDelimiter: false,\n allowSlashDelimiter: false,\n allowDollarDollarString: false,\n noSplit: false,\n doubleDashComments: true,\n multilineComments: true,\n javaScriptComments: false,\n returnRichInfo: false,\n splitByLines: false,\n preventSingleLineSplit: false,\n adaptiveGoSplit: false,\n ignoreComments: false,\n copyFromStdin: false,\n queryParameterStyle: null,\n};\nexports.mysqlSplitterOptions = Object.assign(Object.assign({}, exports.defaultSplitterOptions), { allowCustomDelimiter: true, stringsBegins: [\"'\", '`'], stringsEnds: { \"'\": \"'\", '`': '`' }, stringEscapes: { \"'\": '\\\\', '`': '`' } });\nexports.mssqlSplitterOptions = Object.assign(Object.assign({}, exports.defaultSplitterOptions), { allowSemicolon: false, allowGoDelimiter: true, stringsBegins: [\"'\", '['], stringsEnds: { \"'\": \"'\", '[': ']' }, stringEscapes: { \"'\": \"'\" } });\nexports.postgreSplitterOptions = Object.assign(Object.assign({}, exports.defaultSplitterOptions), { allowDollarDollarString: true, stringsBegins: [\"'\", '\"'], stringsEnds: { \"'\": \"'\", '\"': '\"' }, stringEscapes: { \"'\": \"'\", '\"': '\"' } });\nexports.sqliteSplitterOptions = Object.assign(Object.assign({}, exports.defaultSplitterOptions), { stringsBegins: [\"'\", '\"'], stringsEnds: { \"'\": \"'\", '\"': '\"' }, stringEscapes: { \"'\": \"'\", '\"': '\"' } });\nexports.mongoSplitterOptions = Object.assign(Object.assign({}, exports.defaultSplitterOptions), { stringsBegins: [\"'\", '\"'], stringsEnds: { \"'\": \"'\", '\"': '\"' }, stringEscapes: { \"'\": '\\\\', '\"': '\\\\' } });\nexports.noSplitSplitterOptions = Object.assign(Object.assign({}, exports.defaultSplitterOptions), { noSplit: true });\nexports.redisSplitterOptions = Object.assign(Object.assign({}, exports.defaultSplitterOptions), { splitByLines: true });\nexports.oracleSplitterOptions = Object.assign(Object.assign({}, exports.defaultSplitterOptions), { allowCustomSqlTerminator: true, allowSlashDelimiter: true, stringsBegins: [\"'\", '\"'], stringsEnds: { \"'\": \"'\", '\"': '\"' }, stringEscapes: { \"'\": \"'\", '\"': '\"' } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitQuery = exports.finishSplitStream = exports.getInitialDelimiter = exports.splitQueryLine = exports.scanToken = void 0;\nconst options_1 = require(\"./options\");\nconst SEMICOLON = ';';\nfunction movePosition(context, count, isWhite) {\n let { source, position, line, column, streamPosition } = context;\n while (count > 0) {\n if (source[position] == '\\n') {\n line += 1;\n column = 0;\n }\n else {\n column += 1;\n }\n position += 1;\n streamPosition += 1;\n count -= 1;\n }\n context.position = position;\n context.streamPosition = streamPosition;\n context.line = line;\n context.column = column;\n if (!context.wasDataInCommand) {\n if (isWhite) {\n context.trimCommandStartPosition = streamPosition;\n context.trimCommandStartLine = line;\n context.trimCommandStartColumn = column;\n }\n else {\n context.wasDataInCommand = true;\n }\n }\n if (!isWhite) {\n context.noWhitePosition = streamPosition;\n context.noWhiteLine = line;\n context.noWhiteColumn = column;\n }\n}\nconst WHITESPACE_TOKEN = {\n type: 'whitespace',\n length: 1,\n};\nconst EOLN_TOKEN = {\n type: 'eoln',\n length: 1,\n};\nconst DATA_TOKEN = {\n type: 'data',\n length: 1,\n};\nfunction scanDollarQuotedString(context) {\n if (!context.options.allowDollarDollarString)\n return null;\n let pos = context.position;\n const s = context.source;\n const match = /^(\\$[a-zA-Z0-9_]*\\$)/.exec(s.slice(pos));\n if (!match)\n return null;\n const label = match[1];\n pos += label.length;\n while (pos < context.end) {\n if (s.slice(pos).startsWith(label)) {\n return {\n type: 'string',\n length: pos + label.length - context.position,\n };\n }\n pos++;\n }\n return null;\n}\nfunction scanToken(context) {\n var _a;\n let pos = context.position;\n const s = context.source;\n const ch = s[pos];\n if (context.isCopyFromStdin) {\n if (s.slice(pos).startsWith('\\\\.') && !context.wasDataOnLine) {\n return {\n type: 'copy_stdin_end',\n length: 2,\n };\n }\n let pos2 = pos;\n while (pos2 < context.end && s[pos2] != '\\n')\n pos2++;\n if (pos2 < context.end && s[pos2] == '\\n')\n pos2++;\n return {\n type: 'copy_stdin_line',\n length: pos2 - pos,\n };\n }\n if (context.options.stringsBegins.includes(ch)) {\n pos++;\n const endch = context.options.stringsEnds[ch];\n const escapech = context.options.stringEscapes[ch];\n while (pos < context.end) {\n if (s[pos] == endch) {\n break;\n }\n if (escapech && s[pos] == escapech) {\n pos += 2;\n }\n else {\n pos++;\n }\n }\n return {\n type: 'string',\n length: pos - context.position + 1,\n };\n }\n if (context.options.queryParameterStyle &&\n ((_a = context.options.queryParameterStyle) === null || _a === void 0 ? void 0 : _a.length) == 1 &&\n ch == context.options.queryParameterStyle &&\n (context.options.queryParameterStyle == '?' || /[a-zA-Z0-9_]/.test(s[pos + 1]))) {\n pos++;\n if (context.options.queryParameterStyle != '?') {\n while (pos < context.end && /[a-zA-Z0-9_]/.test(s[pos]))\n pos++;\n }\n return {\n type: 'parameter',\n value: s.slice(context.position, pos),\n length: pos - context.position,\n };\n }\n if (context.currentDelimiter && s.slice(pos).startsWith(context.currentDelimiter)) {\n return {\n type: 'delimiter',\n length: context.currentDelimiter.length,\n };\n }\n if (ch == ' ' || ch == '\\t' || ch == '\\r') {\n return WHITESPACE_TOKEN;\n }\n if (ch == '\\n') {\n return EOLN_TOKEN;\n }\n if (context.options.doubleDashComments && ch == '-' && s[pos + 1] == '-') {\n while (pos < context.end && s[pos] != '\\n')\n pos++;\n return {\n type: 'comment',\n length: pos - context.position,\n };\n }\n if (context.options.multilineComments && ch == '/' && s[pos + 1] == '*') {\n pos += 2;\n while (pos < context.end) {\n if (s[pos] == '*' && s[pos + 1] == '/')\n break;\n pos++;\n }\n return {\n type: 'comment',\n length: pos - context.position + 2,\n };\n }\n if (context.options.allowCustomDelimiter && !context.wasDataOnLine) {\n const m = s.slice(pos).match(/^DELIMITER[ \\t]+([^\\n]+)/i);\n if (m) {\n return {\n type: 'set_delimiter',\n value: m[1].trim(),\n length: m[0].length,\n };\n }\n }\n if (context.options.allowCustomSqlTerminator) {\n const m = s.slice(pos).match(/^SET[ \\t]+SQLT(ERMINATOR)?[ \\t]+(ON|OFF|\".\")/i);\n if (m) {\n if (m[2].toUpperCase() == 'OFF') {\n return {\n type: 'set_sqlterminator',\n value: null,\n length: m[0].length,\n };\n }\n if (m[2].toUpperCase() == 'ON') {\n return {\n type: 'set_sqlterminator',\n value: SEMICOLON,\n length: m[0].length,\n };\n }\n if (m[2].startsWith('\"')) {\n return {\n type: 'set_sqlterminator',\n value: m[2].slice(1, -1),\n length: m[0].length,\n };\n }\n }\n }\n if ((context.options.allowGoDelimiter || context.options.adaptiveGoSplit) && !context.wasDataOnLine) {\n const m = s.slice(pos).match(/^GO[\\t\\r ]*(\\n|$)/i);\n if (m) {\n return {\n type: 'go_delimiter',\n length: m[0].endsWith('\\n') ? m[0].length - 1 : m[0].length,\n };\n }\n }\n if (context.options.allowSlashDelimiter && !context.wasDataOnLine) {\n const m = s.slice(pos).match(/^\\/[\\t\\r ]*(\\n|$)/i);\n if (m) {\n return {\n type: 'slash_delimiter',\n length: m[0].endsWith('\\n') ? m[0].length - 1 : m[0].length,\n };\n }\n }\n if (context.options.adaptiveGoSplit) {\n const m = s.slice(pos).match(/^(CREATE|ALTER)\\s*(PROCEDURE|FUNCTION|TRIGGER)/i);\n if (m) {\n return {\n type: 'create_routine',\n length: m[0].length,\n };\n }\n }\n if (context.options.copyFromStdin && !context.wasDataOnLine && s.slice(pos).startsWith('COPY ')) {\n return {\n type: 'copy',\n length: 5,\n };\n }\n if (context.isCopyFromStdinCandidate && s.slice(pos).startsWith('FROM stdin;')) {\n let pos2 = pos + 'FROM stdin;'.length;\n const pos0 = pos2 - 1;\n while (pos2 < context.end && s[pos2] != '\\n')\n pos2++;\n if (s[pos2] == '\\n')\n pos2++;\n return {\n type: 'copy_stdin_start',\n length: pos2 - pos,\n lengthWithoutWhitespace: pos0 - pos,\n };\n }\n const dollarString = scanDollarQuotedString(context);\n if (dollarString)\n return dollarString;\n return DATA_TOKEN;\n}\nexports.scanToken = scanToken;\nfunction containsDataAfterDelimiterOnLine(context, delimiter) {\n var _a;\n const cloned = {\n options: context.options,\n source: context.source,\n position: context.position,\n currentDelimiter: context.currentDelimiter,\n end: context.end,\n wasDataOnLine: context.wasDataOnLine,\n isCopyFromStdinCandidate: context.isCopyFromStdinCandidate,\n isCopyFromStdin: context.isCopyFromStdin,\n };\n cloned.position += delimiter.length;\n while (cloned.position < cloned.end) {\n const token = scanToken(cloned);\n if (!token) {\n cloned.position += 1;\n continue;\n }\n switch (token.type) {\n case 'whitespace':\n cloned.position += token.length;\n continue;\n case 'eoln':\n return false;\n case 'comment':\n if ((_a = token.value) === null || _a === void 0 ? void 0 : _a.includes('\\n'))\n return true;\n cloned.position += token.length;\n continue;\n default:\n return true;\n }\n }\n}\nfunction pushQuery(context, specialMarker) {\n context.commandPart += context.source.slice(context.currentCommandStart, context.position);\n pushCurrentQueryPart(context, specialMarker);\n}\nfunction pushCurrentQueryPart(context, specialMarker) {\n const trimmed = context.commandPart.substring(context.trimCommandStartPosition - context.commandStartPosition, context.noWhitePosition - context.commandStartPosition);\n if (trimmed.trim()) {\n if (context.options.returnRichInfo) {\n context.pushOutput({\n text: trimmed,\n start: {\n position: context.commandStartPosition,\n line: context.commandStartLine,\n column: context.commandStartColumn,\n },\n end: {\n position: context.streamPosition,\n line: context.line,\n column: context.column,\n },\n trimStart: {\n position: context.trimCommandStartPosition,\n line: context.trimCommandStartLine,\n column: context.trimCommandStartColumn,\n },\n trimEnd: {\n position: context.noWhitePosition,\n line: context.noWhiteLine,\n column: context.noWhiteColumn,\n },\n specialMarker,\n });\n }\n else {\n context.pushOutput(trimmed);\n }\n }\n}\nfunction markStartCommand(context) {\n context.commandStartPosition = context.streamPosition;\n context.commandStartLine = context.line;\n context.commandStartColumn = context.column;\n context.trimCommandStartPosition = context.streamPosition;\n context.trimCommandStartLine = context.line;\n context.trimCommandStartColumn = context.column;\n context.wasDataInCommand = false;\n}\nfunction splitByLines(context) {\n while (context.position < context.end) {\n if (context.source[context.position] == '\\n') {\n pushQuery(context);\n context.commandPart = '';\n movePosition(context, 1, true);\n context.currentCommandStart = context.position;\n markStartCommand(context);\n }\n else {\n movePosition(context, 1, /\\s/.test(context.source[context.position]));\n }\n }\n if (context.end > context.currentCommandStart) {\n context.commandPart += context.source.slice(context.currentCommandStart, context.position);\n }\n}\nfunction splitQueryLine(context) {\n if (context.options.splitByLines) {\n splitByLines(context);\n return;\n }\n while (context.position < context.end) {\n const token = scanToken(context);\n if (!token) {\n // nothing special, move forward\n movePosition(context, 1, false);\n continue;\n }\n switch (token.type) {\n case 'string':\n movePosition(context, token.length, false);\n context.wasDataOnLine = true;\n break;\n case 'comment':\n movePosition(context, token.length, !!context.options.ignoreComments);\n context.wasDataOnLine = true;\n break;\n case 'eoln':\n movePosition(context, token.length, true);\n context.wasDataOnLine = false;\n break;\n case 'data':\n movePosition(context, token.length, false);\n context.wasDataOnLine = true;\n break;\n case 'parameter':\n movePosition(context, token.length, false);\n context.wasDataOnLine = true;\n break;\n case 'whitespace':\n movePosition(context, token.length, true);\n break;\n case 'set_delimiter':\n case 'set_sqlterminator':\n pushQuery(context);\n context.commandPart = '';\n context.currentDelimiter = token.value;\n movePosition(context, token.length, false);\n context.currentCommandStart = context.position;\n markStartCommand(context);\n break;\n case 'go_delimiter':\n pushQuery(context);\n context.commandPart = '';\n movePosition(context, token.length, false);\n context.currentCommandStart = context.position;\n markStartCommand(context);\n if (context.options.adaptiveGoSplit) {\n context.currentDelimiter = SEMICOLON;\n }\n break;\n case 'slash_delimiter':\n pushQuery(context);\n context.commandPart = '';\n movePosition(context, token.length, false);\n context.currentCommandStart = context.position;\n markStartCommand(context);\n break;\n case 'create_routine':\n movePosition(context, token.length, false);\n if (context.options.adaptiveGoSplit) {\n context.currentDelimiter = null;\n }\n break;\n case 'copy':\n movePosition(context, token.length, false);\n context.isCopyFromStdinCandidate = true;\n context.wasDataOnLine = true;\n break;\n case 'copy_stdin_start':\n movePosition(context, token.lengthWithoutWhitespace, false);\n movePosition(context, token.length - token.lengthWithoutWhitespace, true);\n context.isCopyFromStdin = true;\n context.isCopyFromStdinCandidate = false;\n context.wasDataOnLine = false;\n pushQuery(context, 'copy_stdin_start');\n context.commandPart = '';\n context.currentCommandStart = context.position;\n markStartCommand(context);\n break;\n case 'copy_stdin_line':\n movePosition(context, token.length, false);\n context.isCopyFromStdin = true;\n context.isCopyFromStdinCandidate = false;\n pushQuery(context, 'copy_stdin_line');\n context.commandPart = '';\n context.currentCommandStart = context.position;\n markStartCommand(context);\n break;\n case 'copy_stdin_end':\n movePosition(context, token.length, false);\n context.isCopyFromStdin = false;\n context.wasDataOnLine = true;\n pushQuery(context, 'copy_stdin_end');\n context.commandPart = '';\n context.currentCommandStart = context.position;\n markStartCommand(context);\n break;\n case 'delimiter':\n if (context.options.preventSingleLineSplit && containsDataAfterDelimiterOnLine(context, token)) {\n movePosition(context, token.length, false);\n context.wasDataOnLine = true;\n break;\n }\n pushQuery(context);\n context.commandPart = '';\n movePosition(context, token.length, false);\n context.currentCommandStart = context.position;\n markStartCommand(context);\n context.isCopyFromStdinCandidate = false;\n break;\n }\n }\n if (context.end > context.currentCommandStart) {\n context.commandPart += context.source.slice(context.currentCommandStart, context.position);\n }\n}\nexports.splitQueryLine = splitQueryLine;\nfunction getInitialDelimiter(options) {\n if (options === null || options === void 0 ? void 0 : options.adaptiveGoSplit)\n return SEMICOLON;\n return (options === null || options === void 0 ? void 0 : options.allowSemicolon) === false ? null : SEMICOLON;\n}\nexports.getInitialDelimiter = getInitialDelimiter;\nfunction finishSplitStream(context) {\n pushCurrentQueryPart(context);\n}\nexports.finishSplitStream = finishSplitStream;\nfunction splitQuery(sql, options = null) {\n var _a;\n const usedOptions = Object.assign(Object.assign({}, options_1.defaultSplitterOptions), options);\n if (usedOptions.noSplit) {\n if (usedOptions.returnRichInfo) {\n const lines = sql.split('\\n');\n return [\n {\n text: sql,\n start: {\n position: 0,\n line: 0,\n column: 0,\n },\n end: {\n position: sql.length,\n line: lines.length,\n column: ((_a = lines[lines.length - 1]) === null || _a === void 0 ? void 0 : _a.length) || 0,\n },\n },\n ];\n }\n return [sql];\n }\n const output = [];\n const context = {\n source: sql,\n end: sql.length,\n currentDelimiter: getInitialDelimiter(options),\n position: 0,\n column: 0,\n line: 0,\n currentCommandStart: 0,\n commandStartLine: 0,\n commandStartColumn: 0,\n commandStartPosition: 0,\n streamPosition: 0,\n noWhiteLine: 0,\n noWhiteColumn: 0,\n noWhitePosition: 0,\n trimCommandStartPosition: 0,\n trimCommandStartLine: 0,\n trimCommandStartColumn: 0,\n wasDataInCommand: false,\n isCopyFromStdin: false,\n isCopyFromStdinCandidate: false,\n pushOutput: cmd => output.push(cmd),\n wasDataOnLine: false,\n options: usedOptions,\n commandPart: '',\n };\n splitQueryLine(context);\n finishSplitStream(context);\n return output;\n}\nexports.splitQuery = splitQuery;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.replaceQueryParameters = exports.extractQueryParameters = void 0;\nconst splitQuery_1 = require(\"./splitQuery\");\nfunction createParameterizerContext(sql, options) {\n return {\n options,\n source: sql,\n position: 0,\n currentDelimiter: (0, splitQuery_1.getInitialDelimiter)(options),\n end: sql.length,\n wasDataOnLine: false,\n isCopyFromStdin: false,\n isCopyFromStdinCandidate: false,\n };\n}\nfunction extractQueryParameters(sql, options) {\n if (!sql || !options) {\n return [];\n }\n const context = createParameterizerContext(sql, options);\n const res = new Set();\n while (context.position < context.end) {\n const token = (0, splitQuery_1.scanToken)(context);\n if (token === null) {\n break;\n }\n if (token.type === 'parameter') {\n if (token.value == '?') {\n res.add(`?${res.size + 1}`);\n }\n else {\n res.add(token.value);\n }\n }\n context.position += token.length;\n }\n return Array.from(res);\n}\nexports.extractQueryParameters = extractQueryParameters;\nfunction replaceQueryParameters(sql, params, options) {\n if (!sql || !options) {\n return sql;\n }\n const context = createParameterizerContext(sql, options);\n let res = '';\n let questionParamCounter = 0;\n while (context.position < context.end) {\n const token = (0, splitQuery_1.scanToken)(context);\n if (token === null) {\n break;\n }\n if (token.type === 'parameter') {\n const paramName = token.value == '?' ? `?${++questionParamCounter}` : token.value;\n if (params[paramName]) {\n res += params[paramName];\n }\n else {\n res += sql.substring(context.position, context.position + token.length);\n }\n }\n else {\n res += sql.substring(context.position, context.position + token.length);\n }\n context.position += token.length;\n }\n return res;\n}\nexports.replaceQueryParameters = replaceQueryParameters;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.replaceQueryParameters = exports.extractQueryParameters = exports.splitQuery = void 0;\nvar splitQuery_1 = require(\"./splitQuery\");\nObject.defineProperty(exports, \"splitQuery\", { enumerable: true, get: function () { return splitQuery_1.splitQuery; } });\nvar queryParamHandler_1 = require(\"./queryParamHandler\");\nObject.defineProperty(exports, \"extractQueryParameters\", { enumerable: true, get: function () { return queryParamHandler_1.extractQueryParameters; } });\nObject.defineProperty(exports, \"replaceQueryParameters\", { enumerable: true, get: function () { return queryParamHandler_1.replaceQueryParameters; } });\n__exportStar(require(\"./options\"), exports);\n","import { splitQuery } from 'dbgate-query-splitter';\n\nonmessage = e => {\n const result = splitQuery(e.data.text, e.data.options);\n postMessage(result);\n};\n"],"names":["Object","defineProperty","exports","value","oracleSplitterOptions","redisSplitterOptions","noSplitSplitterOptions","mongoSplitterOptions","sqliteSplitterOptions","postgreSplitterOptions","mysqlSplitterOptions","defaultSplitterOptions","stringsBegins","stringsEnds","stringEscapes","allowSemicolon","allowCustomDelimiter","allowCustomSqlTerminator","allowGoDelimiter","allowSlashDelimiter","allowDollarDollarString","noSplit","doubleDashComments","multilineComments","javaScriptComments","returnRichInfo","splitByLines","preventSingleLineSplit","adaptiveGoSplit","ignoreComments","copyFromStdin","queryParameterStyle","assign","mssqlSplitterOptions","splitQuery_1","splitQuery$1","splitQuery","finishSplitStream","getInitialDelimiter","splitQueryLine","scanToken","options_1","require$$0","SEMICOLON","movePosition","context","count","isWhite","source","position","line","column","streamPosition","wasDataInCommand","trimCommandStartPosition","trimCommandStartLine","trimCommandStartColumn","noWhitePosition","noWhiteLine","noWhiteColumn","WHITESPACE_TOKEN","type","length","EOLN_TOKEN","DATA_TOKEN","_a","pos","s","ch","isCopyFromStdin","slice","startsWith","wasDataOnLine","pos2","end","options","includes","endch","escapech","test","currentDelimiter","m","match","trim","toUpperCase","endsWith","isCopyFromStdinCandidate","pos0","lengthWithoutWhitespace","dollarString","exec","label","scanDollarQuotedString","containsDataAfterDelimiterOnLine","delimiter","cloned","token","pushQuery","specialMarker","commandPart","currentCommandStart","pushCurrentQueryPart","trimmed","substring","commandStartPosition","pushOutput","text","start","commandStartLine","commandStartColumn","trimStart","trimEnd","markStartCommand","sql","usedOptions","lines","split","output","cmd","push","queryParamHandler","replaceQueryParameters","extractQueryParameters","createParameterizerContext","res","Set","add","size","Array","from","params","questionParamCounter","paramName","__createBinding","this","create","o","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","__exportStar","p","prototype","hasOwnProperty","call","queryParamHandler_1","require$$1","require$$2","onmessage","e","result","data","postMessage"],"mappings":"mMACAA,OAAOC,eAAcC,EAAU,aAAc,CAAEC,OAAO,IACtDD,EAAgCE,sBAAAF,EAAAG,qBAA+BH,EAAiCI,uBAAAJ,EAAAK,qBAA+BL,EAAgCM,sBAAAN,EAAAO,uBAAiCP,uBAA+BA,EAA+BQ,qBAAAR,EAAAS,4BAAiC,EAC/RT,EAAiCS,uBAAA,CAC7BC,cAAe,CAAC,KAChBC,YAAa,CAAE,IAAK,KACpBC,cAAe,CAAE,IAAK,KACtBC,gBAAgB,EAChBC,sBAAsB,EACtBC,0BAA0B,EAC1BC,kBAAkB,EAClBC,qBAAqB,EACrBC,yBAAyB,EACzBC,SAAS,EACTC,oBAAoB,EACpBC,mBAAmB,EACnBC,oBAAoB,EACpBC,gBAAgB,EAChBC,cAAc,EACdC,wBAAwB,EACxBC,iBAA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9CoF,YAAYF,EAAO"}
|
package/public/bulma.css
ADDED
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
.m-0 {
|
|
2
|
+
margin: 0 !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.mt-0 {
|
|
6
|
+
margin-top: 0 !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.mr-0 {
|
|
10
|
+
margin-right: 0 !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.mb-0 {
|
|
14
|
+
margin-bottom: 0 !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ml-0 {
|
|
18
|
+
margin-left: 0 !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.mx-0 {
|
|
22
|
+
margin-left: 0 !important;
|
|
23
|
+
margin-right: 0 !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.my-0 {
|
|
27
|
+
margin-top: 0 !important;
|
|
28
|
+
margin-bottom: 0 !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.m-1 {
|
|
32
|
+
margin: 0.25rem !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mt-1 {
|
|
36
|
+
margin-top: 0.25rem !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mr-1 {
|
|
40
|
+
margin-right: 0.25rem !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.mb-1 {
|
|
44
|
+
margin-bottom: 0.25rem !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ml-1 {
|
|
48
|
+
margin-left: 0.25rem !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mx-1 {
|
|
52
|
+
margin-left: 0.25rem !important;
|
|
53
|
+
margin-right: 0.25rem !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.my-1 {
|
|
57
|
+
margin-top: 0.25rem !important;
|
|
58
|
+
margin-bottom: 0.25rem !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.m-2 {
|
|
62
|
+
margin: 0.5rem !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.mt-2 {
|
|
66
|
+
margin-top: 0.5rem !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.mr-2 {
|
|
70
|
+
margin-right: 0.5rem !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mb-2 {
|
|
74
|
+
margin-bottom: 0.5rem !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ml-2 {
|
|
78
|
+
margin-left: 0.5rem !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.mx-2 {
|
|
82
|
+
margin-left: 0.5rem !important;
|
|
83
|
+
margin-right: 0.5rem !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.my-2 {
|
|
87
|
+
margin-top: 0.5rem !important;
|
|
88
|
+
margin-bottom: 0.5rem !important;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.m-3 {
|
|
92
|
+
margin: 0.75rem !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.mt-3 {
|
|
96
|
+
margin-top: 0.75rem !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.mr-3 {
|
|
100
|
+
margin-right: 0.75rem !important;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.mb-3 {
|
|
104
|
+
margin-bottom: 0.75rem !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ml-3 {
|
|
108
|
+
margin-left: 0.75rem !important;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.mx-3 {
|
|
112
|
+
margin-left: 0.75rem !important;
|
|
113
|
+
margin-right: 0.75rem !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.my-3 {
|
|
117
|
+
margin-top: 0.75rem !important;
|
|
118
|
+
margin-bottom: 0.75rem !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.m-4 {
|
|
122
|
+
margin: 1rem !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.mt-4 {
|
|
126
|
+
margin-top: 1rem !important;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.mr-4 {
|
|
130
|
+
margin-right: 1rem !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.mb-4 {
|
|
134
|
+
margin-bottom: 1rem !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ml-4 {
|
|
138
|
+
margin-left: 1rem !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.mx-4 {
|
|
142
|
+
margin-left: 1rem !important;
|
|
143
|
+
margin-right: 1rem !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.my-4 {
|
|
147
|
+
margin-top: 1rem !important;
|
|
148
|
+
margin-bottom: 1rem !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.m-5 {
|
|
152
|
+
margin: 1.5rem !important;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.mt-5 {
|
|
156
|
+
margin-top: 1.5rem !important;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.mr-5 {
|
|
160
|
+
margin-right: 1.5rem !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.mb-5 {
|
|
164
|
+
margin-bottom: 1.5rem !important;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ml-5 {
|
|
168
|
+
margin-left: 1.5rem !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.mx-5 {
|
|
172
|
+
margin-left: 1.5rem !important;
|
|
173
|
+
margin-right: 1.5rem !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.my-5 {
|
|
177
|
+
margin-top: 1.5rem !important;
|
|
178
|
+
margin-bottom: 1.5rem !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.m-6 {
|
|
182
|
+
margin: 3rem !important;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.mt-6 {
|
|
186
|
+
margin-top: 3rem !important;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.mr-6 {
|
|
190
|
+
margin-right: 3rem !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mb-6 {
|
|
194
|
+
margin-bottom: 3rem !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ml-6 {
|
|
198
|
+
margin-left: 3rem !important;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.mx-6 {
|
|
202
|
+
margin-left: 3rem !important;
|
|
203
|
+
margin-right: 3rem !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.my-6 {
|
|
207
|
+
margin-top: 3rem !important;
|
|
208
|
+
margin-bottom: 3rem !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.p-0 {
|
|
212
|
+
padding: 0 !important;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.pt-0 {
|
|
216
|
+
padding-top: 0 !important;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.pr-0 {
|
|
220
|
+
padding-right: 0 !important;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.pb-0 {
|
|
224
|
+
padding-bottom: 0 !important;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.pl-0 {
|
|
228
|
+
padding-left: 0 !important;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.px-0 {
|
|
232
|
+
padding-left: 0 !important;
|
|
233
|
+
padding-right: 0 !important;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.py-0 {
|
|
237
|
+
padding-top: 0 !important;
|
|
238
|
+
padding-bottom: 0 !important;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.p-1 {
|
|
242
|
+
padding: 0.25rem !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.pt-1 {
|
|
246
|
+
padding-top: 0.25rem !important;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.pr-1 {
|
|
250
|
+
padding-right: 0.25rem !important;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.pb-1 {
|
|
254
|
+
padding-bottom: 0.25rem !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.pl-1 {
|
|
258
|
+
padding-left: 0.25rem !important;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.px-1 {
|
|
262
|
+
padding-left: 0.25rem !important;
|
|
263
|
+
padding-right: 0.25rem !important;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.py-1 {
|
|
267
|
+
padding-top: 0.25rem !important;
|
|
268
|
+
padding-bottom: 0.25rem !important;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.p-2 {
|
|
272
|
+
padding: 0.5rem !important;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.pt-2 {
|
|
276
|
+
padding-top: 0.5rem !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.pr-2 {
|
|
280
|
+
padding-right: 0.5rem !important;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.pb-2 {
|
|
284
|
+
padding-bottom: 0.5rem !important;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.pl-2 {
|
|
288
|
+
padding-left: 0.5rem !important;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.px-2 {
|
|
292
|
+
padding-left: 0.5rem !important;
|
|
293
|
+
padding-right: 0.5rem !important;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.py-2 {
|
|
297
|
+
padding-top: 0.5rem !important;
|
|
298
|
+
padding-bottom: 0.5rem !important;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.p-3 {
|
|
302
|
+
padding: 0.75rem !important;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.pt-3 {
|
|
306
|
+
padding-top: 0.75rem !important;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.pr-3 {
|
|
310
|
+
padding-right: 0.75rem !important;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.pb-3 {
|
|
314
|
+
padding-bottom: 0.75rem !important;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.pl-3 {
|
|
318
|
+
padding-left: 0.75rem !important;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.px-3 {
|
|
322
|
+
padding-left: 0.75rem !important;
|
|
323
|
+
padding-right: 0.75rem !important;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.py-3 {
|
|
327
|
+
padding-top: 0.75rem !important;
|
|
328
|
+
padding-bottom: 0.75rem !important;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.p-4 {
|
|
332
|
+
padding: 1rem !important;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.pt-4 {
|
|
336
|
+
padding-top: 1rem !important;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.pr-4 {
|
|
340
|
+
padding-right: 1rem !important;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.pb-4 {
|
|
344
|
+
padding-bottom: 1rem !important;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.pl-4 {
|
|
348
|
+
padding-left: 1rem !important;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.px-4 {
|
|
352
|
+
padding-left: 1rem !important;
|
|
353
|
+
padding-right: 1rem !important;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.py-4 {
|
|
357
|
+
padding-top: 1rem !important;
|
|
358
|
+
padding-bottom: 1rem !important;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.p-5 {
|
|
362
|
+
padding: 1.5rem !important;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.pt-5 {
|
|
366
|
+
padding-top: 1.5rem !important;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.pr-5 {
|
|
370
|
+
padding-right: 1.5rem !important;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.pb-5 {
|
|
374
|
+
padding-bottom: 1.5rem !important;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.pl-5 {
|
|
378
|
+
padding-left: 1.5rem !important;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.px-5 {
|
|
382
|
+
padding-left: 1.5rem !important;
|
|
383
|
+
padding-right: 1.5rem !important;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.py-5 {
|
|
387
|
+
padding-top: 1.5rem !important;
|
|
388
|
+
padding-bottom: 1.5rem !important;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.p-6 {
|
|
392
|
+
padding: 3rem !important;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.pt-6 {
|
|
396
|
+
padding-top: 3rem !important;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.pr-6 {
|
|
400
|
+
padding-right: 3rem !important;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.pb-6 {
|
|
404
|
+
padding-bottom: 3rem !important;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.pl-6 {
|
|
408
|
+
padding-left: 3rem !important;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.px-6 {
|
|
412
|
+
padding-left: 3rem !important;
|
|
413
|
+
padding-right: 3rem !important;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.py-6 {
|
|
417
|
+
padding-top: 3rem !important;
|
|
418
|
+
padding-bottom: 3rem !important;
|
|
419
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--dim-widget-icon-size: 60px;
|
|
3
|
+
--dim-statusbar-height: 22px;
|
|
4
|
+
--dim-left-panel-width: 300px;
|
|
5
|
+
--dim-tabs-height: 33px;
|
|
6
|
+
--dim-tabs-panel-height: calc( var(--dim-visible-tabs-databases) * 20px + var(--dim-tabs-height) );
|
|
7
|
+
--dim-splitter-thickness: 3px;
|
|
8
|
+
|
|
9
|
+
--dim-visible-left-panel: 1; /* set from JS */
|
|
10
|
+
--dim-content-left: calc(
|
|
11
|
+
var(--dim-widget-icon-size) + var(--dim-visible-left-panel) *
|
|
12
|
+
(var(--dim-left-panel-width) + var(--dim-splitter-thickness))
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
--dim-visible-toolbar: 0; /* set from JS */
|
|
16
|
+
--dim-visible-titlebar: 0; /* set from JS */
|
|
17
|
+
|
|
18
|
+
--dim-toolbar-height: 30px;
|
|
19
|
+
--dim-toolstrip-height: 28px;
|
|
20
|
+
--dim-titlebar-height: 30px;
|
|
21
|
+
--dim-toolbar-top: calc(var(--dim-titlebar-height) * var(--dim-visible-titlebar));
|
|
22
|
+
--dim-header-top: calc(
|
|
23
|
+
var(--dim-titlebar-height) * var(--dim-visible-titlebar) + var(--dim-toolbar-height) * var(--dim-visible-toolbar)
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
--dim-large-form-margin: 20px;
|
|
27
|
+
}
|