mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-15 00:38:42 +00:00
style fixes
This commit is contained in:
parent
f962858246
commit
c0be731029
|
|
@ -31,7 +31,7 @@ export class NotificationMessage
|
||||||
this.message = message;
|
this.message = message;
|
||||||
|
|
||||||
/** @type {boolean} vibrate */
|
/** @type {boolean} vibrate */
|
||||||
this.vibrate = vibrate;
|
this.vibrate = vibrate;
|
||||||
|
|
||||||
/** @type {boolean} isSticky */
|
/** @type {boolean} isSticky */
|
||||||
this.isSticky = isSticky;
|
this.isSticky = isSticky;
|
||||||
|
|
|
||||||
|
|
@ -454,7 +454,7 @@ export class Form
|
||||||
if (text[i].getAttribute('data-tpl-text').startsWith('http')
|
if (text[i].getAttribute('data-tpl-text').startsWith('http')
|
||||||
|| text[i].getAttribute('data-tpl-text').startsWith('{')
|
|| text[i].getAttribute('data-tpl-text').startsWith('{')
|
||||||
) {
|
) {
|
||||||
Form.populateRemoteUrls('text', text[i], path, remoteUrls)
|
Form.populateRemoteUrls('text', text[i], path, remoteUrls);
|
||||||
} else {
|
} else {
|
||||||
GeneralUI.setTextOfElement(matches[c], GeneralUI.getTextFromDataSource(text[i]));
|
GeneralUI.setTextOfElement(matches[c], GeneralUI.getTextFromDataSource(text[i]));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -109,14 +109,28 @@ export class ReadManager
|
||||||
* @todo SpeechRecognition polyfill
|
* @todo SpeechRecognition polyfill
|
||||||
* Remove the speech recognition wrapper once it is obsolete and supported by the major browsers.
|
* Remove the speech recognition wrapper once it is obsolete and supported by the major browsers.
|
||||||
*/
|
*/
|
||||||
|
/* eslint-disable */
|
||||||
/** global: webkitSpeechRecognition */
|
/** global: webkitSpeechRecognition */
|
||||||
/** global: SpeechRecognition */
|
/** 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: webkitSpeechGrammarList */
|
||||||
/** global: SpeechGrammarList */
|
/** 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: webkitSpeechRecognitionEvent */
|
||||||
/** global: SpeechRecognitionEvent */
|
/** 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 */
|
||||||
|
|
|
||||||
|
|
@ -167,14 +167,28 @@ export class VoiceManager
|
||||||
* @todo SpeechRecognition polyfill
|
* @todo SpeechRecognition polyfill
|
||||||
* Remove the speech recognition wrapper once it is obsolete and supported by the major browsers.
|
* Remove the speech recognition wrapper once it is obsolete and supported by the major browsers.
|
||||||
*/
|
*/
|
||||||
|
/* eslint-disable */
|
||||||
/** global: webkitSpeechRecognition */
|
/** global: webkitSpeechRecognition */
|
||||||
/** global: SpeechRecognition */
|
/** 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: webkitSpeechGrammarList */
|
||||||
/** global: SpeechGrammarList */
|
/** 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: webkitSpeechRecognitionEvent */
|
||||||
/** global: SpeechRecognitionEvent */
|
/** 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 */
|
||||||
|
|
|
||||||
|
|
@ -72,15 +72,16 @@ export class HttpUri
|
||||||
*/
|
*/
|
||||||
static parseUrl (str, mode = 'php')
|
static parseUrl (str, mode = 'php')
|
||||||
{
|
{
|
||||||
const key = ['source', 'scheme', 'authority', 'userInfo', 'user', 'pass', 'host', 'port',
|
const key = [
|
||||||
'relative', 'path', 'directory', 'file', 'query', 'fragment'
|
'source', 'scheme', 'authority', 'userInfo', 'user', 'pass', 'host', 'port',
|
||||||
];
|
'relative', 'path', 'directory', 'file', 'query', 'fragment'
|
||||||
|
];
|
||||||
|
|
||||||
const parser = {
|
const parser = {
|
||||||
php: /^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
|
php: /^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
|
||||||
strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
|
strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
|
||||||
loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/\/?)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // Added one optional slash to post-scheme to catch file:/// (should restrict this)
|
loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/\/?)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // Added one optional slash to post-scheme to catch file:/// (should restrict this)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!Object.prototype.hasOwnProperty.call(parser, mode)) {
|
if (!Object.prototype.hasOwnProperty.call(parser, mode)) {
|
||||||
throw new Error('Unexpected parsing mode.', 'UriFactory', 52);
|
throw new Error('Unexpected parsing mode.', 'UriFactory', 52);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user