This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
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
15 changed files
with
70 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ packages/*/node_modules | |
redis/ | ||
files/ | ||
misskey-assets/ | ||
fluent-emojis/ | ||
.pnp.* | ||
.yarn/* | ||
!.yarn/patches | ||
|
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,3 +1,6 @@ | ||
[submodule "misskey-assets"] | ||
path = misskey-assets | ||
url = https://github.com/misskey-dev/assets.git | ||
[submodule "fluent-emojis"] | ||
path = fluent-emojis | ||
url = https://github.com/misskey-dev/emojis.git |
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
Submodule fluent-emojis
added at
cae981
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
Submodule misskey-assets
updated
7 files
+3 −1 | README.md | |
+ − | banner-2.png | |
+ − | banner.png | |
+ − | favicon.ico | |
+ − | favicon.png | |
+ − | icon.png | |
+7 −0 | misskey.svg |
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
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,20 @@ | ||
const twemojiSvgBase = '/twemoji'; | ||
const fluentEmojiPngBase = '/fluent-emoji'; | ||
|
||
export function char2twemojiFilePath(char: string): string { | ||
let codes = Array.from(char).map(x => x.codePointAt(0)?.toString(16)); | ||
if (!codes.includes('200d')) codes = codes.filter(x => x !== 'fe0f'); | ||
codes = codes.filter(x => x && x.length); | ||
const fileName = codes.join('-'); | ||
return `${twemojiSvgBase}/${fileName}.svg`; | ||
} | ||
|
||
export function char2fluentEmojiFilePath(char: string): string { | ||
let codes = Array.from(char).map(x => x.codePointAt(0)?.toString(16)); | ||
// Fluent Emojiは国旗非対応 https://github.com/microsoft/fluentui-emoji/issues/25 | ||
if (codes[0]?.startsWith('1f1')) return char2twemojiFilePath(char); | ||
if (!codes.includes('200d')) codes = codes.filter(x => x !== 'fe0f'); | ||
codes = codes.filter(x => x && x.length); | ||
const fileName = codes.map(x => x!.padStart(4, '0')).join('-'); | ||
return `${fluentEmojiPngBase}/${fileName}.png`; | ||
} |
This file was deleted.
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