Fetch banner.txt from public URL instead of config (#1216)

This commit is contained in:
Tilman Vatteroth 2021-05-03 21:57:55 +02:00 committed by GitHub
parent e1d096ba1d
commit 0264e9a420
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 161 additions and 87 deletions

View file

@ -8,9 +8,8 @@ import { Reducer } from 'redux'
import { BannerActions, BannerActionType, BannerState, SetBannerAction } from './types'
export const initialState: BannerState = {
show: false,
text: '',
timestamp: ''
text: undefined,
lastModified: null
}
export const BannerReducer: Reducer<BannerState, BannerActions> = (state: BannerState = initialState, action: BannerActions) => {

View file

@ -15,11 +15,11 @@ export interface BannerActions extends Action<BannerActionType> {
}
export interface SetBannerAction extends BannerActions {
type: BannerActionType.SET_BANNER
state: BannerState;
}
export interface BannerState {
show: boolean
text: string
timestamp: string
text: string | undefined
lastModified: string | null
}

View file

@ -28,10 +28,6 @@ export const initialState: Config = {
name: '',
logo: ''
},
banner: {
text: '',
timestamp: ''
},
customAuthNames: {
ldap: '',
oauth2: '',