Skip to content

Commit

Permalink
feat: add missing data to paper interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Slartibartfass2 committed Jan 15, 2025
1 parent 2b7f160 commit a9e96e8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/lib/model/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ export interface Paper {
title: string;
abstrakt?: string;
year?: number;
type?: string;
publisherName: string;
publicationType: string;
publicationName: string;
authors: Author[];
backwardReferencedPaperIds: number[];
forwardReferencedPaperIds: number[];
Expand Down
7 changes: 7 additions & 0 deletions src/routes/componentsusage/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export const load: PageLoad = async () => {
{ id: 2, firstName: "Felix", lastName: "Schlegel" },
{ id: 3, firstName: "Florian", lastName: "Sihler" },
],
publisherName: "IEEE",
publicationType: "journal",
publicationName: "IEEE Transactions on Software Engineering",
backwardReferencedPaperIds: [],
forwardReferencedPaperIds: [],
reviewData: {
Expand Down Expand Up @@ -48,6 +51,10 @@ export const load: PageLoad = async () => {
{ id: 12, firstName: "Alexander", lastName: "Raschke" },
{ id: 13, firstName: "Matthias", lastName: "Tichy" },
],
publisherName: "ACM",
publicationType: "conference",
publicationName:
"Proceedings of the 2021 ACM SIGPLAN International Conference on Generative Programming: Concepts and Experiences",
backwardReferencedPaperIds: [],
forwardReferencedPaperIds: [],
reviewData: {
Expand Down
4 changes: 3 additions & 1 deletion src/routes/project/[projectId]/paper/new/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
title: "Empty Title",
abstrakt: "",
year: new Date().getFullYear(),
type: "",
publisherName: "",
publicationType: "",
publicationName: "",
authors: [],
backwardReferencedPaperIds: [],
forwardReferencedPaperIds: [],
Expand Down
4 changes: 3 additions & 1 deletion tests/model-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export function createPaper(paper: Partial<Paper> = {}): Paper {
title: "Foo",
abstrakt: "Bar",
year: 1912,
type: "paper",
publisherName: "IEEE",
publicationType: "journal",
publicationName: "IEEE Transactions on Software Engineering",
authors: [Authors.johnDoe],
backwardReferencedPaperIds: [],
forwardReferencedPaperIds: [],
Expand Down

0 comments on commit a9e96e8

Please sign in to comment.