Author: bricks
Date: 2017-10-23 12:43:10 +0200 (Mon, 23 Oct 2017)
New Revision: 29887

Removed:
   trunk/gsa/src/html/classic/ng/src/web/pages/notes/withNoteComponent.js
   
trunk/gsa/src/html/classic/ng/src/web/pages/overrides/withOverrideComponent.js
Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/classic/ng/CMakeLists.txt
Log:
* src/html/classic/ng/CMakeLists.txt,
src/html/classic/ng/src/web/pages/notes/withNoteComponent.js,
src/html/classic/ng/src/web/pages/overrides/withOverrideComponent.js: Get rid
of obsolete withNoteComponent and withOverrideComponent HOCs.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog 2017-10-23 10:43:07 UTC (rev 29886)
+++ trunk/gsa/ChangeLog 2017-10-23 10:43:10 UTC (rev 29887)
@@ -1,5 +1,12 @@
 2017-10-23  Bj�rn Ricks <bjoern.ri...@greenbone.net>
 
+       * src/html/classic/ng/CMakeLists.txt,
+       src/html/classic/ng/src/web/pages/notes/withNoteComponent.js,
+       src/html/classic/ng/src/web/pages/overrides/withOverrideComponent.js: 
Get rid
+       of obsolete withNoteComponent and withOverrideComponent HOCs.
+
+2017-10-23  Bj�rn Ricks <bjoern.ri...@greenbone.net>
+
        * src/html/classic/ng/src/web/pages/notes/listpage.js: Convert notes 
list page
        to use NoteComponent instead of withNoteComponent HOC.
 

Modified: trunk/gsa/src/html/classic/ng/CMakeLists.txt
===================================================================
--- trunk/gsa/src/html/classic/ng/CMakeLists.txt        2017-10-23 10:43:07 UTC 
(rev 29886)
+++ trunk/gsa/src/html/classic/ng/CMakeLists.txt        2017-10-23 10:43:10 UTC 
(rev 29887)
@@ -390,7 +390,6 @@
      ${NG_SRC_DIR}/src/web/pages/notes/listpage.js
      ${NG_SRC_DIR}/src/web/pages/notes/row.js
      ${NG_SRC_DIR}/src/web/pages/notes/table.js
-     ${NG_SRC_DIR}/src/web/pages/notes/withNoteComponent.js
      ${NG_SRC_DIR}/src/web/pages/notfoundpage.js
      ${NG_SRC_DIR}/src/web/pages/nvts/charts.js
      ${NG_SRC_DIR}/src/web/pages/nvts/details.js
@@ -422,7 +421,6 @@
      ${NG_SRC_DIR}/src/web/pages/overrides/listpage.js
      ${NG_SRC_DIR}/src/web/pages/overrides/row.js
      ${NG_SRC_DIR}/src/web/pages/overrides/table.js
-     ${NG_SRC_DIR}/src/web/pages/overrides/withOverrideComponent.js
      ${NG_SRC_DIR}/src/web/pages/page.js
      ${NG_SRC_DIR}/src/web/pages/permissions/component.js
      ${NG_SRC_DIR}/src/web/pages/permissions/dialog.js

Deleted: trunk/gsa/src/html/classic/ng/src/web/pages/notes/withNoteComponent.js
===================================================================
--- trunk/gsa/src/html/classic/ng/src/web/pages/notes/withNoteComponent.js      
2017-10-23 10:43:07 UTC (rev 29886)
+++ trunk/gsa/src/html/classic/ng/src/web/pages/notes/withNoteComponent.js      
2017-10-23 10:43:10 UTC (rev 29887)
@@ -1,46 +0,0 @@
-/* Greenbone Security Assistant
- *
- * Authors:
- * Björn Ricks <bjoern.ri...@greenbone.net>
- *
- * Copyright:
- * Copyright (C) 2017 Greenbone Networks GmbH
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-import withComponent from '../../entity/withComponent.js';
-
-import NoteComponent from './component.js';
-
-const DEFAULT_MAPPING = {
-  clone: 'onNoteCloneClick',
-  onCloned: 'onCloned',
-  create: 'onNoteCreateClick',
-  onCreated: 'onCreated',
-  onCreateError: undefined, // let dialog handle error via returned promise
-  delete: 'onNoteDeleteClick',
-  onDeleted: 'onDeleted',
-  save: 'onNoteSaveClick',
-  onSaved: 'onSaved',
-  onSaveError: undefined, // same as onCreateError
-  download: 'onNoteDownloadClick',
-  onDownloaded: 'onDownloaded',
-  edit: 'onNoteEditClick',
-};
-
-export default withComponent(DEFAULT_MAPPING, NoteComponent);
-
-// vim: set ts=2 sw=2 tw=80:

Deleted: 
trunk/gsa/src/html/classic/ng/src/web/pages/overrides/withOverrideComponent.js
===================================================================
--- 
trunk/gsa/src/html/classic/ng/src/web/pages/overrides/withOverrideComponent.js  
    2017-10-23 10:43:07 UTC (rev 29886)
+++ 
trunk/gsa/src/html/classic/ng/src/web/pages/overrides/withOverrideComponent.js  
    2017-10-23 10:43:10 UTC (rev 29887)
@@ -1,40 +0,0 @@
-/* Greenbone Security Assistant
- *
- * Authors:
- * Björn Ricks <bjoern.ri...@greenbone.net>
- *
- * Copyright:
- * Copyright (C) 2017 Greenbone Networks GmbH
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-
-import withComponent from '../../entity/withComponent.js';
-
-import OverrideComponent from './component.js';
-
-const DEFAULT_MAPPING = {
-  clone: 'onOverrideCloneClick',
-  create: 'onOverrideCreateClick',
-  delete: 'onOverrideDeleteClick',
-  save: 'onOverrideSaveClick',
-  download: 'onOverrideDownloadClick',
-  edit: 'onOverrideEditClick',
-};
-
-export default withComponent(DEFAULT_MAPPING, OverrideComponent);
-
-// vim: set ts=2 sw=2 tw=80:

_______________________________________________
Openvas-commits mailing list
Openvas-commits@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits

Reply via email to