-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
557 changed files
with
11,572 additions
and
23,497 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
src/integration/big-blue-button/Resources/modules/integration/bbb/components/metrics.jsx
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
2 changes: 1 addition & 1 deletion
2
...ion/youtube/Resources/styles/youtube.less → ...ion/youtube/Resources/styles/youtube.scss
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"styles": { | ||
"entry": { | ||
"youtube": "youtube.less" | ||
"youtube": "youtube.scss" | ||
} | ||
} | ||
} |
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
43 changes: 43 additions & 0 deletions
43
src/main/app/Resources/modules/buttons/async/components/button.jsx
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,43 @@ | ||
import React, {forwardRef} from 'react' | ||
import {useDispatch} from 'react-redux' | ||
import omit from 'lodash/omit' | ||
|
||
import {PropTypes as T, implementPropTypes} from '#/main/app/prop-types' | ||
import {constants as apiConst} from '#/main/app/api/constants' | ||
import {ApiRequest as ApiRequestTypes} from '#/main/app/api/prop-types' | ||
import {Button as ButtonTypes} from '#/main/app/buttons/prop-types' | ||
|
||
import {CallbackButton} from '#/main/app/buttons/callback/components/button' | ||
|
||
/** | ||
* Async button. | ||
* Renders a component that will trigger an async call on click. | ||
*/ | ||
const AsyncButton = forwardRef((props, ref) => { | ||
const dispatch = useDispatch() | ||
|
||
return ( | ||
<CallbackButton | ||
{...omit(props, 'request')} | ||
ref={ref} | ||
callback={() => dispatch({ | ||
[apiConst.API_REQUEST]: props.request | ||
})} | ||
> | ||
{props.children} | ||
</CallbackButton> | ||
) | ||
}) | ||
|
||
// for debug purpose, otherwise component is named after the HOC | ||
AsyncButton.displayName = 'AsyncButton' | ||
|
||
implementPropTypes(AsyncButton, ButtonTypes, { | ||
request: T.shape( | ||
ApiRequestTypes.propTypes | ||
).isRequired | ||
}) | ||
|
||
export { | ||
AsyncButton | ||
} |
52 changes: 0 additions & 52 deletions
52
src/main/app/Resources/modules/buttons/async/containers/button.jsx
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.