@galadrim/galadmin 0.0.49 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/config.d.ts +1 -0
- package/package.json +1 -1
- package/src/front/build/asset-manifest.json +7 -7
- package/src/front/build/index.html +1 -1
- package/src/front/build/static/js/{2.510c122a.chunk.js → 2.a36e796c.chunk.js} +3 -3
- package/src/front/build/static/js/{2.510c122a.chunk.js.LICENSE.txt → 2.a36e796c.chunk.js.LICENSE.txt} +0 -0
- package/src/front/build/static/js/{2.510c122a.chunk.js.map → 2.a36e796c.chunk.js.map} +1 -1
- package/src/front/build/static/js/{main.7ced8aa7.chunk.js → main.435f24e1.chunk.js} +2 -2
- package/src/front/build/static/js/main.435f24e1.chunk.js.map +1 -0
- package/src/front/node_modules/.cache/.eslintcache +1 -1
- package/src/front/node_modules/.cache/babel-loader/5c2cc169da1cbf30356cdeadda534169.json +1 -0
- package/src/front/node_modules/.cache/babel-loader/6d29194e9975f70d074bf162e23886ed.json +1 -0
- package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/76/89/e60c29e9d09fe2bfe4d64ee8814e0169d8a76a3fa08b32dee15d5ab454dfddd51c87de10c6b935c3b89ddd758a8b9105ba4ebd16a2e14cad9face454f5ce +1 -0
- package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/80/14/f89b5000136bcab7e841402511e7e2bcbfb08f6605926578ba9a1929f3dd609aa2f82e957a405687e483efe592b680f55e33b414aa640a8f39a59e57b535 +1 -0
- package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/3b/6d/4bfed5b8d4522c713b88981d22cf3a01c8070de081205f08d72bde2b624d +2 -0
- package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/a9/2b/f75db8fae988b6420aaee662e604df0969612b2f29af99f9ad3a53ae521b +2 -0
- package/src/front/src/components/panels/GalleryPanel.js +2 -2
- package/src/front/src/components/panels/TablePanel.js +4 -1
- package/src/types/config.ts +2 -1
- package/src/front/build/static/js/main.7ced8aa7.chunk.js.map +0 -1
|
@@ -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/pages/CreateRecord.js":"4","/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js":"5","/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js":"6","/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js":"7","/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js":"8","/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js":"9","/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js":"10","/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js":"11","/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js":"12","/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js":"13","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js":"14","/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js":"15","/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js":"16","/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js":"17","/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js":"18","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js":"19","/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js":"20","/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js":"21","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js":"22","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js":"23","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js":"24","/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js":"25","/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js":"26","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js":"27","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js":"28","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js":"29","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js":"30","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js":"31","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js":"32","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js":"33"},{"size":218,"mtime":1639142305225,"results":"34","hashOfConfig":"35"},{"size":2185,"mtime":1639142305221,"results":"36","hashOfConfig":"35"},{"size":4811,"mtime":1639142305221,"results":"37","hashOfConfig":"35"},{"size":3691,"mtime":1639142305225,"results":"38","hashOfConfig":"35"},{"size":3502,"mtime":1639142305225,"results":"39","hashOfConfig":"35"},{"size":9109,"mtime":1639142305225,"results":"40","hashOfConfig":"35"},{"size":4237,"mtime":1639142305225,"results":"41","hashOfConfig":"35"},{"size":1135,"mtime":1639142305225,"results":"42","hashOfConfig":"35"},{"size":404,"mtime":1639142305225,"results":"43","hashOfConfig":"35"},{"size":454,"mtime":1639142305225,"results":"44","hashOfConfig":"35"},{"size":1022,"mtime":1639142305225,"results":"45","hashOfConfig":"35"},{"size":4456,"mtime":1639142305221,"results":"46","hashOfConfig":"35"},{"size":522,"mtime":1639142305221,"results":"47","hashOfConfig":"35"},{"size":895,"mtime":1639142305221,"results":"48","hashOfConfig":"35"},{"size":4799,"mtime":1639142305221,"results":"49","hashOfConfig":"35"},{"size":2548,"mtime":1639142305221,"results":"50","hashOfConfig":"35"},{"size":3072,"mtime":1639142305221,"results":"51","hashOfConfig":"35"},{"size":217,"mtime":1639142305221,"results":"52","hashOfConfig":"35"},{"size":1128,"mtime":1639142305221,"results":"53","hashOfConfig":"35"},{"size":1662,"mtime":1639142305221,"results":"54","hashOfConfig":"35"},{"size":1728,"mtime":1639142305225,"results":"55","hashOfConfig":"35"},{"size":4192,"mtime":1639142305225,"results":"56","hashOfConfig":"35"},{"size":1420,"mtime":1639142305225,"results":"57","hashOfConfig":"35"},{"size":1192,"mtime":1639142305225,"results":"58","hashOfConfig":"35"},{"size":685,"mtime":1639142305221,"results":"59","hashOfConfig":"35"},{"size":530,"mtime":1639142305225,"results":"60","hashOfConfig":"35"},{"size":894,"mtime":1639142305221,"results":"61","hashOfConfig":"35"},{"size":1848,"mtime":1639142305225,"results":"62","hashOfConfig":"35"},{"size":869,"mtime":1639142305221,"results":"63","hashOfConfig":"35"},{"size":3092,"mtime":1639142305221,"results":"64","hashOfConfig":"35"},{"size":3226,"mtime":1639142305221,"results":"65","hashOfConfig":"35"},{"size":1220,"mtime":1639142305221,"results":"66","hashOfConfig":"35"},{"size":2088,"mtime":1639142305221,"results":"67","hashOfConfig":"35"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"b0zcht",{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"74","messages":"75","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"76","messages":"77","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"78","messages":"79","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"80","messages":"81","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"82","messages":"83","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"84","messages":"85","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"86","messages":"87","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"88","messages":"89","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"90","messages":"91","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"92","messages":"93","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"94","messages":"95","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"96","messages":"97","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"98","messages":"99","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"100","messages":"101","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"102","messages":"103","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"104","messages":"105","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"106","messages":"107","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"108","messages":"109","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"110","messages":"111","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"112","messages":"113","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"114","messages":"115","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"116","messages":"117","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"118","messages":"119","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"120","messages":"121","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"122","messages":"123","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"124","messages":"125","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"126","messages":"127","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"128","messages":"129","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"130","messages":"131","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"132","messages":"133","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/home/runner/work/galadmin/galadmin/src/front/src/index.js",[],"/home/runner/work/galadmin/galadmin/src/front/src/App.js",[],"/home/runner/work/galadmin/galadmin/src/front/src/components/Sidebar.js",["134","135","136","137"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js",["138"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js",["139"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js",["140","141","142","143"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js",["144"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js",["145","146"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js",["147","148"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js",["149"],"/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js",["150"],"/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js",["151"],"/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js",["152"],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js",["153"],"/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js",["154"],"/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js",["155"],"/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js",["156"],"/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js",["157"],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js",["158"],"/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js",["159","160"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js",["161","162","163"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js",["164","165"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js",["166","167","168"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js",["169","170"],"/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js",["171"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js",["172","173"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js",["174","175","176"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js",["177","178"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js",["179","180"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js",["181","182","183","184"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js",["185"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js",["186","187"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js",["188","189","190","191"],{"ruleId":"192","severity":1,"message":"193","line":19,"column":1,"nodeType":"194","endLine":105,"endColumn":2},{"ruleId":"195","severity":1,"message":"196","line":26,"column":28,"nodeType":"197","endLine":26,"endColumn":66},{"ruleId":"198","severity":1,"message":"199","line":29,"column":70,"nodeType":"200","messageId":"201","endLine":29,"endColumn":72},{"ruleId":"202","severity":1,"message":"203","line":80,"column":80,"nodeType":"204","messageId":"205","endLine":80,"endColumn":82},{"ruleId":"192","severity":1,"message":"193","line":11,"column":1,"nodeType":"194","endLine":94,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":11,"column":1,"nodeType":"194","endLine":94,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":14,"column":1,"nodeType":"194","endLine":193,"endColumn":2},{"ruleId":"206","severity":1,"message":"207","line":40,"column":8,"nodeType":"208","endLine":40,"endColumn":19,"suggestions":"209"},{"ruleId":"206","severity":1,"message":"210","line":45,"column":8,"nodeType":"208","endLine":45,"endColumn":79,"suggestions":"211"},{"ruleId":"202","severity":1,"message":"203","line":159,"column":66,"nodeType":"204","messageId":"205","endLine":159,"endColumn":68},{"ruleId":"192","severity":1,"message":"193","line":16,"column":1,"nodeType":"194","endLine":87,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":5,"column":1,"nodeType":"194","endLine":33,"endColumn":2},{"ruleId":"195","severity":1,"message":"196","line":23,"column":21,"nodeType":"197","endLine":23,"endColumn":57},{"ruleId":"192","severity":1,"message":"193","line":9,"column":1,"nodeType":"194","endLine":19,"endColumn":2},{"ruleId":"212","severity":1,"message":"213","line":16,"column":13,"nodeType":"197","endLine":16,"endColumn":36},{"ruleId":"192","severity":1,"message":"193","line":6,"column":1,"nodeType":"194","endLine":15,"endColumn":2},{"ruleId":"214","severity":1,"message":"215","line":12,"column":29,"nodeType":"216","messageId":"205","endLine":12,"endColumn":33},{"ruleId":"192","severity":1,"message":"193","line":9,"column":1,"nodeType":"194","endLine":134,"endColumn":3},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":17,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":5,"column":1,"nodeType":"194","endLine":30,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":101,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":6,"column":1,"nodeType":"194","endLine":65,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":10,"column":1,"nodeType":"194","endLine":82,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":6,"column":1,"nodeType":"194","endLine":12,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":28,"endColumn":2},{"ruleId":"217","severity":1,"message":"218","line":17,"column":27,"nodeType":"216","messageId":"219","endLine":17,"endColumn":69},{"ruleId":"220","severity":1,"message":"221","line":20,"column":13,"nodeType":"222","messageId":"223","endLine":20,"endColumn":47},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":37,"endColumn":2},{"ruleId":"224","severity":1,"message":"225","line":7,"column":13,"nodeType":"197","endLine":7,"endColumn":48},{"ruleId":"195","severity":1,"message":"196","line":8,"column":17,"nodeType":"197","endLine":8,"endColumn":138},{"ruleId":"192","severity":1,"message":"193","line":9,"column":1,"nodeType":"194","endLine":106,"endColumn":2},{"ruleId":"206","severity":1,"message":"210","line":16,"column":8,"nodeType":"208","endLine":16,"endColumn":10,"suggestions":"226"},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":39,"endColumn":2},{"ruleId":"224","severity":1,"message":"225","line":25,"column":29,"nodeType":"197","endLine":25,"endColumn":83},{"ruleId":"195","severity":1,"message":"196","line":26,"column":33,"nodeType":"197","endLine":29,"endColumn":35},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":42,"endColumn":2},{"ruleId":"206","severity":1,"message":"227","line":23,"column":8,"nodeType":"208","endLine":23,"endColumn":31,"suggestions":"228"},{"ruleId":"206","severity":1,"message":"229","line":15,"column":8,"nodeType":"208","endLine":15,"endColumn":13,"suggestions":"230"},{"ruleId":"192","severity":1,"message":"193","line":2,"column":1,"nodeType":"194","endLine":14,"endColumn":2},{"ruleId":"214","severity":1,"message":"215","line":8,"column":16,"nodeType":"216","messageId":"205","endLine":8,"endColumn":20},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":29,"endColumn":2},{"ruleId":"206","severity":1,"message":"231","line":19,"column":43,"nodeType":"232","endLine":19,"endColumn":50},{"ruleId":"206","severity":1,"message":"233","line":20,"column":8,"nodeType":"208","endLine":20,"endColumn":29,"suggestions":"234"},{"ruleId":"192","severity":1,"message":"193","line":7,"column":1,"nodeType":"194","endLine":55,"endColumn":2},{"ruleId":"206","severity":1,"message":"235","line":47,"column":8,"nodeType":"208","endLine":47,"endColumn":32,"suggestions":"236"},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":26,"endColumn":2},{"ruleId":"206","severity":1,"message":"237","line":19,"column":8,"nodeType":"208","endLine":19,"endColumn":28,"suggestions":"238"},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":67,"endColumn":2},{"ruleId":"206","severity":1,"message":"239","line":45,"column":8,"nodeType":"208","endLine":45,"endColumn":33,"suggestions":"240"},{"ruleId":"206","severity":1,"message":"241","line":54,"column":39,"nodeType":"232","endLine":54,"endColumn":46},{"ruleId":"206","severity":1,"message":"242","line":55,"column":8,"nodeType":"208","endLine":55,"endColumn":33,"suggestions":"243"},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":76,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":7,"column":1,"nodeType":"194","endLine":38,"endColumn":2},{"ruleId":"206","severity":1,"message":"244","line":19,"column":8,"nodeType":"208","endLine":19,"endColumn":10,"suggestions":"245"},{"ruleId":"192","severity":1,"message":"193","line":7,"column":1,"nodeType":"194","endLine":64,"endColumn":2},{"ruleId":"206","severity":1,"message":"246","line":22,"column":8,"nodeType":"208","endLine":22,"endColumn":15,"suggestions":"247"},{"ruleId":"206","severity":1,"message":"248","line":31,"column":29,"nodeType":"232","endLine":31,"endColumn":36},{"ruleId":"206","severity":1,"message":"249","line":32,"column":8,"nodeType":"208","endLine":32,"endColumn":23,"suggestions":"250"},"import/no-anonymous-default-export","Assign arrow function to a variable before exporting as module default","ExportDefaultDeclaration","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","array-callback-return","Array.prototype.map() expects a value to be returned at the end of arrow function.","ArrowFunctionExpression","expectedAtEnd","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'currentFilters.length' and 'selectedRecordIds.length'. Either include them or remove the dependency array.","ArrayExpression",["251"],"React Hook useEffect has a missing dependency: 'refreshData'. Either include it or remove the dependency array.",["252"],"jsx-a11y/iframe-has-title","<iframe> elements must have a unique title property.","no-eval","eval can be harmful.","CallExpression","no-new-func","The Function constructor is eval.","noFunctionConstructor","no-throw-literal","Expected an error object to be thrown.","ThrowStatement","object","react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener",["253"],"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.",["254"],"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.",["255"],"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.","Identifier","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.",["256"],"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.",["257"],"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.",["258"],"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.",["259"],"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.",["260"],"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.",["261"],"React Hook useEffect has missing dependencies: 'column.__id__' and 'viewIndex'. Either include them or remove the dependency array.",["262"],"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.",["263"],{"desc":"264","fix":"265"},{"desc":"266","fix":"267"},{"desc":"268","fix":"269"},{"desc":"270","fix":"271"},{"desc":"272","fix":"273"},{"desc":"274","fix":"275"},{"desc":"276","fix":"277"},{"desc":"278","fix":"279"},{"desc":"280","fix":"281"},{"desc":"282","fix":"283"},{"desc":"284","fix":"285"},{"desc":"286","fix":"287"},{"desc":"282","fix":"288"},"Update the dependencies array to be: [currentFilters.length, selectedRecordIds.length, viewIndex]",{"range":"289","text":"290"},"Update the dependencies array to be: [viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",{"range":"291","text":"292"},"Update the dependencies array to be: [refreshData]",{"range":"293","text":"294"},"Update the dependencies array to be: [panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",{"range":"295","text":"296"},"Update the dependencies array to be: [handler, ref]",{"range":"297","text":"298"},"Update the dependencies array to be: [column.name, initialData, onChange]",{"range":"299","text":"300"},"Update the dependencies array to be: [column.contentField, column.htmlField, initialData, onChange]",{"range":"301","text":"302"},"Update the dependencies array to be: [column.name, initialData, onChange, withTime]",{"range":"303","text":"304"},"Update the dependencies array to be: [column, onChange]",{"range":"305","text":"306"},"Update the dependencies array to be: []",{"range":"307","text":"308"},"Update the dependencies array to be: [column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",{"range":"309","text":"310"},"Update the dependencies array to be: [column.__id__, query, viewIndex]",{"range":"311","text":"312"},{"range":"313","text":"308"},[1392,1403],"[currentFilters.length, selectedRecordIds.length, viewIndex]",[1458,1529],"[viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",[416,418],"[refreshData]",[776,799],"[panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",[463,468],"[handler, ref]",[695,716],"[column.name, initialData, onChange]",[1636,1660],"[column.contentField, column.htmlField, initialData, onChange]",[700,720],"[column.name, initialData, onChange, withTime]",[2440,2465],"[column, onChange]",[2826,2851],"[]",[606,608],"[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/pages/CreateRecord.js":"4","/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js":"5","/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js":"6","/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js":"7","/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js":"8","/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js":"9","/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js":"10","/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js":"11","/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js":"12","/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js":"13","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js":"14","/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js":"15","/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js":"16","/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js":"17","/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js":"18","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js":"19","/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js":"20","/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js":"21","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js":"22","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js":"23","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js":"24","/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js":"25","/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js":"26","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js":"27","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js":"28","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js":"29","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js":"30","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js":"31","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js":"32","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js":"33"},{"size":218,"mtime":1639159052779,"results":"34","hashOfConfig":"35"},{"size":2185,"mtime":1639159052775,"results":"36","hashOfConfig":"35"},{"size":4811,"mtime":1639159052775,"results":"37","hashOfConfig":"35"},{"size":3691,"mtime":1639159052779,"results":"38","hashOfConfig":"35"},{"size":3502,"mtime":1639159052779,"results":"39","hashOfConfig":"35"},{"size":9109,"mtime":1639159052779,"results":"40","hashOfConfig":"35"},{"size":4237,"mtime":1639159052779,"results":"41","hashOfConfig":"35"},{"size":1135,"mtime":1639159052779,"results":"42","hashOfConfig":"35"},{"size":404,"mtime":1639159052779,"results":"43","hashOfConfig":"35"},{"size":454,"mtime":1639159052779,"results":"44","hashOfConfig":"35"},{"size":1022,"mtime":1639159052779,"results":"45","hashOfConfig":"35"},{"size":4456,"mtime":1639159052775,"results":"46","hashOfConfig":"35"},{"size":522,"mtime":1639159052775,"results":"47","hashOfConfig":"35"},{"size":895,"mtime":1639159052775,"results":"48","hashOfConfig":"35"},{"size":4799,"mtime":1639159052775,"results":"49","hashOfConfig":"35"},{"size":2548,"mtime":1639159052775,"results":"50","hashOfConfig":"35"},{"size":3072,"mtime":1639159052775,"results":"51","hashOfConfig":"35"},{"size":217,"mtime":1639159052775,"results":"52","hashOfConfig":"35"},{"size":1128,"mtime":1639159052775,"results":"53","hashOfConfig":"35"},{"size":1662,"mtime":1639159052775,"results":"54","hashOfConfig":"35"},{"size":1728,"mtime":1639159052779,"results":"55","hashOfConfig":"35"},{"size":4448,"mtime":1639159052779,"results":"56","hashOfConfig":"35"},{"size":1443,"mtime":1639159052779,"results":"57","hashOfConfig":"35"},{"size":1192,"mtime":1639159052779,"results":"58","hashOfConfig":"35"},{"size":685,"mtime":1639159052775,"results":"59","hashOfConfig":"35"},{"size":530,"mtime":1639159052779,"results":"60","hashOfConfig":"35"},{"size":894,"mtime":1639159052775,"results":"61","hashOfConfig":"35"},{"size":1848,"mtime":1639159052779,"results":"62","hashOfConfig":"35"},{"size":869,"mtime":1639159052775,"results":"63","hashOfConfig":"35"},{"size":3092,"mtime":1639159052775,"results":"64","hashOfConfig":"35"},{"size":3226,"mtime":1639159052775,"results":"65","hashOfConfig":"35"},{"size":1220,"mtime":1639159052779,"results":"66","hashOfConfig":"35"},{"size":2088,"mtime":1639159052775,"results":"67","hashOfConfig":"35"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"b0zcht",{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"74","messages":"75","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"76","messages":"77","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"78","messages":"79","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"80","messages":"81","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"82","messages":"83","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"84","messages":"85","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"86","messages":"87","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"88","messages":"89","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"90","messages":"91","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"92","messages":"93","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"94","messages":"95","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"96","messages":"97","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"98","messages":"99","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"100","messages":"101","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"102","messages":"103","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"104","messages":"105","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"106","messages":"107","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"108","messages":"109","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"110","messages":"111","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"112","messages":"113","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"114","messages":"115","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"116","messages":"117","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"118","messages":"119","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"120","messages":"121","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"122","messages":"123","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"124","messages":"125","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"126","messages":"127","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"128","messages":"129","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"130","messages":"131","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"132","messages":"133","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/home/runner/work/galadmin/galadmin/src/front/src/index.js",[],"/home/runner/work/galadmin/galadmin/src/front/src/App.js",[],"/home/runner/work/galadmin/galadmin/src/front/src/components/Sidebar.js",["134","135","136","137"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js",["138"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js",["139"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js",["140","141","142","143"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js",["144"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js",["145","146"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js",["147","148"],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js",["149"],"/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js",["150"],"/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js",["151"],"/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js",["152"],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js",["153"],"/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js",["154"],"/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js",["155"],"/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js",["156"],"/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js",["157"],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js",["158"],"/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js",["159","160"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js",["161","162","163"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js",["164","165"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js",["166","167","168"],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js",["169","170"],"/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js",["171"],"/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js",["172","173"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js",["174","175","176"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js",["177","178"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js",["179","180"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js",["181","182","183","184"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js",["185"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js",["186","187"],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js",["188","189","190","191"],{"ruleId":"192","severity":1,"message":"193","line":19,"column":1,"nodeType":"194","endLine":105,"endColumn":2},{"ruleId":"195","severity":1,"message":"196","line":26,"column":28,"nodeType":"197","endLine":26,"endColumn":66},{"ruleId":"198","severity":1,"message":"199","line":29,"column":70,"nodeType":"200","messageId":"201","endLine":29,"endColumn":72},{"ruleId":"202","severity":1,"message":"203","line":80,"column":80,"nodeType":"204","messageId":"205","endLine":80,"endColumn":82},{"ruleId":"192","severity":1,"message":"193","line":11,"column":1,"nodeType":"194","endLine":94,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":11,"column":1,"nodeType":"194","endLine":94,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":14,"column":1,"nodeType":"194","endLine":193,"endColumn":2},{"ruleId":"206","severity":1,"message":"207","line":40,"column":8,"nodeType":"208","endLine":40,"endColumn":19,"suggestions":"209"},{"ruleId":"206","severity":1,"message":"210","line":45,"column":8,"nodeType":"208","endLine":45,"endColumn":79,"suggestions":"211"},{"ruleId":"202","severity":1,"message":"203","line":159,"column":66,"nodeType":"204","messageId":"205","endLine":159,"endColumn":68},{"ruleId":"192","severity":1,"message":"193","line":16,"column":1,"nodeType":"194","endLine":87,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":5,"column":1,"nodeType":"194","endLine":33,"endColumn":2},{"ruleId":"195","severity":1,"message":"196","line":23,"column":21,"nodeType":"197","endLine":23,"endColumn":57},{"ruleId":"192","severity":1,"message":"193","line":9,"column":1,"nodeType":"194","endLine":19,"endColumn":2},{"ruleId":"212","severity":1,"message":"213","line":16,"column":13,"nodeType":"197","endLine":16,"endColumn":36},{"ruleId":"192","severity":1,"message":"193","line":6,"column":1,"nodeType":"194","endLine":15,"endColumn":2},{"ruleId":"214","severity":1,"message":"215","line":12,"column":29,"nodeType":"216","messageId":"205","endLine":12,"endColumn":33},{"ruleId":"192","severity":1,"message":"193","line":9,"column":1,"nodeType":"194","endLine":134,"endColumn":3},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":17,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":5,"column":1,"nodeType":"194","endLine":30,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":101,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":6,"column":1,"nodeType":"194","endLine":65,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":10,"column":1,"nodeType":"194","endLine":82,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":6,"column":1,"nodeType":"194","endLine":12,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":28,"endColumn":2},{"ruleId":"217","severity":1,"message":"218","line":17,"column":27,"nodeType":"216","messageId":"219","endLine":17,"endColumn":69},{"ruleId":"220","severity":1,"message":"221","line":20,"column":13,"nodeType":"222","messageId":"223","endLine":20,"endColumn":47},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":37,"endColumn":2},{"ruleId":"224","severity":1,"message":"225","line":7,"column":13,"nodeType":"197","endLine":7,"endColumn":48},{"ruleId":"195","severity":1,"message":"196","line":8,"column":17,"nodeType":"197","endLine":8,"endColumn":138},{"ruleId":"192","severity":1,"message":"193","line":10,"column":1,"nodeType":"194","endLine":109,"endColumn":2},{"ruleId":"206","severity":1,"message":"210","line":18,"column":8,"nodeType":"208","endLine":18,"endColumn":10,"suggestions":"226"},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":39,"endColumn":2},{"ruleId":"224","severity":1,"message":"225","line":25,"column":29,"nodeType":"197","endLine":25,"endColumn":83},{"ruleId":"195","severity":1,"message":"196","line":26,"column":33,"nodeType":"197","endLine":29,"endColumn":35},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":42,"endColumn":2},{"ruleId":"206","severity":1,"message":"227","line":23,"column":8,"nodeType":"208","endLine":23,"endColumn":31,"suggestions":"228"},{"ruleId":"206","severity":1,"message":"229","line":15,"column":8,"nodeType":"208","endLine":15,"endColumn":13,"suggestions":"230"},{"ruleId":"192","severity":1,"message":"193","line":2,"column":1,"nodeType":"194","endLine":14,"endColumn":2},{"ruleId":"214","severity":1,"message":"215","line":8,"column":16,"nodeType":"216","messageId":"205","endLine":8,"endColumn":20},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":29,"endColumn":2},{"ruleId":"206","severity":1,"message":"231","line":19,"column":43,"nodeType":"232","endLine":19,"endColumn":50},{"ruleId":"206","severity":1,"message":"233","line":20,"column":8,"nodeType":"208","endLine":20,"endColumn":29,"suggestions":"234"},{"ruleId":"192","severity":1,"message":"193","line":7,"column":1,"nodeType":"194","endLine":55,"endColumn":2},{"ruleId":"206","severity":1,"message":"235","line":47,"column":8,"nodeType":"208","endLine":47,"endColumn":32,"suggestions":"236"},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":26,"endColumn":2},{"ruleId":"206","severity":1,"message":"237","line":19,"column":8,"nodeType":"208","endLine":19,"endColumn":28,"suggestions":"238"},{"ruleId":"192","severity":1,"message":"193","line":3,"column":1,"nodeType":"194","endLine":67,"endColumn":2},{"ruleId":"206","severity":1,"message":"239","line":45,"column":8,"nodeType":"208","endLine":45,"endColumn":33,"suggestions":"240"},{"ruleId":"206","severity":1,"message":"241","line":54,"column":39,"nodeType":"232","endLine":54,"endColumn":46},{"ruleId":"206","severity":1,"message":"242","line":55,"column":8,"nodeType":"208","endLine":55,"endColumn":33,"suggestions":"243"},{"ruleId":"192","severity":1,"message":"193","line":4,"column":1,"nodeType":"194","endLine":76,"endColumn":2},{"ruleId":"192","severity":1,"message":"193","line":7,"column":1,"nodeType":"194","endLine":38,"endColumn":2},{"ruleId":"206","severity":1,"message":"244","line":19,"column":8,"nodeType":"208","endLine":19,"endColumn":10,"suggestions":"245"},{"ruleId":"192","severity":1,"message":"193","line":7,"column":1,"nodeType":"194","endLine":64,"endColumn":2},{"ruleId":"206","severity":1,"message":"246","line":22,"column":8,"nodeType":"208","endLine":22,"endColumn":15,"suggestions":"247"},{"ruleId":"206","severity":1,"message":"248","line":31,"column":29,"nodeType":"232","endLine":31,"endColumn":36},{"ruleId":"206","severity":1,"message":"249","line":32,"column":8,"nodeType":"208","endLine":32,"endColumn":23,"suggestions":"250"},"import/no-anonymous-default-export","Assign arrow function to a variable before exporting as module default","ExportDefaultDeclaration","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","array-callback-return","Array.prototype.map() expects a value to be returned at the end of arrow function.","ArrowFunctionExpression","expectedAtEnd","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'currentFilters.length' and 'selectedRecordIds.length'. Either include them or remove the dependency array.","ArrayExpression",["251"],"React Hook useEffect has a missing dependency: 'refreshData'. Either include it or remove the dependency array.",["252"],"jsx-a11y/iframe-has-title","<iframe> elements must have a unique title property.","no-eval","eval can be harmful.","CallExpression","no-new-func","The Function constructor is eval.","noFunctionConstructor","no-throw-literal","Expected an error object to be thrown.","ThrowStatement","object","react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener",["253"],"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.",["254"],"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.",["255"],"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.","Identifier","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.",["256"],"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.",["257"],"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.",["258"],"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.",["259"],"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.",["260"],"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.",["261"],"React Hook useEffect has missing dependencies: 'column.__id__' and 'viewIndex'. Either include them or remove the dependency array.",["262"],"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.",["263"],{"desc":"264","fix":"265"},{"desc":"266","fix":"267"},{"desc":"268","fix":"269"},{"desc":"270","fix":"271"},{"desc":"272","fix":"273"},{"desc":"274","fix":"275"},{"desc":"276","fix":"277"},{"desc":"278","fix":"279"},{"desc":"280","fix":"281"},{"desc":"282","fix":"283"},{"desc":"284","fix":"285"},{"desc":"286","fix":"287"},{"desc":"282","fix":"288"},"Update the dependencies array to be: [currentFilters.length, selectedRecordIds.length, viewIndex]",{"range":"289","text":"290"},"Update the dependencies array to be: [viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",{"range":"291","text":"292"},"Update the dependencies array to be: [refreshData]",{"range":"293","text":"294"},"Update the dependencies array to be: [panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",{"range":"295","text":"296"},"Update the dependencies array to be: [handler, ref]",{"range":"297","text":"298"},"Update the dependencies array to be: [column.name, initialData, onChange]",{"range":"299","text":"300"},"Update the dependencies array to be: [column.contentField, column.htmlField, initialData, onChange]",{"range":"301","text":"302"},"Update the dependencies array to be: [column.name, initialData, onChange, withTime]",{"range":"303","text":"304"},"Update the dependencies array to be: [column, onChange]",{"range":"305","text":"306"},"Update the dependencies array to be: []",{"range":"307","text":"308"},"Update the dependencies array to be: [column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",{"range":"309","text":"310"},"Update the dependencies array to be: [column.__id__, query, viewIndex]",{"range":"311","text":"312"},{"range":"313","text":"308"},[1392,1403],"[currentFilters.length, selectedRecordIds.length, viewIndex]",[1458,1529],"[viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",[535,537],"[refreshData]",[776,799],"[panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",[463,468],"[handler, ref]",[695,716],"[column.name, initialData, onChange]",[1636,1660],"[column.contentField, column.htmlField, initialData, onChange]",[700,720],"[column.name, initialData, onChange, withTime]",[2440,2465],"[column, onChange]",[2826,2851],"[]",[606,608],"[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 _slicedToArray from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray\";import{useState,useEffect}from\"react\";import axios from\"axios\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";export default(function(_ref){var panel=_ref.panel;var _useState=useState(null),_useState2=_slicedToArray(_useState,2),results=_useState2[0],setResults=_useState2[1];useEffect(function(){axios.get(\"/customQuery\",{params:{query:panel.query,primaryValue:2630}}).then(function(response){setResults(response.data);});},[panel.query]);return/*#__PURE__*/_jsx(\"div\",{children:(results===null||results===void 0?void 0:results.length)>0?/*#__PURE__*/_jsx(\"div\",{class:\"gallery\",children:results.map(function(result){return/*#__PURE__*/_jsxs(\"div\",{class:\"galleryPicture\",children:[panel.canDelete?/*#__PURE__*/_jsx(\"div\",{class:\"deleteIcon\",children:/*#__PURE__*/_jsx(\"i\",{class:\"fa fa-minus\"})}):null,/*#__PURE__*/_jsx(\"a\",{href:panel.baseUrl+result.Path,target:\"_blank\",children:/*#__PURE__*/_jsx(\"img\",{src:\"https://res.cloudinary.com/forest2/image/fetch/w_150,h_150,c_fill/\"+panel.baseUrl+result[panel.pathField||\"Path\"],onerror:\"this.style.height = 0\"})})]},result.Path);})}):(results===null||results===void 0?void 0:results.length)===0?/*#__PURE__*/_jsx(\"div\",{class:\"noData panelTable \".concat(panel.folded?\"folded\":\"\"),children:\"Aucune donn\\xE9e\"}):null});});","map":{"version":3,"sources":["/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js"],"names":["useState","useEffect","axios","panel","results","setResults","get","params","query","primaryValue","then","response","data","length","map","result","canDelete","baseUrl","Path","pathField","folded"],"mappings":"oKAAA,OAASA,QAAT,CAAmBC,SAAnB,KAAoC,OAApC,CACA,MAAOC,CAAAA,KAAP,KAAkB,OAAlB,C,wFAEA,eAAe,cAAe,IAAZC,CAAAA,KAAY,MAAZA,KAAY,CAC1B,cAA8BH,QAAQ,CAAC,IAAD,CAAtC,wCAAOI,OAAP,eAAgBC,UAAhB,eAEAJ,SAAS,CAAC,UAAM,CACZC,KAAK,CAACI,GAAN,CAAU,cAAV,CAA0B,CACtBC,MAAM,CAAE,CACJC,KAAK,CAAEL,KAAK,CAACK,KADT,CAEJC,YAAY,CAAE,IAFV,CADc,CAA1B,EAKGC,IALH,CAKQ,SAACC,QAAD,CAAc,CAClBN,UAAU,CAACM,QAAQ,CAACC,IAAV,CAAV,CACH,CAPD,EAQH,CATQ,CASN,CAACT,KAAK,CAACK,KAAP,CATM,CAAT,CAWA,mBACI,qBACK,CAAAJ,OAAO,OAAP,EAAAA,OAAO,SAAP,QAAAA,OAAO,CAAES,MAAT,EAAkB,CAAlB,cACG,YAAK,KAAK,CAAC,SAAX,UACKT,OAAO,CAACU,GAAR,CAAY,SAACC,MAAD,qBACT,aAAK,KAAK,CAAC,gBAAX,WACKZ,KAAK,CAACa,SAAN,cAAkB,YAAK,KAAK,CAAC,YAAX,uBAAwB,UAAG,KAAK,CAAC,aAAT,EAAxB,EAAlB,CAA8E,IADnF,cAEI,UAAG,IAAI,CAAEb,KAAK,CAACc,OAAN,CAAgBF,MAAM,CAACG,IAAhC,CAAsC,MAAM,CAAC,QAA7C,uBACI,YACI,GAAG,CAAE,qEAAuEf,KAAK,CAACc,OAA7E,CAAuFF,MAAM,CAACZ,KAAK,CAACgB,SAAN,EAAmB,MAApB,CADtG,CAEI,OAAO,CAAC,uBAFZ,EADJ,EAFJ,GAAiCJ,MAAM,CAACG,IAAxC,CADS,EAAZ,CADL,EADH,CAcG,CAAAd,OAAO,OAAP,EAAAA,OAAO,SAAP,QAAAA,OAAO,CAAES,MAAT,IAAoB,CAApB,cACA,YAAK,KAAK,6BAAuBV,KAAK,CAACiB,MAAN,CAAe,QAAf,CAA0B,EAAjD,CAAV,8BADA,CAEA,IAjBR,EADJ,CAqBH,CAnCD","sourcesContent":["import { useState, useEffect } from \"react\"\nimport axios from \"axios\";\n\nexport default ({ panel }) => {\n const [results, setResults] = useState(null);\n\n useEffect(() => {\n axios.get(\"/customQuery\", {\n params: {\n query: panel.query,\n primaryValue: 2630\n }\n }).then((response) => {\n setResults(response.data)\n })\n }, [panel.query])\n\n return (\n <div>\n {results?.length > 0 ? (\n <div class=\"gallery\">\n {results.map((result) => (\n <div class='galleryPicture' key={result.Path}>\n {panel.canDelete ? <div class='deleteIcon'><i class='fa fa-minus'></i></div> : null}\n <a href={panel.baseUrl + result.Path} target='_blank'>\n <img\n src={\"https://res.cloudinary.com/forest2/image/fetch/w_150,h_150,c_fill/\" + panel.baseUrl + result[panel.pathField || \"Path\"]}\n onerror='this.style.height = 0'\n />\n </a>\n </div>\n ))}\n </div>\n ) : results?.length === 0 ? (\n <div class={`noData panelTable ${panel.folded ? \"folded\" : \"\"}`}>Aucune donnée</div>\n ) : null}\n </div>\n )\n}\n"]},"metadata":{},"sourceType":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"ast":null,"code":"import _regeneratorRuntime from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";import _asyncToGenerator from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";import _slicedToArray from\"/home/runner/work/galadmin/galadmin/src/front/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray\";import{useState,useEffect,useContext}from\"react\";import axios from\"axios\";import evalExpression from\"../../utils/evalExpression\";import{useHistory,useParams}from\"react-router-dom\";import{ConfigContext}from\"../../contexts/ConfigContext\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";export default(function(_ref){var panel=_ref.panel,record=_ref.record,view=_ref.view;var _useState=useState(null),_useState2=_slicedToArray(_useState,2),results=_useState2[0],setResults=_useState2[1];var history=useHistory();var _useParams=useParams(),viewIndex=_useParams.viewIndex;var config=useContext(ConfigContext);useEffect(function(){refreshData();},[]);var refreshData=function refreshData(){axios.get(\"/customQuery\",{params:{query:panel.query||evalExpression(panel.formattedQuery,record),primaryValue:record[view.primaryId]}}).then(function(response){setResults(response.data);});};var deleteRow=/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(row){var willDelete;return _regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.next=2;return window.swal({title:\"Êtes-vous sûr ?\",text:\"Une fois la suppression confirmée, il ne sera pas possible de revenir en arrière.\",buttons:[\"Annuler\",\"Oui\"],dangerMode:true});case 2:willDelete=_context.sent;if(!willDelete){_context.next=13;break;}_context.prev=4;_context.next=7;return axios.post(\"/deleteRecordFromPanel\",{viewIndex:viewIndex,panelId:panel.__id__,primaryValue:row[panel.primaryId]});case 7:refreshData();_context.next=13;break;case 10:_context.prev=10;_context.t0=_context[\"catch\"](4);window.swal({title:\"Erreur\",text:\"Suppression impossible\",dangerMode:true});case 13:case\"end\":return _context.stop();}}},_callee,null,[[4,10]]);}));return function deleteRow(_x){return _ref2.apply(this,arguments);};}();return/*#__PURE__*/_jsx(\"div\",{children:(results===null||results===void 0?void 0:results.length)>0?/*#__PURE__*/_jsxs(\"table\",{class:\"table panelTable \".concat(panel.folded?\"folded\":\"\"),children:[/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsxs(\"tr\",{children:[Object.keys(results[0]).filter(function(key){return key!==panel.primaryId;}).map(function(key){return/*#__PURE__*/_jsx(\"th\",{children:key},key);}),panel.canDelete?/*#__PURE__*/_jsx(\"th\",{}):null]})}),/*#__PURE__*/_jsx(\"tbody\",{children:results.map(function(result){return/*#__PURE__*/_jsxs(\"tr\",{class:\"record \".concat(panel.canShow?\"\":\"nonClickableRow\"),onClick:function onClick(){var viewIndex=config.views.findIndex(function(x){return x.type===\"table\"&&x.tableName===panel.tableName;});if(panel.canShow){history.push(\"/record/\".concat(viewIndex,\"/\").concat(result[panel.primaryId]));}},children:[Object.keys(result).filter(function(key){return key!==panel.primaryId;}).map(function(key){return/*#__PURE__*/_jsx(\"td\",{children:/*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:panel.formattedValues&&key in panel.formattedValues?evalExpression(panel.formattedValues[key],result):result[key]}})},key);}),panel.canDelete?/*#__PURE__*/_jsx(\"td\",{class:\"deleteIconCell\",children:/*#__PURE__*/_jsx(\"div\",{class:\"deleteIcon\",onClick:function onClick(){return deleteRow(result);},children:/*#__PURE__*/_jsx(\"i\",{class:\"fa fa-minus\"})})}):null]});})})]}):(results===null||results===void 0?void 0:results.length)===0?/*#__PURE__*/_jsx(\"div\",{class:\"noData panelTable \".concat(panel.folded?\"folded\":\"\"),children:\"Aucune donn\\xE9e\"}):null});});","map":{"version":3,"sources":["/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js"],"names":["useState","useEffect","useContext","axios","evalExpression","useHistory","useParams","ConfigContext","panel","record","view","results","setResults","history","viewIndex","config","refreshData","get","params","query","formattedQuery","primaryValue","primaryId","then","response","data","deleteRow","row","window","swal","title","text","buttons","dangerMode","willDelete","post","panelId","__id__","length","folded","Object","keys","filter","key","map","canDelete","result","canShow","views","findIndex","x","type","tableName","push","__html","formattedValues"],"mappings":"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","sourcesContent":["import { useState, useEffect, useContext } from \"react\"\nimport axios from \"axios\";\nimport evalExpression from \"../../utils/evalExpression\";\nimport {\n useHistory,\n useParams\n} from \"react-router-dom\";\nimport { ConfigContext } from \"../../contexts/ConfigContext\";\n\nexport default ({ panel, record, view }) => {\n const [results, setResults] = useState(null);\n const history = useHistory();\n const { viewIndex } = useParams();\n const config = useContext(ConfigContext)\n\n useEffect(() => {\n refreshData()\n }, [])\n\n const refreshData = () => {\n axios.get(\"/customQuery\", {\n params: {\n query: panel.query || evalExpression(panel.formattedQuery, record),\n primaryValue: record[view.primaryId]\n }\n }).then((response) => {\n setResults(response.data)\n })\n }\n\n const deleteRow = async (row) => {\n const willDelete = await window.swal({\n title: \"Êtes-vous sûr ?\",\n text: \"Une fois la suppression confirmée, il ne sera pas possible de revenir en arrière.\",\n buttons: [\"Annuler\", \"Oui\"],\n dangerMode: true\n })\n if (willDelete) {\n try {\n await axios.post(\"/deleteRecordFromPanel\", {\n viewIndex,\n panelId: panel.__id__,\n primaryValue: row[panel.primaryId]\n })\n refreshData();\n } catch (e) {\n window.swal({\n title: \"Erreur\",\n text: \"Suppression impossible\",\n dangerMode: true\n })\n }\n }\n }\n\n return (\n <div>\n {results?.length > 0 ? (\n <table class={`table panelTable ${panel.folded ? \"folded\" : \"\"}`}>\n <thead>\n <tr>\n {Object.keys(results[0]).filter(key => key !== panel.primaryId).map((key) =>\n <th key={key}>{key}</th>\n )}\n {panel.canDelete ? <th></th> : null}\n </tr>\n </thead>\n <tbody>\n {results.map((result) => (\n <tr\n class={`record ${panel.canShow ? \"\" : \"nonClickableRow\"}`}\n onClick={() => {\n const viewIndex = config.views.findIndex(x => x.type === \"table\" && x.tableName === panel.tableName)\n if (panel.canShow) {\n history.push(`/record/${viewIndex}/${result[panel.primaryId]}`)\n }\n }}\n >\n {Object.keys(result).filter(key => key !== panel.primaryId).map((key) =>\n <td key={key}>\n <div \n dangerouslySetInnerHTML={{ __html:\n (panel.formattedValues && (key in panel.formattedValues)) ?\n evalExpression(panel.formattedValues[key], result) :\n result[key]\n }}\n />\n </td>\n )}\n {panel.canDelete ? (\n <td class='deleteIconCell'>\n <div\n class='deleteIcon'\n onClick={() => deleteRow(result)}\n >\n <i class='fa fa-minus'></i>\n </div>\n </td>\n ) : null}\n </tr>\n ))}\n </tbody>\n </table>\n ) : results?.length === 0 ? (\n <div class={`noData panelTable ${panel.folded ? \"folded\" : \"\"}`}>Aucune donnée</div>\n ) : null}\n </div>\n )\n}\n"]},"metadata":{},"sourceType":"module"}
|