Compare commits

...

3 commits

4 changed files with 4 additions and 6 deletions

5
src/app.d.ts vendored
View file

@ -1,10 +1,5 @@
declare global { declare global {
namespace App { namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface Platform {}
interface Route { interface Route {
label: string; label: string;
icon: string; icon: string;

View file

@ -2,6 +2,7 @@
const icons: Record<string, string> = { const icons: Record<string, string> = {
none: 'material-symbols:link', none: 'material-symbols:link',
'steamcommunity.com': 'simple-icons:steam', 'steamcommunity.com': 'simple-icons:steam',
'steampowered.com': 'simple-icons:steam',
'twitter.com': 'simple-icons:x', 'twitter.com': 'simple-icons:x',
'x.com': 'simple-icons:x', 'x.com': 'simple-icons:x',
'github.com': 'simple-icons:github', 'github.com': 'simple-icons:github',
@ -44,7 +45,9 @@ const specialResolvers: Record<string, (url: URL) => string> = {
// Игнорируем имя пользователя // Игнорируем имя пользователя
'bsky.app': (url) => 'bsky.app', 'bsky.app': (url) => 'bsky.app',
'bsky.social': (url) => 'bsky.social', 'bsky.social': (url) => 'bsky.social',
'itch.io': (url) => 'itch.io' 'itch.io': (url) => 'itch.io',
'steamcommunity.com': (url) => 'steamcommunity.com',
'steampowered.com': (url) => 'steampowered.com',
} }
function getIconFromUrl(url: URL): string | undefined { function getIconFromUrl(url: URL): string | undefined {

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB