Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit db61737

Browse files
committed
Merge remote-tracking branch 'origin/develop' into release/maker-portal-redesign
2 parents d2fac88 + 210dca6 commit db61737

File tree

47 files changed

+2131
-863
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2131
-863
lines changed

.babelrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
"ssr": true
88
}
99
],
10-
"@babel/plugin-transform-regenerator",
11-
"@babel/plugin-transform-runtime",
1210
[
1311
"module-resolver",
1412
{

components/list/categories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const mapStateToProps = (state) => ({
1515
})
1616

1717
const CategoryItem = ({ category, link, ...rest }) => (
18-
<Link href={link.href} as={link.as} prefetch>
18+
<Link href={link.href} as={link.as}>
1919
<StyledList.ItemLink {...rest} link>
2020
<Box style={{ flexGrow: 1, maxWidth: '100%' }} px={2}>
2121
<Type.strong>

components/list/platforms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const mapStateToProps = (state) => ({
1919
})
2020

2121
const PlatformItem = ({ platform, link, image, width, icon: Icon, ...rest }) => (
22-
<Link href={link.href} as={link.as} prefetch>
22+
<Link href={link.href} as={link.as}>
2323
<StyledList.ItemLink width={width} link {...rest}>
2424
<Flex justifyContent="flex-start" style={{ flexGrow: 1, maxWidth: '100%' }} pr={2}>
2525
{Icon ? (

components/logos/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33

4-
const AppIcon = ({ size = 34, ...rest }) => (
4+
const AppIcon = ({ ...rest }) => (
55
<svg viewBox="0 0 34 34" fill="none" style={{ width: '100%', maxWidth: '100%', display: 'block' }} {...rest}>
66
<path
77
d="M27.7771 34H6.24321C2.78386 34 1.24936e-06 31.1957 1.24936e-06 27.7568V6.24323C1.24936e-06 2.78386 2.80433 1.56171e-07 6.24321 1.56171e-07H27.7567C31.216 1.56171e-07 33.9999 2.80433 33.9999 6.24323V27.7568C34.0204 31.1957 31.216 34 27.7771 34Z"

components/mining/shared/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react'
22
import { Flex, Box, Type, OpenModal } from 'blockstack-ui'
33
import { Hover } from 'react-powerplug'
44
import { ArrowIcon, OutlinedLogo } from '@components/mining/svg'
5-
import { StarterKitModal } from '@pages/mining/starter-kit-modal'
5+
import { StarterKitModal } from '@containers/mining/starter-kit-modal'
66
import { InView } from 'react-intersection-observer'
77

88
import dynamic from 'next/dynamic'
@@ -79,8 +79,8 @@ const Wrapper = ({ observed, inView, ...rest }) => (
7979
<Flex
8080
maxWidth={1180}
8181
px={[6, 8]}
82-
width={'100%'}
83-
mx={'auto'}
82+
width="100%"
83+
mx="auto"
8484
flexDirection={['column', 'column', 'row', 'row']}
8585
opacity={!observed ? 1 : inView ? 1 : 0}
8686
transform={!observed ? 'none' : inView ? 'none' : 'translateY(-20px)'}
@@ -204,7 +204,7 @@ const CallToAction = ({ hideTimer, buttonProps = {}, ...rest }) => (
204204
borderRadius={2}
205205
overflow="hidden"
206206
transform={hovered ? 'translateY(-5px)' : 'unset'}
207-
transition={'0.1s all ease-in-out'}
207+
transition="0.1s all ease-in-out"
208208
{...rest}
209209
>
210210
<Flex

components/navigation/index.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@ const NavigationComponent = ({ handleClick, isErrorPage, openNewsletterModal, fo
2929
<ErrorPageLink isErrorPage={isErrorPage} href="/all">
3030
<a href="/all">All apps</a>
3131
</ErrorPageLink>
32-
<ErrorPageLink isErrorPage={isErrorPage} href="/faq" prefetch {...extraProps}>
32+
<ErrorPageLink isErrorPage={isErrorPage} href="/faq" {...extraProps}>
3333
<a href="/faq">Learn more</a>
3434
</ErrorPageLink>
35-
<ErrorPageLink isErrorPage={isErrorPage} href="/mining" prefetch {...extraProps}>
35+
<ErrorPageLink isErrorPage={isErrorPage} href="/mining" {...extraProps}>
3636
<a href="/mining">App Mining</a>
3737
</ErrorPageLink>
38-
<ErrorPageLink isErrorPage={isErrorPage} href="https://blog.app.co" {...extraProps}>
39-
<a href="https://blog.app.co">Blog</a>
40-
</ErrorPageLink>
38+
<a href="https://blog.app.co" target="_blank" rel="noopener noreferrer">Blog</a>
4139
<a
4240
href="#"
4341
onClick={(evt) => {
@@ -49,13 +47,13 @@ const NavigationComponent = ({ handleClick, isErrorPage, openNewsletterModal, fo
4947
</a>
5048
{footer && (
5149
<>
52-
<ErrorPageLink isErrorPage={isErrorPage} href="/privacy" prefetch>
50+
<ErrorPageLink isErrorPage={isErrorPage} href="/privacy">
5351
<a href="/privacy">Privacy Policy</a>
5452
</ErrorPageLink>
55-
<ErrorPageLink isErrorPage={isErrorPage} href="/terms" prefetch>
53+
<ErrorPageLink isErrorPage={isErrorPage} href="/terms">
5654
<a href="/terms">Terms of Use</a>
5755
</ErrorPageLink>
58-
<ErrorPageLink isErrorPage={isErrorPage} href="/mining/terms" prefetch>
56+
<ErrorPageLink isErrorPage={isErrorPage} href="/mining/terms">
5957
<a href="/mining/terms">App Mining Terms</a>
6058
</ErrorPageLink>
6159
</>

components/page/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { Footer } from '@components/footer'
55

66
import { StyledPage } from './styled'
77

8-
const Page = ({ isErrorPage, children, admin, wrap, innerPadding = [2, 0], ...rest }) => (
8+
const Page = ({ isErrorPage = false, children, admin = false, wrap, innerPadding = [2, 0], ...rest }) => (
99
<StyledPage {...rest}>
10-
<TopBar isErrorPage={isErrorPage} admin={admin} wrap={wrap} />
10+
<TopBar isErrorPage={isErrorPage} admin={admin} wrap={rest.wrap} />
1111
<StyledPage.Section flexDirection={['column']} alignItems="center" pt={[3, 4]} px={innerPadding}>
1212
{children}
1313
</StyledPage.Section>
@@ -28,6 +28,13 @@ Page.Section.Content = StyledPage.Content
2828

2929
Page.propTypes = {
3030
children: PropTypes.node.isRequired,
31+
isErrorPage: PropTypes.bool,
32+
admin: PropTypes.bool,
3133
wrap: PropTypes.bool
3234
}
35+
36+
Page.defaultProps = {
37+
isErrorPage: false,
38+
admin: false
39+
}
3340
export { Page }

components/tag/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { StyledTag, StyledTagLink } from '@components/tag/styled'
66
const Tag = ({ children, ...rest }) => (children ? <StyledTag {...rest}>{children}</StyledTag> : null)
77

88
const TagLink = ({ children, href, as, ...rest }) => (
9-
<Link href={href} as={as} prefetch>
9+
<Link href={href} as={as}>
1010
<StyledTagLink href={as} {...rest}>
1111
{children}
1212
</StyledTagLink>

components/top-bar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const handleBodyScroll = (on) =>
1717
const TopBar = ({ isErrorPage, admin, wrap, ...props }) => (
1818
<Headroom>
1919
<StyledTopBar {...props}>
20-
<StyledTopBar.Wrapper wrap={false}>
20+
<StyledTopBar.Wrapper wrap={wrap}>
2121
<StyledTopBar.Section grow>
2222
{isErrorPage ? (
2323
<a href="/">

containers/admin/app-list.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ const appRows = (apps) => apps.map((app) => (
2727

2828
class AppList extends React.Component {
2929
async downloadAllApps() {
30-
const { jwt, apiServer } = this.props
31-
const url = `${apiServer}/api/admin/download-apps`
30+
const url = `${this.props.apiServer}/api/admin/download-apps`
3231
const res = await fetch(url, {
3332
headers: new Headers({
34-
Authorization: `Bearer ${jwt}`
33+
Authorization: `Bearer ${this.props.jwt}`
3534
})
3635
})
3736
const blob = await res.blob()

0 commit comments

Comments
 (0)