Add postman collection for UI HTPP server
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 28 Aug 2022 11:29:55 +0000 (13:29 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 28 Aug 2022 11:29:55 +0000 (13:29 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
12 files changed:
docker/Dockerfile
docker/authorization-tags.json [new file with mode: 0644]
docker/docker-compose.yml
package-lock.json
package.json
src/assets/CSSimulatorUIProtocol.postman_collection.json [new file with mode: 0644]
src/charging-station/MessageChannelUtils.ts
src/ui/web/package-lock.json
src/ui/web/package.json
src/ui/web/src/composables/UIClient.ts
src/ui/web/src/types/ConfigurationType.ts
src/ui/web/tsconfig.json

index 9843d05b86ed4b7defe6c6c756ae68fc51284572..2aae47f2c2a69f0b73154601ae4e3af8ffd743a0 100644 (file)
@@ -9,6 +9,7 @@ WORKDIR /usr/builder
 COPY package.json package-lock.json tsconfig.json rollup.config.mjs prepare.js build-requirements.js ./
 COPY src ./src
 COPY docker/config.json ./src/assets/config.json
+COPY docker/authorization-tags.json ./src/assets/authorization-tags.json
 RUN npm set progress=false && npm config set depth 0 && npm cache clean --force && npm install
 RUN npm run build
 
@@ -25,10 +26,9 @@ FROM node:lts-alpine
 ARG STACK_TRACE_LIMIT
 ARG MAX_OLD_SPACE_SIZE
 
-WORKDIR /usr/app
-
 ENV NODE_OPTIONS="--stack-trace-limit=${STACK_TRACE_LIMIT} --max-old-space-size=${MAX_OLD_SPACE_SIZE}"
 
+WORKDIR /usr/app
 COPY --from=builder /usr/builder/webui ./webui
 COPY --from=builder /usr/builder/node_modules ./node_modules
 COPY --from=builder /usr/builder/dist ./dist
diff --git a/docker/authorization-tags.json b/docker/authorization-tags.json
new file mode 100644 (file)
index 0000000..b94e83f
--- /dev/null
@@ -0,0 +1 @@
+["test"]
index db6f914cdf6e6e42ac5c199d6d6fbefb316ec8ea..6c4a731084feba15dc6e5c66c1eba41f0df592b9 100644 (file)
@@ -12,5 +12,7 @@ services:
         MAX_OLD_SPACE_SIZE: 1024
     networks:
       - ev_network
+    expose:
+      - 8080
     ports:
       - '3030:3030'
index f94bfbd83036923749a7c3d8f1ad367a38bee627..d91dc6a0127111c361f56105334bc85625715175 100644 (file)
@@ -30,7 +30,7 @@
         "uuid": "^8.3.2",
         "winston": "^3.8.1",
         "winston-daily-rotate-file": "^4.7.1",
-        "ws": "^8.8.0"
+        "ws": "^8.8.1"
       },
       "devDependencies": {
         "@istanbuljs/nyc-config-typescript": "^1.0.2",
index fc47c655590fd10a38bf53ce19ecdb175a7ba34d..d7f27019f3598f7f7b151d16dcc461f32f95d384 100644 (file)
     "uuid": "^8.3.2",
     "winston": "^3.8.1",
     "winston-daily-rotate-file": "^4.7.1",
-    "ws": "^8.8.0"
+    "ws": "^8.8.1"
   },
   "optionalDependencies": {
     "bufferutil": "^4.0.6",
diff --git a/src/assets/CSSimulatorUIProtocol.postman_collection.json b/src/assets/CSSimulatorUIProtocol.postman_collection.json
new file mode 100644 (file)
index 0000000..fa62519
--- /dev/null
@@ -0,0 +1,299 @@
+{
+       "info": {
+               "_postman_id": "2d4009e7-04a8-4516-adaf-8b60780df9f4",
+               "name": "CSSimulatorUIProtocol",
+               "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
+               "_exporter_id": "23011687"
+       },
+       "item": [
+               {
+                       "name": "listChargingStations",
+                       "request": {
+                               "method": "POST",
+                               "header": [],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{}",
+                                       "options": {
+                                               "raw": {
+                                                       "language": "json"
+                                               }
+                                       }
+                               },
+                               "url": {
+                                       "raw": "{{baseUrl}}/{{protocol}}/{{version}}/listChargingStations",
+                                       "host": [
+                                               "{{baseUrl}}"
+                                       ],
+                                       "path": [
+                                               "{{protocol}}",
+                                               "{{version}}",
+                                               "listChargingStations"
+                                       ]
+                               }
+                       },
+                       "response": []
+               },
+               {
+                       "name": "startChargingStation",
+                       "request": {
+                               "method": "POST",
+                               "header": [],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\n    \"hashIds\": [\n        \"0058d8b50e422cce5bbd0c0a4ad13d5d657e8a88670dcf04c1b2b563fea3db5b96a3686278b374ed050e21baef89060e\",\n        \"331d024fea36e3e2483a0e5dc9376234241c8c099ad201a441437b23622c308555183f37cbc84a1818c1c45aaae50896\"\n    ]\n}",
+                                       "options": {
+                                               "raw": {
+                                                       "language": "json"
+                                               }
+                                       }
+                               },
+                               "url": {
+                                       "raw": "{{baseUrl}}/{{protocol}}/{{version}}/startChargingStation",
+                                       "host": [
+                                               "{{baseUrl}}"
+                                       ],
+                                       "path": [
+                                               "{{protocol}}",
+                                               "{{version}}",
+                                               "startChargingStation"
+                                       ]
+                               }
+                       },
+                       "response": []
+               },
+               {
+                       "name": "stopChargingStation",
+                       "request": {
+                               "method": "POST",
+                               "header": [],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\n    \"hashIds\": [\n        \"0058d8b50e422cce5bbd0c0a4ad13d5d657e8a88670dcf04c1b2b563fea3db5b96a3686278b374ed050e21baef89060e\",\n        \"331d024fea36e3e2483a0e5dc9376234241c8c099ad201a441437b23622c308555183f37cbc84a1818c1c45aaae50896\"\n    ]\n}",
+                                       "options": {
+                                               "raw": {
+                                                       "language": "json"
+                                               }
+                                       }
+                               },
+                               "url": {
+                                       "raw": "{{baseUrl}}/{{protocol}}/{{version}}/stopChargingStation",
+                                       "host": [
+                                               "{{baseUrl}}"
+                                       ],
+                                       "path": [
+                                               "{{protocol}}",
+                                               "{{version}}",
+                                               "stopChargingStation"
+                                       ]
+                               }
+                       },
+                       "response": []
+               },
+               {
+                       "name": "startSimulator",
+                       "request": {
+                               "method": "POST",
+                               "header": [],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{}",
+                                       "options": {
+                                               "raw": {
+                                                       "language": "json"
+                                               }
+                                       }
+                               },
+                               "url": {
+                                       "raw": "{{baseUrl}}/{{protocol}}/{{version}}/startSimulator",
+                                       "host": [
+                                               "{{baseUrl}}"
+                                       ],
+                                       "path": [
+                                               "{{protocol}}",
+                                               "{{version}}",
+                                               "startSimulator"
+                                       ]
+                               }
+                       },
+                       "response": []
+               },
+               {
+                       "name": "stopSimulator",
+                       "request": {
+                               "method": "POST",
+                               "header": [],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{}",
+                                       "options": {
+                                               "raw": {
+                                                       "language": "json"
+                                               }
+                                       }
+                               },
+                               "url": {
+                                       "raw": "{{baseUrl}}/{{protocol}}/{{version}}/stopSimulator",
+                                       "host": [
+                                               "{{baseUrl}}"
+                                       ],
+                                       "path": [
+                                               "{{protocol}}",
+                                               "{{version}}",
+                                               "stopSimulator"
+                                       ]
+                               }
+                       },
+                       "response": []
+               },
+               {
+                       "name": "openConnection",
+                       "request": {
+                               "method": "POST",
+                               "header": [],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\n    \"hashIds\": [\n        \"0058d8b50e422cce5bbd0c0a4ad13d5d657e8a88670dcf04c1b2b563fea3db5b96a3686278b374ed050e21baef89060e\",\n        \"331d024fea36e3e2483a0e5dc9376234241c8c099ad201a441437b23622c308555183f37cbc84a1818c1c45aaae50896\"\n    ]\n}",
+                                       "options": {
+                                               "raw": {
+                                                       "language": "json"
+                                               }
+                                       }
+                               },
+                               "url": {
+                                       "raw": "{{baseUrl}}/{{protocol}}/{{version}}/openConnection",
+                                       "host": [
+                                               "{{baseUrl}}"
+                                       ],
+                                       "path": [
+                                               "{{protocol}}",
+                                               "{{version}}",
+                                               "openConnection"
+                                       ]
+                               }
+                       },
+                       "response": []
+               },
+               {
+                       "name": "closeConnection",
+                       "request": {
+                               "method": "POST",
+                               "header": [],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\n    \"hashIds\": [\n        \"0058d8b50e422cce5bbd0c0a4ad13d5d657e8a88670dcf04c1b2b563fea3db5b96a3686278b374ed050e21baef89060e\",\n        \"331d024fea36e3e2483a0e5dc9376234241c8c099ad201a441437b23622c308555183f37cbc84a1818c1c45aaae50896\"\n    ]\n}",
+                                       "options": {
+                                               "raw": {
+                                                       "language": "json"
+                                               }
+                                       }
+                               },
+                               "url": {
+                                       "raw": "{{baseUrl}}/{{protocol}}/{{version}}/closeConnection",
+                                       "host": [
+                                               "{{baseUrl}}"
+                                       ],
+                                       "path": [
+                                               "{{protocol}}",
+                                               "{{version}}",
+                                               "closeConnection"
+                                       ]
+                               }
+                       },
+                       "response": []
+               },
+               {
+                       "name": "startTransaction",
+                       "request": {
+                               "method": "POST",
+                               "header": [],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\n    \"hashIds\": [\n        \"0058d8b50e422cce5bbd0c0a4ad13d5d657e8a88670dcf04c1b2b563fea3db5b96a3686278b374ed050e21baef89060e\"\n    ],\n    \"connectorId\": 1,\n    \"idTag\": \"test\"\n}",
+                                       "options": {
+                                               "raw": {
+                                                       "language": "json"
+                                               }
+                                       }
+                               },
+                               "url": {
+                                       "raw": "{{baseUrl}}/{{protocol}}/{{version}}/startTransaction",
+                                       "host": [
+                                               "{{baseUrl}}"
+                                       ],
+                                       "path": [
+                                               "{{protocol}}",
+                                               "{{version}}",
+                                               "startTransaction"
+                                       ]
+                               }
+                       },
+                       "response": []
+               },
+               {
+                       "name": "stopTransaction",
+                       "request": {
+                               "method": "POST",
+                               "header": [],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\n    \"hashIds\": [\n        \"0058d8b50e422cce5bbd0c0a4ad13d5d657e8a88670dcf04c1b2b563fea3db5b96a3686278b374ed050e21baef89060e\"\n    ],\n    \"transactionId\": 1236043451\n}",
+                                       "options": {
+                                               "raw": {
+                                                       "language": "json"
+                                               }
+                                       }
+                               },
+                               "url": {
+                                       "raw": "{{baseUrl}}/{{protocol}}/{{version}}/stopTransaction",
+                                       "host": [
+                                               "{{baseUrl}}"
+                                       ],
+                                       "path": [
+                                               "{{protocol}}",
+                                               "{{version}}",
+                                               "stopTransaction"
+                                       ]
+                               }
+                       },
+                       "response": []
+               }
+       ],
+       "event": [
+               {
+                       "listen": "prerequest",
+                       "script": {
+                               "type": "text/javascript",
+                               "exec": [
+                                       ""
+                               ]
+                       }
+               },
+               {
+                       "listen": "test",
+                       "script": {
+                               "type": "text/javascript",
+                               "exec": [
+                                       ""
+                               ]
+                       }
+               }
+       ],
+       "variable": [
+               {
+                       "key": "baseUrl",
+                       "value": "http://localhost:8080",
+                       "type": "string"
+               },
+               {
+                       "key": "protocol",
+                       "value": "ui",
+                       "type": "string"
+               },
+               {
+                       "key": "version",
+                       "value": "0.0.1",
+                       "type": "string"
+               }
+       ]
+}
\ No newline at end of file
index 4cf037ba28e890dbb82eeae840dcc42bf221dbb5..2371dd3df8a1146f6d0961ca26629dcba35aade8 100644 (file)
@@ -56,6 +56,7 @@ export class MessageChannelUtils {
       stopped: chargingStation.stopped,
       bootNotificationResponse: chargingStation.bootNotificationResponse,
       connectors: Array.from(chargingStation.connectors.values()).map(
+        // eslint-disable-next-line @typescript-eslint/no-unused-vars
         ({ transactionSetInterval, ...connectorStatusRest }) => connectorStatusRest
       ),
     };
