e0e1373468
* Update prettier to latest * Add format command * Create .prettierignore * Add prettier plugin sort imports * Update prettier config * Update prettier config * Update .prettierignore * Fix @babel/parser conflict https://github.com/trivago/prettier-plugin-sort-imports/issues/156 * Revert "Update .prettierignore" This reverts commit 282e5b838376f16b3df7f4c1f99f1106baaffea4. * Revert change for apps/www/pages/v/[id].tsx * Sort imports Moves the third party imports to the top, "~" imports in middle, and "./" at last * Sorting of the specifiers in an import declarations * [www] use path vs "../" * [core] use path "~" vs "../" * [tldraw] use path "~" vs "../.../" * [tldraw] use path "~" vs "../" * [tldraw] Cleanup * Update prettier config * Last use path "~" vs "../.../" * [www] Fix order of the third party imports * Clean prettier config
60 lines
2.1 KiB
TypeScript
60 lines
2.1 KiB
TypeScript
import Head from 'next/head'
|
|
import type React from 'react'
|
|
import '~styles/globals.css'
|
|
import { init } from '~utils/sentry'
|
|
import useGtag from '~utils/useGtag'
|
|
|
|
init()
|
|
|
|
const APP_NAME = 'tldraw'
|
|
const APP_DESCRIPTION = 'A tiny little drawing app.'
|
|
const APP_URL = 'https://tldraw.com'
|
|
const IMAGE = 'https://tldraw.com/social-image.png'
|
|
|
|
function MyApp({ Component, pageProps }: any) {
|
|
useGtag()
|
|
|
|
return (
|
|
<>
|
|
<Head>
|
|
<meta name="application-name" content={APP_NAME} />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
<meta name="apple-mobile-web-app-title" content={APP_NAME} />
|
|
<meta name="description" content={APP_DESCRIPTION} />
|
|
<meta name="format-detection" content="telephone=no" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="theme-color" content="#fafafa" />
|
|
|
|
<meta name="twitter:url" content={APP_URL} />
|
|
<meta name="twitter:title" content={APP_NAME} />
|
|
<meta name="twitter:description" content={APP_DESCRIPTION} />
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:creator" content="@tldraw" />
|
|
<meta name="twitter:site" content="@tldraw" />
|
|
<meta name="twitter:image" content={IMAGE} />
|
|
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:title" content={APP_NAME} />
|
|
<meta property="og:description" content={APP_DESCRIPTION} />
|
|
<meta property="og:site_name" content={APP_NAME} />
|
|
<meta property="og:url" content={APP_URL} />
|
|
<meta property="og:image" content={IMAGE} />
|
|
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
|
|
/>
|
|
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<link rel="shortcut icon" href="/favicon.ico" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png" />
|
|
|
|
<title>tldraw</title>
|
|
</Head>
|
|
<Component {...pageProps} />
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default MyApp
|