Skip to content
Open
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
7 changes: 6 additions & 1 deletion apps/landing/src/data/attestors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ export const ATTESTORS_DATA = [
},


] as Attestor[];
].map((attestor)=>{
return {
...attestor,
profileUrl: attestor.profileUrl || "https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"
}
}) as Attestor[];
22 changes: 16 additions & 6 deletions apps/landing/src/data/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ import { Project } from "../domain/project";

export const PROJECT_DATA = [
{
id: 1,
title: "Translate for Passport website",
id: '1',
title: "Translate for Ethereum Fellowship Study Group",
thumbnailUrl: 'https://blog.ethereum.org/_next/image?url=https%3A%2F%2Fstorage.googleapis.com%2Fethereum-hackmd%2Fupload_d439352ab17d519d44cef02091cbb661.png&w=1080&q=75',
description:
'Gitcoin Passport is a Sybil defense tool that makes it easy to protect your web3 community from bots and bad actors. Connect your wallet below to access the Passport Scorer app, which helps you create a "Scorer" for the application you want to protect from Sybil attackers.',
type: "website",
'The Ethereum Protocol Fellowship (EPF) is a program designed to reduce the barrier to entry for developers interested in working on the core protocol. As core developer (and EPF creator) Piper Merriam likes to say, the door is comically wide open. EPF helps you walk through it.',
type: "video",
locales: [Locale.EN, Locale.ZH_TW],
},

{
id: 2,
id: '2',
title: "Translate for EAS Website",
description:
"Ethereum Attestation Service (EAS) is an infrastructure public good for making attestations onchain or offchain about anything.",
Expand All @@ -20,11 +22,19 @@ export const PROJECT_DATA = [
locales: [Locale.EN, Locale.ZH_TW],
},
{
id: 3,
id: '3',
title: "Translate ETHGlobal Denver Pragama",
description: "Denver playlist",
type: "video",

locales: [Locale.EN, Locale.ZH_TW],
},
{
id: '4',
title: "Translate for Passport website",
description:
'Gitcoin Passport is a Sybil defense tool that makes it easy to protect your web3 community from bots and bad actors. Connect your wallet below to access the Passport Scorer app, which helps you create a "Scorer" for the application you want to protect from Sybil attackers.',
type: "website",
locales: [Locale.EN, Locale.ZH_TW],
},
] as Project[];
43 changes: 40 additions & 3 deletions apps/landing/src/data/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,61 @@ import { Repository } from "../domain/repository";

export const REPO_DATA = [
{
id: 1,
id: "1",
projectid: "1",
title: "Recap 2024",
description: "Youtube video -1.",
type: "video",
locales: [Locale.EN, Locale.ZH_TW],
},
{
id: 2,
id: "2",
projectid: "1",
title: "Atoms, Institutions, Blockchains - Pragma Denver 2024",
description: "Join Josh Stark from the Ethereum Foundation for his talk titled, \"Atoms, Institutions, Blockchains.\"",
type: "video",
locales: [Locale.EN, Locale.ZH_TW],
},
{
id: 3,
id: "3",
projectid: "1",
title: "Global Onchain Economy - Pragma Denver 2024",
description: "Join Jesse Pollak from Base as he discusses the global onchain economy with ETHGlobal's Kartik Talwar. Their talk was part of Pragma Denver 2024.\"",
type: "video",
locales: [Locale.EN, Locale.ZH_TW],
},
// fellowship

{
id: "4",
projectId: "1",
title: "Sharding & DAS | Dankrad | Week 6 Research",
url: 'https://www.youtube.com/watch?v=ro2AGRkLC2s',
thumbnailUrl: 'https://img.youtube.com/vi/ro2AGRkLC2s/sddefault.jpg',
description: "Week 6 research track is going to be a dive into data availability sampling and danksharding.",
type: "video",
locales: [Locale.EN, Locale.ZH_TW],
},
{
id: "5",
projectId: "1",
title: "Ethereum Execution Layer Overview | lightclient | Week 2",
description: "An overview of the execution layer.",
url: 'https://www.youtube.com/watch?v=ro2AGRkLC2s',
thumbnailUrl: 'https://img.youtube.com/vi/ro2AGRkLC2s/sddefault.jpg',
type: "video",
locales: [Locale.EN, Locale.ZH_TW],
},
{
id: "6",
projectId: "1",
title: "Consensus Upgrades | Francesco | Week 10 Research",
description: "Week 10 research talk will cover variety of Beacon Chain upgrades currently researched, analyzed and considered for inclusion.",

url: 'https://www.youtube.com/watch?v=ro2AGRkLC2s',
thumbnailUrl: 'https://img.youtube.com/vi/ro2AGRkLC2s/sddefault.jpg',
type: "video",
locales: [Locale.EN, Locale.ZH_TW],
},

] as Repository[];
39 changes: 39 additions & 0 deletions apps/landing/src/data/translation-unit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { Attestor } from "../domain/attestor";
import { Locale } from "../domain/locale";
import { TranslationUnit } from "../domain/translation-unit";
import { ATTESTORS_DATA } from "./attestors";

export const TRANSLATION_UNIT = [
{
id: "1",
projectId: "1",
repositoryId: "1",
sourceLocale: Locale.EN,
toLocale:Locale.ZH_TW,
sourceString: "Lorem source",
toString: "Lorem",
suggestions:[
{
toString: 'Lorem',
translatedBy: {
name: "Enyi",
score: 84.5
}
},
{
toString: 'Lorem 2',
translatedBy: {
name: "Vincent",
score: 84.5
}
}
],
attestedProfiles: ATTESTORS_DATA.map(({name, profileUrl})=>({
name,
profileUrl
}))
}
] as TranslationUnit[];



3 changes: 2 additions & 1 deletion apps/landing/src/domain/project.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Locale } from "./locale";

export type Project = {
id: number;
id: string;
title: string;
thumbnailUrl: string;
description: string;
type: string;
locales: Locale[];
Expand Down
5 changes: 4 additions & 1 deletion apps/landing/src/domain/repository.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { Locale } from "./locale";

export type Repository = {
id: number;
id: string;
title: string;
projectId: string,
thumbnailUrl?: string;
description: string;
url?: string;
type: string;
locales: Locale[];
};
17 changes: 17 additions & 0 deletions apps/landing/src/domain/translation-unit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Attestor } from "./attestor";
import { Locale } from "./locale";

export type TranslationUnit = {
id: string;
projectId?: string,
repositoryId: string,
sourceLocale:Locale,
toLocale:Locale
attestedProfiles: Partial<Attestor>[];
sourceString: string;
toString: string;
suggestions:{
toString:string,
translatedBy:Partial<Attestor>
}[];
}