-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement fragment colophon editor & refactor (WiP)
- Loading branch information
Showing
4 changed files
with
335 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import { Provenance } from 'corpus/domain/provenance' | ||
|
||
enum ColophonStatus { | ||
Yes = 'Yes', | ||
No = 'No', | ||
Broken = 'Broken', | ||
OnlyColophon = 'Only Colophon', | ||
} | ||
|
||
enum ColophonType { | ||
AsbA = 'Asb a', | ||
AsbB = 'Asb b', | ||
AsbC = 'Asb c', | ||
AsbD = 'Asb d', | ||
AsbE = 'Asb e', | ||
AsbF = 'Asb f', | ||
AsbG = 'Asb g', // BAK 321 | ||
AsbH = 'Asb h', | ||
AsbI = 'Asb i', | ||
AsbK = 'Asb k', | ||
AsbL = 'Asb l', | ||
AsbM = 'Asb m', | ||
AsbN = 'Asb n', | ||
AsbO = 'Asb o', | ||
AsbP = 'Asb p', | ||
AsbQ = 'Asb q', | ||
AsbRS = 'Asb r/s', | ||
AsbT = 'Asb t', | ||
AsbU = 'Asb u', | ||
AsbV = 'Asb v', | ||
AsbW = 'Asb w', | ||
AsbUnclear = 'Asb Unclear', | ||
NzkBAK293 = 'Nzk BAK 293', | ||
NzkBAK294 = 'Nzk BAK 294', | ||
NzkBAK295 = 'Nzk BAK 295', | ||
NzkBAK296 = 'Nzk BAK 296', | ||
NzkBAK297 = 'Nzk BAK 297', | ||
} | ||
|
||
enum ColophonOwnership { | ||
Library = 'Library', | ||
Private = 'Private', | ||
Individual = 'Individual', | ||
} | ||
|
||
enum IndividualType { | ||
Owner = 'Owner', | ||
Scribe = 'Scribe', | ||
Other = 'Other', | ||
} | ||
|
||
interface Name { | ||
value: string | ||
isBroken: boolean | ||
isUncertain: boolean | ||
} | ||
|
||
interface Individual { | ||
name: Name | ||
sonOf: Name | ||
grandsonOf: Name | ||
family: Name | ||
nativeOf: Provenance | ||
type: IndividualType | ||
} | ||
|
||
export interface Colophon { | ||
colophonStatus: ColophonStatus | ||
colophonOwnership: ColophonOwnership | ||
colophonType: ColophonType[] | ||
originalFrom: Provenance | ||
writtenIn: Provenance | ||
notesToScribalProcess: string | ||
individuals: Individual[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from 'react' | ||
|
||
export default function Editor(): JSX.Element { | ||
return <></> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.