Skip to content

Commit

Permalink
feat: use spacex api proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
alichherawalla committed Mar 3, 2023
1 parent 74d407d commit 397f0dd
Show file tree
Hide file tree
Showing 17 changed files with 64 additions and 210 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SPACEX_URL=https://api.spacex.land/graphql/
SPACEX_URL=https://spacex-production.up.railway.app/
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SPACEX_URL=https://api.spacex.land/graphql/
SPACEX_URL=https://spacex-production.up.railway.app/
2 changes: 1 addition & 1 deletion .env.local
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SPACEX_URL=https://api.spacex.land/graphql/
SPACEX_URL=https://spacex-production.up.railway.app/
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ exports[`<Clickable /> component tests should render and match the snapshot 1`]
<body>
<div>
<div
class="Clickable__StyledClickable-p3uplw-0 kLCJiB"
class="Clickable__StyledClickable-sc-1vn3tbu-0 mgTtM"
data-testid="clickable"
>
<p
class="T__StyledText-gcrjip-0 gIxZML"
class="T__StyledText-znbtqz-0 TmgHn"
data-testid="t"
>
List of launches
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ exports[`<ErrorHandler /> should render and match the snapshot 1`] = `
<body>
<div>
<div
class="ant-card ant-card-bordered ErrorHandler__CustomCard-lh5a37-0 fOqTqj"
class="ant-card ant-card-bordered ErrorHandler__CustomCard-sc-1rh55w4-0 eOLbNC"
data-testid="error-card"
>
<div
class="ant-card-body"
>
<p
class="T__StyledText-gcrjip-0 gIxZML"
class="T__StyledText-znbtqz-0 TmgHn"
data-testid="error-message"
>
something_went_wrong
Expand Down
6 changes: 3 additions & 3 deletions app/components/Header/tests/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ exports[`<Header /> should render and match the snapshot 1`] = `
<body>
<div>
<header
class="ant-layout-header Header__StyledHeader-a7tfu0-0 hCGNY"
class="ant-layout-header Header__StyledHeader-sc-1oujkb8-0 gUdnlM"
data-testid="header"
>
<a
href="/"
>
<img
alt="logo"
class="Header__Logo-a7tfu0-1 hbWjcY"
class="Header__Logo-sc-1oujkb8-1 jCVyTI"
src="IMAGE_MOCK"
/>
</a>
<p
class="T__StyledText-gcrjip-0 emthK Header__Title-a7tfu0-2 elUMIm"
class="T__StyledText-znbtqz-0 gcpeYe Header__Title-sc-1oujkb8-2 fbBQMG"
data-testid="t"
>
Wednesday Solutions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,94 +4,94 @@ exports[`<LaundDetails> tests should render and match the snapshot 1`] = `
<body>
<div>
<div
class="ant-card ant-card-bordered LaunchDetails__LaunchDetailsCard-ytnak2-0 jEXwRD"
class="ant-card ant-card-bordered LaunchDetails__LaunchDetailsCard-asn7bn-0 dsEqMn"
data-testid="launch-details"
>
<div
class="ant-card-body"
>
<img
class="LaunchDetails__CustomImage-ytnak2-1 iXORvU"
class="LaunchDetails__CustomImage-asn7bn-1 jvjRBY"
src="https://farm9.staticflickr.com/8617/16789019815_f99a165dc5_o.jpg"
/>
<div
class="LaunchDetails__DetailsCard-ytnak2-2 hkMZdw"
class="LaunchDetails__DetailsCard-asn7bn-2 cBuJTk"
>
<p
class="T__StyledText-gcrjip-0 irGVum LaunchDetails__CustomT-ytnak2-4 dKPFxL"
class="T__StyledText-znbtqz-0 jrmeQy LaunchDetails__CustomT-asn7bn-4 dMaFrz"
data-testid="mission-name"
>
CRS-21
</p>
<p
class="T__StyledText-gcrjip-0 gIxZML LaunchDetails__CustomT-ytnak2-4 dKPFxL"
class="T__StyledText-znbtqz-0 TmgHn LaunchDetails__CustomT-asn7bn-4 dMaFrz"
data-testid="details"
>
<b
class="LaunchDetails__LaunchLabel-ytnak2-5 ibUuTD"
class="LaunchDetails__LaunchLabel-asn7bn-5 eWVLWT"
>
Details
</b>
SpaceX's 21st ISS resupply mission.
</p>
<p
class="T__StyledText-gcrjip-0 cTCPAw LaunchDetails__LaunchLabelT-ytnak2-6 jcSOHI"
class="T__StyledText-znbtqz-0 gLJJxM LaunchDetails__LaunchLabelT-asn7bn-6 rxgOQ"
data-testid="t"
>
Rocket
</p>
<div
class="LaunchDetails__RocketBox-ytnak2-3 jQCsNq"
class="LaunchDetails__RocketBox-asn7bn-3 ezZdiq"
>
<p
class="T__StyledText-gcrjip-0 gIxZML LaunchDetails__CustomT-ytnak2-4 dKPFxL"
class="T__StyledText-znbtqz-0 TmgHn LaunchDetails__CustomT-asn7bn-4 dMaFrz"
data-testid="rocket-name"
>
<b
class="LaunchDetails__LaunchLabel-ytnak2-5 ibUuTD"
class="LaunchDetails__LaunchLabel-asn7bn-5 eWVLWT"
>
Name
</b>
Falcon 9
</p>
<p
class="T__StyledText-gcrjip-0 gIxZML LaunchDetails__CustomT-ytnak2-4 dKPFxL"
class="T__StyledText-znbtqz-0 TmgHn LaunchDetails__CustomT-asn7bn-4 dMaFrz"
data-testid="rocket-type"
>
<b
class="LaunchDetails__LaunchLabel-ytnak2-5 ibUuTD"
class="LaunchDetails__LaunchLabel-asn7bn-5 eWVLWT"
>
Type
</b>
FT
</p>
</div>
<p
class="T__StyledText-gcrjip-0 cTCPAw LaunchDetails__LaunchLabelT-ytnak2-6 jcSOHI"
class="T__StyledText-znbtqz-0 gLJJxM LaunchDetails__LaunchLabelT-asn7bn-6 rxgOQ"
data-testid="t"
>
Ships
</p>
<div
class="LaunchDetails__ShipContainer-ytnak2-7 ImOjY"
class="LaunchDetails__ShipContainer-asn7bn-7 ksAIqA"
>
<p
class="T__StyledText-gcrjip-0 gIxZML LaunchDetails__CustomT-ytnak2-4 dKPFxL"
class="T__StyledText-znbtqz-0 TmgHn LaunchDetails__CustomT-asn7bn-4 dMaFrz"
data-testid="ship-name"
>
<b
class="LaunchDetails__LaunchLabel-ytnak2-5 ibUuTD"
class="LaunchDetails__LaunchLabel-asn7bn-5 eWVLWT"
>
Name
</b>
Ship 1
</p>
<p
class="T__StyledText-gcrjip-0 gIxZML LaunchDetails__CustomT-ytnak2-4 dKPFxL"
class="T__StyledText-znbtqz-0 TmgHn LaunchDetails__CustomT-asn7bn-4 dMaFrz"
data-testid="ship-type"
>
<b
class="LaunchDetails__LaunchLabel-ytnak2-5 ibUuTD"
class="LaunchDetails__LaunchLabel-asn7bn-5 eWVLWT"
>
Type
</b>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ exports[`<LaunchItem /> should render and match the snapshot 1`] = `
<body>
<div>
<div
class="ant-card ant-card-bordered LaunchItem__LaunchCard-tig4gy-0 gCObRf"
class="ant-card ant-card-bordered LaunchItem__LaunchCard-yxhovu-0 crOuqK"
data-testid="launch-item"
>
<div
class="ant-card-body"
>
<p
class="T__StyledText-gcrjip-0 izlutd"
class="T__StyledText-znbtqz-0 ciuNwl"
data-testid="mission-name"
>
Thaicom 6
</p>
<p
class="T__StyledText-gcrjip-0 gIxZML"
class="T__StyledText-znbtqz-0 TmgHn"
data-testid="t"
>
Mon, 6th January 2014, 06:06 PM
</p>
<a
class="ant-btn ant-btn-link LaunchItem__WikiLink-tig4gy-1 cfMXJX"
class="ant-btn ant-btn-link LaunchItem__WikiLink-yxhovu-1 hcXJZC"
data-testid="wiki-link"
href="https://en.wikipedia.org/wiki/Thaicom_6"
rel="noreferrer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ exports[`<LaunchList /> should render and match the snapshot 1`] = `
<body>
<div>
<div
class="LaunchList__Container-sc-1l6drbj-1 hstKCz"
class="LaunchList__Container-sc-1rqj0ky-1 eTexWw"
data-testid="for"
orientation="row"
>
<div
class="ant-card ant-card-bordered LaunchItem__LaunchCard-tig4gy-0 gCObRf"
class="ant-card ant-card-bordered LaunchItem__LaunchCard-yxhovu-0 crOuqK"
data-testid="launch-item"
>
<div
class="ant-card-body"
>
<p
class="T__StyledText-gcrjip-0 izlutd"
class="T__StyledText-znbtqz-0 ciuNwl"
data-testid="mission-name"
>
Thaicom 6
</p>
<p
class="T__StyledText-gcrjip-0 gIxZML"
class="T__StyledText-znbtqz-0 TmgHn"
data-testid="t"
>
Mon, 6th January 2014, 06:06 PM
</p>
<a
class="ant-btn ant-btn-link LaunchItem__WikiLink-tig4gy-1 cfMXJX"
class="ant-btn ant-btn-link LaunchItem__WikiLink-yxhovu-1 hcXJZC"
data-testid="wiki-link"
href="https://en.wikipedia.org/wiki/Thaicom_6"
rel="noreferrer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`<StyledContainer /> tests should render and match the snapshot 1`] = `
<body>
<div>
<div
class="StyledContainer-sc-1g4wsls-0 cJavQW"
class="StyledContainer-sc-1xw91me-0 jzYaeF"
/>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion app/components/T/tests/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`<T /> component tests should render and match the snapshot 1`] = `
<body>
<div>
<p
class="T__StyledText-gcrjip-0 gIxZML"
class="T__StyledText-znbtqz-0 TmgHn"
data-testid="t"
/>
</div>
Expand Down
Loading

0 comments on commit 397f0dd

Please sign in to comment.