-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: profile button settings- accountSettings, logout (#136)
* revamp/ui: dashboard * style: pretty code by ci * added the text No models created yet. * created notEmpty page * style: pretty code by ci * merged: pull * added checkbox * added checkbox * style: pretty code by ci * dashboard ui error fixed * style: pretty code by ci * worked on the profile button and the logout fuction * style: pretty code by ci * added the particle.auth.logout() * added the particle.auth.logout() * cherry-pick: HEAD fix/profile/button Signed-off-by: Nasfame <laciferin@gmail.com> * style: pretty code by ci * doc: minor .env.example Signed-off-by: Nasfame <laciferin@gmail.com> * updated the particle.auth * style: pretty code by ci * minor: take of the spaggeti code Signed-off-by: Nasfame <laciferin@gmail.com> * style: pretty code by ci --------- Signed-off-by: Nasfame <laciferin@gmail.com> Co-authored-by: Codebox124 <Codebox124@users.noreply.github.com> Co-authored-by: techyNonso <williamikeji@gmail.com> Co-authored-by: techyNonso <techyNonso@users.noreply.github.com> Co-authored-by: Nasfame <Nasfame@users.noreply.github.com> Co-authored-by: Nasfame <laciferin@gmail.com>
- Loading branch information
1 parent
34d9147
commit 3ea1955
Showing
16 changed files
with
240 additions
and
159 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: "3.8" | ||
version: '3.8' | ||
services: | ||
app: | ||
env_file: | ||
|
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,28 +1,28 @@ | ||
import { ethers } from "hardhat"; | ||
import { config } from "dotenv"; | ||
import { ethers } from 'hardhat' | ||
import { config } from 'dotenv' | ||
|
||
async function main() { | ||
const currentTimestampInSeconds = Math.round(Date.now() / 1000); | ||
const unlockTime = currentTimestampInSeconds + 60; | ||
const currentTimestampInSeconds = Math.round(Date.now() / 1000) | ||
const unlockTime = currentTimestampInSeconds + 60 | ||
|
||
const lockedAmount = ethers.parseEther("0.001"); | ||
const lockedAmount = ethers.parseEther('0.001') | ||
|
||
const lock = await ethers.deployContract("Lock", [unlockTime], { | ||
const lock = await ethers.deployContract('Lock', [unlockTime], { | ||
value: lockedAmount, | ||
}); | ||
}) | ||
|
||
await lock.waitForDeployment(); | ||
await lock.waitForDeployment() | ||
|
||
console.log( | ||
`Lock with ${ethers.formatEther( | ||
lockedAmount | ||
)}ETH and unlock timestamp ${unlockTime} deployed to ${lock.target}` | ||
); | ||
lockedAmount, | ||
)}ETH and unlock timestamp ${unlockTime} deployed to ${lock.target}`, | ||
) | ||
} | ||
|
||
// We recommend this pattern to be able to use async/await everywhere | ||
// and properly handle errors. | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); | ||
console.error(error) | ||
process.exitCode = 1 | ||
}) |
Oops, something went wrong.