feat: Added memes category

This commit is contained in:
florian 2024-07-16 11:38:05 +02:00
parent 21dba9853d
commit 531eaf276b
7 changed files with 4572 additions and 26 deletions

View File

@ -1,3 +1,3 @@
VITE_APP_NAME=slidestr.net VITE_APP_NAME=slidestr.net
VITE_PUBLIC_URL=https://slidestr.net VITE_PUBLIC_URL=https://slidestr.net
VITE_IMAGE_PROXY=https://imgproxy.slidestr.net VITE_IMAGE_PROXY=https://imgproxy.apps.slidestr.net

4528
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -12,36 +12,36 @@
"analyze": "vite-bundle-visualizer" "analyze": "vite-bundle-visualizer"
}, },
"dependencies": { "dependencies": {
"@nostr-dev-kit/ndk": "^2.8.1", "@nostr-dev-kit/ndk": "^2.8.2",
"@nostr-dev-kit/ndk-cache-dexie": "^2.4.1", "@nostr-dev-kit/ndk-cache-dexie": "^2.4.2",
"@tanstack/react-query": "^5.32.0", "@tanstack/react-query": "^5.50.1",
"bech32": "^2.0.0", "bech32": "^2.0.0",
"jotai": "^2.8.0", "jotai": "^2.8.4",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"nostr-tools": "^2.5.0", "nostr-tools": "^2.7.0",
"react": "^18.2.0", "react": "^18.3.1",
"react-dom": "^18.2.0", "react-dom": "^18.3.1",
"react-helmet": "^6.1.0", "react-helmet": "^6.1.0",
"react-lazy-load": "^4.0.1", "react-lazy-load": "^4.0.1",
"react-router-dom": "^6.23.0", "react-router-dom": "^6.24.1",
"react-swipeable": "^7.0.1" "react-swipeable": "^7.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/lodash": "^4.17.0", "@types/lodash": "^4.17.6",
"@types/react": "^18.2.79", "@types/react": "^18.3.3",
"@types/react-dom": "^18.2.25", "@types/react-dom": "^18.3.0",
"@types/react-helmet": "^6.1.11", "@types/react-helmet": "^6.1.11",
"@types/react-swipeable": "^5.2.0", "@types/react-swipeable": "^5.2.0",
"@typescript-eslint/eslint-plugin": "7.7.1", "@typescript-eslint/eslint-plugin": "7.15.0",
"@typescript-eslint/parser": "^7.7.1", "@typescript-eslint/parser": "^7.15.0",
"@vitejs/plugin-react": "^4.2.1", "@vitejs/plugin-react": "^4.3.1",
"@webbtc/webln-types": "^3.0.0", "@webbtc/webln-types": "^3.0.0",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.6", "eslint-plugin-react-refresh": "^0.4.7",
"prettier": "^3.2.5", "prettier": "^3.3.2",
"typescript": "^5.4.5", "typescript": "^5.5.3",
"vite": "^5.2.10", "vite": "^5.3.3",
"vite-bundle-visualizer": "^1.1.0" "vite-bundle-visualizer": "^1.2.1"
} }
} }

BIN
public/images/memes.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 KiB

View File

