Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
search-page
Commits
6cc198bf
Commit
6cc198bf
authored
Dec 26, 2020
by
Sangjune Bae
Browse files
first commit
parent
81c6da4b
Changes
760
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
760 of 760+
files are displayed.
Plain diff
Email patch
node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
0 → 100644
View file @
6cc198bf
export
default
function
getFreshSideObject
()
{
return
{
top
:
0
,
right
:
0
,
bottom
:
0
,
left
:
0
};
}
\ No newline at end of file
node_modules/@popperjs/core/lib/utils/getFreshSideObject.js.flow
0 → 100644
View file @
6cc198bf
// @flow
import type { SideObject } from '../types';
export default function getFreshSideObject(): SideObject {
return {
top: 0,
right: 0,
bottom: 0,
left: 0,
};
}
node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.d.ts
0 → 100644
View file @
6cc198bf
import
{
Placement
}
from
"
../enums
"
;
export
default
function
getMainAxisFromPlacement
(
placement
:
Placement
):
"
x
"
|
"
y
"
;
node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
0 → 100644
View file @
6cc198bf
export
default
function
getMainAxisFromPlacement
(
placement
)
{
return
[
'
top
'
,
'
bottom
'
].
indexOf
(
placement
)
>=
0
?
'
x
'
:
'
y
'
;
}
\ No newline at end of file
node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js.flow
0 → 100644
View file @
6cc198bf
// @flow
import type { Placement } from '../enums';
export default function getMainAxisFromPlacement(
placement: Placement
): 'x' | 'y' {
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
}
node_modules/@popperjs/core/lib/utils/getOppositePlacement.d.ts
0 → 100644
View file @
6cc198bf
import
{
Placement
}
from
"
../enums
"
;
export
default
function
getOppositePlacement
(
placement
:
Placement
):
Placement
;
node_modules/@popperjs/core/lib/utils/getOppositePlacement.js
0 → 100644
View file @
6cc198bf
var
hash
=
{
left
:
'
right
'
,
right
:
'
left
'
,
bottom
:
'
top
'
,
top
:
'
bottom
'
};
export
default
function
getOppositePlacement
(
placement
)
{
return
placement
.
replace
(
/left|right|bottom|top/g
,
function
(
matched
)
{
return
hash
[
matched
];
});
}
\ No newline at end of file
node_modules/@popperjs/core/lib/utils/getOppositePlacement.js.flow
0 → 100644
View file @
6cc198bf
// @flow
import type { Placement } from '../enums';
const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
export default function getOppositePlacement(placement: Placement): Placement {
return (placement.replace(
/left|right|bottom|top/g,
matched => hash[matched]
): any);
}
node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.d.ts
0 → 100644
View file @
6cc198bf
import
{
Placement
}
from
"
../enums
"
;
export
default
function
getOppositeVariationPlacement
(
placement
:
Placement
):
Placement
;
node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
0 → 100644
View file @
6cc198bf
var
hash
=
{
start
:
'
end
'
,
end
:
'
start
'
};
export
default
function
getOppositeVariationPlacement
(
placement
)
{
return
placement
.
replace
(
/start|end/g
,
function
(
matched
)
{
return
hash
[
matched
];
});
}
\ No newline at end of file
node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js.flow
0 → 100644
View file @
6cc198bf
// @flow
import type { Placement } from '../enums';
const hash = { start: 'end', end: 'start' };
export default function getOppositeVariationPlacement(
placement: Placement
): Placement {
return (placement.replace(/start|end/g, matched => hash[matched]): any);
}
node_modules/@popperjs/core/lib/utils/getVariation.d.ts
0 → 100644
View file @
6cc198bf
import
{
Variation
,
Placement
}
from
"
../enums
"
;
export
default
function
getVariation
(
placement
:
Placement
):
Variation
|
null
|
undefined
;
node_modules/@popperjs/core/lib/utils/getVariation.js
0 → 100644
View file @
6cc198bf
export
default
function
getVariation
(
placement
)
{
return
placement
.
split
(
'
-
'
)[
1
];
}
\ No newline at end of file
node_modules/@popperjs/core/lib/utils/getVariation.js.flow
0 → 100644
View file @
6cc198bf
// @flow
import { type Variation, type Placement } from '../enums';
export default function getVariation(placement: Placement): ?Variation {
return (placement.split('-')[1]: any);
}
node_modules/@popperjs/core/lib/utils/mergeByName.d.ts
0 → 100644
View file @
6cc198bf
import
{
Modifier
}
from
"
../types
"
;
export
default
function
mergeByName
(
modifiers
:
Array
<
Partial
<
Modifier
<
any
,
any
>>>
):
Array
<
Partial
<
Modifier
<
any
,
any
>>>
;
node_modules/@popperjs/core/lib/utils/mergeByName.js
0 → 100644
View file @
6cc198bf
export
default
function
mergeByName
(
modifiers
)
{
var
merged
=
modifiers
.
reduce
(
function
(
merged
,
current
)
{
var
existing
=
merged
[
current
.
name
];
merged
[
current
.
name
]
=
existing
?
Object
.
assign
(
Object
.
assign
(
Object
.
assign
({},
existing
),
current
),
{},
{
options
:
Object
.
assign
(
Object
.
assign
({},
existing
.
options
),
current
.
options
),
data
:
Object
.
assign
(
Object
.
assign
({},
existing
.
data
),
current
.
data
)
})
:
current
;
return
merged
;
},
{});
// IE11 does not support Object.values
return
Object
.
keys
(
merged
).
map
(
function
(
key
)
{
return
merged
[
key
];
});
}
\ No newline at end of file
node_modules/@popperjs/core/lib/utils/mergeByName.js.flow
0 → 100644
View file @
6cc198bf
// @flow
import type { Modifier } from '../types';
export default function mergeByName(
modifiers: Array<$Shape<Modifier<any, any>>>
): Array<$Shape<Modifier<any, any>>> {
const merged = modifiers.reduce((merged, current) => {
const existing = merged[current.name];
merged[current.name] = existing
? {
...existing,
...current,
options: { ...existing.options, ...current.options },
data: { ...existing.data, ...current.data },
}
: current;
return merged;
}, {});
// IE11 does not support Object.values
return Object.keys(merged).map(key => merged[key]);
}
node_modules/@popperjs/core/lib/utils/mergePaddingObject.d.ts
0 → 100644
View file @
6cc198bf
import
{
SideObject
}
from
"
../types
"
;
export
default
function
mergePaddingObject
(
paddingObject
:
Partial
<
SideObject
>
):
SideObject
;
node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
0 → 100644
View file @
6cc198bf
import
getFreshSideObject
from
"
./getFreshSideObject.js
"
;
export
default
function
mergePaddingObject
(
paddingObject
)
{
return
Object
.
assign
(
Object
.
assign
({},
getFreshSideObject
()),
paddingObject
);
}
\ No newline at end of file
node_modules/@popperjs/core/lib/utils/mergePaddingObject.js.flow
0 → 100644
View file @
6cc198bf
// @flow
import type { SideObject } from '../types';
import getFreshSideObject from './getFreshSideObject';
export default function mergePaddingObject(
paddingObject: $Shape<SideObject>
): SideObject {
return {
...getFreshSideObject(),
...paddingObject,
};
}
Prev
1
…
18
19
20
21
22
23
24
25
26
…
38
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment