mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Update dependency fork-awesome to v1.2.0 (#1453)
* Update dependency fork-awesome to v1.2.0 Signed-off-by: Renovate Bot <bot@renovateapp.com> * Move fork awesome icon definition Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Add icons of fork awesome 1.2 Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Reorganize icon name list Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
f6b891b780
commit
98f1433b9e
7 changed files with 816 additions and 778 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import emojiData from 'emoji-picker-element-data/en/emojibase/data.json'
|
||||
import { ForkAwesomeIcons } from '../../../editor-page/editor-pane/tool-bar/emoji-picker/icon-names'
|
||||
import { ForkAwesomeIcons } from '../../../common/fork-awesome/fork-awesome-icons'
|
||||
|
||||
interface EmojiEntry {
|
||||
shortcodes: string[]
|
||||
|
@ -29,10 +29,10 @@ const emojiSkinToneModifierMap = [1, 2, 3, 4, 5].reduce((reduceObject, modifierV
|
|||
return reduceObject
|
||||
}, {} as ShortCodeMap)
|
||||
|
||||
const forkAwesomeIconMap = Object.keys(ForkAwesomeIcons).reduce((reduceObject, icon) => {
|
||||
const forkAwesomeIconMap = ForkAwesomeIcons.reduce((reduceObject, icon) => {
|
||||
const shortcode = `fa-${icon}`
|
||||
// noinspection CheckTagEmptyBody
|
||||
reduceObject[shortcode] = `<i class="fa fa-${icon}"></i>`
|
||||
reduceObject[shortcode] = `<i class='fa fa-${icon}'></i>`
|
||||
return reduceObject
|
||||
}, {} as ShortCodeMap)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue