@galadrim/galadmin 0.1.109 → 0.1.111

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.
Files changed (20) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/types/config.d.ts +1 -0
  3. package/package.json +1 -1
  4. package/src/front/build/asset-manifest.json +3 -3
  5. package/src/front/build/index.html +1 -1
  6. package/src/front/build/static/js/{main.03acdee4.js → main.d3fb0613.js} +3 -3
  7. package/src/front/build/static/js/{main.03acdee4.js.map → main.d3fb0613.js.map} +1 -1
  8. package/src/front/node_modules/.cache/.eslintcache +1 -1
  9. package/src/front/node_modules/.cache/babel-loader/2f326628cc6e0a572dda5da8dc9d604628f1c10e4a0903427a1b6ee44c7135c8.json +1 -0
  10. package/src/front/node_modules/.cache/babel-loader/2ff7a52ab5fe656740eebc95baf5a8d11c1807f30b68491bcea86881b8e30466.json +1 -0
  11. package/src/front/node_modules/.cache/babel-loader/60c1ddda7bc044fe342d2b63ee6b7576cbd6aa655feb1d27978a18a931a2ad5f.json +1 -0
  12. package/src/front/node_modules/.cache/babel-loader/6e597716845421e944ed986ac95b97d2f63b8efe720c4176cee7dbbffe1ee9d1.json +1 -0
  13. package/src/front/src/components/CustomComponent.js +4 -2
  14. package/src/front/src/pages/CreateRecord.js +0 -2
  15. package/src/front/src/pages/CustomView.js +2 -1
  16. package/src/front/src/pages/EditRecord.js +1 -1
  17. package/src/types/config.ts +2 -1
  18. package/src/front/node_modules/.cache/babel-loader/592c0ccec414ee5aa9e3ce07919bbabd3fde714ae72223d352e7652176ff38ee.json +0 -1
  19. package/src/front/node_modules/.cache/babel-loader/c8191949ac4753ef845a81483adfe800f67b152467478a020329c4040a546a6e.json +0 -1
  20. /package/src/front/build/static/js/{main.03acdee4.js.LICENSE.txt → main.d3fb0613.js.LICENSE.txt} +0 -0
