-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed some bugs and rebased main
- Loading branch information
Showing
215 changed files
with
48,602 additions
and
34,825 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
# dependencies | ||
node_modules | ||
.yarn | ||
|
||
# IDEs and editors | ||
/.idea | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"workbench.activityBar.orientation": "vertical" | ||
"workbench.activityBar.orientation": "vertical", | ||
"editor.formatOnSave": true | ||
} |
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 @@ | ||
nodeLinker: node-modules |
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
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
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
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 |
---|---|---|
@@ -1,6 +1,23 @@ | ||
import { CONSTANTS, PushAPI } from '@pushprotocol/restapi'; | ||
import { ethers } from 'ethers'; | ||
import input from 'input'; | ||
|
||
console.log("Hello... what's my purpose?") | ||
console.log("To train all the hackers..") | ||
// Creating a random signer from a wallet, ideally this is the wallet you will connect | ||
const signerAlice = ethers.Wallet.createRandom(); | ||
|
||
// Initialize wallet user, pass 'prod' instead of 'staging' for mainnet apps | ||
const userAlice = await PushAPI.initialize(signerAlice, { | ||
env: CONSTANTS.ENV.PROD, | ||
}); | ||
const userBobAddress = '0x60cD05eb31cc16cC37163D514bEF162406d482e1'; | ||
|
||
const generateRandomWordsWithTimestamp = () => { | ||
return `${Math.random() | ||
.toString(36) | ||
.substring(2)} - ${new Date().toISOString()}`; | ||
}; | ||
|
||
userAlice.chat.send(userBobAddress, { | ||
content: "Gm gm! It's a me... Alice! - " + generateRandomWordsWithTimestamp(), | ||
}); | ||
|
||
console.log('Message sent from Alice to ', userBobAddress); |
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
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
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
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
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
151 changes: 92 additions & 59 deletions
151
packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatPreviewList.tsx
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 12 additions & 13 deletions
25
packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatProfile.tsx
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { ChatProfile } from "@pushprotocol/uiweb"; | ||
import { ChatProfile } from '@pushprotocol/uiweb'; | ||
|
||
export const ChatProfileTest = () => { | ||
|
||
return ( | ||
<div> | ||
<ChatProfile | ||
chatProfileLeftHelperComponent={<div>left component</div>} | ||
chatProfileRightHelperComponent={<div>right component</div>} | ||
chatId='monalisha.wallet' | ||
// chatId='d9c2d6fa7132d49ea6d1b570f0ebd2bcc45c1ecac726eab993ad91c574fbe3c6' | ||
/> | ||
</div> | ||
) | ||
} | ||
return ( | ||
<div> | ||
<ChatProfile | ||
chatProfileLeftHelperComponent={<div>left component</div>} | ||
chatProfileRightHelperComponent={<div>right component</div>} | ||
chatId="monalisha.wallet" | ||
// chatId='36baf37e441fdd94e23406c6c716fc4e91a93a9ee68e070cd5b054534dbe09a6' | ||
/> | ||
</div> | ||
); | ||
}; |
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
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
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
Oops, something went wrong.