diff --git a/Message/Notification/NotificationMessage.js b/Message/Notification/NotificationMessage.js index 34ed762..2178a34 100755 --- a/Message/Notification/NotificationMessage.js +++ b/Message/Notification/NotificationMessage.js @@ -31,7 +31,7 @@ export class NotificationMessage this.message = message; /** @type {boolean} vibrate */ - this.vibrate = vibrate; + this.vibrate = vibrate; /** @type {boolean} isSticky */ this.isSticky = isSticky; diff --git a/UI/Component/Form.js b/UI/Component/Form.js index 101bd3a..296d9df 100755 --- a/UI/Component/Form.js +++ b/UI/Component/Form.js @@ -454,7 +454,7 @@ export class Form if (text[i].getAttribute('data-tpl-text').startsWith('http') || text[i].getAttribute('data-tpl-text').startsWith('{') ) { - Form.populateRemoteUrls('text', text[i], path, remoteUrls) + Form.populateRemoteUrls('text', text[i], path, remoteUrls); } else { GeneralUI.setTextOfElement(matches[c], GeneralUI.getTextFromDataSource(text[i])); } diff --git a/UI/Input/Voice/ReadManager.js b/UI/Input/Voice/ReadManager.js index 1cd084b..c1f34d8 100755 --- a/UI/Input/Voice/ReadManager.js +++ b/UI/Input/Voice/ReadManager.js @@ -109,14 +109,28 @@ export class ReadManager * @todo SpeechRecognition polyfill * Remove the speech recognition wrapper once it is obsolete and supported by the major browsers. */ +/* eslint-disable */ /** global: webkitSpeechRecognition */ /** global: SpeechRecognition */ -var SpeechRecognition = typeof SpeechRecognition !== 'undefined' ? SpeechRecognition : typeof webkitSpeechRecognition !== 'undefined' ? webkitSpeechRecognition : null; +var SpeechRecognition = typeof SpeechRecognition !== 'undefined' + ? SpeechRecognition + : typeof webkitSpeechRecognition !== 'undefined' + ? webkitSpeechRecognition + : null; /** global: webkitSpeechGrammarList */ /** global: SpeechGrammarList */ -var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' ? SpeechGrammarList : typeof webkitSpeechGrammarList !== 'undefined' ? webkitSpeechGrammarList : null; +var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' + ? SpeechGrammarList + : typeof webkitSpeechGrammarList !== 'undefined' + ? webkitSpeechGrammarList + : null; /** global: webkitSpeechRecognitionEvent */ /** global: SpeechRecognitionEvent */ -var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' ? SpeechRecognitionEvent : typeof webkitSpeechRecognitionEvent !== 'undefined' ? webkitSpeechRecognitionEvent : null; +var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' + ? SpeechRecognitionEvent + : typeof webkitSpeechRecognitionEvent !== 'undefined' + ? webkitSpeechRecognitionEvent + : null; +/* eslint-enable */ diff --git a/UI/Input/Voice/VoiceManager.js b/UI/Input/Voice/VoiceManager.js index 4b0004d..5e426c4 100755 --- a/UI/Input/Voice/VoiceManager.js +++ b/UI/Input/Voice/VoiceManager.js @@ -167,14 +167,28 @@ export class VoiceManager * @todo SpeechRecognition polyfill * Remove the speech recognition wrapper once it is obsolete and supported by the major browsers. */ +/* eslint-disable */ /** global: webkitSpeechRecognition */ /** global: SpeechRecognition */ -var SpeechRecognition = typeof SpeechRecognition !== 'undefined' ? SpeechRecognition : typeof webkitSpeechRecognition !== 'undefined' ? webkitSpeechRecognition : null; +var SpeechRecognition = typeof SpeechRecognition !== 'undefined' + ? SpeechRecognition + : typeof webkitSpeechRecognition !== 'undefined' + ? webkitSpeechRecognition + : null; /** global: webkitSpeechGrammarList */ /** global: SpeechGrammarList */ -var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' ? SpeechGrammarList : typeof webkitSpeechGrammarList !== 'undefined' ? webkitSpeechGrammarList : null; +var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' + ? SpeechGrammarList + : typeof webkitSpeechGrammarList !== 'undefined' + ? webkitSpeechGrammarList + : null; /** global: webkitSpeechRecognitionEvent */ /** global: SpeechRecognitionEvent */ -var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' ? SpeechRecognitionEvent : typeof webkitSpeechRecognitionEvent !== 'undefined' ? webkitSpeechRecognitionEvent : null; +var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' + ? SpeechRecognitionEvent + : typeof webkitSpeechRecognitionEvent !== 'undefined' + ? webkitSpeechRecognitionEvent + : null; +/* eslint-enable */ diff --git a/Uri/HttpUri.js b/Uri/HttpUri.js index 4252fe6..7f80774 100755 --- a/Uri/HttpUri.js +++ b/Uri/HttpUri.js @@ -72,15 +72,16 @@ export class HttpUri */ static parseUrl (str, mode = 'php') { - const key = ['source', 'scheme', 'authority', 'userInfo', 'user', 'pass', 'host', 'port', - 'relative', 'path', 'directory', 'file', 'query', 'fragment' - ]; + const key = [ + 'source', 'scheme', 'authority', 'userInfo', 'user', 'pass', 'host', 'port', + 'relative', 'path', 'directory', 'file', 'query', 'fragment' + ]; const parser = { - php: /^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, - strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, - loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/\/?)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // Added one optional slash to post-scheme to catch file:/// (should restrict this) - }; + php: /^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, + strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, + loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/\/?)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // Added one optional slash to post-scheme to catch file:/// (should restrict this) + }; if (!Object.prototype.hasOwnProperty.call(parser, mode)) { throw new Error('Unexpected parsing mode.', 'UriFactory', 52);