Skip to content

Commit

Permalink
shinylive
Browse files Browse the repository at this point in the history
  • Loading branch information
hazelvaq committed Aug 20, 2024
1 parent 153dcfe commit b581661
Show file tree
Hide file tree
Showing 505 changed files with 1,372,800 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ vignettes/*.pdf
# R Environment Variables
.Renviron

# pkgdown site
docs/

# translation temp files
po/*~

Expand Down
1 change: 1 addition & 0 deletions docs/app.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions docs/edit/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Redirect to editable app</title>
<meta
http-equiv="refresh"
content="0;URL='../index.html?_shinylive-mode=editor-terminal-viewer'"
/>
</head>
<body></body>
</html>
28 changes: 28 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Shiny App</title>
<script
src="./shinylive/load-shinylive-sw.js"
type="module"
></script>
<script type="module">
import { runExportedApp } from "./shinylive/shinylive.js";
runExportedApp({
id: "root",
appEngine: "r",
relPath: "",
});
</script>
<link rel="stylesheet" href="./shinylive/style-resets.css" />
<link rel="stylesheet" href="./shinylive/shinylive.css" />

</head>
<body>

<div style="height: 100vh; width: 100vw" id="root"></div>

</body>
</html>
Loading

0 comments on commit b581661

Please sign in to comment.