chore: path resolver plugin to simplify imports and exports
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import React from "react"
|
||||
import { navigate, Link } from "gatsby"
|
||||
import { StyledLink } from "../../components/elements"
|
||||
import { StyledLink } from "components/elements"
|
||||
import styled from "@emotion/styled"
|
||||
/** @jsx jsx */
|
||||
import { jsx } from "@emotion/core"
|
||||
import { compose } from "recompose"
|
||||
import { withTheme } from "emotion-theming"
|
||||
|
||||
import { SIZES } from "../../styles/constants"
|
||||
import { todayUrl, yearUrl } from "../../utils/date"
|
||||
import { SIZES } from "styles/constants"
|
||||
import { todayUrl, yearUrl } from "utils/date"
|
||||
|
||||
import Logo from "../Logo"
|
||||
import Icon from "../Icon"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react"
|
||||
import styled from "@emotion/styled"
|
||||
|
||||
import { SIZES } from "../styles/constants"
|
||||
import { SIZES } from "styles/constants"
|
||||
|
||||
const Container = styled.div`
|
||||
display: flex;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { withTheme } from "emotion-theming"
|
||||
import { Link } from "gatsby"
|
||||
import styled from "@emotion/styled"
|
||||
|
||||
import { SIZES } from "../../styles/constants"
|
||||
import { SIZES } from "styles/constants"
|
||||
|
||||
export const H1 = styled.h1`
|
||||
display: block;
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
import React from "react"
|
||||
import { addDays, subDays, format, isAfter, startOfYesterday } from "date-fns"
|
||||
import { BeatLoader } from "react-spinners"
|
||||
import styled from "@emotion/styled"
|
||||
/** @jsx jsx */
|
||||
import { jsx, css, keyframes } from "@emotion/core"
|
||||
import { compose } from "recompose"
|
||||
import { withTheme } from "emotion-theming"
|
||||
import { withFirebase } from "../../firebase"
|
||||
import { withAuthentication } from "../../session"
|
||||
import { OnlineContext } from "../../context/online"
|
||||
import { addDays, subDays, format, isAfter, startOfYesterday } from "date-fns"
|
||||
import { BeatLoader } from "react-spinners"
|
||||
|
||||
import { SIZES } from "../../../styles/constants"
|
||||
import { withFirebase } from "components/firebase"
|
||||
import { withAuthentication } from "components/session"
|
||||
import { OnlineContext } from "components/context/online"
|
||||
|
||||
import { SIZES } from "styles/constants"
|
||||
|
||||
import Seek from "../../Seek"
|
||||
import Icon from "../../Icon"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { Component } from "react"
|
||||
import { AppLink as Link } from "../../../components/elements"
|
||||
import { AppLink as Link } from "components/elements"
|
||||
import styled from "@emotion/styled"
|
||||
import {
|
||||
isAfter,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Component } from "react"
|
||||
import { AppLink as Link } from "../../elements"
|
||||
/** @jsx jsx */
|
||||
import { jsx, css, keyframes } from "@emotion/core"
|
||||
import styled from "@emotion/styled"
|
||||
@@ -7,11 +6,11 @@ import { compose } from "recompose"
|
||||
import { withTheme } from "emotion-theming"
|
||||
import { BeatLoader } from "react-spinners"
|
||||
|
||||
import { Input } from "../../elements"
|
||||
import { pad } from "../../../utils/date"
|
||||
|
||||
import { withFirebase } from "../../firebase"
|
||||
import { withAuthentication } from "../../session"
|
||||
import { AppLink as Link } from "components/elements"
|
||||
import { Input } from "components/elements"
|
||||
import { withFirebase } from "components/firebase"
|
||||
import { withAuthentication } from "components/session"
|
||||
import { pad } from "utils/date"
|
||||
|
||||
const SearchGrid = styled.div`
|
||||
display: grid;
|
||||
|
||||
@@ -4,13 +4,11 @@ import Img from "gatsby-image"
|
||||
import styled from "@emotion/styled"
|
||||
import { withTheme } from "emotion-theming"
|
||||
|
||||
import { SIZES } from "../../../styles/constants"
|
||||
import { Button, P } from "../../elements"
|
||||
import { todayUrl } from "../../../utils/date"
|
||||
import { SIZES } from "styles/constants"
|
||||
import { Button, P } from "components/elements"
|
||||
import { todayUrl } from "utils/date"
|
||||
import Icon from "../../Icon"
|
||||
import Logo from "../../Logo"
|
||||
import LandingGraphicLight from "../../../img/landing-graphic-light.svg"
|
||||
import LandingGraphicDark from "../../../img/landing-graphic-dark.svg"
|
||||
|
||||
const StartGrid = styled.div`
|
||||
margin-top: 30px;
|
||||
|
||||
@@ -3,11 +3,11 @@ import styled from "@emotion/styled"
|
||||
import { withTheme } from "emotion-theming"
|
||||
import { compose } from "recompose"
|
||||
import { format } from "date-fns"
|
||||
import { withFirebase } from "../../firebase"
|
||||
import { withAuthentication } from "../../session"
|
||||
import { BeatLoader } from "react-spinners"
|
||||
|
||||
import { SIZES } from "../../../styles/constants"
|
||||
import { withFirebase } from "components/firebase"
|
||||
import { withAuthentication } from "components/session"
|
||||
import { SIZES } from "styles/constants"
|
||||
|
||||
import SignOut from "../../SignOut"
|
||||
import { Button } from "../../elements"
|
||||
|
||||
@@ -3,10 +3,9 @@ import { Link } from "gatsby"
|
||||
import styled from "@emotion/styled"
|
||||
import { withTheme } from "emotion-theming"
|
||||
|
||||
import { SIZES } from "../../../styles/constants"
|
||||
import { Button, P } from "../../elements"
|
||||
import { todayUrl } from "../../../utils/date"
|
||||
import Logo from "../../Logo"
|
||||
import { Button, P } from "components/elements"
|
||||
import Logo from "components/Logo"
|
||||
import { todayUrl } from "utils/date"
|
||||
|
||||
const WelcomeGrid = styled.div`
|
||||
margin-top: 30px;
|
||||
@@ -37,9 +36,8 @@ class Welcome extends Component {
|
||||
<WelcomeGrid>
|
||||
<h1>Your Space for Wandering Thoughts and Ideas</h1>
|
||||
<P style={{ letterSpacing: 1.1, marginBottom: 30 }}>
|
||||
Journaling can improve your health and help you take inventory of your
|
||||
day. Sol Journal works offline and from any device. Use it as a place
|
||||
to record thoughts and events from the day.
|
||||
This your space for wandering thoughts and ideas. Write about whatever
|
||||
comes to mind.
|
||||
</P>
|
||||
<Link to={`/app${todayUrl()}`} style={{ textDecoration: "none" }}>
|
||||
<Button colors={theme.colors}>Write about today</Button>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import React, { Component } from "react"
|
||||
import { AppLink as Link } from "../../../components/elements"
|
||||
import { AppLink as Link } from "components/elements"
|
||||
import styled from "@emotion/styled"
|
||||
import { addYears, subYears, format, isThisYear, getMonth } from "date-fns"
|
||||
import { withTheme } from "emotion-theming"
|
||||
|
||||
import { months } from "../../../utils/date"
|
||||
import { months } from "utils/date"
|
||||
import Seek from "../../Seek"
|
||||
|
||||
const MonthCardGrid = styled.div`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react"
|
||||
|
||||
import App from "../App"
|
||||
import Layout from "../components/Layout"
|
||||
import Layout from "components/Layout"
|
||||
|
||||
export default () => (
|
||||
<Layout>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import React from "react"
|
||||
import { SimpleNavbar } from "../components/Navbar"
|
||||
import Index from "../components/screens/Start/index"
|
||||
import Layout from "../components/Layout"
|
||||
import Container from "../components/container"
|
||||
import { SimpleNavbar } from "components/Navbar"
|
||||
import Index from "components/screens/Start/index"
|
||||
import Layout from "components/Layout"
|
||||
import Container from "components/container"
|
||||
|
||||
export default () => (
|
||||
<Layout>
|
||||
|
||||
@@ -5,11 +5,11 @@ import { compose } from "recompose"
|
||||
import { format } from "date-fns"
|
||||
import { withTheme } from "emotion-theming"
|
||||
|
||||
import { SimpleNavbar } from "../components/Navbar"
|
||||
import { Input, Button, P } from "../components/elements"
|
||||
import { SIZES } from "../styles/constants"
|
||||
import Layout from "../components/Layout"
|
||||
import { FirebaseContext } from "../components/firebase"
|
||||
import { SimpleNavbar } from "components/Navbar"
|
||||
import { Input, Button, P } from "components/elements"
|
||||
import Layout from "components/Layout"
|
||||
import { FirebaseContext } from "components/firebase"
|
||||
import { SIZES } from "styles/constants"
|
||||
|
||||
const LoginGrid = styled.div`
|
||||
display: grid;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import React from "react"
|
||||
|
||||
import { P } from "../components/elements"
|
||||
import Layout from "../components/Layout"
|
||||
import Container from "../components/container"
|
||||
import { P } from "components/elements"
|
||||
import Layout from "components/Layout"
|
||||
import Container from "components/container"
|
||||
|
||||
const Terms = () => (
|
||||
<Layout>
|
||||
|
||||
@@ -4,11 +4,11 @@ import { navigate, Link } from "gatsby"
|
||||
import { compose } from "recompose"
|
||||
import { withTheme } from "emotion-theming"
|
||||
|
||||
import { SimpleNavbar } from "../components/Navbar"
|
||||
import { Input, Button, P } from "../components/elements"
|
||||
import { SIZES } from "../styles/constants"
|
||||
import Layout from "../components/Layout"
|
||||
import { FirebaseContext } from "../components/firebase"
|
||||
import { SimpleNavbar } from "components/Navbar"
|
||||
import { Input, Button, P } from "components/elements"
|
||||
import Layout from "components/Layout"
|
||||
import { FirebaseContext } from "components/firebase"
|
||||
import { SIZES } from "styles/constants"
|
||||
|
||||
const RegisterGrid = styled.div`
|
||||
display: grid;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import React from "react"
|
||||
|
||||
import { P } from "../components/elements"
|
||||
import Layout from "../components/Layout"
|
||||
import Container from "../components/container"
|
||||
import { P } from "components/elements"
|
||||
import Layout from "components/Layout"
|
||||
import Container from "components/container"
|
||||
|
||||
const Terms = () => (
|
||||
<Layout>
|
||||
|
||||
Reference in New Issue
Block a user