-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial TS support * install some @types, local typings / overrides * use polyfill.io for all polyfilling needs * ditch obsolete scripts and generators * ditch babel
- Loading branch information
Showing
58 changed files
with
13,167 additions
and
18,218 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
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,6 @@ | ||
declare module '*.png' { | ||
const value: string | ||
export default value | ||
} | ||
|
||
declare module 'intl/locale-data/jsonp/*' |
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,9 @@ | ||
import '@material-ui/core' | ||
|
||
declare module '@material-ui/core' { | ||
// workaround for MUI@4 not having ref in BoxProps | ||
// https://github.com/mui-org/material-ui/issues/17010 | ||
interface BoxProps { | ||
ref?: React.Ref<any> | ||
} | ||
} |
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 |
---|---|---|
@@ -1,32 +1,9 @@ | ||
/* embed/index.js - embedded browser entry point */ | ||
// Needed for redux-saga es6 generator support | ||
import '@babel/polyfill' | ||
|
||
import * as React from 'react' | ||
import ReactDOM from 'react-dom' | ||
|
||
import { translationMessages } from '../i18n' | ||
|
||
import Embed from './Embed' | ||
|
||
const polyfills = [] | ||
|
||
// Chunked polyfill for browsers without Intl support | ||
if (!window.Intl) | ||
polyfills.push( | ||
import('intl').then(() => Promise.all([import('intl/locale-data/jsonp/en.js')])), | ||
) | ||
|
||
if (!window.ResizeObserver) | ||
polyfills.push( | ||
import('resize-observer-polyfill').then(({ default: RO }) => { | ||
window.ResizeObserver = RO | ||
}), | ||
) | ||
|
||
Promise.all(polyfills).then(() => { | ||
ReactDOM.render( | ||
<Embed messages={translationMessages} />, | ||
document.getElementById('app'), | ||
) | ||
}) | ||
ReactDOM.render(<Embed messages={translationMessages} />, document.getElementById('app')) |
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.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.