📈 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
Merge branch 'main' into feature/captcha
Andrii Rb551a3f891ae
diff --cc public/locales/en.jsonindex 86e194a51,9afbb16db..462e3d420--- a/public/locales/en.json+++ b/public/locales/en.json@@@ -616,16 -609,14 +620,24 @@@"ipBlacklist": "IP's to blacklist","ipBlacklistHint": "A list of IP addresses from which no analytics will be collected on this project.\nThis functionality is handy if you want to ignore analytics from your IP, for example.\nExample: 172.126.10.16, 192.168.0.1/32, ::1"},+ "captcha": {+ "settings": {+ "general": "General settings",+ "inheritance": "Inheritance",+ "name": "CAPTCHA project name",+ "pid": "CAPTCHA project ID",+ "enabled": "CAPTCHA enabled",+ "enabledHint": "Disabled CAPTCHA projects will not count any newly incoming events.\nYou will still be able to access the analytics in dashboard."+ }- }++ },+ "emails": {+ "title": "Email reports",+ "description": "Send regular email reports to as many recipients as you want",+ "add": "Add a recipient",+ "reportFrequency": "Report frequency"+ },+ "results": "Results",+ "page": "Page"},"billing": {"title": "Billing & Plans",diff --cc src/App.jsindex 57f4aaa38,06c7c19cf..97918b77f--- a/src/App.js+++ b/src/App.js@@@ -50,8 -50,7 +50,9 @@@ const Changelog = lazy(() => import('paconst About = lazy(() => import('pages/About'))const ProjectAlertsSettings = lazy(() => import('pages/Project/Alerts/Settings'))const CookiePolicy = lazy(() => import('pages/CookiePolicy'))+const CaptchaSettings = lazy(() => import('pages/Captcha/Settings'))+const CaptchaView = lazy(() => import('pages/Captcha/View'))+ const ConfirmReportsShare = lazy(() => import('pages/Project/Settings/Emails/ConfirmReportsShare'))const minimalFooterPages = ['/projects', '/dashboard', '/settings', '/contact',@@@ -209,9 -208,7 +210,10 @@@ const App = () =><Route path={routes.alert_settings} component={ProjectAlertsSettings} exact /><Route path={routes.create_alert} component={ProjectAlertsSettings} exact /><Route path={routes.cookiePolicy} component={CookiePolicy} exact />+ <Route path={routes.captcha_settings} component={CaptchaSettings} exact />+ <Route path={routes.new_captcha} component={CaptchaSettings} exact />+ <Route path={routes.captcha} component={CaptchaView} exact />+ <Route path={routes.confirm_subcription} component={ConfirmReportsShare} exact /><Route path='*' component={NotFound} /></Switch></Suspense>diff --cc src/api/index.jsindex a6a986db2,47d6b8421..a5cd0f1fd--- a/src/api/index.js+++ b/src/api/index.js@@@ -634,13 -581,57 +634,68 @@@ export const setTimeFormat = (timeForma: error.response.data.message})+export const reGenerateCaptchaSecretKey = (pid) =>+ api+ .post(`project/secret-gen/${pid}`)+ .then((response) => response.data)+ .catch((error) => {+ debug('%s', error)+ throw _isEmpty(error.response.data?.message)+ ? error.response.data+ : error.response.data.message+ })+++ export const addSubscriber = (id, data) =>+ api+ .post(`project/${id}/subscribers`, data)+ .then((response) => response.data)+ .catch((error) => {+ debug('%s', error)+ throw _isEmpty(error.response.data?.message)+ ? error.response.data+ : error.response.data.message+ })++ export const getSubscribers = (id, offset, limit) =>+ api+ .get(`project/${id}/subscribers?offset=${offset}&limit=${limit}`)+ .then((response) => response.data)+ .catch((error) => {+ debug('%s', error)+ throw _isEmpty(error.response.data?.message)+ ? error.response.data+ : error.response.data.message+ })++ export const updateSubscriber = (id, subscriberId, data) =>+ api+ .patch(`project/${id}/subscribers/${subscriberId}`, data)+ .then((response) => response.data)+ .catch((error) => {+ debug('%s', error)+ throw _isEmpty(error.response.data?.message)+ ? error.response.data+ : error.response.data.message+ })++ export const removeSubscriber = (id, subscriberId) =>+ api+ .delete(`project/${id}/subscribers/${subscriberId}`)+ .then((response) => response.data)+ .catch((error) => {+ debug('%s', error)+ throw _isEmpty(error.response.data?.message)+ ? error.response.data+ : error.response.data.message+ })++ export const confirmSubscriberInvite = (id, token) =>+ api+ .get(`project/${id}/subscribers/invite?token=${token}`)+ .then((response) => response.data)+ .catch((error) => {+ debug('%s', error)+ throw _isEmpty(error.response.data?.message)+ ? error.response.data+ : error.response.data.message+ })