@galadrim/galadmin 0.1.3 → 0.1.6
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/dist/api.d.ts +1 -1
- package/dist/api.js +7 -2
- package/dist/api.js.map +1 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/config.d.ts +20 -10
- package/package.json +2 -1
- package/src/api.ts +43 -38
- package/src/front/node_modules/.cache/.eslintcache +1 -1
- package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/87/08/421190bfe6e50816e059da6c33526c9943732ef856ebd2752d0cbfb4a852 +1 -1
- package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/bc/60/45a8cd3b5ff1c55a654323e4532eaa0218e186e53786ef1acf429ff046a5 +1 -1
- package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/e8/a0/0d48cce4b946fe50c4b6bf34f7e1a52058d2d785e0ff7d6f841b115a2f4a +1 -1
- package/src/index.ts +22 -5
- package/src/types/config.ts +18 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/home/runner/work/galadmin/galadmin/src/front/src/index.js":"1","/home/runner/work/galadmin/galadmin/src/front/src/App.js":"2","/home/runner/work/galadmin/galadmin/src/front/src/components/Sidebar.js":"3","/home/runner/work/galadmin/galadmin/src/front/src/components/RedirectToFirstView.js":"4","/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js":"5","/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js":"6","/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js":"7","/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js":"8","/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js":"9","/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js":"10","/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js":"11","/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js":"12","/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js":"13","/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js":"14","/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js":"15","/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js":"16","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js":"17","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js":"18","/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js":"19","/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js":"20","/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js":"21","/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js":"22","/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js":"23","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js":"24","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js":"25","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js":"26","/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js":"27","/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js":"28","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js":"29","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js":"30","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js":"31","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js":"32","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js":"33","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js":"34","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js":"35"},{"size":218,"mtime":1661417165313,"results":"36","hashOfConfig":"37"},{"size":2341,"mtime":1661417165309,"results":"38","hashOfConfig":"37"},{"size":4811,"mtime":1661417165309,"results":"39","hashOfConfig":"37"},{"size":524,"mtime":1661417165309,"results":"40","hashOfConfig":"37"},{"size":4177,"mtime":1661417165313,"results":"41","hashOfConfig":"37"},{"size":3733,"mtime":1661417165313,"results":"42","hashOfConfig":"37"},{"size":4217,"mtime":1661417165313,"results":"43","hashOfConfig":"37"},{"size":9957,"mtime":1661417165313,"results":"44","hashOfConfig":"37"},{"size":1135,"mtime":1661417165313,"results":"45","hashOfConfig":"37"},{"size":404,"mtime":1661417165313,"results":"46","hashOfConfig":"37"},{"size":454,"mtime":1661417165313,"results":"47","hashOfConfig":"37"},{"size":1022,"mtime":1661417165309,"results":"48","hashOfConfig":"37"},{"size":4456,"mtime":1661417165309,"results":"49","hashOfConfig":"37"},{"size":522,"mtime":1661417165309,"results":"50","hashOfConfig":"37"},{"size":3169,"mtime":1661417165309,"results":"51","hashOfConfig":"37"},{"size":217,"mtime":1661417165309,"results":"52","hashOfConfig":"37"},{"size":1128,"mtime":1661417165309,"results":"53","hashOfConfig":"37"},{"size":895,"mtime":1661417165309,"results":"54","hashOfConfig":"37"},{"size":9257,"mtime":1661417165309,"results":"55","hashOfConfig":"37"},{"size":2656,"mtime":1661417165309,"results":"56","hashOfConfig":"37"},{"size":1662,"mtime":1661417165309,"results":"57","hashOfConfig":"37"},{"size":778,"mtime":1661417165313,"results":"58","hashOfConfig":"37"},{"size":1886,"mtime":1661417165313,"results":"59","hashOfConfig":"37"},{"size":4606,"mtime":1661417165309,"results":"60","hashOfConfig":"37"},{"size":2656,"mtime":1661417165309,"results":"61","hashOfConfig":"37"},{"size":1192,"mtime":1661417165309,"results":"62","hashOfConfig":"37"},{"size":530,"mtime":1661417165313,"results":"63","hashOfConfig":"37"},{"size":826,"mtime":1661417165309,"results":"64","hashOfConfig":"37"},{"size":894,"mtime":1661417165309,"results":"65","hashOfConfig":"37"},{"size":869,"mtime":1661417165309,"results":"66","hashOfConfig":"37"},{"size":1848,"mtime":1661417165309,"results":"67","hashOfConfig":"37"},{"size":3092,"mtime":1661417165309,"results":"68","hashOfConfig":"37"},{"size":3280,"mtime":1661417165309,"results":"69","hashOfConfig":"37"},{"size":1461,"mtime":1661417165309,"results":"70","hashOfConfig":"37"},{"size":2088,"mtime":1661417165309,"results":"71","hashOfConfig":"37"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1cwict1",{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"76","messages":"77","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"78","messages":"79","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"80","messages":"81","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"82","messages":"83","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"84","messages":"85","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"86","messages":"87","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"88","messages":"89","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"90","messages":"91","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"92","messages":"93","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"94","messages":"95","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"96","messages":"97","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"98","messages":"99","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"100","messages":"101","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"102","messages":"103","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"104","messages":"105","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"106","messages":"107","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"108","messages":"109","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"110","messages":"111","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"112","messages":"113","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"114","messages":"115","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"116","messages":"117","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"118","messages":"119","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"120","messages":"121","errorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"122","messages":"123","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"124","messages":"125","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"126","messages":"127","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"128","messages":"129","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"130","messages":"131","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"132","messages":"133","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"134","messages":"135","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"136","messages":"137","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"138","messages":"139","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"140","messages":"141","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/home/runner/work/galadmin/galadmin/src/front/src/index.js",[],"/home/runner/work/galadmin/galadmin/src/front/src/App.js",[],"/home/runner/work/galadmin/galadmin/src/front/src/components/Sidebar.js",["142","143","144","145"],"/home/runner/work/galadmin/galadmin/src/front/src/components/RedirectToFirstView.js",["146"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js",["147"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js",["148"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js",["149","150"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js",["151","152","153","154"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js",["155","156"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js",["157","158"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js",["159"],"/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js",["160"],"/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js",["161"],"/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js",["162"],"/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js",["163"],"/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js",["164"],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js",["165"],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js",["166"],"/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js",["167","168"],"/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js",["169"],"/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js",["170","171"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js",["172","173"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js",["174","175","176","177"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js",["178","179"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js",["180","181","182","183","184"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js",["185","186"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js",["187","188"],"/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js",["189"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js",["190","191","192"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js",["193","194"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js",["195","196"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js",["197","198","199","200"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js",["201"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js",["202","203","204"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js",["205","206","207","208"],{"ruleId":"209","severity":1,"message":"210","line":19,"column":1,"nodeType":"211","endLine":105,"endColumn":2},{"ruleId":"212","severity":1,"message":"213","line":26,"column":28,"nodeType":"214","endLine":26,"endColumn":66},{"ruleId":"215","severity":1,"message":"216","line":29,"column":70,"nodeType":"217","messageId":"218","endLine":29,"endColumn":72},{"ruleId":"219","severity":1,"message":"220","line":80,"column":80,"nodeType":"221","messageId":"222","endLine":80,"endColumn":82},{"ruleId":"209","severity":1,"message":"210","line":7,"column":1,"nodeType":"211","endLine":24,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":12,"column":1,"nodeType":"211","endLine":102,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":12,"column":1,"nodeType":"211","endLine":97,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":16,"column":1,"nodeType":"211","endLine":89,"endColumn":2},{"ruleId":"223","severity":1,"message":"224","line":26,"column":8,"nodeType":"225","endLine":26,"endColumn":29,"suggestions":"226"},{"ruleId":"209","severity":1,"message":"210","line":21,"column":1,"nodeType":"211","endLine":216,"endColumn":2},{"ruleId":"223","severity":1,"message":"227","line":50,"column":8,"nodeType":"225","endLine":50,"endColumn":19,"suggestions":"228"},{"ruleId":"223","severity":1,"message":"224","line":61,"column":8,"nodeType":"225","endLine":61,"endColumn":79,"suggestions":"229"},{"ruleId":"219","severity":1,"message":"220","line":178,"column":66,"nodeType":"221","messageId":"222","endLine":178,"endColumn":68},{"ruleId":"209","severity":1,"message":"210","line":5,"column":1,"nodeType":"211","endLine":33,"endColumn":2},{"ruleId":"212","severity":1,"message":"213","line":23,"column":21,"nodeType":"214","endLine":23,"endColumn":57},{"ruleId":"209","severity":1,"message":"210","line":9,"column":1,"nodeType":"211","endLine":19,"endColumn":2},{"ruleId":"230","severity":1,"message":"231","line":16,"column":13,"nodeType":"214","endLine":16,"endColumn":36},{"ruleId":"209","severity":1,"message":"210","line":6,"column":1,"nodeType":"211","endLine":15,"endColumn":2},{"ruleId":"232","severity":1,"message":"233","line":12,"column":29,"nodeType":"234","messageId":"222","endLine":12,"endColumn":33},{"ruleId":"209","severity":1,"message":"210","line":9,"column":1,"nodeType":"211","endLine":134,"endColumn":3},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":17,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":10,"column":1,"nodeType":"211","endLine":85,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":6,"column":1,"nodeType":"211","endLine":12,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":4,"column":1,"nodeType":"211","endLine":28,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":5,"column":1,"nodeType":"211","endLine":30,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":6,"column":1,"nodeType":"211","endLine":186,"endColumn":2},{"ruleId":"223","severity":1,"message":"235","line":20,"column":8,"nodeType":"225","endLine":20,"endColumn":15,"suggestions":"236"},{"ruleId":"209","severity":1,"message":"210","line":6,"column":1,"nodeType":"211","endLine":68,"endColumn":2},{"ruleId":"237","severity":1,"message":"238","line":17,"column":27,"nodeType":"234","messageId":"239","endLine":17,"endColumn":69},{"ruleId":"240","severity":1,"message":"241","line":20,"column":13,"nodeType":"242","messageId":"243","endLine":20,"endColumn":47},{"ruleId":"209","severity":1,"message":"210","line":5,"column":1,"nodeType":"211","endLine":22,"endColumn":2},{"ruleId":"219","severity":1,"message":"220","line":9,"column":44,"nodeType":"221","messageId":"222","endLine":9,"endColumn":46},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":39,"endColumn":2},{"ruleId":"244","severity":1,"message":"245","line":7,"column":13,"nodeType":"214","endLine":7,"endColumn":48},{"ruleId":"212","severity":1,"message":"213","line":8,"column":17,"nodeType":"214","endLine":8,"endColumn":127},{"ruleId":"219","severity":1,"message":"220","line":34,"column":93,"nodeType":"221","messageId":"222","endLine":34,"endColumn":95},{"ruleId":"209","severity":1,"message":"210","line":10,"column":1,"nodeType":"211","endLine":112,"endColumn":2},{"ruleId":"223","severity":1,"message":"224","line":18,"column":8,"nodeType":"225","endLine":18,"endColumn":16,"suggestions":"246"},{"ruleId":"209","severity":1,"message":"210","line":8,"column":1,"nodeType":"211","endLine":76,"endColumn":2},{"ruleId":"247","severity":1,"message":"248","line":10,"column":11,"nodeType":"249","messageId":"250","endLine":10,"endColumn":18},{"ruleId":"223","severity":1,"message":"224","line":15,"column":8,"nodeType":"225","endLine":15,"endColumn":29,"suggestions":"251"},{"ruleId":"244","severity":1,"message":"245","line":61,"column":29,"nodeType":"214","endLine":61,"endColumn":89},{"ruleId":"212","severity":1,"message":"213","line":62,"column":33,"nodeType":"214","endLine":66,"endColumn":35},{"ruleId":"209","severity":1,"message":"210","line":4,"column":1,"nodeType":"211","endLine":42,"endColumn":2},{"ruleId":"223","severity":1,"message":"252","line":23,"column":8,"nodeType":"225","endLine":23,"endColumn":31,"suggestions":"253"},{"ruleId":"209","severity":1,"message":"210","line":2,"column":1,"nodeType":"211","endLine":14,"endColumn":2},{"ruleId":"232","severity":1,"message":"233","line":8,"column":16,"nodeType":"234","messageId":"222","endLine":8,"endColumn":20},{"ruleId":"223","severity":1,"message":"254","line":19,"column":8,"nodeType":"225","endLine":19,"endColumn":13,"suggestions":"255"},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":29,"endColumn":2},{"ruleId":"223","severity":1,"message":"256","line":19,"column":43,"nodeType":"249","endLine":19,"endColumn":50},{"ruleId":"223","severity":1,"message":"257","line":20,"column":8,"nodeType":"225","endLine":20,"endColumn":29,"suggestions":"258"},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":26,"endColumn":2},{"ruleId":"223","severity":1,"message":"259","line":19,"column":8,"nodeType":"225","endLine":19,"endColumn":28,"suggestions":"260"},{"ruleId":"209","severity":1,"message":"210","line":7,"column":1,"nodeType":"211","endLine":55,"endColumn":2},{"ruleId":"223","severity":1,"message":"261","line":47,"column":8,"nodeType":"225","endLine":47,"endColumn":32,"suggestions":"262"},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":67,"endColumn":2},{"ruleId":"223","severity":1,"message":"263","line":45,"column":8,"nodeType":"225","endLine":45,"endColumn":33,"suggestions":"264"},{"ruleId":"223","severity":1,"message":"265","line":54,"column":39,"nodeType":"249","endLine":54,"endColumn":46},{"ruleId":"223","severity":1,"message":"266","line":55,"column":8,"nodeType":"225","endLine":55,"endColumn":33,"suggestions":"267"},{"ruleId":"209","severity":1,"message":"210","line":4,"column":1,"nodeType":"211","endLine":81,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":7,"column":1,"nodeType":"211","endLine":46,"endColumn":2},{"ruleId":"223","severity":1,"message":"268","line":23,"column":8,"nodeType":"225","endLine":23,"endColumn":10,"suggestions":"269"},{"ruleId":"219","severity":1,"message":"220","line":32,"column":50,"nodeType":"221","messageId":"222","endLine":32,"endColumn":52},{"ruleId":"209","severity":1,"message":"210","line":7,"column":1,"nodeType":"211","endLine":64,"endColumn":2},{"ruleId":"223","severity":1,"message":"270","line":22,"column":8,"nodeType":"225","endLine":22,"endColumn":15,"suggestions":"271"},{"ruleId":"223","severity":1,"message":"272","line":31,"column":29,"nodeType":"249","endLine":31,"endColumn":36},{"ruleId":"223","severity":1,"message":"273","line":32,"column":8,"nodeType":"225","endLine":32,"endColumn":23,"suggestions":"274"},"import/no-anonymous-default-export","Assign arrow function to a variable before exporting as module default","ExportDefaultDeclaration","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","array-callback-return","Array.prototype.map() expects a value to be returned at the end of arrow function.","ArrowFunctionExpression","expectedAtEnd","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'refreshData'. Either include it or remove the dependency array.","ArrayExpression",["275"],"React Hook useEffect has missing dependencies: 'currentFilters.length' and 'selectedRecordIds.length'. Either include them or remove the dependency array.",["276"],["277"],"jsx-a11y/iframe-has-title","<iframe> elements must have a unique title property.","no-eval","eval can be harmful.","CallExpression","React Hook useEffect has missing dependencies: 'column?.dataType' and 'column.options'. Either include them or remove the dependency array.",["278"],"no-new-func","The Function constructor is eval.","noFunctionConstructor","no-throw-literal","Expected an error object to be thrown.","ThrowStatement","object","react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener",["279"],"no-unused-vars","'history' is assigned a value but never used.","Identifier","unusedVar",["280"],"React Hook useEffect has missing dependencies: 'panel.latitudeField', 'panel.longitudeField', 'panel.query', 'panel.zoom', and 'view.primaryId'. Either include them or remove the dependency array. Outer scope values like 'window.google' aren't valid dependencies because mutating them doesn't re-render the component.",["281"],"React Hook useEffect has a missing dependency: 'handler'. Either include it or remove the dependency array. If 'handler' changes too often, find the parent component that defines it and wrap that definition in useCallback.",["282"],"The ref value 'colorPicker.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'colorPicker.current' to a variable inside the effect, and use that variable in the cleanup function.","React Hook useEffect has missing dependencies: 'column.name', 'initialData', and 'onChange'. Either include them or remove the dependency array. Mutable values like 'colorPicker.current' aren't valid dependencies because mutating them doesn't re-render the component.",["283"],"React Hook useEffect has missing dependencies: 'column.name', 'initialData', 'onChange', and 'withTime'. Either include them or remove the dependency array. Mutable values like 'datepicker.current' aren't valid dependencies because mutating them doesn't re-render the component.",["284"],"React Hook useEffect has missing dependencies: 'column.contentField', 'column.htmlField', 'initialData', and 'onChange'. Either include them or remove the dependency array. Mutable values like 'quillContainer.current' aren't valid dependencies because mutating them doesn't re-render the component.",["285"],"React Hook useEffect has missing dependencies: 'column' and 'onChange'. Either include them or remove the dependency array. Mutable values like 'googleMapsInput.current' aren't valid dependencies because mutating them doesn't re-render the component.",["286"],"The ref value 'googleMapsInput.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'googleMapsInput.current' to a variable inside the effect, and use that variable in the cleanup function.","React Hook useEffect has an unnecessary dependency: 'googleMapsInput.current'. Either exclude it or remove the dependency array. Mutable values like 'googleMapsInput.current' aren't valid dependencies because mutating them doesn't re-render the component.",["287"],"React Hook useEffect has missing dependencies: 'column.__id__', 'column.name', 'column.optional', 'initialData', 'onChange', and 'viewIndex'. Either include them or remove the dependency array. If 'onChange' changes too often, find the parent component that defines it and wrap that definition in useCallback.",["288"],"React Hook useEffect has missing dependencies: 'column.__id__' and 'viewIndex'. Either include them or remove the dependency array.",["289"],"The ref value 'input.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'input.current' to a variable inside the effect, and use that variable in the cleanup function.","React Hook useEffect has an unnecessary dependency: 'input.current'. Either exclude it or remove the dependency array. Mutable values like 'input.current' aren't valid dependencies because mutating them doesn't re-render the component.",["290"],{"desc":"291","fix":"292"},{"desc":"293","fix":"294"},{"desc":"295","fix":"296"},{"desc":"297","fix":"298"},{"desc":"299","fix":"300"},{"desc":"301","fix":"302"},{"desc":"303","fix":"304"},{"desc":"305","fix":"306"},{"desc":"307","fix":"308"},{"desc":"309","fix":"310"},{"desc":"311","fix":"312"},{"desc":"313","fix":"314"},{"desc":"315","fix":"316"},{"desc":"317","fix":"318"},{"desc":"319","fix":"320"},{"desc":"315","fix":"321"},"Update the dependencies array to be: [viewIndex, recordId, refreshData]",{"range":"322","text":"323"},"Update the dependencies array to be: [currentFilters.length, selectedRecordIds.length, viewIndex]",{"range":"324","text":"325"},"Update the dependencies array to be: [viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",{"range":"326","text":"327"},"Update the dependencies array to be: [column?.dataType, column.options, field]",{"range":"328","text":"329"},"Update the dependencies array to be: [record, refreshData]",{"range":"330","text":"331"},"Update the dependencies array to be: [panel.query, record, refreshData]",{"range":"332","text":"333"},"Update the dependencies array to be: [panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",{"range":"334","text":"335"},"Update the dependencies array to be: [handler, ref]",{"range":"336","text":"337"},"Update the dependencies array to be: [column.name, initialData, onChange]",{"range":"338","text":"339"},"Update the dependencies array to be: [column.name, initialData, onChange, withTime]",{"range":"340","text":"341"},"Update the dependencies array to be: [column.contentField, column.htmlField, initialData, onChange]",{"range":"342","text":"343"},"Update the dependencies array to be: [column, onChange]",{"range":"344","text":"345"},"Update the dependencies array to be: []",{"range":"346","text":"347"},"Update the dependencies array to be: [column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",{"range":"348","text":"349"},"Update the dependencies array to be: [column.__id__, query, viewIndex]",{"range":"350","text":"351"},{"range":"352","text":"347"},[941,962],"[viewIndex, recordId, refreshData]",[1656,1667],"[currentFilters.length, selectedRecordIds.length, viewIndex]",[1896,1967],"[viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",[808,815],"[column?.dataType, column.options, field]",[542,550],"[record, refreshData]",[359,380],"[panel.query, record, refreshData]",[776,799],"[panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",[604,609],"[handler, ref]",[695,716],"[column.name, initialData, onChange]",[700,720],"[column.name, initialData, onChange, withTime]",[1636,1660],"[column.contentField, column.htmlField, initialData, onChange]",[2440,2465],"[column, onChange]",[2826,2851],"[]",[724,726],"[column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",[620,627],"[column.__id__, query, viewIndex]",[972,987]]
|
|
1
|
+
[{"/home/runner/work/galadmin/galadmin/src/front/src/index.js":"1","/home/runner/work/galadmin/galadmin/src/front/src/App.js":"2","/home/runner/work/galadmin/galadmin/src/front/src/components/Sidebar.js":"3","/home/runner/work/galadmin/galadmin/src/front/src/components/RedirectToFirstView.js":"4","/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js":"5","/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js":"6","/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js":"7","/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js":"8","/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js":"9","/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js":"10","/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js":"11","/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js":"12","/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js":"13","/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js":"14","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js":"15","/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js":"16","/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js":"17","/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js":"18","/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js":"19","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js":"20","/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js":"21","/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js":"22","/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js":"23","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js":"24","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js":"25","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js":"26","/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js":"27","/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js":"28","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js":"29","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js":"30","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js":"31","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js":"32","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js":"33","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js":"34","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js":"35"},{"size":218,"mtime":1662453377761,"results":"36","hashOfConfig":"37"},{"size":2341,"mtime":1662453377757,"results":"38","hashOfConfig":"37"},{"size":4811,"mtime":1662453377761,"results":"39","hashOfConfig":"37"},{"size":524,"mtime":1662453377761,"results":"40","hashOfConfig":"37"},{"size":4177,"mtime":1662453377761,"results":"41","hashOfConfig":"37"},{"size":3733,"mtime":1662453377761,"results":"42","hashOfConfig":"37"},{"size":9957,"mtime":1662453377761,"results":"43","hashOfConfig":"37"},{"size":4217,"mtime":1662453377761,"results":"44","hashOfConfig":"37"},{"size":1135,"mtime":1662453377761,"results":"45","hashOfConfig":"37"},{"size":404,"mtime":1662453377761,"results":"46","hashOfConfig":"37"},{"size":454,"mtime":1662453377761,"results":"47","hashOfConfig":"37"},{"size":1022,"mtime":1662453377761,"results":"48","hashOfConfig":"37"},{"size":4456,"mtime":1662453377761,"results":"49","hashOfConfig":"37"},{"size":522,"mtime":1662453377761,"results":"50","hashOfConfig":"37"},{"size":895,"mtime":1662453377761,"results":"51","hashOfConfig":"37"},{"size":9257,"mtime":1662453377757,"results":"52","hashOfConfig":"37"},{"size":2656,"mtime":1662453377761,"results":"53","hashOfConfig":"37"},{"size":3169,"mtime":1662453377757,"results":"54","hashOfConfig":"37"},{"size":217,"mtime":1662453377757,"results":"55","hashOfConfig":"37"},{"size":1128,"mtime":1662453377761,"results":"56","hashOfConfig":"37"},{"size":1662,"mtime":1662453377761,"results":"57","hashOfConfig":"37"},{"size":778,"mtime":1662453377761,"results":"58","hashOfConfig":"37"},{"size":1886,"mtime":1662453377761,"results":"59","hashOfConfig":"37"},{"size":4606,"mtime":1662453377761,"results":"60","hashOfConfig":"37"},{"size":2656,"mtime":1662453377761,"results":"61","hashOfConfig":"37"},{"size":1192,"mtime":1662453377761,"results":"62","hashOfConfig":"37"},{"size":826,"mtime":1662453377761,"results":"63","hashOfConfig":"37"},{"size":530,"mtime":1662453377761,"results":"64","hashOfConfig":"37"},{"size":894,"mtime":1662453377761,"results":"65","hashOfConfig":"37"},{"size":1848,"mtime":1662453377761,"results":"66","hashOfConfig":"37"},{"size":869,"mtime":1662453377761,"results":"67","hashOfConfig":"37"},{"size":3092,"mtime":1662453377761,"results":"68","hashOfConfig":"37"},{"size":3280,"mtime":1662453377761,"results":"69","hashOfConfig":"37"},{"size":1461,"mtime":1662453377761,"results":"70","hashOfConfig":"37"},{"size":2088,"mtime":1662453377761,"results":"71","hashOfConfig":"37"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1cwict1",{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"76","messages":"77","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"78","messages":"79","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"80","messages":"81","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"82","messages":"83","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"84","messages":"85","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"86","messages":"87","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"88","messages":"89","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"90","messages":"91","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"92","messages":"93","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"94","messages":"95","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"96","messages":"97","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"98","messages":"99","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"100","messages":"101","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"102","messages":"103","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"104","messages":"105","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"106","messages":"107","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"108","messages":"109","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"110","messages":"111","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"112","messages":"113","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"114","messages":"115","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"116","messages":"117","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"118","messages":"119","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"120","messages":"121","errorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"122","messages":"123","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"124","messages":"125","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"126","messages":"127","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"128","messages":"129","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"130","messages":"131","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"132","messages":"133","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"134","messages":"135","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"136","messages":"137","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"138","messages":"139","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"140","messages":"141","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/home/runner/work/galadmin/galadmin/src/front/src/index.js",[],"/home/runner/work/galadmin/galadmin/src/front/src/App.js",[],"/home/runner/work/galadmin/galadmin/src/front/src/components/Sidebar.js",["142","143","144","145"],"/home/runner/work/galadmin/galadmin/src/front/src/components/RedirectToFirstView.js",["146"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js",["147"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js",["148"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js",["149","150","151","152"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js",["153","154"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js",["155","156"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js",["157","158"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js",["159"],"/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js",["160"],"/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js",["161"],"/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js",["162"],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js",["163"],"/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js",["164","165"],"/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js",["166"],"/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js",["167"],"/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js",["168"],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js",["169"],"/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js",["170","171"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js",["172","173"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js",["174","175","176","177"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js",["178","179"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js",["180","181","182","183","184"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js",["185","186"],"/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js",["187"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js",["188","189"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js",["190","191","192"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js",["193","194"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js",["195","196"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js",["197","198","199","200"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js",["201"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js",["202","203","204"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js",["205","206","207","208"],{"ruleId":"209","severity":1,"message":"210","line":19,"column":1,"nodeType":"211","endLine":105,"endColumn":2},{"ruleId":"212","severity":1,"message":"213","line":26,"column":28,"nodeType":"214","endLine":26,"endColumn":66},{"ruleId":"215","severity":1,"message":"216","line":29,"column":70,"nodeType":"217","messageId":"218","endLine":29,"endColumn":72},{"ruleId":"219","severity":1,"message":"220","line":80,"column":80,"nodeType":"221","messageId":"222","endLine":80,"endColumn":82},{"ruleId":"209","severity":1,"message":"210","line":7,"column":1,"nodeType":"211","endLine":24,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":12,"column":1,"nodeType":"211","endLine":102,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":12,"column":1,"nodeType":"211","endLine":97,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":21,"column":1,"nodeType":"211","endLine":216,"endColumn":2},{"ruleId":"223","severity":1,"message":"224","line":50,"column":8,"nodeType":"225","endLine":50,"endColumn":19,"suggestions":"226"},{"ruleId":"223","severity":1,"message":"227","line":61,"column":8,"nodeType":"225","endLine":61,"endColumn":79,"suggestions":"228"},{"ruleId":"219","severity":1,"message":"220","line":178,"column":66,"nodeType":"221","messageId":"222","endLine":178,"endColumn":68},{"ruleId":"209","severity":1,"message":"210","line":16,"column":1,"nodeType":"211","endLine":89,"endColumn":2},{"ruleId":"223","severity":1,"message":"227","line":26,"column":8,"nodeType":"225","endLine":26,"endColumn":29,"suggestions":"229"},{"ruleId":"209","severity":1,"message":"210","line":5,"column":1,"nodeType":"211","endLine":33,"endColumn":2},{"ruleId":"212","severity":1,"message":"213","line":23,"column":21,"nodeType":"214","endLine":23,"endColumn":57},{"ruleId":"209","severity":1,"message":"210","line":9,"column":1,"nodeType":"211","endLine":19,"endColumn":2},{"ruleId":"230","severity":1,"message":"231","line":16,"column":13,"nodeType":"214","endLine":16,"endColumn":36},{"ruleId":"209","severity":1,"message":"210","line":6,"column":1,"nodeType":"211","endLine":15,"endColumn":2},{"ruleId":"232","severity":1,"message":"233","line":12,"column":29,"nodeType":"234","messageId":"222","endLine":12,"endColumn":33},{"ruleId":"209","severity":1,"message":"210","line":9,"column":1,"nodeType":"211","endLine":134,"endColumn":3},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":17,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":5,"column":1,"nodeType":"211","endLine":30,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":6,"column":1,"nodeType":"211","endLine":186,"endColumn":2},{"ruleId":"223","severity":1,"message":"235","line":20,"column":8,"nodeType":"225","endLine":20,"endColumn":15,"suggestions":"236"},{"ruleId":"209","severity":1,"message":"210","line":6,"column":1,"nodeType":"211","endLine":68,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":10,"column":1,"nodeType":"211","endLine":85,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":6,"column":1,"nodeType":"211","endLine":12,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":4,"column":1,"nodeType":"211","endLine":28,"endColumn":2},{"ruleId":"237","severity":1,"message":"238","line":17,"column":27,"nodeType":"234","messageId":"239","endLine":17,"endColumn":69},{"ruleId":"240","severity":1,"message":"241","line":20,"column":13,"nodeType":"242","messageId":"243","endLine":20,"endColumn":47},{"ruleId":"209","severity":1,"message":"210","line":5,"column":1,"nodeType":"211","endLine":22,"endColumn":2},{"ruleId":"219","severity":1,"message":"220","line":9,"column":44,"nodeType":"221","messageId":"222","endLine":9,"endColumn":46},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":39,"endColumn":2},{"ruleId":"244","severity":1,"message":"245","line":7,"column":13,"nodeType":"214","endLine":7,"endColumn":48},{"ruleId":"212","severity":1,"message":"213","line":8,"column":17,"nodeType":"214","endLine":8,"endColumn":127},{"ruleId":"219","severity":1,"message":"220","line":34,"column":93,"nodeType":"221","messageId":"222","endLine":34,"endColumn":95},{"ruleId":"209","severity":1,"message":"210","line":10,"column":1,"nodeType":"211","endLine":112,"endColumn":2},{"ruleId":"223","severity":1,"message":"227","line":18,"column":8,"nodeType":"225","endLine":18,"endColumn":16,"suggestions":"246"},{"ruleId":"209","severity":1,"message":"210","line":8,"column":1,"nodeType":"211","endLine":76,"endColumn":2},{"ruleId":"247","severity":1,"message":"248","line":10,"column":11,"nodeType":"249","messageId":"250","endLine":10,"endColumn":18},{"ruleId":"223","severity":1,"message":"227","line":15,"column":8,"nodeType":"225","endLine":15,"endColumn":29,"suggestions":"251"},{"ruleId":"244","severity":1,"message":"245","line":61,"column":29,"nodeType":"214","endLine":61,"endColumn":89},{"ruleId":"212","severity":1,"message":"213","line":62,"column":33,"nodeType":"214","endLine":66,"endColumn":35},{"ruleId":"209","severity":1,"message":"210","line":4,"column":1,"nodeType":"211","endLine":42,"endColumn":2},{"ruleId":"223","severity":1,"message":"252","line":23,"column":8,"nodeType":"225","endLine":23,"endColumn":31,"suggestions":"253"},{"ruleId":"223","severity":1,"message":"254","line":19,"column":8,"nodeType":"225","endLine":19,"endColumn":13,"suggestions":"255"},{"ruleId":"209","severity":1,"message":"210","line":2,"column":1,"nodeType":"211","endLine":14,"endColumn":2},{"ruleId":"232","severity":1,"message":"233","line":8,"column":16,"nodeType":"234","messageId":"222","endLine":8,"endColumn":20},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":29,"endColumn":2},{"ruleId":"223","severity":1,"message":"256","line":19,"column":43,"nodeType":"249","endLine":19,"endColumn":50},{"ruleId":"223","severity":1,"message":"257","line":20,"column":8,"nodeType":"225","endLine":20,"endColumn":29,"suggestions":"258"},{"ruleId":"209","severity":1,"message":"210","line":7,"column":1,"nodeType":"211","endLine":55,"endColumn":2},{"ruleId":"223","severity":1,"message":"259","line":47,"column":8,"nodeType":"225","endLine":47,"endColumn":32,"suggestions":"260"},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":26,"endColumn":2},{"ruleId":"223","severity":1,"message":"261","line":19,"column":8,"nodeType":"225","endLine":19,"endColumn":28,"suggestions":"262"},{"ruleId":"209","severity":1,"message":"210","line":3,"column":1,"nodeType":"211","endLine":67,"endColumn":2},{"ruleId":"223","severity":1,"message":"263","line":45,"column":8,"nodeType":"225","endLine":45,"endColumn":33,"suggestions":"264"},{"ruleId":"223","severity":1,"message":"265","line":54,"column":39,"nodeType":"249","endLine":54,"endColumn":46},{"ruleId":"223","severity":1,"message":"266","line":55,"column":8,"nodeType":"225","endLine":55,"endColumn":33,"suggestions":"267"},{"ruleId":"209","severity":1,"message":"210","line":4,"column":1,"nodeType":"211","endLine":81,"endColumn":2},{"ruleId":"209","severity":1,"message":"210","line":7,"column":1,"nodeType":"211","endLine":46,"endColumn":2},{"ruleId":"223","severity":1,"message":"268","line":23,"column":8,"nodeType":"225","endLine":23,"endColumn":10,"suggestions":"269"},{"ruleId":"219","severity":1,"message":"220","line":32,"column":50,"nodeType":"221","messageId":"222","endLine":32,"endColumn":52},{"ruleId":"209","severity":1,"message":"210","line":7,"column":1,"nodeType":"211","endLine":64,"endColumn":2},{"ruleId":"223","severity":1,"message":"270","line":22,"column":8,"nodeType":"225","endLine":22,"endColumn":15,"suggestions":"271"},{"ruleId":"223","severity":1,"message":"272","line":31,"column":29,"nodeType":"249","endLine":31,"endColumn":36},{"ruleId":"223","severity":1,"message":"273","line":32,"column":8,"nodeType":"225","endLine":32,"endColumn":23,"suggestions":"274"},"import/no-anonymous-default-export","Assign arrow function to a variable before exporting as module default","ExportDefaultDeclaration","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","array-callback-return","Array.prototype.map() expects a value to be returned at the end of arrow function.","ArrowFunctionExpression","expectedAtEnd","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'currentFilters.length' and 'selectedRecordIds.length'. Either include them or remove the dependency array.","ArrayExpression",["275"],"React Hook useEffect has a missing dependency: 'refreshData'. Either include it or remove the dependency array.",["276"],["277"],"jsx-a11y/iframe-has-title","<iframe> elements must have a unique title property.","no-eval","eval can be harmful.","CallExpression","React Hook useEffect has missing dependencies: 'column?.dataType' and 'column.options'. Either include them or remove the dependency array.",["278"],"no-new-func","The Function constructor is eval.","noFunctionConstructor","no-throw-literal","Expected an error object to be thrown.","ThrowStatement","object","react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener",["279"],"no-unused-vars","'history' is assigned a value but never used.","Identifier","unusedVar",["280"],"React Hook useEffect has missing dependencies: 'panel.latitudeField', 'panel.longitudeField', 'panel.query', 'panel.zoom', and 'view.primaryId'. Either include them or remove the dependency array. Outer scope values like 'window.google' aren't valid dependencies because mutating them doesn't re-render the component.",["281"],"React Hook useEffect has a missing dependency: 'handler'. Either include it or remove the dependency array. If 'handler' changes too often, find the parent component that defines it and wrap that definition in useCallback.",["282"],"The ref value 'colorPicker.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'colorPicker.current' to a variable inside the effect, and use that variable in the cleanup function.","React Hook useEffect has missing dependencies: 'column.name', 'initialData', and 'onChange'. Either include them or remove the dependency array. Mutable values like 'colorPicker.current' aren't valid dependencies because mutating them doesn't re-render the component.",["283"],"React Hook useEffect has missing dependencies: 'column.contentField', 'column.htmlField', 'initialData', and 'onChange'. Either include them or remove the dependency array. Mutable values like 'quillContainer.current' aren't valid dependencies because mutating them doesn't re-render the component.",["284"],"React Hook useEffect has missing dependencies: 'column.name', 'initialData', 'onChange', and 'withTime'. Either include them or remove the dependency array. Mutable values like 'datepicker.current' aren't valid dependencies because mutating them doesn't re-render the component.",["285"],"React Hook useEffect has missing dependencies: 'column' and 'onChange'. Either include them or remove the dependency array. Mutable values like 'googleMapsInput.current' aren't valid dependencies because mutating them doesn't re-render the component.",["286"],"The ref value 'googleMapsInput.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'googleMapsInput.current' to a variable inside the effect, and use that variable in the cleanup function.","React Hook useEffect has an unnecessary dependency: 'googleMapsInput.current'. Either exclude it or remove the dependency array. Mutable values like 'googleMapsInput.current' aren't valid dependencies because mutating them doesn't re-render the component.",["287"],"React Hook useEffect has missing dependencies: 'column.__id__', 'column.name', 'column.optional', 'initialData', 'onChange', and 'viewIndex'. Either include them or remove the dependency array. If 'onChange' changes too often, find the parent component that defines it and wrap that definition in useCallback.",["288"],"React Hook useEffect has missing dependencies: 'column.__id__' and 'viewIndex'. Either include them or remove the dependency array.",["289"],"The ref value 'input.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'input.current' to a variable inside the effect, and use that variable in the cleanup function.","React Hook useEffect has an unnecessary dependency: 'input.current'. Either exclude it or remove the dependency array. Mutable values like 'input.current' aren't valid dependencies because mutating them doesn't re-render the component.",["290"],{"desc":"291","fix":"292"},{"desc":"293","fix":"294"},{"desc":"295","fix":"296"},{"desc":"297","fix":"298"},{"desc":"299","fix":"300"},{"desc":"301","fix":"302"},{"desc":"303","fix":"304"},{"desc":"305","fix":"306"},{"desc":"307","fix":"308"},{"desc":"309","fix":"310"},{"desc":"311","fix":"312"},{"desc":"313","fix":"314"},{"desc":"315","fix":"316"},{"desc":"317","fix":"318"},{"desc":"319","fix":"320"},{"desc":"315","fix":"321"},"Update the dependencies array to be: [currentFilters.length, selectedRecordIds.length, viewIndex]",{"range":"322","text":"323"},"Update the dependencies array to be: [viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",{"range":"324","text":"325"},"Update the dependencies array to be: [viewIndex, recordId, refreshData]",{"range":"326","text":"327"},"Update the dependencies array to be: [column?.dataType, column.options, field]",{"range":"328","text":"329"},"Update the dependencies array to be: [record, refreshData]",{"range":"330","text":"331"},"Update the dependencies array to be: [panel.query, record, refreshData]",{"range":"332","text":"333"},"Update the dependencies array to be: [panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",{"range":"334","text":"335"},"Update the dependencies array to be: [handler, ref]",{"range":"336","text":"337"},"Update the dependencies array to be: [column.name, initialData, onChange]",{"range":"338","text":"339"},"Update the dependencies array to be: [column.contentField, column.htmlField, initialData, onChange]",{"range":"340","text":"341"},"Update the dependencies array to be: [column.name, initialData, onChange, withTime]",{"range":"342","text":"343"},"Update the dependencies array to be: [column, onChange]",{"range":"344","text":"345"},"Update the dependencies array to be: []",{"range":"346","text":"347"},"Update the dependencies array to be: [column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",{"range":"348","text":"349"},"Update the dependencies array to be: [column.__id__, query, viewIndex]",{"range":"350","text":"351"},{"range":"352","text":"347"},[1656,1667],"[currentFilters.length, selectedRecordIds.length, viewIndex]",[1896,1967],"[viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",[941,962],"[viewIndex, recordId, refreshData]",[808,815],"[column?.dataType, column.options, field]",[542,550],"[record, refreshData]",[359,380],"[panel.query, record, refreshData]",[776,799],"[panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",[604,609],"[handler, ref]",[695,716],"[column.name, initialData, onChange]",[1636,1660],"[column.contentField, column.htmlField, initialData, onChange]",[700,720],"[column.name, initialData, onChange, withTime]",[2440,2465],"[column, onChange]",[2826,2851],"[]",[724,726],"[column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",[620,627],"[column.__id__, query, viewIndex]",[972,987]]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
3cf466b77b04157d0c4a742d842fd63cacac6073 {"key":"{\"terser\":\"5.7.1\",\"terser-webpack-plugin\":\"4.2.3\",\"terser-webpack-plugin-options\":{\"test\":new RegExp(\"\\\\.[cm]?js(\\\\?.*)?$\", \"i\"),\"extractComments\":true,\"sourceMap\":true,\"cache\":true,\"cacheKeys\":defaultCacheKeys => defaultCacheKeys,\"parallel\":true,\"include\":undefined,\"exclude\":undefined,\"minify\":undefined,\"terserOptions\":{\"parse\":{\"ecma\":8},\"compress\":{\"ecma\":5,\"warnings\":false,\"comparisons\":false,\"inline\":2},\"mangle\":{\"safari10\":true},\"keep_classnames\":false,\"keep_fnames\":false,\"output\":{\"ecma\":5,\"comments\":false,\"ascii_only\":true},\"ecma\":5}},\"name\":\"static\\u002Fjs\\u002Fruntime-main.2084140f.js\",\"contentHash\":\"21b0955fafaa36835c2c\"}","integrity":"sha512-EIHWkk+Hu8omZttNSZyf/dcQREufSs8WYrDS8rrnA4aKRWlIARB00JVPiR1DRsuEMh2l+YSkkh+tpa2nXovJ6g==","time":1662453475907,"size":17514}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
5ac8a4e618f2381797609557ce7d4fcb1404faed {"key":"{\"terser\":\"5.7.1\",\"terser-webpack-plugin\":\"4.2.3\",\"terser-webpack-plugin-options\":{\"test\":new RegExp(\"\\\\.[cm]?js(\\\\?.*)?$\", \"i\"),\"extractComments\":true,\"sourceMap\":true,\"cache\":true,\"cacheKeys\":defaultCacheKeys => defaultCacheKeys,\"parallel\":true,\"include\":undefined,\"exclude\":undefined,\"minify\":undefined,\"terserOptions\":{\"parse\":{\"ecma\":8},\"compress\":{\"ecma\":5,\"warnings\":false,\"comparisons\":false,\"inline\":2},\"mangle\":{\"safari10\":true},\"keep_classnames\":false,\"keep_fnames\":false,\"output\":{\"ecma\":5,\"comments\":false,\"ascii_only\":true},\"ecma\":5}},\"name\":\"static\\u002Fjs\\u002Fmain.8f781ead.chunk.js\",\"contentHash\":\"b6bbf16acbe634c19888\"}","integrity":"sha512-vfJhxTZF+VrDrRrOcy5KAR41kN1MJXzJ8KiM71J96JiyyAZRLgZaJVJyMvMKxc03pvFMBnigYcrToO2DnNNGGA==","time":1662453475863,"size":370622}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
3aa3d3e8b0a2526fe7c3430937895bba40e4e7c6 {"key":"{\"terser\":\"5.7.1\",\"terser-webpack-plugin\":\"4.2.3\",\"terser-webpack-plugin-options\":{\"test\":new RegExp(\"\\\\.[cm]?js(\\\\?.*)?$\", \"i\"),\"extractComments\":true,\"sourceMap\":true,\"cache\":true,\"cacheKeys\":defaultCacheKeys => defaultCacheKeys,\"parallel\":true,\"include\":undefined,\"exclude\":undefined,\"minify\":undefined,\"terserOptions\":{\"parse\":{\"ecma\":8},\"compress\":{\"ecma\":5,\"warnings\":false,\"comparisons\":false,\"inline\":2},\"mangle\":{\"safari10\":true},\"keep_classnames\":false,\"keep_fnames\":false,\"output\":{\"ecma\":5,\"comments\":false,\"ascii_only\":true},\"ecma\":5}},\"name\":\"static\\u002Fjs\\u002F2.f7eb6c73.chunk.js\",\"contentHash\":\"2c2bb42462c6cd9cd87b\"}","integrity":"sha512-uLHlengKn8K3XBnif8rWyTch1O+HnExDpM3jMpuAp7WZAOkOJ+Ku7tSEKVN6o/OptJM8OG7zQYQgVWOAtYcwbA==","time":1662453479306,"size":1866754}
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as session from "express-session";
|
|
|
3
3
|
import * as SessionStore from "express-mysql-session";
|
|
4
4
|
import * as mysql2 from 'mysql2/promise';
|
|
5
5
|
import dbManager from "./utils/dbManager";
|
|
6
|
+
import * as bcrypt from "bcryptjs";
|
|
6
7
|
|
|
7
8
|
import * as fs from "fs";
|
|
8
9
|
import * as path from "path";
|
|
@@ -51,10 +52,21 @@ export default (config: Config): any => {
|
|
|
51
52
|
name: 'galadmin.sid'
|
|
52
53
|
}));
|
|
53
54
|
|
|
54
|
-
app.post('/api/login', (req, res) => {
|
|
55
|
+
app.post('/api/login', async (req, res) => {
|
|
55
56
|
if (req.body.username === config.auth.username && req.body.password === config.auth.password) {
|
|
56
|
-
req.session.
|
|
57
|
+
req.session.user = { role: "root" }
|
|
57
58
|
res.send({ success: true })
|
|
59
|
+
} else if (config.authRoles) {
|
|
60
|
+
for (const authRole of config.authRoles) {
|
|
61
|
+
const { rows } = await db.query("SELECT * FROM ?? WHERE ?? = ?", [authRole.table, authRole.usernameField, req.body.username]);
|
|
62
|
+
const user = rows.find(x => bcrypt.compareSync(req.body.password, x[authRole.passwordField]))
|
|
63
|
+
if (!user) {
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
req.session.user = { role: authRole.role, userId: user[authRole.idField] }
|
|
67
|
+
return res.send({ success: true })
|
|
68
|
+
}
|
|
69
|
+
res.send({ success: false })
|
|
58
70
|
} else {
|
|
59
71
|
res.send({ success: false })
|
|
60
72
|
}
|
|
@@ -63,19 +75,24 @@ export default (config: Config): any => {
|
|
|
63
75
|
|
|
64
76
|
app.get('/api/isAuthenticated', (req, res) => {
|
|
65
77
|
res.send({
|
|
66
|
-
isAuthenticated: !!req.session.
|
|
78
|
+
isAuthenticated: !!req.session.user
|
|
67
79
|
})
|
|
68
80
|
})
|
|
69
81
|
|
|
70
82
|
app.use("/api", (req, res, next) => {
|
|
71
|
-
if (req.method === "OPTIONS" || req.session.
|
|
83
|
+
if (req.method === "OPTIONS" || req.session.user) {
|
|
72
84
|
next()
|
|
73
85
|
} else {
|
|
74
86
|
res.sendStatus(401)
|
|
75
87
|
}
|
|
76
88
|
})
|
|
77
89
|
|
|
78
|
-
app.use("/api",
|
|
90
|
+
app.use("/api", (req, res, next) => {
|
|
91
|
+
return api(db, {
|
|
92
|
+
...config,
|
|
93
|
+
views: config.views.filter(x => !x.roles || (req.session.user && x.roles.includes(req.session.user.role)))
|
|
94
|
+
}, req.session.user)(req, res, next)
|
|
95
|
+
})
|
|
79
96
|
|
|
80
97
|
// Serve static files
|
|
81
98
|
app.get("*", (req, res) => {
|
package/src/types/config.ts
CHANGED
|
@@ -152,6 +152,7 @@ export type TableView = {
|
|
|
152
152
|
isDesc?: boolean,
|
|
153
153
|
limit?: number,
|
|
154
154
|
filters?: string,
|
|
155
|
+
filtersFromUser?: (userId: number) => string,
|
|
155
156
|
notClickable?: boolean,
|
|
156
157
|
clickToEdit?: boolean,
|
|
157
158
|
customActions?: CustomAction[],
|
|
@@ -161,11 +162,11 @@ export type TableView = {
|
|
|
161
162
|
/** Rendre possible à l'utilisateur de modifier des enregistrements */
|
|
162
163
|
canEdit?: boolean,
|
|
163
164
|
createCallback?: string,
|
|
164
|
-
createCallbackFunction?: ({ id: number, data: any }) => void,
|
|
165
|
+
createCallbackFunction?: ({ id, data }: { id: number, data: any }) => void,
|
|
165
166
|
editCallback?: string,
|
|
166
|
-
editCallbackFunction?: ({ id: number, data: any }) => void,
|
|
167
|
+
editCallbackFunction?: ({ id, data }: { id: number, data: any }) => void,
|
|
167
168
|
deleteCallback?: string,
|
|
168
|
-
deleteCallbackFunction?: ({ id: number }) => void,
|
|
169
|
+
deleteCallbackFunction?: ({ id }: { id: number }) => void,
|
|
169
170
|
columns: Column[],
|
|
170
171
|
subviews?: Subview[],
|
|
171
172
|
recordViewPanels?: ViewPanel[]
|
|
@@ -204,9 +205,9 @@ export type TablePanel = {
|
|
|
204
205
|
},
|
|
205
206
|
formattedValues?: { [key: string]: string },
|
|
206
207
|
createCallback?: string,
|
|
207
|
-
createCallbackFunction?: ({ id: number, data: any }) => void,
|
|
208
|
+
createCallbackFunction?: ({ id, data }: { id: number, data: any }) => void,
|
|
208
209
|
deleteCallback?: string,
|
|
209
|
-
deleteCallbackFunction?: ({ id: number }) => void,
|
|
210
|
+
deleteCallbackFunction?: ({ id }: { id: number }) => void,
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
export type MapPanel = {
|
|
@@ -255,11 +256,20 @@ export type CustomView = {
|
|
|
255
256
|
|
|
256
257
|
export type BaseTypeView = {
|
|
257
258
|
/** Cache la vue dans le menu latéral */
|
|
258
|
-
hidden?: boolean
|
|
259
|
+
hidden?: boolean,
|
|
260
|
+
roles?: string[]
|
|
259
261
|
}
|
|
260
262
|
|
|
261
263
|
export type View = BaseTypeView & (TableView | IframeView | LinkView | CustomView)
|
|
262
264
|
|
|
265
|
+
export type AuthRole = {
|
|
266
|
+
role: string,
|
|
267
|
+
table: string,
|
|
268
|
+
usernameField: string,
|
|
269
|
+
passwordField: string,
|
|
270
|
+
idField: string,
|
|
271
|
+
}
|
|
272
|
+
|
|
263
273
|
export type Config = {
|
|
264
274
|
/** Nom du projet */
|
|
265
275
|
name: string,
|
|
@@ -278,6 +288,8 @@ export type Config = {
|
|
|
278
288
|
password: string
|
|
279
289
|
},
|
|
280
290
|
|
|
291
|
+
authRoles?: AuthRole[],
|
|
292
|
+
|
|
281
293
|
/** Identifiants de connexion à la base de données */
|
|
282
294
|
mysql: {
|
|
283
295
|
host: string,
|