From 764f9b953a95489c7d8acb0c3c7bea849e3e5376 Mon Sep 17 00:00:00 2001 From: Brian Lovin Date: Tue, 15 Jan 2019 09:09:13 -0800 Subject: [PATCH] Add linux options --- components/ChecklistItem/App.js | 59 +++++++------------------------ components/ChecklistItem/style.js | 2 +- components/Icon/index.js | 12 +++++-- config/browsers.js | 5 +++ config/dns.js | 1 + config/email.js | 6 ++-- config/passwordManager.js | 15 ++++++-- config/searchEngine.js | 1 + config/twoFactor.js | 2 ++ config/vpn.js | 4 +++ 10 files changed, 53 insertions(+), 54 deletions(-) diff --git a/components/ChecklistItem/App.js b/components/ChecklistItem/App.js index 901a659..6b378d1 100644 --- a/components/ChecklistItem/App.js +++ b/components/ChecklistItem/App.js @@ -22,52 +22,19 @@ export const AppRow = ({ app }: Props) => { const renderSourceIcon = (key: string) => { const sourceUrl = app.sources[key]; - - if (key === 'windows') { - return ( - - - - Windows - - - ); - } - - if (key === 'ios') { - return ( - - - - iOS - - - ); - } - - if (key === 'macos') { - return ( - - - - macOS - - - ); - } - - if (key === 'android') { - return ( - - - - Android - - - ); - } - - return null; + const renderMatch = key.toLowerCase(); + const hideOnMobile = + renderMatch === 'linux' || + renderMatch === 'macos' || + renderMatch === 'windows'; + return ( + + + + {renderMatch} + + + ); }; return ( diff --git a/components/ChecklistItem/style.js b/components/ChecklistItem/style.js index 3de5c9a..f9f518b 100644 --- a/components/ChecklistItem/style.js +++ b/components/ChecklistItem/style.js @@ -222,7 +222,7 @@ export const AppSourcesListItem = styled.li` .icon { position: relative; top: 5px; - left: 7px; + left: 4px; } &:hover { diff --git a/components/Icon/index.js b/components/Icon/index.js index 5440966..8499c3c 100644 --- a/components/Icon/index.js +++ b/components/Icon/index.js @@ -72,13 +72,13 @@ export const Glyph = ({ glyph }: GlyphProps): any => { ); - case 'apple': + case 'ios': return ( ); - case 'app-store': + case 'macos': return ( @@ -102,6 +102,14 @@ export const Glyph = ({ glyph }: GlyphProps): any => { ); + case 'linux': + return ( + + + + + + ); default: return null; } diff --git a/config/browsers.js b/config/browsers.js index 079a97c..588f5b5 100644 --- a/config/browsers.js +++ b/config/browsers.js @@ -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/', }, }, ], diff --git a/config/dns.js b/config/dns.js index d1d4943..4f91b0d 100644 --- a/config/dns.js +++ b/config/dns.js @@ -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/', }, }, ], diff --git a/config/email.js b/config/email.js index 553645a..1cfa6be 100644 --- a/config/email.js +++ b/config/email.js @@ -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/', }, }, ], diff --git a/config/passwordManager.js b/config/passwordManager.js index 050ded3..ca6e890 100644 --- a/config/passwordManager.js +++ b/config/passwordManager.js @@ -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', }, }, ], diff --git a/config/searchEngine.js b/config/searchEngine.js index 8036b1c..47bff71 100644 --- a/config/searchEngine.js +++ b/config/searchEngine.js @@ -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', }, }, ], diff --git a/config/twoFactor.js b/config/twoFactor.js index d066c8f..01a420e 100644 --- a/config/twoFactor.js +++ b/config/twoFactor.js @@ -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', }, }, { diff --git a/config/vpn.js b/config/vpn.js index e93d2d3..2b26514 100644 --- a/config/vpn.js +++ b/config/vpn.js @@ -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/', }, }, ],