From 442484438eede796b0796f96f5b46b43460121cc Mon Sep 17 00:00:00 2001 From: Team 1280 Programming Laptop <59985235+Team1280Programming@users.noreply.github.com> Date: Wed, 14 Feb 2024 18:10:51 -0800 Subject: [PATCH] Remove comments in data --- src/app/db/data.ts | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/src/app/db/data.ts b/src/app/db/data.ts index a5a1c73..6e4d5db 100644 --- a/src/app/db/data.ts +++ b/src/app/db/data.ts @@ -1,31 +1,3 @@ -/* -documents db schema -documents { - slug: { - manifest: { - title: string - authors: string[] - date: unix epoch integer[] -> if multiple revisions, put the earlier dates first - type: presentation | report | whitepaper | other - latest: integer >= 1 -> the latest revision of the document (earliest = 1) - keywords: string[] - topics: string[] - references: string[], - code: url[] - }, - abstract: string, - file: pdf | docx | pptx | targz | other, named file[rev].[ext] - (eg. revision 1 = file1.pdf, revision 2 = file2.pdf, etc) - the "latest" should be the latest revision - citation: a string that can be used to cite the document - reviewers: an array of reviewers, following the reviewer format. if you specify a local - profile username, it will link to the author's profile, and take priority over the link - status: draft | under review | reviewed | published no review - note: published no review should be used for documents where peer review - is not appropriate or unnecessary - } -} -*/ export type FileType = 'pdf' | 'docx' | 'pptx' | 'tar.gz' | 'other' export type DocumentType = | 'presentation' @@ -42,11 +14,13 @@ export type reviewer = { profile?: string url?: string } + export type DocumentStatus = | 'draft' | 'under review' | 'reviewed' | 'published no review' + export interface Document { manifest: DocumentManifest abstract: string