forked from jitsi/jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint): Enable for non react files
- Loading branch information
1 parent
b1b3807
commit 969f5d6
Showing
55 changed files
with
3,599 additions
and
2,698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/** | ||
* Notifies interested parties that hangup procedure will start. | ||
*/ | ||
export const BEFORE_HANGUP = "conference.before_hangup"; | ||
export const BEFORE_HANGUP = 'conference.before_hangup'; | ||
|
||
/** | ||
* Notifies interested parties that desktop sharing enable/disable state is | ||
* changed. | ||
*/ | ||
export const DESKTOP_SHARING_ENABLED_CHANGED | ||
= "conference.desktop_sharing_enabled_changed"; | ||
= 'conference.desktop_sharing_enabled_changed'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,45 @@ | ||
/* global ga */ | ||
/* eslint-disable indent */ | ||
|
||
(function (ctx) { | ||
function Analytics() { | ||
/* eslint-disable semi */ | ||
|
||
(function(ctx) { | ||
/** | ||
* Google Analytics | ||
* | ||
*/ | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
ga('create', 'UA-319188-14', 'jit.si'); | ||
ga('send', 'pageview'); | ||
function Analytics() { | ||
/* eslint-disable */ | ||
|
||
/** | ||
* Google Analytics | ||
*/ | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
ga('create', 'UA-319188-14', 'jit.si'); | ||
ga('send', 'pageview'); | ||
|
||
/* eslint-enable */ | ||
} | ||
|
||
/* eslint-enable semi */ | ||
} | ||
Analytics.prototype.sendEvent = function(action, data) { | ||
// empty label if missing value for it and add the value, | ||
// the value should be integer or null | ||
let value = data.value; | ||
|
||
Analytics.prototype.sendEvent = function (action, data) { | ||
// empty label if missing value for it and add the value, | ||
// the value should be integer or null | ||
var value = data.value; | ||
value = value? Math.round(parseFloat(value)) : null; | ||
var label = data.label || ""; | ||
value = value ? Math.round(parseFloat(value)) : null; | ||
const label = data.label || ''; | ||
|
||
ga('send', 'event', 'jit.si', | ||
action + '.' + data.browserName, label, value); | ||
}; | ||
ga('send', 'event', 'jit.si', | ||
`${action}.${data.browserName}`, label, value); | ||
}; | ||
|
||
if (typeof ctx.JitsiMeetJS === "undefined") | ||
ctx.JitsiMeetJS = {}; | ||
if (typeof ctx.JitsiMeetJS.app === "undefined") | ||
ctx.JitsiMeetJS.app = {}; | ||
if (typeof ctx.JitsiMeetJS.app.analyticsHandlers === "undefined") | ||
ctx.JitsiMeetJS.app.analyticsHandlers = []; | ||
ctx.JitsiMeetJS.app.analyticsHandlers.push(Analytics); | ||
}(window)); | ||
if (typeof ctx.JitsiMeetJS === 'undefined') { | ||
ctx.JitsiMeetJS = {}; | ||
} | ||
if (typeof ctx.JitsiMeetJS.app === 'undefined') { | ||
ctx.JitsiMeetJS.app = {}; | ||
} | ||
if (typeof ctx.JitsiMeetJS.app.analyticsHandlers === 'undefined') { | ||
ctx.JitsiMeetJS.app.analyticsHandlers = []; | ||
} | ||
ctx.JitsiMeetJS.app.analyticsHandlers.push(Analytics); | ||
})(window); |
Oops, something went wrong.