Skip to content

Commit d24dc2f

Browse files
committed
feat: load research papers from public/papers/ instead of Google Drive
1 parent 53d0336 commit d24dc2f

14 files changed

Lines changed: 313 additions & 260 deletions

public/locales/en/translation.json

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"papers": {
1313
"whitepaper": "Whitepaper",
1414
"threatModel": "Threat Model"
15-
}
15+
},
16+
"researchFull": "Research Papers"
1617
},
1718
"loader": "Loading Please Wait",
1819
"LandingHeader": "Open Source | Research",
@@ -23,8 +24,9 @@
2324
"description2": " Our journey toward achieving our mission began in 2021 with the development of the first Android version of RelaySMS. We have come far since then, with support for more platforms and many more apps.",
2425
"description3": "We publish our research as frequently as possible on our blog and make announcements via our social media outlets. SMSWithoutBorders is a project started by the team at <a href='https://Afkanerd.com' class='afkanerd'>Afkanerd</a>."
2526
},
26-
"projectHeader": "Innovative Projects Under SMSWithoutBorders(SWOB)",
27+
"projectHeader": "Innovative Projects Under SMSWithoutBorders",
2728
"projectSubHeader": "SMSWithoutBorders Commits to buiding OpenSource Tools That Aid Free speech and Communication",
29+
"projectsub": "Our Projects",
2830
"project1": {
2931
"title": "RelaySMS",
3032
"description": "RelaySMS uses SMS messaging to communicate with online platforms without needing an internet connection. The users can grant access to their online platforms which would be used to act on their behalf using SMS messaging. The access granted, messages being sent from the app, and how they get published online are secured with strong up-to-date cryptographic and security practices.",
@@ -42,11 +44,14 @@
4244
"keyPoint2": "Privacy"
4345
},
4446
"Sponsor": {
47+
"Sponsorsub": "Partners",
4548
"SponsorT": "Supporting Organizations",
46-
"Sponsor-subheader": "This Organizations helps keep SMSWithoutBorders afloat"
49+
"Sponsor-subheader": "This Organizations helps keep SMSWithoutBorders afloat",
50+
"sponsorfooter": "Proudly supported by organizations committed to a free and open internet."
4751
},
4852
"footer": {
49-
"copyright": "© Afkanerd."
53+
"copyright": "© Afkanerd.",
54+
"github": "GitHub"
5055
},
5156
"social": {
5257
"x": "Follow us on X",
@@ -120,5 +125,37 @@
120125
"Privacy-Policy12": {
121126
"policyHeader12": "Contact Us",
122127
"policyBody16": "If you have any questions about this Privacy Policy, you can contact us by visiting this page on our website <a href=\"https://smswithoutborders.com\">smswithoutborders.com</a>"
123-
}
128+
},
129+
130+
"paperReader": {
131+
"notFound": "Paper not found.",
132+
"backToResearch": "Back to Research",
133+
"researchAndPublications": "Research Papers",
134+
"research": "Research",
135+
"comingSoon": "Full text coming soon",
136+
"comingSoonSub": "This paper has not been published yet. Check back later.",
137+
"openPdf": "Open PDF",
138+
"openPdfDirectly": "Open PDF directly",
139+
"loading": "Loading document…",
140+
"errorMessage": "The document could not be loaded. Make sure the PDF file exists in public/papers/ and the filename matches exactly.",
141+
"back": "← Back",
142+
"type": {
143+
"whitepaper": "White Paper",
144+
"research": "Research",
145+
"thread": "Thread"
146+
}
147+
},
148+
"researchPage": {
149+
"knowledgeBase": "Knowledge Base",
150+
"title": "Research & Publications",
151+
"subtitle": "White papers, research findings, and community threads on offline communication, privacy, and digital inclusion.",
152+
"searchPlaceholder": "Search by title, topic or author…",
153+
"filterAll": "All",
154+
"clearTags": "✕ Clear tags",
155+
"of": "of",
156+
"noResults": "No results found. Try adjusting your filters.",
157+
"readPaper": "Read Paper",
158+
"comingSoon": "Coming Soon",
159+
"viewFullDocument": "View full document →"
160+
}
124161
}

