-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'origin/main' in pr/mazipan/39\nfixed lint errors
- Loading branch information
Showing
39 changed files
with
1,997 additions
and
2,023 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
*.yml | ||
stats.html | ||
stats.html | ||
dist | ||
dist-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"printWidth": 120, | ||
"semi": true, | ||
"singleQuote": true | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"printWidth": 120, | ||
"semi": true, | ||
"singleQuote": true, | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { AppShell, ColorScheme, ColorSchemeProvider, MantineProvider } from '@mantine/core'; | ||
import { useState } from 'react'; | ||
import Routes from './pages/Routes'; | ||
import Navbar from './components/Navbar'; | ||
import Header from './components/Header'; | ||
|
||
export default function App() { | ||
const [colorScheme, setColorScheme] = useState<ColorScheme>('dark'); | ||
const toggleColorScheme = (value?: ColorScheme) => | ||
setColorScheme(value || (colorScheme === 'dark' ? 'light' : 'dark')); | ||
|
||
return ( | ||
<ColorSchemeProvider colorScheme={colorScheme} toggleColorScheme={toggleColorScheme}> | ||
<MantineProvider theme={{ colorScheme }} withGlobalStyles withNormalizeCSS> | ||
<AppShell navbar={<Navbar />} header={<Header />}> | ||
<Routes /> | ||
</AppShell> | ||
</MantineProvider> | ||
</ColorSchemeProvider> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,21 @@ | ||
import { Card, Tabs } from '@mantine/core'; | ||
import { useToggle } from '@mantine/hooks'; | ||
import { Tabs } from '@mantine/core'; | ||
import { Prism } from '@mantine/prism'; | ||
import { ReactNode, useState } from 'react'; | ||
import { ReactNode } from 'react'; | ||
import { Code, Components } from 'tabler-icons-react'; | ||
|
||
export default function CodeDemo({ | ||
code, | ||
children, | ||
}: { | ||
code: string; | ||
children: ReactNode; | ||
}) { | ||
return ( | ||
<Tabs variant="pills" defaultValue="comp" color="gray"> | ||
<Tabs.List position="center" grow> | ||
<Tabs.Tab | ||
value="comp" | ||
icon={<Components />} | ||
children="Component" | ||
/> | ||
<Tabs.Tab value="code" children="Code" icon={<Code />} /> | ||
</Tabs.List> | ||
<Tabs.Panel value="comp" pt="sm"> | ||
{children} | ||
</Tabs.Panel> | ||
<Tabs.Panel value="code" pt="sm"> | ||
<Prism withLineNumbers language="tsx" children={code} /> | ||
</Tabs.Panel> | ||
</Tabs> | ||
); | ||
export default function CodeDemo({ code, children }: { code: string; children: ReactNode }) { | ||
return ( | ||
<Tabs variant="pills" defaultValue="comp"> | ||
<Tabs.List position="right"> | ||
<Tabs.Tab value="comp" icon={<Components />} children="Component" /> | ||
<Tabs.Tab value="code" children="Code" icon={<Code />} /> | ||
</Tabs.List> | ||
<Tabs.Panel value="comp" pt="sm"> | ||
{children} | ||
</Tabs.Panel> | ||
<Tabs.Panel value="code" pt="sm"> | ||
<Prism withLineNumbers language="tsx" children={code} /> | ||
</Tabs.Panel> | ||
</Tabs> | ||
); | ||
} |
Oops, something went wrong.