index 7963e1f8109a2714e16bf9a609b0fa27bf589261..20885e3555d1c7639c6b1004654a10a9280f48dc 100644 (file)
       "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
       "dev": true
     },
+    "node_modules/bufferutil": {
+      "version": "4.0.6",
+      "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.6.tgz",
+      "integrity": "sha512-jduaYOYtnio4aIAyc6UbvPCVcgq7nYpVnucyxr6eCYg/Woad9Hf/oxxBRDnGGjPfjUm6j5O/uBWhIu4iLebFaw==",
+      "dev": true,
+      "hasInstallScript": true,
+      "optional": true,
+      "peer": true,
+      "dependencies": {
+        "node-gyp-build": "^4.3.0"
+      },
+      "engines": {
+        "node": ">=6.14.2"
+      }
+    },
     "node_modules/builtins": {
       "version": "1.0.3",
       "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz",
         "node": ">=12"
       }
     },
-    "node_modules/jsdom/node_modules/ws": {
-      "version": "8.8.1",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz",
-      "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==",
-      "dev": true,
-      "engines": {
-        "node": ">=10.0.0"
-      },
-      "peerDependencies": {
-        "bufferutil": "^4.0.1",
-        "utf-8-validate": "^5.0.2"
-      },
-      "peerDependenciesMeta": {
-        "bufferutil": {
-          "optional": true
-        },
-        "utf-8-validate": {
-          "optional": true
-        }
-      }
-    },
     "node_modules/jsesc": {
       "version": "2.5.2",
       "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
         "node": ">= 6.13.0"
       }
     },
