Skip to content

Commit

Permalink
remove application insights
Browse files Browse the repository at this point in the history
  • Loading branch information
WheelerXie committed Apr 28, 2017
1 parent ff89e93 commit 6fe5f3c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 48 deletions.
16 changes: 0 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,6 @@
<script type="text/javascript" src="/public/macarons.js"></script>
<script type="text/javascript" src="/public/echarts-wordcloud.min.js"></script>
<script type="text/javascript" src="/public/world.js"></script>
<!--
To collect end-user usage analytics about your application,
insert the following script into each page you want to track.
Place this code immediately before the closing </head> tag,
and before any other scripts. Your first data will appear
automatically in just a few seconds.
-->
<script type="text/javascript">
var appInsights = window.appInsights || function (config) {
function i(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},u=document,e=window,o="script",s="AuthenticatedUserContext",h="start",c="stop",l="Track",a=l+"Event",v=l+"Page",y=u.createElement(o),r,f;y.src=config.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(y);try{t.cookie=u.cookie}catch(p){}for(t.queue=[],t.version="1.0",r=["Event","Exception","Metric","PageView","Trace","Dependency"];r.length;)i("track"+r.pop());return i("set"+s),i("clear"+s),i(h+a),i(c+a),i(h+v),i(c+v),i("flush"),config.disableExceptionTracking||(r="onerror",i("_"+r),f=e[r],e[r]=function(config,i,u,e,o){var s=f&&f(config,i,u,e,o);return s!==!0&&t["_"+r](config,i,u,e,o),s}),t
}({
instrumentationKey:"d46aafb9-7144-477d-b92d-cc00a9419e9e"
});
window.appInsights = appInsights;
appInsights.trackPageView();
</script>
</head>

<body>
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"angular-ui-router": "^1.0.0-beta.2",
"angular-websocket": "^2.0.1",
"angularjs-datepicker": "^2.1.7",
"applicationinsights": "^0.19.0",
"browserify": "^13.1.0",
"echarts": "^3.2.3",
"gulp": "^3.9.1",
Expand Down
35 changes: 7 additions & 28 deletions public/main.min.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions src/js/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
var appInsights = require("applicationinsights");
appInsights.setup("d46aafb9-7144-477d-b92d-cc00a9419e9e").start();

moment = require('moment-timezone');
var app = angular.module("app", [
require('./controller'), require('./service'), require('./directive'), require('./filter'), require('./app.route.js'), require('./app.constants.js'), 'duScroll', 'smart-table', 'toastr'
Expand Down

0 comments on commit 6fe5f3c

Please sign in to comment.