forked from TerriaJS/terriajs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request TerriaJS#6260 from TerriaJS/tsify-sui
TSify StandardUserInterface (et al)
- Loading branch information
Showing
28 changed files
with
1,462 additions
and
1,583 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,32 @@ | ||
# 10. Never support Internet Explorer 11 | ||
|
||
Date: 2022-05-12 | ||
|
||
## Status | ||
|
||
Proposed | ||
|
||
## Context | ||
|
||
A decision was made in [0003-drop-ie11-support](./0003-drop-ie11-support.md) to discontinue support for IE11 in the following way: | ||
|
||
> 4. Deprecate IE11 support ASAP. Add dismissable message to maps warning them | ||
that on November 1, users will be unable to use new releases of Terria maps | ||
in IE11. During the deprecation window, we will not use features that IE11 | ||
doesn't support. On November 1, new releases of Terria maps will display a | ||
message to IE11 users asking them to switch to another browser. They will w | ||
not be able to use Terria in IE. Both messages will include a way for users | ||
to send us feedback so that we can assess the impact. | ||
|
||
We have received no negative feedback about this decision, so we will now move forward with removing IE11 support entirely. | ||
|
||
## Decision | ||
|
||
Drop support for IE11 forever. I.e. | ||
|
||
> 1. Drop IE11 completely with no view of ever going back on that decision. We | ||
upgrade to latest MobX, add service workers, use WASM, etc. | ||
|
||
## Consequences | ||
* We can remove old IE11 support code from the codebase | ||
* Packages can be upgraded and new features such as service workers and WASM can be used |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import PropTypes, { InferProps } from "prop-types"; | ||
import React from "react"; | ||
const MediaQuery = require("react-responsive").default; | ||
|
||
// This should come from some config some where | ||
const small = 768; | ||
const medium = 992; | ||
const large = 1300; | ||
|
||
// Use PropTypes and Typescript because this is widely used from JSX and TSX files | ||
const BreakpointPropTypes = { | ||
children: PropTypes.node | ||
}; | ||
type BreakpointProps = InferProps<typeof BreakpointPropTypes>; | ||
|
||
export function ExtraSmall(props: BreakpointProps) { | ||
return <MediaQuery maxWidth={small}>{props.children}</MediaQuery>; | ||
} | ||
|
||
export function Small(props: BreakpointProps) { | ||
return <MediaQuery maxWidth={small - 1}>{props.children}</MediaQuery>; | ||
} | ||
|
||
export function Medium(props: BreakpointProps) { | ||
return <MediaQuery minWidth={small}>{props.children}</MediaQuery>; | ||
} | ||
|
||
export function Large(props: BreakpointProps) { | ||
return <MediaQuery minWidth={medium}>{props.children}</MediaQuery>; | ||
} | ||
|
||
export function ExtraLarge(props: BreakpointProps) { | ||
return <MediaQuery minWidth={large}>{props.children}</MediaQuery>; | ||
} | ||
|
||
ExtraSmall.propTypes = BreakpointPropTypes; | ||
Small.propTypes = BreakpointPropTypes; | ||
Medium.propTypes = BreakpointPropTypes; | ||
Large.propTypes = BreakpointPropTypes; | ||
ExtraLarge.propTypes = BreakpointPropTypes; |
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.