ahkohd / ngx-emoj Goto Github PK
View Code? Open in Web Editor NEWA simple, theme-able emoji mart/picker for angular 4+
Home Page: https://ahkohd.github.io/ngx-emoj
License: MIT License
A simple, theme-able emoji mart/picker for angular 4+
Home Page: https://ahkohd.github.io/ngx-emoj
License: MIT License
Hi there,
It appears that some emoji are missing on some devices.
On your picker repo you implemented a fallback pipe, which might be able to fill the gap, though the detector fails to detect properly missing emojis.
Would that be possible to add the same fallback pipe on this repo?
As you stated, the picker repo is in maintenance mode, and at it's state is not suitable Ionic production apps for slow render reasons.
Just my 2 cents but I think this repo would be enough for both usecases; mobile & desktop apps, if it can handle somewhat old mobile devices and the fallback is then a main concern.
I suggest to use if-emoji
lib or their implementation for the detector.
Currently, I use this simple pipe on my project for the fallback and it works with no false positive so far
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import ifEmoji from 'if-emoji'
import twemoji from 'twemoji';
@Pipe({
name: 'emojiFallback'
})
export class EmojiFallbackPipe implements PipeTransform {
constructor(private domSanitizer: DomSanitizer) { }
transform(emoji: string): string | SafeHtml {
return ifEmoji(emoji) ? emoji : this.domSanitizer.bypassSecurityTrustHtml(twemoji.parse(emoji.trim()));
}
}
If you need some help or a PR, please let me know.
if we are pressing the center of emoji header it doesn't changed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.