Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date converter form #395

Merged
merged 87 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from 85 commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
956b29e
Implement Mesopotamian date, editing component & date converter (WiP)
khoidt Jul 19, 2023
4b3111e
Improve
khoidt Jul 19, 2023
c150438
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Jul 19, 2023
bec1458
Extend (WiP)
khoidt Jul 31, 2023
84c3d60
Fix and update tests
khoidt Aug 1, 2023
d5d212a
Fix tsc
khoidt Aug 1, 2023
36b15ad
Improve & update tests
khoidt Aug 1, 2023
357fdda
Fix tsc
khoidt Aug 1, 2023
0492249
Refactor
khoidt Aug 1, 2023
92dd7c9
Adjust and unify
khoidt Aug 2, 2023
5c1f265
Update & fix
khoidt Aug 5, 2023
1b9279f
Implement date display in fragmentarium search
khoidt Aug 5, 2023
8546d86
Date paleography
khoidt Aug 7, 2023
81e1ccb
Fix tests
khoidt Aug 7, 2023
5b42cba
Make `date` optional in `CroppedAnnotation`
khoidt Aug 7, 2023
3123ba0
Update style
khoidt Aug 7, 2023
e505fd6
Refactor & update
khoidt Aug 7, 2023
e41636e
Add tests & update
khoidt Aug 7, 2023
c3d21d5
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Aug 10, 2023
bb435be
Implement date delete & fix display issue
khoidt Aug 14, 2023
fc1a5d7
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Aug 16, 2023
525ed06
Implement dates in text
khoidt Aug 24, 2023
ad96479
Add tests
khoidt Aug 25, 2023
b0bfd7c
Add more tests
khoidt Aug 25, 2023
22166ea
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Aug 28, 2023
fbfedb7
Adjust date display
khoidt Aug 28, 2023
bf526e1
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Aug 29, 2023
41a0257
Implement eponyms (WiP)
khoidt Sep 4, 2023
5b6675c
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Sep 4, 2023
4df82dc
Add phases and improve selection
khoidt Sep 4, 2023
7460ee8
Extend eponym
khoidt Sep 5, 2023
088c5d3
Improve & add tests
khoidt Sep 5, 2023
111df01
Add & update tests
khoidt Sep 6, 2023
03fc524
Add test for date with eponym string
khoidt Sep 6, 2023
ba52efd
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Sep 7, 2023
ae397c3
Implement date converter
khoidt Sep 21, 2023
b325ede
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Sep 22, 2023
4768f48
Refactor
khoidt Sep 22, 2023
c3fa9fb
Refactor more
khoidt Sep 22, 2023
2f4d3e9
Refactor more
khoidt Sep 22, 2023
1a875b6
Add tests
khoidt Sep 22, 2023
bb5cdcf
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Sep 23, 2023
da5a92a
Patch approximate dates conversion
khoidt Sep 23, 2023
5ae999f
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Sep 25, 2023
725fee6
Restructure
khoidt Sep 25, 2023
14ecf92
Add basic form
khoidt Sep 25, 2023
06860d4
Reorder about tabs
khoidt Sep 25, 2023
d6e6818
Add routes & breadcrumbs to About section
khoidt Sep 26, 2023
3be1327
Add routes to About
khoidt Oct 1, 2023
4d5ced6
Implement form functionality, design & refactor
khoidt Oct 2, 2023
cac6554
Add copy json button & refactor style
khoidt Oct 3, 2023
596a84a
Implement broken date display
khoidt Oct 3, 2023
1c28754
Add options & text display for modern date fields
khoidt Oct 4, 2023
6bec43b
Update description
khoidt Oct 5, 2023
674f3be
Fix cjdn calculator
khoidt Oct 5, 2023
20f9ce2
Julian and Gregorian dates correction (WiP)
khoidt Oct 9, 2023
6bf7be2
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Oct 9, 2023
306a4d3
Implement Gregorian dates
khoidt Oct 10, 2023
9c95b43
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Oct 11, 2023
866c826
Implement Gregorian string output, correct, update & refactor
khoidt Oct 12, 2023
29d7879
Uddate converter & tests (WiP)
khoidt Oct 16, 2023
2560722
Update Gregrian date converter & restrict day fields
khoidt Oct 17, 2023
e509ac7
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Dec 12, 2023
6cd9dbd
Update snap
khoidt Dec 12, 2023
d04d68b
Refactor & improve style
khoidt Dec 12, 2023
7b983b8
Improve & refactor
khoidt Dec 13, 2023
06d046f
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Dec 13, 2023
3dec050
Improve & refactor
khoidt Dec 18, 2023
45c41ea
Improve & refactor
khoidt Dec 18, 2023
1f4bf60
Improve & refactor
khoidt Dec 18, 2023
4fe8bae
Refactor
khoidt Dec 18, 2023
5efd8cb
Improve & refactor
khoidt Dec 20, 2023
f1b442d
Improve & refactor
khoidt Dec 26, 2023
ff9da56
Improve & add tests
khoidt Jan 2, 2024
f6de167
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Jan 2, 2024
43d7c1e
Update snapshots
khoidt Jan 2, 2024
4bc979d
Add tests, refactor & extend options fields (WiP)
khoidt Jan 2, 2024
d7274c6
Implement advanced field options & limits (WiP)
khoidt Jan 4, 2024
e6b5089
Refactor
khoidt Jan 4, 2024
9c2ad93
Work on options and restrictions (WiP)
khoidt Jan 5, 2024
86fb42f
Fix regnal years calculation & tests
khoidt Jan 8, 2024
79b1bbc
Implement ruler selection and Brinkman names
khoidt Jan 8, 2024
bac49d4
Implement tools page & Mes. date guards, improve
khoidt Jan 15, 2024
863c0cb
Merge remote-tracking branch 'origin/master' into add-date-to-fragment
khoidt Jan 15, 2024
01df76d
Add tests
khoidt Jan 16, 2024
139dcb9
Update tests
khoidt Jan 16, 2024
32e3d43
Clean up
khoidt Jan 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@
text-shadow: -1.5px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black,
1px 1px 0 black;
}

#navbar-container {
width: 100%;
}

#menu-lines {
padding: 0 40px;
}
45 changes: 29 additions & 16 deletions src/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { LinkContainer } from 'react-router-bootstrap'
import _ from 'lodash'

import User from './auth/User'

import './Header.css'
import lmuLogo from './LMU_Logo.svg'
import ExternalLink from 'common/ExternalLink'
Expand Down Expand Up @@ -55,24 +54,38 @@ export default function Header(): JSX.Element {
<EblLogo />
</Navbar.Brand>
</LinkContainer>
<Navbar.Toggle aria-controls={id} />
<Navbar.Collapse id={id}>
<Nav
activeKey={activeKey}
onSelect={(key) => setActiveKey(key ?? undefined)}
className="mx-auto"
<div
id="navbar-container"
className="d-flex justify-content-between"
>
<NavItem href="/about" title="About" />
<NavItem href="/signs" title="Signs" />
<NavItem href="/dictionary" title="Dictionary" />
<NavItem href="/corpus" title="Corpus" />
<NavItem href="/fragmentarium" title="Fragmentarium" />
<NavItem href="/bibliography" title="Bibliography" />
</Nav>
<Navbar.Text>
<User />
</Navbar.Text>
<div id="menu-lines">
<Nav
activeKey={activeKey}
onSelect={(key) => setActiveKey(key ?? undefined)}
className="mx-auto"
>
<NavItem href="/signs" title="Signs" />
<NavItem href="/dictionary" title="Dictionary" />
<NavItem href="/corpus" title="Corpus" />
<NavItem href="/fragmentarium" title="Fragmentarium" />
</Nav>
<Nav
activeKey={activeKey}
onSelect={(key) => setActiveKey(key ?? undefined)}
className="mx-auto"
>
<NavItem href="/about" title="About" />
<NavItem href="/bibliography" title="Bibliography" />
<NavItem href="/tools" title="Tools" />
</Nav>
</div>
<Navbar.Text id="user">
<User />
</Navbar.Text>
</div>
</Navbar.Collapse>
<Navbar.Toggle aria-controls={id} />
</Container>
</Navbar>
</header>
Expand Down
11 changes: 0 additions & 11 deletions src/about/ui/__snapshots__/about.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,6 @@ exports[`Snapshot 1`] = `
>
Bibliography
</a>
<a
aria-controls="about-tabpane-list-of-kings"
aria-selected="false"
class="nav-item nav-link"
data-rb-event-key="list-of-kings"
href="#"
id="about-tab-list-of-kings"
role="tab"
>
List of kings
</a>
</nav>
<div
class="tab-content"
Expand Down
140 changes: 69 additions & 71 deletions src/about/ui/about.sass
Original file line number Diff line number Diff line change
@@ -1,96 +1,94 @@
[id^="about-tabpane-"].tab-pane
[id^="about-tabpane-"], [id^="tools-tabpane-"]
&.tab-pane
padding-top: 30px

.tab-content:has([id^="about-tabpane-"])
.tab-content:has(&)
text-align: justify
padding: 0em 4em

[id^="about-tabpane-"] .type-abbreviation
display: none
.type-abbreviation
display: none

[id^="about-tabpane-"] h3
padding-top: 10px
clear: left
h3
padding-top: 10px
clear: left

[id^="about-tabpane-"] h4
padding-top: 10px
h4
padding-top: 10px

[id^="about-tabpane-"] blockquote
padding-left: 40%
blockquote
padding-left: 40%

[id^="about-tabpane-"] .Introduction
.Introduction
&__200px
width: 200px
height: auto

&__200px
width: 200px
height: auto
&__250px
width: 250px
height: auto

&__250px
width: 250px
height: auto
&__300px
width: 300px
height: auto

&__300px
width: 300px
height: auto
&__350px
width: 350px
height: auto

&__350px
width: 350px
height: auto
&__400px
width: 400px
height: auto

&__400px
width: 400px
height: auto
&__450px
width: 450px
height: auto

&__450px
width: 450px
height: auto
&__caption
font-size: 80%
padding-top: 0.5em
text-align: center

&__caption
font-size: 80%
padding-top: 0.5em
text-align: center
&__cite
border: 1px solid black
display: block
margin: 10px auto
width: 70%
padding: 10px
text-align: center

&__cite
border: 1px solid black
display: block
margin: 10px auto
width: 70%
padding: 10px
text-align: center
&__creativecommons
border-width: 0
margin: auto
display: block
padding: 10px

&__creativecommons
border-width: 0
margin: auto
display: block
padding: 10px
&__creativeCommonsLicense
text-align: center

&__creativeCommonsLicense
text-align: center
&__fossey
float: right
width: 300px
height: auto
padding: 1em 0em 1em 1em

&__fossey
float: right
width: 300px
height: auto
padding: 1em 0em 1em 1em
&__meszlColoredChanges
color: #00610F

&__meszlColoredChanges
color: #00610F
&__photoCentered, &__photoLeft, &__photoRight
text-align: center

&__photoCentered
text-align: center
&__photoLeft, &__photoRight
float: left
margin: 0em 0.5em 0em 0em

&__photoLeft
text-align: center
float: left
margin: 0em 0.5em 0em 0em
&__photoRight
float: right
margin: 0em 0em 0.5em 0.5em

&__photoRight
text-align: center
float: right
margin: 0em 0em 0.5em 0.5em
&__quotation
display: block
padding: 0 0 1em 1em

&__quotation
display: block
padding: 0 0 1em 1em

&__secondLineOfParallelism
padding-left: 1em
&__secondLineOfParallelism
padding-left: 1em
6 changes: 1 addition & 5 deletions src/about/ui/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import AboutCorpus from 'about/ui/corpus'
import AboutSigns from 'about/ui/signs'
import AboutDictionary from 'about/ui/dictionary'
import AboutBibliography from 'about/ui/bibliography'
import AboutListOfKings from 'about/ui/chronology'
import _ from 'lodash'

export const tabIds = [
Expand Down Expand Up @@ -44,7 +43,7 @@ export default function About({
title="About"
crumbs={[
new TextCrumb('About'),
new TextCrumb(_.capitalize(selectedTab).replaceAll('-', ' ')),
new TextCrumb(_.capitalize(selectedTab)),
]}
>
<Tabs
Expand Down Expand Up @@ -72,9 +71,6 @@ export default function About({
<Tab eventKey="bibliography" title="Bibliography">
{AboutBibliography(markupService)}
</Tab>
<Tab eventKey="list-of-kings" title="List of kings">
{AboutListOfKings()}
</Tab>
</Tabs>
</AppContent>
)
Expand Down
2 changes: 1 addition & 1 deletion src/afo-register/ui/AfoRegisterSearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function AfoRegisterIntroduction(): JSX.Element {
<Markdown
className="AfoRegister__introduction"
text="The [AfO-Register](https://orientalistik.univie.ac.at/publikationen/afo/register/) (Archiv für Orientforschung: Register Assyriologie),
curated by the Department of Near Eastern Studies of the University of Vienna, is an essential bibliographic bibliographic tool for Ancient Near.
curated by the Department of Near Eastern Studies of the University of Vienna, is an essential bibliographic tool for Ancient Near
Eastern Studies. Starting with Volume 25 (1974–1977), it has published comprehensive bibliographies of new Assyriological literature and an
index in most volumes, categorized by subject areas, Akkadian and Sumerian words, and texts and passages. With the kind permission of the AfO
Redaktion, the Register has been digitized and made searchable by the eBL team, thus enhancing its accessibility for researchers,
Expand Down
Loading
Loading