update
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 297 KiB |
Before Width: | Height: | Size: 235 KiB |
Before Width: | Height: | Size: 277 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 297 KiB |
Before Width: | Height: | Size: 235 KiB |
Before Width: | Height: | Size: 277 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
|
@ -39,7 +39,7 @@ interface IFakeLoader {
|
||||||
sort?: ISort[],
|
sort?: ISort[],
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function getFakeLoader({
|
export default function sendFakeRequest({
|
||||||
content,
|
content,
|
||||||
pagination,
|
pagination,
|
||||||
query,
|
query,
|
||||||
|
@ -84,3 +84,9 @@ export default function getFakeLoader({
|
||||||
|
|
||||||
return Promise.resolve(response);
|
return Promise.resolve(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getFakeLoader(content?: any, mode?: string) {
|
||||||
|
return (pagination?: IPaginationRequest, sort?: ISort[]) => sendFakeRequest({
|
||||||
|
content, pagination, sort, mode,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import ISort from 'ts/interfaces/Sort';
|
|
||||||
import { IPaginationRequest } from 'ts/interfaces/Pagination';
|
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
|
|
||||||
import TasksView from 'ts/pages/Team/components/Tasks/View';
|
import TasksView from 'ts/pages/Team/components/Tasks/View';
|
||||||
|
@ -27,9 +25,7 @@ const Tasks = observer(({
|
||||||
return (
|
return (
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(rows, mode)}
|
||||||
content: rows, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}${user.author}`}
|
watch={`${mode}${dataGripStore.hash}${user.author}`}
|
||||||
>
|
>
|
||||||
<TasksView
|
<TasksView
|
||||||
|
|
|
@ -7,7 +7,7 @@ import dataGripStore from 'ts/store/DataGrip';
|
||||||
import PageWrapper from 'ts/components/Page/wrapper';
|
import PageWrapper from 'ts/components/Page/wrapper';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import sendFakeRequest from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import TempoChart from 'ts/components/Tempo';
|
import TempoChart from 'ts/components/Tempo';
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ const Tempo = observer(({ user, filters }: IPersonCommonProps): React.ReactEleme
|
||||||
<PageWrapper template="table">
|
<PageWrapper template="table">
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={() => getFakeLoader({ content: partOfData })}
|
loader={() => sendFakeRequest({ content: partOfData })}
|
||||||
watch={JSON.stringify(filters)}
|
watch={JSON.stringify(filters)}
|
||||||
>
|
>
|
||||||
<TempoView user={user.author}/>
|
<TempoView user={user.author}/>
|
||||||
|
|
|
@ -2,13 +2,13 @@ import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import IHashMap from 'ts/interfaces/HashMap';
|
import IHashMap from 'ts/interfaces/HashMap';
|
||||||
import { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';
|
import { IPagination } from 'ts/interfaces/Pagination';
|
||||||
import { getShortDateRange, getShortNumber } from 'ts/helpers/formatter';
|
import { getShortDateRange, getShortNumber } from 'ts/helpers/formatter';
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import DataView from 'ts/components/DataView';
|
import DataView from 'ts/components/DataView';
|
||||||
import Column from 'ts/components/Table/components/Column';
|
import Column from 'ts/components/Table/components/Column';
|
||||||
|
@ -19,7 +19,6 @@ import Recommendations from 'ts/components/Recommendations';
|
||||||
|
|
||||||
import { getMax } from 'ts/pages/Common/helpers/getMax';
|
import { getMax } from 'ts/pages/Common/helpers/getMax';
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import ISort from 'ts/interfaces/Sort';
|
|
||||||
|
|
||||||
interface IWeekViewProps {
|
interface IWeekViewProps {
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -138,9 +137,7 @@ const Week = observer(({
|
||||||
/>
|
/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(rows)}
|
||||||
content: rows, pagination, sort,
|
|
||||||
})}
|
|
||||||
>
|
>
|
||||||
<WeekView
|
<WeekView
|
||||||
name={statistic.author}
|
name={statistic.author}
|
||||||
|
|
|
@ -2,8 +2,6 @@ import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import ISort from 'ts/interfaces/Sort';
|
|
||||||
import { IPaginationRequest } from 'ts/interfaces/Pagination';
|
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
|
@ -11,7 +9,7 @@ import PageWrapper from 'ts/components/Page/wrapper';
|
||||||
import PageColumn from 'ts/components/Page/column';
|
import PageColumn from 'ts/components/Page/column';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import Recommendations from 'ts/components/Recommendations';
|
import Recommendations from 'ts/components/Recommendations';
|
||||||
|
@ -47,9 +45,7 @@ const Author = observer(({
|
||||||
<Title title="page.team.author.title"/>
|
<Title title="page.team.author.title"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(rows, mode)}
|
||||||
content: rows, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}`}
|
watch={`${mode}${dataGripStore.hash}`}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import ISort from 'ts/interfaces/Sort';
|
|
||||||
import { IPaginationRequest } from 'ts/interfaces/Pagination';
|
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
import fullScreen from 'ts/store/FullScreen';
|
import fullScreen from 'ts/store/FullScreen';
|
||||||
|
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
|
|
||||||
|
@ -33,9 +31,7 @@ const Company = observer(({
|
||||||
<Title title="page.team.company.title"/>
|
<Title title="page.team.company.title"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(content, mode)}
|
||||||
content, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}`}
|
watch={`${mode}${dataGripStore.hash}`}
|
||||||
>
|
>
|
||||||
<Companies
|
<Companies
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
import React, { useMemo, useState } from 'react';
|
import React, { useMemo, useState } from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import ISort from 'ts/interfaces/Sort';
|
|
||||||
import { IPaginationRequest } from 'ts/interfaces/Pagination';
|
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import Countries from './components/Countries';
|
import Countries from './components/Countries';
|
||||||
|
@ -71,9 +69,7 @@ const Country = observer(({
|
||||||
<Title title="page.team.country.table.title"/>
|
<Title title="page.team.country.table.title"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(countries, mode)}
|
||||||
content: countries, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}${filters.hash}`}
|
watch={`${mode}${dataGripStore.hash}${filters.hash}`}
|
||||||
>
|
>
|
||||||
<Countries
|
<Countries
|
||||||
|
@ -90,9 +86,7 @@ const Country = observer(({
|
||||||
<Title title="page.team.country.travel.title"/>
|
<Title title="page.team.country.travel.title"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(travel, mode)}
|
||||||
content: travel, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}${filters.hash}`}
|
watch={`${mode}${dataGripStore.hash}${filters.hash}`}
|
||||||
>
|
>
|
||||||
<Travel
|
<Travel
|
||||||
|
|
|
@ -44,7 +44,6 @@ export function Months({ response, updateSort, rowsForExcel, mode }: MonthsProps
|
||||||
? (<b>{value}</b>)
|
? (<b>{value}</b>)
|
||||||
: value;
|
: value;
|
||||||
}}
|
}}
|
||||||
width={150}
|
|
||||||
/>
|
/>
|
||||||
<Column
|
<Column
|
||||||
template={ColumnTypesEnum.NUMBER}
|
template={ColumnTypesEnum.NUMBER}
|
||||||
|
@ -77,7 +76,7 @@ export function Months({ response, updateSort, rowsForExcel, mode }: MonthsProps
|
||||||
/>
|
/>
|
||||||
<Column
|
<Column
|
||||||
isSortable
|
isSortable
|
||||||
width={200}
|
minWidth={200}
|
||||||
properties="allAuthors"
|
properties="allAuthors"
|
||||||
title="page.team.department.months.allAuthors"
|
title="page.team.department.months.allAuthors"
|
||||||
template={(value: number) => (
|
template={(value: number) => (
|
||||||
|
|
|
@ -2,8 +2,6 @@ import React, { useState } from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import { IPaginationRequest } from 'ts/interfaces/Pagination';
|
|
||||||
import ISort from 'ts/interfaces/Sort';
|
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
import fullScreen from 'ts/store/FullScreen';
|
import fullScreen from 'ts/store/FullScreen';
|
||||||
|
|
||||||
|
@ -11,7 +9,7 @@ import Title from 'ts/components/Title';
|
||||||
import Description from 'ts/components/Description';
|
import Description from 'ts/components/Description';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import SelectWithButtons from 'ts/components/UiKit/components/SelectWithButtons';
|
import SelectWithButtons from 'ts/components/UiKit/components/SelectWithButtons';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
|
|
||||||
|
@ -48,9 +46,7 @@ const Department = observer(({
|
||||||
<Title title="page.team.department.title"/>
|
<Title title="page.team.department.title"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(content, mode)}
|
||||||
content, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
>
|
>
|
||||||
<Departments />
|
<Departments />
|
||||||
<Pagination />
|
<Pagination />
|
||||||
|
@ -67,7 +63,6 @@ const Department = observer(({
|
||||||
className={style.table_filters_item}
|
className={style.table_filters_item}
|
||||||
options={options}
|
options={options}
|
||||||
onChange={(value: string) => {
|
onChange={(value: string) => {
|
||||||
console.log(value);
|
|
||||||
setTaskCode(value);
|
setTaskCode(value);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -75,9 +70,7 @@ const Department = observer(({
|
||||||
</PageWrapper>
|
</PageWrapper>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(byMonths[taskCode], mode)}
|
||||||
content: byMonths[taskCode], pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
watch={taskCode}
|
watch={taskCode}
|
||||||
>
|
>
|
||||||
<Months/>
|
<Months/>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';
|
import { IPagination } from 'ts/interfaces/Pagination';
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import DataView from 'ts/components/DataView';
|
import DataView from 'ts/components/DataView';
|
||||||
|
@ -132,9 +132,7 @@ const Extension = observer(({
|
||||||
)}
|
)}
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest) => getFakeLoader({
|
loader={getFakeLoader(rows, mode)}
|
||||||
content: rows, pagination, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}`}
|
watch={`${mode}${dataGripStore.hash}`}
|
||||||
>
|
>
|
||||||
<ExtensionView
|
<ExtensionView
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';
|
import { IPagination } from 'ts/interfaces/Pagination';
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import DataView from 'ts/components/DataView';
|
import DataView from 'ts/components/DataView';
|
||||||
|
@ -124,9 +124,7 @@ const Extension = observer(({
|
||||||
<Title title="page.team.extension.extension"/>
|
<Title title="page.team.extension.extension"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest) => getFakeLoader({
|
loader={getFakeLoader(rows, mode)}
|
||||||
content: rows, pagination, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}`}
|
watch={`${mode}${dataGripStore.hash}`}
|
||||||
>
|
>
|
||||||
<ExtensionView
|
<ExtensionView
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';
|
import { IPagination } from 'ts/interfaces/Pagination';
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import DataView from 'ts/components/DataView';
|
import DataView from 'ts/components/DataView';
|
||||||
|
@ -124,9 +124,7 @@ const Type = observer(({
|
||||||
<Title title="page.team.extension.type"/>
|
<Title title="page.team.extension.type"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest) => getFakeLoader({
|
loader={getFakeLoader(rows, mode)}
|
||||||
content: rows, pagination, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}`}
|
watch={`${mode}${dataGripStore.hash}`}
|
||||||
>
|
>
|
||||||
<TypeView
|
<TypeView
|
||||||
|
|
|
@ -8,7 +8,7 @@ import dataGripStore from 'ts/store/DataGrip';
|
||||||
import PageWrapper from 'ts/components/Page/wrapper';
|
import PageWrapper from 'ts/components/Page/wrapper';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import sendFakeRequest from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ const Tree = observer(({ type }: ITreeProps): React.ReactElement => {
|
||||||
<PageWrapper template="table">
|
<PageWrapper template="table">
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest) => getFakeLoader({
|
loader={(pagination?: IPaginationRequest) => sendFakeRequest({
|
||||||
content, pagination: { ...pagination, size: 2000 },
|
content, pagination: { ...pagination, size: 2000 },
|
||||||
})}
|
})}
|
||||||
watch={`${treeStore.hash}${type}`}
|
watch={`${treeStore.hash}${type}`}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import dataGripStore from 'ts/store/DataGrip';
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import sendFakeRequest, { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import PageBreak from 'ts/pages/Common/components/PageBreak';
|
import PageBreak from 'ts/pages/Common/components/PageBreak';
|
||||||
|
@ -60,9 +60,7 @@ const PR = observer(({
|
||||||
<Title title="page.team.pr.statByAuthors"/>
|
<Title title="page.team.pr.statByAuthors"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(authorsStat, mode)}
|
||||||
content: authorsStat, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
>
|
>
|
||||||
<Authors
|
<Authors
|
||||||
mode={mode}
|
mode={mode}
|
||||||
|
@ -74,7 +72,7 @@ const PR = observer(({
|
||||||
<Title title="page.team.pr.longDelay"/>
|
<Title title="page.team.pr.longDelay"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => sendFakeRequest({
|
||||||
content: longReview,
|
content: longReview,
|
||||||
pagination: mode === 'print'
|
pagination: mode === 'print'
|
||||||
? { size: 20 }
|
? { size: 20 }
|
||||||
|
@ -98,7 +96,7 @@ const PR = observer(({
|
||||||
<Title title="page.team.pr.anonymous"/>
|
<Title title="page.team.pr.anonymous"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => sendFakeRequest({
|
||||||
content: withoutTask,
|
content: withoutTask,
|
||||||
pagination: mode === 'print'
|
pagination: mode === 'print'
|
||||||
? { size: 20 }
|
? { size: 20 }
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import { IPaginationRequest } from 'ts/interfaces/Pagination';
|
|
||||||
import ICommit from 'ts/interfaces/Commit';
|
import ICommit from 'ts/interfaces/Commit';
|
||||||
import ISort from 'ts/interfaces/Sort';
|
|
||||||
import { IPagination } from 'ts/interfaces/Pagination';
|
import { IPagination } from 'ts/interfaces/Pagination';
|
||||||
import { getDate } from 'ts/helpers/formatter';
|
import { getDate } from 'ts/helpers/formatter';
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import DataView from 'ts/components/DataView';
|
import DataView from 'ts/components/DataView';
|
||||||
import Column from 'ts/components/Table/components/Column';
|
import Column from 'ts/components/Table/components/Column';
|
||||||
|
@ -152,9 +150,7 @@ const Refactor = observer(({
|
||||||
<Title title="page.team.refactor.title"/>
|
<Title title="page.team.refactor.title"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(content, mode)}
|
||||||
content, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
>
|
>
|
||||||
<View />
|
<View />
|
||||||
<Pagination />
|
<Pagination />
|
||||||
|
|
|
@ -2,13 +2,12 @@ import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import { IPaginationRequest } from 'ts/interfaces/Pagination';
|
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import UiKitButton from 'ts/components/UiKit/components/Button';
|
import UiKitButton from 'ts/components/UiKit/components/Button';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
|
@ -40,9 +39,7 @@ const Release = observer(({
|
||||||
)}
|
)}
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest) => getFakeLoader({
|
loader={getFakeLoader(rows, mode)}
|
||||||
content: rows, pagination, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}`}
|
watch={`${mode}${dataGripStore.hash}`}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';
|
import { IPagination } from 'ts/interfaces/Pagination';
|
||||||
import { getMoney } from 'ts/helpers/formatter';
|
import { getMoney } from 'ts/helpers/formatter';
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import DataView from 'ts/components/DataView';
|
import DataView from 'ts/components/DataView';
|
||||||
|
@ -53,6 +53,7 @@ function ScopeView({ response, updateSort, rowsForExcel, mode }: IScopeViewProps
|
||||||
properties="days"
|
properties="days"
|
||||||
/>
|
/>
|
||||||
<Column
|
<Column
|
||||||
|
isSortable={false}
|
||||||
template={ColumnTypesEnum.NUMBER}
|
template={ColumnTypesEnum.NUMBER}
|
||||||
title="page.team.scope.authorsDays"
|
title="page.team.scope.authorsDays"
|
||||||
properties="authors"
|
properties="authors"
|
||||||
|
@ -132,9 +133,7 @@ const Scope = observer(({
|
||||||
<Title title="page.team.scope.title"/>
|
<Title title="page.team.scope.title"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest) => getFakeLoader({
|
loader={getFakeLoader(rows, mode)}
|
||||||
content: rows, pagination, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}`}
|
watch={`${mode}${dataGripStore.hash}`}
|
||||||
>
|
>
|
||||||
<ScopeView
|
<ScopeView
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import ISort from 'ts/interfaces/Sort';
|
|
||||||
import { IPaginationRequest } from 'ts/interfaces/Pagination';
|
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import PageWrapper from 'ts/components/Page/wrapper';
|
import PageWrapper from 'ts/components/Page/wrapper';
|
||||||
|
@ -75,9 +73,7 @@ const Tasks = observer(({
|
||||||
</PageWrapper>
|
</PageWrapper>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(content, mode)}
|
||||||
content, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
watch={hash}
|
watch={hash}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
|
@ -98,9 +94,7 @@ const Tasks = observer(({
|
||||||
<br/>
|
<br/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(backlogContent, mode)}
|
||||||
content: backlogContent, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
watch={hash}
|
watch={hash}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
|
|
|
@ -6,7 +6,7 @@ import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import PageWrapper from 'ts/components/Page/wrapper';
|
import PageWrapper from 'ts/components/Page/wrapper';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import sendFakeRequest from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import TempoChart from 'ts/components/Tempo';
|
import TempoChart from 'ts/components/Tempo';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
|
@ -67,7 +67,7 @@ const Tempo = observer((): React.ReactElement => {
|
||||||
<PageWrapper template="table">
|
<PageWrapper template="table">
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={() => getFakeLoader({ content: partOfData })}
|
loader={() => sendFakeRequest({ content: partOfData })}
|
||||||
watch={JSON.stringify(filters)}
|
watch={JSON.stringify(filters)}
|
||||||
>
|
>
|
||||||
<TempoView
|
<TempoView
|
||||||
|
|
|
@ -3,15 +3,14 @@ import { observer } from 'mobx-react-lite';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import IHashMap from 'ts/interfaces/HashMap';
|
import IHashMap from 'ts/interfaces/HashMap';
|
||||||
import ISort from 'ts/interfaces/Sort';
|
import { IPagination } from 'ts/interfaces/Pagination';
|
||||||
import { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';
|
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
import PageWrapper from 'ts/components/Page/wrapper';
|
import PageWrapper from 'ts/components/Page/wrapper';
|
||||||
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import DataView from 'ts/components/DataView';
|
import DataView from 'ts/components/DataView';
|
||||||
|
@ -140,9 +139,7 @@ const Type = observer(({
|
||||||
<Title title="page.team.type.title"/>
|
<Title title="page.team.type.title"/>
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(rows, mode)}
|
||||||
content: rows, pagination, sort, mode,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}`}
|
watch={`${mode}${dataGripStore.hash}`}
|
||||||
>
|
>
|
||||||
<TypeView
|
<TypeView
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
|
|
||||||
import ISort from 'ts/interfaces/Sort';
|
|
||||||
import IHashMap from 'ts/interfaces/HashMap';
|
import IHashMap from 'ts/interfaces/HashMap';
|
||||||
import { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';
|
import { IPagination } from 'ts/interfaces/Pagination';
|
||||||
import { getShortDateRange } from 'ts/helpers/formatter';
|
import { getShortDateRange } from 'ts/helpers/formatter';
|
||||||
import dataGripStore from 'ts/store/DataGrip';
|
import dataGripStore from 'ts/store/DataGrip';
|
||||||
|
|
||||||
|
@ -11,7 +10,7 @@ import ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';
|
||||||
import Title from 'ts/components/Title';
|
import Title from 'ts/components/Title';
|
||||||
import DataLoader from 'ts/components/DataLoader';
|
import DataLoader from 'ts/components/DataLoader';
|
||||||
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
import Pagination from 'ts/components/DataLoader/components/Pagination';
|
||||||
import getFakeLoader from 'ts/components/DataLoader/helpers/formatter';
|
import { getFakeLoader } from 'ts/components/DataLoader/helpers/formatter';
|
||||||
import NothingFound from 'ts/components/NothingFound';
|
import NothingFound from 'ts/components/NothingFound';
|
||||||
import DataView from 'ts/components/DataView';
|
import DataView from 'ts/components/DataView';
|
||||||
import Column from 'ts/components/Table/components/Column';
|
import Column from 'ts/components/Table/components/Column';
|
||||||
|
@ -180,9 +179,7 @@ const Week = observer(({
|
||||||
)}
|
)}
|
||||||
<DataLoader
|
<DataLoader
|
||||||
to="response"
|
to="response"
|
||||||
loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({
|
loader={getFakeLoader(rows)}
|
||||||
content: rows, pagination, sort,
|
|
||||||
})}
|
|
||||||
watch={`${mode}${dataGripStore.hash}`}
|
watch={`${mode}${dataGripStore.hash}`}
|
||||||
>
|
>
|
||||||
<WeekView
|
<WeekView
|
||||||
|
|