-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Troubleshoot blocking + add uninstall page
- Loading branch information
Showing
17 changed files
with
235 additions
and
85 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Cobweb - A new way for teens to connect</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="../src/assets/css/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="../src/assets/css/fonts.css" /> | ||
<link rel="stylesheet" href="../src/pages/Popup/index.css" /> | ||
<link rel="stylesheet" href="index.css" /> | ||
</head> | ||
<body> | ||
<div class="fp-container mx-auto d-flex justify-content-center flex-column"> | ||
<a href="https://kewbi.sh/cobweb" class="mx-auto"> | ||
<img src="./cobweb.png" alt="Cobweb logo" class="mx-auto mb-2" /> | ||
</a> | ||
<div class="card text-center p-3"> | ||
<h1 class="display">Sorry to see you go.</h1> | ||
<p>We've detected that you've uninstalled or disabled Cobweb.</p> | ||
<p> | ||
Please make sure that you visit | ||
<a href="https://app.superfluid.finance/">app.superfluid.finance</a> | ||
and log in with the Metamask wallet you use with Cobweb to close out | ||
any streams that are still open. Otherwise, your token balance will | ||
continue to drain. | ||
</p> | ||
<button | ||
role="button" | ||
class="btn glassy-cw-btn p-1 mb-2 mx-auto d-inline-block" | ||
> | ||
Reinstall | ||
</button> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
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 was deleted.
Oops, something went wrong.
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,19 @@ | ||
import { storage } from "@extend-chrome/storage"; | ||
import { RateSettings, PayRates } from "../../shared/types"; | ||
import { constants } from "ethers"; | ||
|
||
const blockTag = async ({ address }: { address: string }) => { | ||
storage.local.set(({ settings }: { settings: RateSettings }) => { | ||
if (!settings) { | ||
settings = {}; | ||
} | ||
let newSettings = structuredClone(settings); | ||
newSettings[address] = { | ||
payWhen: PayRates.BLOCKED, | ||
rateAmount: constants.Zero, | ||
}; | ||
return { settings: newSettings }; | ||
}); | ||
}; | ||
|
||
export default blockTag; |
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
Oops, something went wrong.