Jelajahi Sumber

added maf build config

tigger 1 tahun lalu
induk
melakukan
fe9177eb81

+ 38 - 1
angular.json

@@ -117,7 +117,44 @@
                   "glob": "*"
                 },
                 {
-                  "input": "src/src.leave",
+                  "input": "src/src.quotation",
+                  "output": "",
+                  "glob": "*/*"
+                }
+              ],
+              "fileReplacements": [
+                {
+                  "replace": "src/app/menu/menu.ts",
+                  "with":"src/app/menu/menu.quotation.ts"
+                }
+              ]
+            },
+            "maf-quot-prod": {
+              "budgets": [
+                {
+                  "type": "initial",
+                  "maximumWarning": "5000kb",
+                  "maximumError": "6mb"
+                },
+                {
+                  "type": "anyComponentStyle",
+                  "maximumWarning": "6kb",
+                  "maximumError": "8kb"
+                }
+              ],
+              "outputHashing": "all",
+              "assets": [
+                "src/favicon.ico",
+                "src/assets",
+                "src/config",
+                "src/manifest.webmanifest",
+                {
+                  "input": "src/src.maf.quotation",
+                  "output": "",
+                  "glob": "*"
+                },
+                {
+                  "input": "src/src.maf.quotation",
                   "output": "",
                   "glob": "*/*"
                 }

+ 1 - 0
build/build-quot-prod.cmd

@@ -0,0 +1 @@
+npm run build:quot:prod && xcopy /s /i /e /y "D:\development\node\fisapp-ui\dist\quotation\browser" "D:\development\node\fisapp-ui\dist\quotation\fisapp-ui" && 7z a -tzip D:/development/node/fisapp-ui/dist/quotation/1d0637df-8972-4e79-a6f7-82e86e4f6c09. D:/development/node/fisapp-ui/dist/quotation/fisapp-ui -pfisapp### && rmdir /s /q "D:\development\node\fisapp-ui\dist\quotation\fisapp-ui"

+ 0 - 1
build/build-quotation-prod.cmd

@@ -1 +0,0 @@
-npm run build:quotation:prod && xcopy /s /i /e /y "D:\development\node\fisapp-ui\dist\quotation\browser" "D:\development\node\fisapp-ui\dist\quotation\fisapp-ui" && 7z a -tzip D:/development/node/fisapp-ui/dist/quotation/1d0637df-8972-4e79-a6f7-82e86e4f6c09. D:/development/node/fisapp-ui/dist/quotation/fisapp-ui -pfisapp### && rmdir /s /q "D:\development\node\fisapp-ui\dist\quotation\fisapp-ui"

+ 1 - 0
build/maf-quot-prod.cmd

@@ -0,0 +1 @@
+npm run build:maf:quot:prod && xcopy /s /i /e /y "D:\development\node\fisapp-ui\dist\maf\quotation\browser" "D:\development\node\fisapp-ui\dist\maf\quotation\fisapp-ui" && 7z a -tzip D:/development/node/fisapp-ui/dist/maf/quotation/66d9f447-5c91-4f94-af7d-9c90d4c11ede. D:/development/node/fisapp-ui/dist/maf/quotation/fisapp-ui -pfisapp### && rmdir /s /q "D:\development\node\fisapp-ui\dist\maf\quotation\fisapp-ui"

+ 2 - 1
package.json

@@ -8,7 +8,8 @@
     "build:next": "ng build --base-href /next/ --aot --delete-output-path",
     "build:prod": "ng build --configuration production --output-path dist/rc --aot --delete-output-path",
     "build:leave:prod": "ng build --configuration leave-prod --output-path dist/leave --aot",
-    "build:quotation:prod": "ng build --configuration quotation-prod --output-path dist/quotation --aot",
+    "build:quot:prod": "ng build --configuration quotation-prod --output-path dist/quotation --aot",
+    "build:maf:quot:prod": "ng build --configuration maf-quot-prod --output-path dist/maf/quotation --aot",
     "watch": "ng build --watch --configuration development",
     "test": "ng test",
     "clean": "ng cache clean && npm cache clean --force"

+ 1 - 1
src/app/dashboard/dashboard.component.html

@@ -74,7 +74,7 @@
           </svg>
         -->
         <img id="site-logo" src="https://cdn.swopt.com/fis/image/fis-logo.webp" alt="FIS"/>
-        <h1>{{'welcome'|tr:'Welcome'}} @if (username()) {,<br/>{{username()}}}</h1>
+        <h1>{{'welcome'|tr:'Welcome'}}</h1>
       </div>
       <div class="divider" role="separator" aria-label="Divider"></div>
       <div class="right-side">

+ 12 - 0
src/src.maf.quotation/config/config.json

@@ -0,0 +1,12 @@
+{
+    "connection": {
+        "uacp": "https://ebid.mafrica.com.my:8081",
+        "uacp_ws": "https://ebid.mafrica.com.my/ws",
+        "uacpEmulation": "off",
+        "auth": {
+            "google": "https://api.swopt.com/auth/google",
+            "origin": "https://swopt.com:4205"
+        }
+    },
+    "sessionTimeoutDuration":1800000
+}

+ 57 - 0
src/src.maf.quotation/manifest.webmanifest

@@ -0,0 +1,57 @@
+{
+  "name": "Financial Information System",
+  "short_name": "FIS",
+  "theme_color": "#1976d2",
+  "background_color": "#fafafa",
+  "display": "fullscreen",
+  "scope": "./",
+  "start_url": "./#/dashboard",
+  "icons": [
+    {
+      "src": "assets/icons/icon-48x48.png",
+      "sizes": "48x48",
+      "type": "image/png",
+      "purpose": "maskable any"
+    },
+    {
+      "src": "assets/icons/icon-72x72.png",
+      "sizes": "72x72",
+      "type": "image/png",
+      "purpose": "maskable any"
+    },
+    {
+      "src": "assets/icons/icon-96x96.png",
+      "sizes": "96x96",
+      "type": "image/png",
+      "purpose": "maskable any"
+    },
+    {
+      "src": "assets/icons/icon-144x144.png",
+      "sizes": "144x144",
+      "type": "image/png",
+      "purpose": "maskable any"
+    },
+    {
+      "src": "assets/icons/icon-192x192.png",
+      "sizes": "192x192",
+      "type": "image/png",
+      "purpose": "maskable any"
+    },
+    {
+      "src": "assets/icons/icon-512x512.png",
+      "sizes": "512x512",
+      "type": "image/png",
+      "purpose": "maskable any"
+    }
+  ],
+  "shortcuts": [
+    {
+      "name": "View Sales Tender",
+      "url": "/#/tender;type=sales",
+      "icons": [{
+        "src": "https://cdn.swopt.com/media/icons/quotation.png",
+        "sizes": "192x192"
+      }]
+    }
+  ]
+}