|
|
@@ -16,8 +16,12 @@ define [
|
|
|
$scope.wikiEnabled = window.wikiEnabled;
|
|
|
|
|
|
# log hints tracking
|
|
|
+ $scope.trackLogHintsLearnMore = () ->
|
|
|
+ event_tracking.sendCountly "logs-hints-learn-more"
|
|
|
+
|
|
|
trackLogHintsFeedback = (isPositive, hintId) ->
|
|
|
event_tracking.send 'log-hints', (if isPositive then 'feedback-positive' else 'feedback-negative'), hintId
|
|
|
+ event_tracking.sendCountly "log-hints-feedback", { isPositive, hintId }
|
|
|
|
|
|
$scope.trackLogHintsPositiveFeedback = (hintId) -> trackLogHintsFeedback true, hintId
|
|
|
$scope.trackLogHintsNegativeFeedback = (hintId) -> trackLogHintsFeedback false, hintId
|
|
|
@@ -247,7 +251,10 @@ define [
|
|
|
return path
|
|
|
|
|
|
$scope.recompile = (options = {}) ->
|
|
|
+ event_tracking.sendCountly "editor-recompile", options
|
|
|
+
|
|
|
return if $scope.pdf.compiling
|
|
|
+
|
|
|
$scope.pdf.compiling = true
|
|
|
|
|
|
ide.$scope.$broadcast("flush-changes")
|
|
|
@@ -267,6 +274,9 @@ define [
|
|
|
|
|
|
# This needs to be public.
|
|
|
ide.$scope.recompile = $scope.recompile
|
|
|
+ # This method is a simply wrapper and exists only for tracking purposes.
|
|
|
+ ide.$scope.recompileViaKey = () ->
|
|
|
+ $scope.recompile { keyShortcut: true }
|
|
|
|
|
|
$scope.clearCache = () ->
|
|
|
$http {
|
|
|
@@ -280,6 +290,7 @@ define [
|
|
|
|
|
|
$scope.toggleLogs = () ->
|
|
|
$scope.shouldShowLogs = !$scope.shouldShowLogs
|
|
|
+ event_tracking.sendCountly "ide-open-logs" if $scope.shouldShowLogs
|
|
|
|
|
|
$scope.showPdf = () ->
|
|
|
$scope.pdf.view = "pdf"
|
|
|
@@ -287,6 +298,7 @@ define [
|
|
|
|
|
|
$scope.toggleRawLog = () ->
|
|
|
$scope.pdf.showRawLog = !$scope.pdf.showRawLog
|
|
|
+ event_tracking.sendCountly "logs-view-raw" if $scope.pdf.showRawLog
|
|
|
|
|
|
$scope.openClearCacheModal = () ->
|
|
|
modalInstance = $modal.open(
|
|
|
@@ -439,8 +451,9 @@ define [
|
|
|
ide.editorManager.openDoc(doc, gotoLine: line)
|
|
|
]
|
|
|
|
|
|
- App.controller "PdfLogEntryController", ["$scope", "ide", ($scope, ide) ->
|
|
|
+ App.controller "PdfLogEntryController", ["$scope", "ide", "event_tracking", ($scope, ide, event_tracking) ->
|
|
|
$scope.openInEditor = (entry) ->
|
|
|
+ event_tracking.sendCountly 'logs-jump-to-location'
|
|
|
entity = ide.fileTreeManager.findEntityByPath(entry.file)
|
|
|
return if !entity? or entity.type != "doc"
|
|
|
if entry.line?
|