feat(transform): transform GitHub and Telegram links

This commit is contained in:
taskylizard 2024-08-05 19:19:30 +00:00
parent a21b3e9e92
commit dc08d06032
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
12 changed files with 39 additions and 13 deletions

View file

@ -368,5 +368,20 @@ function transformLinks(text: string): string {
/\[Discord\]\(([^\)]*?)\)/gm,
'<a target="_blank" href="$1"><div alt="Discord" class="i-carbon:logo-discord" /></a>'
)
// Transform GitHub links to icons
.replace(
/\[GitHub\]\(([^\)]*?)\)/gm,
'<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github mb-1" /></a>'
)
// Fallback for GitHub
.replace(
/\[Github\]\(([^\)]*?)\)/gm,
'<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github mb-1" /></a>'
)
// Transform Telegram links to icons
.replace(
/\[Telegram\]\(([^\)]*?)\)/gm,
'<a target="_blank" href="$1"><div alt="Telegram" class="i-mdi:telegram" /></a>'
)
return _text
}

View file

@ -33,7 +33,7 @@
* ⭐ **[yokoffing's Recommended Filters](https://github.com/yokoffing/filterlists)**
* ⭐ **[LegitimateURLShortener](https://github.com/DandelionSprout/adfilt/blob/master/LegitimateURLShortener.txt)**
* ⭐ **[FMHY Filterlist](https://windowsaurora.github.io/FMHYFilterlist/site/index.html)** - Unsafe Sites Filter / [Github](https://github.com/WindowsAurora/FMHYFilterlist/)
* ⭐ **[FMHY Filterlist](https://windowsaurora.github.io/FMHYFilterlist/site/index.html)** - Unsafe Sites Filter / [GitHub](https://github.com/WindowsAurora/FMHYFilterlist/)
* [FilterLists](https://filterlists.com/) Filter and host lists directory
* [Adbox](http://raymondhill.net/ublock/adbox.html) - Test Filters
* [DandelionSprout adfilt](https://github.com/DandelionSprout/adfilt)

View file

@ -89,7 +89,7 @@
* [Mistral](https://chat.mistral.ai/chat) - Self-Hosted
* [Ollama](https://ollama.ai/) - Self-Hosted
* [LMStudio](https://lmstudio.ai/) - Self-Hosted
* [GPT4All](https://www.nomic.ai/gpt4all) - Self-Hosted / [Github](https://github.com/nomic-ai/gpt4all) / [Discord](https://discord.com/invite/mGZE39AS3e)
* [GPT4All](https://www.nomic.ai/gpt4all) - Self-Hosted / [GitHub](https://github.com/nomic-ai/gpt4all) / [Discord](https://discord.com/invite/mGZE39AS3e)
* [LlamaFile](https://github.com/Mozilla-Ocho/llamafile) - Run LLM with Single Files
* [Generative AI for Beginners](https://microsoft.github.io/generative-ai-for-beginners/) - Generative AI Guides
@ -158,7 +158,7 @@
## ▷ ChatGPT Prompts
* 🌐 **[Jailbreak Listings](https://rentry.org/jb-listing)** - Prompt / Jailbreak Lists
* ⭐ **[Awesome ChatGPT Prompts](https://prompts.chat/)** - Prompt Directory / [Github](https://github.com/f/awesome-chatgpt-prompts)
* ⭐ **[Awesome ChatGPT Prompts](https://prompts.chat/)** - Prompt Directory / [GitHub](https://github.com/f/awesome-chatgpt-prompts)
* ⭐ **[BlackFriday GPTs Prompts](https://github.com/friuns2/BlackFriday-GPTs-Prompts)** - Prompt Directory
* ⭐ **[Leaked Prompts](https://github.com/linexjlin/GPTs)** - Prompt Directory
* ⭐ **[Prompt Engineering Guide](https://www.promptingguide.ai)**, [LearnPrompting](https://learnprompting.org/docs/intro), [OpenAI Guide](https://platform.openai.com/docs/guides/prompt-engineering), [Claude Guide](https://docs.anthropic.com/claude/docs/prompt-engineering) or [LearningPrompt](https://learningprompt.wiki/) - Prompting Guides
@ -284,7 +284,7 @@
* [Yodayo](https://yodayo.com/) / 15 Daily
* [Maze.guru](https://maze.guru/gallery) / 12 Daily
* [DreamLike](https://dreamlike.art) / 12 Daily
* [Craiyon](https://www.craiyon.com/) / 10 Daily / [Github](https://github.com/borisdayma/dalle-mini) / [Colab](https://colab.research.google.com/github/borisdayma/dalle-mini/blob/main/tools/inference/inference_pipeline.ipynb)
* [Craiyon](https://www.craiyon.com/) / 10 Daily / [GitHub](https://github.com/borisdayma/dalle-mini) / [Colab](https://colab.research.google.com/github/borisdayma/dalle-mini/blob/main/tools/inference/inference_pipeline.ipynb)
* [POKEIT](https://pokeit.ai/) / 10 Daily
* [PixAI](https://pixai.art/) / 10 Daily
* [Krea](https://www.krea.ai/home) / [Discord](https://discord.gg/rJurUAR8Kz)
@ -382,7 +382,7 @@
* ⭐ **[Uberduck](https://uberduck.ai/)**
* ⭐ **[WhisperSpeech](https://huggingface.co/spaces/collabora/WhisperSpeech)** - [Discord](https://discord.com/invite/FANw4rHD5E)
* ⭐ **[Tortoise TTS](https://github.com/neonbjb/tortoise-tts)**
* ⭐ **[Bark](https://huggingface.co/spaces/suno/bark)** - [Github](https://github.com/suno-ai/bark) / [Discord](https://discord.com/invite/J2B2vsjKuE)
* ⭐ **[Bark](https://huggingface.co/spaces/suno/bark)** - [GitHub](https://github.com/suno-ai/bark) / [Discord](https://discord.com/invite/J2B2vsjKuE)
* [Balabolka](https://www.cross-plus-a.com/bportable.htm)
* [ttsMP3](https://ttsmp3.com/)
* [Vall-e](https://github.com/enhuiz/vall-e)

View file

@ -494,7 +494,7 @@
* [Siril](https://siril.org/) - Astronomical Image Processor
* [ESAsky](https://sky.esa.int/) - Public Astronomical Data
* [Stellarium-Web](https://stellarium-web.org/) or [Stellarium](https://stellarium.org/) - Virtual Stellariums
* [WorldwideTelescope](https://worldwidetelescope.org/) - Interactive Telescope Data / [Home Page](https://worldwidetelescope.org/home/) / [Github](https://github.com/WorldWideTelescope)
* [WorldwideTelescope](https://worldwidetelescope.org/) - Interactive Telescope Data / [Home Page](https://worldwidetelescope.org/home/) / [GitHub](https://github.com/WorldWideTelescope)
* [ESA Hubble](https://esahubble.org/) or [HubbleSite](https://hubblesite.org/) - Hubble Telescope Images
* [Webb Tele Scope](https://webbtelescope.org/), [James Webb Space Telescope](https://jwst.nasa.gov/index.html) or [ESAWebb](https://esawebb.org/) - Webb Space Telescope Sites
* [Webb Compare](https://www.webbcompare.com/) - Webb / Hubble Images

View file

@ -689,7 +689,7 @@
## ▷ Self-Hosted Galleries
* 🌐 **[FOSS Photo Libraries](https://meichthys.github.io/foss_photo_libraries/)**
* [Immich](https://immich.app/) / [Github](https://github.com/immich-app/immich)
* [Immich](https://immich.app/) / [GitHub](https://github.com/immich-app/immich)
* [Damselfly](https://github.com/Webreaper/Damselfly)
* [HomeGallery](https://home-gallery.org/)
* [LibrePhotos](https://github.com/LibrePhotos/librephotos)

View file

@ -140,7 +140,7 @@
* [Bismuth](https://bismuth-forge.github.io/bismuth/) - KDE5 Tiling Extension / [GitHub](https://github.com/Bismuth-Forge/bismuth)
* [Ghostwriter](https://ghostwriter.kde.org/) or [Remarkable](https://remarkableapp.github.io/) - Markdown Editor
* [Gedit](https://wiki.gnome.org/Apps/Gedit), [Geany](https://www.geany.org/), [Leafpad](http://tarot.freeshell.org/leafpad/), [NotepadNext](https://github.com/dail8859/NotepadNext), [taskbook](https://github.com/klaudiosinani/taskbook), [Notepadqq](https://github.com/notepadqq/notepadqq), [Featherpad](https://github.com/tsujan/FeatherPad) or [nb](https://xwmx.github.io/nb) / [GitHub](https://github.com/xwmx/nb) - Text Editor / Note Apps
* [TextPieces](https://gitlab.com/liferooter/textpieces) - Quick Text Transformations / [Github](https://github.com/liferooter/textpieces)
* [TextPieces](https://gitlab.com/liferooter/textpieces) - Quick Text Transformations / [GitHub](https://github.com/liferooter/textpieces)
* [ly](https://github.com/fairyglade/ly) - Display Manager with Console UI
* [GammaStep](https://gitlab.com/chinstrap/gammastep) - Adjust Screen Temperature
* [Weylus](https://github.com/H-M-H/Weylus) - Use Mobile Device as Trackpad

View file

@ -39,7 +39,7 @@
## ▷ Site / Tool Indexes
* ⭐ **[r/Piracy Megathread](https://www.reddit.com/r/Piracy/wiki/megathread)** - Piracy Index / [Mirror](https://rentry.co/megathread)
* ⭐ **[Awesome Piracy](https://shakil-shahadat.github.io/awesome-piracy/)** - Piracy Index / [Github](https://github.com/Shakil-Shahadat/awesome-piracy)
* ⭐ **[Awesome Piracy](https://shakil-shahadat.github.io/awesome-piracy/)** - Piracy Index / [GitHub](https://github.com/Shakil-Shahadat/awesome-piracy)
* ⭐ **[Ripped](https://ripped.guide/)** - Piracy Index / [Discord](https://discord.ripped.guide/)
* ⭐ **[r/PiratedGames Megathread](https://rentry.org/pgames)** - Game Piracy Index / [Discord](https://discord.gg/dZWwhUy)
* ⭐ **[CS.RIN Mega](https://cs.rin.ru/forum/viewtopic.php?f=10&t=95461)** - Game Piracy Index

View file

@ -971,7 +971,7 @@
* ⭐ **[arch1ve](https://rentry.org/arch1ve)** or [Borrowing Picture Books](https://redd.it/fm1xpw) - Download Borrow Only Archive.org Books / [Script](https://redd.it/ofcqds)
* ⭐ **[Kindle Comic Converter](https://github.com/ciromattia/kcc)** - Multi-Format Converter
* ⭐ **[papeer](https://papeer.tech/)** or [epub-creator](https://github.com/NiklasGollenstede/epub-creator) - Webpage to EPUB Converter
* [ebook-converter-bot](https://t.me/ebook_converter_bot) / [Github](https://github.com/yshalsager/ebook-converter-bot) - Telegram Ebook Converter
* [ebook-converter-bot](https://t.me/ebook_converter_bot) / [GitHub](https://github.com/yshalsager/ebook-converter-bot) - Telegram Ebook Converter
* [CrowBook](https://github.com/lise-henry/crowbook) - Markdown to EPUB Converter
* [MD2PDF](https://md2pdf.netlify.app/) - Markdown to PDF Converter
* [Remove Kindle DRM](https://itsfoss.com/calibre-remove-drm-kindle/) - Remove DRM from Kindle

View file

@ -65,7 +65,7 @@
## ▷ Discord Clients
* 🌐 **[Discord3rdParties](https://github.com/Discord-Client-Encyclopedia-Management/Discord3rdparties)** - Discord Clients Index
* ⭐ **[Vencord](https://vencord.dev/)** - Discord Client Mod / [Github](https://github.com/Vendicated/Vencord) / [Desktop Client](https://github.com/Vencord/Vesktop)
* ⭐ **[Vencord](https://vencord.dev/)** - Discord Client Mod / [GitHub](https://github.com/Vendicated/Vencord) / [Desktop Client](https://github.com/Vencord/Vesktop)
* ⭐ **[BetterDiscord](https://betterdiscord.app/)** - Discord Client Mod / [GitHub](https://github.com/BetterDiscord/BetterDiscord)
* ⭐ **BetterDiscord Tools** - [Plugins](https://betterdiscord.app/plugins) / [Banned Plugins](https://rentry.co/BDBannedPlugins), [2](https://github.com/mov-ebx/BannedBetterDiscordPlugins) / [Support](https://discord.gg/0Tmfo5ZbORCRqbAd) / [Nitro](https://github.com/riolubruh/YABDP4Nitro) / [Re-install Guide](https://gist.github.com/Knewest/ee59d3960e18e6d813c9221b54b36ab1)
* ⭐ **[OpenAsar](https://openasar.dev/)** - Improved Discord Desktop's app.asar / [GitHub](https://github.com/GooseMod/OpenAsar)
@ -307,7 +307,7 @@
* [telegram-download-daemon](https://github.com/alfem/telegram-download-daemon/) - Download Large Telegram Files
* [convrt_bot](https://t.me/convrt_bot), [FileConvertBot](https://t.me/FileConvertBot), [newfileconverterbot](https://t.me/newfileconverterbot), [SmartConverter_bot](https://t.me/SmartConverter_bot), [cloud_convert_bot](https://t.me/cloud_convert_bot), [wololopdfbot](https://t.me/wololopdfbot), [pdfbot](https://t.me/pdfbot) or [Gpdfbot](https://t.me/Gpdfbot) - File Converters
* [ILovePDF](https://github.com/nabilanavab/ilovepdf) - Telegram File to PDF Converter
* [Unzip Bot](https://t.me/unzip_edm115bot) / [Github](https://github.com/EDM115/unzip-bot) - File Extractor / Unzipper
* [Unzip Bot](https://t.me/unzip_edm115bot) / [GitHub](https://github.com/EDM115/unzip-bot) - File Extractor / Unzipper
***

View file

@ -42,7 +42,7 @@
* [Cinema Deck](https://cinemadeck.com/) - Movies / TV / Anime / 4K / 1080p / Ad-Free / [Discord](https://l.cinemadeck.com/discord)
* [Yesmovies.pm](https://yesmovies.pm/) - Movies / TV / Anime / 1080p
* [TVids](https://www.tvids.net/), [2](https://watch-tvseries.net/) - Movies / TV / Anime / 1080p
* [Nova](https://novastream.top/) - Movies / TV / 1080p / [Github](https://github.com/ambr0sial/nova/)
* [Nova](https://novastream.top/) - Movies / TV / 1080p / [GitHub](https://github.com/ambr0sial/nova/)
* [HollyMovieHD](https://hollymoviehd.cc/), [2](https://yeshd.net/), [3](https://novamovie.net/) - Movies / TV / Anime / 1080p / [Clones](https://hollymoviehd-official.com/)
* [ProjectFreeTV](https://projectfreetv.sx/) - Movies / TV / 1080p
* [YassFlix](https://yassflix.live/) - Movies / TV / Anime / 1080p / Ad-Free

View file

@ -38,6 +38,7 @@
"@biomejs/biome": "^1.8.3",
"@iconify-json/carbon": "^1.1.36",
"@iconify-json/heroicons-solid": "^1.1.11",
"@iconify-json/mdi": "^1.1.68",
"@iconify-json/twemoji": "^1.1.15",
"@taskylizard/biome-config": "^1.0.1",
"@types/node": "^20.14.11",

10
pnpm-lock.yaml generated
View file

@ -63,6 +63,9 @@ importers:
'@iconify-json/heroicons-solid':
specifier: ^1.1.11
version: 1.1.11
'@iconify-json/mdi':
specifier: ^1.1.68
version: 1.1.68
'@iconify-json/twemoji':
specifier: ^1.1.15
version: 1.1.15
@ -870,6 +873,9 @@ packages:
'@iconify-json/heroicons-solid@1.1.11':
resolution: {integrity: sha512-Nzhjs8voo4d+gcrfhlY/F0bRonEmLHT1+DeD2nYubvAF151pxXPqTS9bRB49Hqpdxl1l9LS2VTPtQPRypj/csQ==}
'@iconify-json/mdi@1.1.68':
resolution: {integrity: sha512-7//TKCiXLU6kNWeOJRTBbisofVO7rF1sD1TZTL4/V9nqlmVNczQ5IOY0GgKOTsitkcTnX9GXgrgbjw3OI5B69w==}
'@iconify-json/twemoji@1.1.15':
resolution: {integrity: sha512-ze2CAOwIWBKIP6ih6qMDItasVjRicktl2Qr3/ohZSMToAHm9z3Q6HCwE48eT0+D+uFpGBlNRQ22HHyE5izyhDg==}
@ -3962,6 +3968,10 @@ snapshots:
dependencies:
'@iconify/types': 2.0.0
'@iconify-json/mdi@1.1.68':
dependencies:
'@iconify/types': 2.0.0
'@iconify-json/twemoji@1.1.15':
dependencies:
'@iconify/types': 2.0.0