rebuilding site Mon Aug 24 10:55:04 AM CST 2020

This commit is contained in:
James Feng Cao 2020-08-24 10:55:05 +08:00
parent 3e2ef52000
commit c29d189ab9
13 changed files with 261 additions and 237 deletions

View file

@ -41,14 +41,18 @@ m4b:text/html:echo '<audio controls width=100% height=100%><source src="%u
m3u8:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
mp4:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
mkv:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
doc::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
xls::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
ppt::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
docx::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
xlsx::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
pptx::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
doc:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
xls:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
ppt:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
docx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
xlsx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
pptx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
xz:text/plain:curl %p "%u"|xz -d --</code></pre>
<p>长按窗口按钮,勾选“文件预处理”,重启浏览器。则点击下载按钮时上述文件类型会自动预览。</p>
<p>安装过相应的<a href="../html5">html5应用</a>,则如下配置阅读相应格式文件:</p>
<pre><code>pdf:uweb:echo file:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u
djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u
epub:uweb:echo file:///sdcard/uweb/app/reader/index.html?bookPath==%u</code></pre>
<p>长按设置按钮,勾选“文件预处理”,清后台重启浏览器。则网页上点击下载按钮时上述文件类型会自动预览。</p>
<p>如果用户配置中处理命令用到curl则需要安装<a href="../gnuplot">Termux</a>并在Termux中安装curl (&quot;apt install curl&quot;)。<br>
如果用户不安装Termux则上述配置命令中的&quot;am&quot;需要全部路径,需用&quot;/system/bin/am&quot;替换。</p>
<p>以上配置使用了微软服务预览office文档微软服务必需当前UA为PC否则会出现空白页面。有条件的用户建议使用google docs (&quot;http://docs.google.com/gview?embedded=true&amp;url=&quot;) 服务替换。</p>