Skip to content

Commit

Permalink
Implement isNotInBrinkman, add data, test, update & refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
khoidt committed Feb 7, 2024
1 parent 28e393c commit 837ad53
Show file tree
Hide file tree
Showing 16 changed files with 5,814 additions and 6,068 deletions.
3,645 changes: 0 additions & 3,645 deletions src/chronology/domain/BrinkmanKings.json

This file was deleted.

4 changes: 2 additions & 2 deletions src/chronology/domain/Date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { romanize } from 'romans'
import { MesopotamianDateBase } from 'chronology/domain/DateBase'

export class MesopotamianDate extends MesopotamianDateBase {
static fromJson(dateJSON: MesopotamianDateDto): MesopotamianDate {
static fromJson(dateJson: MesopotamianDateDto): MesopotamianDate {
const {
year,
month,
Expand All @@ -14,7 +14,7 @@ export class MesopotamianDate extends MesopotamianDateBase {
isSeleucidEra,
isAssyrianDate,
ur3Calendar,
} = dateJSON
} = dateJson
return new MesopotamianDate(
year,
month,
Expand Down
2 changes: 1 addition & 1 deletion src/chronology/domain/DateBase.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { King } from 'chronology/ui/BrinkmanKings/BrinkmanKings'
import { King } from 'chronology/ui/Kings/Kings'
import { Eponym } from 'chronology/ui/DateEditor/Eponyms'
import DateConverter from 'chronology/domain/DateConverter'
import data from 'chronology/domain/dateConverterData.json'
Expand Down
5 changes: 1 addition & 4 deletions src/chronology/domain/DateConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import DateConverterBase, {
monthNames,
} from 'chronology/domain/DateConverterBase'
import DateConverterChecks from 'chronology/domain/DateConverterChecks'
import {
King,
findKingByOrderGlobal,
} from 'chronology/ui/BrinkmanKings/BrinkmanKings'
import { King, findKingByOrderGlobal } from 'chronology/ui/Kings/Kings'

export default class DateConverter extends DateConverterBase {
checks: DateConverterChecks = new DateConverterChecks()
Expand Down
Loading

0 comments on commit 837ad53

Please sign in to comment.