+    "node_modules/node-gyp-build": {
+      "version": "4.5.0",
+      "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz",
+      "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==",
+      "dev": true,
+      "optional": true,
+      "peer": true,
+      "bin": {
+        "node-gyp-build": "bin.js",
+        "node-gyp-build-optional": "optional.js",
+        "node-gyp-build-test": "build-test.js"
+      }
+    },
     "node_modules/node-notifier": {
       "version": "10.0.1",
       "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-10.0.1.tgz",
       "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==",
       "dev": true
     },
+    "node_modules/subscriptions-transport-ws/node_modules/ws": {
+      "version": "7.5.9",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
+      "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+      "dev": true,
+      "engines": {
+        "node": ">=8.3.0"
+      },
+      "peerDependencies": {
+        "bufferutil": "^4.0.1",
+        "utf-8-validate": "^5.0.2"
+      },
+      "peerDependenciesMeta": {
+        "bufferutil": {
+          "optional": true
+        },
+        "utf-8-validate": {
+          "optional": true
+        }
+      }
+    },
     "node_modules/supports-color": {
       "version": "5.5.0",
       "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
         "node": ">=0.10.0"
       }
     },
+    "node_modules/utf-8-validate": {
+      "version": "5.0.9",
+      "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.9.tgz",
+      "integrity": "sha512-Yek7dAy0v3Kl0orwMlvi7TPtiCNrdfHNd7Gcc/pLq4BLXqfAmd0J7OWMizUQnTTJsyjKn02mU7anqwfmUP4J8Q==",
+      "dev": true,
+      "hasInstallScript": true,
+      "optional": true,
+      "peer": true,
+      "dependencies": {
+        "node-gyp-build": "^4.3.0"
+      },
+      "engines": {
+        "node": ">=6.14.2"
+      }
+    },
     "node_modules/util-deprecate": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
         "node": ">=8"
       }
     },
