@galadrim/galadmin 0.1.53 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +4 -3
- package/dist/api.js.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/config.d.ts +8 -1
- package/dist/utils/dbManager.d.ts +1 -0
- package/dist/utils/dbManager.js +61 -12
- package/dist/utils/dbManager.js.map +1 -1
- package/package.json +3 -1
- package/src/api.ts +3 -3
- package/src/front/build/asset-manifest.json +3 -3
- package/src/front/build/index.html +1 -1
- package/src/front/build/static/js/{main.a6e3920f.js → main.503d80f3.js} +3 -3
- package/src/front/build/static/js/{main.a6e3920f.js.map → main.503d80f3.js.map} +1 -1
- package/src/front/node_modules/.cache/.eslintcache +1 -1
- package/src/front/node_modules/.cache/babel-loader/abe7b74c039f3f697b0f6e275683fed58dde158a5d91b4c294f12b3cd9fd8e8c.json +1 -0
- package/src/front/src/components/Sidebar.js +3 -4
- package/src/index.ts +13 -1
- package/src/types/config.ts +10 -2
- package/src/utils/dbManager.ts +64 -12
- package/src/front/node_modules/.cache/babel-loader/8a43a311e9031dfe234b8d67ae726a8fcec55a23838c5996ddb72a93ca071631.json +0 -1
- /package/src/front/build/static/js/{main.a6e3920f.js.LICENSE.txt → main.503d80f3.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/AddFilterButton.js":"16","/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js":"17","/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js":"18","/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js":"19","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js":"20","/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js":"21","/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js":"22","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js":"23","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js":"24","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js":"25","/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js":"26","/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js":"27","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js":"28","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js":"29","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/BetterRichTextInput.js":"30","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js":"31","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js":"32","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js":"33","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js":"34","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js":"35","/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js":"36"},{"size":219,"mtime":1696790823566,"results":"37","hashOfConfig":"38"},{"size":2340,"mtime":1696790823562,"results":"39","hashOfConfig":"38"},{"size":4811,"mtime":1696790823562,"results":"40","hashOfConfig":"38"},{"size":524,"mtime":1696790823562,"results":"41","hashOfConfig":"38"},{"size":4255,"mtime":1696790823566,"results":"42","hashOfConfig":"38"},{"size":3733,"mtime":1696790823566,"results":"43","hashOfConfig":"38"},{"size":10243,"mtime":1696790823566,"results":"44","hashOfConfig":"38"},{"size":4225,"mtime":1696790823566,"results":"45","hashOfConfig":"38"},{"size":1135,"mtime":1696790823566,"results":"46","hashOfConfig":"38"},{"size":404,"mtime":1696790823566,"results":"47","hashOfConfig":"38"},{"size":454,"mtime":1696790823566,"results":"48","hashOfConfig":"38"},{"size":1022,"mtime":1696790823566,"results":"49","hashOfConfig":"38"},{"size":5021,"mtime":1696790823562,"results":"50","hashOfConfig":"38"},{"size":522,"mtime":1696790823562,"results":"51","hashOfConfig":"38"},{"size":895,"mtime":1696790823562,"results":"52","hashOfConfig":"38"},{"size":9821,"mtime":1696790823562,"results":"53","hashOfConfig":"38"},{"size":2656,"mtime":1696790823562,"results":"54","hashOfConfig":"38"},{"size":3169,"mtime":1696790823562,"results":"55","hashOfConfig":"38"},{"size":217,"mtime":1696790823562,"results":"56","hashOfConfig":"38"},{"size":1128,"mtime":1696790823562,"results":"57","hashOfConfig":"38"},{"size":778,"mtime":1696790823566,"results":"58","hashOfConfig":"38"},{"size":2698,"mtime":1696790823566,"results":"59","hashOfConfig":"38"},{"size":4606,"mtime":1696790823566,"results":"60","hashOfConfig":"38"},{"size":2656,"mtime":1696790823566,"results":"61","hashOfConfig":"38"},{"size":1192,"mtime":1696790823566,"results":"62","hashOfConfig":"38"},{"size":1662,"mtime":1696790823562,"results":"63","hashOfConfig":"38"},{"size":826,"mtime":1696790823562,"results":"64","hashOfConfig":"38"},{"size":894,"mtime":1696790823562,"results":"65","hashOfConfig":"38"},{"size":2091,"mtime":1696790823562,"results":"66","hashOfConfig":"38"},{"size":1458,"mtime":1696790823562,"results":"67","hashOfConfig":"38"},{"size":886,"mtime":1696790823562,"results":"68","hashOfConfig":"38"},{"size":3092,"mtime":1696790823562,"results":"69","hashOfConfig":"38"},{"size":3297,"mtime":1696790823562,"results":"70","hashOfConfig":"38"},{"size":1461,"mtime":1696790823562,"results":"71","hashOfConfig":"38"},{"size":2088,"mtime":1696790823562,"results":"72","hashOfConfig":"38"},{"size":530,"mtime":1696790823566,"results":"73","hashOfConfig":"38"},{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1jd2669",{"filePath":"77","messages":"78","suppressedMessages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":1,"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":4,"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":2,"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":1,"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":2,"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":1,"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":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":3,"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":2,"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",["182","183","184","185"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/RedirectToFirstView.js",["186"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js",["187"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js",["188"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js",["189","190","191","192"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js",["193","194"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js",["195","196"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js",["197","198"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js",["199"],[],"/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js",["200"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js",["201"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js",["202"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js",["203"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js",["204","205"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js",["206"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js",["207"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js",["208"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js",["209"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js",["210","211"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js",["212","213","214","215"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js",["216","217"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js",["218","219","220","221","222"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js",["223","224"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js",["225","226"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js",["227"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js",["228","229","230"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js",["231","232"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/BetterRichTextInput.js",["233"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js",["234","235"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js",["236","237","238","239"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js",["240"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js",["241","242","243"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js",["244","245","246","247"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js",["248","249"],[],{"ruleId":"250","severity":1,"message":"251","line":19,"column":1,"nodeType":"252","endLine":105,"endColumn":2},{"ruleId":"253","severity":1,"message":"254","line":26,"column":28,"nodeType":"255","endLine":26,"endColumn":66},{"ruleId":"256","severity":1,"message":"257","line":29,"column":70,"nodeType":"258","messageId":"259","endLine":29,"endColumn":72},{"ruleId":"260","severity":1,"message":"261","line":80,"column":80,"nodeType":"262","messageId":"263","endLine":80,"endColumn":82},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":24,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":12,"column":1,"nodeType":"252","endLine":102,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":12,"column":1,"nodeType":"252","endLine":97,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":21,"column":1,"nodeType":"252","endLine":220,"endColumn":2},{"ruleId":"264","severity":1,"message":"265","line":50,"column":8,"nodeType":"266","endLine":50,"endColumn":19,"suggestions":"267"},{"ruleId":"264","severity":1,"message":"268","line":61,"column":8,"nodeType":"266","endLine":61,"endColumn":79,"suggestions":"269"},{"ruleId":"260","severity":1,"message":"261","line":181,"column":66,"nodeType":"262","messageId":"263","endLine":181,"endColumn":68},{"ruleId":"250","severity":1,"message":"251","line":16,"column":1,"nodeType":"252","endLine":89,"endColumn":2},{"ruleId":"264","severity":1,"message":"268","line":26,"column":8,"nodeType":"266","endLine":26,"endColumn":29,"suggestions":"270"},{"ruleId":"250","severity":1,"message":"251","line":5,"column":1,"nodeType":"252","endLine":33,"endColumn":2},{"ruleId":"253","severity":1,"message":"254","line":23,"column":21,"nodeType":"255","endLine":23,"endColumn":57},{"ruleId":"250","severity":1,"message":"251","line":9,"column":1,"nodeType":"252","endLine":19,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":16,"column":13,"nodeType":"255","endLine":16,"endColumn":36},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":15,"endColumn":2},{"ruleId":"273","severity":1,"message":"274","line":11,"column":29,"nodeType":"275","messageId":"263","endLine":11,"endColumn":33},{"ruleId":"250","severity":1,"message":"251","line":10,"column":1,"nodeType":"252","endLine":149,"endColumn":3},{"ruleId":"250","severity":1,"message":"251","line":3,"column":1,"nodeType":"252","endLine":17,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":5,"column":1,"nodeType":"252","endLine":30,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":196,"endColumn":2},{"ruleId":"264","severity":1,"message":"276","line":20,"column":8,"nodeType":"266","endLine":20,"endColumn":15,"suggestions":"277"},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":68,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":10,"column":1,"nodeType":"252","endLine":85,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":12,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":4,"column":1,"nodeType":"252","endLine":28,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":5,"column":1,"nodeType":"252","endLine":22,"endColumn":2},{"ruleId":"260","severity":1,"message":"261","line":9,"column":44,"nodeType":"262","messageId":"263","endLine":9,"endColumn":46},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":51,"endColumn":2},{"ruleId":"278","severity":1,"message":"279","line":19,"column":13,"nodeType":"255","messageId":"280","endLine":19,"endColumn":48,"fix":"281"},{"ruleId":"253","severity":1,"message":"254","line":20,"column":17,"nodeType":"255","endLine":20,"endColumn":127},{"ruleId":"260","severity":1,"message":"261","line":46,"column":93,"nodeType":"262","messageId":"263","endLine":46,"endColumn":95},{"ruleId":"250","severity":1,"message":"251","line":10,"column":1,"nodeType":"252","endLine":112,"endColumn":2},{"ruleId":"264","severity":1,"message":"268","line":18,"column":8,"nodeType":"266","endLine":18,"endColumn":16,"suggestions":"282"},{"ruleId":"250","severity":1,"message":"251","line":8,"column":1,"nodeType":"252","endLine":76,"endColumn":2},{"ruleId":"283","severity":1,"message":"284","line":10,"column":11,"nodeType":"285","messageId":"286","endLine":10,"endColumn":18},{"ruleId":"264","severity":1,"message":"268","line":15,"column":8,"nodeType":"266","endLine":15,"endColumn":29,"suggestions":"287"},{"ruleId":"278","severity":1,"message":"279","line":61,"column":29,"nodeType":"255","messageId":"280","endLine":61,"endColumn":89,"fix":"288"},{"ruleId":"253","severity":1,"message":"254","line":62,"column":33,"nodeType":"255","endLine":66,"endColumn":35},{"ruleId":"250","severity":1,"message":"251","line":4,"column":1,"nodeType":"252","endLine":42,"endColumn":2},{"ruleId":"264","severity":1,"message":"289","line":23,"column":8,"nodeType":"266","endLine":23,"endColumn":31,"suggestions":"290"},{"ruleId":"291","severity":1,"message":"292","line":17,"column":27,"nodeType":"275","messageId":"293","endLine":17,"endColumn":69},{"ruleId":"294","severity":1,"message":"295","line":20,"column":13,"nodeType":"296","messageId":"297","endLine":20,"endColumn":47},{"ruleId":"264","severity":1,"message":"298","line":19,"column":8,"nodeType":"266","endLine":19,"endColumn":13,"suggestions":"299"},{"ruleId":"250","severity":1,"message":"251","line":3,"column":1,"nodeType":"252","endLine":29,"endColumn":2},{"ruleId":"264","severity":1,"message":"300","line":19,"column":43,"nodeType":"285","endLine":19,"endColumn":50},{"ruleId":"264","severity":1,"message":"301","line":20,"column":8,"nodeType":"266","endLine":20,"endColumn":29,"suggestions":"302"},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":58,"endColumn":3},{"ruleId":"264","severity":1,"message":"303","line":51,"column":8,"nodeType":"266","endLine":51,"endColumn":32,"suggestions":"304"},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":41,"endColumn":3},{"ruleId":"250","severity":1,"message":"251","line":3,"column":1,"nodeType":"252","endLine":26,"endColumn":2},{"ruleId":"264","severity":1,"message":"305","line":19,"column":8,"nodeType":"266","endLine":19,"endColumn":28,"suggestions":"306"},{"ruleId":"250","severity":1,"message":"251","line":3,"column":1,"nodeType":"252","endLine":67,"endColumn":2},{"ruleId":"264","severity":1,"message":"307","line":45,"column":8,"nodeType":"266","endLine":45,"endColumn":33,"suggestions":"308"},{"ruleId":"264","severity":1,"message":"309","line":54,"column":39,"nodeType":"285","endLine":54,"endColumn":46},{"ruleId":"264","severity":1,"message":"310","line":55,"column":8,"nodeType":"266","endLine":55,"endColumn":33,"suggestions":"311"},{"ruleId":"250","severity":1,"message":"251","line":8,"column":1,"nodeType":"252","endLine":85,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":46,"endColumn":2},{"ruleId":"264","severity":1,"message":"312","line":23,"column":8,"nodeType":"266","endLine":23,"endColumn":10,"suggestions":"313"},{"ruleId":"260","severity":1,"message":"261","line":32,"column":50,"nodeType":"262","messageId":"263","endLine":32,"endColumn":52},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":64,"endColumn":2},{"ruleId":"264","severity":1,"message":"314","line":22,"column":8,"nodeType":"266","endLine":22,"endColumn":15,"suggestions":"315"},{"ruleId":"264","severity":1,"message":"316","line":31,"column":29,"nodeType":"285","endLine":31,"endColumn":36},{"ruleId":"264","severity":1,"message":"317","line":32,"column":8,"nodeType":"266","endLine":32,"endColumn":23,"suggestions":"318"},{"ruleId":"250","severity":1,"message":"251","line":2,"column":1,"nodeType":"252","endLine":14,"endColumn":2},{"ruleId":"273","severity":1,"message":"274","line":8,"column":16,"nodeType":"275","messageId":"263","endLine":8,"endColumn":20},"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",["319"],"React Hook useEffect has a missing dependency: 'refreshData'. Either include it or remove the dependency array.",["320"],["321"],"jsx-a11y/iframe-has-title","<iframe> elements must have a unique title property.","no-eval","eval can be harmful.","CallExpression","React Hook useEffect has missing dependencies: 'column?.dataType' and 'column.options'. Either include them or remove the dependency array.",["322"],"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":"323","text":"324"},["325"],"no-unused-vars","'history' is assigned a value but never used.","Identifier","unusedVar",["326"],{"range":"327","text":"324"},"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.",["328"],"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.",["329"],"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.",["330"],"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.",["331"],"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.",["332"],"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.",["333"],"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.",["334"],"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.",["335"],"React Hook useEffect has missing dependencies: 'column.__id__' and 'viewIndex'. Either include them or remove the dependency array.",["336"],"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.",["337"],{"desc":"338","fix":"339"},{"desc":"340","fix":"341"},{"desc":"342","fix":"343"},{"desc":"344","fix":"345"},[1055,1055]," rel=\"noreferrer\"",{"desc":"346","fix":"347"},{"desc":"348","fix":"349"},[2020,2020],{"desc":"350","fix":"351"},{"desc":"352","fix":"353"},{"desc":"354","fix":"355"},{"desc":"356","fix":"357"},{"desc":"358","fix":"359"},{"desc":"360","fix":"361"},{"desc":"362","fix":"363"},{"desc":"364","fix":"365"},{"desc":"366","fix":"367"},{"desc":"362","fix":"368"},"Update the dependencies array to be: [currentFilters.length, selectedRecordIds.length, viewIndex]",{"range":"369","text":"370"},"Update the dependencies array to be: [viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",{"range":"371","text":"372"},"Update the dependencies array to be: [viewIndex, recordId, refreshData]",{"range":"373","text":"374"},"Update the dependencies array to be: [column?.dataType, column.options, field]",{"range":"375","text":"376"},"Update the dependencies array to be: [record, refreshData]",{"range":"377","text":"378"},"Update the dependencies array to be: [panel.query, record, refreshData]",{"range":"379","text":"380"},"Update the dependencies array to be: [panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",{"range":"381","text":"382"},"Update the dependencies array to be: [handler, ref]",{"range":"383","text":"384"},"Update the dependencies array to be: [column.name, initialData, onChange]",{"range":"385","text":"386"},"Update the dependencies array to be: [column.contentField, column.htmlField, initialData, onChange]",{"range":"387","text":"388"},"Update the dependencies array to be: [column.name, initialData, onChange, withTime]",{"range":"389","text":"390"},"Update the dependencies array to be: [column, onChange]",{"range":"391","text":"392"},"Update the dependencies array to be: []",{"range":"393","text":"394"},"Update the dependencies array to be: [column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",{"range":"395","text":"396"},"Update the dependencies array to be: [column.__id__, query, viewIndex]",{"range":"397","text":"398"},{"range":"399","text":"394"},[1656,1667],"[currentFilters.length, selectedRecordIds.length, viewIndex]",[1896,1967],"[viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",[941,962],"[viewIndex, recordId, refreshData]",[808,815],"[column?.dataType, column.options, field]",[542,550],"[record, refreshData]",[359,380],"[panel.query, record, refreshData]",[776,799],"[panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",[604,609],"[handler, ref]",[695,716],"[column.name, initialData, onChange]",[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/contexts/ConfigContext.js":"11","/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js":"12","/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js":"13","/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js":"14","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js":"15","/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js":"16","/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js":"17","/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js":"18","/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js":"19","/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js":"20","/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js":"21","/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js":"22","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js":"23","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js":"24","/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js":"25","/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js":"26","/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js":"27","/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js":"28","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js":"29","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js":"30","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/BetterRichTextInput.js":"31","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js":"32","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js":"33","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js":"34","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js":"35","/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js":"36"},{"size":219,"mtime":1698761845829,"results":"37","hashOfConfig":"38"},{"size":2340,"mtime":1698761845829,"results":"39","hashOfConfig":"38"},{"size":4725,"mtime":1698761845829,"results":"40","hashOfConfig":"38"},{"size":524,"mtime":1698761845829,"results":"41","hashOfConfig":"38"},{"size":4255,"mtime":1698761845829,"results":"42","hashOfConfig":"38"},{"size":3733,"mtime":1698761845829,"results":"43","hashOfConfig":"38"},{"size":10243,"mtime":1698761845829,"results":"44","hashOfConfig":"38"},{"size":4225,"mtime":1698761845829,"results":"45","hashOfConfig":"38"},{"size":1135,"mtime":1698761845829,"results":"46","hashOfConfig":"38"},{"size":404,"mtime":1698761845829,"results":"47","hashOfConfig":"38"},{"size":1022,"mtime":1698761845829,"results":"48","hashOfConfig":"38"},{"size":454,"mtime":1698761845829,"results":"49","hashOfConfig":"38"},{"size":5021,"mtime":1698761845829,"results":"50","hashOfConfig":"38"},{"size":522,"mtime":1698761845829,"results":"51","hashOfConfig":"38"},{"size":895,"mtime":1698761845829,"results":"52","hashOfConfig":"38"},{"size":9821,"mtime":1698761845829,"results":"53","hashOfConfig":"38"},{"size":2656,"mtime":1698761845829,"results":"54","hashOfConfig":"38"},{"size":3169,"mtime":1698761845829,"results":"55","hashOfConfig":"38"},{"size":217,"mtime":1698761845829,"results":"56","hashOfConfig":"38"},{"size":1128,"mtime":1698761845829,"results":"57","hashOfConfig":"38"},{"size":778,"mtime":1698761845833,"results":"58","hashOfConfig":"38"},{"size":2698,"mtime":1698761845833,"results":"59","hashOfConfig":"38"},{"size":4606,"mtime":1698761845829,"results":"60","hashOfConfig":"38"},{"size":2656,"mtime":1698761845829,"results":"61","hashOfConfig":"38"},{"size":1192,"mtime":1698761845829,"results":"62","hashOfConfig":"38"},{"size":1662,"mtime":1698761845829,"results":"63","hashOfConfig":"38"},{"size":826,"mtime":1698761845829,"results":"64","hashOfConfig":"38"},{"size":530,"mtime":1698761845833,"results":"65","hashOfConfig":"38"},{"size":894,"mtime":1698761845829,"results":"66","hashOfConfig":"38"},{"size":2091,"mtime":1698761845829,"results":"67","hashOfConfig":"38"},{"size":1458,"mtime":1698761845829,"results":"68","hashOfConfig":"38"},{"size":886,"mtime":1698761845829,"results":"69","hashOfConfig":"38"},{"size":3092,"mtime":1698761845829,"results":"70","hashOfConfig":"38"},{"size":3297,"mtime":1698761845829,"results":"71","hashOfConfig":"38"},{"size":1461,"mtime":1698761845829,"results":"72","hashOfConfig":"38"},{"size":2088,"mtime":1698761845829,"results":"73","hashOfConfig":"38"},{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"8zhr7a",{"filePath":"77","messages":"78","suppressedMessages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":1,"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":4,"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":2,"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":1,"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":2,"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":1,"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":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"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":3,"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":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":4,"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":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":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",["182","183","184","185"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/RedirectToFirstView.js",["186"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CreateRecord.js",["187"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/EditRecord.js",["188"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Records.js",["189","190","191","192"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Record.js",["193","194"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Login.js",["195","196"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/Iframe.js",["197","198"],[],"/home/runner/work/galadmin/galadmin/src/front/src/contexts/ConfigContext.js",["199"],[],"/home/runner/work/galadmin/galadmin/src/front/src/pages/CustomView.js",["200"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/Input.js",["201"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/LabelTooltip.js",["202"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadButton.js",["203"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/AddFilterButton.js",["204","205"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/BulkActionsButton.js",["206"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/ActionsButton.js",["207"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/BackButton.js",["208"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/DownloadTablePanelButton.js",["209"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/checkRequiredColumns.js",["210","211"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/getFormattedValue.js",["212","213","214","215"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/TablePanel.js",["216","217"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/GalleryPanel.js",["218","219","220","221","222"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/panels/MapPanel.js",["223","224"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/CustomComponent.js",["225","226"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/OutsideClickHandler.js",["227"],[],"/home/runner/work/galadmin/galadmin/src/front/src/utils/evalExpression.js",["228","229"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ColorInput.js",["230","231","232"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/RichTextInput.js",["233","234"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/BetterRichTextInput.js",["235"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/DatetimeInput.js",["236","237"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/AddressInput.js",["238","239","240","241"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/FileInput.js",["242"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignSelectInput.js",["243","244","245"],[],"/home/runner/work/galadmin/galadmin/src/front/src/components/inputs/ForeignDatalistInput.js",["246","247","248","249"],[],{"ruleId":"250","severity":1,"message":"251","line":19,"column":1,"nodeType":"252","endLine":104,"endColumn":2},{"ruleId":"253","severity":1,"message":"254","line":26,"column":28,"nodeType":"255","endLine":26,"endColumn":66},{"ruleId":"256","severity":1,"message":"257","line":29,"column":70,"nodeType":"258","messageId":"259","endLine":29,"endColumn":72},{"ruleId":"260","severity":1,"message":"261","line":79,"column":80,"nodeType":"262","messageId":"263","endLine":79,"endColumn":82},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":24,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":12,"column":1,"nodeType":"252","endLine":102,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":12,"column":1,"nodeType":"252","endLine":97,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":21,"column":1,"nodeType":"252","endLine":220,"endColumn":2},{"ruleId":"264","severity":1,"message":"265","line":50,"column":8,"nodeType":"266","endLine":50,"endColumn":19,"suggestions":"267"},{"ruleId":"264","severity":1,"message":"268","line":61,"column":8,"nodeType":"266","endLine":61,"endColumn":79,"suggestions":"269"},{"ruleId":"260","severity":1,"message":"261","line":181,"column":66,"nodeType":"262","messageId":"263","endLine":181,"endColumn":68},{"ruleId":"250","severity":1,"message":"251","line":16,"column":1,"nodeType":"252","endLine":89,"endColumn":2},{"ruleId":"264","severity":1,"message":"268","line":26,"column":8,"nodeType":"266","endLine":26,"endColumn":29,"suggestions":"270"},{"ruleId":"250","severity":1,"message":"251","line":5,"column":1,"nodeType":"252","endLine":33,"endColumn":2},{"ruleId":"253","severity":1,"message":"254","line":23,"column":21,"nodeType":"255","endLine":23,"endColumn":57},{"ruleId":"250","severity":1,"message":"251","line":9,"column":1,"nodeType":"252","endLine":19,"endColumn":2},{"ruleId":"271","severity":1,"message":"272","line":16,"column":13,"nodeType":"255","endLine":16,"endColumn":36},{"ruleId":"273","severity":1,"message":"274","line":11,"column":29,"nodeType":"275","messageId":"263","endLine":11,"endColumn":33},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":15,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":10,"column":1,"nodeType":"252","endLine":149,"endColumn":3},{"ruleId":"250","severity":1,"message":"251","line":3,"column":1,"nodeType":"252","endLine":17,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":5,"column":1,"nodeType":"252","endLine":30,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":196,"endColumn":2},{"ruleId":"264","severity":1,"message":"276","line":20,"column":8,"nodeType":"266","endLine":20,"endColumn":15,"suggestions":"277"},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":68,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":10,"column":1,"nodeType":"252","endLine":85,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":12,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":4,"column":1,"nodeType":"252","endLine":28,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":5,"column":1,"nodeType":"252","endLine":22,"endColumn":2},{"ruleId":"260","severity":1,"message":"261","line":9,"column":44,"nodeType":"262","messageId":"263","endLine":9,"endColumn":46},{"ruleId":"250","severity":1,"message":"251","line":6,"column":1,"nodeType":"252","endLine":51,"endColumn":2},{"ruleId":"278","severity":1,"message":"279","line":19,"column":13,"nodeType":"255","messageId":"280","endLine":19,"endColumn":48,"fix":"281"},{"ruleId":"253","severity":1,"message":"254","line":20,"column":17,"nodeType":"255","endLine":20,"endColumn":127},{"ruleId":"260","severity":1,"message":"261","line":46,"column":93,"nodeType":"262","messageId":"263","endLine":46,"endColumn":95},{"ruleId":"250","severity":1,"message":"251","line":10,"column":1,"nodeType":"252","endLine":112,"endColumn":2},{"ruleId":"264","severity":1,"message":"268","line":18,"column":8,"nodeType":"266","endLine":18,"endColumn":16,"suggestions":"282"},{"ruleId":"250","severity":1,"message":"251","line":8,"column":1,"nodeType":"252","endLine":76,"endColumn":2},{"ruleId":"283","severity":1,"message":"284","line":10,"column":11,"nodeType":"285","messageId":"286","endLine":10,"endColumn":18},{"ruleId":"264","severity":1,"message":"268","line":15,"column":8,"nodeType":"266","endLine":15,"endColumn":29,"suggestions":"287"},{"ruleId":"278","severity":1,"message":"279","line":61,"column":29,"nodeType":"255","messageId":"280","endLine":61,"endColumn":89,"fix":"288"},{"ruleId":"253","severity":1,"message":"254","line":62,"column":33,"nodeType":"255","endLine":66,"endColumn":35},{"ruleId":"250","severity":1,"message":"251","line":4,"column":1,"nodeType":"252","endLine":42,"endColumn":2},{"ruleId":"264","severity":1,"message":"289","line":23,"column":8,"nodeType":"266","endLine":23,"endColumn":31,"suggestions":"290"},{"ruleId":"291","severity":1,"message":"292","line":17,"column":27,"nodeType":"275","messageId":"293","endLine":17,"endColumn":69},{"ruleId":"294","severity":1,"message":"295","line":20,"column":13,"nodeType":"296","messageId":"297","endLine":20,"endColumn":47},{"ruleId":"264","severity":1,"message":"298","line":19,"column":8,"nodeType":"266","endLine":19,"endColumn":13,"suggestions":"299"},{"ruleId":"250","severity":1,"message":"251","line":2,"column":1,"nodeType":"252","endLine":14,"endColumn":2},{"ruleId":"273","severity":1,"message":"274","line":8,"column":16,"nodeType":"275","messageId":"263","endLine":8,"endColumn":20},{"ruleId":"250","severity":1,"message":"251","line":3,"column":1,"nodeType":"252","endLine":29,"endColumn":2},{"ruleId":"264","severity":1,"message":"300","line":19,"column":43,"nodeType":"285","endLine":19,"endColumn":50},{"ruleId":"264","severity":1,"message":"301","line":20,"column":8,"nodeType":"266","endLine":20,"endColumn":29,"suggestions":"302"},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":58,"endColumn":3},{"ruleId":"264","severity":1,"message":"303","line":51,"column":8,"nodeType":"266","endLine":51,"endColumn":32,"suggestions":"304"},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":41,"endColumn":3},{"ruleId":"250","severity":1,"message":"251","line":3,"column":1,"nodeType":"252","endLine":26,"endColumn":2},{"ruleId":"264","severity":1,"message":"305","line":19,"column":8,"nodeType":"266","endLine":19,"endColumn":28,"suggestions":"306"},{"ruleId":"250","severity":1,"message":"251","line":3,"column":1,"nodeType":"252","endLine":67,"endColumn":2},{"ruleId":"264","severity":1,"message":"307","line":45,"column":8,"nodeType":"266","endLine":45,"endColumn":33,"suggestions":"308"},{"ruleId":"264","severity":1,"message":"309","line":54,"column":39,"nodeType":"285","endLine":54,"endColumn":46},{"ruleId":"264","severity":1,"message":"310","line":55,"column":8,"nodeType":"266","endLine":55,"endColumn":33,"suggestions":"311"},{"ruleId":"250","severity":1,"message":"251","line":8,"column":1,"nodeType":"252","endLine":85,"endColumn":2},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":46,"endColumn":2},{"ruleId":"264","severity":1,"message":"312","line":23,"column":8,"nodeType":"266","endLine":23,"endColumn":10,"suggestions":"313"},{"ruleId":"260","severity":1,"message":"261","line":32,"column":50,"nodeType":"262","messageId":"263","endLine":32,"endColumn":52},{"ruleId":"250","severity":1,"message":"251","line":7,"column":1,"nodeType":"252","endLine":64,"endColumn":2},{"ruleId":"264","severity":1,"message":"314","line":22,"column":8,"nodeType":"266","endLine":22,"endColumn":15,"suggestions":"315"},{"ruleId":"264","severity":1,"message":"316","line":31,"column":29,"nodeType":"285","endLine":31,"endColumn":36},{"ruleId":"264","severity":1,"message":"317","line":32,"column":8,"nodeType":"266","endLine":32,"endColumn":23,"suggestions":"318"},"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",["319"],"React Hook useEffect has a missing dependency: 'refreshData'. Either include it or remove the dependency array.",["320"],["321"],"jsx-a11y/iframe-has-title","<iframe> elements must have a unique title property.","no-eval","eval can be harmful.","CallExpression","React Hook useEffect has missing dependencies: 'column?.dataType' and 'column.options'. Either include them or remove the dependency array.",["322"],"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":"323","text":"324"},["325"],"no-unused-vars","'history' is assigned a value but never used.","Identifier","unusedVar",["326"],{"range":"327","text":"324"},"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.",["328"],"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.",["329"],"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.",["330"],"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.",["331"],"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.",["332"],"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.",["333"],"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.",["334"],"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.",["335"],"React Hook useEffect has missing dependencies: 'column.__id__' and 'viewIndex'. Either include them or remove the dependency array.",["336"],"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.",["337"],{"desc":"338","fix":"339"},{"desc":"340","fix":"341"},{"desc":"342","fix":"343"},{"desc":"344","fix":"345"},[1055,1055]," rel=\"noreferrer\"",{"desc":"346","fix":"347"},{"desc":"348","fix":"349"},[2020,2020],{"desc":"350","fix":"351"},{"desc":"352","fix":"353"},{"desc":"354","fix":"355"},{"desc":"356","fix":"357"},{"desc":"358","fix":"359"},{"desc":"360","fix":"361"},{"desc":"362","fix":"363"},{"desc":"364","fix":"365"},{"desc":"366","fix":"367"},{"desc":"362","fix":"368"},"Update the dependencies array to be: [currentFilters.length, selectedRecordIds.length, viewIndex]",{"range":"369","text":"370"},"Update the dependencies array to be: [viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",{"range":"371","text":"372"},"Update the dependencies array to be: [viewIndex, recordId, refreshData]",{"range":"373","text":"374"},"Update the dependencies array to be: [column?.dataType, column.options, field]",{"range":"375","text":"376"},"Update the dependencies array to be: [record, refreshData]",{"range":"377","text":"378"},"Update the dependencies array to be: [panel.query, record, refreshData]",{"range":"379","text":"380"},"Update the dependencies array to be: [panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",{"range":"381","text":"382"},"Update the dependencies array to be: [handler, ref]",{"range":"383","text":"384"},"Update the dependencies array to be: [column.name, initialData, onChange]",{"range":"385","text":"386"},"Update the dependencies array to be: [column.contentField, column.htmlField, initialData, onChange]",{"range":"387","text":"388"},"Update the dependencies array to be: [column.name, initialData, onChange, withTime]",{"range":"389","text":"390"},"Update the dependencies array to be: [column, onChange]",{"range":"391","text":"392"},"Update the dependencies array to be: []",{"range":"393","text":"394"},"Update the dependencies array to be: [column.__id__, column.name, column.optional, initialData, onChange, viewIndex]",{"range":"395","text":"396"},"Update the dependencies array to be: [column.__id__, query, viewIndex]",{"range":"397","text":"398"},{"range":"399","text":"394"},[1656,1667],"[currentFilters.length, selectedRecordIds.length, viewIndex]",[1896,1967],"[viewIndex, subviewIndex, page, query, currentFilters, orderBy, isDesc, refreshData]",[941,962],"[viewIndex, recordId, refreshData]",[808,815],"[column?.dataType, column.options, field]",[542,550],"[record, refreshData]",[359,380],"[panel.query, record, refreshData]",[776,799],"[panel.latitudeField, panel.longitudeField, panel.query, panel.zoom, record, view.primaryId]",[604,609],"[handler, ref]",[695,716],"[column.name, initialData, onChange]",[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{useContext}from\"react\";import{Link,useHistory,useLocation}from\"react-router-dom\";import{ConfigContext}from'../contexts/ConfigContext';import{jsx as _jsx}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var SidebarItemIconAndLabel=function SidebarItemIconAndLabel(_ref){var view=_ref.view;return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{class:\"sidebarIcon\",children:/*#__PURE__*/_jsx(\"i\",{class:\"fas fa-\".concat(view.icon||\"square\")})}),/*#__PURE__*/_jsx(\"div\",{class:\"sidebarLabel\",children:view.label})]});};export default(function(){var location=useLocation();var config=useContext(ConfigContext);var history=useHistory();return/*#__PURE__*/_jsxs(\"div\",{class:\"sidebar\",children:[config.logo?/*#__PURE__*/_jsx(\"img\",{src:config.logo,class:\"logo\"}):null,/*#__PURE__*/_jsx(\"div\",{class:\"sidebarTitle\",children:config.name}),/*#__PURE__*/_jsx(\"div\",{class:\"sidebarSubtitle\",children:\"Back-office\"}),config.views.filter(function(view){return!view.hidden;}).map(function(view,i){if(view.type===\"link\"){return/*#__PURE__*/_jsx(\"a\",{href:view.src,children:/*#__PURE__*/_jsx(\"div\",{class:\"sidebarItem\",children:/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(SidebarItemIconAndLabel,{view:view})})})},i);}else if(view.type===\"iframe\"){var isActive=location.pathname===\"/iframe/\".concat(i);return/*#__PURE__*/_jsx(Link,{to:\"/iframe/\".concat(i),children:/*#__PURE__*/_jsx(\"div\",{class:\"sidebarItem \".concat(isActive?\"active\":\"\"),children:/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(SidebarItemIconAndLabel,{view:view})})})},i);}else if(view.type===\"custom\"){var _isActive=location.pathname===\"/customView/\".concat(i);return/*#__PURE__*/_jsx(Link,{to:\"/customView/\".concat(i),children:/*#__PURE__*/_jsx(\"div\",{class:\"sidebarItem \".concat(_isActive?\"active\":\"\"),children:/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(SidebarItemIconAndLabel,{view:view})})})},i);}else if(view.type===\"table\"){var _isActive2=location.pathname===\"/records/\".concat(i)||location.pathname===\"/createRecord/\".concat(i)||location.pathname.startsWith(\"/record/\".concat(i,\"/\"))||location.pathname.startsWith(\"/editRecord/\".concat(i,\"/\"));return/*#__PURE__*/_jsx(\"div\",{onClick:function onClick(){return history.push(\"/records/\".concat(i));},children:/*#__PURE__*/_jsxs(\"div\",{class:\"sidebarItem \".concat(_isActive2?\"active\":\"\"),children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{class:\"notificationWrapper\"}),/*#__PURE__*/_jsx(SidebarItemIconAndLabel,{view:view})]}),view.subviews?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{class:\"subviewsSeparator\"}),view.subviews.map(function(subview,j){var isActive=location.pathname==\"/records/\".concat(i,\"/\").concat(j);return/*#__PURE__*/_jsx(\"div\",{onClick:function onClick(e){history.push(\"/records/\".concat(i,\"/\").concat(j));e.stopPropagation();},children:/*#__PURE__*/_jsxs(\"div\",{\"data-subview-index\":j,class:isActive?\"active\":\"\",children:[/*#__PURE__*/_jsx(\"div\",{class:\"notificationWrapperForSubview\"}),subview.label]})});})]}):null]})},i);}}),!config.hideBranding?/*#__PURE__*/_jsxs(\"div\",{class:\"sidebarBranding\",children:[\"Made with \",/*#__PURE__*/_jsx(\"i\",{class:\"fas fa-heart\"}),\" by Galadrim\"]}):null]});});","map":{"version":3,"names":["useContext","Link","useHistory","useLocation","ConfigContext","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","SidebarItemIconAndLabel","_ref","view","children","class","concat","icon","label","location","config","history","logo","src","name","views","filter","hidden","map","i","type","href","isActive","pathname","to","startsWith","onClick","push","subviews","subview","j","e","stopPropagation","hideBranding"],"sources":["/home/runner/work/galadmin/galadmin/src/front/src/components/Sidebar.js"],"sourcesContent":["\nimport { useContext } from \"react\";\nimport {\n Link,\n useHistory,\n useLocation\n} from \"react-router-dom\";\nimport { ConfigContext } from '../contexts/ConfigContext'\n\nconst SidebarItemIconAndLabel = ({ view }) => (\n <>\n <div class=\"sidebarIcon\">\n <i class={`fas fa-${view.icon || \"square\"}`}></i>\n </div>\n <div class=\"sidebarLabel\">{view.label}</div>\n </>\n)\n\nexport default () => {\n const location = useLocation();\n const config = useContext(ConfigContext)\n const history = useHistory();\n\n return (\n <div class=\"sidebar\">\n {config.logo ? <img src={config.logo} class=\"logo\" /> : null}\n <div class=\"sidebarTitle\">{config.name}</div>\n <div class=\"sidebarSubtitle\">Back-office</div>\n {config.views.filter(view => !view.hidden).map((view, i) => {\n if (view.type === \"link\") {\n return (\n <a href={view.src} key={i}>\n <div class=\"sidebarItem\">\n <div>\n <SidebarItemIconAndLabel view={view} />\n </div>\n </div>\n </a>\n )\n } else if (view.type === \"iframe\") {\n const isActive = location.pathname === `/iframe/${i}`\n return (\n <Link to={`/iframe/${i}`} key={i}>\n <div class={`sidebarItem ${isActive ? \"active\" : \"\"}`}>\n <div>\n <SidebarItemIconAndLabel view={view} />\n </div>\n </div>\n </Link>\n )\n } else if (view.type === \"custom\") {\n const isActive = location.pathname === `/customView/${i}`\n return (\n <Link to={`/customView/${i}`} key={i}>\n <div class={`sidebarItem ${isActive ? \"active\" : \"\"}`}>\n <div>\n <SidebarItemIconAndLabel view={view} />\n </div>\n </div>\n </Link>\n )\n } else if (view.type === \"table\") {\n const isActive =\n location.pathname === `/records/${i}` ||\n location.pathname === `/createRecord/${i}` ||\n location.pathname.startsWith(`/record/${i}/`) ||\n location.pathname.startsWith(`/editRecord/${i}/`)\n return (\n <div onClick={() => history.push(`/records/${i}`)} key={i}>\n <div class={`sidebarItem ${isActive ? \"active\" : \"\"}`}>\n <div>\n <div class=\"notificationWrapper\"></div>\n <SidebarItemIconAndLabel view={view} />\n </div>\n {view.subviews ? (\n <>\n <div class=\"subviewsSeparator\"></div>\n {view.subviews.map((subview, j) => {\n const isActive = location.pathname == `/records/${i}/${j}`\n return (\n <div onClick={(e) => {\n history.push(`/records/${i}/${j}`);\n e.stopPropagation();\n }}>\n <div data-subview-index={j} class={isActive ? \"active\" : \"\"}>\n <div class=\"notificationWrapperForSubview\"></div>\n {subview.label}\n </div>\n </div>\n )\n })}\n </>\n ) : null}\n </div>\n </div>\n )\n }\n })}\n {!config.hideBranding ? (\n <div class=\"sidebarBranding\">Made with <i class=\"fas fa-heart\"></i> by Galadrim</div>\n ) : null}\n </div>\n )\n}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CAAC,CAAE,CAC1D,mBACIlC,IAAA,QAAK8B,OAAO,CAAE,SAAAA,QAACK,CAAC,CAAK,CACjBpB,OAAO,CAACgB,IAAI,aAAArB,MAAA,CAAaa,CAAC,MAAAb,MAAA,CAAIwB,CAAC,CAAE,CAAC,CAClCC,CAAC,CAACC,eAAe,CAAC,CAAC,CACvB,CAAE,CAAA5B,QAAA,cACEJ,KAAA,QAAK,qBAAoB8B,CAAE,CAACzB,KAAK,CAAEiB,QAAQ,CAAG,QAAQ,CAAG,EAAG,CAAAlB,QAAA,eACxDR,IAAA,QAAKS,KAAK,CAAC,+BAA+B,CAAM,CAAC,CAChDwB,OAAO,CAACrB,KAAK,EACb,CAAC,CACL,CAAC,CAEd,CAAC,CAAC,EACJ,CAAC,CACH,IAAI,EACP,CAAC,EAzB8CW,CA0BnD,CAAC,CAEd,CACJ,CAAC,CAAC,CACD,CAACT,MAAM,CAACuB,YAAY,cACjBjC,KAAA,QAAKK,KAAK,CAAC,iBAAiB,CAAAD,QAAA,EAAC,YAAU,cAAAR,IAAA,MAAGS,KAAK,CAAC,cAAc,CAAI,CAAC,eAAY,EAAK,CAAC,CACrF,IAAI,EACP,CAAC,CAEd,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -60,12 +60,11 @@ export default () => {
|
|
|
60
60
|
</Link>
|
|
61
61
|
)
|
|
62
62
|
} else if (view.type === "table") {
|
|
63
|
-
// TODO: bug quand la vue 10 est sélectionnée, la 1 aussi
|
|
64
63
|
const isActive =
|
|
65
|
-
location.pathname
|
|
64
|
+
location.pathname === `/records/${i}` ||
|
|
66
65
|
location.pathname === `/createRecord/${i}` ||
|
|
67
|
-
location.pathname.startsWith(`/record/${i}
|
|
68
|
-
location.pathname.startsWith(`/editRecord/${i}
|
|
66
|
+
location.pathname.startsWith(`/record/${i}/`) ||
|
|
67
|
+
location.pathname.startsWith(`/editRecord/${i}/`)
|
|
69
68
|
return (
|
|
70
69
|
<div onClick={() => history.push(`/records/${i}`)} key={i}>
|
|
71
70
|
<div class={`sidebarItem ${isActive ? "active" : ""}`}>
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as express from "express";
|
|
2
2
|
import * as session from "express-session";
|
|
3
3
|
import * as SessionStore from "express-mysql-session";
|
|
4
|
+
import * as pgSessionStore from 'connect-pg-simple';
|
|
4
5
|
import * as mysql2 from 'mysql2/promise';
|
|
6
|
+
import * as pg from 'pg';
|
|
5
7
|
import dbManager from "./utils/dbManager";
|
|
6
8
|
import * as bcrypt from "bcryptjs";
|
|
7
9
|
|
|
@@ -38,7 +40,17 @@ export default (config: Config): any => {
|
|
|
38
40
|
|
|
39
41
|
app.use(session({
|
|
40
42
|
secret: config.sessionSecret,
|
|
41
|
-
store: new
|
|
43
|
+
store: config.postgresql ? new (pgSessionStore(session))({
|
|
44
|
+
pool: new pg.Pool({
|
|
45
|
+
host: config.postgresql.host,
|
|
46
|
+
user: config.postgresql.user,
|
|
47
|
+
password: config.postgresql.password,
|
|
48
|
+
database: config.postgresql.database,
|
|
49
|
+
port: config.postgresql.port || 5432,
|
|
50
|
+
}),
|
|
51
|
+
createTableIfMissing: true,
|
|
52
|
+
tableName: 'galadmin_sessions'
|
|
53
|
+
}) : new SessionStore({
|
|
42
54
|
schema: { tableName: 'galadmin_sessions' }
|
|
43
55
|
}, mysql2.createPool({
|
|
44
56
|
host: config.mysql.host,
|
package/src/types/config.ts
CHANGED
|
@@ -317,13 +317,21 @@ export type Config = {
|
|
|
317
317
|
authRoles?: AuthRole[],
|
|
318
318
|
|
|
319
319
|
/** Identifiants de connexion à la base de données */
|
|
320
|
-
mysql
|
|
320
|
+
mysql?: {
|
|
321
321
|
host: string,
|
|
322
322
|
user: string,
|
|
323
323
|
password: string,
|
|
324
324
|
database: string,
|
|
325
325
|
port?: number
|
|
326
|
-
}
|
|
326
|
+
},
|
|
327
|
+
|
|
328
|
+
postgresql?: {
|
|
329
|
+
host: string,
|
|
330
|
+
user: string,
|
|
331
|
+
password: string,
|
|
332
|
+
database: string,
|
|
333
|
+
port?: number
|
|
334
|
+
},
|
|
327
335
|
|
|
328
336
|
/** Clé API Google Maps pour les champs adresses et l'affichage de cartes */
|
|
329
337
|
googleMapsKey?: string,
|
package/src/utils/dbManager.ts
CHANGED
|
@@ -1,26 +1,78 @@
|
|
|
1
1
|
import * as mysql from "mysql";
|
|
2
2
|
import * as mysql2 from "mysql2";
|
|
3
|
+
import * as pg from 'pg';
|
|
4
|
+
|
|
5
|
+
function convertQuery(mysqlQuery, params) {
|
|
6
|
+
let pgQuery = '';
|
|
7
|
+
let pgParams = [];
|
|
8
|
+
|
|
9
|
+
let paramIndex = 1;
|
|
10
|
+
let charIndex = 0;
|
|
11
|
+
|
|
12
|
+
while (charIndex < mysqlQuery.length) {
|
|
13
|
+
if (mysqlQuery.charAt(charIndex) === '?' && mysqlQuery.charAt(charIndex + 1) === '?') {
|
|
14
|
+
// Replace "??"
|
|
15
|
+
pgQuery += params.shift();
|
|
16
|
+
charIndex += 2; // Skip two characters
|
|
17
|
+
} else if (mysqlQuery.charAt(charIndex) === '?') {
|
|
18
|
+
// Replace "?"
|
|
19
|
+
pgQuery += `$${paramIndex++}`;
|
|
20
|
+
pgParams.push(params.shift());
|
|
21
|
+
charIndex++; // Skip one character
|
|
22
|
+
} else {
|
|
23
|
+
pgQuery += mysqlQuery.charAt(charIndex);
|
|
24
|
+
charIndex++; // Go to next character
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
pgQuery,
|
|
30
|
+
pgParams,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
3
33
|
|
|
4
34
|
export default class dbManager {
|
|
5
35
|
_db;
|
|
36
|
+
dbType;
|
|
6
37
|
|
|
7
38
|
init(config) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
39
|
+
if (config.mysql) {
|
|
40
|
+
this._db = (config.useMysql2 ? mysql2 : mysql).createPool({
|
|
41
|
+
connectionLimit: 10,
|
|
42
|
+
host: config.mysql.host,
|
|
43
|
+
user: config.mysql.user,
|
|
44
|
+
password: config.mysql.password,
|
|
45
|
+
database: config.mysql.database,
|
|
46
|
+
port: config.mysql.port || 3306,
|
|
47
|
+
dateStrings: true,
|
|
48
|
+
multipleStatements: true
|
|
49
|
+
});
|
|
50
|
+
this.dbType = "MYSQL";
|
|
51
|
+
} else if (config.postgresql) {
|
|
52
|
+
this._db = new pg.Pool({
|
|
53
|
+
host: config.postgresql.host,
|
|
54
|
+
user: config.postgresql.user,
|
|
55
|
+
password: config.postgresql.password,
|
|
56
|
+
database: config.postgresql.database,
|
|
57
|
+
port: config.postgresql.port || 5432,
|
|
58
|
+
});
|
|
59
|
+
this.dbType = "POSTGRESQL";
|
|
60
|
+
}
|
|
18
61
|
}
|
|
19
62
|
|
|
20
63
|
async query(queryString, args = []): Promise<any> {
|
|
21
64
|
return new Promise((resolve, reject) => {
|
|
22
|
-
this.
|
|
23
|
-
|
|
65
|
+
if (this.dbType === "POSTGRESQL") {
|
|
66
|
+
const result = convertQuery(queryString, args);
|
|
67
|
+
queryString = result.pgQuery;
|
|
68
|
+
args = result.pgParams;
|
|
69
|
+
}
|
|
70
|
+
this._db.query(queryString, args, (a, b, c) => {
|
|
71
|
+
if (this.dbType === "MYSQL") {
|
|
72
|
+
resolve({ err: a, rows: b, fields: c })
|
|
73
|
+
} else if (this.dbType === "POSTGRESQL") {
|
|
74
|
+
resolve({ err: a, rows: b?.rows, fields: b?.fields })
|
|
75
|
+
}
|
|
24
76
|
});
|
|
25
77
|
});
|
|
26
78
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import{useContext}from\"react\";import{Link,useHistory,useLocation}from\"react-router-dom\";import{ConfigContext}from'../contexts/ConfigContext';import{jsx as _jsx}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var SidebarItemIconAndLabel=function SidebarItemIconAndLabel(_ref){var view=_ref.view;return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{class:\"sidebarIcon\",children:/*#__PURE__*/_jsx(\"i\",{class:\"fas fa-\".concat(view.icon||\"square\")})}),/*#__PURE__*/_jsx(\"div\",{class:\"sidebarLabel\",children:view.label})]});};export default(function(){var location=useLocation();var config=useContext(ConfigContext);var history=useHistory();return/*#__PURE__*/_jsxs(\"div\",{class:\"sidebar\",children:[config.logo?/*#__PURE__*/_jsx(\"img\",{src:config.logo,class:\"logo\"}):null,/*#__PURE__*/_jsx(\"div\",{class:\"sidebarTitle\",children:config.name}),/*#__PURE__*/_jsx(\"div\",{class:\"sidebarSubtitle\",children:\"Back-office\"}),config.views.filter(function(view){return!view.hidden;}).map(function(view,i){if(view.type===\"link\"){return/*#__PURE__*/_jsx(\"a\",{href:view.src,children:/*#__PURE__*/_jsx(\"div\",{class:\"sidebarItem\",children:/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(SidebarItemIconAndLabel,{view:view})})})},i);}else if(view.type===\"iframe\"){var isActive=location.pathname===\"/iframe/\".concat(i);return/*#__PURE__*/_jsx(Link,{to:\"/iframe/\".concat(i),children:/*#__PURE__*/_jsx(\"div\",{class:\"sidebarItem \".concat(isActive?\"active\":\"\"),children:/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(SidebarItemIconAndLabel,{view:view})})})},i);}else if(view.type===\"custom\"){var _isActive=location.pathname===\"/customView/\".concat(i);return/*#__PURE__*/_jsx(Link,{to:\"/customView/\".concat(i),children:/*#__PURE__*/_jsx(\"div\",{class:\"sidebarItem \".concat(_isActive?\"active\":\"\"),children:/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(SidebarItemIconAndLabel,{view:view})})})},i);}else if(view.type===\"table\"){// TODO: bug quand la vue 10 est sélectionnée, la 1 aussi\nvar _isActive2=location.pathname.startsWith(\"/records/\".concat(i))||location.pathname===\"/createRecord/\".concat(i)||location.pathname.startsWith(\"/record/\".concat(i))||location.pathname.startsWith(\"/editRecord/\".concat(i));return/*#__PURE__*/_jsx(\"div\",{onClick:function onClick(){return history.push(\"/records/\".concat(i));},children:/*#__PURE__*/_jsxs(\"div\",{class:\"sidebarItem \".concat(_isActive2?\"active\":\"\"),children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{class:\"notificationWrapper\"}),/*#__PURE__*/_jsx(SidebarItemIconAndLabel,{view:view})]}),view.subviews?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{class:\"subviewsSeparator\"}),view.subviews.map(function(subview,j){var isActive=location.pathname==\"/records/\".concat(i,\"/\").concat(j);return/*#__PURE__*/_jsx(\"div\",{onClick:function onClick(e){history.push(\"/records/\".concat(i,\"/\").concat(j));e.stopPropagation();},children:/*#__PURE__*/_jsxs(\"div\",{\"data-subview-index\":j,class:isActive?\"active\":\"\",children:[/*#__PURE__*/_jsx(\"div\",{class:\"notificationWrapperForSubview\"}),subview.label]})});})]}):null]})},i);}}),!config.hideBranding?/*#__PURE__*/_jsxs(\"div\",{class:\"sidebarBranding\",children:[\"Made with \",/*#__PURE__*/_jsx(\"i\",{class:\"fas fa-heart\"}),\" by Galadrim\"]}):null]});});","map":{"version":3,"names":["useContext","Link","useHistory","useLocation","ConfigContext","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","SidebarItemIconAndLabel","_ref","view","children","class","concat","icon","label","location","config","history","logo","src","name","views","filter","hidden","map","i","type","href","isActive","pathname","to","startsWith","onClick","push","subviews","subview","j","e","stopPropagation","hideBranding"],"sources":["/home/runner/work/galadmin/galadmin/src/front/src/components/Sidebar.js"],"sourcesContent":["\nimport { useContext } from \"react\";\nimport {\n Link,\n useHistory,\n useLocation\n} from \"react-router-dom\";\nimport { ConfigContext } from '../contexts/ConfigContext'\n\nconst SidebarItemIconAndLabel = ({ view }) => (\n <>\n <div class=\"sidebarIcon\">\n <i class={`fas fa-${view.icon || \"square\"}`}></i>\n </div>\n <div class=\"sidebarLabel\">{view.label}</div>\n </>\n)\n\nexport default () => {\n const location = useLocation();\n const config = useContext(ConfigContext)\n const history = useHistory();\n\n return (\n <div class=\"sidebar\">\n {config.logo ? <img src={config.logo} class=\"logo\" /> : null}\n <div class=\"sidebarTitle\">{config.name}</div>\n <div class=\"sidebarSubtitle\">Back-office</div>\n {config.views.filter(view => !view.hidden).map((view, i) => {\n if (view.type === \"link\") {\n return (\n <a href={view.src} key={i}>\n <div class=\"sidebarItem\">\n <div>\n <SidebarItemIconAndLabel view={view} />\n </div>\n </div>\n </a>\n )\n } else if (view.type === \"iframe\") {\n const isActive = location.pathname === `/iframe/${i}`\n return (\n <Link to={`/iframe/${i}`} key={i}>\n <div class={`sidebarItem ${isActive ? \"active\" : \"\"}`}>\n <div>\n <SidebarItemIconAndLabel view={view} />\n </div>\n </div>\n </Link>\n )\n } else if (view.type === \"custom\") {\n const isActive = location.pathname === `/customView/${i}`\n return (\n <Link to={`/customView/${i}`} key={i}>\n <div class={`sidebarItem ${isActive ? \"active\" : \"\"}`}>\n <div>\n <SidebarItemIconAndLabel view={view} />\n </div>\n </div>\n </Link>\n )\n } else if (view.type === \"table\") {\n // TODO: bug quand la vue 10 est sélectionnée, la 1 aussi\n const isActive =\n location.pathname.startsWith(`/records/${i}`) ||\n location.pathname === `/createRecord/${i}` ||\n location.pathname.startsWith(`/record/${i}`) ||\n location.pathname.startsWith(`/editRecord/${i}`)\n return (\n <div onClick={() => history.push(`/records/${i}`)} key={i}>\n <div class={`sidebarItem ${isActive ? \"active\" : \"\"}`}>\n <div>\n <div class=\"notificationWrapper\"></div>\n <SidebarItemIconAndLabel view={view} />\n </div>\n {view.subviews ? (\n <>\n <div class=\"subviewsSeparator\"></div>\n {view.subviews.map((subview, j) => {\n const isActive = location.pathname == `/records/${i}/${j}`\n return (\n <div onClick={(e) => {\n history.push(`/records/${i}/${j}`);\n e.stopPropagation();\n }}>\n <div data-subview-index={j} class={isActive ? \"active\" : \"\"}>\n <div class=\"notificationWrapperForSubview\"></div>\n {subview.label}\n </div>\n </div>\n )\n })}\n </>\n ) : null}\n </div>\n </div>\n )\n }\n })}\n {!config.hideBranding ? (\n <div class=\"sidebarBranding\">Made with <i class=\"fas fa-heart\"></i> by Galadrim</div>\n ) : null}\n </div>\n )\n}"],"mappings":"AACA,OAASA,UAAU,KAAQ,OAAO,CAClC,OACIC,IAAI,CACJC,UAAU,CACVC,WAAW,KACR,kBAAkB,CACzB,OAASC,aAAa,KAAQ,2BAA2B,QAAAC,GAAA,IAAAC,IAAA,gCAAAC,QAAA,IAAAC,SAAA,gCAAAC,IAAA,IAAAC,KAAA,yBAEzD,GAAM,CAAAC,uBAAuB,CAAG,QAA1B,CAAAA,uBAAuBA,CAAAC,IAAA,KAAM,CAAAC,IAAI,CAAAD,IAAA,CAAJC,IAAI,oBACnCH,KAAA,CAAAF,SAAA,EAAAM,QAAA,eACIR,IAAA,QAAKS,KAAK,CAAC,aAAa,CAAAD,QAAA,cACpBR,IAAA,MAAGS,KAAK,WAAAC,MAAA,CAAYH,IAAI,CAACI,IAAI,EAAI,QAAQ,CAAG,CAAI,CAAC,CAChD,CAAC,cACNX,IAAA,QAAKS,KAAK,CAAC,cAAc,CAAAD,QAAA,CAAED,IAAI,CAACK,KAAK,CAAM,CAAC,EAC9C,CAAC,EACN,CAED,eAAe,UAAM,CACjB,GAAM,CAAAC,QAAQ,CAAGhB,WAAW,CAAC,CAAC,CAC9B,GAAM,CAAAiB,MAAM,CAAGpB,UAAU,CAACI,aAAa,CAAC,CACxC,GAAM,CAAAiB,OAAO,CAAGnB,UAAU,CAAC,CAAC,CAE5B,mBACIQ,KAAA,QAAKK,KAAK,CAAC,SAAS,CAAAD,QAAA,EACfM,MAAM,CAACE,IAAI,cAAGhB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E,IAAI,CAAEA,IAAK,CAAE,CAAC,EACtC,CAAC,CACLA,IAAI,CAACyB,QAAQ,cACV5B,KAAA,CAAAF,SAAA,EAAAM,QAAA,eACIR,IAAA,QAAKS,KAAK,CAAC,mBAAmB,CAAM,CAAC,CACpCF,IAAI,CAACyB,QAAQ,CAACV,GAAG,CAAC,SAACW,OAAO,CAAEC,CAAC,CAAK,CAC/B,GAAM,CAAAR,QAAQ,CAAGb,QAAQ,CAACc,QAAQ,cAAAjB,MAAA,CAAgBa,CAAC,MAAAb,MAAA,CAAIwB,CAAC,CAAE,CAC1D,mBACIlC,IAAA,QAAK8B,OAAO,CAAE,SAAAA,QAACK,CAAC,CAAK,CACjBpB,OAAO,CAACgB,IAAI,aAAArB,MAAA,CAAaa,CAAC,MAAAb,MAAA,CAAIwB,CAAC,CAAE,CAAC,CAClCC,CAAC,CAACC,eAAe,CAAC,CAAC,CACvB,CAAE,CAAA5B,QAAA,cACEJ,KAAA,QAAK,qBAAoB8B,CAAE,CAACzB,KAAK,CAAEiB,QAAQ,CAAG,QAAQ,CAAG,EAAG,CAAAlB,QAAA,eACxDR,IAAA,QAAKS,KAAK,CAAC,+BAA+B,CAAM,CAAC,CAChDwB,OAAO,CAACrB,KAAK,EACb,CAAC,CACL,CAAC,CAEd,CAAC,CAAC,EACJ,CAAC,CACH,IAAI,EACP,CAAC,EAzB8CW,CA0BnD,CAAC,CAEd,CACJ,CAAC,CAAC,CACD,CAACT,MAAM,CAACuB,YAAY,cACjBjC,KAAA,QAAKK,KAAK,CAAC,iBAAiB,CAAAD,QAAA,EAAC,YAAU,cAAAR,IAAA,MAAGS,KAAK,CAAC,cAAc,CAAI,CAAC,eAAY,EAAK,CAAC,CACrF,IAAI,EACP,CAAC,CAEd,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
/package/src/front/build/static/js/{main.a6e3920f.js.LICENSE.txt → main.503d80f3.js.LICENSE.txt}
RENAMED
|
File without changes
|