From 5176eaba81f4cda6cd5a14108c3516abd8ba0c84 Mon Sep 17 00:00:00 2001
From: Alexander Tkachev
Date: Thu, 16 Jun 2016 19:47:02 +0600
Subject: CLOUD: Add wwwroot
wwwroot.zip contains ScummVM local webserver's resources, such as
template html pages, styles and images.
One can make it from wwwroot directory contents by running
make_archive.py script.
It's added to scummvm.rc, so it's included in the executable (it works
with MinGW, but I was unable to do that in VS yet).
IndexPageHandler is the one who returns these resources. It uses
index.html for "/". I'm replacing "{message}" with translated message,
so that's the way I thought the templates should work.
---
backends/networking/wwwroot/favicon.ico | Bin 0 -> 94081 bytes
backends/networking/wwwroot/index.html | 18 ++++++++++++++++++
backends/networking/wwwroot/logo.png | Bin 0 -> 132967 bytes
backends/networking/wwwroot/style.css | 21 +++++++++++++++++++++
4 files changed, 39 insertions(+)
create mode 100644 backends/networking/wwwroot/favicon.ico
create mode 100644 backends/networking/wwwroot/index.html
create mode 100644 backends/networking/wwwroot/logo.png
create mode 100644 backends/networking/wwwroot/style.css
(limited to 'backends/networking/wwwroot')
diff --git a/backends/networking/wwwroot/favicon.ico b/backends/networking/wwwroot/favicon.ico
new file mode 100644
index 0000000000..0283e8432e
Binary files /dev/null and b/backends/networking/wwwroot/favicon.ico differ
diff --git a/backends/networking/wwwroot/index.html b/backends/networking/wwwroot/index.html
new file mode 100644
index 0000000000..2a3d9d382d
--- /dev/null
+++ b/backends/networking/wwwroot/index.html
@@ -0,0 +1,18 @@
+
+
+
+ ScummVM
+
+
+
+
+
+
+
+
+
+
{message}
+
+
+
+
\ No newline at end of file
diff --git a/backends/networking/wwwroot/logo.png b/backends/networking/wwwroot/logo.png
new file mode 100644
index 0000000000..9fdd2d0d1e
Binary files /dev/null and b/backends/networking/wwwroot/logo.png differ
diff --git a/backends/networking/wwwroot/style.css b/backends/networking/wwwroot/style.css
new file mode 100644
index 0000000000..f092b058a8
--- /dev/null
+++ b/backends/networking/wwwroot/style.css
@@ -0,0 +1,21 @@
+body, .header { background: #FFCC33; }
+
+.container {
+ width: 80%;
+ margin: 0 auto;
+}
+
+.header {
+ padding: 10pt;
+ /*margin: 8pt;*/
+ margin-bottom: 0;
+}
+
+.content {
+ padding: 8pt;
+ background: rgb(251, 241, 206);
+ font-family: Tahoma;
+ font-size: 16pt;
+}
+
+.content p { margin: 0 0 6pt 0; }
\ No newline at end of file
--
cgit v1.2.3
From 81106b04440d76238da0fa0166eb3032b6db591e Mon Sep 17 00:00:00 2001
From: Alexander Tkachev
Date: Sat, 18 Jun 2016 15:54:55 +0600
Subject: CLOUD: Update local server's style.css
---
backends/networking/wwwroot/style.css | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
(limited to 'backends/networking/wwwroot')
diff --git a/backends/networking/wwwroot/style.css b/backends/networking/wwwroot/style.css
index f092b058a8..75c8378229 100644
--- a/backends/networking/wwwroot/style.css
+++ b/backends/networking/wwwroot/style.css
@@ -1,4 +1,8 @@
-body, .header { background: #FFCC33; }
+html {
+ background: rgb(212, 117, 11);
+ background: linear-gradient(to bottom, rgb(212, 117, 11) 0%, rgb(212, 117, 11) 36%, rgb(239, 196, 24) 100%);
+ height: 100vh;
+}
.container {
width: 80%;
@@ -7,7 +11,6 @@ body, .header { background: #FFCC33; }
.header {
padding: 10pt;
- /*margin: 8pt;*/
margin-bottom: 0;
}
@@ -18,4 +21,4 @@ body, .header { background: #FFCC33; }
font-size: 16pt;
}
-.content p { margin: 0 0 6pt 0; }
\ No newline at end of file
+.content p { margin: 0 0 6pt 0; }
--
cgit v1.2.3
From c409d29f66057a1a2c0e405e60cc8aa5623bc52f Mon Sep 17 00:00:00 2001
From: Alexander Tkachev
Date: Tue, 5 Jul 2016 20:42:57 +0600
Subject: CLOUD: Add "/files" handler
Shows the page with controls, but doesn't actually list the directories,
create the specified ones or allows to upload files yet.
---
backends/networking/wwwroot/files.html | 50 ++++++++++++++++++++++++++
backends/networking/wwwroot/style.css | 64 ++++++++++++++++++++++++++++++++++
2 files changed, 114 insertions(+)
create mode 100644 backends/networking/wwwroot/files.html
(limited to 'backends/networking/wwwroot')
diff --git a/backends/networking/wwwroot/files.html b/backends/networking/wwwroot/files.html
new file mode 100644
index 0000000000..8a2788905a
--- /dev/null
+++ b/backends/networking/wwwroot/files.html
@@ -0,0 +1,50 @@
+
+
+
+ ScummVM
+
+
+
+
+