Skip to content

Commit

Permalink
Fix pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Oct 30, 2020
1 parent d7fe542 commit 9274b1d
Show file tree
Hide file tree
Showing 102 changed files with 281 additions and 77 deletions.
13 changes: 13 additions & 0 deletions frontend/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": ["next/babel"],
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"runtime": "classic",
"importSource": "theme-ui",
"pragmaFrag": "React.Fragment",
"throwIfNamespace": false,
}]
]
}
22 changes: 12 additions & 10 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
},
"dependencies": {
"@apollo/client": "^3.2.5",
"@babel/plugin-transform-react-jsx": "^7.12.1",
"@babel/preset-react": "^7.12.1",
"@emotion/core": "^10.0.35",
"@graphql-codegen/add": "^2.0.0",
"@graphql-codegen/cli": "^1.19.0",
Expand Down Expand Up @@ -45,17 +47,17 @@
"next-with-apollo": "^5.1.0",
"puppeteer": "^5.4.1",
"puppeteer-core": "^5.4.1",
"react": "^17.0.1",
"react": "16.13.1",
"react-dnd": "^11.1.3",
"react-dnd-html5-backend": "^11.1.3",
"react-dom": "^17.0.1",
"react-dom": "16.13.1",
"react-intl": "^5.8.8",
"react-lazyload": "^3.1.0",
"react-select": "^3.1.0",
"react-use-form-state": "^0.13.2",
"react-use-sync-scroll": "^0.1.0",
"styled-system": "^5.1.5",
"theme-ui": "0.4.0-rc.1",
"theme-ui": "0.4.0-rc.5",
"use-local-storage-state": "^5.1.0",
"use-onclickoutside": "^0.3.1",
"yup": "^0.29.3"
Expand All @@ -79,12 +81,12 @@
"typescript": "^4.0.5"
},
"resolutions": {
"@theme-ui/core": "0.4.0-rc.1",
"@theme-ui/css": "0.4.0-rc.1",
"@theme-ui/mdx": "0.4.0-rc.1",
"@theme-ui/theme-provider": "0.4.0-rc.1",
"@theme-ui/components": "0.4.0-rc.1",
"@theme-ui/color-modes": "0.4.0-rc.1",
"theme-ui": "0.4.0-rc.1"
"@theme-ui/core": "0.4.0-rc.5",
"@theme-ui/css": "0.4.0-rc.5",
"@theme-ui/mdx": "0.4.0-rc.5",
"@theme-ui/theme-provider": "0.4.0-rc.5",
"@theme-ui/components": "0.4.0-rc.5",
"@theme-ui/color-modes": "0.4.0-rc.5",
"theme-ui": "0.4.0-rc.5"
}
}
2 changes: 2 additions & 0 deletions frontend/src/app/profile/logout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { useApolloClient } from "@apollo/client";
import Router from "next/router";
import { useCallback } from "react";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/profile/my-orders.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { FormattedMessage } from "react-intl";
import { Box, Flex, Heading, jsx, Text } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/profile/my-profile.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { FormattedMessage } from "react-intl";
import { Box, Heading, jsx, Text } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/profile/my-submissions.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { FormattedMessage } from "react-intl";
import { Box, Heading, jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/article/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { Fragment } from "react";
import { Box, Heading, jsx, Text } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/button/button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { useEffect, useRef, useState } from "react";
import { FormattedMessage } from "react-intl";
import { Button as ThemeButton, jsx } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/cfp-form/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { ApolloError } from "@apollo/client";
import React, { Fragment, useEffect } from "react";
import { FormattedMessage } from "react-intl";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/cfp-introduction/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React from "react";
import { FormattedMessage } from "react-intl";
import { Box, Grid, jsx, Text } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/cfp-send-submission/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { useRouter } from "next/router";
import { jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/day-selector/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { useRouter } from "next/router";
import React from "react";
import { Box, jsx, Select } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/deadlines/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { Fragment } from "react";
import { FormattedMessage } from "react-intl";
import { jsx } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/error-boundary/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import * as Sentry from "@sentry/browser";
import { Component } from "react";
import { Box, Heading, jsx, Text } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/errors-list/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React from "react";
import { Box, jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { Box, Grid, jsx } from "theme-ui";

import { useFooterQuery } from "~/types";
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/grant-form/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @jsx jsx */

import React, { Fragment, useCallback } from "react";
import { FormattedMessage } from "react-intl";
import { useFormState } from "react-use-form-state";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/grants-introduction/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React from "react";
import { FormattedMessage } from "react-intl";
import { Box, Grid, jsx, Text } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/grid-slider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { useState } from "react";
import { Box, Flex, Grid, Heading, jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import dynamic from "next/dynamic";
import { useRouter } from "next/router";
import { Fragment, useEffect, useRef } from "react";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/header/profile-link.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { FormattedMessage } from "react-intl";
import { jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/home-events/event-card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { Box, Flex, Heading, jsx, Text } from "theme-ui";

import { useCurrentLanguage } from "~/locale/context";
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/homepage-hero/buy-tickets-cta.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @jsx jsx */

import React from "react";
import { jsx, useThemeUI } from "theme-ui";

Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/homepage-hero/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @jsx jsx */

import { Box, jsx } from "theme-ui";

import { Link } from "../link";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/hotel-form/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import moment from "moment";
import { FormattedMessage } from "react-intl";
import { Box, Flex, Heading, jsx } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/illustrations/cfp.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React from "react";
import { jsx } from "theme-ui";

Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/input-tag/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @jsx jsx */

import { useCallback } from "react";
import { jsx } from "theme-ui";

Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/input-wrapper/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @jsx jsx */

import React from "react";
import { Box, jsx, Text } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/keynoters-section/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { Box, Flex, Heading, jsx, Text } from "theme-ui";

import { useKeynotesSectionQuery } from "~/types";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/link/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import NextLink from "next/link";
import React from "react";
import { Box, jsx, Link as ThemeLink } from "theme-ui";
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/login-form/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @jsx jsx */

import Router, { useRouter } from "next/router";
import { useEffect } from "react";
import { FormattedMessage } from "react-intl";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/map-with-link/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { jsx } from "theme-ui";

import { useMapWithLinkQuery } from "~/types";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/marquee/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { keyframes } from "@emotion/core";
import { Flex, jsx, Text } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/newsletter/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React, { useCallback, useState } from "react";
import { FormattedMessage } from "react-intl";
import { Box, Heading, Input, jsx, Text } from "theme-ui";
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/page-loading/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @jsx jsx */

import { FormattedMessage } from "react-intl";
import { Box, Heading, jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/ranking-page/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React from "react";
import { FormattedMessage } from "react-intl";
import { useFormState } from "react-use-form-state";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/schedule-view/events.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React from "react";
import { Box, Flex, jsx, Text } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/schedule-view/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React, { Fragment, useCallback } from "react";
import { FormattedMessage } from "react-intl";
import { Box, Flex, Heading, jsx } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/schedule-view/placeholder.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React from "react";
import { Box, jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/schedule-view/schedule.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React, { useRef } from "react";
import useSyncScroll from "react-use-sync-scroll";
import { Box, Grid, jsx } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/schedule-view/staff/items-panel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React, { useState } from "react";
import { Box, Heading, Input, jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/select/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React, { CSSProperties } from "react";
import { default as ReactSelect, Props } from "react-select";
import { jsx } from "theme-ui";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/signup-form/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { useRouter } from "next/router";
import React, { useCallback, useLayoutEffect } from "react";
import { FormattedMessage } from "react-intl";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/social-links/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { Flex, jsx } from "theme-ui";

import Facebook from "../icons/social/facebook";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/social-links/social-circle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { jsx } from "theme-ui";

export const SocialCircle: React.SFC<{ color: string; variant?: string }> = ({
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/social-login-success/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { useRouter } from "next/router";
import React, { useEffect } from "react";
import { FormattedMessage } from "react-intl";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/speaker-detail/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { Fragment } from "react";
import { Box, Grid, jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/sponsors-section/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { Box, Heading, jsx } from "theme-ui";

import { SponsorsGrid } from "./sponsors-grid";
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/sponsors-section/sponsors-grid.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import LazyLoad from "react-lazyload";
import { Box, Grid, jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import { Global } from "@emotion/core";
import { jsx } from "theme-ui";

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/submission-accordion/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

/** @jsx jsx */

import React, { Fragment, useCallback, useState } from "react";
import { FormattedMessage } from "react-intl";
import { Box, Grid, Heading, jsx, Text } from "theme-ui";
Expand Down
Loading

0 comments on commit 9274b1d

Please sign in to comment.