feat: allow disabling icon changes
This commit is contained in:
parent
6f1ff02c04
commit
efb3407b87
@ -55,6 +55,7 @@ ENV VIKUNJA_API_URL /api/v1
|
|||||||
ENV VIKUNJA_SENTRY_ENABLED false
|
ENV VIKUNJA_SENTRY_ENABLED false
|
||||||
ENV VIKUNJA_SENTRY_DSN https://85694a2d757547cbbc90cd4b55c5a18d@o1047380.ingest.sentry.io/6024480
|
ENV VIKUNJA_SENTRY_DSN https://85694a2d757547cbbc90cd4b55c5a18d@o1047380.ingest.sentry.io/6024480
|
||||||
ENV VIKUNJA_PROJECT_INFINITE_NESTING_ENABLED false
|
ENV VIKUNJA_PROJECT_INFINITE_NESTING_ENABLED false
|
||||||
|
ENV VIKUNJA_ALLOW_ICON_CHANGES true
|
||||||
|
|
||||||
COPY docker/injector.sh /docker-entrypoint.d/50-injector.sh
|
COPY docker/injector.sh /docker-entrypoint.d/50-injector.sh
|
||||||
COPY docker/ipv6-disable.sh /docker-entrypoint.d/60-ipv6-disable.sh
|
COPY docker/ipv6-disable.sh /docker-entrypoint.d/60-ipv6-disable.sh
|
||||||
|
@ -12,5 +12,6 @@ sed -ri "s:^(\s*window.API_URL\s*=)\s*.+:\1 '${VIKUNJA_API_URL}':g" /usr/share/n
|
|||||||
sed -ri "s:^(\s*window.SENTRY_ENABLED\s*=)\s*.+:\1 ${VIKUNJA_SENTRY_ENABLED}:g" /usr/share/nginx/html/index.html
|
sed -ri "s:^(\s*window.SENTRY_ENABLED\s*=)\s*.+:\1 ${VIKUNJA_SENTRY_ENABLED}:g" /usr/share/nginx/html/index.html
|
||||||
sed -ri "s:^(\s*window.SENTRY_DSN\s*=)\s*.+:\1 '${VIKUNJA_SENTRY_DSN}':g" /usr/share/nginx/html/index.html
|
sed -ri "s:^(\s*window.SENTRY_DSN\s*=)\s*.+:\1 '${VIKUNJA_SENTRY_DSN}':g" /usr/share/nginx/html/index.html
|
||||||
sed -ri "s:^(\s*window.PROJECT_INFINITE_NESTING_ENABLED\s*=)\s*.+:\1 '${VIKUNJA_PROJECT_INFINITE_NESTING_ENABLED}':g" /usr/share/nginx/html/index.html
|
sed -ri "s:^(\s*window.PROJECT_INFINITE_NESTING_ENABLED\s*=)\s*.+:\1 '${VIKUNJA_PROJECT_INFINITE_NESTING_ENABLED}':g" /usr/share/nginx/html/index.html
|
||||||
|
sed -ri "s:^(\s*window.ALLOW_ICON_CHANGES\s*=)\s*.+:\1 '${VIKUNJA_ALLOW_ICON_CHANGES}':g" /usr/share/nginx/html/index.html
|
||||||
|
|
||||||
date -uIseconds | xargs echo 'info: started at'
|
date -uIseconds | xargs echo 'info: started at'
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
// If enabled, allows the user to nest projects infinitely, instead of the default 2 levels.
|
// If enabled, allows the user to nest projects infinitely, instead of the default 2 levels.
|
||||||
// This setting might change in the future or be removed completely.
|
// This setting might change in the future or be removed completely.
|
||||||
window.PROJECT_INFINITE_NESTING_ENABLED = false
|
window.PROJECT_INFINITE_NESTING_ENABLED = false
|
||||||
|
// Allow changing the logo and other icons based on various occasions throughout the year.
|
||||||
|
window.ALLOW_ICON_CHANGES = true
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -9,7 +9,7 @@ import {MILLISECONDS_A_HOUR} from '@/constants/date'
|
|||||||
const now = useNow({
|
const now = useNow({
|
||||||
interval: MILLISECONDS_A_HOUR,
|
interval: MILLISECONDS_A_HOUR,
|
||||||
})
|
})
|
||||||
const Logo = computed(() => now.value.getMonth() === 5 ? LogoFullPride : LogoFull)
|
const Logo = computed(() => window.ALLOW_ICON_CHANGES && now.value.getMonth() === 5 ? LogoFullPride : LogoFull)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -24,6 +24,7 @@ declare global {
|
|||||||
SENTRY_ENABLED: boolean;
|
SENTRY_ENABLED: boolean;
|
||||||
SENTRY_DSN: string;
|
SENTRY_DSN: string;
|
||||||
PROJECT_INFINITE_NESTING_ENABLED: boolean;
|
PROJECT_INFINITE_NESTING_ENABLED: boolean;
|
||||||
|
ALLOW_ICON_CHANGES: boolean;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user