style fixes

This commit is contained in:
Dennis Eichhorn 2022-04-05 20:01:22 +02:00
parent f962858246
commit c0be731029
5 changed files with 44 additions and 15 deletions

View File

@ -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]));
}

View File

@ -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 */

View File

@ -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 */

View File

@ -72,7 +72,8 @@ export class HttpUri
*/
static parseUrl (str, mode = 'php')
{
const key = ['source', 'scheme', 'authority', 'userInfo', 'user', 'pass', 'host', 'port',
const key = [
'source', 'scheme', 'authority', 'userInfo', 'user', 'pass', 'host', 'port',
'relative', 'path', 'directory', 'file', 'query', 'fragment'
];