mirror of https://github.com/jitsi/jitsi-meet
It has been non-functional for a while.pull/10426/head
parent
76a976b5d1
commit
f6f7406d24
@ -1,11 +0,0 @@ |
||||
// @flow
|
||||
|
||||
/** |
||||
* Redux action to signal a color scheme change in the app/sdk. |
||||
* |
||||
* { |
||||
* type: SET_COLOR_SCHEME |
||||
* colorScheme: Object |
||||
* } |
||||
*/ |
||||
export const SET_COLOR_SCHEME = 'SET_COLOR_SCHEME'; |
@ -1,19 +0,0 @@ |
||||
// @flow
|
||||
|
||||
import { SET_COLOR_SCHEME } from './actionTypes'; |
||||
|
||||
/** |
||||
* Dispatches a Redux action to set the color scheme of the app/sdk. |
||||
* |
||||
* @param {Object} colorScheme - The color scheme to set. |
||||
* @returns {{ |
||||
* type: SET_COLOR_SCHEME, |
||||
* colorScheme: Object |
||||
* }} |
||||
*/ |
||||
export function setColorScheme(colorScheme: Object): Object { |
||||
return { |
||||
type: SET_COLOR_SCHEME, |
||||
colorScheme |
||||
}; |
||||
} |
@ -1,6 +1,4 @@ |
||||
// @flow
|
||||
|
||||
export * from './actions'; |
||||
export * from './actionTypes'; |
||||
export * from './functions'; |
||||
export { default as ColorSchemeRegistry } from './ColorSchemeRegistry'; |
||||
|
@ -1,20 +0,0 @@ |
||||
// @flow
|
||||
|
||||
import { MiddlewareRegistry } from '../redux'; |
||||
|
||||
import ColorSchemeRegistry from './ColorSchemeRegistry'; |
||||
import { SET_COLOR_SCHEME } from './actionTypes'; |
||||
|
||||
/** |
||||
* The middleware of the feature {@code base/color-scheme}. |
||||
* |
||||
* @returns {Function} |
||||
*/ |
||||
MiddlewareRegistry.register((/* store */) => next => action => { |
||||
switch (action.type) { |
||||
case SET_COLOR_SCHEME: |
||||
return ColorSchemeRegistry.clear(); |
||||
} |
||||
|
||||
return next(action); |
||||
}); |
@ -1,21 +0,0 @@ |
||||
// @flow
|
||||
|
||||
import _ from 'lodash'; |
||||
|
||||
import { ReducerRegistry } from '../redux'; |
||||
|
||||
import { SET_COLOR_SCHEME } from './actionTypes'; |
||||
|
||||
/** |
||||
* The reducer of the feature {@code base/color-scheme}. |
||||
* |
||||
* @returns {Function} |
||||
*/ |
||||
ReducerRegistry.register('features/base/color-scheme', (state = {}, action) => { |
||||
switch (action.type) { |
||||
case SET_COLOR_SCHEME: |
||||
return _.cloneDeep(action.colorScheme) || state; |
||||
} |
||||
|
||||
return state; |
||||
}); |
Loading…
Reference in new issue