Skip to content

Commit 6a40156

Browse files
committed
chore: make footer logos configurable
1 parent c45c533 commit 6a40156

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

apps/frontend/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
VITE_API_URL=http://localhost:3000
22
VITE_THEME_COLOR=quassel
33
VITE_TITLE=Quassel
4+
VITE_LOGOS=

apps/frontend/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
apiUrl: '$API_URL',
2626
themeColor: '$THEME_COLOR',
2727
title: '$TITLE',
28+
logos: '$LOGOS',
2829
};
2930
</script>
3031
</head>

apps/frontend/src/configuration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const C = {
1010
apiUrl: getEnv("apiUrl") || import.meta.env.VITE_API_URL,
1111
themeColor: getEnv("themeColor") || import.meta.env.VITE_THEME_COLOR,
1212
title: getEnv("title") || import.meta.env.VITE_TITLE,
13+
logos: getEnv("logos") || import.meta.env.VITE_LOGOS,
1314
},
1415
ui: {
1516
maxDropdownHeight: 800,

apps/frontend/src/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ declare global {
2727
apiUrl?: string;
2828
themeColor?: string;
2929
title?: string;
30+
logos?: string;
3031
};
3132
}
3233
}

examples/public/docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ services:
7777
API_URL: https://api.test.example.com
7878
THEME_COLOR: uzhGold
7979
TITLE: LEMON
80+
LOGOS: "[{\"path\": \"/logos/uzh-logo.svg\", \"alt\": \"University of Zurich Logo\", \"url\": \"https://uzh.ch\"}, {\"path\": \"/logos/weltentdecker-logo.png\", \"alt\": \"Kleine Weltentdecker Logo\", \"url\": \"https://www.psychologie.uzh.ch/de/bereiche/dev/devpsy/Weltentdecker.html\"}]"
8081
volumes:
8182
- ./logo.svg:/usr/share/nginx/html/logo.svg
83+
- ./logos/:/usr/share/nginx/html/logos/
8284
labels:
8385
- "com.centurylinklabs.watchtower.enable=true"
8486
- "traefik.enable=true"

0 commit comments

Comments
 (0)