mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-28 02:31:17 +01:00
Fix posthog import
This commit is contained in:
@@ -61,6 +61,7 @@
|
|||||||
"license-report": "^6.8.0",
|
"license-report": "^6.8.0",
|
||||||
"pdfjs-dist": "^5.4.149",
|
"pdfjs-dist": "^5.4.149",
|
||||||
"peerjs": "^1.5.5",
|
"peerjs": "^1.5.5",
|
||||||
|
"@posthog/react": "^1.8.2",
|
||||||
"posthog-js": "^1.268.0",
|
"posthog-js": "^1.268.0",
|
||||||
"qrcode.react": "^4.2.0",
|
"qrcode.react": "^4.2.0",
|
||||||
"react": "^19.1.1",
|
"react": "^19.1.1",
|
||||||
|
|||||||
12
frontend/src/global.d.ts
vendored
12
frontend/src/global.d.ts
vendored
@@ -26,16 +26,4 @@ declare module 'axios' {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'posthog-js/react' {
|
|
||||||
import { ReactNode } from 'react';
|
|
||||||
import posthogJs, { PostHogConfig } from 'posthog-js';
|
|
||||||
|
|
||||||
export const PostHogProvider: React.FC<{
|
|
||||||
client?: typeof posthogJs;
|
|
||||||
options?: Partial<PostHogConfig>;
|
|
||||||
apiKey?: string;
|
|
||||||
children?: ReactNode;
|
|
||||||
}>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export { };
|
export { };
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { BrowserRouter } from 'react-router-dom';
|
|||||||
import App from '@app/App';
|
import App from '@app/App';
|
||||||
import '@app/i18n'; // Initialize i18next
|
import '@app/i18n'; // Initialize i18next
|
||||||
import posthog from 'posthog-js';
|
import posthog from 'posthog-js';
|
||||||
import { PostHogProvider } from 'posthog-js/react';
|
import { PostHogProvider } from '@posthog/react';
|
||||||
import { BASE_PATH } from '@app/constants/app';
|
import { BASE_PATH } from '@app/constants/app';
|
||||||
|
|
||||||
posthog.init('phc_VOdeYnlevc2T63m3myFGjeBlRcIusRgmhfx6XL5a1iz', {
|
posthog.init('phc_VOdeYnlevc2T63m3myFGjeBlRcIusRgmhfx6XL5a1iz', {
|
||||||
|
|||||||
@@ -10,9 +10,6 @@
|
|||||||
],
|
],
|
||||||
"@proprietary/*": [
|
"@proprietary/*": [
|
||||||
"src/core/*"
|
"src/core/*"
|
||||||
],
|
|
||||||
"posthog-js/react": [
|
|
||||||
"node_modules/posthog-js/react/dist/types/index.d.ts"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -23,4 +20,4 @@
|
|||||||
"src/*.tsx",
|
"src/*.tsx",
|
||||||
"src/core"
|
"src/core"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
],
|
],
|
||||||
"@core/*": [
|
"@core/*": [
|
||||||
"src/core/*"
|
"src/core/*"
|
||||||
],
|
|
||||||
"posthog-js/react": [
|
|
||||||
"node_modules/posthog-js/react/dist/types/index.d.ts"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -26,4 +23,4 @@
|
|||||||
"src/core/setupTests.ts",
|
"src/core/setupTests.ts",
|
||||||
"src/desktop"
|
"src/desktop"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,9 +11,6 @@
|
|||||||
],
|
],
|
||||||
"@proprietary/*": [
|
"@proprietary/*": [
|
||||||
"src/proprietary/*"
|
"src/proprietary/*"
|
||||||
],
|
|
||||||
"posthog-js/react": [
|
|
||||||
"node_modules/posthog-js/react/dist/types/index.d.ts"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -25,4 +22,4 @@
|
|||||||
"src/core/setupTests.ts",
|
"src/core/setupTests.ts",
|
||||||
"src/proprietary"
|
"src/proprietary"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user