From ae14f69445a82acdf2341e9076852e0e2582d737 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelsalam Date: Tue, 11 Jun 2024 14:25:27 +0200 Subject: [PATCH] Update headers for new files. --- src/gmp/commands/__tests__/auditreport.js | 16 ++-------------- src/gmp/commands/__tests__/auditreports.js | 16 ++-------------- src/gmp/commands/auditreports.js | 16 ++-------------- src/gmp/models/auditreport.js | 16 ++-------------- src/gmp/models/report/auditreport.js | 16 ++-------------- src/web/components/bar/compliancebar.jsx | 16 ++-------------- src/web/components/label/compliancestate.jsx | 16 ++-------------- .../powerfilter/compliancelevelsgroup.jsx | 16 ++-------------- src/web/pages/reports/auditdashboard/index.jsx | 16 ++-------------- src/web/pages/reports/auditdashboard/loaders.jsx | 16 ++-------------- .../reports/auditdashboard/statusdisplay.jsx | 16 ++-------------- src/web/pages/reports/auditdeltadetailspage.jsx | 16 ++-------------- src/web/pages/reports/auditdetailscontent.jsx | 16 ++-------------- src/web/pages/reports/auditdetailspage.jsx | 16 ++-------------- src/web/pages/reports/auditfilterdialog.jsx | 16 ++-------------- src/web/pages/reports/auditreportrow.jsx | 16 ++-------------- src/web/pages/reports/auditreportslistpage.jsx | 16 ++-------------- src/web/pages/reports/auditreportstable.jsx | 16 ++-------------- .../reports/details/auditthresholdpanel.jsx | 16 ++-------------- src/web/store/entities/auditreports.js | 16 ++-------------- 20 files changed, 40 insertions(+), 280 deletions(-) diff --git a/src/gmp/commands/__tests__/auditreport.js b/src/gmp/commands/__tests__/auditreport.js index 086368b6ba..d6eef9ec28 100644 --- a/src/gmp/commands/__tests__/auditreport.js +++ b/src/gmp/commands/__tests__/auditreport.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import {describe, test, expect} from '@gsa/testing'; import {createHttp, createEntityResponse} from 'gmp/commands/testing'; import {AuditReportCommand} from 'gmp/commands/auditreports'; diff --git a/src/gmp/commands/__tests__/auditreports.js b/src/gmp/commands/__tests__/auditreports.js index 4b710fac71..1169cfd917 100644 --- a/src/gmp/commands/__tests__/auditreports.js +++ b/src/gmp/commands/__tests__/auditreports.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import {describe, test, expect} from '@gsa/testing'; import {ALL_FILTER} from 'gmp/models/filter'; diff --git a/src/gmp/commands/auditreports.js b/src/gmp/commands/auditreports.js index a6ae6da2ca..d0d7edb32b 100644 --- a/src/gmp/commands/auditreports.js +++ b/src/gmp/commands/auditreports.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import {isDefined} from 'gmp/utils/identity'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/models/auditreport.js b/src/gmp/models/auditreport.js index 40f1bd0c9d..257b6b7302 100644 --- a/src/gmp/models/auditreport.js +++ b/src/gmp/models/auditreport.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import {_l} from 'gmp/locale/lang'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/gmp/models/report/auditreport.js b/src/gmp/models/report/auditreport.js index cc5f503c7b..e513d06c25 100644 --- a/src/gmp/models/report/auditreport.js +++ b/src/gmp/models/report/auditreport.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import {isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/web/components/bar/compliancebar.jsx b/src/web/components/bar/compliancebar.jsx index e4d35fc30d..26381a35a2 100644 --- a/src/web/components/bar/compliancebar.jsx +++ b/src/web/components/bar/compliancebar.jsx @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React from 'react'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/web/components/label/compliancestate.jsx b/src/web/components/label/compliancestate.jsx index ca6cb43c78..392211c375 100644 --- a/src/web/components/label/compliancestate.jsx +++ b/src/web/components/label/compliancestate.jsx @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import styled from 'styled-components'; import _ from 'gmp/locale'; diff --git a/src/web/components/powerfilter/compliancelevelsgroup.jsx b/src/web/components/powerfilter/compliancelevelsgroup.jsx index 85c5124f52..09e6612bae 100644 --- a/src/web/components/powerfilter/compliancelevelsgroup.jsx +++ b/src/web/components/powerfilter/compliancelevelsgroup.jsx @@ -1,21 +1,9 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React from 'react'; import _ from 'gmp/locale'; diff --git a/src/web/pages/reports/auditdashboard/index.jsx b/src/web/pages/reports/auditdashboard/index.jsx index c88606ec8c..44a9289e17 100644 --- a/src/web/pages/reports/auditdashboard/index.jsx +++ b/src/web/pages/reports/auditdashboard/index.jsx @@ -1,21 +1,9 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import Dashboard from 'web/components/dashboard/dashboard'; import { diff --git a/src/web/pages/reports/auditdashboard/loaders.jsx b/src/web/pages/reports/auditdashboard/loaders.jsx index 792148413f..02c331e601 100644 --- a/src/web/pages/reports/auditdashboard/loaders.jsx +++ b/src/web/pages/reports/auditdashboard/loaders.jsx @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import Loader, { loadFunc, loaderPropTypes, diff --git a/src/web/pages/reports/auditdashboard/statusdisplay.jsx b/src/web/pages/reports/auditdashboard/statusdisplay.jsx index 275f457297..1d4c45b96e 100644 --- a/src/web/pages/reports/auditdashboard/statusdisplay.jsx +++ b/src/web/pages/reports/auditdashboard/statusdisplay.jsx @@ -1,21 +1,9 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import {_, _l} from 'gmp/locale/lang'; import {AUDIT_REPORTS_FILTER_FILTER} from 'gmp/models/filter'; diff --git a/src/web/pages/reports/auditdeltadetailspage.jsx b/src/web/pages/reports/auditdeltadetailspage.jsx index 64ea040108..430f2c66e7 100644 --- a/src/web/pages/reports/auditdeltadetailspage.jsx +++ b/src/web/pages/reports/auditdeltadetailspage.jsx @@ -1,21 +1,9 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React, {useEffect, useState} from 'react'; import {useDispatch, useSelector, shallowEqual} from 'react-redux'; diff --git a/src/web/pages/reports/auditdetailscontent.jsx b/src/web/pages/reports/auditdetailscontent.jsx index 6e2f4d8772..e3c913508d 100644 --- a/src/web/pages/reports/auditdetailscontent.jsx +++ b/src/web/pages/reports/auditdetailscontent.jsx @@ -1,21 +1,9 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React from 'react'; import styled from 'styled-components'; diff --git a/src/web/pages/reports/auditdetailspage.jsx b/src/web/pages/reports/auditdetailspage.jsx index 2de59a499d..9ce266202b 100644 --- a/src/web/pages/reports/auditdetailspage.jsx +++ b/src/web/pages/reports/auditdetailspage.jsx @@ -1,21 +1,9 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React, {useEffect, useState} from 'react'; import {useDispatch, useSelector, shallowEqual} from 'react-redux'; diff --git a/src/web/pages/reports/auditfilterdialog.jsx b/src/web/pages/reports/auditfilterdialog.jsx index b7ee5a41be..a8f3ddba27 100644 --- a/src/web/pages/reports/auditfilterdialog.jsx +++ b/src/web/pages/reports/auditfilterdialog.jsx @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React from 'react'; import {_l, _} from 'gmp/locale/lang'; diff --git a/src/web/pages/reports/auditreportrow.jsx b/src/web/pages/reports/auditreportrow.jsx index de5684d7e4..af8345abd4 100644 --- a/src/web/pages/reports/auditreportrow.jsx +++ b/src/web/pages/reports/auditreportrow.jsx @@ -1,21 +1,9 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React from 'react'; import _ from 'gmp/locale'; diff --git a/src/web/pages/reports/auditreportslistpage.jsx b/src/web/pages/reports/auditreportslistpage.jsx index abcf7a5cca..00798ba342 100644 --- a/src/web/pages/reports/auditreportslistpage.jsx +++ b/src/web/pages/reports/auditreportslistpage.jsx @@ -1,21 +1,9 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React, {useEffect, useState} from 'react'; import {useHistory} from 'react-router-dom'; diff --git a/src/web/pages/reports/auditreportstable.jsx b/src/web/pages/reports/auditreportstable.jsx index 3ccbddaaad..3830594a8f 100644 --- a/src/web/pages/reports/auditreportstable.jsx +++ b/src/web/pages/reports/auditreportstable.jsx @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React from 'react'; import {_, _l} from 'gmp/locale/lang'; diff --git a/src/web/pages/reports/details/auditthresholdpanel.jsx b/src/web/pages/reports/details/auditthresholdpanel.jsx index c8f5aabbe7..7d2f7e63e3 100644 --- a/src/web/pages/reports/details/auditthresholdpanel.jsx +++ b/src/web/pages/reports/details/auditthresholdpanel.jsx @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import React from 'react'; import styled from 'styled-components'; diff --git a/src/web/store/entities/auditreports.js b/src/web/store/entities/auditreports.js index af01afbfe0..3b305c09f9 100644 --- a/src/web/store/entities/auditreports.js +++ b/src/web/store/entities/auditreports.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation, either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + import { createEntitiesLoadingActions, createLoadAllEntities,