+    "node_modules/webpack-bundle-analyzer/node_modules/ws": {
+      "version": "7.5.9",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
+      "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+      "dev": true,
+      "engines": {
+        "node": ">=8.3.0"
+      },
+      "peerDependencies": {
+        "bufferutil": "^4.0.1",
+        "utf-8-validate": "^5.0.2"
+      },
+      "peerDependenciesMeta": {
+        "bufferutil": {
+          "optional": true
+        },
+        "utf-8-validate": {
+          "optional": true
+        }
+      }
+    },
     "node_modules/webpack-chain": {
       "version": "6.5.1",
       "resolved": "https://registry.npmjs.org/webpack-chain/-/webpack-chain-6.5.1.tgz",
         "url": "https://opencollective.com/webpack"
       }
     },
-    "node_modules/webpack-dev-server/node_modules/ws": {
-      "version": "8.8.1",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz",
-      "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==",
-      "dev": true,
-      "engines": {
-        "node": ">=10.0.0"
-      },
-      "peerDependencies": {
-        "bufferutil": "^4.0.1",
-        "utf-8-validate": "^5.0.2"
-      },
-      "peerDependenciesMeta": {
-        "bufferutil": {
-          "optional": true
-        },
-        "utf-8-validate": {
-          "optional": true
-        }
-      }
-    },
     "node_modules/webpack-merge": {
       "version": "5.8.0",
       "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz",
       }
     },
     "node_modules/ws": {
-      "version": "7.5.9",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
-      "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+      "version": "8.8.1",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz",
+      "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==",
       "dev": true,
       "engines": {
-        "node": ">=8.3.0"
+        "node": ">=10.0.0"
       },
       "peerDependencies": {
         "bufferutil": "^4.0.1",
       "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
       "dev": true
     },
+    "bufferutil": {
+      "version": "4.0.6",
+      "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.6.tgz",
+      "integrity": "sha512-jduaYOYtnio4aIAyc6UbvPCVcgq7nYpVnucyxr6eCYg/Woad9Hf/oxxBRDnGGjPfjUm6j5O/uBWhIu4iLebFaw==",
+      "dev": true,
+      "optional": true,
+      "peer": true,
+      "requires": {
+        "node-gyp-build": "^4.3.0"
+      }
+    },
     "builtins": {
       "version": "1.0.3",
       "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz",
             "tr46": "^3.0.0",
             "webidl-conversions": "^7.0.0"
           }
-        },
-        "ws": {
-          "version": "8.8.1",
-          "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz",
-          "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==",
-          "dev": true,
-          "requires": {}
         }
       }
     },
       "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==",
       "dev": true
     },
