Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/frontend/src/env/dapp-descriptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,7 @@
"usesInternetIdentity": true,
"stats": "",
"logo": "/images/dapps/icpindex-logo.webp",
"screenshots": ["/images/dapps/icpindex-screenshot.webp"],
"carousel": {
"text": "dapps.descriptions.icpindex.carousel.text",
"callToAction": "dapps.descriptions.icpindex.carousel.call_to_action"
}
"screenshots": ["/images/dapps/icpindex-screenshot.webp"]
},
{
"id": "waterneuron",
Expand Down
23 changes: 0 additions & 23 deletions src/frontend/src/lib/components/dapps/DappsCarousel.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<script lang="ts">
import { isNullish, nonNullish } from '@dfinity/utils';
import { dAppDescriptions } from '$env/dapp-descriptions.env';
import { EARNING_ENABLED } from '$env/earning';
import { rewardCampaigns, FEATURED_REWARD_CAROUSEL_SLIDE_ID } from '$env/reward-campaigns.env';
import type { RewardCampaignDescription } from '$env/types/env-reward';
import { addUserHiddenDappId } from '$lib/api/backend.api';
import Carousel from '$lib/components/carousel/Carousel.svelte';
import DappsCarouselSlide from '$lib/components/dapps/DappsCarouselSlide.svelte';
import { stakeProvidersConfig } from '$lib/config/stake.config';
import { AppPath } from '$lib/constants/routes.constants';
import { authIdentity } from '$lib/derived/auth.derived';
import {
userProfileLoaded,
Expand All @@ -21,7 +18,6 @@
CarouselSlideOisyDappDescription,
OisyDappDescription
} from '$lib/types/dapp-description';
import { StakeProvider } from '$lib/types/stake';
import { filterCarouselDapps } from '$lib/utils/dapps.utils';
import { emit } from '$lib/utils/events.utils';
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils';
Expand Down Expand Up @@ -61,20 +57,6 @@
: undefined
);

let harvestAutopilotSlide = $derived(
EARNING_ENABLED
? ({
id: stakeProvidersConfig[StakeProvider.HARVEST_AUTOPILOTS].name,
carousel: {
text: $i18n.stake.text.harvest_autopilot_carousel_slide_title,
callToAction: $i18n.stake.text.harvest_autopilot_carousel_slide_cta
},
logo: stakeProvidersConfig[StakeProvider.HARVEST_AUTOPILOTS].logo,
name: stakeProvidersConfig[StakeProvider.HARVEST_AUTOPILOTS].name
} as CarouselSlideOisyDappDescription)
: undefined
);

/*
TODO: rename and adjust DappsCarousel for different data sources (not only dApps descriptions).
1. The component now displays data from difference sources - featured airdrop and dApps
Expand All @@ -86,7 +68,6 @@
filterCarouselDapps({
dAppDescriptions: [
...(nonNullish(featureAirdropSlide) ? [featureAirdropSlide] : []),
...(nonNullish(harvestAutopilotSlide) ? [harvestAutopilotSlide] : []),
...dAppDescriptions
],
hiddenDappsIds
Expand Down Expand Up @@ -144,10 +125,6 @@
: undefined}
{dappsCarouselSlide}
onCloseCarouselSlide={closeSlide}
pagePath={nonNullish(harvestAutopilotSlide) &&
harvestAutopilotSlide.id === dappsCarouselSlide.id
? AppPath.Earn
: undefined}
/>
{/each}
</Carousel>
Expand Down
18 changes: 8 additions & 10 deletions src/frontend/src/lib/i18n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@
"website": "صورة $dAppName"
},
"categories": {
"aa_new": "",
"ab_icp": "",
"ai": "",
"aa_new": "مضاف حديثًا",
"ab_icp": "ICP",
"ai": "الذكاء الاصطناعي",
"dex": "DEX",
"game": "لعبة",
"lending": "",
"nft": "",
"rwa": "",
"social": "",
"lending": "الإقراض",
"nft": "NFT",
"rwa": "RWA",
"social": "اجتماعي",
"staking": "التخزين",
"tools": "أدوات"
},
Expand Down Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "",
"full_history": "",
"recent_history": "",
"harvest_autopilot_carousel_slide_title": "",
"harvest_autopilot_carousel_slide_cta": ""
"recent_history": ""
},
"error": {
"unexpected_error_on_withdraw": "",
Expand Down
14 changes: 6 additions & 8 deletions src/frontend/src/lib/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@
"website": "Obrázek $dAppName"
},
"categories": {
"aa_new": "",
"ab_icp": "",
"aa_new": "Nedávno přidané",
"ab_icp": "ICP",
"ai": "AI",
"dex": "DEX",
"game": "Hra",
"lending": "",
"lending": "Lending",
"nft": "NFT",
"rwa": "",
"social": "",
"rwa": "RWA",
"social": "Sociální",
"staking": "Staking",
"tools": "Nářadí"
},
Expand Down Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "Zdá se, že jste zatím nestakovali žádné tokeny",
"full_history": "Zobrazit celou historii",
"recent_history": "Zavřít celou historii",
"harvest_autopilot_carousel_slide_title": "Vydělávejte v OISY s Harvest Autopilot Yield Farming",
"harvest_autopilot_carousel_slide_cta": "Zjistit více"
"recent_history": "Zavřít celou historii"
},
"error": {
"unexpected_error_on_withdraw": "Při výběru tokenů došlo k chybě.",
Expand Down
16 changes: 7 additions & 9 deletions src/frontend/src/lib/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,16 @@
"website": "Bild von $dAppName"
},
"categories": {
"aa_new": "",
"ab_icp": "",
"aa_new": "Neu hinzugefügt",
"ab_icp": "ICP",
"ai": "KI",
"dex": "DEX",
"game": "Spiele",
"lending": "",
"lending": "Lending",
"nft": "NFT",
"rwa": "",
"social": "",
"staking": "Beteiligungen",
"rwa": "RWA",
"social": "Soziales",
"staking": "Staking",
"tools": "Tools"
},
"descriptions": {
Expand Down Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "Sie haben noch keine Token gestakt",
"full_history": "Vollständige Historie anzeigen",
"recent_history": "Vollständige Historie schließen",
"harvest_autopilot_carousel_slide_title": "Mit Harvest Autopilot Yield Farming in OISY verdienen",
"harvest_autopilot_carousel_slide_cta": "Mehr erfahren"
"recent_history": "Vollständige Historie schließen"
},
"error": {
"unexpected_error_on_withdraw": "Beim Abheben der Token ist ein Fehler aufgetreten.",
Expand Down
4 changes: 1 addition & 3 deletions src/frontend/src/lib/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "It looks like you haven't staked any tokens yet",
"full_history": "Show full history",
"recent_history": "Close full history",
"harvest_autopilot_carousel_slide_title": "Earn in OISY with Harvest Autopilot Yield Farming",
"harvest_autopilot_carousel_slide_cta": "Learn more"
"recent_history": "Close full history"
},
"error": {
"unexpected_error_on_withdraw": "Something went wrong while withdrawing tokens.",
Expand Down
16 changes: 7 additions & 9 deletions src/frontend/src/lib/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@
"website": "Imagen de $dAppName"
},
"categories": {
"aa_new": "",
"ab_icp": "",
"aa_new": "Añadido recientemente",
"ab_icp": "ICP",
"ai": "IA",
"dex": "DEX",
"game": "Juego",
"lending": "",
"nft": "",
"rwa": "",
"social": "",
"lending": "Lending",
"nft": "NFT",
"rwa": "RWA",
"social": "Social",
"staking": "Staking",
"tools": "Herramientas"
},
Expand Down Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "Parece que aún no has hecho staking de ningún token",
"full_history": "Mostrar historial completo",
"recent_history": "Cerrar historial completo",
"harvest_autopilot_carousel_slide_title": "Gana en OISY con Harvest Autopilot Yield Farming",
"harvest_autopilot_carousel_slide_cta": "Saber más"
"recent_history": "Cerrar historial completo"
},
"error": {
"unexpected_error_on_withdraw": "Algo salió mal al retirar los tokens.",
Expand Down
14 changes: 6 additions & 8 deletions src/frontend/src/lib/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@
"website": "Image de $dAppName"
},
"categories": {
"aa_new": "",
"ab_icp": "",
"aa_new": "Récemment ajoutés",
"ab_icp": "ICP",
"ai": "IA",
"dex": "DEX",
"game": "Jeu",
"lending": "",
"lending": "Lending",
"nft": "NFT",
"rwa": "",
"social": "",
"rwa": "RWA",
"social": "Social",
"staking": "Staking",
"tools": "Outils"
},
Expand Down Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "Il semble que vous n'ayez encore staké aucun token",
"full_history": "Afficher l'historique complet",
"recent_history": "Fermer l'historique complet",
"harvest_autopilot_carousel_slide_title": "Gagnez dans OISY avec Harvest Autopilot Yield Farming",
"harvest_autopilot_carousel_slide_cta": "En savoir plus"
"recent_history": "Fermer l'historique complet"
},
"error": {
"unexpected_error_on_withdraw": "Une erreur s'est produite lors du retrait des tokens.",
Expand Down
18 changes: 8 additions & 10 deletions src/frontend/src/lib/i18n/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@
"website": "$dAppName की छवि"
},
"categories": {
"aa_new": "",
"ab_icp": "",
"ai": "",
"aa_new": "हाल ही में जोड़ा गया",
"ab_icp": "ICP",
"ai": "एआई",
"dex": "DEX",
"game": "गेम",
"lending": "",
"nft": "",
"rwa": "",
"social": "",
"lending": "लेंडिंग",
"nft": "NFT",
"rwa": "RWA",
"social": "सोशल",
"staking": "स्टेकिंग",
"tools": "टूल्स"
},
Expand Down Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "ऐसा लगता है कि आपने अभी तक कोई टोकन स्टेक नहीं किया है",
"full_history": "पूरा इतिहास दिखाएं",
"recent_history": "पूरा इतिहास बंद करें",
"harvest_autopilot_carousel_slide_title": "Harvest Autopilot Yield Farming के साथ OISY में कमाएं",
"harvest_autopilot_carousel_slide_cta": "और जानें"
"recent_history": "पूरा इतिहास बंद करें"
},
"error": {
"unexpected_error_on_withdraw": "टोकन निकालते समय कुछ गलत हो गया।",
Expand Down
18 changes: 8 additions & 10 deletions src/frontend/src/lib/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@
"website": "Immagine di $dAppName"
},
"categories": {
"aa_new": "",
"ab_icp": "",
"ai": "",
"aa_new": "Aggiunti di recente",
"ab_icp": "ICP",
"ai": "IA",
"dex": "DEX",
"game": "Gioco",
"lending": "",
"nft": "",
"rwa": "",
"social": "",
"lending": "Lending",
"nft": "NFT",
"rwa": "RWA",
"social": "Social",
"staking": "Staking",
"tools": "Strumenti"
},
Expand Down Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "Sembra che tu non abbia ancora messo in staking nessun token",
"full_history": "Mostra cronologia completa",
"recent_history": "Chiudi cronologia completa",
"harvest_autopilot_carousel_slide_title": "Guadagna in OISY con Harvest Autopilot Yield Farming",
"harvest_autopilot_carousel_slide_cta": "Scopri di più"
"recent_history": "Chiudi cronologia completa"
},
"error": {
"unexpected_error_on_withdraw": "Si è verificato un errore durante il prelievo dei token.",
Expand Down
14 changes: 6 additions & 8 deletions src/frontend/src/lib/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@
"website": "$dAppNameの画像"
},
"categories": {
"aa_new": "",
"ab_icp": "",
"aa_new": "最近追加",
"ab_icp": "ICP",
"ai": "AI",
"dex": "DEX",
"game": "ゲーム",
"lending": "",
"lending": "レンディング",
"nft": "NFT",
"rwa": "",
"social": "",
"rwa": "RWA",
"social": "ソーシャル",
"staking": "ステーキング",
"tools": "ツール"
},
Expand Down Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "まだトークンをステークしていないようです",
"full_history": "全履歴を表示",
"recent_history": "全履歴を閉じる",
"harvest_autopilot_carousel_slide_title": "Harvest Autopilot Yield FarmingでOISYを稼ぐ",
"harvest_autopilot_carousel_slide_cta": "詳しく見る"
"recent_history": "全履歴を閉じる"
},
"error": {
"unexpected_error_on_withdraw": "トークンの引き出し中にエラーが発生しました。",
Expand Down
8 changes: 3 additions & 5 deletions src/frontend/src/lib/i18n/ko-KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@
"ai": "AI",
"dex": "DEX",
"game": "게임",
"lending": "",
"lending": "렌딩",
"nft": "NFT",
"rwa": "RWA",
"social": "",
"social": "소셜",
"staking": "스테이킹",
"tools": "도구"
},
Expand Down Expand Up @@ -2254,9 +2254,7 @@
"title_empty_3": "",
"description_empty": "아직 스테이킹한 토큰이 없는 것 같습니다",
"full_history": "전체 내역 보기",
"recent_history": "전체 내역 닫기",
"harvest_autopilot_carousel_slide_title": "Harvest Autopilot Yield Farming으로 OISY에서 수익 창출",
"harvest_autopilot_carousel_slide_cta": "자세히 알아보기"
"recent_history": "전체 내역 닫기"
},
"error": {
"unexpected_error_on_withdraw": "토큰 출금 중 오류가 발생했습니다.",
Expand Down
Loading
Loading