public/locales/es/translation.json

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@
1212
"papers": {
1313
"whitepaper": "Libro blanco",
1414
"threatModel": "Modelo de amenazas"
15-
}
15+
},
16+
"researchFull": "Artículos de investigación"
1617
},
1718
"loader": "Cargando, por favor espere",
1819
"LandingHeader": "Código abierto | Investigación",
1920
"About": {
20-
"AboutHeader": "Explorar SMSWithoutBorders",
21+
"AboutHeader": "Explora SMSWithoutBorders",
2122
"description": "SMSWithoutBorders (SWOB) se dedica a investigar, desarrollar y promover herramientas de comunicación seguras y accesibles que funcionen incluso sin conexión a Internet.",
2223
"description1": "El desarrollo incluye aplicaciones móviles para varias plataformas como Android, iOS y sistemas Linux. Parte del trabajo también incluye documentos técnicos sobre temas como criptografía, comunicaciones y libertad en Internet.",
2324
"description2": "Nuestro camino hacia el cumplimiento de nuestra misión comenzó en 2021 con el desarrollo de la primera versión de RelaySMS para Android. Desde entonces, hemos avanzado mucho, con soporte para más plataformas y muchas más aplicaciones.",
2425
"description3": "Publicamos nuestras investigaciones con la mayor frecuencia posible en nuestro blog y hacemos anuncios a través de nuestras redes sociales. SMSWithoutBorders es un proyecto iniciado por el equipo de <a href='https://Afkanerd.com' class='afkanerd'>Afkanerd</a>."
2526
},
26-
"projectHeader": "Proyectos innovadores bajo SMSWithoutBorders(SWOB)",
27+
"projectHeader": "Proyectos innovadores bajo SMSWithoutBorders",
2728
"projectSubHeader": "SMSWithoutBorders se compromete a construir herramientas de código abierto que promuevan la libertad de expresión y la comunicación",
29+
"projectsub": "Nuestros proyectos",
2830
"project1": {
2931
"title": "RelaySMS",
3032
"description": "RelaySMS utiliza la mensajería SMS para comunicarse con plataformas en línea sin necesidad de conexión a Internet. Los usuarios pueden otorgar acceso a sus plataformas en línea, el cual se utilizará para actuar en su nombre mediante mensajes SMS. El acceso concedido, los mensajes enviados desde la aplicación y cómo se publican en línea están asegurados con prácticas criptográficas y de seguridad modernas y sólidas.",
@@ -42,8 +44,10 @@
4244
"keyPoint2": "Privacidad"
4345
},
4446
"Sponsor": {
47+
"Sponsorsub": "Socios",
4548
"SponsorT": "Organizaciones de apoyo",
46-
"Sponsor-subheader": "Estas organizaciones ayudan a mantener SMSWithoutBorders en funcionamiento"
49+
"Sponsor-subheader": "Estas organizaciones ayudan a mantener SMSWithoutBorders en funcionamiento",
50+
"sponsorfooter": "Orgullosamente respaldado por organizaciones comprometidas con un internet libre y abierto."
4751
},
4852
"footer": {
4953
"copyright": "© Afkanerd."
@@ -120,5 +124,36 @@
120124
"Privacy-Policy12": {
121125
"policyHeader12": "Contáctanos",
122126
"policyBody16": "Si tiene alguna pregunta sobre esta Política de Privacidad, puede contactarnos visitando esta página en nuestro sitio web. <a href=\"https://smswithoutborders.com\">smswithoutborders.com</a>"
123-
}
127+
},
128+
"paperReader": {
129+
"notFound": "Documento no encontrado.",
130+
"backToResearch": "Volver a investigación",
131+
"researchAndPublications": "Investigación y publicaciones",
132+
"research": "Investigación",
133+
"comingSoon": "Texto completo próximamente",
134+
"comingSoonSub": "Este documento aún no ha sido publicado. Vuelve más tarde.",
135+
"openPdf": "Abrir PDF",
136+
"openPdfDirectly": "Abrir PDF directamente",
137+
"loading": "Cargando documento…",
138+
"errorMessage": "No se pudo cargar el documento. Asegúrate de que el archivo PDF exista en public/papers/ y que el nombre del archivo coincida exactamente.",
139+
"back": "← Volver",
140+
"type": {
141+
"whitepaper": "Libro blanco",
142+
"research": "Investigación",
143+
"thread": "Hilo"
144+
}
145+
},
146+
"researchPage": {
147+
"knowledgeBase": "Base de conocimiento",
148+
"title": "Investigación y publicaciones",
149+
"subtitle": "Libros blancos, hallazgos de investigación y debates comunitarios sobre comunicación offline, privacidad e inclusión digital.",
150+
"searchPlaceholder": "Buscar por título, tema o autor…",
151+
"filterAll": "Todos",
152+
"clearTags": "✕ Limpiar etiquetas",
153+
"of": "de",
154+
"noResults": "No se encontraron resultados. Intenta ajustar tus filtros.",
155+
"readPaper": "Leer documento",
156+
"comingSoon": "Próximamente",
157+
"viewFullDocument": "Ver documento completo →"
158+
}
124159
}

public/locales/fa/translation.json

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@
1212
"papers": {
1313
"whitepaper": "کتاب سفید",
1414
"threatModel": "مدل تهدید"
15-
}
15+
},
16+
"researchFull": "مقالات پژوهشی"
1617
},
1718
"loader": "در حال بارگذاری، لطفاً صبر کنید",
1819
"LandingHeader": "منبع باز | پژوهش",
1920
"About": {
20-
"Aboutheader": "کاوش در SMSWithoutBorders",
21+
"AboutHeader": "کاوش در SMSWithoutBorders",
2122
"description": "SMSWithoutBorders (SWOB) به تحقیق، توسعه و ترویج ابزارهای ارتباطی امن و در دسترس اختصاص دارد که حتی بدون اتصال اینترنت نیز کار می‌کنند.",
2223
"description1": "توسعه شامل اپلیکیشن‌های موبایل برای پلتفرم‌های مختلف مانند اندروید، iOS و سیستم‌های لینوکس است. بخشی از کار همچنین شامل مقالات پژوهشی در موضوعاتی مانند رمزنگاری، ارتباطات و آزادی اینترنت می‌باشد.",
2324
"description2": "سفر ما برای دستیابی به مأموریت خود در سال 2021 با توسعه اولین نسخه اندروید RelaySMS آغاز شد. از آن زمان تاکنون پیشرفت زیادی داشته‌ایم، با پشتیبانی از پلتفرم‌های بیشتر و اپلیکیشن‌های فراوان دیگر.",
2425
"description3": "ما تحقیقات خود را تا حد امکان در بلاگ منتشر می‌کنیم و از طریق شبکه‌های اجتماعی اطلاع‌رسانی می‌کنیم. SMSWithoutBorders پروژه‌ای است که توسط تیم <a href='https://Afkanerd.com' class='afkanerd'>Afkanerd</a> آغاز شد."
2526
},
26-
"projectHeader": "پروژه‌های نوآورانه تحت SMSWithoutBorders(SWOB)",
27+
"projectHeader": "پروژه‌های نوآورانه تحت SMSWithoutBorders",
2728
"projectSubHeader": "SMSWithoutBorders متعهد به ساخت ابزارهای متن‌باز است که به آزادی بیان و ارتباطات کمک می‌کنند",
29+
"projectsub": "پروژه‌های ما",
2830
"project1": {
2931
"title": "RelaySMS",
3032
"description": "RelaySMS از پیامک برای ارتباط با پلتفرم‌های آنلاین بدون نیاز به اینترنت استفاده می‌کند. کاربران می‌توانند دسترسی به پلتفرم‌های آنلاین خود را اعطا کنند که از طریق پیامک به نمایندگی از آنها عمل خواهد کرد. دسترسی داده‌شده، پیام‌های ارسال‌شده از برنامه و نحوه انتشار آنها به صورت آنلاین با استفاده از شیوه‌های رمزنگاری و امنیتی به‌روز و قدرتمند ایمن می‌شوند.",
@@ -42,8 +44,10 @@
4244
"keyPoint2": "حریم خصوصی"
4345
},
4446
"Sponsor": {
47+
"Sponsorsub": "شرکا",
4548
"SponsorT": "سازمان‌های پشتیبان",
46-
"Sponsor-subheader": "این سازمان‌ها به حفظ SMSWithoutBorders کمک می‌کنند"
49+
"Sponsor-subheader": "این سازمان‌ها به حفظ SMSWithoutBorders کمک می‌کنند",
50+
"sponsorfooter": "با افتخار با حمایت سازمان‌هایی که به اینترنتی آزاد و باز متعهد هستند."
4751
},
4852
"footer": {
4953
"copyright": "© Afkanerd."
@@ -120,5 +124,36 @@
120124
"Privacy-Policy12": {
121125
"policyHeader12": "با ما تماس بگیرید",
122126
"policyBody16": "اگر سوالی در مورد این سیاست حفظ حریم خصوصی دارید، می‌توانید با مراجعه به این صفحه در وب‌سایت ما با ما تماس بگیرید <a href=\"https://smswithoutborders.com\">smswithoutborders.com</a>"
123-
}
127+
},
128+
"paperReader": {
129+
"notFound": "سند پیدا نشد.",
130+
"backToResearch": "بازگشت به تحقیقات",
131+
"researchAndPublications": "تحقیقات و انتشارات",
132+
"research": "تحقیقات",
133+
"comingSoon": "متن کامل به زودی منتشر می‌شود",
134+
"comingSoonSub": "این مقاله هنوز منتشر نشده است. بعداً دوباره بررسی کنید.",
135+
"openPdf": "باز کردن PDF",
136+
"openPdfDirectly": "باز کردن مستقیم PDF",
137+
"loading": "در حال بارگذاری سند…",
138+
"errorMessage": "سند بارگذاری نشد. مطمئن شوید فایل PDF در مسیر public/papers/ وجود دارد و نام فایل دقیقاً مطابقت دارد.",
139+
"back": "← بازگشت",
140+
"type": {
141+
"whitepaper": "وایت پیپر",
142+
"research": "تحقیق",
143+
"thread": "رشته"
144+
}
145+
},
146+
"researchPage": {
147+
"knowledgeBase": "پایگاه دانش",
148+
"title": "تحقیقات و انتشارات",
149+
"subtitle": "وایت‌پیپرها، یافته‌های پژوهشی و رشته‌های گفتگو درباره ارتباطات آفلاین، حریم خصوصی و شمول دیجیتال.",
150+
"searchPlaceholder": "جستجو بر اساس عنوان، موضوع یا نویسنده…",
151+
"filterAll": "همه",
152+
"clearTags": "✕ پاک کردن برچسب‌ها",
153+
"of": "از",
154+
"noResults": "هیچ نتیجه‌ای یافت نشد. فیلترهای خود را تغییر دهید.",
155+
"readPaper": "خواندن مقاله",
156+
"comingSoon": "به‌زودی",
157+
"viewFullDocument": "مشاهده سند کامل →"
158+
}
124159
}

