Skip to content

Commit

Permalink
chore: add dark-mode logos and include default filter for the case study
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed May 16, 2024
1 parent 0ef8915 commit 8f5768c
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 24 deletions.
6 changes: 5 additions & 1 deletion composables/use-get-network-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export function useGetNetworkData(params: MaybeRef<GetNetworkDataParams>) {
return useQuery({
queryKey: ["network-data", params] as const,
async queryFn({ queryKey, signal }) {
const [, params] = queryKey;
const [, queryParams] = queryKey;
const params = {
...defaultFilterParams,
...queryParams,
};

const response = await api.GET("/network_visualisation/", {
params: {
Expand Down
2 changes: 1 addition & 1 deletion config/search.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import type { GetSearchResultsParams } from "@/composables/use-get-search-result
/** Default filters to be applied to all queries, e.g. when a DB is shared.
* @example { type_id: [0] }
*/
export const defaultFilterParams: GetSearchResultsParams = {};
export const defaultFilterParams: GetSearchResultsParams = { type_id: [362] };
17 changes: 9 additions & 8 deletions content/system-pages/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
title: Approaching Byzantium
navigation: false
image:
light: /approaching_byzantium_logo.png
dark: /approaching_byzantium_logo.png
leadIn: >-
The [Approaching Byzantium in Ottoman Istanbul](https://www.byzanz-mainz.de/): the Reception of
the Byzantine Heritage of Constantinople by Scholars from the Holy Roman Empire in the 16th
century project analyzes how visiting the city of Constantinople affected the reception of
Byzantium by humanists from the Holy Roman Empire in the 16th century, when the former Byzantine
capital was the seat of the Ottoman Empire.
light: /assets/images/approaching_byzantium_logo.png
dark: /assets/images/apbyz_logo_inv.png
leadIn: "The [Approaching Byzantium in Ottoman
Istanbul](https://www.byzanz-mainz.de/): the Reception of the Byzantine
Heritage of Constantinople by Scholars from the Holy Roman Empire in the 16th
century project analyzes how visiting the city of Constantinople affected the
reception of Byzantium by humanists from the Holy Roman Empire in the 16th
century, when the former Byzantine capital was the seat of the Ottoman
Empire."
links:
- label: View data
href: /data
Expand Down
28 changes: 14 additions & 14 deletions project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@
"brand": "#e63875",
"geojson": "#e63875",
"entityColors": {
"stratigraphic_unit": "#9723c1",
"place": "#69c0ef",
"source": "#D60C19",
"person": "#ffca3a",
"group": "#f48c06",
"move": "#e85d04",
"event": "#ff595e",
"activity": "#9d0208",
"acquisition": "#6a040f",
"feature": "#b8cf5b",
"human_remains": "#3d0066",
"stratigraphic_unit": "#9723c1",
"activity": "#9d0208",
"move": "#e85d04",
"artifact": "#ee6c4d",
"human_remains": "#3d0066",
"person": "#ffca3a",
"feature": "#b8cf5b",
"event": "#ff595e",
"type": "#6a4c93",
"source": "#D60C19",
"file": "#9d4edd",
"type": "#6a4c93"
"group": "#f48c06"
},
"entityDefaultColor": "#666",
"disabledNodeColor": "rgb(400, 400, 400)"
},
"defaultLocale": "en",
"logos": {
"light": "/approaching_byzantium_logo.png",
"dark": "/approaching_byzantium_logo.png",
"withTextLight": "/approaching_byzantium_logo.png",
"withTextDark": "/approaching_byzantium_logo.png"
"light": "/assets/images/approaching_byzantium_logo.png",
"dark": "/assets/images/apbyz_logo_inv.png",
"withTextLight": "/assets/images/approaching_byzantium_logo.png",
"withTextDark": "/assets/images/apbyz_logo_inv.png"
},
"imprint": "acdh-ch",
"twitter": ""
Expand Down
1 change: 1 addition & 0 deletions public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ collections:
i18n: true
# hint: The content
widget: markdown
required: false
modes:
# - raw
- rich_text
Expand Down
Binary file added public/assets/images/apbyz_logo_inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit 8f5768c

Please sign in to comment.