mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
enable html5 apps from sitecache/local
This commit is contained in:
parent
3cb1a66d80
commit
c0e90a6090
7 changed files with 73 additions and 60 deletions
|
@ -61,9 +61,19 @@ Click to install the following html5 apps:<br>
|
|||
<h4 id="features">Features</h4>
|
||||
<p>The following mentioned subfolders locate in the configuration folder.</p>
|
||||
<ul>
|
||||
<li>All html5 applications locating in a subfolder whose name begins with "app" (such as "appPDF") are allowed to read local files. Use url "https://local/sdcard/..." for a local file.</li>
|
||||
<li><span style="color:red">All files under the subfolder "app" can be automatically choosed as file objects by any web page</span>.</li>
|
||||
<li><span style="color:red">Local files (including binary files) can be processed by appending "?app=[html5 app url]" to the file urls.</span> Ex. "file:///..../xx.md?app=https://...../app.html" loads "app.html" first, then "app.html" processes the local file.</li>
|
||||
<li>
|
||||
<p>The following html5 applications are allowed to read local files referred by "https://local/sdcard/..." where the "/sdcard/.." part is the full path of the file. The below applications <span style="color:red">can auto choosed any files as file objects</span>.</p>
|
||||
<ul>
|
||||
<li>Locating in a subfolder whose name begins with "app" (such as "appPDF")</li>
|
||||
<li>"https://local/..." applications (only possible with the option "<a href="../offlinecache/index.html">use offline resources</a>" and installed under the folder "sitecache/local/")</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<p><span style="color:red">All files under the subfolder "app" can be automatically choosed as file objects by any web page</span>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><span style="color:red">Local files (including binary files) can be processed by appending "?app=[html5 app url]" to the file urls.</span> Ex. "file:///..../xx.md?app=https://...../app.html" loads "app.html" first, then "app.html" processes the local file.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>With the first approach, the html5 application is installed locally and can read any file allowed by the OS; while in the second approach, the html5 application can be either local or remote, and only files under the subfolder "app" can be accessed; The third approach allows easy access of other external resources (ex. local media).</p>
|
||||
<h4 id="open-local-files-with-html5-apps">Open local files with html5 apps</h4>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue