From 0cf5d13f9977deb533eabbef767733d07a71a1cc Mon Sep 17 00:00:00 2001 From: Pravakar Garnayak Date: Thu, 25 Apr 2019 17:59:50 -0700 Subject: [PATCH] Enabled AppInsights integration (#149) * Enabled AppInsights integration - Filter events are changed as there are new filter categories. - Added open in vs code event. * Included id property in event data * Download count stat on click of deploy and open in vs code link --- .../ClientApp/.env.development | 1 + .../ClientApp/.env.production | 1 + .../ClientApp/public/index.html | 14 +++++- .../components/ContentHeader/ContentHeader.js | 8 +++- .../src/components/DetailView/ActionBar.js | 46 ++++++++++++++++++- .../src/components/DetailView/DetailView.js | 1 + .../src/components/sidebar/SideBar.js | 7 ++- .../ClientApp/src/helpers/appinsights.js | 6 +++ .../ClientApp/src/helpers/index.js | 5 +- .../ClientApp/src/services/library.service.js | 19 ++++++-- 10 files changed, 96 insertions(+), 12 deletions(-) create mode 100644 ServerlessLibraryAPI/ClientApp/.env.development create mode 100644 ServerlessLibraryAPI/ClientApp/.env.production create mode 100644 ServerlessLibraryAPI/ClientApp/src/helpers/appinsights.js diff --git a/ServerlessLibraryAPI/ClientApp/.env.development b/ServerlessLibraryAPI/ClientApp/.env.development new file mode 100644 index 0000000..97dbc56 --- /dev/null +++ b/ServerlessLibraryAPI/ClientApp/.env.development @@ -0,0 +1 @@ +REACT_APP_INSTRUMENTATION_KEY= \ No newline at end of file diff --git a/ServerlessLibraryAPI/ClientApp/.env.production b/ServerlessLibraryAPI/ClientApp/.env.production new file mode 100644 index 0000000..061e090 --- /dev/null +++ b/ServerlessLibraryAPI/ClientApp/.env.production @@ -0,0 +1 @@ +REACT_APP_INSTRUMENTATION_KEY=d35b5caf-a276-467c-9ac7-f7f7d84ea171 \ No newline at end of file diff --git a/ServerlessLibraryAPI/ClientApp/public/index.html b/ServerlessLibraryAPI/ClientApp/public/index.html index 8082ecc..5714b44 100644 --- a/ServerlessLibraryAPI/ClientApp/public/index.html +++ b/ServerlessLibraryAPI/ClientApp/public/index.html @@ -21,7 +21,19 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - ServerlessLibraryAPI + Azure Serverless Community Library +