-
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.
- Loading branch information
Showing
8 changed files
with
81 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"*Lib/Auth/EnableRenewSkypeToken":"1","*Lib/Call/NG/LanguageId":"en-us","*Lib/Call/NG/Ring":"general","*Lib/ECS/Servers/1":"https://config.teams.microsoft.com/config/v1/Teams/","*Lib/Logging/Rotation/DeleteOldLogs":"0","*Lib/Media/MediaLibraryLogFileDirectoryLocation":"/home/iadmin/.config/Microsoft/Microsoft Teams/media-stack","*Lib/PushNotifications/ProdEnvURL":"https://teams.microsoft.com/registrar/prod/v2/registrations","*Lib/RootTools/Logging/Appender/MaxRotations":"2","*Lib/RootTools/Logging/Appender/MaxSize":"20000000","*Lib/Trouter/TrouterUrl":"wss://go.trouter.teams.microsoft.com/v3/c","*Lib/Video/IsSlimCore":"1"} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"MediaAgent":{"Country":"NP"},"MsrtcEcs":{"YourEcsKey":"YourEcsValue"},"ResourceManager":{"NBwE_BandwidthStorage":"[{\"history\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"id\":0,\"identity\":\"NwType1\"},{\"history\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"id\":1,\"identity\":\"NwType1\",\"plbConfidence\":0.5},{\"history\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"id\":0,\"identity\":\"unknownNic\"},{\"history\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"id\":1,\"identity\":\"unknownNic\"}]","RM_StartupProtectionTimeout":"0"},"SkypeRT":{"node_id":"7901249635756898184"},"WppMediaConfig":{"DumpDefaults":"0"}} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
LogFile.Encryption=1 | ||
LogFile.MaxSize=20000000 | ||
LogFile.MaxRotations=2 | ||
LogFile.Threshold=0 | ||
LogFile.ForceThreshold=2147483647 | ||
LogFile.EnableFiltering=1 | ||
LogFile.SafeLogs=2 | ||
Console.Type=0 | ||
Buffer.Enabled=0 | ||
Trigger.File.MaxSize=204800 | ||
Trigger.File.Encoding=1 | ||
Trigger.File.Encryption=1 |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null | ||
Checking for update | ||
Update for version 2020.4.200 is not available (latest version: 2020.4.200, downgrade is disallowed). | ||
checkForUpdatesAndNotify called, downloadPromise is null |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export function toast(message, duration = 4000){ | ||
const toast = document.createElement("ion-toast"); | ||
toast.message = message; | ||
toast.duration = duration; | ||
toast.color = "dark"; | ||
|
||
document.body.appendChild(toast); | ||
return toast.present(); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React, {useState, useEffect} from "react"; | ||
import { toast } from "../helpers/toast"; | ||
|
||
function useForm(initialState, validate, action){ | ||
const [values, setValues] = useState(initialState); | ||
const [errors, setErrors] = useState({}); | ||
const [isSubmitting, setIsSubmitting] = useState(false); | ||
|
||
useEffect(()=>{ | ||
if(isSubmitting){ | ||
const noErrors = Object.keys(errors).length === 0; | ||
if(noErrors){ | ||
action(); | ||
setValues(initialState); | ||
setIsSubmitting(false); | ||
}else{ | ||
toast(Object.values(errors).join(" ")); | ||
setIsSubmitting(false); | ||
} | ||
} | ||
}, [errors]); | ||
|
||
function handleChange(event) { | ||
|
||
} | ||
} |