mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 03:27:05 -04:00
Fetch banner.txt from public URL instead of config (#1216)
This commit is contained in:
parent
e1d096ba1d
commit
0264e9a420
14 changed files with 161 additions and 87 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -28,10 +28,6 @@ export const initialState: Config = {
|
|||
name: '',
|
||||
logo: ''
|
||||
},
|
||||
banner: {
|
||||
text: '',
|
||||
timestamp: ''
|
||||
},
|
||||
customAuthNames: {
|
||||
ldap: '',
|
||||
oauth2: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue