Skip to content

Commit

Permalink
Period sorted (#373)
Browse files Browse the repository at this point in the history
* sort periods

* sort reverse
  • Loading branch information
yCobanoglu authored Jun 5, 2023
1 parent 7145db7 commit f3775ae
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 164 deletions.
188 changes: 95 additions & 93 deletions src/common/period.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,60 @@ export const periodModifiers = [
] as const

export const Periods = {
None: {
name: 'None',
abbreviation: '',
description: '',
displayName: '-',
'Uruk IV': {
name: 'Uruk IV',
abbreviation: 'Uruk4',
description: '(ca. 3600-3300 BCE)',
displayName: null,
parent: null,
},
'Uruk III-Jemdet Nasr': {
name: 'Uruk III-Jemdet Nasr',
abbreviation: 'JN',
description: '(ca. 3300-3000 BCE)',
displayName: 'Uruk III/Jemdet Nasr',
parent: null,
},
'Proto-Elamite': {
name: 'Proto-Elamite',
abbreviation: 'PElam',
description: '(c. 3200 – c. 2700 BCE)',
displayName: null,
parent: null,
},
'ED I-II': {
name: 'ED I-II',
abbreviation: 'ED1-2',
description: '(ca. 3000-2600 BCE)',
displayName: 'ED I/II',
parent: null,
},
Fara: {
name: 'Fara',
abbreviation: 'Fara',
description: '(ca. 2600-2475 BCE)',
displayName: null,
parent: null,
},
'Old Elamite': {
name: 'Old Elamite',
abbreviation: 'OElam',
description: '(c. 2600 – c. 1500 BCE)',
displayName: null,
parent: null,
},
Presargonic: {
name: 'Presargonic',
abbreviation: 'PSarg',
description: '(ca. 2475-2300 BCE)',
displayName: null,
parent: null,
},
Sargonic: {
name: 'Sargonic',
abbreviation: 'Sarg',
description: '(ca. 2300-2180 BCE)',
displayName: null,
parent: null,
},
'Ur III': {
Expand All @@ -27,20 +76,21 @@ export const Periods = {
displayName: null,
parent: null,
},
'Old Assyrian': {
name: 'Old Assyrian',
abbreviation: 'OA',
description: '(ca. 1950–1850 BCE)',
displayName: null,
parent: null,
},

'Old Babylonian': {
name: 'Old Babylonian',
abbreviation: 'OB',
description: '(ca. 2002–1595 BCE)',
displayName: null,
parent: null,
},
'Old Assyrian': {
name: 'Old Assyrian',
abbreviation: 'OA',
description: '(ca. 1950–1850 BCE)',
displayName: null,
parent: null,
},
'Middle Babylonian': {
name: 'Middle Babylonian',
abbreviation: 'MB',
Expand All @@ -62,6 +112,13 @@ export const Periods = {
displayName: null,
parent: null,
},
'Middle Elamite': {
name: 'Middle Elamite',
abbreviation: 'MElam',
description: '(c. 1450 – c. 1100 BCE)',
displayName: null,
parent: null,
},
'Neo-Assyrian': {
name: 'Neo-Assyrian',
abbreviation: 'NA',
Expand All @@ -76,6 +133,13 @@ export const Periods = {
displayName: null,
parent: null,
},
'Neo-Elamite': {
name: 'Neo-Elamite',
abbreviation: 'NElam',
description: '(c. 743 – 500 BCE)',
displayName: null,
parent: null,
},
'Late Babylonian': {
name: 'Late Babylonian',
abbreviation: 'LB',
Expand Down Expand Up @@ -104,110 +168,48 @@ export const Periods = {
displayName: null,
parent: 'Late Babylonian',
},
'Uruk IV': {
name: 'Uruk IV',
abbreviation: 'Uruk4',
description: '(ca. 3600-3300 BCE)',
displayName: null,
parent: null,
},
'Uruk III-Jemdet Nasr': {
name: 'Uruk III-Jemdet Nasr',
abbreviation: 'JN',
description: '(ca. 3300-3000 BCE)',
displayName: 'Uruk III/Jemdet Nasr',
parent: null,
},
'ED I-II': {
name: 'ED I-II',
abbreviation: 'ED1-2',
description: '(ca. 3000-2600 BCE)',
displayName: 'ED I/II',
parent: null,
},
Fara: {
name: 'Fara',
abbreviation: 'Fara',
description: '(ca. 2600-2475 BCE)',
displayName: null,
parent: null,
},
Presargonic: {
name: 'Presargonic',
abbreviation: 'PSarg',
description: '(ca. 2475-2300 BCE)',
displayName: null,
parent: null,
},
Sargonic: {
name: 'Sargonic',
abbreviation: 'Sarg',
description: '(ca. 2300-2180 BCE)',
displayName: null,
parent: null,
},
'Proto-Elamite': {
name: 'Proto-Elamite',
abbreviation: 'PElam',
description: '(c. 3200 – c. 2700 BCE)',
displayName: null,
parent: null,
},
'Old Elamite': {
name: 'Old Elamite',
abbreviation: 'OElam',
description: '(c. 2600 – c. 1500 BCE)',
displayName: null,
parent: null,
},
'Middle Elamite': {
name: 'Middle Elamite',
abbreviation: 'MElam',
description: '(c. 1450 – c. 1100 BCE)',
displayName: null,
parent: null,
},
'Neo-Elamite': {
name: 'Neo-Elamite',
abbreviation: 'NElam',
description: '(c. 743 – 500 BCE)',
displayName: null,
parent: null,
},
Uncertain: {
name: 'Uncertain',
abbreviation: 'Unc',
description: '',
displayName: null,
parent: null,
},
None: {
name: 'None',
abbreviation: '',
description: '',
displayName: '-',
parent: null,
},
} as const
export type Period = typeof Periods[keyof typeof Periods]
export const periods = [
Periods.None,
Periods['Uruk IV'],
Periods['Uruk III-Jemdet Nasr'],
Periods['Proto-Elamite'],
Periods['ED I-II'],
Periods.Fara,
Periods['Old Elamite'],
Periods.Presargonic,
Periods.Sargonic,
Periods['Ur III'],
Periods['Old Assyrian'],
Periods['Old Babylonian'],
Periods['Old Assyrian'],
Periods['Middle Babylonian'],
Periods['Middle Assyrian'],
Periods.Hittite,
Periods['Middle Elamite'],
Periods['Neo-Assyrian'],
Periods['Neo-Babylonian'],
Periods['Neo-Elamite'],
Periods['Late Babylonian'],
Periods.Persian,
Periods.Hellenistic,
Periods.Parthian,
Periods['Uruk IV'],
Periods['Uruk III-Jemdet Nasr'],
Periods['ED I-II'],
Periods.Fara,
Periods.Presargonic,
Periods.Sargonic,
Periods['Proto-Elamite'],
Periods['Old Elamite'],
Periods['Middle Elamite'],
Periods['Neo-Elamite'],
Periods.Uncertain,
Periods.None,
] as const

export const Stages = {
Expand Down
Loading

0 comments on commit f3775ae

Please sign in to comment.