@@ -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/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/UploadButton.js":"16","/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js":"17","/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js":"18","/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js":"19","/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js":"20","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.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/panels/ChatPanel.js":"27","/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js":"28","/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js":"29","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.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/BetterRichTextInput.js":"32","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js":"33","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js":"34","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js":"35","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js":"36","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js":"37","/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js":"38","/home/runner/work/galadmin/galadmin/src/front/src/components/UploadTablePanelButton.js":"39"},{"size":219,"mtime":1709653993532,"results":"40","hashOfConfig":"41"},{"size":2443,"mtime":1709653993532,"results":"42","hashOfConfig":"41"},{"size":5703,"mtime":1709653993532,"results":"43","hashOfConfig":"41"},{"size":524,"mtime":1709653993532,"results":"44","hashOfConfig":"41"},{"size":4648,"mtime":1709653993532,"results":"45","hashOfConfig":"41"},{"size":4060,"mtime":1709653993532,"results":"46","hashOfConfig":"41"},{"size":10604,"mtime":1709653993532,"results":"47","hashOfConfig":"41"},{"size":5036,"mtime":1709653993532,"results":"48","hashOfConfig":"41"},{"size":1135,"mtime":1709653993532,"results":"49","hashOfConfig":"41"},{"size":404,"mtime":1709653993532,"results":"50","hashOfConfig":"41"},{"size":454,"mtime":1709653993532,"results":"51","hashOfConfig":"41"},{"size":1022,"mtime":1709653993532,"results":"52","hashOfConfig":"41"},{"size":5057,"mtime":1709653993532,"results":"53","hashOfConfig":"41"},{"size":522,"mtime":1709653993532,"results":"54","hashOfConfig":"41"},{"size":895,"mtime":1709653993532,"results":"55","hashOfConfig":"41"},{"size":1474,"mtime":1709653993532,"results":"56","hashOfConfig":"41"},{"size":10302,"mtime":1709653993532,"results":"57","hashOfConfig":"41"},{"size":2656,"mtime":1709653993532,"results":"58","hashOfConfig":"41"},{"size":3169,"mtime":1709653993532,"results":"59","hashOfConfig":"41"},{"size":217,"mtime":1709653993532,"results":"60","hashOfConfig":"41"},{"size":1128,"mtime":1709653993532,"results":"61","hashOfConfig":"41"},{"size":778,"mtime":1709653993532,"results":"62","hashOfConfig":"41"},{"size":2698,"mtime":1709653993532,"results":"63","hashOfConfig":"41"},{"size":4606,"mtime":1709653993532,"results":"64","hashOfConfig":"41"},{"size":2656,"mtime":1709653993532,"results":"65","hashOfConfig":"41"},{"size":1192,"mtime":1709653993532,"results":"66","hashOfConfig":"41"},{"size":1736,"mtime":1709653993532,"results":"67","hashOfConfig":"41"},{"size":1662,"mtime":1709653993532,"results":"68","hashOfConfig":"41"},{"size":826,"mtime":1709653993532,"results":"69","hashOfConfig":"41"},{"size":894,"mtime":1709653993532,"results":"70","hashOfConfig":"41"},{"size":2091,"mtime":1709653993532,"results":"71","hashOfConfig":"41"},{"size":1458,"mtime":1709653993532,"results":"72","hashOfConfig":"41"},{"size":886,"mtime":1709653993532,"results":"73","hashOfConfig":"41"},{"size":3092,"mtime":1709653993532,"results":"74","hashOfConfig":"41"},{"size":3297,"mtime":1709653993532,"results":"75","hashOfConfig":"41"},{"size":1461,"mtime":1709653993532,"results":"76","hashOfConfig":"41"},{"size":2088,"mtime":1709653993532,"results":"77","hashOfConfig":"41"},{"size":530,"mtime":1709653993532,"results":"78","hashOfConfig":"41"},{"size":1854,"mtime":1709653993532,"results":"79","hashOfConfig":"41"},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"fnapjk",{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"89","messages":"90","suppressedMessages":"91","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":1,"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",["197","198","199","200"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/RedirectToFirstView.js",["201"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js",["202"],["203"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js",["204","205"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js",["206","207","208","209"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js",["210","211"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js",["212","213"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js",["214","215"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js",["216"],[],"/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js",["217"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js",["218"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js",["219"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js",["220"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/UploadButton.js",["221"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js",["222","223"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js",["224"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js",["225"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js",["226"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js",["227"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js",["228","229"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js",["230","231","232","233"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js",["234","235"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js",["236","237","238","239","240"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js",["241","242"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/ChatPanel.js",["243","244"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js",["245","246"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js",["247"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js",["248","249","250"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js",["251","252"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/BetterRichTextInput.js",["253"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js",["254","255"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js",["256","257","258","259"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js",["260"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js",["261","262","263"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js",["264","265","266","267"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js",["268","269"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/UploadTablePanelButton.js",["270"],[],{"ruleId":"271","severity":1,"message":"272","line":18,"column":1,"nodeType":"273","endLine":129,"endColumn":2},{"ruleId":"274","severity":1,"message":"275","line":39,"column":28,"nodeType":"276","endLine":39,"endColumn":66},{"ruleId":"277","severity":1,"message":"278","line":42,"column":70,"nodeType":"279","messageId":"280","endLine":42,"endColumn":72},{"ruleId":"281","severity":1,"message":"282","line":92,"column":80,"nodeType":"283","messageId":"284","endLine":92,"endColumn":82},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":24,"endColumn":2},{"ruleId":"285","severity":1,"message":"286","line":2,"column":22,"nodeType":"287","messageId":"288","endLine":2,"endColumn":28},{"ruleId":"271","severity":1,"message":"272","line":13,"column":1,"nodeType":"273","endLine":112,"endColumn":2,"suppressions":"289"},{"ruleId":"285","severity":1,"message":"286","line":1,"column":22,"nodeType":"287","messageId":"288","endLine":1,"endColumn":28},{"ruleId":"271","severity":1,"message":"272","line":12,"column":1,"nodeType":"273","endLine":104,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":22,"column":1,"nodeType":"273","endLine":228,"endColumn":2},{"ruleId":"290","severity":1,"message":"291","line":51,"column":8,"nodeType":"292","endLine":51,"endColumn":19,"suggestions":"293"},{"ruleId":"290","severity":1,"message":"294","line":62,"column":8,"nodeType":"292","endLine":62,"endColumn":79,"suggestions":"295"},{"ruleId":"281","severity":1,"message":"282","line":189,"column":66,"nodeType":"283","messageId":"284","endLine":189,"endColumn":68},{"ruleId":"271","severity":1,"message":"272","line":18,"column":1,"nodeType":"273","endLine":99,"endColumn":2},{"ruleId":"290","severity":1,"message":"294","line":31,"column":8,"nodeType":"292","endLine":31,"endColumn":29,"suggestions":"296"},{"ruleId":"271","severity":1,"message":"272","line":5,"column":1,"nodeType":"273","endLine":33,"endColumn":2},{"ruleId":"274","severity":1,"message":"275","line":23,"column":21,"nodeType":"276","endLine":23,"endColumn":57},{"ruleId":"271","severity":1,"message":"272","line":9,"column":1,"nodeType":"273","endLine":19,"endColumn":2},{"ruleId":"297","severity":1,"message":"298","line":16,"column":13,"nodeType":"276","endLine":16,"endColumn":36},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":15,"endColumn":2},{"ruleId":"299","severity":1,"message":"300","line":11,"column":29,"nodeType":"301","messageId":"284","endLine":11,"endColumn":33},{"ruleId":"271","severity":1,"message":"272","line":10,"column":1,"nodeType":"273","endLine":149,"endColumn":3},{"ruleId":"271","severity":1,"message":"272","line":3,"column":1,"nodeType":"273","endLine":17,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":5,"column":1,"nodeType":"273","endLine":30,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":5,"column":1,"nodeType":"273","endLine":55,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":206,"endColumn":2},{"ruleId":"290","severity":1,"message":"302","line":20,"column":8,"nodeType":"292","endLine":20,"endColumn":15,"suggestions":"303"},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":68,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":10,"column":1,"nodeType":"273","endLine":85,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":12,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":4,"column":1,"nodeType":"273","endLine":28,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":5,"column":1,"nodeType":"273","endLine":22,"endColumn":2},{"ruleId":"281","severity":1,"message":"282","line":9,"column":44,"nodeType":"283","messageId":"284","endLine":9,"endColumn":46},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":51,"endColumn":2},{"ruleId":"304","severity":1,"message":"305","line":19,"column":13,"nodeType":"276","messageId":"306","endLine":19,"endColumn":48,"fix":"307"},{"ruleId":"274","severity":1,"message":"275","line":20,"column":17,"nodeType":"276","endLine":20,"endColumn":127},{"ruleId":"281","severity":1,"message":"282","line":46,"column":93,"nodeType":"283","messageId":"284","endLine":46,"endColumn":95},{"ruleId":"271","severity":1,"message":"272","line":10,"column":1,"nodeType":"273","endLine":112,"endColumn":2},{"ruleId":"290","severity":1,"message":"294","line":18,"column":8,"nodeType":"292","endLine":18,"endColumn":16,"suggestions":"308"},{"ruleId":"271","severity":1,"message":"272","line":8,"column":1,"nodeType":"273","endLine":76,"endColumn":2},{"ruleId":"285","severity":1,"message":"309","line":10,"column":11,"nodeType":"287","messageId":"288","endLine":10,"endColumn":18},{"ruleId":"290","severity":1,"message":"294","line":15,"column":8,"nodeType":"292","endLine":15,"endColumn":29,"suggestions":"310"},{"ruleId":"304","severity":1,"message":"305","line":61,"column":29,"nodeType":"276","messageId":"306","endLine":61,"endColumn":89,"fix":"311"},{"ruleId":"274","severity":1,"message":"275","line":62,"column":33,"nodeType":"276","endLine":66,"endColumn":35},{"ruleId":"271","severity":1,"message":"272","line":4,"column":1,"nodeType":"273","endLine":42,"endColumn":2},{"ruleId":"290","severity":1,"message":"312","line":23,"column":8,"nodeType":"292","endLine":23,"endColumn":31,"suggestions":"313"},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":62,"endColumn":2},{"ruleId":"290","severity":1,"message":"294","line":14,"column":8,"nodeType":"292","endLine":14,"endColumn":16,"suggestions":"314"},{"ruleId":"315","severity":1,"message":"316","line":17,"column":27,"nodeType":"301","messageId":"317","endLine":17,"endColumn":69},{"ruleId":"318","severity":1,"message":"319","line":20,"column":13,"nodeType":"320","messageId":"321","endLine":20,"endColumn":47},{"ruleId":"290","severity":1,"message":"322","line":19,"column":8,"nodeType":"292","endLine":19,"endColumn":13,"suggestions":"323"},{"ruleId":"271","severity":1,"message":"272","line":3,"column":1,"nodeType":"273","endLine":29,"endColumn":2},{"ruleId":"290","severity":1,"message":"324","line":19,"column":43,"nodeType":"287","endLine":19,"endColumn":50},{"ruleId":"290","severity":1,"message":"325","line":20,"column":8,"nodeType":"292","endLine":20,"endColumn":29,"suggestions":"326"},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":58,"endColumn":3},{"ruleId":"290","severity":1,"message":"327","line":51,"column":8,"nodeType":"292","endLine":51,"endColumn":32,"suggestions":"328"},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":41,"endColumn":3},{"ruleId":"271","severity":1,"message":"272","line":3,"column":1,"nodeType":"273","endLine":26,"endColumn":2},{"ruleId":"290","severity":1,"message":"329","line":19,"column":8,"nodeType":"292","endLine":19,"endColumn":28,"suggestions":"330"},{"ruleId":"271","severity":1,"message":"272","line":3,"column":1,"nodeType":"273","endLine":67,"endColumn":2},{"ruleId":"290","severity":1,"message":"331","line":45,"column":8,"nodeType":"292","endLine":45,"endColumn":33,"suggestions":"332"},{"ruleId":"290","severity":1,"message":"333","line":54,"column":39,"nodeType":"287","endLine":54,"endColumn":46},{"ruleId":"290","severity":1,"message":"334","line":55,"column":8,"nodeType":"292","endLine":55,"endColumn":33,"suggestions":"335"},{"ruleId":"271","severity":1,"message":"272","line":8,"column":1,"nodeType":"273","endLine":85,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":46,"endColumn":2},{"ruleId":"290","severity":1,"message":"336","line":23,"column":8,"nodeType":"292","endLine":23,"endColumn":10,"suggestions":"337"},{"ruleId":"281","severity":1,"message":"282","line":32,"column":50,"nodeType":"283","messageId":"284","endLine":32,"endColumn":52},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":64,"endColumn":2},{"ruleId":"290","severity":1,"message":"338","line":22,"column":8,"nodeType":"292","endLine":22,"endColumn":15,"suggestions":"339"},{"ruleId":"290","severity":1,"message":"340","line":31,"column":29,"nodeType":"287","endLine":31,"endColumn":36},{"ruleId":"290","severity":1,"message":"341","line":32,"column":8,"nodeType":"292","endLine":32,"endColumn":23,"suggestions":"342"},{"ruleId":"271","severity":1,"message":"272","line":2,"column":1,"nodeType":"273","endLine":14,"endColumn":2},{"ruleId":"299","severity":1,"message":"300","line":8,"column":16,"nodeType":"301","messageId":"284","endLine":8,"endColumn":20},{"ruleId":"271","severity":1,"message":"272","line":4,"column":1,"nodeType":"273","endLine":56,"endColumn":2},"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","no-unused-vars","'useRef' is defined but never used.","Identifier","unusedVar",["343"],"react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'currentFilters.length' and 'selectedRecordIds.length'. Either include them or remove the dependency array.","ArrayExpression",["344"],"React Hook useEffect has a missing dependency: 'refreshData'. Either include it or remove the dependency array.",["345"],["346"],"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', 'column.optional', and 'column.options'. Either include them or remove the dependency array.",["347"],"react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" (which implies rel=\"noopener\") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations","noTargetBlankWithoutNoreferrer",{"range":"348","text":"349"},["350"],"'history' is assigned a value but never used.",["351"],{"range":"352","text":"349"},"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.",["353"],["354"],"no-new-func","The Function constructor is eval.","noFunctionConstructor","no-throw-literal","Expected an error object to be thrown.","ThrowStatement","object","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.",["355"],"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.",["356"],"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.",["357"],"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.",["358"],"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.",["359"],"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.",["360"],"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.",["361"],"React Hook useEffect has missing dependencies: 'column.__id__' and 'viewIndex'. Either include them or remove the dependency array.",["362"],"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.",["363"],{"kind":"364","justification":"365"},{"desc":"366","fix":"367"},{"desc":"368","fix":"369"},{"desc":"370","fix":"371"},{"desc":"372","fix":"373"},[1055,1055]," rel=\"noreferrer\"",{"desc":"374","fix":"375"},{"desc":"376","fix":"377"},[2020,2020],{"desc":"378","fix":"379"},{"desc":"374","fix":"380"},{"desc":"381","fix":"382"},{"desc":"383","fix":"384"},{"desc":"385","fix":"386"},{"desc":"387","fix":"388"},{"desc":"389","fix":"390"},{"desc":"391","fix":"392"},{"desc":"393","fix":"394"},{"desc":"395","fix":"396"},{"desc":"391","fix":"397"},"directive","","Update the dependencies array to be: [currentFilters.length, selectedRecordIds.length, viewIndex]",{"range":"398","text":"399"},"Update the dependencies array to be: [viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",{"range":"400","text":"401"},"Update the dependencies array to be: [viewIndex, recordId, refreshData]",{"range":"402","text":"403"},"Update the dependencies array to be: [column?.dataType, column.optional, column.options, field]",{"range":"404","text":"405"},"Update the dependencies array to be: [record, refreshData]",{"range":"406","text":"407"},"Update the dependencies array to be: [panel.query, record, refreshData]",{"range":"408","text":"409"},"Update the dependencies array to be: [panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",{"range":"410","text":"411"},{"range":"412","text":"407"},"Update the dependencies array to be: [handler, ref]",{"range":"413","text":"414"},"Update the dependencies array to be: [column.name, initialData, onChange]",{"range":"415","text":"416"},"Update the dependencies array to be: [column.contentField, column.htmlField, initialData, onChange]",{"range":"417","text":"418"},"Update the dependencies array to be: [column.name, initialData, onChange, withTime]",{"range":"419","text":"420"},"Update the dependencies array to be: [column, onChange]",{"range":"421","text":"422"},"Update the dependencies array to be: []",{"range":"423","text":"424"},"Update the dependencies array to be: [column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",{"range":"425","text":"426"},"Update the dependencies array to be: [column.__id__, query, viewIndex]",{"range":"427","text":"428"},{"range":"429","text":"424"},[1710,1721],"[currentFilters.length, selectedRecordIds.length, viewIndex]",[1950,2021],"[viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",[1158,1179],"[viewIndex, recordId, refreshData]",[835,842],"[column?.dataType, column.optional, 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]",[363,371],[604,609],"[handler, ref]",[695,716],"[column.name, initialData, onChange]",[1877,1901],"[column.contentField, column.htmlField, initialData, onChange]",[717,737],"[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
+ [{"/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/UploadButton.js":"16","/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js":"17","/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js":"18","/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js":"19","/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js":"20","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.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/panels/ChatPanel.js":"27","/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js":"28","/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js":"29","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.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/BetterRichTextInput.js":"32","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js":"33","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js":"34","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js":"35","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js":"36","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js":"37","/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js":"38","/home/runner/work/galadmin/galadmin/src/front/src/components/UploadTablePanelButton.js":"39"},{"size":219,"mtime":1710238104127,"results":"40","hashOfConfig":"41"},{"size":2443,"mtime":1710238104127,"results":"42","hashOfConfig":"41"},{"size":5703,"mtime":1710238104127,"results":"43","hashOfConfig":"41"},{"size":524,"mtime":1710238104127,"results":"44","hashOfConfig":"41"},{"size":4617,"mtime":1710238104127,"results":"45","hashOfConfig":"41"},{"size":4080,"mtime":1710238104127,"results":"46","hashOfConfig":"41"},{"size":10604,"mtime":1710238104127,"results":"47","hashOfConfig":"41"},{"size":5036,"mtime":1710238104127,"results":"48","hashOfConfig":"41"},{"size":1135,"mtime":1710238104127,"results":"49","hashOfConfig":"41"},{"size":404,"mtime":1710238104127,"results":"50","hashOfConfig":"41"},{"size":552,"mtime":1710238104127,"results":"51","hashOfConfig":"41"},{"size":1022,"mtime":1710238104127,"results":"52","hashOfConfig":"41"},{"size":5057,"mtime":1710238104127,"results":"53","hashOfConfig":"41"},{"size":522,"mtime":1710238104127,"results":"54","hashOfConfig":"41"},{"size":895,"mtime":1710238104127,"results":"55","hashOfConfig":"41"},{"size":1474,"mtime":1710238104127,"results":"56","hashOfConfig":"41"},{"size":10302,"mtime":1710238104127,"results":"57","hashOfConfig":"41"},{"size":2656,"mtime":1710238104127,"results":"58","hashOfConfig":"41"},{"size":3169,"mtime":1710238104127,"results":"59","hashOfConfig":"41"},{"size":217,"mtime":1710238104127,"results":"60","hashOfConfig":"41"},{"size":1128,"mtime":1710238104127,"results":"61","hashOfConfig":"41"},{"size":778,"mtime":1710238104127,"results":"62","hashOfConfig":"41"},{"size":2698,"mtime":1710238104127,"results":"63","hashOfConfig":"41"},{"size":4606,"mtime":1710238104127,"results":"64","hashOfConfig":"41"},{"size":2656,"mtime":1710238104127,"results":"65","hashOfConfig":"41"},{"size":1192,"mtime":1710238104127,"results":"66","hashOfConfig":"41"},{"size":1736,"mtime":1710238104127,"results":"67","hashOfConfig":"41"},{"size":1745,"mtime":1710238104127,"results":"68","hashOfConfig":"41"},{"size":826,"mtime":1710238104127,"results":"69","hashOfConfig":"41"},{"size":894,"mtime":1710238104127,"results":"70","hashOfConfig":"41"},{"size":2091,"mtime":1710238104127,"results":"71","hashOfConfig":"41"},{"size":1458,"mtime":1710238104127,"results":"72","hashOfConfig":"41"},{"size":886,"mtime":1710238104127,"results":"73","hashOfConfig":"41"},{"size":3092,"mtime":1710238104127,"results":"74","hashOfConfig":"41"},{"size":3297,"mtime":1710238104127,"results":"75","hashOfConfig":"41"},{"size":1461,"mtime":1710238104127,"results":"76","hashOfConfig":"41"},{"size":2088,"mtime":1710238104127,"results":"77","hashOfConfig":"41"},{"size":530,"mtime":1710238104127,"results":"78","hashOfConfig":"41"},{"size":1854,"mtime":1710238104127,"results":"79","hashOfConfig":"41"},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"fnapjk",{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"89","messages":"90","suppressedMessages":"91","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":1,"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",["197","198","199","200"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/RedirectToFirstView.js",["201"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js",["202"],["203"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js",["204","205"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js",["206","207","208","209"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js",["210","211"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js",["212","213"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js",["214","215"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js",["216"],[],"/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js",["217"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js",["218"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js",["219"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js",["220"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/UploadButton.js",["221"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js",["222","223"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js",["224"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js",["225"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js",["226"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js",["227"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js",["228","229"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js",["230","231","232","233"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js",["234","235"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js",["236","237","238","239","240"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js",["241","242"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/ChatPanel.js",["243","244"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js",["245","246"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js",["247"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js",["248","249","250"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js",["251","252"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/BetterRichTextInput.js",["253"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js",["254","255"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js",["256","257","258","259"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js",["260"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js",["261","262","263"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js",["264","265","266","267"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js",["268","269"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/UploadTablePanelButton.js",["270"],[],{"ruleId":"271","severity":1,"message":"272","line":18,"column":1,"nodeType":"273","endLine":129,"endColumn":2},{"ruleId":"274","severity":1,"message":"275","line":39,"column":28,"nodeType":"276","endLine":39,"endColumn":66},{"ruleId":"277","severity":1,"message":"278","line":42,"column":70,"nodeType":"279","messageId":"280","endLine":42,"endColumn":72},{"ruleId":"281","severity":1,"message":"282","line":92,"column":80,"nodeType":"283","messageId":"284","endLine":92,"endColumn":82},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":24,"endColumn":2},{"ruleId":"285","severity":1,"message":"286","line":2,"column":22,"nodeType":"287","messageId":"288","endLine":2,"endColumn":28},{"ruleId":"271","severity":1,"message":"272","line":13,"column":1,"nodeType":"273","endLine":110,"endColumn":2,"suppressions":"289"},{"ruleId":"285","severity":1,"message":"286","line":1,"column":22,"nodeType":"287","messageId":"288","endLine":1,"endColumn":28},{"ruleId":"271","severity":1,"message":"272","line":12,"column":1,"nodeType":"273","endLine":104,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":22,"column":1,"nodeType":"273","endLine":228,"endColumn":2},{"ruleId":"290","severity":1,"message":"291","line":51,"column":8,"nodeType":"292","endLine":51,"endColumn":19,"suggestions":"293"},{"ruleId":"290","severity":1,"message":"294","line":62,"column":8,"nodeType":"292","endLine":62,"endColumn":79,"suggestions":"295"},{"ruleId":"281","severity":1,"message":"282","line":189,"column":66,"nodeType":"283","messageId":"284","endLine":189,"endColumn":68},{"ruleId":"271","severity":1,"message":"272","line":18,"column":1,"nodeType":"273","endLine":99,"endColumn":2},{"ruleId":"290","severity":1,"message":"294","line":31,"column":8,"nodeType":"292","endLine":31,"endColumn":29,"suggestions":"296"},{"ruleId":"271","severity":1,"message":"272","line":5,"column":1,"nodeType":"273","endLine":33,"endColumn":2},{"ruleId":"274","severity":1,"message":"275","line":23,"column":21,"nodeType":"276","endLine":23,"endColumn":57},{"ruleId":"271","severity":1,"message":"272","line":9,"column":1,"nodeType":"273","endLine":19,"endColumn":2},{"ruleId":"297","severity":1,"message":"298","line":16,"column":13,"nodeType":"276","endLine":16,"endColumn":36},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":16,"endColumn":2},{"ruleId":"299","severity":1,"message":"300","line":11,"column":29,"nodeType":"301","messageId":"284","endLine":11,"endColumn":33},{"ruleId":"271","severity":1,"message":"272","line":10,"column":1,"nodeType":"273","endLine":149,"endColumn":3},{"ruleId":"271","severity":1,"message":"272","line":3,"column":1,"nodeType":"273","endLine":17,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":5,"column":1,"nodeType":"273","endLine":30,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":5,"column":1,"nodeType":"273","endLine":55,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":206,"endColumn":2},{"ruleId":"290","severity":1,"message":"302","line":20,"column":8,"nodeType":"292","endLine":20,"endColumn":15,"suggestions":"303"},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":68,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":10,"column":1,"nodeType":"273","endLine":85,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":12,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":4,"column":1,"nodeType":"273","endLine":28,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":5,"column":1,"nodeType":"273","endLine":22,"endColumn":2},{"ruleId":"281","severity":1,"message":"282","line":9,"column":44,"nodeType":"283","messageId":"284","endLine":9,"endColumn":46},{"ruleId":"271","severity":1,"message":"272","line":6,"column":1,"nodeType":"273","endLine":51,"endColumn":2},{"ruleId":"304","severity":1,"message":"305","line":19,"column":13,"nodeType":"276","messageId":"306","endLine":19,"endColumn":48,"fix":"307"},{"ruleId":"274","severity":1,"message":"275","line":20,"column":17,"nodeType":"276","endLine":20,"endColumn":127},{"ruleId":"281","severity":1,"message":"282","line":46,"column":93,"nodeType":"283","messageId":"284","endLine":46,"endColumn":95},{"ruleId":"271","severity":1,"message":"272","line":10,"column":1,"nodeType":"273","endLine":112,"endColumn":2},{"ruleId":"290","severity":1,"message":"294","line":18,"column":8,"nodeType":"292","endLine":18,"endColumn":16,"suggestions":"308"},{"ruleId":"271","severity":1,"message":"272","line":8,"column":1,"nodeType":"273","endLine":76,"endColumn":2},{"ruleId":"285","severity":1,"message":"309","line":10,"column":11,"nodeType":"287","messageId":"288","endLine":10,"endColumn":18},{"ruleId":"290","severity":1,"message":"294","line":15,"column":8,"nodeType":"292","endLine":15,"endColumn":29,"suggestions":"310"},{"ruleId":"304","severity":1,"message":"305","line":61,"column":29,"nodeType":"276","messageId":"306","endLine":61,"endColumn":89,"fix":"311"},{"ruleId":"274","severity":1,"message":"275","line":62,"column":33,"nodeType":"276","endLine":66,"endColumn":35},{"ruleId":"271","severity":1,"message":"272","line":4,"column":1,"nodeType":"273","endLine":42,"endColumn":2},{"ruleId":"290","severity":1,"message":"312","line":23,"column":8,"nodeType":"292","endLine":23,"endColumn":31,"suggestions":"313"},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":62,"endColumn":2},{"ruleId":"290","severity":1,"message":"294","line":14,"column":8,"nodeType":"292","endLine":14,"endColumn":16,"suggestions":"314"},{"ruleId":"315","severity":1,"message":"316","line":17,"column":27,"nodeType":"301","messageId":"317","endLine":17,"endColumn":69},{"ruleId":"318","severity":1,"message":"319","line":20,"column":13,"nodeType":"320","messageId":"321","endLine":20,"endColumn":47},{"ruleId":"290","severity":1,"message":"322","line":19,"column":8,"nodeType":"292","endLine":19,"endColumn":13,"suggestions":"323"},{"ruleId":"271","severity":1,"message":"272","line":3,"column":1,"nodeType":"273","endLine":29,"endColumn":2},{"ruleId":"290","severity":1,"message":"324","line":19,"column":43,"nodeType":"287","endLine":19,"endColumn":50},{"ruleId":"290","severity":1,"message":"325","line":20,"column":8,"nodeType":"292","endLine":20,"endColumn":29,"suggestions":"326"},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":58,"endColumn":3},{"ruleId":"290","severity":1,"message":"327","line":51,"column":8,"nodeType":"292","endLine":51,"endColumn":32,"suggestions":"328"},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":41,"endColumn":3},{"ruleId":"271","severity":1,"message":"272","line":3,"column":1,"nodeType":"273","endLine":26,"endColumn":2},{"ruleId":"290","severity":1,"message":"329","line":19,"column":8,"nodeType":"292","endLine":19,"endColumn":28,"suggestions":"330"},{"ruleId":"271","severity":1,"message":"272","line":3,"column":1,"nodeType":"273","endLine":67,"endColumn":2},{"ruleId":"290","severity":1,"message":"331","line":45,"column":8,"nodeType":"292","endLine":45,"endColumn":33,"suggestions":"332"},{"ruleId":"290","severity":1,"message":"333","line":54,"column":39,"nodeType":"287","endLine":54,"endColumn":46},{"ruleId":"290","severity":1,"message":"334","line":55,"column":8,"nodeType":"292","endLine":55,"endColumn":33,"suggestions":"335"},{"ruleId":"271","severity":1,"message":"272","line":8,"column":1,"nodeType":"273","endLine":85,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":46,"endColumn":2},{"ruleId":"290","severity":1,"message":"336","line":23,"column":8,"nodeType":"292","endLine":23,"endColumn":10,"suggestions":"337"},{"ruleId":"281","severity":1,"message":"282","line":32,"column":50,"nodeType":"283","messageId":"284","endLine":32,"endColumn":52},{"ruleId":"271","severity":1,"message":"272","line":7,"column":1,"nodeType":"273","endLine":64,"endColumn":2},{"ruleId":"290","severity":1,"message":"338","line":22,"column":8,"nodeType":"292","endLine":22,"endColumn":15,"suggestions":"339"},{"ruleId":"290","severity":1,"message":"340","line":31,"column":29,"nodeType":"287","endLine":31,"endColumn":36},{"ruleId":"290","severity":1,"message":"341","line":32,"column":8,"nodeType":"292","endLine":32,"endColumn":23,"suggestions":"342"},{"ruleId":"271","severity":1,"message":"272","line":2,"column":1,"nodeType":"273","endLine":14,"endColumn":2},{"ruleId":"299","severity":1,"message":"300","line":8,"column":16,"nodeType":"301","messageId":"284","endLine":8,"endColumn":20},{"ruleId":"271","severity":1,"message":"272","line":4,"column":1,"nodeType":"273","endLine":56,"endColumn":2},"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","no-unused-vars","'useRef' is defined but never used.","Identifier","unusedVar",["343"],"react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'currentFilters.length' and 'selectedRecordIds.length'. Either include them or remove the dependency array.","ArrayExpression",["344"],"React Hook useEffect has a missing dependency: 'refreshData'. Either include it or remove the dependency array.",["345"],["346"],"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', 'column.optional', and 'column.options'. Either include them or remove the dependency array.",["347"],"react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" (which implies rel=\"noopener\") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations","noTargetBlankWithoutNoreferrer",{"range":"348","text":"349"},["350"],"'history' is assigned a value but never used.",["351"],{"range":"352","text":"349"},"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.",["353"],["354"],"no-new-func","The Function constructor is eval.","noFunctionConstructor","no-throw-literal","Expected an error object to be thrown.","ThrowStatement","object","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.",["355"],"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.",["356"],"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.",["357"],"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.",["358"],"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.",["359"],"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.",["360"],"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.",["361"],"React Hook useEffect has missing dependencies: 'column.__id__' and 'viewIndex'. Either include them or remove the dependency array.",["362"],"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.",["363"],{"kind":"364","justification":"365"},{"desc":"366","fix":"367"},{"desc":"368","fix":"369"},{"desc":"370","fix":"371"},{"desc":"372","fix":"373"},[1055,1055]," rel=\"noreferrer\"",{"desc":"374","fix":"375"},{"desc":"376","fix":"377"},[2020,2020],{"desc":"378","fix":"379"},{"desc":"374","fix":"380"},{"desc":"381","fix":"382"},{"desc":"383","fix":"384"},{"desc":"385","fix":"386"},{"desc":"387","fix":"388"},{"desc":"389","fix":"390"},{"desc":"391","fix":"392"},{"desc":"393","fix":"394"},{"desc":"395","fix":"396"},{"desc":"391","fix":"397"},"directive","","Update the dependencies array to be: [currentFilters.length, selectedRecordIds.length, viewIndex]",{"range":"398","text":"399"},"Update the dependencies array to be: [viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",{"range":"400","text":"401"},"Update the dependencies array to be: [viewIndex, recordId, refreshData]",{"range":"402","text":"403"},"Update the dependencies array to be: [column?.dataType, column.optional, column.options, field]",{"range":"404","text":"405"},"Update the dependencies array to be: [record, refreshData]",{"range":"406","text":"407"},"Update the dependencies array to be: [panel.query, record, refreshData]",{"range":"408","text":"409"},"Update the dependencies array to be: [panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",{"range":"410","text":"411"},{"range":"412","text":"407"},"Update the dependencies array to be: [handler, ref]",{"range":"413","text":"414"},"Update the dependencies array to be: [column.name, initialData, onChange]",{"range":"415","text":"416"},"Update the dependencies array to be: [column.contentField, column.htmlField, initialData, onChange]",{"range":"417","text":"418"},"Update the dependencies array to be: [column.name, initialData, onChange, withTime]",{"range":"419","text":"420"},"Update the dependencies array to be: [column, onChange]",{"range":"421","text":"422"},"Update the dependencies array to be: []",{"range":"423","text":"424"},"Update the dependencies array to be: [column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",{"range":"425","text":"426"},"Update the dependencies array to be: [column.__id__, query, viewIndex]",{"range":"427","text":"428"},{"range":"429","text":"424"},[1710,1721],"[currentFilters.length, selectedRecordIds.length, viewIndex]",[1950,2021],"[viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",[1158,1179],"[viewIndex, recordId, refreshData]",[835,842],"[column?.dataType, column.optional, 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]",[363,371],[604,609],"[handler, ref]",[695,716],"[column.name, initialData, onChange]",[1877,1901],"[column.contentField, column.htmlField, initialData, onChange]",[717,737],"[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]]
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _regeneratorRuntime from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\";import _asyncToGenerator from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";import _createForOfIteratorHelper from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js\";import _objectSpread from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";import _slicedToArray from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import{useContext,useRef,useState,useEffect}from\"react\";import{useParams,useHistory}from\"react-router-dom\";import axios from\"axios\";import Input from\"../components/Input\";import LabelTooltip from\"../components/LabelTooltip\";import{ConfigContext}from'../contexts/ConfigContext';import checkRequiredColumns from\"../utils/checkRequiredColumns\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";export default(function(){var config=useContext(ConfigContext);var _useParams=useParams(),viewIndex=_useParams.viewIndex,recordId=_useParams.recordId;var history=useHistory();var view=config.views[viewIndex];var _useState=useState(null),_useState2=_slicedToArray(_useState,2),record=_useState2[0],setRecord=_useState2[1];var _useState3=useState({}),_useState4=_slicedToArray(_useState3,2),dataToUpdate=_useState4[0],setDataToUpdate=_useState4[1];var filteredColumns=view.columns.filter(function(column){return column.dataType&&column.canEdit!==false&&!column.hidden&&(!record||!column.displayCondition||column.displayCondition(_objectSpread(_objectSpread({},record),dataToUpdate)));});var _useState5=useState(false),_useState6=_slicedToArray(_useState5,2),isUpdating=_useState6[0],setIsUpdating=_useState6[1];var _iterator=_createForOfIteratorHelper(view.columns),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var column=_step.value;if(column.displayCondition){console.log(_objectSpread(_objectSpread({},record),dataToUpdate));console.log(column.displayCondition(_objectSpread(_objectSpread({},record),dataToUpdate)));}}}catch(err){_iterator.e(err);}finally{_iterator.f();}useEffect(function(){axios.get(\"/record\",{params:{viewIndex:viewIndex,recordId:recordId}}).then(function(response){setDataToUpdate({});setRecord(response.data);});},[viewIndex,recordId]);var updateRecord=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(checkRequiredColumns(filteredColumns,_objectSpread(_objectSpread({},record),dataToUpdate))){_context.next=2;break;}return _context.abrupt(\"return\");case 2:setIsUpdating(true);_context.prev=3;_context.next=6;return axios.post(\"/updateRecord\",{viewIndex:viewIndex,primaryValue:recordId,data:dataToUpdate,previousData:record});case 6:setIsUpdating(false);history.push(\"/record/\".concat(viewIndex,\"/\").concat(recordId));_context.next=14;break;case 10:_context.prev=10;_context.t0=_context[\"catch\"](3);if(_context.t0.response.responseText){window.swal({title:\"Erreur\",text:_context.t0.response.responseText,dangerMode:true});}setIsUpdating(false);case 14:case\"end\":return _context.stop();}},_callee,null,[[3,10]]);}));return function updateRecord(){return _ref.apply(this,arguments);};}();return/*#__PURE__*/_jsxs(\"div\",{class:\"view\",children:[/*#__PURE__*/_jsx(\"div\",{class:\"viewHeader\",children:/*#__PURE__*/_jsx(\"div\",{class:\"viewTitle\",children:view.label})}),/*#__PURE__*/_jsx(\"div\",{class:\"paddedView\",children:record?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{class:\"form\",children:filteredColumns.map(function(column,index){return/*#__PURE__*/_jsxs(\"div\",{class:\"formElement\",children:[/*#__PURE__*/_jsxs(\"div\",{class:\"formLabel\",children:[column.label,\" \",column.required?\"*\":\"\",column.labelTooltip?/*#__PURE__*/_jsx(LabelTooltip,{text:column.labelTooltip}):null]}),/*#__PURE__*/_jsx(\"div\",{class:\"formInput\",children:/*#__PURE__*/_jsx(Input,{column:column,initialData:record,onChange:function onChange(newValues){return setDataToUpdate(function(_dataToUpdate){return _objectSpread(_objectSpread({},_dataToUpdate),newValues);});}})})]},index);})}),/*#__PURE__*/_jsx(\"div\",{class:\"button greenButton \".concat(isUpdating?\"loading\":\"\"),onClick:updateRecord,children:isUpdating?\"Sauvegarde en cours...\":\"Sauvegarder\"}),/*#__PURE__*/_jsx(\"div\",{class:\"button\",onClick:function onClick(){return history.goBack();},children:\"Annuler\"})]}):null})]});});","map":{"version":3,"names":["useContext","useRef","useState","useEffect","useParams","useHistory","axios","Input","LabelTooltip","ConfigContext","checkRequiredColumns","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","config","_useParams","viewIndex","recordId","history","view","views","_useState","_useState2","_slicedToArray","record","setRecord","_useState3","_useState4","dataToUpdate","setDataToUpdate","filteredColumns","columns","filter","column","dataType","canEdit","hidden","displayCondition","_objectSpread","_useState5","_useState6","isUpdating","setIsUpdating","_iterator","_createForOfIteratorHelper","_step","s","n","done","value","console","log","err","e","f","get","params","then","response","data","updateRecord","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_callee$","_context","prev","next","abrupt","post","primaryValue","previousData","push","concat","t0","responseText","window","swal","title","text","dangerMode","stop","apply","arguments","class","children","label","map","index","required","labelTooltip","initialData","onChange","newValues","_dataToUpdate","onClick","goBack"],"sources":["/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js"],"sourcesContent":["import { useContext, useRef, useState, useEffect } from \"react\";\nimport {\n useParams,\n useHistory\n} from \"react-router-dom\";\nimport axios from \"axios\";\nimport Input from \"../components/Input\"\nimport LabelTooltip from \"../components/LabelTooltip\"\nimport { ConfigContext } from '../contexts/ConfigContext'\nimport checkRequiredColumns from \"../utils/checkRequiredColumns\";\n\nexport default () => {\n const config = useContext(ConfigContext)\n const { viewIndex, recordId } = useParams();\n const history = useHistory();\n const view = config.views[viewIndex];\n const [record, setRecord] = useState(null);\n const [dataToUpdate, setDataToUpdate] = useState({});\n const filteredColumns = view.columns.filter(\n column => column.dataType &&\n column.canEdit !== false &&\n !column.hidden &&\n (!record || !column.displayCondition || column.displayCondition({ ...record, ...dataToUpdate }))\n )\n const [isUpdating, setIsUpdating] = useState(false)\n\n for (let column of view.columns) {\n if (column.displayCondition) {\n console.log({ ...record, ...dataToUpdate })\n console.log(column.displayCondition({ ...record, ...dataToUpdate }))\n }\n }\n\n useEffect(() => {\n axios.get(\"/record\", {\n params: {\n viewIndex,\n recordId\n }\n }).then((response) => {\n setDataToUpdate({});\n setRecord(response.data);\n });\n }, [viewIndex, recordId]);\n\n const updateRecord = async () => {\n if (!checkRequiredColumns(filteredColumns, { ...record, ...dataToUpdate })) return;\n setIsUpdating(true)\n try {\n await axios.post(\"/updateRecord\", {\n viewIndex,\n primaryValue: recordId,\n data: dataToUpdate,\n previousData: record\n })\n setIsUpdating(false)\n history.push(`/record/${viewIndex}/${recordId}`)\n } catch (error) {\n if (error.response.responseText) {\n window.swal({\n title: \"Erreur\",\n text: error.response.responseText,\n dangerMode: true\n })\n }\n setIsUpdating(false)\n }\n }\n\n return (\n <div class=\"view\">\n <div class=\"viewHeader\">\n <div class=\"viewTitle\">{view.label}</div>\n </div>\n <div class=\"paddedView\">\n {record ? (\n <>\n <div class=\"form\">\n {filteredColumns.map((column, index) => {\n return (\n <div class='formElement' key={index}>\n <div class='formLabel'>\n {column.label} {column.required ? \"*\" : \"\"}\n {column.labelTooltip ? <LabelTooltip text={column.labelTooltip} /> : null}\n </div>\n <div class='formInput'>\n <Input\n column={column}\n initialData={record}\n onChange={(newValues) => setDataToUpdate(_dataToUpdate => ({ ..._dataToUpdate, ...newValues }))}\n />\n </div>\n </div>\n )\n })}\n </div>\n <div class={`button greenButton ${isUpdating ? \"loading\" : \"\"}`} onClick={updateRecord}>{isUpdating ? \"Sauvegarde en cours...\" : \"Sauvegarder\"}</div>\n <div class=\"button\" onClick={() => history.goBack()}>Annuler</div>\n </>\n ) : null}\n </div>\n </div>\n )\n}"],"mappings":"srBAAA,OAASA,UAAU,CAAEC,MAAM,CAAEC,QAAQ,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QAAA,CAAE/C,UAAU,CAAG,wBAAwB,CAAG,aAAa,CAAM,CAAC,cACrJhC,IAAA,QAAK8E,KAAK,CAAC,QAAQ,CAACW,OAAO,CAAE,SAAAA,QAAA,QAAM,CAAAhF,OAAO,CAACiF,MAAM,CAAC,CAAC,EAAC,CAAAX,QAAA,CAAC,SAAO,CAAK,CAAC,EACpE,CAAC,CACH,IAAI,CACP,CAAC,EACL,CAAC,CAEd,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _objectSpread from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";import _regeneratorRuntime from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\";import _asyncToGenerator from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";import _slicedToArray from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import _createForOfIteratorHelper from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js\";/* eslint-disable import/no-anonymous-default-export */import{useContext,useRef,useState}from\"react\";import{useParams,useHistory}from\"react-router-dom\";import axios from\"axios\";import Input from\"../components/Input\";import LabelTooltip from\"../components/LabelTooltip\";import{ConfigContext}from'../contexts/ConfigContext';import checkRequiredColumns from\"../utils/checkRequiredColumns\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";export default(function(){var config=useContext(ConfigContext);var _useParams=useParams(),viewIndex=_useParams.viewIndex,panelIndex=_useParams.panelIndex,recordId=_useParams.recordId;var history=useHistory();var view=config.views[viewIndex];var panel=panelIndex?view.recordViewPanels[panelIndex]:null;var filteredColumns=panel?panel.createConfig.columns:view.columns.filter(function(column){return column.dataType&&(column.canEditOnCreation===true||column.canEdit!==false)&&!column.hidden;});var initialData={};var _iterator=_createForOfIteratorHelper(filteredColumns),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var column=_step.value;if(column.defaultOption){initialData[column.name]=column.defaultOption;}else if(column.dataType===\"tinyint\"){initialData[column.name]=column.optional?\"NULL\":0;}else if(column.dataType===\"select\"&&column.optional){initialData[column.name]=\"NULL\";}else if(column.dataType===\"select\"&&Array.isArray(column.options)){initialData[column.name]=column.options[0];}else if(column.dataType===\"select\"){initialData[column.name]=Object.keys(column.options)[0];}if(column.defaultValue){initialData[column.name]=column.defaultValue;}}}catch(err){_iterator.e(err);}finally{_iterator.f();}var _useState=useState(initialData),_useState2=_slicedToArray(_useState,2),data=_useState2[0],setData=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),isCreating=_useState4[0],setIsCreating=_useState4[1];var displayedColumns=filteredColumns.filter(function(column){return!column.displayCondition||column.displayCondition(data);});var createRecord=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var createData,key,_view$createConfig,response;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(checkRequiredColumns(filteredColumns,data)){_context.next=2;break;}return _context.abrupt(\"return\");case 2:createData=JSON.parse(JSON.stringify(data));for(key in view.createFilters){createData[key]=view.createFilters[key];}setIsCreating(true);_context.prev=5;_context.next=8;return axios.post(\"/createRecord\",{viewIndex:viewIndex,panelIndex:panelIndex,recordId:recordId,data:createData});case 8:response=_context.sent;setIsCreating(false);if(recordId){// Create from panel view\nhistory.push(\"/record/\".concat(viewIndex,\"/\").concat(recordId));}else if(view!==null&&view!==void 0&&(_view$createConfig=view.createConfig)!==null&&_view$createConfig!==void 0&&_view$createConfig.redirectToCreatedItems){history.push(\"/record/\".concat(viewIndex,\"/\").concat(response.data.id));}else{history.push(\"/records/\".concat(viewIndex));}_context.next=17;break;case 13:_context.prev=13;_context.t0=_context[\"catch\"](5);window.swal({title:\"Erreur\",text:axios.isAxiosError(_context.t0)?_context.t0.response.data.message:\"Une erreur est survenue\",dangerMode:true});setIsCreating(false);case 17:case\"end\":return _context.stop();}},_callee,null,[[5,13]]);}));return function createRecord(){return _ref.apply(this,arguments);};}();return/*#__PURE__*/_jsxs(\"div\",{class:\"view\",children:[/*#__PURE__*/_jsx(\"div\",{class:\"viewHeader\",children:/*#__PURE__*/_jsx(\"div\",{class:\"viewTitle\",children:panel?panel.createConfig.label:\"Cr\\xE9er \".concat(view.aNewSingular)})}),/*#__PURE__*/_jsxs(\"div\",{class:\"paddedView\",children:[/*#__PURE__*/_jsx(\"div\",{class:\"form\",children:displayedColumns.map(function(column,index){return/*#__PURE__*/_jsxs(\"div\",{class:\"formElement\",children:[/*#__PURE__*/_jsxs(\"div\",{class:\"formLabel\",children:[column.label,\" \",column.required?\"*\":\"\",column.labelTooltip?/*#__PURE__*/_jsx(LabelTooltip,{text:column.labelTooltip}):null]}),/*#__PURE__*/_jsx(\"div\",{class:\"formInput\",children:/*#__PURE__*/_jsx(Input,{column:column,onChange:function onChange(newValues){return setData(function(_data){return _objectSpread(_objectSpread({},_data),newValues);});}})})]},index);})}),/*#__PURE__*/_jsx(\"div\",{class:\"button greenButton \".concat(isCreating?\"loading\":\"\"),onClick:createRecord,children:isCreating?\"Sauvegarde en cours...\":\"Créer\"}),/*#__PURE__*/_jsx(\"div\",{class:\"button\",onClick:function onClick(){return history.goBack();},children:\"Annuler\"})]})]});});","map":{"version":3,"names":["useContext","useRef","useState","useParams","useHistory","axios","Input","LabelTooltip","ConfigContext","checkRequiredColumns","jsx","_jsx","jsxs","_jsxs","config","_useParams","viewIndex","panelIndex","recordId","history","view","views","panel","recordViewPanels","filteredColumns","createConfig","columns","filter","column","dataType","canEditOnCreation","canEdit","hidden","initialData","_iterator","_createForOfIteratorHelper","_step","s","n","done","value","defaultOption","name","optional","Array","isArray","options","Object","keys","defaultValue","err","e","f","_useState","_useState2","_slicedToArray","data","setData","_useState3","_useState4","isCreating","setIsCreating","displayedColumns","displayCondition","createRecord","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","createData","key","_view$createConfig","response","wrap","_callee$","_context","prev","next","abrupt","JSON","parse","stringify","createFilters","post","sent","push","concat","redirectToCreatedItems","id","t0","window","swal","title","text","isAxiosError","message","dangerMode","stop","apply","arguments","class","children","label","aNewSingular","map","index","required","labelTooltip","onChange","newValues","_data","_objectSpread","onClick","goBack"],"sources":["/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js"],"sourcesContent":["/* eslint-disable import/no-anonymous-default-export */\nimport { useContext, useRef, useState } from \"react\";\nimport {\n useParams,\n useHistory\n} from \"react-router-dom\";\nimport axios from \"axios\";\nimport Input from \"../components/Input\"\nimport LabelTooltip from \"../components/LabelTooltip\"\nimport { ConfigContext } from '../contexts/ConfigContext'\nimport checkRequiredColumns from \"../utils/checkRequiredColumns\";\n\nexport default () => {\n const config = useContext(ConfigContext)\n const { viewIndex, panelIndex, recordId } = useParams();\n const history = useHistory();\n const view = config.views[viewIndex];\n const panel = panelIndex ? view.recordViewPanels[panelIndex] : null;\n const filteredColumns = panel ? panel.createConfig.columns : view.columns.filter(\n column => column.dataType &&\n (column.canEditOnCreation === true || column.canEdit !== false)\n && !column.hidden\n )\n\n const initialData = {}\n for (const column of filteredColumns) {\n if (column.defaultOption) {\n initialData[column.name] = column.defaultOption\n } else if (column.dataType === \"tinyint\") {\n initialData[column.name] = column.optional ? \"NULL\" : 0\n } else if (column.dataType === \"select\" && column.optional) {\n initialData[column.name] = \"NULL\"\n } else if (column.dataType === \"select\" && Array.isArray(column.options)) {\n initialData[column.name] = column.options[0]\n } else if (column.dataType === \"select\") {\n initialData[column.name] = Object.keys(column.options)[0]\n }\n if (column.defaultValue) {\n initialData[column.name] = column.defaultValue\n }\n }\n const [data, setData] = useState(initialData)\n const [isCreating, setIsCreating] = useState(false)\n\n const displayedColumns = filteredColumns.filter(column =>\n !column.displayCondition || column.displayCondition(data)\n )\n\n const createRecord = async () => {\n if (!checkRequiredColumns(filteredColumns, data)) return;\n const createData = JSON.parse(JSON.stringify(data));\n for (const key in view.createFilters) {\n createData[key] = view.createFilters[key]\n }\n setIsCreating(true)\n try {\n const response = await axios.post(\"/createRecord\", {\n viewIndex,\n panelIndex,\n recordId,\n data: createData\n })\n setIsCreating(false)\n if (recordId) { // Create from panel view\n history.push(`/record/${viewIndex}/${recordId}`)\n } else if (view?.createConfig?.redirectToCreatedItems) {\n history.push(`/record/${viewIndex}/${response.data.id}`)\n } else {\n history.push(`/records/${viewIndex}`)\n }\n } catch (error) {\n window.swal({\n title: \"Erreur\",\n text: axios.isAxiosError(error) ? error.response.data.message : \"Une erreur est survenue\",\n dangerMode: true\n })\n setIsCreating(false)\n }\n }\n\n return (\n <div class=\"view\">\n <div class=\"viewHeader\">\n <div class=\"viewTitle\">{panel ? panel.createConfig.label : `Créer ${view.aNewSingular}`}</div>\n </div>\n <div class=\"paddedView\">\n <div class=\"form\">\n {displayedColumns.map((column, index) => {\n return (\n <div class='formElement' key={index}>\n <div class='formLabel'>\n {column.label} {column.required ? \"*\" : \"\"}\n {column.labelTooltip ? <LabelTooltip text={column.labelTooltip} /> : null}\n </div>\n <div class='formInput'>\n <Input\n column={column}\n onChange={(newValues) => setData(_data => ({ ..._data, ...newValues }))}\n />\n </div>\n </div>\n )\n })}\n </div>\n <div class={`button greenButton ${isCreating ? \"loading\" : \"\"}`} onClick={createRecord}>{isCreating ? \"Sauvegarde en cours...\" : \"Créer\"}</div>\n <div class=\"button\" onClick={() => history.goBack()}>Annuler</div>\n </div>\n </div>\n )\n}"],"mappings":"srBAAA,uDACA,OAASA,UAAU,CAAEC,MAAM,CAAEC,QAAQ,KAAQ,OAAO,CACpD,OACIC,SAAS,CACTC,UAAU,KACP,kBAAkB,CACzB,MAAO,CAAAC,KAAK,KAAM,OAAO,CACzB,MAAO,CAAAC,KAAK,KAAM,qBAAqB,CACvC,MAAO,CAAAC,YAAY,KAAM,4BAA4B,C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AAA,CACZxC,gBAAgB,CAAC2C,GAAG,CAAC,SAAC7E,MAAM,CAAE8E,KAAK,CAAK,CACrC,mBACI7F,KAAA,QAAKwF,KAAK,CAAC,aAAa,CAAAC,QAAA,eACpBzF,KAAA,QAAKwF,KAAK,CAAC,WAAW,CAAAC,QAAA,EACjB1E,MAAM,CAAC2E,KAAK,CAAC,GAAC,CAAC3E,MAAM,CAAC+E,QAAQ,CAAG,GAAG,CAAG,EAAE,CACzC/E,MAAM,CAACgF,YAAY,cAAGjG,IAAA,CAACJ,YAAY,EAACuF,IAAI,CAAElE,MAAM,CAACgF,YAAa,CAAE,CAAC,CAAG,IAAI,EACxE,CAAC,cACNjG,IAAA,QAAK0F,KAAK,CAAC,WAAW,CAAAC,QAAA,cAClB3F,IAAA,CAACL,KAAK,EACFsB,MAAM,CAAEA,MAAO,CACfiF,QAAQ,CAAE,SAAAA,SAACC,SAAS,QAAK,CAAArD,OAAO,CAAC,SAAAsD,KAAK,SAAAC,aAAA,CAAAA,aAAA,IAAUD,KAAK,EAAKD,SAAS,GAAG,CAAC,EAAC,CAC3E,CAAC,CACD,CAAC,GAVoBJ,KAWzB,CAAC,CAEd,CAAC,CAAC,CACD,CAAC,cACN/F,IAAA,QAAK0F,KAAK,uBAAAd,MAAA,CAAwB3B,UAAU,CAAG,SAAS,CAAG,EAAE,CAAG,CAACqD,OAAO,CAAEjD,YAAa,CAAAsC,QAAA,CAAE1C,UAAU,CAAG,wBAAwB,CAAG,OAAO,CAAM,CAAC,cAC/IjD,IAAA,QAAK0F,KAAK,CAAC,QAAQ,CAACY,OAAO,CAAE,SAAAA,QAAA,QAAM,CAAA9F,OAAO,CAAC+F,MAAM,CAAC,CAAC,EAAC,CAAAZ,QAAA,CAAC,SAAO,CAAK,CAAC,EACjE,CAAC,EACL,CAAC,CAEd,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import{useContext}from\"react\";import{useParams}from\"react-router-dom\";import CustomComponent from\"../components/CustomComponent\";import{ConfigContext}from\"../contexts/ConfigContext\";import{jsx as _jsx}from\"react/jsx-runtime\";export default(function(){var config=useContext(ConfigContext);var _useParams=useParams(),viewIndex=_useParams.viewIndex;var componentPath=config.views[viewIndex].componentPath;var componentProps=config.views[viewIndex].componentProps;return/*#__PURE__*/_jsx(CustomComponent,{componentPath:componentPath,componentProps:componentProps});});","map":{"version":3,"names":["useContext","useParams","CustomComponent","ConfigContext","jsx","_jsx","config","_useParams","viewIndex","componentPath","views","componentProps"],"sources":["/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js"],"sourcesContent":["import { useContext } from \"react\";\nimport { useParams } from \"react-router-dom\";\nimport CustomComponent from \"../components/CustomComponent\";\nimport { ConfigContext } from \"../contexts/ConfigContext\";\n\nexport default () => {\n const config = useContext(ConfigContext)\n const { viewIndex } = useParams();\n\n const componentPath = config.views[viewIndex].componentPath\n const componentProps = config.views[viewIndex].componentProps\n\n return (\n <CustomComponent componentPath={componentPath} componentProps={componentProps} />\n )\n}"],"mappings":"AAAA,OAASA,UAAU,KAAQ,OAAO,CAClC,OAASC,SAAS,KAAQ,kBAAkB,CAC5C,MAAO,CAAAC,eAAe,KAAM,+BAA+B,CAC3D,OAASC,aAAa,KAAQ,2BAA2B,CAAC,OAAAC,GAAA,IAAAC,IAAA,yBAE1D,eAAe,UAAM,CACjB,GAAM,CAAAC,MAAM,CAAGN,UAAU,CAACG,aAAa,CAAC,CACxC,IAAAI,UAAA,CAAsBN,SAAS,CAAC,CAAC,CAAzBO,SAAS,CAAAD,UAAA,CAATC,SAAS,CAEjB,GAAM,CAAAC,aAAa,CAAGH,MAAM,CAACI,KAAK,CAACF,SAAS,CAAC,CAACC,aAAa,CAC3D,GAAM,CAAAE,cAAc,CAAGL,MAAM,CAACI,KAAK,CAACF,SAAS,CAAC,CAACG,cAAc,CAE7D,mBACIN,IAAA,CAACH,eAAe,EAACO,aAAa,CAAEA,aAAc,CAACE,cAAc,CAAEA,cAAe,CAAE,CAAC,CAEzF,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _objectSpread from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";import _regeneratorRuntime from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\";import _objectWithoutProperties from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";import _asyncToGenerator from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";var _excluded=[\"componentPath\",\"componentProps\",\"children\"];import React,{useMemo,Suspense}from'react';import _axios from\"axios\";import styled from'styled-components';import{jsx as _jsx}from\"react/jsx-runtime\";var packages={\"react\":function react(){return{exports:React};},\"axios\":function axios(){return{exports:_axios};},\"styled-components\":function styledComponents(){return{exports:styled};}};function getParsedModule(code,moduleName,packages){var _this=Object.create(packages);function require(name){if(!(name in _this)&&moduleName===name){var module={exports:{}};_this[name]=function(){return module;};var wrapper=Function(\"require, exports, module\",code);wrapper(require,module.exports,module);}else if(!(name in _this)){throw\"Module '\".concat(name,\"' not found\");}return _this[name]().exports;}return require(moduleName);}function fetchComponent(_x){return _fetchComponent.apply(this,arguments);}function _fetchComponent(){_fetchComponent=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(componentPath){var response,text;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return _axios.get(\"/customComponent\",{params:{componentPath:componentPath}});case 3:response=_context2.sent;text=response.data;return _context2.abrupt(\"return\",{default:getParsedModule(text,\"__moduleName__\",packages)});case 8:_context2.prev=8;_context2.t0=_context2[\"catch\"](0);console.error(_context2.t0);return _context2.abrupt(\"return\",{default:function _default(){return/*#__PURE__*/_jsx(\"div\",{children:\"Erreur de rendu\"});}});case 12:case\"end\":return _context2.stop();}},_callee2,null,[[0,8]]);}));return _fetchComponent.apply(this,arguments);}var CustomComponent=function CustomComponent(_ref){var componentPath=_ref.componentPath,componentProps=_ref.componentProps,children=_ref.children,props=_objectWithoutProperties(_ref,_excluded);var Component=useMemo(function(){return/*#__PURE__*/React.lazy(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:return _context.abrupt(\"return\",fetchComponent(componentPath));case 1:case\"end\":return _context.stop();}},_callee);})));},[componentPath]);var mergedProps=_objectSpread(_objectSpread({},props),componentProps);return/*#__PURE__*/_jsx(Suspense,{fallback:null,children:/*#__PURE__*/_jsx(Component,_objectSpread(_objectSpread({},mergedProps),{},{children:children}))});};export default/*#__PURE__*/React.memo(CustomComponent);","map":{"version":3,"names":["React","useMemo","Suspense","axios","styled","jsx","_jsx","packages","react","exports","styledComponents","getParsedModule","code","moduleName","_this","Object","create","require","name","module","wrapper","Function","concat","fetchComponent","_x","_fetchComponent","apply","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee2","componentPath","response","text","wrap","_callee2$","_context2","prev","next","get","params","sent","data","abrupt","default","t0","console","error","_default","children","stop","CustomComponent","_ref","componentProps","props","_objectWithoutProperties","_excluded","Component","lazy","_callee","_callee$","_context","mergedProps","_objectSpread","fallback","memo"],"sources":["/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js"],"sourcesContent":["import React, { useMemo, Suspense } from 'react';\nimport axios from \"axios\";\nimport styled from 'styled-components'\n\nconst packages = {\n \"react\": () => ({ exports: React }),\n \"axios\": () => ({ exports: axios }),\n \"styled-components\": () => ({ exports: styled }),\n}\n\nfunction getParsedModule(code, moduleName, packages) {\n const _this = Object.create(packages);\n function require(name) {\n if (!(name in _this) && moduleName === name) {\n let module = { exports: {} };\n _this[name] = () => module;\n let wrapper = Function(\"require, exports, module\", code);\n wrapper(require, module.exports, module);\n } else if (!(name in _this)) {\n throw `Module '${name}' not found`\n }\n return (_this[name]()).exports;\n }\n\n return require(moduleName);\n}\n\n\nasync function fetchComponent(componentPath) {\n try {\n const response = await axios.get(`/customComponent`, {\n params: {\n componentPath\n }\n })\n const text = response.data\n return { default: getParsedModule(text, \"__moduleName__\", packages) };\n } catch (error) {\n console.error(error)\n return { default() { return <div>Erreur de rendu</div> } }\n }\n\n}\n\nconst CustomComponent = ({ componentPath, componentProps, children, ...props }) => {\n const Component = useMemo(() => {\n return React.lazy(async () => fetchComponent(componentPath))\n }, [componentPath]);\n\n const mergedProps = { ...props, ...componentProps }\n \n return (\n <Suspense fallback={null}>\n <Component {...mergedProps}>{children}</Component>\n </Suspense>\n )\n};\n\nexport default React.memo(CustomComponent);\n"],"mappings":"2mBAAA,MAAO,CAAAA,KAAK,EAAIC,OAAO,CAAEC,QAAQ,KAAQ,OAAO,CAChD,MAAO,CAAAC,MAAK,KAAM,OAAO,CACzB,MAAO,CAAAC,MAAM,KAAM,mBAAmB,QAAAC,GAAA,IAAAC,IAAA,yBAEtC,GAAM,CAAAC,QAAQ,CAAG,CACb,OAAO,CAAE,SAAAC,MAAA,QAAO,CAAEC,OAAO,CAAET,KAAM,CAAC,EAAC,CACnC,OAAO,CAAE,SAAAG,MAAA,QAAO,CAAEM,OAAO,CAAEN,MAAM,CAAC,EAAC,CACnC,mBAAmB,CAAE,SAAAO,iBAAA,QAAO,CAAED,OAAO,CAAEL,MAAO,CAAC,EACnD,CAAC,CAED,QAAS,CAAAO,eAAeA,CAACC,IAAI,CAAEC,UAAU,CAAEN,QAAQ,CAAE,CACjD,GAAM,CAAAO,KAAK,CAAGC,MAAM,CAACC,MAAM,CAACT,QAAQ,CAAC,CACrC,QAAS,CAAAU,OAAOA,CAACC,IAAI,CAAE,CACnB,GAAI,EAAEA,IAAI,GAAI,CAAAJ,KAAK,CAAC,EAAID,UAAU,GAAKK,IAAI,CAAE,CACzC,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CAAC,CAC5C,CAAC,CAEnB,CAAC,CAED,2BAAelD,KAAK,CAACkE,IAAI,CAACd,eAAe,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -42,14 +42,16 @@ async function fetchComponent(componentPath) {
42
42
 
43
43
  }
44
44
 
45
- const CustomComponent = ({ componentPath, children, ...props }) => {
45
+ const CustomComponent = ({ componentPath, componentProps, children, ...props }) => {
46
46
  const Component = useMemo(() => {
47
47
  return React.lazy(async () => fetchComponent(componentPath))
48
48
  }, [componentPath]);
49
49
 
50
+ const mergedProps = { ...props, ...componentProps }
51
+
50
52
  return (
51
53
  <Suspense fallback={null}>
52
- <Component {...props}>{children}</Component>
54
+ <Component {...mergedProps}>{children}</Component>
53
55
  </Suspense>
54
56
  )
55
57
  };
@@ -42,8 +42,6 @@ export default () => {
42
42
  const [data, setData] = useState(initialData)
43
43
  const [isCreating, setIsCreating] = useState(false)
44
44
 
45
- console.log("data", data)
46
-
47
45
  const displayedColumns = filteredColumns.filter(column =>
48
46
  !column.displayCondition || column.displayCondition(data)
49
47
  )
@@ -8,8 +8,9 @@ export default () => {
8
8
  const { viewIndex } = useParams();
9
9
 
10
10
  const componentPath = config.views[viewIndex].componentPath
11
+ const componentProps = config.views[viewIndex].componentProps
11
12
 
12
13
  return (
13
- <CustomComponent componentPath={componentPath} />
14
+ <CustomComponent componentPath={componentPath} componentProps={componentProps} />
14
15
  )
15
16
  }
@@ -87,7 +87,7 @@ export default () => {
87
87
  <Input
88
88
  column={column}
89
89
  initialData={record}
90
- onChange={(newValues) => setDataToUpdate({ ...dataToUpdate, ...newValues })}
90
+ onChange={(newValues) => setDataToUpdate(_dataToUpdate => ({ ..._dataToUpdate, ...newValues }))}
91
91
  />
92
92
  </div>
93
93
  </div>
@@ -322,7 +322,8 @@ export type CustomView = {
322
322
  type: 'custom',
323
323
  icon?: string,
324
324
  label: string,
325
- componentPath: string
325
+ componentPath: string,
326
+ componentProps?: any
326
327
  }
327
328
 
328
329
  export type BaseTypeView = {
@@ -1 +0,0 @@
1
- {"ast":null,"code":"import _objectSpread from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";import _regeneratorRuntime from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\";import _asyncToGenerator from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";import _slicedToArray from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import _createForOfIteratorHelper from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js\";/* eslint-disable import/no-anonymous-default-export */import{useContext,useRef,useState}from\"react\";import{useParams,useHistory}from\"react-router-dom\";import axios from\"axios\";import Input from\"../components/Input\";import LabelTooltip from\"../components/LabelTooltip\";import{ConfigContext}from'../contexts/ConfigContext';import checkRequiredColumns from\"../utils/checkRequiredColumns\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";export default(function(){var config=useContext(ConfigContext);var _useParams=useParams(),viewIndex=_useParams.viewIndex,panelIndex=_useParams.panelIndex,recordId=_useParams.recordId;var history=useHistory();var view=config.views[viewIndex];var panel=panelIndex?view.recordViewPanels[panelIndex]:null;var filteredColumns=panel?panel.createConfig.columns:view.columns.filter(function(column){return column.dataType&&(column.canEditOnCreation===true||column.canEdit!==false)&&!column.hidden;});var initialData={};var _iterator=_createForOfIteratorHelper(filteredColumns),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var column=_step.value;if(column.defaultOption){initialData[column.name]=column.defaultOption;}else if(column.dataType===\"tinyint\"){initialData[column.name]=column.optional?\"NULL\":0;}else if(column.dataType===\"select\"&&column.optional){initialData[column.name]=\"NULL\";}else if(column.dataType===\"select\"&&Array.isArray(column.options)){initialData[column.name]=column.options[0];}else if(column.dataType===\"select\"){initialData[column.name]=Object.keys(column.options)[0];}if(column.defaultValue){initialData[column.name]=column.defaultValue;}}}catch(err){_iterator.e(err);}finally{_iterator.f();}var _useState=useState(initialData),_useState2=_slicedToArray(_useState,2),data=_useState2[0],setData=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),isCreating=_useState4[0],setIsCreating=_useState4[1];console.log(\"data\",data);var displayedColumns=filteredColumns.filter(function(column){return!column.displayCondition||column.displayCondition(data);});var createRecord=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var createData,key,_view$createConfig,response;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(checkRequiredColumns(filteredColumns,data)){_context.next=2;break;}return _context.abrupt(\"return\");case 2:createData=JSON.parse(JSON.stringify(data));for(key in view.createFilters){createData[key]=view.createFilters[key];}setIsCreating(true);_context.prev=5;_context.next=8;return axios.post(\"/createRecord\",{viewIndex:viewIndex,panelIndex:panelIndex,recordId:recordId,data:createData});case 8:response=_context.sent;setIsCreating(false);if(recordId){// Create from panel view\nhistory.push(\"/record/\".concat(viewIndex,\"/\").concat(recordId));}else if(view!==null&&view!==void 0&&(_view$createConfig=view.createConfig)!==null&&_view$createConfig!==void 0&&_view$createConfig.redirectToCreatedItems){history.push(\"/record/\".concat(viewIndex,\"/\").concat(response.data.id));}else{history.push(\"/records/\".concat(viewIndex));}_context.next=17;break;case 13:_context.prev=13;_context.t0=_context[\"catch\"](5);window.swal({title:\"Erreur\",text:axios.isAxiosError(_context.t0)?_context.t0.response.data.message:\"Une erreur est survenue\",dangerMode:true});setIsCreating(false);case 17:case\"end\":return _context.stop();}},_callee,null,[[5,13]]);}));return function createRecord(){return _ref.apply(this,arguments);};}();return/*#__PURE__*/_jsxs(\"div\",{class:\"view\",children:[/*#__PURE__*/_jsx(\"div\",{class:\"viewHeader\",children:/*#__PURE__*/_jsx(\"div\",{class:\"viewTitle\",children:panel?panel.createConfig.label:\"Cr\\xE9er \".concat(view.aNewSingular)})}),/*#__PURE__*/_jsxs(\"div\",{class:\"paddedView\",children:[/*#__PURE__*/_jsx(\"div\",{class:\"form\",children:displayedColumns.map(function(column,index){return/*#__PURE__*/_jsxs(\"div\",{class:\"formElement\",children:[/*#__PURE__*/_jsxs(\"div\",{class:\"formLabel\",children:[column.label,\" \",column.required?\"*\":\"\",column.labelTooltip?/*#__PURE__*/_jsx(LabelTooltip,{text:column.labelTooltip}):null]}),/*#__PURE__*/_jsx(\"div\",{class:\"formInput\",children:/*#__PURE__*/_jsx(Input,{column:column,onChange:function onChange(newValues){return setData(function(_data){return _objectSpread(_objectSpread({},_data),newValues);});}})})]},index);})}),/*#__PURE__*/_jsx(\"div\",{class:\"button greenButton \".concat(isCreating?\"loading\":\"\"),onClick:createRecord,children:isCreating?\"Sauvegarde en cours...\":\"Créer\"}),/*#__PURE__*/_jsx(\"div\",{class:\"button\",onClick:function onClick(){return history.goBack();},children:\"Annuler\"})]})]});});","map":{"version":3,"names":["useContext","useRef","useState","useParams","useHistory","axios","Input","LabelTooltip","ConfigContext","checkRequiredColumns","jsx","_jsx","jsxs","_jsxs","config","_useParams","viewIndex","panelIndex","recordId","history","view","views","panel","recordViewPanels","filteredColumns","createConfig","columns","filter","column","dataType","canEditOnCreation","canEdit","hidden","initialData","_iterator","_createForOfIteratorHelper","_step","s","n","done","value","defaultOption","name","optional","Array","isArray","options","Object","keys","defaultValue","err","e","f","_useState","_useState2","_slicedToArray","data","setData","_useState3","_useState4","isCreating","setIsCreating","console","log","displayedColumns","displayCondition","createRecord","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","createData","key","_view$createConfig","response","wrap","_callee$","_context","prev","next","abrupt","JSON","parse","stringify","createFilters","post","sent","push","concat","redirectToCreatedItems","id","t0","window","swal","title","text","isAxiosError","message","dangerMode","stop","apply","arguments","class","children","label","aNewSingular","map","index","required","labelTooltip","onChange","newValues","_data","_objectSpread","onClick","goBack"],"sources":["/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js"],"sourcesContent":["/* eslint-disable import/no-anonymous-default-export */\nimport { useContext, useRef, useState } from \"react\";\nimport {\n useParams,\n useHistory\n} from \"react-router-dom\";\nimport axios from \"axios\";\nimport Input from \"../components/Input\"\nimport LabelTooltip from \"../components/LabelTooltip\"\nimport { ConfigContext } from '../contexts/ConfigContext'\nimport checkRequiredColumns from \"../utils/checkRequiredColumns\";\n\nexport default () => {\n const config = useContext(ConfigContext)\n const { viewIndex, panelIndex, recordId } = useParams();\n const history = useHistory();\n const view = config.views[viewIndex];\n const panel = panelIndex ? view.recordViewPanels[panelIndex] : null;\n const filteredColumns = panel ? panel.createConfig.columns : view.columns.filter(\n column => column.dataType &&\n (column.canEditOnCreation === true || column.canEdit !== false)\n && !column.hidden\n )\n\n const initialData = {}\n for (const column of filteredColumns) {\n if (column.defaultOption) {\n initialData[column.name] = column.defaultOption\n } else if (column.dataType === \"tinyint\") {\n initialData[column.name] = column.optional ? \"NULL\" : 0\n } else if (column.dataType === \"select\" && column.optional) {\n initialData[column.name] = \"NULL\"\n } else if (column.dataType === \"select\" && Array.isArray(column.options)) {\n initialData[column.name] = column.options[0]\n } else if (column.dataType === \"select\") {\n initialData[column.name] = Object.keys(column.options)[0]\n }\n if (column.defaultValue) {\n initialData[column.name] = column.defaultValue\n }\n }\n const [data, setData] = useState(initialData)\n const [isCreating, setIsCreating] = useState(false)\n\n console.log(\"data\", data)\n\n const displayedColumns = filteredColumns.filter(column =>\n !column.displayCondition || column.displayCondition(data)\n )\n\n const createRecord = async () => {\n if (!checkRequiredColumns(filteredColumns, data)) return;\n const createData = JSON.parse(JSON.stringify(data));\n for (const key in view.createFilters) {\n createData[key] = view.createFilters[key]\n }\n setIsCreating(true)\n try {\n const response = await axios.post(\"/createRecord\", {\n viewIndex,\n panelIndex,\n recordId,\n data: createData\n })\n setIsCreating(false)\n if (recordId) { // Create from panel view\n history.push(`/record/${viewIndex}/${recordId}`)\n } else if (view?.createConfig?.redirectToCreatedItems) {\n history.push(`/record/${viewIndex}/${response.data.id}`)\n } else {\n history.push(`/records/${viewIndex}`)\n }\n } catch (error) {\n window.swal({\n title: \"Erreur\",\n text: axios.isAxiosError(error) ? error.response.data.message : \"Une erreur est survenue\",\n dangerMode: true\n })\n setIsCreating(false)\n }\n }\n\n return (\n <div class=\"view\">\n <div class=\"viewHeader\">\n <div class=\"viewTitle\">{panel ? panel.createConfig.label : `Créer ${view.aNewSingular}`}</div>\n </div>\n <div class=\"paddedView\">\n <div class=\"form\">\n {displayedColumns.map((column, index) => {\n return (\n <div class='formElement' key={index}>\n <div class='formLabel'>\n {column.label} {column.required ? \"*\" : \"\"}\n {column.labelTooltip ? <LabelTooltip text={column.labelTooltip} /> : null}\n </div>\n <div class='formInput'>\n <Input\n column={column}\n onChange={(newValues) => setData(_data => ({ ..._data, ...newValues }))}\n />\n </div>\n </div>\n )\n })}\n </div>\n <div class={`button greenButton ${isCreating ? \"loading\" : \"\"}`} onClick={createRecord}>{isCreating ? \"Sauvegarde en cours...\" : \"Créer\"}</div>\n <div class=\"button\" onClick={() => history.goBack()}>Annuler</div>\n </div>\n </div>\n )\n}"],"mappings":"srBAAA,uDACA,OAASA,UAAU,CAAEC,MAAM,CAAEC,QAAQ,KAAQ,OAAO,CACpD,OACIC,SAAS,CACTC,UAAU,KACP,kBAAkB,CACzB,MAAO,CAAAC,KAAK,KAAM,OAAO,CACzB,MAAO,CAAAC,KAAK,KAAM,qBAAqB,CACvC,MAAO,CAAAC,YAAY,KAAM,4BAA4B,CACrD,OAASC,aAAa,KAAQ,2BAA2B,CACzD,MAAO,CAAAC,oBAAoB,KAAM,+BAA+B,CAAC,OAAAC,GAAA,IAAAC,IAAA,gCAAAC,IAAA,IAAAC,KAAA,yBAEjE,eAAe,UAAM,CACjB,GAAM,CAAAC,MAAM,CAAGd,UAAU,CAACQ,aAAa,CAAC,CACxC,IAAAO,UAAA,CAA4CZ,SAAS,CAAC,CAAC,CAA/Ca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6E,KAAK,CAAC,GAAC,CAAC7E,MAAM,CAACiF,QAAQ,CAAG,GAAG,CAAG,EAAE,CACzCjF,MAAM,CAACkF,YAAY,cAAGnG,IAAA,CAACJ,YAAY,EAACyF,IAAI,CAAEpE,MAAM,CAACkF,YAAa,CAAE,CAAC,CAAG,IAAI,EACxE,CAAC,cACNnG,IAAA,QAAK4F,KAAK,CAAC,WAAW,CAAAC,QAAA,cAClB7F,IAAA,CAACL,KAAK,EACFsB,MAAM,CAAEA,MAAO,CACfmF,QAAQ,CAAE,SAAAA,SAACC,SAAS,QAAK,CAAAvD,OAAO,CAAC,SAAAwD,KAAK,SAAAC,aAAA,CAAAA,aAAA,IAAUD,KAAK,EAAKD,SAAS,GAAG,CAAC,EAAC,CAC3E,CAAC,CACD,CAAC,GAVoBJ,KAWzB,CAAC,CAEd,CAAC,CAAC,CACD,CAAC,cACNjG,IAAA,QAAK4F,KAAK,uBAAAd,MAAA,CAAwB7B,UAAU,CAAG,SAAS,CAAG,EAAE,CAAG,CAACuD,OAAO,CAAEjD,YAAa,CAAAsC,QAAA,CAAE5C,UAAU,CAAG,wBAAwB,CAAG,OAAO,CAAM,CAAC,cAC/IjD,IAAA,QAAK4F,KAAK,CAAC,QAAQ,CAACY,OAAO,CAAE,SAAAA,QAAA,QAAM,CAAAhG,OAAO,CAACiG,MAAM,CAAC,CAAC,EAAC,CAAAZ,QAAA,CAAC,SAAO,CAAK,CAAC,EACjE,CAAC,EACL,CAAC,CAEd,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -1 +0,0 @@
1
- {"ast":null,"code":"import _regeneratorRuntime from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\";import _asyncToGenerator from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";import _createForOfIteratorHelper from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js\";import _objectSpread from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";import _slicedToArray from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import{useContext,useRef,useState,useEffect}from\"react\";import{useParams,useHistory}from\"react-router-dom\";import axios from\"axios\";import Input from\"../components/Input\";import LabelTooltip from\"../components/LabelTooltip\";import{ConfigContext}from'../contexts/ConfigContext';import checkRequiredColumns from\"../utils/checkRequiredColumns\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";export default(function(){var config=useContext(ConfigContext);var _useParams=useParams(),viewIndex=_useParams.viewIndex,recordId=_useParams.recordId;var history=useHistory();var view=config.views[viewIndex];var _useState=useState(null),_useState2=_slicedToArray(_useState,2),record=_useState2[0],setRecord=_useState2[1];var _useState3=useState({}),_useState4=_slicedToArray(_useState3,2),dataToUpdate=_useState4[0],setDataToUpdate=_useState4[1];var filteredColumns=view.columns.filter(function(column){return column.dataType&&column.canEdit!==false&&!column.hidden&&(!record||!column.displayCondition||column.displayCondition(_objectSpread(_objectSpread({},record),dataToUpdate)));});var _useState5=useState(false),_useState6=_slicedToArray(_useState5,2),isUpdating=_useState6[0],setIsUpdating=_useState6[1];var _iterator=_createForOfIteratorHelper(view.columns),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var column=_step.value;if(column.displayCondition){console.log(_objectSpread(_objectSpread({},record),dataToUpdate));console.log(column.displayCondition(_objectSpread(_objectSpread({},record),dataToUpdate)));}}}catch(err){_iterator.e(err);}finally{_iterator.f();}useEffect(function(){axios.get(\"/record\",{params:{viewIndex:viewIndex,recordId:recordId}}).then(function(response){setDataToUpdate({});setRecord(response.data);});},[viewIndex,recordId]);var updateRecord=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(checkRequiredColumns(filteredColumns,_objectSpread(_objectSpread({},record),dataToUpdate))){_context.next=2;break;}return _context.abrupt(\"return\");case 2:setIsUpdating(true);_context.prev=3;_context.next=6;return axios.post(\"/updateRecord\",{viewIndex:viewIndex,primaryValue:recordId,data:dataToUpdate,previousData:record});case 6:setIsUpdating(false);history.push(\"/record/\".concat(viewIndex,\"/\").concat(recordId));_context.next=14;break;case 10:_context.prev=10;_context.t0=_context[\"catch\"](3);if(_context.t0.response.responseText){window.swal({title:\"Erreur\",text:_context.t0.response.responseText,dangerMode:true});}setIsUpdating(false);case 14:case\"end\":return _context.stop();}},_callee,null,[[3,10]]);}));return function updateRecord(){return _ref.apply(this,arguments);};}();return/*#__PURE__*/_jsxs(\"div\",{class:\"view\",children:[/*#__PURE__*/_jsx(\"div\",{class:\"viewHeader\",children:/*#__PURE__*/_jsx(\"div\",{class:\"viewTitle\",children:view.label})}),/*#__PURE__*/_jsx(\"div\",{class:\"paddedView\",children:record?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{class:\"form\",children:filteredColumns.map(function(column,index){return/*#__PURE__*/_jsxs(\"div\",{class:\"formElement\",children:[/*#__PURE__*/_jsxs(\"div\",{class:\"formLabel\",children:[column.label,\" \",column.required?\"*\":\"\",column.labelTooltip?/*#__PURE__*/_jsx(LabelTooltip,{text:column.labelTooltip}):null]}),/*#__PURE__*/_jsx(\"div\",{class:\"formInput\",children:/*#__PURE__*/_jsx(Input,{column:column,initialData:record,onChange:function onChange(newValues){return setDataToUpdate(_objectSpread(_objectSpread({},dataToUpdate),newValues));}})})]},index);})}),/*#__PURE__*/_jsx(\"div\",{class:\"button greenButton \".concat(isUpdating?\"loading\":\"\"),onClick:updateRecord,children:isUpdating?\"Sauvegarde en cours...\":\"Sauvegarder\"}),/*#__PURE__*/_jsx(\"div\",{class:\"button\",onClick:function onClick(){return history.goBack();},children:\"Annuler\"})]}):null})]});});","map":{"version":3,"names":["useContext","useRef","useState","useEffect","useParams","useHistory","axios","Input","LabelTooltip","ConfigContext","checkRequiredColumns","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","config","_useParams","viewIndex","recordId","history","view","views","_useState","_useState2","_slicedToArray","record","setRecord","_useState3","_useState4","dataToUpdate","setDataToUpdate","filteredColumns","columns","filter","column","dataType","canEdit","hidden","displayCondition","_objectSpread","_useState5","_useState6","isUpdating","setIsUpdating","_iterator","_createForOfIteratorHelper","_step","s","n","done","value","console","log","err","e","f","get","params","then","response","data","updateRecord","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_callee$","_context","prev","next","abrupt","post","primaryValue","previousData","push","concat","t0","responseText","window","swal","title","text","dangerMode","stop","apply","arguments","class","children","label","map","index","required","labelTooltip","initialData","onChange","newValues","onClick","goBack"],"sources":["/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js"],"sourcesContent":["import { useContext, useRef, useState, useEffect } from \"react\";\nimport {\n useParams,\n useHistory\n} from \"react-router-dom\";\nimport axios from \"axios\";\nimport Input from \"../components/Input\"\nimport LabelTooltip from \"../components/LabelTooltip\"\nimport { ConfigContext } from '../contexts/ConfigContext'\nimport checkRequiredColumns from \"../utils/checkRequiredColumns\";\n\nexport default () => {\n const config = useContext(ConfigContext)\n const { viewIndex, recordId } = useParams();\n const history = useHistory();\n const view = config.views[viewIndex];\n const [record, setRecord] = useState(null);\n const [dataToUpdate, setDataToUpdate] = useState({});\n const filteredColumns = view.columns.filter(\n column => column.dataType &&\n column.canEdit !== false &&\n !column.hidden &&\n (!record || !column.displayCondition || column.displayCondition({ ...record, ...dataToUpdate }))\n )\n const [isUpdating, setIsUpdating] = useState(false)\n\n for (let column of view.columns) {\n if (column.displayCondition) {\n console.log({ ...record, ...dataToUpdate })\n console.log(column.displayCondition({ ...record, ...dataToUpdate }))\n }\n }\n\n useEffect(() => {\n axios.get(\"/record\", {\n params: {\n viewIndex,\n recordId\n }\n }).then((response) => {\n setDataToUpdate({});\n setRecord(response.data);\n });\n }, [viewIndex, recordId]);\n\n const updateRecord = async () => {\n if (!checkRequiredColumns(filteredColumns, { ...record, ...dataToUpdate })) return;\n setIsUpdating(true)\n try {\n await axios.post(\"/updateRecord\", {\n viewIndex,\n primaryValue: recordId,\n data: dataToUpdate,\n previousData: record\n })\n setIsUpdating(false)\n history.push(`/record/${viewIndex}/${recordId}`)\n } catch (error) {\n if (error.response.responseText) {\n window.swal({\n title: \"Erreur\",\n text: error.response.responseText,\n dangerMode: true\n })\n }\n setIsUpdating(false)\n }\n }\n\n return (\n <div class=\"view\">\n <div class=\"viewHeader\">\n <div class=\"viewTitle\">{view.label}</div>\n </div>\n <div class=\"paddedView\">\n {record ? (\n <>\n <div class=\"form\">\n {filteredColumns.map((column, index) => {\n return (\n <div class='formElement' key={index}>\n <div class='formLabel'>\n {column.label} {column.required ? \"*\" : \"\"}\n {column.labelTooltip ? <LabelTooltip text={column.labelTooltip} /> : null}\n </div>\n <div class='formInput'>\n <Input\n column={column}\n initialData={record}\n onChange={(newValues) => setDataToUpdate({ ...dataToUpdate, ...newValues })}\n />\n </div>\n </div>\n )\n })}\n </div>\n <div class={`button greenButton ${isUpdating ? \"loading\" : \"\"}`} onClick={updateRecord}>{isUpdating ? \"Sauvegarde en cours...\" : \"Sauvegarder\"}</div>\n <div class=\"button\" onClick={() => history.goBack()}>Annuler</div>\n </>\n ) : null}\n </div>\n </div>\n )\n}"],"mappings":"srBAAA,OAASA,UAAU,CAAEC,MAAM,CAAEC,QAAQ,CAAEC,SAAS,KAAQ,OAAO,CAC/D,OACIC,SAAS,CACTC,UAAU,KACP,kBAAkB,CACzB,MAAO,CAAAC,KAAK,KAAM,OAAO,CACzB,MAAO,CAAAC,KAAK,KAAM,qBAAqB,CACvC,MAAO,CAAAC,YAAY,KAAM,4BAA4B,CACrD,OAASC,aAAa,KAAQ,2BAA2B,CACzD,MAAO,CAAAC,oBAAoB,KAAM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