📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
add some commits for view project
kruzhambus4b3deaa3b75c
diff --git a/src/pages/Project/View/ViewProject.tsx b/src/pages/Project/View/ViewProject.tsxindex 7dc59c203..a208da44e 100644--- a/src/pages/Project/View/ViewProject.tsx+++ b/src/pages/Project/View/ViewProject.tsx@@ -122,6 +122,7 @@ const ViewProject = ({setLiveStatsForProject, authenticated, timezone, user, sharedProjects, extensions, generateAlert, setProjectCachePerf,projectTab, setProjectTab, setProjects, setProjectForcastCache, customEventsPrefs, setCustomEventsPrefs, liveStats,}: IViewProject) => {+ // t is used for translationconst { t, i18n: { language } }: {t: (key: string, options?: {[key: string]: string | number | null,@@ -130,6 +131,8 @@ const ViewProject = ({language: string,},} = useTranslation('common')++ // periodPairs is used for dropdown and updated when t changesconst [periodPairs, setPeriodPairs] = useState<{label: stringperiod: string@@ -138,11 +141,21 @@ const ViewProject = ({dropdownLabel?: stringisCustomDate?: boolean}[]>(tbPeriodPairs(t))++ // customExportTypes used for marketplace extensions if you have extensions with exportconst [customExportTypes, setCustomExportTypes] = useState<any[]>([])+ // customPanelTabs used for marketplace extensions if you have extensions with custom panelconst [customPanelTabs, setCustomPanelTabs] = useState<any[]>([])+ // sdkInstance is a sdk used for dowland and working with marketplace extensions. DO NOT TOUCH ITconst [sdkInstance, setSdkInstance] = useState<any>(null)++ // activeChartMetricsCustomEvents is a list of custom events for logic with api, chart and dropdownconst [activeChartMetricsCustomEvents, setActiveChartMetricsCustomEvents] = useState<any[]>([])++ // dashboardRef is a ref for dashboard divconst dashboardRef = useRef<HTMLDivElement>(null)++ // { id } is a project id from urlconst { id }: {id: string} = useParams()