mirror of
https://github.com/ershisan99/vacancies-trends-front.git
synced 2025-12-16 12:34:06 +00:00
fix?
This commit is contained in:
6
.idea/jsLinters/eslint.xml
generated
Normal file
6
.idea/jsLinters/eslint.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="EslintConfiguration">
|
||||||
|
<option name="fix-on-save" value="true" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import * as TooltipPrimitive from '@radix-ui/react-tooltip'
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip'
|
||||||
import clsx from 'clsx'
|
import {clsx} from 'clsx'
|
||||||
import { ComponentPropsWithoutRef, ReactNode } from 'react'
|
import { ComponentPropsWithoutRef, ReactNode } from 'react'
|
||||||
|
|
||||||
type TooltipProps = Omit<
|
type TooltipProps = Omit<
|
||||||
|
|||||||
@@ -1,52 +1,13 @@
|
|||||||
import { startTransition, StrictMode, useEffect } from 'react'
|
import {startTransition, StrictMode} from 'react'
|
||||||
import { hydrateRoot } from 'react-dom/client'
|
import {hydrateRoot} from 'react-dom/client'
|
||||||
import posthog from 'posthog-js'
|
import {RemixBrowser} from '@remix-run/react'
|
||||||
import { useLocation, useMatches, RemixBrowser } from '@remix-run/react'
|
|
||||||
import * as Sentry from '@sentry/remix'
|
|
||||||
|
|
||||||
function PosthogInit() {
|
|
||||||
useEffect(() => {
|
|
||||||
posthog.init(import.meta.env.VITE_PH_API_KEY, {
|
|
||||||
api_host: import.meta.env.VITE_PH_API_HOST,
|
|
||||||
person_profiles: 'identified_only',
|
|
||||||
capture_pageview: false,
|
|
||||||
})
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
Sentry.init({
|
|
||||||
dsn: import.meta.env.VITE_ENV_SENTRY_DSN,
|
|
||||||
integrations: [
|
|
||||||
Sentry.browserTracingIntegration({
|
|
||||||
useEffect,
|
|
||||||
useLocation,
|
|
||||||
useMatches,
|
|
||||||
}),
|
|
||||||
// Replay is only available in the client
|
|
||||||
Sentry.replayIntegration(),
|
|
||||||
],
|
|
||||||
|
|
||||||
// Set tracesSampleRate to 1.0 to capture 100%
|
|
||||||
// of transactions for tracing.
|
|
||||||
// We recommend adjusting this value in production
|
|
||||||
tracesSampleRate: 1.0,
|
|
||||||
|
|
||||||
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled
|
|
||||||
tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
|
|
||||||
|
|
||||||
// Capture Replay for 10% of all sessions,
|
|
||||||
// plus for 100% of sessions with an error
|
|
||||||
replaysSessionSampleRate: 0.1,
|
|
||||||
replaysOnErrorSampleRate: 1.0,
|
|
||||||
})
|
|
||||||
|
|
||||||
startTransition(() => {
|
startTransition(() => {
|
||||||
hydrateRoot(
|
hydrateRoot(
|
||||||
document,
|
document,
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
<RemixBrowser />
|
<RemixBrowser />
|
||||||
<PosthogInit />
|
|
||||||
</StrictMode>
|
</StrictMode>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
@@ -31,7 +31,7 @@ export default function Index() {
|
|||||||
if (values.length === 0) return null
|
if (values.length === 0) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip content={<TooltipContent values={values} />} key={label}>
|
// <Tooltip content={<TooltipContent values={values} />} key={label}>
|
||||||
<Link
|
<Link
|
||||||
role={'listitem'}
|
role={'listitem'}
|
||||||
className={'text-sky-500 hover:underline w-max'}
|
className={'text-sky-500 hover:underline w-max'}
|
||||||
@@ -45,7 +45,7 @@ export default function Index() {
|
|||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</Link>
|
</Link>
|
||||||
</Tooltip>
|
// </Tooltip>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,12 +13,11 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "1.7.18",
|
"@headlessui/react": "1.7.18",
|
||||||
"@headlessui/tailwindcss": "0.2.0",
|
"@headlessui/tailwindcss": "0.2.0",
|
||||||
"@radix-ui/react-tooltip": "^1.1.0",
|
"@radix-ui/react-tooltip": "1.1.0",
|
||||||
"@remix-run/node": "^2.9.2",
|
"@remix-run/node": "^2.9.2",
|
||||||
"@remix-run/react": "^2.9.2",
|
"@remix-run/react": "^2.9.2",
|
||||||
"@remix-run/serve": "^2.9.2",
|
"@remix-run/serve": "^2.9.2",
|
||||||
"@remixicon/react": "^4.2.0",
|
"@remixicon/react": "^4.2.0",
|
||||||
"@sentry/remix": "^8.30.0",
|
|
||||||
"@tremor/react": "^3.17.2",
|
"@tremor/react": "^3.17.2",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"date-fns": "^3.6.0",
|
"date-fns": "^3.6.0",
|
||||||
@@ -52,9 +51,6 @@
|
|||||||
"vite": "^5.1.0",
|
"vite": "^5.1.0",
|
||||||
"vite-tsconfig-paths": "^4.2.1"
|
"vite-tsconfig-paths": "^4.2.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
|
||||||
"node": ">=20.0.0"
|
|
||||||
},
|
|
||||||
"prettier": "@it-incubator/prettier-config",
|
"prettier": "@it-incubator/prettier-config",
|
||||||
"packageManager": "pnpm@9.1.1"
|
"packageManager": "pnpm@9.1.1"
|
||||||
}
|
}
|
||||||
|
|||||||
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@@ -15,7 +15,7 @@ importers:
|
|||||||
specifier: 0.2.0
|
specifier: 0.2.0
|
||||||
version: 0.2.0(tailwindcss@3.4.4)
|
version: 0.2.0(tailwindcss@3.4.4)
|
||||||
'@radix-ui/react-tooltip':
|
'@radix-ui/react-tooltip':
|
||||||
specifier: ^1.1.0
|
specifier: 1.1.0
|
||||||
version: 1.1.0(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
version: 1.1.0(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||||
'@remix-run/node':
|
'@remix-run/node':
|
||||||
specifier: ^2.9.2
|
specifier: ^2.9.2
|
||||||
|
|||||||
Reference in New Issue
Block a user