-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
156 additions
and
97 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 was deleted.
Oops, something went wrong.
54 changes: 27 additions & 27 deletions
54
...ic/manager.68417e5d810376b1e40e.bundle.js → ...ic/manager.ef6fecb46e3c429d06e2.bundle.js
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Header_Height } from '../../../constants'; | ||
import { HEADER_HEIGHT } from '../../../constants'; | ||
|
||
export default function headerTransform(distance) { | ||
|
||
return `transform: translateY(${distance-Header_Height}px);`; | ||
return `transform: translateY(${distance-HEADER_HEIGHT}px);`; | ||
} |
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,21 @@ | ||
import { | ||
PICKER_WIDTH, | ||
PICKER_HEIGHT, | ||
EMOJI_SIZE | ||
} from '../../../constants'; | ||
|
||
export default function inlineStyleTags({ width, height }) { | ||
const pickerWidth = width || PICKER_WIDTH, | ||
pickerHeight = height || PICKER_HEIGHT; | ||
|
||
return { | ||
picker: { | ||
width: `${pickerWidth}px` | ||
}, | ||
list: { | ||
width: `${Math.floor(pickerWidth/EMOJI_SIZE) * EMOJI_SIZE}px`, | ||
height: `${pickerHeight}px` | ||
|
||
} | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,11 +1,21 @@ | ||
import { keywords } from '../emoji-data'; | ||
import keywordsSingleChar from '../SearchBar/helpers/init_keywords_single'; | ||
|
||
export const Header_Height = 25; | ||
// view | ||
export const HEADER_HEIGHT = 25; | ||
export const PICKER_WIDTH = 240; | ||
export const PICKER_HEIGHT = 240; | ||
export const EMOJI_SIZE = 34; | ||
|
||
// timers | ||
export const OPEN_DIVERSITIES_TIMEOUT = 1000; | ||
export const HIDE_SCROLL_DEBOUNCE = 550; | ||
export const FILTER_UPDATE_DEBOUNCE = 200; | ||
|
||
// images | ||
export const DEFAULT_CDN_PATH = 'https://cdn.jsdelivr.net/emojione/assets/3.0/png'; | ||
export const DEFAULT_IMAGE_RESOLUTION = '32'; | ||
|
||
// keywords | ||
export const ALL_KEYWORDS = Object.keys(keywords); | ||
export const KEYWORDS_SINGLE = keywordsSingleChar; |
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