📈 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
added 'Public' badge
Blue Mouse1c0cd10f42bd
diff --git a/src/i18n/en.json b/src/i18n/en.jsonindex 1b7cea99a..58ea89fa5 100644--- a/src/i18n/en.json+++ b/src/i18n/en.json@@ -179,6 +179,7 @@"noProjects": "You have not yet created any projects","createProject": "Create a new project here to start using our service","active": "Active",+ "public": "Public","disabled": "Disabled","pageviews": "Pageviews","unique": "Unique views",diff --git a/src/i18n/ru.json b/src/i18n/ru.jsonindex 45b3419bc..8bd9d411d 100644--- a/src/i18n/ru.json+++ b/src/i18n/ru.json@@ -177,6 +177,7 @@"noProjects": "Вы не создали ни одного проекта","createProject": "Создайте новый проект здесь, чтобы начать пользоваться нашим сервисом","active": "Активный",+ "public": "Публичный","disabled": "Деактивирован","pageviews": "Просмотров","unique": "Уникальных посещений",diff --git a/src/i18n/uk.json b/src/i18n/uk.jsonindex 1ca044234..21d0bec23 100644--- a/src/i18n/uk.json+++ b/src/i18n/uk.json@@ -177,6 +177,7 @@"noProjects": "Ви не створили жодного проєкту","createProject": "Створіть новий проєкт тут, щоб почати користуватися нашим сервісом","active": "Активний",+ "public": "Публічний","disabled": "Деактивований","pageviews": "Переглядів","unique": "Унікальних відвідувань",diff --git a/src/pages/Dashboard/Dashboard.jsx b/src/pages/Dashboard/Dashboard.jsxindex 6853e09ab..bdc7e6724 100644--- a/src/pages/Dashboard/Dashboard.jsx+++ b/src/pages/Dashboard/Dashboard.jsx@@ -24,7 +24,7 @@ import routes from 'routes'import { isSelfhosted } from 'redux/constants'const ProjectCart = ({- name, url, created, active, overall, t, language, live,+ name, url, created, active, overall, t, language, live, isPublic,}) => {const statsDidGrowUp = overall?.percChange >= 0@@ -42,6 +42,9 @@ const ProjectCart = ({) : (<InactivePin label={t('dashboard.disabled')} />)}+ {isPublic && (+ <ActivePin label={t('dashboard.public')} className='ml-2' />+ )}</div></div><div className='mt-2 sm:flex sm:justify-between'>@@ -165,7 +168,7 @@ const Dashboard = ({ projects, isLoading, error, user }) => {) : (<div className='bg-white shadow overflow-hidden sm:rounded-md mt-10'><ul className='divide-y divide-gray-200'>- {_map(_filter(projects, ({ uiHidden }) => !uiHidden), ({ name, id, created, active, overall, live }) => (+ {_map(_filter(projects, ({ uiHidden }) => !uiHidden), ({ name, id, created, active, overall, live, public: isPublic }) => (<ProjectCartkey={id}t={t}@@ -173,6 +176,7 @@ const Dashboard = ({ projects, isLoading, error, user }) => {name={name}created={created}active={active}+ isPublic={isPublic}overall={overall}live={_isNumber(live) ? live : 'N/A'}url={routes.project.replace(':id', id)}