+    "node-gyp-build": {
+      "version": "4.5.0",
+      "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz",
+      "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==",
+      "dev": true,
+      "optional": true,
+      "peer": true
+    },
     "node-notifier": {
       "version": "10.0.1",
       "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-10.0.1.tgz",
           "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz",
           "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==",
           "dev": true
+        },
+        "ws": {
+          "version": "7.5.9",
+          "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
+          "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+          "dev": true,
+          "requires": {}
         }
       }
     },
       "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==",
       "dev": true
     },
+    "utf-8-validate": {
+      "version": "5.0.9",
+      "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.9.tgz",
+      "integrity": "sha512-Yek7dAy0v3Kl0orwMlvi7TPtiCNrdfHNd7Gcc/pLq4BLXqfAmd0J7OWMizUQnTTJsyjKn02mU7anqwfmUP4J8Q==",
+      "dev": true,
+      "optional": true,
+      "peer": true,
+      "requires": {
+        "node-gyp-build": "^4.3.0"
+      }
+    },
     "util-deprecate": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
           "requires": {
             "has-flag": "^4.0.0"
           }
+        },
+        "ws": {
+          "version": "7.5.9",
+          "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
+          "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+          "dev": true,
+          "requires": {}
         }
       }
     },
             "ajv-formats": "^2.1.1",
             "ajv-keywords": "^5.0.0"
           }
-        },
-        "ws": {
-          "version": "8.8.1",
-          "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz",
-          "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==",
-          "dev": true,
-          "requires": {}
         }
       }
     },
       }
     },
     "ws": {
-      "version": "7.5.9",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
-      "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+      "version": "8.8.1",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz",
+      "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==",
       "dev": true,
       "requires": {}
     },
index 03e86c5118b8ea806f26bb2525bf42cb9ca64606..4e9f36dac7101e119b9c39abdff6edf405e7b060 100644 (file)
@@ -1,6 +1,10 @@
 {
   "name": "webui",
   "version": "0.1.0",
+  "readme": "README.md",
+  "gitHooks": {
+    "pre-commit": "lint-staged"
+  },
   "scripts": {
     "start": "npm run build && node start.js",
     "serve": "vue-cli-service serve",
@@ -43,9 +47,5 @@
     "prettier": "^2.7.1",
     "typescript": "~4.8.2"
   },
-  "_id": "webui@0.1.0",
-  "gitHooks": {
-    "pre-commit": "lint-staged"
-  },
-  "readme": "README.md"
+  "_id": "webui@0.1.0"
 }
index 0c30494dd95ff8f2bdec8dcd61d13d1746cc2017..c5e81a31030775f89475900aad579fba27f6dd9f 100644 (file)
@@ -30,7 +30,7 @@ export default class UIClient {
     return UIClient._instance;
   }
 
-  public registerWSonOpenListener(listener: (this: WebSocket, ev: Event) => void) {
+  public registerWSonOpenListener(listener: (event: Event) => void) {
     this._ws.addEventListener('open', listener);
   }
 
index ee7baae072e3c811a6ee87041a237b5121bfddef..69e2b9cd5b16d485b1ea8f050af7a4b19b370762 100644 (file)
@@ -5,5 +5,5 @@ export interface BaseConfig {
 export interface EMobilityConfig {
   host: string;
   port: number;
-  protocol: 'ui0.0.1';
+  protocol: string;
 }
index 9e934d1f7d301777f66938d292d13d4973815fc7..8269c9eba8597a914ffc19a31bed513f5032dc1f 100644 (file)
@@ -7,7 +7,6 @@
     "baseUrl": ".",
     "types": [
       "node",
-      "webpack-env",
       "mocha",
       "chai"
     ],