-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: client js packages fixes and welcome screen style
- Loading branch information
ahmetkuslular
committed
Sep 29, 2022
1 parent
43b4a2e
commit b19e836
Showing
13 changed files
with
161 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function omitByIndexOf(object, keys) { | ||
if (object == null) { | ||
return {}; | ||
} | ||
|
||
const result = Object.keys(object).reduce((result, cookiesKey) => { | ||
if (object[cookiesKey]) { | ||
if (keys.some(item => cookiesKey.indexOf(item) === -1)) { | ||
return { | ||
...result, | ||
[cookiesKey]: object[cookiesKey] | ||
}; | ||
} | ||
return result; | ||
} | ||
return result; | ||
}, {}); | ||
|
||
return result; | ||
} | ||
|
||
export default omitByIndexOf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
function pickObject(object, keys) { | ||
return keys.reduce((obj, key) => { | ||
if (Array.isArray(key)) { | ||
return { | ||
...obj, | ||
...pickObject(object, key) | ||
}; | ||
} | ||
|
||
if (object && Object.prototype.hasOwnProperty.call(object, key)) { | ||
return { | ||
...obj, | ||
[key]: object[key] | ||
}; | ||
} | ||
return obj; | ||
}, {}); | ||
} | ||
|
||
function pick(object, ...keys) { | ||
return object == null ? {} : pickObject(object, keys); | ||
} | ||
|
||
export default pick; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function pickByIndexOf(object, keys) { | ||
if (object == null) { | ||
return {}; | ||
} | ||
|
||
const result = Object.keys(object).reduce((result, cookiesKey) => { | ||
if (object[cookiesKey]) { | ||
if (keys.some(item => cookiesKey.indexOf(item) !== -1)) { | ||
return { | ||
...result, | ||
[cookiesKey]: object[cookiesKey] | ||
}; | ||
} | ||
return result; | ||
} | ||
return result; | ||
}, {}); | ||
|
||
return result; | ||
} | ||
|
||
export default pickByIndexOf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.