From 859271cce2ba09529219f0d90fed7841cbf36ea0 Mon Sep 17 00:00:00 2001 From: mrtmeeseeks Date: Mon, 27 May 2024 23:16:57 +0300 Subject: [PATCH] upgraded daut --- package.json | 2 +- src/api/holder.api.ts | 2 ++ src/components/AutChangeCommitment.tsx | 1 - src/components/AutInteractionsDialog.tsx | 2 -- src/components/InteractionMap/misc/map-utils.ts | 2 -- src/components/InteractionMap/misc/pl-generator.ts | 1 - src/pages/AutHolder/AutLeft/AutProfileEdit.tsx | 2 +- src/pages/AutHolder/AutUserTabs/InteractionList.tsx | 9 --------- src/pages/AutHome/AutSearch.tsx | 2 -- src/pages/Oauth2/Callback.tsx | 1 - yarn.lock | 8 ++++---- 11 files changed, 8 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 1aae6db..c707db8 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@apollo/client": "^3.9.1", "@aut-labs/abi-types": "^0.0.75-dev", "@aut-labs/connector": "^0.0.93", - "@aut-labs/d-aut": "^1.0.161-dev", + "@aut-labs/d-aut": "^1.0.163-dev", "@aut-labs/sdk": "^0.0.160-dev", "@emotion/react": "^11.11.3", "@emotion/styled": "^11.11.0", diff --git a/src/api/holder.api.ts b/src/api/holder.api.ts index 7821269..5e4172e 100644 --- a/src/api/holder.api.ts +++ b/src/api/holder.api.ts @@ -199,6 +199,7 @@ export const fetchHolder = createAsyncThunk( image: autIdMetadata.image, description: autIdMetadata.description, properties: { + ...autIdMetadata.properties, avatar, thumbnailAvatar, timestamp, @@ -300,6 +301,7 @@ export const updateProfile = createAsyncThunk( autIdData.description = updatedUser.description; autIdData.properties.avatar = updatedUser.properties.avatar; autIdData.properties.socials = updatedUser.properties.socials; + autIdData.properties.bio = updatedUser.properties.bio; window.localStorage.setItem("aut-data", JSON.stringify(autIdData)); } catch (err) { console.log(err); diff --git a/src/components/AutChangeCommitment.tsx b/src/components/AutChangeCommitment.tsx index d16ad93..b99a0d1 100644 --- a/src/components/AutChangeCommitment.tsx +++ b/src/components/AutChangeCommitment.tsx @@ -86,7 +86,6 @@ export function AutChangeCommitmentDialog(props: CommitmentDialogProps) { }) ); if (result.meta.requestStatus === "fulfilled") { - console.log("changed", result); props.onClose(); } }; diff --git a/src/components/AutInteractionsDialog.tsx b/src/components/AutInteractionsDialog.tsx index 491a7f9..5bf672c 100644 --- a/src/components/AutInteractionsDialog.tsx +++ b/src/components/AutInteractionsDialog.tsx @@ -107,8 +107,6 @@ export function useBackendJwt() { domain: "localhost:5001" }; const signature = await signer.signMessage(JSON.stringify(message)); - console.log("signature: ", signature); - console.log(JSON.stringify(message)); const response = await axios.post( `${environment.interactionsApiUrl}/auth/token`, diff --git a/src/components/InteractionMap/misc/map-utils.ts b/src/components/InteractionMap/misc/map-utils.ts index 508776f..8f01c2f 100644 --- a/src/components/InteractionMap/misc/map-utils.ts +++ b/src/components/InteractionMap/misc/map-utils.ts @@ -88,8 +88,6 @@ function generateLinks( is: calculateIS(node, centralNode, centralNode) })); - console.log(centralNode, nodes); - const interNodeLinks: LinkObject[] = []; for (let i = 0; i < nodes.length; i++) { for (let j = i + 1; j < nodes.length; j++) { diff --git a/src/components/InteractionMap/misc/pl-generator.ts b/src/components/InteractionMap/misc/pl-generator.ts index 00a006d..3c6db5f 100644 --- a/src/components/InteractionMap/misc/pl-generator.ts +++ b/src/components/InteractionMap/misc/pl-generator.ts @@ -132,7 +132,6 @@ export const getProximityLevels = ( }; }); const baseSpacing = nodeDiameter * 2.5; - console.log(baseSpacing, plValues); plValues.forEach((plConfig, index) => { if (index > 0) { plConfig.radius += index * baseSpacing; diff --git a/src/pages/AutHolder/AutLeft/AutProfileEdit.tsx b/src/pages/AutHolder/AutLeft/AutProfileEdit.tsx index 7caeb9c..aa8061c 100644 --- a/src/pages/AutHolder/AutLeft/AutProfileEdit.tsx +++ b/src/pages/AutHolder/AutLeft/AutProfileEdit.tsx @@ -75,6 +75,7 @@ const AutProfileEdit = () => { const { control, handleSubmit, watch } = useForm({ mode: "onChange", defaultValues: { + bio: holderData?.properties?.bio, avatar: holderData?.properties?.avatar, socials: (holderData?.properties?.socials || []).map((social) => { return { @@ -340,7 +341,6 @@ const AutProfileEdit = () => { const { prefix, hidePrefix, placeholder } = socialUrls[Object.keys(socialUrls)[index]]; - console.log(prefix, placeholder, index); return ( { }) ); await useAuthenticatedAction(async (jwt) => { - console.log(jwt); setTimeout(() => { setVerifySuccess(true); dispatch( diff --git a/src/pages/AutHome/AutSearch.tsx b/src/pages/AutHome/AutSearch.tsx index aa423ff..7d51f3f 100644 --- a/src/pages/AutHome/AutSearch.tsx +++ b/src/pages/AutHome/AutSearch.tsx @@ -291,7 +291,6 @@ const AutSearch = (props: AutSearchProps) => { event: any, newValue: UserProfile | null ) => { - console.log(newValue, "NEW VALUE", options); setOptions( newValue ? [newValue, ...options] : options ); @@ -423,7 +422,6 @@ const AutSearch = (props: AutSearchProps) => { }} onInputChange={(event, newInputValue) => { setInputValue(newInputValue); - console.log(newInputValue, "NEW INPUT VALUE"); }} renderInput={(params) => ( { error: decodeURI(error) || "OAuth2 error: An error has occured." }); } else { - console.log("POST MESSAGE"); window.opener.postMessage({ type: "OAUTH_RESPONSE", payload diff --git a/yarn.lock b/yarn.lock index 3e1e94d..62b98a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -86,10 +86,10 @@ "@web3auth/wallet-services-plugin" "^8.0.1" "@web3auth/web3auth-wagmi-connector" "^6.0.0" -"@aut-labs/d-aut@^1.0.161-dev": - version "1.0.161-dev" - resolved "https://registry.yarnpkg.com/@aut-labs/d-aut/-/d-aut-1.0.161-dev.tgz#fe5d5182381e9c4a3b6e6ce33ad9afa62784cebc" - integrity sha512-rJLStfY5jQKYLjsQHLDaNzF6PsoBomZm8BPcOCI7pW+5NnXbvJ+fNOLwLll0qt1no01Aim8JWPMuhzH+ey6eUg== +"@aut-labs/d-aut@^1.0.163-dev": + version "1.0.163-dev" + resolved "https://registry.yarnpkg.com/@aut-labs/d-aut/-/d-aut-1.0.163-dev.tgz#ea26d9f51cf8daf88594b4f09fda9a9cea422916" + integrity sha512-C5v/+/W/SqfJqguuWwX8uyt7Dp2SZ2sW7aZfGd2R3/+Kh14M9QRfT8NGrSuBtonFYT75vT+updNuNIK/Ie0zyQ== "@aut-labs/sdk@^0.0.160-dev": version "0.0.160-dev"