Add LFSA and en PSKOV

This commit is contained in:
2019-05-31 16:59:54 +03:00
parent 04d3b8a79a
commit 296ad257c5
25 changed files with 2792 additions and 262 deletions

134
lfsa/en/index.html Normal file
View File

@@ -0,0 +1,134 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<style>
#header
{
background: #d86323;
padding: 0.7em;
text-align: left;
}
#header a
{
color: white;
text-decoration: none;
padding: 0.5em 1em 0.5em 1em;
}
#title
{
color: #6d2113;
}
img
{
width: 100%;
}
html
{
font-family: sans-serif;
}
body
{
line-height: 1.5em;
}
body
{
background: #FAFAFA;
}
table
{
border-collapse: collapse;
width: 100%;
}
table, th, td
{
border: 1px solid #aaa;
padding: 0.5em;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
code, pre
{
font-family: monospace, serif;
font-size: 1em;
color: #7f0a0c;
background: #f5f5f5;
white-space: pre-wrap;
}
.contents
{
background: #FFFFFF;
width: 720px;
padding: 1em;
margin-top: 2em;
margin-bottom: 2em;
border: 1px solid #E0E0E0;
text-align: left;
color: #444;
}
#footer
{
text-align: center;
}
#lang
{
float: right;
}
</style>
<title>
Local File System Access (LFSA) for Client Side Web Apps (CSWA)
</title>
</head>
<body>
<div id="header">
<strong id="title">LFSA</strong>
<div id="lang">
<a href="../en/index.html">EN</a>
<a href="../ru/index.html">RU</a>
</div>
</div>
<center><h1>
</h1></center>
<center><div class="contents">
<h2 id="overview">Overview</h2>
<p>Local File System Access (LFSA) is:</p>
<ul>
<li>a tiny web server to allow client side JS access to local file system</li>
<li>a buildling block for Client Side Web Apps (CSWA)</li>
<li>a single Python file</li>
</ul>
<h2 id="cswa">CSWA</h2>
<p>Client Side Web Apps run solely on your device, they are not related to cloud solutions in any way: nobody can pull the plug on you.
CSWAs use LFSA to keep data at your hard drive, so you have complete control of your data.</p>
<p><a href="http://opengamestudio.org/pskov">PSKOV</a> static site generator is the first CSWA to use LFSA.</p>
<h2 id="install">Install</h2>
<p>If you use Linux or macOS released after 2005 (yes, 2005), you only need to <a href="../lfsa-201905.py">download lfsa-201905.py</a>.</p>
<p>If you use Windows 2000 or newer (excluding Windows ME), you need to:</p>
<ul>
<li><a href="https://www.python.org/downloads/windows/">download</a> and install Python 2.3 or newer</li>
<li><a href="../lfsa-201905.py">download lfsa-201905.py</a></li>
</ul>
<h2 id="run">Run</h2>
<p>If you use Linux or macOS, run LFSA in Terminal this way:</p>
<pre><code>/path/to/lfsa-201905.py /path/to/dir
</code></pre>
<p>Here's how it looks like on macOS Mojave:</p>
<p><img src="../img/lfsa-on-macos.png" alt="LFSA on macOS Mojave" /></p>
<p>If you use Windows, run LFSA in <a href="https://en.wikipedia.org/wiki/Cmd.exe">CMD</a> this way:</p>
<pre><code>C:/path/to/Python/installation/python.exe C:/path/to/lfsa-201905.py C:/path/to/dir
</code></pre>
<p>Here's how it looks like on Windows 2000:</p>
<p><img src="../img/lfsa-on-windows.png" alt="LFSA on Windows 2000" /></p>
<h2 id="durability">Durability</h2>
<p>As you noticed, LFSA can run on really old operating systems dating back to 2000. That's intentional: we care about users, so we want to cover as many users as possible.</p>
</div></center>
<div id="footer">
This site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>.
Source code is <a href="http://github.com/ogstudio/site-lfsa">here</a>.
</div>
<script type="text/javascript">
</script>
</body>
</html>

62
lfsa/en/index.md Normal file
View File

@@ -0,0 +1,62 @@
Title: Index
Date: 2019-05-30 00:00
Category: Page
Slug: index
Lang: en
## Overview
Local File System Access (LFSA) is:
* a tiny web server to allow client side JS access to local file system
* a buildling block for Client Side Web Apps (CSWA)
* a single Python file
## CSWA
Client Side Web Apps run solely on your device, they are not related to cloud solutions in any way: nobody can pull the plug on you.
CSWAs use LFSA to keep data at your hard drive, so you have complete control of your data.
[PSKOV][pskov] static site generator is the first CSWA to use LFSA.
## Install
If you use Linux or macOS released after 2005 (yes, 2005), you only need to [download lfsa-201905.py][lfsa-local].
If you use Windows 2000 or newer (excluding Windows ME), you need to:
* [download][python] and install Python 2.3 or newer
* [download lfsa-201905.py][lfsa-local]
## Run
If you use Linux or macOS, run LFSA in Terminal this way:
```
/path/to/lfsa-201905.py /path/to/dir
```
Here's how it looks like on macOS Mojave:
![LFSA on macOS Mojave][lfsa-on-macos]
If you use Windows, run LFSA in [CMD][cmd] this way:
```
C:/path/to/Python/installation/python.exe C:/path/to/lfsa-201905.py C:/path/to/dir
```
Here's how it looks like on Windows 2000:
![LFSA on Windows 2000][lfsa-on-windows]
## Durability
As you noticed, LFSA can run on really old operating systems dating back to 2000. That's intentional: we care about users, so we want to cover as many users as possible.
[pskov]: http://opengamestudio.org/pskov
[lfsa-local]: ../lfsa-201905.py
[python]: https://www.python.org/downloads/windows/
[cmd]: https://en.wikipedia.org/wiki/Cmd.exe
[lfsa-on-macos]: ../img/lfsa-on-macos.png
[lfsa-on-windows]: ../img/lfsa-on-windows.png

104
lfsa/en/item.template Normal file
View File

@@ -0,0 +1,104 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<style>
#header
{
background: #d86323;
padding: 0.7em;
text-align: left;
}
#header a
{
color: white;
text-decoration: none;
padding: 0.5em 1em 0.5em 1em;
}
#title
{
color: #6d2113;
}
img
{
width: 100%;
}
html
{
font-family: sans-serif;
}
body
{
line-height: 1.5em;
}
body
{
background: #FAFAFA;
}
table
{
border-collapse: collapse;
width: 100%;
}
table, th, td
{
border: 1px solid #aaa;
padding: 0.5em;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
code, pre
{
font-family: monospace, serif;
font-size: 1em;
color: #7f0a0c;
background: #f5f5f5;
white-space: pre-wrap;
}
.contents
{
background: #FFFFFF;
width: 720px;
padding: 1em;
margin-top: 2em;
margin-bottom: 2em;
border: 1px solid #E0E0E0;
text-align: left;
color: #444;
}
#footer
{
text-align: center;
}
#lang
{
float: right;
}
</style>
<title>
Local File System Access (LFSA) for Client Side Web Apps (CSWA)
</title>
</head>
<body>
<div id="header">
<strong id="title">LFSA</strong>
<div id="lang">
<a href="../en/PSKOV_ITEM_URL">EN</a>
<a href="../ru/PSKOV_ITEM_URL">RU</a>
</div>
</div>
<center><h1>
</h1></center>
<center><div class="contents">
PSKOV_ITEM_CONTENTS
</div></center>
<div id="footer">
This site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>.
Source code is <a href="http://github.com/ogstudio/site-lfsa">here</a>.
</div>
<script type="text/javascript">
</script>
</body>
</html>