Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Merge requests
!61
Add emoji sanitizater
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add emoji sanitizater
XX-4431/Emoji
into
release
Overview
5
Commits
39
Pipelines
0
Changes
11
Merged
Josh Brooks
requested to merge
XX-4431/Emoji
into
release
2 years ago
Overview
5
Commits
39
Pipelines
0
Changes
11
Expand
0
0
Merge request reports
Compare
release
version 18
c351d094
2 years ago
version 17
12f360cb
2 years ago
version 16
7218c92d
2 years ago
version 15
a77d6638
2 years ago
version 14
c9744461
2 years ago
version 13
a4216205
2 years ago
version 12
28f7bfb1
2 years ago
version 11
0b1cb906
2 years ago
version 10
0fd3969f
2 years ago
version 9
54878ddb
2 years ago
version 8
873f0e58
2 years ago
version 7
82213ce4
2 years ago
version 6
5f80f06e
2 years ago
version 5
3f29b4bd
2 years ago
version 4
0448bb99
2 years ago
version 3
ef50518a
2 years ago
version 2
314ad61b
2 years ago
version 1
6b156484
2 years ago
release (base)
and
latest version
latest version
9c14e6ec
39 commits,
2 years ago
version 18
c351d094
38 commits,
2 years ago
version 17
12f360cb
37 commits,
2 years ago
version 16
7218c92d
36 commits,
2 years ago
version 15
a77d6638
35 commits,
2 years ago
version 14
c9744461
33 commits,
2 years ago
version 13
a4216205
31 commits,
2 years ago
version 12
28f7bfb1
30 commits,
2 years ago
version 11
0b1cb906
29 commits,
2 years ago
version 10
0fd3969f
23 commits,
2 years ago
version 9
54878ddb
20 commits,
2 years ago
version 8
873f0e58
19 commits,
2 years ago
version 7
82213ce4
8 commits,
2 years ago
version 6
5f80f06e
7 commits,
2 years ago
version 5
3f29b4bd
6 commits,
2 years ago
version 4
0448bb99
5 commits,
2 years ago
version 3
ef50518a
4 commits,
2 years ago
version 2
314ad61b
2 commits,
2 years ago
version 1
6b156484
1 commit,
2 years ago
11 files
+
865
−
20
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
emoji/emojiMart.go
0 → 100644
+
65
−
0
Options
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2022 xx foundation //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
package
main
// emojiID represents the alias for an emoji in emoji-mart. For example, the
// alias for the emoji 💯 would be "100". This adheres strictly to how Emoji
// Mart categorizes their emojis within the categories section of their JSON
// file.
type
emojiID
string
// codepoint represents the Unicode codepoint or codepoints for an emoji. They
// are in lowercase and if there are multiple codepoints, they are seperated by
// a dash ("-"). For example, the emoji 💯 would have the codepoint "1f4af".
type
codepoint
string
// emojiMartSet is a representation of the JSON file format containing the emoji
// list in emoji-mart. It matches the object EmojiMartData:
// https://github.com/missive/emoji-mart/blob/main/packages/emoji-mart-data/index.d.ts
//
// Doc: https://github.com/missive/emoji-mart/
// JSON example: https://github.com/missive/emoji-mart/blob/main/packages/emoji-mart-data/sets/14/native.json
type
emojiMartSet
struct
{
Categories
[]
category
`json:"categories"`
Emojis
map
[
emojiID
]
emoji
`json:"emojis"`
Aliases
map
[
string
]
emojiID
`json:"aliases"`
Sheet
sheet
`json:"sheet"`
}
// category adheres to the categories field within the EmojiMartData Javascript
// interface.
type
category
struct
{
ID
string
`json:"id"`
Emojis
[]
emojiID
`json:"emojis"`
}
// emoji adheres to the emojis field within the EmojiMartData Javascript
// interface.
type
emoji
struct
{
ID
emojiID
`json:"id"`
Name
string
`json:"name"`
Keywords
[]
string
`json:"keywords"`
Skins
[]
skin
`json:"skins"`
Version
float64
`json:"version"`
Emoticons
[]
string
`json:"emoticons,omitempty"`
}
// skin adheres to the skins field within the EmojiMartData Javascript interface.
type
skin
struct
{
Unified
codepoint
`json:"unified"`
Native
string
`json:"native"`
X
float64
`json:"x,omitempty"`
Y
float64
`json:"y,omitempty"`
}
// sheet adheres to the sheet field within the EmojiMartData Javascript
// interface.
type
sheet
struct
{
Cols
float64
`json:"cols"`
Rows
float64
`json:"rows"`
}
Loading