Commit Graph

109 Commits

Author SHA1 Message Date
Jinho Jang fc3219243b
Add twitter preview 2021-01-08 03:44:20 +09:00
Jakub Sokołowski 33bc461ca2 verify QR data starts with a valid URL
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-19 17:51:20 +01:00
Jakub Sokołowski 523029d139 add tests for /qr and /qr_card paths
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-19 17:51:20 +01:00
Jakub Sokołowski c1d095a3f8 add Open Graph metadata, including image, to index
This will allow for image unfurling on Facebook/Twitter.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-19 17:51:20 +01:00
Jakub Sokołowski 9386b6e0eb add /qr path and use it for generating SVG qr code
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-19 17:51:20 +01:00
Jinho Jang 8f104b4e64 Add a favicon 2020-10-09 20:27:40 +02:00
jinhojang6 db2fd48a5f Update the header and footer
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-10-07 18:12:09 +02:00
Jakub Sokołowski 7f1621f669 redirect upper case chat keys to lower case
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-10-01 15:28:10 +02:00
Jakub Sokołowski 2ad999ff51 use originalUrl for path in chat key route
This resolves issue with invite arguments not showing up in QR:
https://github.com/status-im/universal-links-handler/issues/50

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-10-01 15:28:10 +02:00
Jakub Sokołowski 5fd8dd2466 add support for private groups at /g/
The code checks for:
- Presence of all three URL arguments: `a`, `a1`, `a2`
- Verifies that `a`(admin key...) is 132 characters long
- Verifies that `a2`(chat key...) is 169 characters long
- Verifies that `a1` does not contain HTML before rendering

Each case is tested, including the valid one.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-09-29 17:15:24 +02:00
Jakub Sokołowski 8d74ea7969 fix relative link to /img/logo.svg
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-09-29 17:15:24 +02:00
Jakub Sokołowski 4c6ba521a2 set NODE_ENV=production in docker image
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-09-29 17:15:24 +02:00
Jakub Sokołowski 550e73bec0 use join.status.im domain when in development mode
This fixes issue with QR code not working in the app.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-09-29 17:15:24 +02:00
Jakub Sokołowski 0ae5800aa9 redirect to referral service if invite code is set
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-09-02 18:10:35 +02:00
Jakub Sokołowski 34d9748a78
fix tests broken due to missing classes
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-08-31 20:16:02 +02:00
Jakub Sokołowski cd79e2a057 fix public key styling by truncating
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-07-27 13:38:10 +02:00
jinhojang6 cb2b84e6c2 Add Instagram and FAQs links to the footer 2020-07-26 12:27:26 +02:00
Jakub Sokołowski 404620359e use Tailwind for styling
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-07-26 12:24:26 +02:00
Jakub Sokołowski f7f4b1bb04
add temporary css fix
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-07-23 12:42:01 +02:00
dependabot[bot] 94d1b25159 Bump lodash from 4.17.15 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-21 10:01:21 +02:00
Jakub Sokołowski ed2307cf18 add support for compressed secp256k1 keys encoded with base58btc
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-07-07 17:29:20 +02:00
Jakub Sokołowski b4d7daf379 detect XSS attacks using is-html package
The isValidUrl method is using `idna-uts46-hx` to catch malformed domain
names and `is-html` to identify HTML elements in the URL.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-06-09 17:03:43 +02:00
jinhojang6 7fd9e423fa Update the footer 2020-04-29 16:46:49 +02:00
Jakub Sokołowski e8db83361b add Fathom Analytics
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-04-03 14:21:28 +02:00
Jakub Sokołowski e5bf39d23a add a redirect page warning user about possible attack
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-04-03 14:21:04 +02:00
Jakub Sokołowski 951c6723ee drop @ from user path because iOS removes it
iOS is fucking retarded and removes @ from deep links.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-04-01 15:50:00 +02:00
Jakub Sokołowski 39d7cdb890
redirect legacy uppercase channel names too
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-24 13:28:33 +01:00
Jakub Sokołowski bc2cc428f8 improve and fix tests using cheerio library
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-20 16:05:47 +01:00
Jakub Sokołowski 791989788f implement passing URL args to PlayStore
changes:
- Makes the Open in Status button trigger redirectToAppOrStore() JS method on click
- redirectToAppOrStore() redirects to a status-im:// deep link and Play/App store after 500 ms
- The redirect to Play Store includes the referrer URL argument with additional arguments
- The additional arguments include out, invite, and cid, necessary for starter packs

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-20 16:05:47 +01:00
Jakub Sokołowski e4b315568b remove broken calls to stick_in_parent
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-20 16:05:47 +01:00
Jakub Sokołowski 18ed7eefb6 add tap-color for proper test exit codes
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-20 16:05:47 +01:00
Jakub Sokołowski 6356862336 remove obsolete links from docs dropdown
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-20 16:05:47 +01:00
Jakub Sokołowski 6ab82fc195 add morkan for detailed express logs
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-20 16:05:47 +01:00
dependabot[bot] ac0e93de2e Bump minimist from 1.2.0 to 1.2.5
Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.5.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-18 10:02:53 +01:00
Jakub Sokołowski ccbb12803e add whole repo in Dockerfile
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-12 10:17:05 +01:00
Jakub Sokołowski 5ebca6acd0 Run tests before making docker image
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-12 10:17:05 +01:00
Jakub Sokołowski ed6d320ccf redirect uppercase channel names to lowercase
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-12 10:17:05 +01:00
Jakub Sokołowski 9c4a67e1ea
use orignal URL to make old user links work
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-06 18:01:54 +01:00
Jakub Sokołowski 54af2a13d2 fix status-im:// URLs for Android
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-28 16:03:13 +01:00
Jakub Sokołowski 0a8fe19418 show error on incorrect length chat key
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-26 10:16:51 +01:00
Jakub Sokołowski e5d3ed7036 show errors for upper case ens names and public chats
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-26 10:16:51 +01:00
Jakub Sokołowski b9001265e7 add support for express route tests
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-26 10:16:51 +01:00
Jakub Sokołowski 45d958e81a fix order of route parsing
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-26 10:16:51 +01:00
Jakub Sokołowski f64bcb5f3f handle malformed URLs, display error
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-26 10:16:51 +01:00
Jakub Sokołowski dd429398d4 use utx46 and univeil to avoid phishing
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-26 10:16:51 +01:00
Jakub Sokołowski bd8b46e4fd add support for shorter URLs
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-26 10:16:51 +01:00
Jakub Sokołowski 042a91e436 use status-im:// URI scheme in QR codes
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-20 23:11:49 +01:00
Jakub Sokołowski 7a1a8d2db7 drop /extension path, extensions are deprecated
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-20 23:11:49 +01:00
Jakub Sokołowski d689e123dd make button show 'Open in Status' on Android
And use the status-im:// URL scheme for the button.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-20 15:23:23 +01:00
Jakub Sokołowski d94bfc7a4b display QR code for public chat name
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-12 22:33:32 +01:00