Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
a5e1d0aa
Unverified
Commit
a5e1d0aa
authored
2 years ago
by
Nemanja Glumac
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused emoji script (#28463)
parent
32854d3c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/update-emoji
+0
-47
0 additions, 47 deletions
bin/update-emoji
with
0 additions
and
47 deletions
bin/update-emoji
deleted
100755 → 0
+
0
−
47
View file @
32854d3c
#!/usr/bin/env node
var
fs
=
require
(
"
fs
"
);
var
emoji
;
try
{
emoji
=
require
(
"
emojione/emoji.json
"
);
}
catch
(
e
)
{
console
.
log
(
"
Please `yarn global add emojione` and re-run.
"
);
process
.
exit
(
1
);
}
var
results
=
{
emoji
:
{},
categories
:
[
{
id
:
"
people
"
,
name
:
"
Smilies & People
"
},
{
id
:
"
nature
"
,
name
:
"
Animals & Nature
"
},
{
id
:
"
food
"
,
name
:
"
Food & Drink
"
},
{
id
:
"
activity
"
,
name
:
"
Activity
"
},
{
id
:
"
travel
"
,
name
:
"
Travel & Places
"
},
{
id
:
"
objects
"
,
name
:
"
Objects
"
},
{
id
:
"
symbols
"
,
name
:
"
Symbols
"
},
{
id
:
"
flags
"
,
name
:
"
Flags
"
}
]
}
var
categoriesMap
=
{};
results
.
categories
.
forEach
(
function
(
category
)
{
categoriesMap
[
category
.
id
]
=
category
;
category
.
emoji
=
[];
});
var
orderedEmoji
=
Object
.
keys
(
emoji
).
map
(
function
(
key
)
{
return
emoji
[
key
];
});
orderedEmoji
.
sort
(
function
(
a
,
b
)
{
return
parseInt
(
a
.
emoji_order
,
10
)
-
parseInt
(
b
.
emoji_order
,
10
);
});
orderedEmoji
.
forEach
(
function
(
emoji
)
{
var
category
=
categoriesMap
[
emoji
.
category
];
if
(
category
)
{
category
.
emoji
.
push
(
emoji
.
shortname
);
results
.
emoji
[
emoji
.
shortname
]
=
parseInt
(
emoji
.
unicode
,
16
);
}
});
fs
.
writeFileSync
(
"
frontend/src/metabase/lib/emoji.json
"
,
JSON
.
stringify
(
results
));
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment