summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/.htaccess12
-rw-r--r--data/default.css117
-rw-r--r--data/img/fuge-icons/README.txt73
-rw-r--r--data/img/fuge-icons/cross.pngbin0 -> 544 bytes
-rw-r--r--data/js/upload_form.js16
-rw-r--r--data/paste-rmd.css73
-rw-r--r--data/paste.css146
-rw-r--r--data/uploads/.htaccess1
8 files changed, 438 insertions, 0 deletions
diff --git a/data/.htaccess b/data/.htaccess
new file mode 100644
index 000000000..bba3837a4
--- /dev/null
+++ b/data/.htaccess
@@ -0,0 +1,12 @@
+<IfModule mod_expires.c>
+ ExpiresActive on
+ ExpiresByType text/css "access plus 1 year"
+ ExpiresByType application/javascript "access plus 1 year"
+</IfModule>
+
+<IfModule mod_headers.c>
+ Header append Cache-Control "public"
+</IfModule>
+
+FileEtag none
+
diff --git a/data/default.css b/data/default.css
new file mode 100644
index 000000000..a9170a92e
--- /dev/null
+++ b/data/default.css
@@ -0,0 +1,117 @@
+html {
+ min-height: 100%;
+ background: #fff;
+}
+
+a {
+ text-decoration: none;
+ color: #048;
+}
+
+a:hover {
+ color: #06C;
+}
+img {
+ border:0;
+}
+body {
+ color: #444;
+ font-family: "Bitstream Vera Sans", "DejaVu Sans", Arial;
+ margin: 0;
+ padding: 0;
+}
+
+p, li {
+ max-width: 800px;
+}
+
+.center {
+ text-align: center;
+ margin-top: 100px;
+}
+.center p {
+ max-width: 100%;
+}
+
+.clearer {
+ clear: both;
+ font-size: 0;
+}
+
+.small {
+ font-size:70%;
+}
+
+.top {
+ background: #444;
+ color: #fff;
+ padding-left: 5px;
+ padding-top: 5px;
+ padding-bottom: 5px;
+ border-bottom: 3px double gray;
+}
+
+.top .right {
+ float: right;
+ padding-right: 10px;
+}
+
+.top a {
+ color: lightblue;
+}
+
+.content {
+ padding-left:13px;
+ padding-top:13px;
+}
+
+.error h1 {
+ font-size: 18px;
+}
+
+table {
+ border-collapse: collapse;
+}
+
+.results {
+ font-size: 0.75em;
+}
+
+.results th {
+ padding: 0.5em 1em 0.25em 0.25em;
+ background: #fff;
+ border-bottom: 1px solid #999;
+ text-align: left;
+}
+
+.results td {
+ padding: 0.3em 1em 0.3em 0.25em;
+}
+
+.results tr:hover {
+ background: #ddf;
+}
+
+tr.even {
+ background: #eef;
+}
+
+tr.odd {
+ background: #fff;
+}
+
+.example {
+ font-weight: bold;
+}
+
+td.title {
+ text-align: right;
+ color: #999;
+ font-size: 90%;
+ padding: 3px;
+}
+
+td.text {
+ text-align: left;
+ padding: 3px;
+}
diff --git a/data/img/fuge-icons/README.txt b/data/img/fuge-icons/README.txt
new file mode 100644
index 000000000..1092580e3
--- /dev/null
+++ b/data/img/fuge-icons/README.txt
@@ -0,0 +1,73 @@
+Fugue Icons
+
+Copyright (C) 2010 Yusuke Kamiyamane. All rights reserved.
+The icons are licensed under a Creative Commons Attribution
+3.0 license. <http://creativecommons.org/licenses/by/3.0/>
+
+If you can't or don't want to provide a link back, please
+purchase a royalty-free license.
+<http://p.yusukekamiyamane.com/>
+
+I'm unavailable for custom icon design work. But your
+suggestions are always welcome!
+<mailto:p@yusukekamiyamane.com>
+
+------------------------------------------------------------
+
+- geotag
+
+ Copyright (C) Geotag Icon Project. All rights reserved.
+ <http://www.geotagicons.com/>
+
+ Geotag icon is licensed under a Creative Commons
+ Attribution-Share Alike 3.0 license or LGPL.
+ <http://creativecommons.org/licenses/by-sa/3.0/>
+ <http://opensource.org/licenses/lgpl-license.php>
+
+- language
+
+ Copyright (C) Language Icon Project. All rights reserved.
+ <http://www.languageicon.org/>
+
+ Language icon is licensed under a Creative Commons
+ Attribution-Share Alike 3.0 license.
+ <http://creativecommons.org/licenses/by-sa/3.0/>
+
+- open-share
+
+ Copyright (C) Open Share Icon Project. All rights reserved.
+ <http://www.openshareicons.com/>
+
+ Open Share icon is licensed under a Creative Commons
+ Attribution-Share Alike 3.0 license.
+ <http://creativecommons.org/licenses/by-sa/3.0/>
+
+- opml
+
+ Copyright (C) OPML Icon Project. All rights reserved.
+ <http://opmlicons.com/>
+
+ OPML icon is licensed under a Creative Commons
+ Attribution-Share Alike 2.5 license.
+ <http://creativecommons.org/licenses/by-sa/2.5/>
+
+- share
+
+ Copyright (C) Share Icon Project. All rights reserved.
+ <http://shareicons.com/>
+
+ Share icon is licensed under a GPL or LGPL or BSD or
+ Creative Commons Attribution 2.5 license.
+ <http://opensource.org/licenses/gpl-license.php>
+ <http://opensource.org/licenses/lgpl-license.php>
+ <http://opensource.org/licenses/bsd-license.php>
+ <http://creativecommons.org/licenses/by/2.5/>
+
+- xfn
+
+ Copyright (C) Wolfgang Bartelme. All rights reserved.
+ <http://www.bartelme.at/>
+
+ XFN icon is licensed under a Creative Commons
+ Attribution-Share Alike 2.5 license.
+ <http://creativecommons.org/licenses/by-sa/2.5/> \ No newline at end of file
diff --git a/data/img/fuge-icons/cross.png b/data/img/fuge-icons/cross.png
new file mode 100644
index 000000000..6b9fa6dd3
--- /dev/null
+++ b/data/img/fuge-icons/cross.png
Binary files differ
diff --git a/data/js/upload_form.js b/data/js/upload_form.js
new file mode 100644
index 000000000..7a71a5174
--- /dev/null
+++ b/data/js/upload_form.js
@@ -0,0 +1,16 @@
+// check file size before uploading if browser support html5
+if (window.File && window.FileList) {
+ function checkFileUpload(evt) {
+ var f = evt.target.files[0];
+ if (f.size > max_upload_size) {
+ document.getElementById('upload_button').value = "File too big";
+ document.getElementById('upload_button').disabled = true;
+ } else {
+ document.getElementById('upload_button').value = "Upload";
+ document.getElementById('upload_button').disabled = false;
+ }
+ }
+
+ document.getElementById('file').addEventListener('change', checkFileUpload, false);
+}
+
diff --git a/data/paste-rmd.css b/data/paste-rmd.css
new file mode 100644
index 000000000..dade86765
--- /dev/null
+++ b/data/paste-rmd.css
@@ -0,0 +1,73 @@
+/* based on https://bitbucket.org/kevinburke/markdowncss/overview */
+h1, h2, h3, h4 {
+ color: #111111;
+ font-weight: 400;
+}
+h1, h2, h3, h4, h5, p {
+ margin-bottom: 24px;
+ padding: 0;
+}
+h1 {
+ font-size: 2.5em;
+}
+h2 {
+ font-size: 2em;
+ margin: 24px 0 6px;
+}
+h3 {
+ font-size: 1.7em;
+}
+h4 {
+ font-size: 1.5em;
+}
+h5 {
+ font-size: 1.3em;
+}
+li {
+ line-height: 1.5em;
+}
+li ul, li ul {
+ margin-left: 24px;
+}
+p, ul, ol {
+ font-size: 0.9em;
+ line-height: 1.5em;
+ max-width: 740px;
+}
+pre {
+ padding: 0px 24px;
+ max-width: 800px;
+ white-space: pre-wrap;
+}
+code {
+ font-family: Consolas, Monaco, Andale Mono, monospace;
+ line-height: 1.2em;
+ font-size: 0.85em;
+}
+aside {
+ display: block;
+ float: right;
+ width: 390px;
+}
+blockquote {
+ border-left: 0.5em solid #d6d6d6;
+ padding: 0 1em;
+ margin-left:0;
+ max-width: 676px;
+ background: #f6f6f6;
+}
+blockquote cite {
+ font-size:0.85em;
+ line-height:1.3em;
+ color:#bfbfbf;
+}
+blockquote p {
+ color: #666;
+ max-width: 660px;
+}
+hr {
+ width: 740px;
+ text-align: left;
+ margin: 0 auto 0 0;
+ color: #999;
+}
diff --git a/data/paste.css b/data/paste.css
new file mode 100644
index 000000000..c8f165a75
--- /dev/null
+++ b/data/paste.css
@@ -0,0 +1,146 @@
+body {
+ background: #fff;
+ margin:0;
+ padding:0;
+}
+
+.numbers a {
+ padding-left:4px;
+ padding-right:4px;
+ left:0;
+ color: gray;
+ text-decoration: none;
+}
+
+.numbers a:target {
+ background: yellow;
+}
+
+div#highlight_line {
+ background: yellow;
+ display: inline;
+ position: absolute;
+ z-index: -1;
+ left: 0;
+ width: 100%;
+
+}
+
+.content {
+ padding-left:3px;
+}
+
+.top_bar {
+ background: #444;
+ color: #fff;
+ padding-left: 5px;
+ padding-top: 5px;
+ padding-bottom: 5px;
+ border-bottom: 3px double gray;
+}
+
+table {
+ border-collapse: collapse;
+}
+
+table.content {
+ min-width: 100%;
+ color: #444;
+}
+
+table.content td.numbers {
+ vertical-align: top;
+ text-align:right;
+ border-right: 1px solid gray;
+ padding-left: 5px;
+ padding-bottom: 15px;
+}
+
+table.content td.code {
+ vertical-align: top;
+ padding-left:5px;
+ width:100%;
+ padding-bottom: 15px;
+}
+
+table.content td.markdownrender {
+ vertical-align: top;
+ padding-left: 20px;
+ padding-right: 20px;
+ padding-bottom: 15px;
+ width: 100%;
+}
+
+pre {
+ margin-top:1em;
+ margin-bottom:2px;
+}
+
+a.no {
+ text-decoration:none;
+}
+
+a.raw_link {
+ color: lightblue;
+}
+.hll { background-color: #ffffcc }
+.c { color: #408080; font-style: italic } /* Comment */
+.err { border: 1px solid #FF0000 } /* Error */
+.k { color: #008000; font-weight: bold } /* Keyword */
+.o { color: #666666 } /* Operator */
+.cm { color: #408080; font-style: italic } /* Comment.Multiline */
+.cp { color: #BC7A00 } /* Comment.Preproc */
+.c1 { color: #408080; font-style: italic } /* Comment.Single */
+.cs { color: #408080; font-style: italic } /* Comment.Special */
+.gd { color: #A00000 } /* Generic.Deleted */
+.ge { font-style: italic } /* Generic.Emph */
+.gr { color: #FF0000 } /* Generic.Error */
+.gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.gi { color: #00A000 } /* Generic.Inserted */
+.go { color: #808080 } /* Generic.Output */
+.gp { color: #000080; font-weight: bold } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.gt { color: #0040D0 } /* Generic.Traceback */
+.kc { color: #008000; font-weight: bold } /* Keyword.Constant */
+.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #008000 } /* Keyword.Pseudo */
+.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #B00040 } /* Keyword.Type */
+.m { color: #666666 } /* Literal.Number */
+.s { color: #BA2121 } /* Literal.String */
+.na { color: #7D9029 } /* Name.Attribute */
+.nb { color: #008000 } /* Name.Builtin */
+.nc { color: #0000FF; font-weight: bold } /* Name.Class */
+.no { color: #880000 } /* Name.Constant */
+.nd { color: #AA22FF } /* Name.Decorator */
+.ni { color: #999999; font-weight: bold } /* Name.Entity */
+.ne { color: #D2413A; font-weight: bold } /* Name.Exception */
+.nf { color: #0000FF } /* Name.Function */
+.nl { color: #A0A000 } /* Name.Label */
+.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
+.nt { color: #008000; font-weight: bold } /* Name.Tag */
+.nv { color: #19177C } /* Name.Variable */
+.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
+.w { color: #bbbbbb } /* Text.Whitespace */
+.mf { color: #666666 } /* Literal.Number.Float */
+.mh { color: #666666 } /* Literal.Number.Hex */
+.mi { color: #666666 } /* Literal.Number.Integer */
+.mo { color: #666666 } /* Literal.Number.Oct */
+.sb { color: #BA2121 } /* Literal.String.Backtick */
+.sc { color: #BA2121 } /* Literal.String.Char */
+.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
+.s2 { color: #BA2121 } /* Literal.String.Double */
+.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
+.sh { color: #BA2121 } /* Literal.String.Heredoc */
+.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
+.sx { color: #008000 } /* Literal.String.Other */
+.sr { color: #BB6688 } /* Literal.String.Regex */
+.s1 { color: #BA2121 } /* Literal.String.Single */
+.ss { color: #19177C } /* Literal.String.Symbol */
+.bp { color: #008000 } /* Name.Builtin.Pseudo */
+.vc { color: #19177C } /* Name.Variable.Class */
+.vg { color: #19177C } /* Name.Variable.Global */
+.vi { color: #19177C } /* Name.Variable.Instance */
+.il { color: #666666 } /* Literal.Number.Integer.Long */
diff --git a/data/uploads/.htaccess b/data/uploads/.htaccess
new file mode 100644
index 000000000..8d2f25636
--- /dev/null
+++ b/data/uploads/.htaccess
@@ -0,0 +1 @@
+deny from all