📈 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
fe
kruzhambus2997060cc7c2
diff --git a/src/pages/Project/Settings/People.jsx b/src/pages/Project/Settings/People.jsxnew file mode 100644index 000000000..f744bb96c--- /dev/null+++ b/src/pages/Project/Settings/People.jsx@@ -0,0 +1,71 @@+import React, { useState } from 'react'+import Button from 'ui/Button'+import { ChevronDownIcon, CheckIcon } from '@heroicons/react/solid'+import { ActivePin } from 'ui/Pin'++const People = () => {+ const [open, setOpen] = useState(false)++ return (+ <div className='mt-6 mb-6'>+ <div className='flex justify-between items-center mb-3'>+ <div>+ <h3 className='mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>People</h3>+ <p className='text-sm text-gray-500 dark:text-gray-400'>Invite your coworkers</p>+ </div>+ <Button onClick={() => {}} className='h-8' primary regular type='button'>add Users</Button>+ </div>+ <div>+ <ul className='divide-y divide-gray-200 dark:divide-gray-700'>+ <li className='py-4'>+ <div className='flex justify-between'>+ <p className='text-gray-700 dark:text-gray-200'>[email protected]</p>+ <div className='relative'>+ <ActivePin label='Pannding' className='inline-flex items-center shadow-sm px-2.5 py-0.5 mr-3' />+ <button onClick={() => setOpen(!open)} type='button' className='inline-flex items-center shadow-sm px-2.5 py-0.5 border border-gray-200 dark:border-gray-500 text-sm leading-5 font-medium rounded-full bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-800'>+ Viewer+ <ChevronDownIcon style={{ transform: open ? 'rotate(180deg)' : '' }} className='w-4 h-4 pt-px ml-1' />+ </button>+ {open && (+ <ul className='origin-top-right absolute z-10 right-0 mt-2 w-72 rounded-md shadow-lg overflow-hidden bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700 focus:outline-none'>+ <li className='p-4 hover:bg-indigo-600 group cursor-pointer flex justify-between items-center'>+ <div>+ <p className='font-bold text-gray-700 dark:text-gray-200 group-hover:text-gray-200'>Admin</p>+ <p className='mt-1 text-sm text-gray-500 group-hover:text-gray-200'>View stats and settings project</p>+ </div>+ <span className='text-indigo-600 group-hover:text-gray-200'>+ <CheckIcon className='w-7 h-7 pt-px ml-1' />+ </span>+ </li>+ {/* next element */}+ <li className='p-4 hover:bg-indigo-600 group cursor-pointer flex justify-between items-center'>+ <div>+ <p className='font-bold text-gray-700 dark:text-gray-200 group-hover:text-gray-200'>Viewer</p>+ <p className='mt-1 text-sm text-gray-500 group-hover:text-gray-200'>View stats only</p>+ </div>+ </li>+ </ul>+ )}+ </div>+ </div>+ </li>+ {/* next element */}+ <li className='py-4'>+ <div className='flex justify-between'>+ <p className='text-gray-700 dark:text-gray-200'>[email protected]</p>+ <button type='button' className='inline-flex items-center shadow-sm px-2.5 py-0.5 border border-gray-200 dark:border-gray-500 text-sm leading-5 font-medium rounded-full bg-white dark:bg-gray-700 text-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-800'>+ Viewer+ <svg className='w-4 h-4 pt-px ml-1' fill='currentColor' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><path fillRule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clipRule='evenodd' /></svg>+ </button>+ </div>+ </li>+ </ul>+ </div>+ <Button type='submit' className='mt-3 ' primary regular>+ save+ </Button>+ </div>+ )+}++export default Peoplediff --git a/src/pages/Project/Settings/ProjectSettings.jsx b/src/pages/Project/Settings/ProjectSettings.jsxindex 890d9e037..c69986fdc 100644--- a/src/pages/Project/Settings/ProjectSettings.jsx+++ b/src/pages/Project/Settings/ProjectSettings.jsx@@ -25,6 +25,8 @@ import Modal from 'ui/Modal'import { nanoid } from 'utils/random'import routes from 'routes'+import People from './People'+const MAX_NAME_LENGTH = 50const MAX_ORIGINS_LENGTH = 300@@ -176,6 +178,9 @@ const ProjectSettings = ({<h2 className='mt-2 text-3xl font-extrabold text-gray-900 dark:text-gray-50'>{title}</h2>+ <h3 className='mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>+ {t('profileSettings.general')}+ </h3><Inputname='name'id='name'@@ -235,6 +240,13 @@ const ProjectSettings = ({{t('project.settings.createHint')}</p>)}++ <hr className='mt-5' />++ <People />++ <hr className='mt-5' />+<div className='flex justify-between mt-4'><div><Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-gray-800 dark:border-gray-700 dark:bg-gray-700 dark:hover:bg-gray-600' onClick={onCancel} secondary regular>diff --git a/src/pages/UserSettings/UserSettings.jsx b/src/pages/UserSettings/UserSettings.jsxindex 44b815bfc..7b86fbffb 100644--- a/src/pages/UserSettings/UserSettings.jsx+++ b/src/pages/UserSettings/UserSettings.jsx@@ -199,6 +199,64 @@ const UserSettings = ({/></div></div>+ <Button className='mt-4' onClick={handleReportSave} primary large>+ {t('common.save')}+ </Button>++ <hr className='mt-5' />+ <h3 className='mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>+ Projects+ </h3>+ <div>+ <div className='mt-8 flex flex-col'>+ <div className='-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8'>+ <div className='inline-block min-w-full py-2 align-middle md:px-6 lg:px-8'>+ <div className='overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg'>+ <table className='min-w-full divide-y divide-gray-600'>+ <thead>+ <tr className='dark:bg-gray-700'>+ <th scope='col' className='py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 dark:text-white'>+ Name projects+ </th>+ <th scope='col' className='px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-white'>+ Role+ </th>+ <th scope='col' className='relative py-3.5 pl-3 pr-4 sm:pr-6 dark:text-white'>+ <span className='sr-only'>delete</span>+ </th>+ </tr>+ </thead>+ <tbody className='divide-y divide-gray-600'>+ <tr key='1' className='dark:bg-gray-700'>+ <td className='whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 dark:text-white sm:pl-6'>+ le chiffe cheat+ </td>+ <td className='whitespace-nowrap px-3 py-4 text-sm text-gray-500 dark:text-white'>Admin</td>+ <td className='relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6'>+ <button type='button' className='text-indigo-600 hover:text-indigo-900'>+ Delete+ </button>+ </td>+ </tr>+ <tr key='2' className='dark:bg-gray-700'>+ <td className='whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 dark:text-white sm:pl-6'>+ some project+ </td>+ <td className='whitespace-nowrap px-3 py-4 text-sm text-gray-500 dark:text-white'>Viewr</td>+ <td className='relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6'>+ <button type='button' className='text-indigo-600 hover:text-indigo-900'>+ Delete+ </button>+ </td>+ </tr>+ </tbody>+ </table>+ </div>+ </div>+ </div>+ </div>+ </div>+<Button className='mt-4' onClick={handleReportSave} primary large>{t('common.save')}</Button>