Skip to content

Commit 9c2023a

Browse files
committed
style: format code
1 parent 128cd0d commit 9c2023a

19 files changed

+180
-37
lines changed

codegen.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema:
44
- ${SCHEMA_URL}:
55
method: POST
66
headers:
7-
authorization: "Bearer 631313a24e9ce35b074d4b72a3473c"
7+
authorization: "Bearer ${NEXT_DATOCMS_API_TOKEN}"
88

99
documents: "graphql/**/*.graphql"
1010
generates:

components/Divider.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Heading, HeadingProps } from 'theme-ui';
1+
import type { HeadingProps } from 'theme-ui';
2+
import { Heading } from 'theme-ui';
23

34
export const Divider: React.FC<HeadingProps> = ({ sx, ...props }) => {
45
return (

components/GithubButton.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Box, Button, ButtonProps } from 'theme-ui';
1+
import type { ButtonProps } from 'theme-ui';
2+
import { Box, Button } from 'theme-ui';
23

34
import GithubIcon from './Icons/GithubIcon.svg';
45

components/Hero.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Box, Heading, HeadingProps } from 'theme-ui';
1+
import type { HeadingProps } from 'theme-ui';
2+
import { Box, Heading } from 'theme-ui';
23

34
interface HeroProps extends HeadingProps {}
45

components/Planet.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useRive, useStateMachineInput } from 'rive-react';
2-
import { RiveProps } from 'rive-react/dist/types/components/Rive';
3-
import { Box, BoxProps } from 'theme-ui';
2+
import type { RiveProps } from 'rive-react/dist/types/components/Rive';
3+
import type { BoxProps } from 'theme-ui';
4+
import { Box } from 'theme-ui';
45

56
interface Planet extends BoxProps, RiveProps {}
67

components/PuffLoader.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { keyframes } from '@emotion/react';
2-
import { Box, ThemeUIStyleObject } from 'theme-ui';
2+
import type { ThemeUIStyleObject } from 'theme-ui';
3+
import { Box } from 'theme-ui';
34

