diff --git a/CS_skylib/CS_orgid#3A6f1c816d-17eb-428c-adef-f820f6e6564c.conf b/CS_skylib/CS_orgid#3A6f1c816d-17eb-428c-adef-f820f6e6564c.conf new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/CS_skylib/CS_orgid#3A6f1c816d-17eb-428c-adef-f820f6e6564c.conf @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/CS_skylib/CS_shared.conf b/CS_skylib/CS_shared.conf new file mode 100644 index 0000000..277df88 --- /dev/null +++ b/CS_skylib/CS_shared.conf @@ -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"} \ No newline at end of file diff --git a/SkypeRT/ecs.conf b/SkypeRT/ecs.conf new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/SkypeRT/ecs.conf @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/SkypeRT/persistent.conf b/SkypeRT/persistent.conf new file mode 100644 index 0000000..ebae46f --- /dev/null +++ b/SkypeRT/persistent.conf @@ -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"}} \ No newline at end of file diff --git a/SkypeRT/ul.conf b/SkypeRT/ul.conf new file mode 100644 index 0000000..c3d1452 --- /dev/null +++ b/SkypeRT/ul.conf @@ -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 diff --git a/nohup.out b/nohup.out new file mode 100644 index 0000000..502ac2d --- /dev/null +++ b/nohup.out @@ -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 diff --git a/src/helpers/toast.js b/src/helpers/toast.js new file mode 100644 index 0000000..5e452cd --- /dev/null +++ b/src/helpers/toast.js @@ -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(); +} \ No newline at end of file diff --git a/src/hooks/useForm.js b/src/hooks/useForm.js new file mode 100644 index 0000000..850041e --- /dev/null +++ b/src/hooks/useForm.js @@ -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) { + + } +}