From c4ff8de4121054795e28c832e967b0c4c1dfe1e5 Mon Sep 17 00:00:00 2001 From: Shane Ardell Date: Thu, 26 Oct 2023 15:16:14 -0400 Subject: [PATCH] NIFI-12260: Remove templates from frontend (#7924) * remove templates from frontend * remove more references to removed files * removing more template references * remove unused css template styles --- .../nifi-web/nifi-web-ui/pom.xml | 40 -- .../main/resources/filters/canvas.properties | 1 - .../filters/templates-min.properties | 19 - .../resources/filters/templates.properties | 30 -- .../src/main/webapp/WEB-INF/pages/canvas.jsp | 3 - .../main/webapp/WEB-INF/pages/templates.jsp | 66 --- .../bulletin-board/bulletin-board-content.jsp | 2 +- .../WEB-INF/partials/canvas/canvas-header.jsp | 7 - .../canvas/instantiate-template-dialog.jsp | 25 - .../partials/canvas/new-template-dialog.jsp | 33 -- .../partials/canvas/policy-management.jsp | 10 - .../canvas/upload-template-dialog.jsp | 36 -- .../partials/templates/templates-content.jsp | 41 -- .../src/main/webapp/WEB-INF/web.xml | 10 - .../nifi-web-ui/src/main/webapp/css/main.css | 39 +- .../src/main/webapp/css/templates.css | 97 ---- .../nf-ng-canvas-global-menu-controller.js | 21 - .../nf-ng-canvas-operate-controller.js | 223 --------- .../nf-ng-canvas-toolbox-controller.js | 6 - .../components/nf-ng-template-component.js | 291 ----------- .../main/webapp/js/nf/canvas/nf-actions.js | 124 ----- .../js/nf/canvas/nf-canvas-bootstrap.js | 12 +- .../webapp/js/nf/canvas/nf-context-menu.js | 21 - .../js/nf/canvas/nf-policy-management.js | 54 --- .../main/webapp/js/nf/nf-status-history.js | 1 - .../js/nf/templates/nf-templates-table.js | 450 ------------------ .../webapp/js/nf/templates/nf-templates.js | 263 ---------- .../main/webapp/js/nf/users/nf-users-table.js | 6 +- 28 files changed, 6 insertions(+), 1925 deletions(-) delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/templates-min.properties delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/templates.properties delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/templates.jsp delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/instantiate-template-dialog.jsp delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/new-template-dialog.jsp delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/upload-template-dialog.jsp delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/templates/templates-content.jsp delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/templates.css delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/header/components/nf-ng-template-component.js delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/templates/nf-templates-table.js delete mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/templates/nf-templates.js diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/pom.xml b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/pom.xml index f73e416da7..27daad1860 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/pom.xml +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/pom.xml @@ -31,7 +31,6 @@ summary.properties counters.properties cluster.properties - templates.properties users.properties bulletin-board.properties login.properties @@ -58,7 +57,6 @@ src/main/resources/filters/${summary.filter} src/main/resources/filters/${counters.filter} src/main/resources/filters/${cluster.filter} - src/main/resources/filters/${templates.filter} src/main/resources/filters/${users.filter} src/main/resources/filters/${bulletin.board.filter} src/main/resources/filters/${login.filter} @@ -95,7 +93,6 @@ **/provenance.jsp, **/counters.jsp, **/cluster.jsp, - **/templates.jsp, **/users.jsp, **/bulletin-board.jsp, **/login.jsp, @@ -328,14 +325,6 @@ true - - src/main/webapp/WEB-INF/pages - WEB-INF/pages - - templates.jsp - - true - src/main/webapp/WEB-INF/pages WEB-INF/pages @@ -449,7 +438,6 @@ summary-min.properties counters-min.properties cluster-min.properties - templates-min.properties users-min.properties bulletin-board-min.properties login-min.properties @@ -558,7 +546,6 @@ ${staging.dir}/js/nf/canvas/header/components/nf-ng-group-component.js ${staging.dir}/js/nf/canvas/header/components/nf-ng-remote-process-group-component.js ${staging.dir}/js/nf/canvas/header/components/nf-ng-funnel-component.js - ${staging.dir}/js/nf/canvas/header/components/nf-ng-template-component.js ${staging.dir}/js/nf/canvas/header/components/nf-ng-registry-import-component.js ${staging.dir}/js/nf/canvas/header/components/nf-ng-label-component.js ${staging.dir}/js/nf/canvas/directives/nf-ng-breadcrumbs-directive.js @@ -663,21 +650,6 @@ ${staging.dir}/js/nf/users/nf-users.js - - true - ${project.build.directory}/${project.build.finalName}/js/nf/templates/nf-templates-all.js - - ${staging.dir}/js/nf/nf-dialog.js - ${staging.dir}/js/nf/nf-authorization-storage.js - ${staging.dir}/js/nf/nf-storage.js - ${staging.dir}/js/nf/nf-common.js - ${staging.dir}/js/nf/nf-error-handler.js - ${staging.dir}/js/nf/nf-universal-capture.js - ${staging.dir}/js/nf/nf-ajax-setup.js - ${staging.dir}/js/nf/templates/nf-templates-table.js - ${staging.dir}/js/nf/templates/nf-templates.js - - true ${project.build.directory}/${project.build.finalName}/js/nf/cluster/nf-cluster-all.js @@ -843,16 +815,6 @@ ${staging.dir}/css/users.css - - true - ${project.build.directory}/${project.build.finalName}/css/nf-templates-all.css - - ${staging.dir}/css/main.css - ${staging.dir}/css/banner.css - ${staging.dir}/css/dialog.css - ${staging.dir}/css/templates.css - - true ${project.build.directory}/${project.build.finalName}/css/nf-bulletin-board-all.css @@ -911,7 +873,6 @@ css/nf-counters-all.css, css/nf-cluster-all.css, css/nf-users-all.css, - css/nf-templates-all.css, css/nf-bulletin-board-all.css, css/nf-login-all.css, css/nf-logout-all.css, @@ -935,7 +896,6 @@ js/nf/counters/nf-counters-all.js, js/nf/cluster/nf-cluster-all.js, js/nf/users/nf-users-all.js, - js/nf/templates/nf-templates-all.js, js/nf/bulletin-board/nf-bulletin-board-all.js, js/nf/login/nf-login-all.js, js/nf/logout/nf-logout-all.js, diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/canvas.properties b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/canvas.properties index 102ec8a523..5a03e7d5db 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/canvas.properties +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/canvas.properties @@ -88,7 +88,6 @@ nf.canvas.script.tags=\n\ \n\ \n\ -\n\ \n\ \n\ \n\ diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/templates-min.properties b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/templates-min.properties deleted file mode 100644 index f0b78ec3b0..0000000000 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/templates-min.properties +++ /dev/null @@ -1,19 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -nf.templates.script.tags= -nf.templates.style.tags=\n\ -\n\ - \ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/templates.properties b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/templates.properties deleted file mode 100644 index 329130e62a..0000000000 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/resources/filters/templates.properties +++ /dev/null @@ -1,30 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -nf.templates.script.tags=\n\ -\n\ -\n\ -\n\ -\n\ -\n\ -\n\ -\n\ - -nf.templates.style.tags=\n\ -\n\ -\n\ -\n\ -\n\ - \ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp index 603ffbb606..51e1e08160 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp @@ -119,9 +119,6 @@ - - - diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/templates.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/templates.jsp deleted file mode 100644 index 52f1582b55..0000000000 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/templates.jsp +++ /dev/null @@ -1,66 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---%> -<%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> - - - - NiFi Templates - - - - ${nf.templates.style.tags} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${nf.templates.script.tags} - - - - - - - - - diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/bulletin-board/bulletin-board-content.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/bulletin-board/bulletin-board-content.jsp index 39fa055a79..39f0a027d2 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/bulletin-board/bulletin-board-content.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/bulletin-board/bulletin-board-content.jsp @@ -17,7 +17,7 @@ <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %>
-
NiFi Templates
+
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/canvas-header.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/canvas-header.jsp index ee33e6af4d..d323482af1 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/canvas-header.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/canvas-header.jsp @@ -174,13 +174,6 @@ - - - Templates - - - diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/instantiate-template-dialog.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/instantiate-template-dialog.jsp deleted file mode 100644 index ea7fdf9925..0000000000 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/instantiate-template-dialog.jsp +++ /dev/null @@ -1,25 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---%> -<%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> - diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/new-template-dialog.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/new-template-dialog.jsp deleted file mode 100644 index 0aaa8d6efd..0000000000 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/new-template-dialog.jsp +++ /dev/null @@ -1,33 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---%> -<%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> - \ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/policy-management.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/policy-management.jsp index 28a3c74c3a..f9c82f0435 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/policy-management.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/policy-management.jsp @@ -44,16 +44,6 @@
-