45
const puff = [
56
keyframes`

components/ThisWeekSection.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { isNull } from '@fullstacksjs/toolbox';
22
import { Container, Heading } from 'theme-ui';
3-
import { TopicsQuery } from '../graphql/generated';
3+
import type { TopicsQuery } from '../graphql/generated';
44
import Planet from './Planet';
5-
import TopicsCart from './TopicsCard';
5+
import { TopicsCart } from './TopicsCard';
66

77
type Topic = TopicsQuery['allTopics'][number];
88

components/TopicsCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Composition } from '@atomic-layout/emotion';
33
import { isNull, not } from '@fullstacksjs/toolbox';
44
import { useState } from 'react';
55
import { Box, Button, Card, Heading, Image, Text, useThemeUI } from 'theme-ui';
6-
import { TopicsQuery } from '../graphql/generated';
6+
import type { TopicsQuery } from '../graphql/generated';
77
import { useTopic, useVoteDown, useVoteUp } from '../operations';
88
import ChevronDownIcon from './Icons/ChevronDownIcon.svg';
99
import ChevronUpIcon from './Icons/ChevronUpIcon.svg';

graphql/generated.ts

+67-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { GraphQLClient } from 'graphql-request';
2-
import * as Dom from 'graphql-request/dist/types.dom';
1+
import type { GraphQLClient } from 'graphql-request';
2+
import type * as Dom from 'graphql-request/dist/types.dom';
33
import gql from 'graphql-tag';
44
export type Maybe<T> = T | null;
55
export type InputMaybe<T> = Maybe<T>;
@@ -185,6 +185,8 @@ export interface ImgixParams {
185185
* Specifies an aspect ratio to maintain when resizing and cropping the image
186186
*
187187
* Depends on: `fit=crop`
188+
*
189+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/size/ar)
188190
*/
189191
ar?: InputMaybe<Scalars['String']>;
190192
/**
@@ -351,6 +353,8 @@ export interface ImgixParams {
351353
* Sets bottom border of an image.
352354
*
353355
* Depends on: `border`
356+
*
357+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/border-and-padding/border-bottom)
354358
*/
355359
borderBottom?: InputMaybe<Scalars['IntType']>;
356360
/**
@@ -359,6 +363,8 @@ export interface ImgixParams {
359363
* Sets left border of an image.
360364
*
361365
* Depends on: `border`
366+
*
367+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/border-and-padding/border-left)
362368
*/
363369
borderLeft?: InputMaybe<Scalars['IntType']>;
364370
/**
@@ -387,6 +393,8 @@ export interface ImgixParams {
387393
* Sets right border of an image.
388394
*
389395
* Depends on: `border`
396+
*
397+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/border-and-padding/border-right)
390398
*/
391399
borderRight?: InputMaybe<Scalars['IntType']>;
392400
/**
@@ -395,6 +403,8 @@ export interface ImgixParams {
395403
* Sets top border of an image.
396404
*
397405
* Depends on: `border`
406+
*
407+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/border-and-padding/border-top)
398408
*/
399409
borderTop?: InputMaybe<Scalars['IntType']>;
400410
/**
@@ -646,7 +656,7 @@ export interface ImgixParams {
646656
*
647657
* [Open Imgix reference »](https://docs.imgix.com/apis/url/focalpoint-crop/fp-z)
648658
*/
649-
fpZ?: InputMaybe<Scalars['IntType']>;
659+
fpZ?: InputMaybe<Scalars['FloatType']>;
650660
/**
651661
* Gamma
652662
*
@@ -711,6 +721,12 @@ export interface ImgixParams {
711721
* [Open Imgix reference »](https://docs.imgix.com/apis/url/adjustment/invert)
712722
*/
713723
invert?: InputMaybe<Scalars['BooleanType']>;
724+
/**
725+
* Iptc Passthrough
726+
*
727+
* Determine if IPTC data should be passed for JPEG images.
728+
*/
729+
iptc?: InputMaybe<ImgixParamsIptc>;
714730
/**
715731
* Lossless Compression
716732
*
@@ -789,6 +805,14 @@ export interface ImgixParams {
789805
* [Open Imgix reference »](https://docs.imgix.com/apis/url/watermark/mark-pad)
790806
*/
791807
markPad?: InputMaybe<Scalars['IntType']>;
808+
/**
809+
* Watermark Rotation
810+
*
811+
* Rotates a watermark or tiled watermarks by a specified number of degrees.
812+
*
813+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/watermark/mark-rot)
814+
*/
815+
markRot?: InputMaybe<Scalars['FloatType']>;
792816
/**
793817
* Watermark Scale
794818
*
@@ -799,6 +823,16 @@ export interface ImgixParams {
799823
* [Open Imgix reference »](https://docs.imgix.com/apis/url/watermark/mark-scale)
800824
*/
801825
markScale?: InputMaybe<Scalars['IntType']>;
826+
/**
827+
* Watermark Tile
828+
*
829+
* Adds tiled watermark.
830+
*
831+
* Depends on: `mark`
832+
*
833+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/watermark/mark-tile)
834+
*/
835+
markTile?: InputMaybe<ImgixParamsMarkTile>;
802836
/**
803837
* Watermark Width
804838
*
@@ -931,32 +965,40 @@ export interface ImgixParams {
931965
* Padding Bottom
932966
*
933967
* Sets bottom padding of an image.
968+
*
969+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/border-and-padding/pad-bottom)
934970
*/
935971
padBottom?: InputMaybe<Scalars['IntType']>;
936972
/**
937973
* Padding Left
938974
*
939975
* Sets left padding of an image.
976+
*
977+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/border-and-padding/pad-left)
940978
*/
941979
padLeft?: InputMaybe<Scalars['IntType']>;
942980
/**
943981
* Padding Right
944982
*
945983
* Sets right padding of an image.
984+
*
985+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/border-and-padding/pad-right)
946986
*/
947987
padRight?: InputMaybe<Scalars['IntType']>;
948988
/**
949989
* Padding Top
950990
*
951991
* Sets top padding of an image.
992+
*
993+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/border-and-padding/pad-top)
952994
*/
953995
padTop?: InputMaybe<Scalars['IntType']>;
954996
/**
955997
* Pdf Page Number
956998
*
957999
* Selects a page from a PDF for display.
9581000
*
959-
* [Open Imgix reference »](https://docs.imgix.com/apis/url/pdf-page-number)
1001+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/pdf/page)
9601002
*/
9611003
page?: InputMaybe<Scalars['IntType']>;
9621004
/**
@@ -967,6 +1009,14 @@ export interface ImgixParams {
9671009
* [Open Imgix reference »](https://docs.imgix.com/apis/url/color-palette/palette)
9681010
*/
9691011
palette?: InputMaybe<ImgixParamsPalette>;
1012+
/**
1013+
* Pdf Annotation
1014+
*
1015+
* Enables or disables PDF annotation.
1016+
*
1017+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/pdf/pdf-annotation)
1018+
*/
1019+
pdfAnnotation?: InputMaybe<Scalars['BooleanType']>;
9701020
/**
9711021
* Css Prefix
9721022
*
@@ -1047,6 +1097,8 @@ export interface ImgixParams {
10471097
* Transparency
10481098
*
10491099
* Adds checkerboard behind images which support transparency.
1100+
*
1101+
* [Open Imgix reference »](https://docs.imgix.com/apis/url/fill/transparency)
10501102
*/
10511103
transparency?: InputMaybe<ImgixParamsTransparency>;
10521104
/**
@@ -1394,6 +1446,8 @@ export enum ImgixParamsFlip {
13941446
}
13951447

13961448
export enum ImgixParamsFm {
1449+
Avif = 'avif',
1450+
Blurhash = 'blurhash',
13971451
Gif = 'gif',
13981452
Jp2 = 'jp2',
13991453
Jpg = 'jpg',
@@ -1408,6 +1462,11 @@ export enum ImgixParamsFm {
14081462
Webp = 'webp',
14091463
}
14101464

1465+
export enum ImgixParamsIptc {
1466+
Allow = 'allow',
1467+
Block = 'block',
1468+
}
1469+
14111470
export enum ImgixParamsMarkAlign {
14121471
Bottom = 'bottom',
14131472
Center = 'center',
@@ -1425,6 +1484,10 @@ export enum ImgixParamsMarkFit {
14251484
Scale = 'scale',
14261485
}
14271486

1487+
export enum ImgixParamsMarkTile {
1488+
Grid = 'grid',
1489+
}
1490+
14281491
export enum ImgixParamsPalette {
14291492
Css = 'css',
14301493
Json = 'json',

lib/apiHandler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
1+
import type { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
22

33
type HttpMethod = 'delete' | 'get' | 'post' | 'put';
44

lib/theme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { range } from '@fullstacksjs/toolbox';
2-
import { Theme } from 'theme-ui';
2+
import type { Theme } from 'theme-ui';
33

44
const theme: Theme = {
55
colors: {

0 commit comments

Comments
 (0)