From 728e11c2214b1c06f5e872747dbefe7964cdc6c7 Mon Sep 17 00:00:00 2001
From: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com>
Date: Thu, 11 Aug 2022 14:53:06 +0200
Subject: [PATCH] Fix/loading authentication service (#1076)
* Fix client assets loading issue for Authentication service
* Fix loading AuthenticationService script in client assets
---
src/AzureIoTHub.Portal/Client/assets/src/index.js | 2 ++
src/AzureIoTHub.Portal/Client/assets/src/index.js.map | 2 +-
src/AzureIoTHub.Portal/Client/assets/src/index.ts | 1 +
src/AzureIoTHub.Portal/Client/wwwroot/index.html | 2 +-
src/AzureIoTHub.Portal/Client/wwwroot/index.js | 1 -
5 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 src/AzureIoTHub.Portal/Client/wwwroot/index.js
diff --git a/src/AzureIoTHub.Portal/Client/assets/src/index.js b/src/AzureIoTHub.Portal/Client/assets/src/index.js
index fa69a5a9d..eba3f27d9 100644
--- a/src/AzureIoTHub.Portal/Client/assets/src/index.js
+++ b/src/AzureIoTHub.Portal/Client/assets/src/index.js
@@ -1,2 +1,4 @@
"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+require("./AuthenticationService");
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/src/AzureIoTHub.Portal/Client/assets/src/index.js.map b/src/AzureIoTHub.Portal/Client/assets/src/index.js.map
index 87e53b917..4077cf446 100644
--- a/src/AzureIoTHub.Portal/Client/assets/src/index.js.map
+++ b/src/AzureIoTHub.Portal/Client/assets/src/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAAA,mCAAiC"}
\ No newline at end of file
diff --git a/src/AzureIoTHub.Portal/Client/assets/src/index.ts b/src/AzureIoTHub.Portal/Client/assets/src/index.ts
index e69de29bb..357803743 100644
--- a/src/AzureIoTHub.Portal/Client/assets/src/index.ts
+++ b/src/AzureIoTHub.Portal/Client/assets/src/index.ts
@@ -0,0 +1 @@
+import './AuthenticationService';
diff --git a/src/AzureIoTHub.Portal/Client/wwwroot/index.html b/src/AzureIoTHub.Portal/Client/wwwroot/index.html
index fbc57aea0..d3c4ebf90 100644
--- a/src/AzureIoTHub.Portal/Client/wwwroot/index.html
+++ b/src/AzureIoTHub.Portal/Client/wwwroot/index.html
@@ -45,7 +45,7 @@
🗙
-
+
diff --git a/src/AzureIoTHub.Portal/Client/wwwroot/index.js b/src/AzureIoTHub.Portal/Client/wwwroot/index.js
deleted file mode 100644
index 5f282702b..000000000
--- a/src/AzureIoTHub.Portal/Client/wwwroot/index.js
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file