-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #430 from icflorescu/next
Prep for upgrading to V7
- Loading branch information
Showing
14 changed files
with
658 additions
and
697 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
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,65 @@ | ||
import { Anchor, Text, createStyles } from '@mantine/core'; | ||
import { IconArrowDown, IconDiscountCheck, IconExclamationCircle } from '@tabler/icons-react'; | ||
import InternalLink from '../InternalLink'; | ||
|
||
const useStyles = createStyles((theme) => ({ | ||
root: { | ||
marginBottom: '2em', | ||
}, | ||
line: { | ||
display: 'flex', | ||
gap: '.5em', | ||
alignItems: 'flex-start', | ||
}, | ||
lineIcon: { | ||
marginTop: 1, | ||
}, | ||
checkIcon: { | ||
color: theme.colors.green[6], | ||
}, | ||
warningIcon: { | ||
color: theme.colors.red[6], | ||
}, | ||
break: { | ||
[`@media (min-width: 370px)`]: { | ||
display: 'none', | ||
}, | ||
}, | ||
link: { | ||
'&:hover': { | ||
textDecoration: 'none', | ||
borderBottom: `1px solid ${theme.colorScheme === 'dark' ? theme.colors.blue[7] : theme.colors.blue[5]}`, | ||
}, | ||
}, | ||
linkIcon: { | ||
verticalAlign: -2, | ||
}, | ||
})); | ||
|
||
function handleLinkClick() { | ||
window.scrollTo({ left: 0, top: document.body.scrollHeight, behavior: 'smooth' }); | ||
} | ||
|
||
export default function HomePageSubtitle() { | ||
const { classes, cx } = useStyles(); | ||
return ( | ||
<div className={classes.root}> | ||
<div className={classes.line}> | ||
<IconDiscountCheck className={cx(classes.lineIcon, classes.checkIcon)} size={18} /> | ||
<Text color="dimmed" size="sm"> | ||
trusted by <br className={classes.break} /> | ||
<Anchor className={classes.link} onClick={handleLinkClick}> | ||
awesome companies and developers <IconArrowDown className={classes.linkIcon} size={14} /> | ||
</Anchor> | ||
</Text> | ||
</div> | ||
<div className={classes.line}> | ||
<IconExclamationCircle className={cx(classes.lineIcon, classes.warningIcon)} size={18} /> | ||
<Text color="dimmed" size="sm"> | ||
supports <strong>Mantine V6</strong>; support for <strong>Mantine V7</strong> is{' '} | ||
<InternalLink to="/mantine-v7-support">under development</InternalLink> ⏳ | ||
</Text> | ||
</div> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const withPWA = require('@ducanh2912/next-pwa').default({ dest: 'public' }); | ||
const { version: PACKAGE_VERSION } = require('./package.json'); | ||
|
||
module.exports = async (phase) => { | ||
const { downloads } = await fetch('https://api.npmjs.org/downloads/point/last-month/mantine-datatable') | ||
.then((res) => res.json()) | ||
.catch(() => ({ downloads: 0 })); | ||
|
||
/** | ||
* @type {import('next').NextConfig} | ||
*/ | ||
const config = { | ||
output: 'export', | ||
reactStrictMode: true, | ||
transpilePackages: ['mantine-datatable'], | ||
env: { | ||
PACKAGE_VERSION, | ||
BASE_PATH: '', | ||
INITIAL_NPM_DOWNLOADS: String(downloads), | ||
}, | ||
}; | ||
|
||
if (phase === 'phase-production-build' && process.env.GITHUB_PAGES === 'true') { | ||
config.env.BASE_PATH = config.basePath = '/mantine-datatable'; | ||
config.env.CANONICAL_URL = 'https://icflorescu.github.io/mantine-datatable/'; | ||
} | ||
|
||
return withPWA(config); | ||
}; |
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
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
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
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
Oops, something went wrong.