Skip to content

Commit

Permalink
newsy update
Browse files Browse the repository at this point in the history
  • Loading branch information
Samyeak committed Mar 9, 2022
1 parent c071fe0 commit 9d39755
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions CS_skylib/CS_shared.conf
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"}
1 change: 1 addition & 0 deletions SkypeRT/ecs.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions SkypeRT/persistent.conf
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"}}
12 changes: 12 additions & 0 deletions SkypeRT/ul.conf
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
30 changes: 30 additions & 0 deletions nohup.out
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
9 changes: 9 additions & 0 deletions src/helpers/toast.js
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();
}
26 changes: 26 additions & 0 deletions src/hooks/useForm.js
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) {

}
}

0 comments on commit 9d39755

Please sign in to comment.