-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes for localstorage, hydrate-view request, auto-refresh, react bad iframe with maximum z-index * fix fetch data using Storage API, new feature for `Utils.promisify` * fix issue with hidrateViewer where the storage update observable was being used to notify * v1.2.0
- Loading branch information
Showing
14 changed files
with
327 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ dist | |
temp | ||
|
||
# build | ||
/components | ||
/hooks | ||
/auth | ||
/bridge | ||
|
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,12 @@ | ||
/* | ||
This is a palliative feature to fix a bug that happens with react. | ||
When content inside an iframe is updated, react adds an iframe covering the entire | ||
screen using the maximum z-index, thus making any interaction with the application impossible. | ||
Using "react-error-overlay": "6.0.9" didn't fix the issue. | ||
Source: https://stackoverflow.com/questions/69051008/react-injecting-iframe-with-max-z-index-on-reload-after-changes-development | ||
*/ | ||
body > iframe[style*='2147483647']{ | ||
display: none; | ||
} |
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,21 @@ | ||
import React from 'react' | ||
import './spinner.css' | ||
|
||
const Spinner = () => ( | ||
<div style={{ margin: 'auto', paddingTop: '236px', width: '100%' }}> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<div className="lds-ripple"> | ||
<div></div> | ||
<div></div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
|
||
export default Spinner |
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 @@ | ||
export { default as Spinner } from './Spinner' |
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,47 @@ | ||
/* Spinner */ | ||
.lds-ripple { | ||
display: inline-block; | ||
position: relative; | ||
width: 80px; | ||
height: 80px; | ||
} | ||
.lds-ripple div { | ||
position: absolute; | ||
border: 4px solid #000000; | ||
opacity: 1; | ||
border-radius: 50%; | ||
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite; | ||
} | ||
.lds-ripple div:nth-child(2) { | ||
animation-delay: -0.5s; | ||
} | ||
@keyframes lds-ripple { | ||
0% { | ||
top: 36px; | ||
left: 36px; | ||
width: 0; | ||
height: 0; | ||
opacity: 0; | ||
} | ||
4.9% { | ||
top: 36px; | ||
left: 36px; | ||
width: 0; | ||
height: 0; | ||
opacity: 0; | ||
} | ||
5% { | ||
top: 36px; | ||
left: 36px; | ||
width: 0; | ||
height: 0; | ||
opacity: 1; | ||
} | ||
100% { | ||
top: 0px; | ||
left: 0px; | ||
width: 72px; | ||
height: 72px; | ||
opacity: 0; | ||
} | ||
} |
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,15 +1,8 @@ | ||
import isDevelopment from './utils/isDevelopment' | ||
import { initRefreshService } from './utils/refresh' | ||
|
||
export * from './bridge' | ||
export * from './navigation' | ||
export * from './request' | ||
export * from './services' | ||
export * from './session-storage' | ||
export * from './auth' | ||
export * from './hooks' | ||
|
||
// DEV Utils features | ||
if (isDevelopment) { | ||
initRefreshService() | ||
} | ||
export * from './components' |
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
Oops, something went wrong.