This repository has been archived by the owner on Apr 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f010edb
commit 09685bf
Showing
7 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"main": "public/electron.js", | ||
"repository": "https://github.com/webcatalog/translatium", | ||
"author": { | ||
"name": "WebCatalog Ltd", | ||
"name": "Quang Lam", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MPL-2.0", | ||
|
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,69 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import classNames from 'classnames'; | ||
|
||
import Button from '@material-ui/core/Button'; | ||
import Card from '@material-ui/core/Card'; | ||
import CardContent from '@material-ui/core/CardContent'; | ||
import CardActions from '@material-ui/core/CardActions'; | ||
import Typography from '@material-ui/core/Typography'; | ||
|
||
import connectComponent from '../../../helpers/connect-component'; | ||
|
||
import { | ||
requestOpenInBrowser, | ||
} from '../../../senders'; | ||
|
||
const styles = (theme) => ({ | ||
card: { | ||
borderTop: theme.palette.type === 'dark' ? 'none' : '1px solid rgba(0, 0, 0, 0.12)', | ||
borderBottom: theme.palette.type === 'dark' ? 'none' : '1px solid rgba(0, 0, 0, 0.12)', | ||
}, | ||
migrationCard: { | ||
marginTop: theme.spacing(2), | ||
}, | ||
migrationCardActions: { | ||
justifyContent: 'center', | ||
}, | ||
}); | ||
|
||
const MigrationCard = ({ | ||
classes, | ||
}) => ( | ||
<Card elevation={0} square className={classNames(classes.card, classes.migrationCard)}> | ||
<CardContent> | ||
<Typography variant="body2" component="p"> | ||
Because of a few reasons, we have to republish Translatium under a new app listing. | ||
To continue receiving updates, please reinstall the app from our new listing. | ||
</Typography> | ||
</CardContent> | ||
<CardActions className={classes.migrationCardActions}> | ||
<Button | ||
variant="contained" | ||
size="medium" | ||
color="primary" | ||
disableElevation | ||
classes={{ label: classes.translateButtonLabel }} | ||
onClick={() => { | ||
requestOpenInBrowser('macappstore://apps.apple.com/app/id1547052291'); | ||
}} | ||
> | ||
Mac App Store | ||
</Button> | ||
</CardActions> | ||
</Card> | ||
); | ||
|
||
MigrationCard.propTypes = { | ||
classes: PropTypes.object.isRequired, | ||
}; | ||
|
||
export default connectComponent( | ||
MigrationCard, | ||
null, | ||
null, | ||
styles, | ||
); |
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