Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close #621 #862

Merged
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
1 change: 0 additions & 1 deletion src/lib/components/LinkButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
$: if (color == 'bg-secondary') {
color = 'bg-secondary';
}
$: console.log(type);
</script>

<a
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/ProjectsCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
export let projectTypes;
export let isInternal;
export let organization;
export let summary;
export let teaser;
export let teamSelection;
export let procLocalChapters = [];
export let href;
Expand Down Expand Up @@ -63,7 +63,7 @@
<Tag text={tag} color="bg-secondary" />
{/each}
</div>
<Html source={summary} options={'line-clamp-3 !px-0 my-3'} />
<Html source={teaser} options={'line-clamp-3 !px-0 my-3'} />
{#if projectOutputs && procLocalChapters.length !== 0}
<div class="pb-3">
{#each procLocalChapters as lc, i}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/js/parsing/processing/cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function processProjects(project, locale) {

return {
title: project.translations[0].title,
summary: project.translations[0].summary,
teaser: project.translations[0].teaser,
href: href,
teamSelection: teamSelection,
projectTypes: transformTypes(project.translations[0].type),
Expand Down
2 changes: 1 addition & 1 deletion src/lib/js/parsing/schemas/cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const projectsSchema = yup.object({
isInternal: yup.boolean().required(),
endDate: yup.date().required(),
organization: yup.string().required(),
summary: yup.string().required(),
teaser: yup.string().required(),
procLocalChapters: yup.array().of(localChaptersSchema),
localChapterNames: yup.array().of(yup.string()),
href: yup.string().required(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ query Project(
title
description
summary
teaser
type
data
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ query ProjectOverview($language: String = "de-DE", $status: [String] = ["publish
}
translations(filter: { languages_code: { code: { _eq: $language } } }) {
title
summary
teaser
type
data
}
Expand Down
Loading