-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update blur background feature (#173)
* update blur background feature * re-add vite eslint plugin * use camelcase * fix import path
- Loading branch information
Showing
23 changed files
with
1,523 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Middleware } from '@reduxjs/toolkit'; | ||
import { MiddlewareOptions } from '../store'; | ||
import { Logger } from 'edumeet-common'; | ||
import { meActions } from '../slices/meSlice'; | ||
|
||
const logger = new Logger('EffectsMiddleware'); | ||
|
||
/** | ||
* @param options - Middleware options. | ||
* @returns {Middleware} Redux middleware. | ||
*/ | ||
const createEffectsMiddleware = ({ | ||
effectsService, | ||
}: MiddlewareOptions): Middleware => { | ||
logger.debug('createEffectsMiddleware()'); | ||
|
||
const middleware: Middleware = () => | ||
(next) => async (action) => { | ||
if (meActions.setWebGLSupport.match(action)) { | ||
effectsService.webGLSupport = true; | ||
} | ||
|
||
return next(action); | ||
}; | ||
|
||
return middleware; | ||
}; | ||
|
||
export default createEffectsMiddleware; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.