mirror of
https://github.com/plankanban/planka.git
synced 2025-07-20 13:49:43 +02:00
Add username to user
This commit is contained in:
parent
ec222a5e32
commit
af00e3e191
143 changed files with 1051 additions and 420 deletions
|
@ -2,14 +2,14 @@ const GAP = 2 ** 14;
|
|||
const MIN_GAP = 0.125;
|
||||
const MAX_POSITION = 2 ** 50;
|
||||
|
||||
const findBeginnings = positions => {
|
||||
const findBeginnings = (positions) => {
|
||||
positions.unshift(0);
|
||||
|
||||
let prevPosition = positions.pop();
|
||||
const beginnings = [prevPosition];
|
||||
|
||||
// eslint-disable-next-line consistent-return
|
||||
_.forEachRight(positions, position => {
|
||||
_.forEachRight(positions, (position) => {
|
||||
if (prevPosition - MIN_GAP >= position) {
|
||||
return false;
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ const findBeginnings = positions => {
|
|||
return beginnings;
|
||||
};
|
||||
|
||||
const getRepositionsMap = positions => {
|
||||
const getRepositionsMap = (positions) => {
|
||||
const repositionsMap = {};
|
||||
|
||||
if (positions.length <= 1) {
|
||||
|
@ -62,7 +62,7 @@ const getRepositionsMap = positions => {
|
|||
return repositionsMap;
|
||||
};
|
||||
|
||||
const getFullRepositionsMap = positions => {
|
||||
const getFullRepositionsMap = (positions) => {
|
||||
const repositionsMap = {};
|
||||
|
||||
_.forEach(positions, (position, index) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue