This repository has been archived by the owner on Jan 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable free credits, purchases, and yalcs
- Loading branch information
Showing
9 changed files
with
48 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ptorx", | ||
"version": "6.8.2", | ||
"version": "6.8.3", | ||
"description": "Send and receive mail anonymously with email forwarding and aliases through Ptorx.", | ||
"main": "", | ||
"author": "Xyfir, LLC <[email protected]> (https://www.xyfir.com)", | ||
|
@@ -9,8 +9,8 @@ | |
"singleQuote": true | ||
}, | ||
"dependencies": { | ||
"ptorx-server": "^6.8.2", | ||
"ptorx-web": "^6.8.2" | ||
"ptorx-server": "^6.8.3", | ||
"ptorx-web": "^6.8.3" | ||
}, | ||
"keywords": [ | ||
"email forwarding", | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
|
@@ -11,29 +11,29 @@ import { | |
withStyles, | ||
Button, | ||
Theme, | ||
Paper | ||
Paper, | ||
} from '@material-ui/core'; | ||
|
||
const styles = (theme: Theme) => | ||
createStyles({ | ||
buttons: { | ||
flexDirection: 'column', | ||
display: 'flex' | ||
display: 'flex', | ||
}, | ||
button: { | ||
margin: '1em 0' | ||
margin: '1em 0', | ||
}, | ||
paper: { | ||
padding: '0.5em', | ||
margin: '1em' | ||
margin: '1em', | ||
}, | ||
email: { | ||
textDecoration: 'none', | ||
color: theme.palette.primary.main | ||
color: theme.palette.primary.main, | ||
}, | ||
root: { | ||
textAlign: 'center' | ||
} | ||
textAlign: 'center', | ||
}, | ||
}); | ||
|
||
class _PurchaseCredits extends React.Component< | ||
|
@@ -51,23 +51,23 @@ class _PurchaseCredits extends React.Component< | |
this.props.enqueueSnackbar('Payment complete'); | ||
return api.get('/users'); | ||
}) | ||
.then(res => this.context.dispatch({ user: res.data })) | ||
.catch(err => this.props.enqueueSnackbar(err.response.data.error)); | ||
.then((res) => this.context.dispatch({ user: res.data })) | ||
.catch((err) => this.props.enqueueSnackbar(err.response.data.error)); | ||
} | ||
|
||
onBuy(tier: Ptorx.Payment['tier'], duration: Ptorx.Payment['duration']) { | ||
api | ||
.post('/payments/start', { tier, duration }) | ||
.then(res => (location.href = res.data.url)) | ||
.catch(err => this.props.enqueueSnackbar(err.response.data.error)); | ||
.then((res) => (location.href = res.data.url)) | ||
.catch((err) => this.props.enqueueSnackbar(err.response.data.error)); | ||
} | ||
|
||
render() { | ||
const { classes } = this.props; | ||
const { user } = this.context; | ||
return ( | ||
<div className={classes.root}> | ||
<Typography> | ||
{/* <Typography> | ||
Experience Ptorx with all of its features and increased credits per | ||
month. | ||
</Typography> | ||
|
@@ -135,6 +135,13 @@ class _PurchaseCredits extends React.Component< | |
[email protected] | ||
</a> | ||
. | ||
</Typography> */} | ||
<Typography> | ||
Purchasing credits is disabled until further notice. Email us at{' '} | ||
<a href="mailto:[email protected]" className={classes.email}> | ||
[email protected] | ||
</a>{' '} | ||
with questions. | ||
</Typography> | ||
</div> | ||
); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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