Software: Microsoft-IIS/10.0. PHP/7.4.33 uname -a: Windows NT LAKE 10.0 build 20348 (Windows Server 2016) AMD64 IWPD_801(traduongco) Safe-mode: OFF (not secure) C:\Windows\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\webapps\inclusiveSspr\js\ drwxrwxrwx | |
| Viewing file: Select action/file-type: //
// Copyright (C) Microsoft. All rights reserved.
//
require.config(new RequirePathConfig('/webapps/inclusiveOobe'));
define(['lib/knockout', 'legacy/bridge'], (ko, bridge) => {
const okTag = "Ok";
class SsprErrorViewModel {
constructor(resourceStrings, hasInternetAccess, navigationBlocked, navigationBlockedUri) {
this.resourceStrings = resourceStrings;
if (navigationBlocked) {
this.title = resources.NavigationBlockedTitle;
let navigationBlockedText = resources.NavigationBlockedText;
navigationBlockedText = navigationBlockedText.replace("{0}", navigationBlockedUri);
this.subHeaderText = navigationBlockedText;
this.voiceOver = resources.NavigationBlockedVoiceOver;
} else if (hasInternetAccess) {
this.title = resources.Title;
this.subHeaderText = resources.GenericMsaText;
this.voiceOver = resources.GenericVoiceOver;
} else {
this.title = resources.NoNetworkMsaTitle;
this.subHeaderText = resources.NoNetworkMsaText;
this.voiceOver = resources.NoNetworkVoiceOver;
}
this.processingFlag = ko.observable(false);
this.flexEndButtons = [
{
buttonText: resources.Ok,
buttonType: "button",
isPrimaryButton: true,
autoFocus: true,
isVisible: true,
disableControl: ko.pureComputed(() => {
return this.processingFlag();
}),
buttonClickHandler: (() => {
this.onCancel();
}),
}
];
}
onCancel() {
if (!this.processingFlag()) {
this.processingFlag(true);
// Error page is shown, exit CXH with cancel appresult.
bridge.invoke("CloudExperienceHost.cancel");
}
}
startVoiceOver() {
// Setup voiceover and speech recognition
try {
CloudExperienceHostAPI.Speech.SpeechRecognition.stop();
let constraints = this.createSpeechRecognitionConstraints();
if (constraints && (constraints.length > 0)) {
CloudExperienceHostAPI.Speech.SpeechRecognition.promptForCommandsAsync(this.voiceOver, constraints).done((result) => {
this.onSpeechRecognitionResult(result);
});
}
}
catch (err) {
require(['legacy/core'], (core) => {
bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "SpeechErrorPageFailure: ", core.GetJsonFromError(err));
});
}
}
createSpeechRecognitionConstraints() {
let okConstraint = new Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint(new Array(this.resourceStrings.OkConstraint));
okConstraint.tag = okTag;
let constraints = [okConstraint];
return constraints;
}
onSpeechRecognitionResult(result) {
if (result && !this.processingFlag() && result.constraint.tag == okTag) {
this.onCancel();
}
}
}
return SsprErrorViewModel;
});
|
:: Command execute :: | |
--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6431 ]-- |