Skip to content

Commit

Permalink
chore: module import optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
drl990114 committed Sep 10, 2024
1 parent ad914c3 commit a553b90
Show file tree
Hide file tree
Showing 194 changed files with 70 additions and 2,213 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/abab-npm-2.0.6-2662fba7f0-ebe95d7278.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/bser-npm-2.1.1-cc902055ce-edba1b65ba.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/co-npm-4.6.0-03f2d1feb6-a5d9f37091.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ejs-npm-3.1.10-4e8cf4bdc1-a9cb7d7cd1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/exit-npm-0.1.2-ef3761a67d-387555050c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/psl-npm-1.9.0-a546edad1a-d07879d4bf.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/tmpl-npm-1.0.5-d399ba37e2-cd922d9b85.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ws-npm-8.18.0-56f68bc4d6-70dfe53f23.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions apps/web/.contentlayer/generated/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export { isType } from 'contentlayer/client'

// NOTE During development Contentlayer imports from `.mjs` files to improve HMR speeds.
// During (production) builds Contentlayer it imports from `.json` files to improve build performance.
import { allPosts } from './Post/_index.mjs'
import { allMarkdowns } from './Markdown/_index.mjs'
import allPosts from './Post/_index.json' assert { type: 'json' }
import allMarkdowns from './Markdown/_index.json' assert { type: 'json' }

export { allPosts, allMarkdowns }

Expand Down
10 changes: 0 additions & 10 deletions apps/web/.jest.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion apps/web/components/Anchor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link as LinkIcon } from '@styled-icons/material'
import { Link as LinkIcon } from '@styled-icons/material/Link/Link'
import styled, { css } from 'styled-components'
import { mobile } from '../utils/media'
import rem from '../utils/rem'
Expand Down
2 changes: 1 addition & 1 deletion apps/web/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Favorite } from '@styled-icons/material'
import { Favorite } from '@styled-icons/material/Favorite/Favorite'
import styled, { css } from 'styled-components'
import { grey, paleGrey, red } from '../../utils/colors'
import { mobile } from '../../utils/media'
Expand Down
3 changes: 1 addition & 2 deletions apps/web/components/Nav/MobileNavbar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { KeyboardArrowDown } from '@styled-icons/material';
import { KeyboardArrowDown } from '@styled-icons/material/KeyboardArrowDown/KeyboardArrowDown';
import styled, { css } from 'styled-components';
import { mobile } from '../../utils/media';
import rem from '../../utils/rem';
import { navbarHeight } from '../../utils/sizes';
import Link from '../Link';
import NavButton from './NavButton';
import { CloseIcon, FoldIcon } from './NavIcons';
import NavLinks from './NavLinks';
Expand Down
2 changes: 1 addition & 1 deletion apps/web/components/Nav/Social.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import styled from 'styled-components';
import { Github } from '@styled-icons/fa-brands';
import { Github } from '@styled-icons/fa-brands/Github/Github';
import rem from '../../utils/rem';
import { navbarHeight } from '../../utils/sizes';
import Link from '../Link';
Expand Down
28 changes: 14 additions & 14 deletions apps/web/components/NextPage.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { KeyboardArrowRight } from '@styled-icons/material';
import styled, { css } from 'styled-components';
import { grey } from '../utils/colors';
import { mobile } from '../utils/media';
import rem from '../utils/rem';
import Link, { LinkProps } from './Link';
import { KeyboardArrowRight } from '@styled-icons/material/KeyboardArrowRight/KeyboardArrowRight'
import styled, { css } from 'styled-components'
import { grey } from '../utils/colors'
import { mobile } from '../utils/media'
import rem from '../utils/rem'
import Link, { LinkProps } from './Link'

const Wrapper = styled(Link).attrs((/* props */) => ({
unstyled: true,
Expand All @@ -16,34 +16,34 @@ const Wrapper = styled(Link).attrs((/* props */) => ({
width: 100%;
padding: ${rem(40)} ${rem(20)};
text-align: right;
font-family: ${props => props.theme.fontFamily};
font-family: ${(props) => props.theme.fontFamily};
${mobile(css`
text-align: left;
justify-content: center;
padding: ${rem(30)} ${rem(20)};
`)};
`;
`

const Text = styled.h3`
font-weight: normal;
padding-right: ${rem(20)};
margin: 0;
`;
`

const PageName = styled.h2`
font-weight: 600;
padding-right: ${rem(20)};
margin: 0;
`;
`

const Icon = styled(KeyboardArrowRight)`
color: ${grey};
width: ${rem(30)};
`;
`

export interface NextPageProps extends Pick<LinkProps, 'href'> {
title: string;
title: string
}

const NextPage = ({ title, href }: NextPageProps) => (
Expand All @@ -57,6 +57,6 @@ const NextPage = ({ title, href }: NextPageProps) => (
<Icon />
</div>
</Wrapper>
);
)

export default NextPage;
export default NextPage
7 changes: 0 additions & 7 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"precommit": "lint-staged",
"build": "NODE_ENV=production next build",
"start": "NODE_ENV=production next start",
"test": "jest -c .jest.config.js",
"prettier": "prettier --write \"**/*.*\""
},
"dependencies": {
Expand All @@ -20,7 +19,6 @@
"@mdx-js/react": "^3.0.1",
"@newhighsco/next-plugin-svgr": "^3.0.131",
"@next/mdx": "^14.2.3",
"@styled-icons/boxicons-regular": "^10.47.0",
"@styled-icons/fa-brands": "^10.47.0",
"@styled-icons/material": "^10.47.0",
"contentlayer": "^0.3.4",
Expand All @@ -43,7 +41,6 @@
"devDependencies": {
"@octokit/types": "^9.2.3",
"@types/enzyme": "^3.10.13",
"@types/jest": "^29.5.1",
"@types/mdx": "^2.0.5",
"@types/node": "^18.16.14",
"@types/react": "^18.3.0",
Expand All @@ -56,15 +53,11 @@
"csstype": "^3.1.2",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-styled-components": "^7.1.1",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"react-test-renderer": "^18.3.1",
"remark-gfm": "^4.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4",
"webpack-bundle-analyzer": "^4.8.0"
}
Expand Down
Loading

0 comments on commit a553b90

Please sign in to comment.