Create local build profile for designer-client 61/116561/2
authorAhmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Mon, 4 Jan 2021 12:45:26 +0000 (14:45 +0200)
committerSingal, Kapil (ks220y) <ks220y@att.com>
Mon, 4 Jan 2021 15:26:15 +0000 (10:26 -0500)
update loader logo

Issue-ID: CCSDK-3072, CCSDK-2433

Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I47bdc099727342ca449a14085f648ae9aa07cf69

cds-ui/designer-client/pom.xml
cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts
cds-ui/designer-client/src/app/modules/feature-modules/packages/packages.module.ts
cds-ui/pom.xml
pom.xml

index 6ed71b2..7d735e4 100644 (file)
@@ -73,6 +73,18 @@ limitations under the License.
                         <phase>generate-resources</phase>
                         <configuration>
                             <arguments>run build</arguments>
+                            <skip>${npm.skipBuild}</skip>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>npm build local</id>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <arguments>run build:local</arguments>
+                            <skip>${npm.skipBuildLocal}</skip>
                         </configuration>
                     </execution>
                 </executions>
index c69bf1b..7ab8ad7 100644 (file)
@@ -120,7 +120,10 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl
                     this.downloadCBAPackage(bluePrintDetailModels);
                     this.packageCreationStore.clear();
                 }
-            }, err => { },
+                this.ngxService.stop();
+            }, err => {
+                this.ngxService.stop();
+            },
             () => {
                 //  this.ngxService.stop();
             });
@@ -132,7 +135,10 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl
                 const blob = new Blob([response], { type: 'application/octet-stream' });
                 this.currentBlob = blob;
                 this.packageCreationExtractionService.extractBlobToStore(blob);
-            }, err => { },
+            }, err => {
+                console.log(err);
+                this.ngxService.stop();
+            },
                 () => {
                     this.ngxService.stop();
                 });
index e231ebe..0a43364 100644 (file)
@@ -37,7 +37,7 @@ import { FunctionsAttributeComponent } from './designer/functions-attribute/func
 import { ActionAttributesComponent } from './designer/action-attributes/action-attributes.component';
 import { MatInputModule, MatPaginatorModule, MatProgressSpinnerModule, MatSortModule, MatTableModule } from '@angular/material';
 import { TopologyTemplateComponent } from './package-creation/topology-template/topology-template.component';
-import {CollapseModule} from 'ngx-bootstrap/collapse';
+import { CollapseModule } from 'ngx-bootstrap/collapse';
 
 @NgModule({
     declarations: [PackagesDashboardComponent,
@@ -77,7 +77,35 @@ import {CollapseModule} from 'ngx-bootstrap/collapse';
         AceEditorModule,
         DataTablesModule,
         // Import NgxUiLoaderModule
-        NgxUiLoaderModule,
+        NgxUiLoaderModule.forRoot({
+            bgsColor: 'red',
+            bgsOpacity: 0.5,
+            bgsPosition: 'bottom-right',
+            bgsSize: 60,
+            bgsType: 'ball-spin-clockwise',
+            blur: 5,
+            delay: 0,
+            fgsColor: '#63bdba',
+            fgsPosition: 'center-center',
+            fgsSize: 60,
+            fgsType: 'rectangle-bounce',
+            gap: 24,
+            logoPosition: 'center-center',
+            logoSize: 120,
+            logoUrl: 'assets/img/logo-icon.svg',
+            masterLoaderId: 'master',
+            overlayBorderRadius: '0',
+            overlayColor: 'rgba(40, 40, 40, 0.8)',
+            pbColor: 'red',
+            pbDirection: 'ltr',
+            pbThickness: 3,
+            hasProgressBar: true,
+            text: '',
+            textColor: '#FFFFFF',
+            textPosition: 'center-center',
+            maxTime: -1,
+            minTime: 300
+        }),
         TourMatMenuModule.forRoot(),
         MatInputModule,
         MatTableModule,
index 3e7d534..5b12779 100644 (file)
@@ -44,5 +44,24 @@ limitations under the License.
 
     <properties>
         <npm.executable>npm</npm.executable>
+        <!-- Properties for CDS-GUI to npm run build:local -->
+        <npm.skipBuild>false</npm.skipBuild>
+        <npm.skipBuildLocal>true</npm.skipBuildLocal>
     </properties>
+
+    <profiles>
+        <!-- Profile to either run npm build or npm build:local -->
+        <profile>
+            <id>npmLocal</id>
+            <activation>
+                <property>
+                    <name>npmLocal</name>
+                </property>
+            </activation>
+            <properties>
+                <npm.skipBuild>true</npm.skipBuild>
+                <npm.skipBuildLocal>false</npm.skipBuildLocal>
+            </properties>
+        </profile>
+    </profiles>
 </project>
diff --git a/pom.xml b/pom.xml
index 47c948e..dc7ee77 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -61,6 +61,7 @@ limitations under the License.
         <!-- Properties for POM Format -->
         <format.skipValidate>false</format.skipValidate>
         <format.skipExecute>true</format.skipExecute>
+
         <java.version>11</java.version>
         <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
         <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>