Merge pull request #46 from brianlovin/linux

Add linux options
This commit is contained in:
Brian Lovin 2019-01-15 09:13:53 -08:00 committed by GitHub
commit 509580dedb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 53 additions and 54 deletions

View file

@ -22,52 +22,19 @@ export const AppRow = ({ app }: Props) => {
const renderSourceIcon = (key: string) => {
const sourceUrl = app.sources[key];
if (key === 'windows') {
return (
<AppSourcesListItem hideOnMobile key={key}>
<a href={sourceUrl} target="_blank" rel="noopener noreferrer">
<Icon size={32} glyph="windows" />
<AppSourcesLabel>Windows</AppSourcesLabel>
</a>
</AppSourcesListItem>
);
}
if (key === 'ios') {
return (
<AppSourcesListItem key={key}>
<a href={sourceUrl} target="_blank" rel="noopener noreferrer">
<Icon size={32} glyph="apple" />
<AppSourcesLabel>iOS</AppSourcesLabel>
</a>
</AppSourcesListItem>
);
}
if (key === 'macos') {
return (
<AppSourcesListItem hideOnMobile key={key}>
<a href={sourceUrl} target="_blank" rel="noopener noreferrer">
<Icon size={32} glyph="app-store" />
<AppSourcesLabel>macOS</AppSourcesLabel>
</a>
</AppSourcesListItem>
);
}
if (key === 'android') {
return (
<AppSourcesListItem key={key}>
<a href={sourceUrl} target="_blank" rel="noopener noreferrer">
<Icon size={32} glyph="android" />
<AppSourcesLabel>Android</AppSourcesLabel>
</a>
</AppSourcesListItem>
);
}
return null;
const renderMatch = key.toLowerCase();
const hideOnMobile =
renderMatch === 'linux' ||
renderMatch === 'macos' ||
renderMatch === 'windows';
return (
<AppSourcesListItem hideOnMobile={hideOnMobile} key={key}>
<a href={sourceUrl} target="_blank" rel="noopener noreferrer">
<Icon size={32} glyph={renderMatch} />
<AppSourcesLabel>{renderMatch}</AppSourcesLabel>
</a>
</AppSourcesListItem>
);
};
return (

View file

@ -222,7 +222,7 @@ export const AppSourcesListItem = styled.li`
.icon {
position: relative;
top: 5px;
left: 7px;
left: 4px;
}
&:hover {

File diff suppressed because one or more lines are too long

View file

@ -17,6 +17,8 @@ export default {
'https://geo.itunes.apple.com/us/app/brave-web-browser/id1052879175?mt=8',
android:
'https://play.google.com/store/apps/details?id=com.brave.browser&hl=en',
linux:
'https://brave-browser.readthedocs.io/en/latest/installing-brave.html#linux',
},
},
{
@ -28,6 +30,7 @@ export default {
macos: 'https://www.mozilla.org/en-US/firefox/',
ios: 'https://www.mozilla.org/en-US/firefox/mobile/',
android: 'https://www.mozilla.org/en-US/firefox/mobile/',
linux: 'https://support.mozilla.org/en-US/kb/install-firefox-linux',
},
},
{
@ -47,6 +50,7 @@ export default {
windows:
'https://www.torproject.org/projects/torbrowser.html.en#windows',
macos: 'https://www.torproject.org/projects/torbrowser.html.en#macosx',
linux: 'https://www.torproject.org/docs/tor-doc-unix.html.en',
},
},
{
@ -56,6 +60,7 @@ export default {
sources: {
windows: 'https://vivaldi.com/download/',
macos: 'https://vivaldi.com/download/',
linux: 'https://vivaldi.com/download/',
},
},
],

View file

@ -17,6 +17,7 @@ export default {
'https://itunes.apple.com/app/1-1-1-1-faster-internet/id1423538627?mt=8',
android:
'https://play.google.com/store/apps/details?id=com.cloudflare.onedotonedotonedotone',
linux: 'https://one.one.one.one/',
},
},
],

View file

@ -15,6 +15,7 @@ export default {
'https://itunes.apple.com/us/app/fastmail-email-calendar/id931370077',
android:
'https://play.google.com/store/apps/details?id=com.fastmail.app',
linux: 'https://www.fastmail.com/',
},
},
{
@ -22,12 +23,13 @@ export default {
image: '/static/img/protonmail.jpg',
url: 'https://protonmail.com//',
sources: {
windows: 'https://protonmail.com//',
macos: 'https://protonmail.com//',
windows: 'https://protonmail.com/',
macos: 'https://protonmail.com/',
ios:
'https://itunes.apple.com/app/protonmail-encrypted-email/id979659905',
android:
'https://play.google.com/store/apps/details?id=ch.protonmail.android',
linux: 'https://protonmail.com/',
},
},
],

View file

@ -19,6 +19,7 @@ export default {
macos: 'https://1password.com/downloads/mac/',
ios: 'https://1password.com/downloads/ios/',
android: 'https://1password.com/downloads/android/',
linux: 'https://1password.com/downloads/linux/',
},
},
{
@ -33,6 +34,7 @@ export default {
ios:
'https://itunes.apple.com/us/app/lastpass-password-manager/id324613447',
android: 'https://lastpass.com/android_market.php',
linux: 'https://lastpass.com/misc_download2.php',
},
},
{
@ -45,6 +47,8 @@ export default {
ios:
'https://itunes.apple.com/us/app/dashlane-password-manager/id517914548',
android: 'https://play.google.com/store/apps/details?id=com.dashlane',
linux:
'https://support.dashlane.com/hc/en-us/articles/115005432325-Getting-started-with-Dashlane-for-Linux-and-Chromebook',
},
},
{
@ -52,11 +56,16 @@ export default {
image: '/static/img/bitwarden.jpg',
url: 'https://www.bitwarden.com/',
sources: {
windows: 'https://vault.bitwarden.com/download/?app=desktop&platform=windows',
macos: 'https://vault.bitwarden.com/download/?app=desktop&platform=macos',
windows:
'https://vault.bitwarden.com/download/?app=desktop&platform=windows',
macos:
'https://vault.bitwarden.com/download/?app=desktop&platform=macos',
ios:
'https://itunes.apple.com/app/bitwarden-free-password-manager/id1137397744?mt=8',
android: 'https://play.google.com/store/apps/details?id=com.x8bit.bitwarden',
android:
'https://play.google.com/store/apps/details?id=com.x8bit.bitwarden',
linux:
'https://vault.bitwarden.com/download/?app=desktop&platform=linux',
},
},
],

View file

@ -15,6 +15,7 @@ export default {
'https://itunes.apple.com/us/app/duckduckgo-search-stories/id663592361?mt=8',
android:
'https://play.google.com/store/apps/details?id=com.duckduckgo.mobile.android',
linux: 'https://duckduckgo.com',
},
},
],

View file

@ -47,6 +47,7 @@ export default {
macos: 'https://1password.com/downloads/mac/',
ios: 'https://1password.com/downloads/ios/',
android: 'https://1password.com/downloads/android/',
linux: 'https://1password.com/downloads/linux/',
},
},
{
@ -61,6 +62,7 @@ export default {
ios:
'https://itunes.apple.com/us/app/lastpass-password-manager/id324613447',
android: 'https://lastpass.com/android_market.php',
linux: 'https://lastpass.com/misc_download2.php',
},
},
{

View file

@ -15,6 +15,7 @@ export default {
macos: 'https://www.ivpn.net/apps-macos',
ios: 'https://www.ivpn.net/apps-ios',
android: 'https://www.ivpn.net/apps-android',
linux: 'https://www.ivpn.net/setup/gnu-linux-terminal.html',
},
},
{
@ -38,6 +39,8 @@ export default {
macos: 'https://www.expressvpn.com/vpn-software/vpn-mac',
ios: 'https://www.expressvpn.com/vpn-software/vpn-ios',
android: 'https://www.expressvpn.com/vpn-software/vpn-android',
linux:
'https://www.expressvpn.com/support/vpn-setup/manual-config-for-linux-with-openvpn/',
},
},
{
@ -49,6 +52,7 @@ export default {
macos: 'https://nordvpn.com/download/mac/',
ios: 'https://nordvpn.com/download/ios/',
android: 'https://nordvpn.com/download/android/',
linux: 'https://nordvpn.com/tutorials/linux/',
},
},
],