@ -110,10 +110,22 @@ export const topics: { [key: string]: Topic } = {
'streetphotography', 'streetphotography',
], ],
}, },
memes: { name: 'Memes', tags: ['meme', 'memes', 'memestr', 'nostrmemes'] },
animals: { name: 'Animals', tags: ['catstr', 'dogstr', 'animal', 'animals', 'bird', 'birds', 'pets'] }, animals: { name: 'Animals', tags: ['catstr', 'dogstr', 'animal', 'animals', 'bird', 'birds', 'pets'] },
lifestyle: { lifestyle: {
name: 'Lifestyle', name: 'Lifestyle',
tags: ['fashion', 'flowerstr', 'style', 'weedstr', 'happy', 'life', 'love', 'tattoo', 'tattoowomen'], tags: [
'fashion',
'flowerstr',
'bloomscrolling',
'style',
'weedstr',
'happy',
'life',
'love',
'tattoo',
'tattoowomen',
],
}, },
travel: { travel: {
name: 'Travel', name: 'Travel',
@ -166,7 +178,10 @@ export const topics: { [key: string]: Topic } = {
'yumstr', 'yumstr',
], ],
}, },
gardenandfarm: { name: 'Gardening und Farming', tags: ['gardening', 'gardenstr', 'nature', 'farming', 'farmstr'] }, gardenandfarm: {
name: 'Gardening und Farming',
tags: ['gardening', 'gardenstr', 'nature', 'farming', 'farmstr', 'flowerstr', 'bloomscrolling'],
},
bitcoin: { name: '₿itcoin', tags: ['bitcoin', 'plebchain', 'hfsp', 'btfd', 'buythedip'] }, bitcoin: { name: '₿itcoin', tags: ['bitcoin', 'plebchain', 'hfsp', 'btfd', 'buythedip'] },
nostr: { name: 'Nostr', tags: ['coffeechain', 'nostr', 'zapathon', 'grownostr', 'freedom', 'purple'] }, nostr: { name: 'Nostr', tags: ['coffeechain', 'nostr', 'zapathon', 'grownostr', 'freedom', 'purple'] },
bitcoinatlantis: { bitcoinatlantis: {
@ -314,6 +329,7 @@ export const adultNPubs = [
'npub1m5fdz9gqa2qeudpy47zllmv9gqe3zzj44dkt9lh2kes3mlex7e6se348vy', // Marble Sculture 'npub1m5fdz9gqa2qeudpy47zllmv9gqe3zzj44dkt9lh2kes3mlex7e6se348vy', // Marble Sculture
'npub1mgusda7ujnyuhhudwkyrp763k4dd9xspktekl0tg5v0j76yph8ssyrfdpm', // anisyia 'npub1mgusda7ujnyuhhudwkyrp763k4dd9xspktekl0tg5v0j76yph8ssyrfdpm', // anisyia
'npub1mlvajfc90xjujssqzsq8q8vyjq7wt5unckvfutznm5tgej4lnh5qka7uvx', // Monica 'npub1mlvajfc90xjujssqzsq8q8vyjq7wt5unckvfutznm5tgej4lnh5qka7uvx', // Monica
'npub1nhh58qjd0yxmmpqqjkf3mu2lzm3scv7jtjjyv3ejenk3xgxewslspew0uf', // Blone AI (nudity)
'npub1nkw853ncf4nmsctujc3hdahwtm03hssrskc2t33qjqedxtpwupfqeukt53', // bpufa 'npub1nkw853ncf4nmsctujc3hdahwtm03hssrskc2t33qjqedxtpwupfqeukt53', // bpufa
'npub1nllxsheh5hpy55rkmkt46lee4m8tk05g8fmp7nf0mu7hhcz3qc4s7m2vsn', // Aria Hikari 'npub1nllxsheh5hpy55rkmkt46lee4m8tk05g8fmp7nf0mu7hhcz3qc4s7m2vsn', // Aria Hikari
'npub1nme4074q6yrqexdn5z625vhvv9j9e2qwwfcgdyg2utffhvdgrxfqn5ztgm', // Ay Papi 'npub1nme4074q6yrqexdn5z625vhvv9j9e2qwwfcgdyg2utffhvdgrxfqn5ztgm', // Ay Papi
@ -348,6 +364,7 @@ export const adultNPubs = [
'npub1ylrnf0xfp9wsmqthxlqjqyqj9yy27pnchjwjq93v3mq66ts7ftjs6x7dcq', // Welcome To The Jungle 'npub1ylrnf0xfp9wsmqthxlqjqyqj9yy27pnchjwjq93v3mq66ts7ftjs6x7dcq', // Welcome To The Jungle
'npub1z0xv9t5w6evrcg860kmgqq5tfj55mz84ta40uszjnfp9uhw2clkq63yrak', // ??? 'npub1z0xv9t5w6evrcg860kmgqq5tfj55mz84ta40uszjnfp9uhw2clkq63yrak', // ???
'npub1zfm8u0rkgng5uflv9a0nl2gr76cuj7mzsltrur6z9zc8jcykyefskxrvhz', // mikee 'npub1zfm8u0rkgng5uflv9a0nl2gr76cuj7mzsltrur6z9zc8jcykyefskxrvhz', // mikee
'npub1q3znd3tumjlpwn8z8uq4f9tvjh2xryc6z5d8vy2kku69a7xgperqfv38ez',
]; ];
export const adultPublicKeys = adultNPubs.map(npub => (nip19.decode(npub).data as string).toLowerCase()); export const adultPublicKeys = adultNPubs.map(npub => (nip19.decode(npub).data as string).toLowerCase());
@ -376,6 +393,9 @@ export const blockedNPubs = [
'npub1srs9l2pex6fmex52ka7ypk8ms2gk47aphgtqrl6yu5ly8hzgg2qqusgkdt', 'npub1srs9l2pex6fmex52ka7ypk8ms2gk47aphgtqrl6yu5ly8hzgg2qqusgkdt',
'npub1ss2z5jpj2sd8cl3dxps7av9kmgtm5epej2yj2vxkx8ckw0gzxwws7l5wea', 'npub1ss2z5jpj2sd8cl3dxps7av9kmgtm5epej2yj2vxkx8ckw0gzxwws7l5wea',
'npub1xfu7047thly6aghl79z97kckkvwfvtcx88n6wq7c2tlng484d8xqv0kuvv', // Erandis Vol 'npub1xfu7047thly6aghl79z97kckkvwfvtcx88n6wq7c2tlng484d8xqv0kuvv', // Erandis Vol
'npub1r668uwlt7vslu306q0saxt656zl45j8n2ztacal40r90dfl3lv3s6eq8wn',
'npub1cw626vmllzzeej5k8zehpnhjevc8stqctstdswmlnqa85xx0gf0scr4qfu',
'npub1krldgpd3tkz4565s69evjk7gee9arkgyz3ts0aekrhc7ru37am8qx43ncv',
]; ];
export const blockedPublicKeys = blockedNPubs.map(npub => (nip19.decode(npub).data as string).toLowerCase()); export const blockedPublicKeys = blockedNPubs.map(npub => (nip19.decode(npub).data as string).toLowerCase());
@ -383,7 +403,7 @@ export const blockedPublicKeys = blockedNPubs.map(npub => (nip19.decode(npub).da
export const spamAccounts = []; export const spamAccounts = [];
export const defaultRelays = [ export const defaultRelays = [
//'ws://localhost:4869', // 'ws://localhost:4869',
'wss://relay.damus.io', 'wss://relay.damus.io',
'wss://relay.nostr.band', 'wss://relay.nostr.band',
'wss://relay.snort.social', 'wss://relay.snort.social',

View File

@ -374,7 +374,6 @@ export const useLink = (type: LinkType, value: string): string | null => {
throw new Error('Ngine context not found'); throw new Error('Ngine context not found');
} }
if (context.links && context.links[type]) { if (context.links && context.links[type]) {
// @ts-expect-error maybe not defined
return context.links[type](value); return context.links[type](value);
} }
return null; return null;

File diff suppressed because one or more lines are too long