-
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.
feature: add expo module config and static redirect page (#54)
* feature: add expo module config and static redirect page This adds Atlas to the additional devtools list in the Expo CLI. * refactor: style the static Atlas redirect page * fix(webui): convert source URLs to localhost This is to avoid "unauthorized request" errors in Metro.
- Loading branch information
Showing
4 changed files
with
68 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"platforms": ["devtools"], | ||
"devtools": { | ||
"webpageRoot": "static" | ||
} | ||
} |
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,56 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="refresh" content="0; url=/_expo/atlas" /> | ||
|
||
<title>Expo Atlas - Redirecting...</title> | ||
|
||
<script type="text/javascript"> | ||
window.location.href = '/_expo/atlas'; | ||
</script> | ||
|
||
<style> | ||
html, :host { | ||
-webkit-text-size-adjust: 100%; | ||
-moz-tab-size: 4; | ||
-o-tab-size: 4; | ||
tab-size: 4; | ||
-webkit-font-feature-settings: normal; | ||
font-feature-settings: normal; | ||
font-variation-settings: normal; | ||
-webkit-tap-highlight-color: transparent; | ||
font-family: ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji; | ||
line-height: 1.5 | ||
} | ||
|
||
html, body, main { | ||
background-color: #0c0d0e; | ||
height: auto; | ||
min-height: 100vh; | ||
margin: 0; | ||
padding: 0; | ||
color: #ecedee; | ||
} | ||
|
||
main { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
h2 { | ||
margin: 1rem; | ||
font-size: 1.125rem; | ||
} | ||
|
||
a { color: inherit } | ||
</style> | ||
</head> | ||
<body> | ||
<main> | ||
<h2>Redirecting.</h2> | ||
<p>Opening Atlas for your project, <a href="/_expo/atlas">click here</a> if that doesn't happen automatically</p> | ||
</main> | ||
</body> | ||
</html> |
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