public/locales/fr/translation.json

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@
1212
"papers": {
1313
"whitepaper": "Livre blanc",
1414
"threatModel": "Modèle de menace"
15-
}
15+
},
16+
"researchFull": "Articles de recherche"
1617
},
1718
"loader": "Chargement, veuillez patienter",
1819
"LandingHeader": "Open Source | Recherche",
1920
"About": {
20-
"AboutHeader": "Explorer SMSWithoutBorders",
21+
"AboutHeader": "Découvrez SMSWithoutBorders",
2122
"description": "SMSWithoutBorders (SWOB) est dédié à la recherche, au développement et à la promotion d’outils de communication sécurisés et accessibles qui fonctionnent même sans connexion Internet.",
2223
"description1": "Le développement inclut des applications mobiles pour diverses plateformes telles qu’Android, iOS et les systèmes Linux. Une partie du travail inclut également des livres blancs sur des sujets tels que la cryptographie, les communications et la liberté sur Internet.",
2324
"description2": "Notre parcours vers la réalisation de notre mission a commencé en 2021 avec le développement de la première version Android de RelaySMS. Depuis, nous avons fait beaucoup de progrès, avec un support pour plus de plateformes et beaucoup plus d’applications.",
2425
"description3": "Nous publions nos recherches aussi souvent que possible sur notre blog et faisons des annonces via nos réseaux sociaux. SMSWithoutBorders est un projet lancé par l’équipe d’<a href='https://Afkanerd.com' class='afkanerd'>Afkanerd</a>."
2526
},
26-
"projectHeader": "Projets innovants sous SMSWithoutBorders(SWOB)",
27+
"projectHeader": "Projets innovants sous SMSWithoutBorders",
2728
"projectSubHeader": "SMSWithoutBorders s'engage à créer des outils open source qui favorisent la liberté d'expression et la communication",
29+
"projectsub": "Nos projets",
2830
"project1": {
2931
"title": "RelaySMS",
3032
"description": "RelaySMS utilise la messagerie SMS pour communiquer avec des plateformes en ligne sans nécessiter de connexion Internet. Les utilisateurs peuvent accorder l’accès à leurs plateformes en ligne, qui sera utilisé pour agir en leur nom via la messagerie SMS. L’accès accordé, les messages envoyés depuis l’application et leur publication en ligne sont sécurisés grâce à des pratiques cryptographiques et de sécurité modernes et solides.",
@@ -42,8 +44,10 @@
4244
"keyPoint2": "Confidentialité"
4345
},
4446
"Sponsor": {
47+
"Sponsorsub": "Partenaires",
4548
"SponsorT": "Organisations de soutien",
46-
"Sponsor-subheader": "Ces organisations aident à maintenir SMSWithoutBorders à flot"
49+
"Sponsor-subheader": "Ces organisations aident à maintenir SMSWithoutBorders à flot",
50+
"sponsorfooter": "Fièrement soutenu par des organisations engagées pour un internet libre et ouvert."
4751
},
4852
"footer": {
4953
"copyright": "© Afkanerd."
@@ -120,5 +124,36 @@
120124
"Privacy-Policy12": {
121125
"policyHeader12": "Contactez-Nous",
122126
"policyBody16": "Si vous avez des questions sur cette Politique de confidentialité, vous pouvez nous contacter en visitant cette page sur notre site Web <a href=\"https://smswithoutborders.com\">smswithoutborders.com</a>"
123-
}
127+
},
128+
"paperReader": {
129+
"notFound": "Document non trouvé.",
130+
"backToResearch": "Retour à la recherche",
131+
"researchAndPublications": "Recherche et publications",
132+
"research": "Recherche",
133+
"comingSoon": "Texte complet bientôt disponible",
134+
"comingSoonSub": "Ce document n'a pas encore été publié. Revenez plus tard.",
135+
"openPdf": "Ouvrir le PDF",
136+
"openPdfDirectly": "Ouvrir le PDF directement",
137+
"loading": "Chargement du document…",
138+
"errorMessage": "Le document n'a pas pu être chargé. Assurez-vous que le fichier PDF existe dans public/papers/ et que le nom du fichier correspond exactement.",
139+
"back": "← Retour",
140+
"type": {
141+
"whitepaper": "Livre blanc",
142+
"research": "Recherche",
143+
"thread": "Fil"
144+
}
145+
},
146+
"researchPage": {
147+
"knowledgeBase": "Base de connaissances",
148+
"title": "Recherche et publications",
149+
"subtitle": "Livres blancs, résultats de recherche et discussions communautaires sur la communication hors ligne, la confidentialité et l'inclusion numérique.",
150+
"searchPlaceholder": "Rechercher par titre, sujet ou auteur…",
151+
"filterAll": "Tout",
152+
"clearTags": "✕ Effacer les tags",
153+
"of": "de",
154+
"noResults": "Aucun résultat trouvé. Essayez d'ajuster vos filtres.",
155+
"readPaper": "Lire le document",
156+
"comingSoon": "Bientôt disponible",
157+
"viewFullDocument": "Voir le document complet →"
158+
}
124159
}
335 KB
Binary file not shown.

