Skip to content

Commit 8528354

Browse files
committed
fix issues preventing build
1 parent 269b5b6 commit 8528354

File tree

5 files changed

+46
-17
lines changed

5 files changed

+46
-17
lines changed

language/ar.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ code-of-conduct:
7474
home:
7575
meta:
7676
title: "الرئيسية"
77-
description: "مرحباً بكم في مراجع توثيق اطار العمل @idrinth-api-bench/framework "
77+
description: "مرحباً بكم في مراجع توثيق اطار العمل @idrinth-api-bench/framework"
7878
title: "ماذا يفعل هذا المشروع؟"
7979
what: "هذا المشروع يوفر اطار عمل لقياس ومراقبة اداء واجهة برمجة التطبيقات, الذي يسعى إلى توفير أفضل تجربة ممكنة للمطور مع الحفاظ على سهولة التوسع والضبط"
8080
why: "يقدم اطار العمل المساعدة في كشف التغيرات في اداء الكود بسرعة وسهولة "
@@ -224,10 +224,10 @@ contributing:
224224
description: "نتوقع منك فحص الكود الجديد، كما ونقدر إضافة فحوصات أو تحسين الفحوصات الموجودة للكود القديم. والهدف هو العثور على معظم المشكلات إما من خلال التحليل الثابت أو فحوصات الوحدة والتكامل"
225225
manual:
226226
title: "الفحص اليدوي"
227-
description: "للفحص اليدوي، يمكنك تشغيل \"npm run coai\" في مجلد المصدر للتحقق تلقائيًا من جميع الملفات المطلوبة للفحص وتثبيتها"
227+
description: "للفحص اليدوي، يمكنك تشغيل 'npm run coai' في مجلد المصدر للتحقق تلقائيًا من جميع الملفات المطلوبة للفحص وتثبيتها"
228228
locally:
229229
title: "تشغيل الفحص محلياً"
230-
description: "لرؤية قائمة بمهام CI المتاحة والأوامر المقابلة لها لتشغيلها محليًا، يمكنك تشغيل \"npm run local\" في مجلد المصدر. وهذا مفيد بشكل خاص لاختبار مهام CI محددة قبل تأكيد التغييرات"
230+
description: "لرؤية قائمة بمهام CI المتاحة والأوامر المقابلة لها لتشغيلها محليًا، يمكنك تشغيل 'npm run local' في مجلد المصدر. وهذا مفيد بشكل خاص لاختبار مهام CI محددة قبل تأكيد التغييرات"
231231
naming:
232232
title: "تعليمات التسمية"
233233
list_item_1: "camelCase للمتغيرات والدوال - دمج الاحرف الكبيرة والصغيرة"

language/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ sponsors:
138138
title: "Sponsors | Contributing"
139139
description: "The following businesses and companies are sponsoring the development of api-bench by providing time, money or necessary tools."
140140
title: "Sponsors"
141+
now: "now (ongoing)"
141142
former:
142143
title: "Former Sponsors"
143144
description: "These companies are former sponsors and have helped in the past."

src/components/external-link.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ import {
66
interface ExternalLinkType {
77
to: string;
88
label?: string;
9+
nofollow?: boolean;
910
}
1011

1112
const ExternalLink = ({
1213
to,
1314
label = '',
15+
nofollow = false,
1416
}: ExternalLinkType,) => <a
1517
className="external-link"
1618
href={to}
1719
target='_blank'
18-
rel='noreferrer'
20+
rel={'noreferrer' + (nofollow ? ' nofollow' : '')}
1921
>
2022
{label || to.replace(/^https?:\/\//ui, '',)}
2123
<FiExternalLink className="external-link-icon"/>

src/components/language-switch.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
select.language-switch {
22
appearance: auto;
33
cursor: pointer;
4+
background-color: var(--background-color);
5+
color: var(--text-color);
46
}

src/components/sponsor.tsx

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,49 @@ interface SponsorProps {
1010
lnkey: string;
1111
to: string;
1212
label: string;
13+
since: Date;
14+
until?: Date;
1315
}
1416

1517
const Sponsor = ({
1618
img,
1719
lnkey,
1820
to,
1921
label,
20-
}: SponsorProps,) => <div className={'card sponsor'}>
21-
{img}
22-
<div key={lnkey}>
23-
<h2>
24-
<ExternalLink
25-
to={to}
26-
label={label}
27-
/>
28-
</h2>
29-
<p><Lang lnkey={`sponsors.${ lnkey }.intro` as languageKey}/></p>
30-
<p><Lang lnkey={`sponsors.${ lnkey }.sponsoring` as languageKey}/></p>
31-
</div>
32-
</div>;
22+
since,
23+
until
24+
}: SponsorProps,) => {
25+
if (until) {
26+
return <div className={'card sponsor former'}>
27+
{img}
28+
<div key={lnkey}>
29+
<h2>
30+
<ExternalLink
31+
to={to}
32+
label={label}
33+
nofollow={true}
34+
/>
35+
</h2>
36+
<p>${ since.toLocaleDateString() } - ${ until.toLocaleDateString() }</p>
37+
<p><Lang lnkey={`sponsors.${ lnkey }.intro` as languageKey}/></p>
38+
<p><Lang lnkey={`sponsors.${ lnkey }.sponsoring` as languageKey}/></p>
39+
</div>
40+
</div>;
41+
}
42+
return <div className={'card sponsor current'}>
43+
{img}
44+
<div key={lnkey}>
45+
<h2>
46+
<ExternalLink
47+
to={to}
48+
label={label}
49+
/>
50+
</h2>
51+
<p>${ since.toLocaleDateString() } - <Lang lnkey={'sponsors.now'}/></p>
52+
<p><Lang lnkey={`sponsors.${ lnkey }.intro` as languageKey}/></p>
53+
<p><Lang lnkey={`sponsors.${ lnkey }.sponsoring` as languageKey}/></p>
54+
</div>
55+
</div>;
56+
}
3357

3458
export default Sponsor;

0 commit comments

Comments
 (0)