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'
|
||||
|
||||
import * as TooltipPrimitive from '@radix-ui/react-tooltip'
|
||||
import clsx from 'clsx'
|
||||
import {clsx} from 'clsx'
|
||||
import { ComponentPropsWithoutRef, ReactNode } from 'react'
|
||||
|
||||
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 posthog from 'posthog-js'
|
||||
import { useLocation, useMatches, RemixBrowser } from '@remix-run/react'
|
||||
import * as Sentry from '@sentry/remix'
|
||||
import {RemixBrowser} from '@remix-run/react'
|
||||
|
||||
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(() => {
|
||||
hydrateRoot(
|
||||
document,
|
||||
<StrictMode>
|
||||
<RemixBrowser />
|
||||
<PosthogInit />
|
||||
</StrictMode>
|
||||
)
|
||||
})
|
||||
@@ -31,7 +31,7 @@ export default function Index() {
|
||||
if (values.length === 0) return null
|
||||
|
||||
return (
|
||||
<Tooltip content={<TooltipContent values={values} />} key={label}>
|
||||
// <Tooltip content={<TooltipContent values={values} />} key={label}>
|
||||
<Link
|
||||
role={'listitem'}
|
||||
className={'text-sky-500 hover:underline w-max'}
|
||||
@@ -45,7 +45,7 @@ export default function Index() {
|
||||
>
|
||||
{label}
|
||||
</Link>
|
||||
</Tooltip>
|
||||
// </Tooltip>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
|
||||
@@ -13,12 +13,11 @@
|
||||
"dependencies": {
|
||||
"@headlessui/react": "1.7.18",
|
||||
"@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/react": "^2.9.2",
|
||||
"@remix-run/serve": "^2.9.2",
|
||||
"@remixicon/react": "^4.2.0",
|
||||
"@sentry/remix": "^8.30.0",
|
||||
"@tremor/react": "^3.17.2",
|
||||
"clsx": "^2.1.1",
|
||||
"date-fns": "^3.6.0",
|
||||
@@ -52,9 +51,6 @@
|
||||
"vite": "^5.1.0",
|
||||
"vite-tsconfig-paths": "^4.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
},
|
||||
"prettier": "@it-incubator/prettier-config",
|
||||
"packageManager": "pnpm@9.1.1"
|
||||
}
|
||||
|
||||
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@@ -15,7 +15,7 @@ importers:
|
||||
specifier: 0.2.0
|
||||
version: 0.2.0(tailwindcss@3.4.4)
|
||||
'@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)
|
||||
'@remix-run/node':
|
||||
specifier: ^2.9.2
|
||||
|
||||
Reference in New Issue
Block a user