Skip to content

Commit 3e51e74

Browse files
committed
chore(contributors): add volunteer preview fixtures
1 parent 865792c commit 3e51e74

2 files changed

Lines changed: 132 additions & 1 deletion

File tree

‎apps/web/src/pages/index.astro‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const contributorMap = new Map(
1414
contributorGroups.flatMap((group) => group.contributors.map((contributor) => [contributor.slug, contributor] as const)),
1515
);
1616
const contributors = [...contributorMap.values()];
17-
const contributorPreview = contributors.slice(0, 12);
17+
const contributorPreviewLimit = 12;
18+
const contributorPreview = contributors.slice(0, contributorPreviewLimit);
1819
const liveWire = feed.dynamicFeed.slice(0, 6);
1920
const recentGeekDaily = feed.recentGeekDaily.slice(0, 3);
2021
const frontPageHighlights = liveWire.slice(0, 3);

‎scripts/directus/baseline-data.mjs‎

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,4 +359,134 @@ export const contributors = [
359359
wechat: null,
360360
telegram: '@annie_rebase',
361361
},
362+
{
363+
slug: 'test-volunteer-01',
364+
status: 'published',
365+
name: 'test volunteer 01',
366+
avatar_url: null,
367+
avatar_seed: 'test-volunteer-01',
368+
headline: 'community volunteer',
369+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
370+
role_slugs: ['volunteers'],
371+
twitter_url: null,
372+
wechat: null,
373+
telegram: null,
374+
},
375+
{
376+
slug: 'test-volunteer-02',
377+
status: 'published',
378+
name: 'test volunteer 02',
379+
avatar_url: null,
380+
avatar_seed: 'test-volunteer-02',
381+
headline: 'community volunteer',
382+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
383+
role_slugs: ['volunteers'],
384+
twitter_url: null,
385+
wechat: null,
386+
telegram: null,
387+
},
388+
{
389+
slug: 'test-volunteer-03',
390+
status: 'published',
391+
name: 'test volunteer 03',
392+
avatar_url: null,
393+
avatar_seed: 'test-volunteer-03',
394+
headline: 'community volunteer',
395+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
396+
role_slugs: ['volunteers'],
397+
twitter_url: null,
398+
wechat: null,
399+
telegram: null,
400+
},
401+
{
402+
slug: 'test-volunteer-04',
403+
status: 'published',
404+
name: 'test volunteer 04',
405+
avatar_url: null,
406+
avatar_seed: 'test-volunteer-04',
407+
headline: 'community volunteer',
408+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
409+
role_slugs: ['volunteers'],
410+
twitter_url: null,
411+
wechat: null,
412+
telegram: null,
413+
},
414+
{
415+
slug: 'test-volunteer-05',
416+
status: 'published',
417+
name: 'test volunteer 05',
418+
avatar_url: null,
419+
avatar_seed: 'test-volunteer-05',
420+
headline: 'community volunteer',
421+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
422+
role_slugs: ['volunteers'],
423+
twitter_url: null,
424+
wechat: null,
425+
telegram: null,
426+
},
427+
{
428+
slug: 'test-volunteer-06',
429+
status: 'published',
430+
name: 'test volunteer 06',
431+
avatar_url: null,
432+
avatar_seed: 'test-volunteer-06',
433+
headline: 'community volunteer',
434+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
435+
role_slugs: ['volunteers'],
436+
twitter_url: null,
437+
wechat: null,
438+
telegram: null,
439+
},
440+
{
441+
slug: 'test-volunteer-07',
442+
status: 'published',
443+
name: 'test volunteer 07',
444+
avatar_url: null,
445+
avatar_seed: 'test-volunteer-07',
446+
headline: 'community volunteer',
447+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
448+
role_slugs: ['volunteers'],
449+
twitter_url: null,
450+
wechat: null,
451+
telegram: null,
452+
},
453+
{
454+
slug: 'test-volunteer-08',
455+
status: 'published',
456+
name: 'test volunteer 08',
457+
avatar_url: null,
458+
avatar_seed: 'test-volunteer-08',
459+
headline: 'community volunteer',
460+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
461+
role_slugs: ['volunteers'],
462+
twitter_url: null,
463+
wechat: null,
464+
telegram: null,
465+
},
466+
{
467+
slug: 'test-volunteer-09',
468+
status: 'published',
469+
name: 'test volunteer 09',
470+
avatar_url: null,
471+
avatar_seed: 'test-volunteer-09',
472+
headline: 'community volunteer',
473+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
474+
role_slugs: ['volunteers'],
475+
twitter_url: null,
476+
wechat: null,
477+
telegram: null,
478+
},
479+
{
480+
slug: 'test-volunteer-10',
481+
status: 'published',
482+
name: 'test volunteer 10',
483+
avatar_url: null,
484+
avatar_seed: 'test-volunteer-10',
485+
headline: 'community volunteer',
486+
bio: '用于验证首页贡献者群像布局的测试志愿者档案。',
487+
role_slugs: ['volunteers'],
488+
twitter_url: null,
489+
wechat: null,
490+
telegram: null,
491+
},
362492
];

0 commit comments

Comments
 (0)