You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2022/02/14 21:06:00 UTC

[incubator-streampipes] branch experimental-module-federation-494 updated: [hotfix] Fix image asset path

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch experimental-module-federation-494
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/experimental-module-federation-494 by this push:
     new 1d5f93f  [hotfix] Fix image asset path
1d5f93f is described below

commit 1d5f93f413baf758e0e5d814e9c206d18acb81c5
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Mon Feb 14 22:04:21 2022 +0100

    [hotfix] Fix image asset path
---
 .../java/org/apache/streampipes/backend/UnauthenticatedInterfaces.java  | 1 +
 .../java/org/apache/streampipes/manager/assets/ImagePathReplacer.java   | 2 +-
 ui/package.json                                                         | 2 +-
 .../pipeline-element-documentation.component.html                       | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/streampipes-backend/src/main/java/org/apache/streampipes/backend/UnauthenticatedInterfaces.java b/streampipes-backend/src/main/java/org/apache/streampipes/backend/UnauthenticatedInterfaces.java
index 56036cd..1a5b837 100644
--- a/streampipes-backend/src/main/java/org/apache/streampipes/backend/UnauthenticatedInterfaces.java
+++ b/streampipes-backend/src/main/java/org/apache/streampipes/backend/UnauthenticatedInterfaces.java
@@ -33,6 +33,7 @@ public class UnauthenticatedInterfaces {
             "/api/v2/restore-password/*",
             "/api/v2/activate-account/*",
             "/api/v2/pe/*/assets/icon",
+            "/api/v2/pe/*/assets/icon.png",
             "/api/v2/connect/master/description/*/assets/icon",
             "/api/openapi.json",
             "/api/auth/**",
diff --git a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/assets/ImagePathReplacer.java b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/assets/ImagePathReplacer.java
index 61b0271..b17cb3a 100644
--- a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/assets/ImagePathReplacer.java
+++ b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/assets/ImagePathReplacer.java
@@ -25,7 +25,7 @@ public class ImagePathReplacer {
   private static final String IMAGE_REGEX = "(<img.*src=\")(.*)(\")";
   private static final Pattern pattern = Pattern.compile(IMAGE_REGEX);
 
-  private static final String API_PREFIX = "streampipes-backend/api/v2/pe/";
+  private static final String API_PREFIX = "/streampipes-backend/api/v2/pe/";
   private static final String API_APPENDIX = "/assets/";
 
   private String originalContent;
diff --git a/ui/package.json b/ui/package.json
index 45db808..157ffd6 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -11,7 +11,7 @@
     "build-platform-services": "ng build @streampipes/platform-services && npm install @streampipes/platform-services@file:./dist/streampipes/platform-services --no-save",
     "start": "node ./deployment/prebuild.js && npm run build-platform-services && ng serve",
     "test": "node ./deployment/prebuild.js && npm run build-platform-services && ng test",
-    "start-plain": "ng serve",
+    "start-plain": "npm run build-platform-services && ng serve",
     "build-plain": "set NODE_OPTIONS=--max-old-space-size=10192 && npm run build-platform-services && ng build --configuration production",
     "run-prebuild-script": "node ./deployment/prebuild.js",
     "build": "node ./deployment/prebuild.js && set NODE_OPTIONS=--max-old-space-size=10192 && npm run build-platform-services && ng build --configuration production",
diff --git a/ui/src/app/editor/components/pipeline-element-documentation/pipeline-element-documentation.component.html b/ui/src/app/editor/components/pipeline-element-documentation/pipeline-element-documentation.component.html
index 99397c7..3cb34c9 100644
--- a/ui/src/app/editor/components/pipeline-element-documentation/pipeline-element-documentation.component.html
+++ b/ui/src/app/editor/components/pipeline-element-documentation/pipeline-element-documentation.component.html
@@ -19,6 +19,6 @@
 <p showdown="{{documentationMarkdown}}" *ngIf="documentationMarkdown && !error" [ngClass]="useStyling ? 'note' : ''">
 
 </p>
-<p *ngIf="error" ng-class="useStyling ? 'note' : ''">
+<p *ngIf="error" [ngClass]="useStyling ? 'note' : ''">
     (no documentation available)
 </p>