Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogier Bom committed Nov 4, 2023
2 parents df6a43b + fef287a commit 032e40b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/DataEditor/DataEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function renderImage(item: any) {
function getResult() {
manifestStore.resetItems()
manifestStore.resetTerms()
let url =
'https://nijdam.nu/maniiifision-api/?imageUrl=' +
manifestStore.getCurrentImage() +
Expand All @@ -49,10 +48,7 @@ function getResult() {
response.json().then((data) => {
manifestStore.updateItems(data.responses[0].localizedObjectAnnotations)
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
this.imageData = data.imageData
// NOTE: will stuff break if removed? Feels like writing to this. in a => function is useless
imageData.value = data.imageData
data.responses[0].localizedObjectAnnotations.forEach((item: any) => {
fetchTerms(item.name_nl)
Expand Down
13 changes: 13 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,16 @@ button:focus-visible {
padding: 2rem;
text-align: center;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}

0 comments on commit 032e40b

Please sign in to comment.