src/Components/DocsNavbar.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ export default function Navbar() {
292292
>
293293
<FiFileText size={24} color="white" /> {t("navbar.researchFull", "Research Papers")}
294294
</Box>
295-
296295

297296
<Box sx={{ width: "1px", height: 20, bgcolor: isLight ? "rgba(0,0,0,0.12)" : "rgba(255,255,255,0.12)", mx: 0.5 }} />
298297

src/Components/Landing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export default function Landing() {
1919
sx={{
2020
direction: isFarsi ? "rtl" : "ltr",
2121
minHeight: {
22-
xs: "40svh",
23-
sm: "60svh",
22+
xs: "60svh",
23+
sm: "70svh",
2424
md: "80vh",
2525
lg: "60vh",
2626
},

src/Components/Navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ export default function Navbar() {
430430
"&:hover": { opacity: 0.9, transform: "translateY(-1px)" },
431431
}}
432432
>
433-
📄 {t("navbar.researchFull", "Research & Publications")}
433+
<FiFileText size={24} color="white" /> {t("navbar.researchFull", "Research Papers")}
434434
</Box>
435435
</Box>
436436

src/Components/Partner.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ export default function Partner() {
243243
fontFamily: "'Ubuntu', 'Roboto'",
244244
}}
245245
>
246-
Partners
246+
{t("Sponsor.Sponsorsub", { defaultValue: "Partners" })}
247+
247248
</Typography>
248249
<Box
249250
sx={{
@@ -327,7 +328,8 @@ export default function Partner() {
327328
letterSpacing: "0.04em",
328329
}}
329330
>
330-
Proudly supported by organizations committed to a free and open internet.
331+
{t("Sponsor.sponsorfooter", { defaultValue: "Proudly supported by organizations committed to a free and open internet." })}
332+
331333
</Typography>
332334
</Box>
333335
</Box>

src/Components/Project.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ export default function Projects() {
145145
fontFamily: "'Ubuntu', 'Roboto'",
146146
}}
147147
>
148-
Our Projects
148+
{t("projectsub", {
149+
defaultValue:
150+
"Our Projects",
151+
})}
152+
149153
</Typography>
150154
<Box
151155
sx={{

0 commit comments

Comments
 (0)