mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Implement redux.
This commit is contained in:
parent
9d8a2406e1
commit
5d4ff5cfa4
31 changed files with 341 additions and 85 deletions
|
|
@ -285,6 +285,8 @@ export const refFilter = data =>
|
|||
data.filter(({ x }) => x !== '' && !x.startsWith('/') && !x.startsWith('#'));
|
||||
|
||||
export const deviceFilter = data => {
|
||||
if (data.length === 0) return [];
|
||||
|
||||
const devices = data.reduce(
|
||||
(obj, { x, y }) => {
|
||||
const [width] = x.split('x');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue