Download mui-datatables/docs/pages/_document.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 3.13 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/mui-datatables/docs/pages/_document.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/mui-datatables/docs/pages/_document.js
-
curl -L -o _document.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/mui-datatables/docs/pages/_document.js
3.13 kB
| import React from 'react'; | |
| import Document, { Head, Main, NextScript } from 'next/document'; | |
| import JssProvider from 'react-jss/lib/JssProvider'; | |
| import getPageContext from '../utils/getPageContext'; | |
| class MyDocument extends Document { | |
| render() { | |
| return ( | |
| <html lang="en" dir="ltr"> | |
| <Head> | |
| <title>Material-UI DataTables</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <meta | |
| name="description" | |
| content={'MUI-Datatables is a data tables component built for React Material-UI V1'} | |
| /> | |
| <meta | |
| name="keywords" | |
| content={ | |
| 'material-ui, data tables, datatables, material-ui, material-ui-datables, react tables, react data tables' | |
| } | |
| /> | |
| <meta name="robots" content="index,follow,noodp" /> | |
| <meta name="author" content="Gregory Nowakowski" /> | |
| <meta name="googlebot" content="noarchive" /> | |
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" /> | |
| <link rel="shortcut icon" href="/static/favicon.ico" /> | |
| <style> | |
| {` | |
| body { | |
| margin: 0px; | |
| padding: 0px; | |
| height: 100%; | |
| font-size: 16px; | |
| min-height: min-content; | |
| font-family: Roboto, Helvetica, Arial, sans-serif; | |
| } | |
| a { | |
| color: #0366d6; | |
| text-decoration: none; | |
| } | |
| p { | |
| line-height: 1.6; | |
| } | |
| .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { | |
| background: none ; | |
| } | |
| `} | |
| </style> | |
| <script async src="https://www.googletagmanager.com/gtag/js?id=UA-116686642-1" /> | |
| ); | |
| } | |
| } | |
| MyDocument.getInitialProps = ctx => { | |
| const pageContext = getPageContext(); | |
| const page = ctx.renderPage(Component => props => ( | |
| )); | |
| return { | |
| ...page, | |
| pageContext, | |
| styles: ( | |
| ), | |
| }; | |
| }; | |
| export default MyDocument; | |