Skip to content

Commit

Permalink
build app as static website
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad1991 committed Mar 19, 2024
1 parent 82be503 commit cb6f2c1
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 315 deletions.
4 changes: 0 additions & 4 deletions BiostatsGithubPage/App/test.R

This file was deleted.

61 changes: 0 additions & 61 deletions BiostatsGithubPage/Testing/app.R

This file was deleted.

7 changes: 0 additions & 7 deletions BiostatsGithubPage/Testing/plotDownload.R

This file was deleted.

3 changes: 0 additions & 3 deletions BiostatsGithubPage/Testing/test.R

This file was deleted.

36 changes: 0 additions & 36 deletions BiostatsGithubPage/Testing/testApp.R

This file was deleted.

8 changes: 0 additions & 8 deletions BiostatsGithubPage/Testing/www/downloadPlot.js

This file was deleted.

18 changes: 0 additions & 18 deletions BiostatsGithubPage/Testing/www/downloadText.js

This file was deleted.

14 changes: 0 additions & 14 deletions BiostatsGithubPage/Testing/www/downloadZip.js

This file was deleted.

4 changes: 0 additions & 4 deletions BiostatsGithubPage/Testing/www/updateField.js

This file was deleted.

52 changes: 0 additions & 52 deletions BiostatsGithubPage/TestingPlotDownload/app.R

This file was deleted.

7 changes: 0 additions & 7 deletions BiostatsGithubPage/TestingPlotDownload/plotConversion.R

This file was deleted.

3 changes: 0 additions & 3 deletions BiostatsGithubPage/TestingPlotDownload/test.R

This file was deleted.

20 changes: 0 additions & 20 deletions BiostatsGithubPage/TestingPlotDownload/www/test.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions deploy.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
setwd("/home/konrad/Documents/GitHub/shinychem")
shinylive::export("./BiostatsGithubPage", "docs", verbose = TRUE)
httpuv::runStaticServer("docs")

2 changes: 1 addition & 1 deletion docs/app.json

Large diffs are not rendered by default.

74 changes: 25 additions & 49 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,52 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Simple Website</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
h1 {
margin: 0;
font-size: 2em;
}
main {
padding: 20px;
text-align: center;
}
footer {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
position: fixed;
width: 100%;
bottom: 0;
}
</style>
</head>
<body>
<header>
<h1>Welcome to My Simple Website</h1>
</header>
<main>
<p>This is a simple static website created using HTML and CSS.</p>
<p>Feel free to modify and expand it according to your needs!</p>
</main>
<footer>
<p>&copy; 2024 My Simple Website. All rights reserved.</p>
</footer>
</body>
</html>
<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 { runApp } from "./shinylive/shinylive.js";
const response = await fetch("./app.json");
if (!response.ok) {
throw new Error("HTTP error loading app.json: " + response.status);
}
const appFiles = await response.json();

const appRoot = document.getElementById("root");
runApp(appRoot, "viewer", {startFiles: appFiles}, "r");
</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>
28 changes: 0 additions & 28 deletions docs/indexOriginal.html

This file was deleted.

0 comments on commit cb6f2c1

Please sign in to comment.