Skip to content

Commit

Permalink
fix everything?
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Sep 6, 2022
1 parent 725fec8 commit ec1329a
Show file tree
Hide file tree
Showing 13 changed files with 26,176 additions and 23,705 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
2 changes: 1 addition & 1 deletion apps/thesis/components/Commits/CommitListByDate.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Divider, VStack } from '@chakra-ui/layout'
import { Divider, VStack } from '@chakra-ui/react'
import { SlimCommit } from '@zkp/types'
import { Commit } from './Commit'

Expand Down
5 changes: 1 addition & 4 deletions apps/thesis/components/CustomSidebar/CustomSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ export const CustomSideBar = (props: Props) => {
})
const unemph = useColorModeValue('gray.700', 'gray.300')

const [sort, setSort] = useLocalStorageState<Sorts>('sidebarSort', {
defaultValue: 'alpha',
ssr: true,
})
const [sort, setSort] = useLocalStorageState<Sorts>('sidebarSort', { defaultValue: 'alpha' })

const folderList = useMemo(
() => fileListReducer(Object.values(fileList), sorts[sort]),
Expand Down
1 change: 0 additions & 1 deletion apps/thesis/hooks/usePersistantDisclosure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const usePersistantDisclosure = (storageKey: string, props: UseDisclosure
const onClosePropCallbackRef = useCallbackRef(onCloseProp)
const [isOpenState, setIsOpen] = useLocalStorageState(storageKey, {
defaultValue: props.defaultIsOpen || false,
ssr: true,
})
const [isControlled, isOpen] = useControllableProp(isOpenProp, isOpenState)

Expand Down
24 changes: 4 additions & 20 deletions apps/thesis/next.config.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,19 @@
const withNx = require('@nrwl/next/plugins/with-nx')

const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
// const withBundleAnalyzer = require('@next/bundle-analyzer')({
// enabled: process.env.ANALYZE === 'true',
// })

const withPlugins = require('next-compose-plugins')
const withSWRTypes = require('next-typed-api-with-swr')
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
/* config options here */
swcMinify: true,
experimental: { nftTracing: true, topLevelAwait: true },
experiments: { topLevelAwait: true },
staticPageGenerationTimeout: 180,
webpack(config, { dev }) {
// if (dev) {
// config.devtool = 'cheap-module-source-map'
// }
config.module.rules = [
...config.module.rules,
// ensure our libs barrel files don't constitute imports
{
test: /.*libs\/.*src\/.*index.ts/i,
sideEffects: false,
},
]
return config
},
images: { domains: ['avatars.githubusercontent.com'] },
}

module.exports = withPlugins([[withNx], [withBundleAnalyzer]], nextConfig)
module.exports = nextConfig
3 changes: 1 addition & 2 deletions apps/zkp/Components/MDXComponents/MDXLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Text } from '@chakra-ui/react'
import { PreviewLink } from '../FileViewer'
import { MDXComp } from './types'

//// @ts-expect-error Yeah hthe types are all over the frigging place here
export const MDXLinkBase: MDXComp<'a'> = (
props: React.ComponentProps<'a'> & { currentId: string; alias?: string },
) => {
Expand All @@ -31,7 +30,7 @@ export const MDXLinkBase: MDXComp<'a'> = (
}

const title = alias
return <a>{href}</a>
return <a href={href}>{href}</a>
return (
<PreviewLink
currentId={currentId}
Expand Down
4 changes: 2 additions & 2 deletions libs/discus/src/lib/components/Comments/EditMenu/EditMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DotsVerticalIcon } from '@heroicons/react/solid'
import { EllipsisVerticalIcon } from '@heroicons/react/24/solid'
import { Popover } from '@zkp/popover'
import { Button } from '@zkp/ui'

Expand Down Expand Up @@ -36,7 +36,7 @@ export const EditMenu = (props: EditMenuProps) => {
return (
<Popover
placement="bottom-end"
button={{ children: <DotsVerticalIcon />, className: 'h-6 w-4 text-slate-600' }}
button={{ children: <EllipsisVerticalIcon />, className: 'h-6 w-4 text-slate-600' }}
>
<div className="w-40 bg-white dark:bg-slate-700">
<ul>
Expand Down
2 changes: 1 addition & 1 deletion libs/git/src/lib/doSomethingAtFileStateChanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const doSomethingAtFileStateChange = ({
filename?: string
fileStateFun?: (
filepath: string,
trees: [WalkerEntry, WalkerEntry],
trees: [WalkerEntry | null, WalkerEntry | null],
state: FileStates,
) => Promise<{ [key: string]: any } | undefined>
}) =>
Expand Down
2 changes: 1 addition & 1 deletion libs/popover/src/lib/popover.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChevronDownIcon, ChevronRightIcon } from '@heroicons/react/solid'
import { ChevronDownIcon, ChevronRightIcon } from '@heroicons/react/24/solid'
import {
useState,
useRef,
Expand Down
7 changes: 0 additions & 7 deletions libs/utils/mdx/src/lib/test.ts

This file was deleted.

Loading

0 comments on commit ec1329a

Please sign in to comment.