make uweb private folder managable by 3rd-party file managers

master
James Feng Cao 2 years ago
parent 70b828eba7
commit 4212feb617

@ -208,6 +208,20 @@ commacd.sh
.profile : only for kshell with naked termux (no initial packages, need the following fix for termux quick crash to be launched)</description>
</item>
<item>
<title>Tips</title>
<link>/en/tips/</link>
<pubDate>Mon, 01 Nov 2021 00:00:00 +0000</pubDate>
<guid>/en/tips/</guid>
<description>Configuration folder and file managers
With shell command mode, configuration folders can be symbolic linked to other public folders or managed by 3rd party file managers via termux.
To show web pages in desktop mode:
PC button + option &amp;quot;wide viewport&amp;quot; + global js &amp;quot;force page resizable&amp;quot;.
Multiple home screens and Next/Prev page:
home5.html, home6.html/home6.search, home7.html/home7.search, ... can be visited via pressing the right arrow button while home4.html/home4.search, home3.html/home3.search ... with long pressing the left arrow.</description>
</item>
<item>
<title>Long pressed link menu</title>
<link>/en/longclick/</link>

@ -55,6 +55,7 @@ output;splot %25s'%0A">GNUPlot plot (3D function), needs uweb adapted termux &am
<p>Click the following links to make commands appear in address bar, then press &quot;enter&quot; to execute:<br>
<a href="i:15cd;toybox mkdir -p /sdcard/Download/app;toybox ln -s /sdcard/Download/app">symbolic link &quot;app&quot; folder to be under the &quot;Download&quot; folder</a></p>
<p><a href="i:15cd;cd ../..;toybox cp -r files /sdcard/Download/uweb;toybox rm -rf files;toybox ln -s /sdcard/Download/uweb files">symbolic link configuration folder to &quot;/sdcard/Download/uweb&quot;</a></p>
<p><a href="i:15cd /data/data/com.termux/files/home;ln -s ../../../info.torapp.uweb/files uweb">Make uweb configuration folder accessible by file managers with termux installed</a></p>
</div>

@ -162,6 +162,12 @@
</a>
</li>
<li class="post">
<a href="tips/index.html">
<span>Tips</span>
</a>
</li>
<li class="post">
<a href="longclick/index.html">
<span>Long pressed link menu</span>

@ -79,7 +79,7 @@ Note: &#34;Engines&#34; needs file &#34;engine.search&#34;whose format is sam
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
<guid>/en/sitemap/</guid>
<description>UI Search engines UI (gitee) Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Font settings Advanced Content AD blocking CSS styles Redirection Offline cache Javascript and CSS for domains Tools Bookmarklets Custom file handling Html5 application Termux Miscellaneous Configuration files Tips Manual </description>
<description>UI Search engines UI (gitee) Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Font settings Advanced Content AD blocking CSS styles Redirection Offline cache Javascript and CSS for domains Tools Bookmarklets Custom file handling Html5 application Termux Miscellaneous Configuration files Tips Manual Tips </description>
</item>
<item>
@ -320,6 +320,20 @@ commacd.sh
.profile : only for kshell with naked termux (no initial packages, need the following fix for termux quick crash to be launched)</description>
</item>
<item>
<title>Tips</title>
<link>/en/tips/</link>
<pubDate>Mon, 01 Nov 2021 00:00:00 +0000</pubDate>
<guid>/en/tips/</guid>
<description>Configuration folder and file managers
With shell command mode, configuration folders can be symbolic linked to other public folders or managed by 3rd party file managers via termux.
To show web pages in desktop mode:
PC button + option &amp;quot;wide viewport&amp;quot; + global js &amp;quot;force page resizable&amp;quot;.
Multiple home screens and Next/Prev page:
home5.html, home6.html/home6.search, home7.html/home7.search, ... can be visited via pressing the right arrow button while home4.html/home4.search, home3.html/home3.search ... with long pressing the left arrow.</description>
</item>
<item>
<title>Long pressed link menu</title>
<link>/en/longclick/</link>

@ -344,6 +344,19 @@
</url><url>
<loc>/en/termux/</loc>
<lastmod>2022-01-01T00:00:00+00:00</lastmod>
</url><url>
<loc>/en/tips/</loc>
<lastmod>2021-11-01T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tips/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tips/"
/>
</url><url>
<loc>/en/longclick/</loc>
<lastmod>2020-11-06T00:00:00+00:00</lastmod>

@ -91,6 +91,7 @@
<h5 id="tips">Tips</h5>
<ul>
<li><a href="../assets/help_en.html">Manual</a></li>
<li><a href="../tips/index.html">Tips</a></li>
</ul>
</div>

@ -49,16 +49,16 @@
<a href="c:bc -l">GNU bc (basic calculator)</a><br>
<a href="c:bc -l *.bc">bc with all extensions</a></p>
<h4 id="click-the-following-links-to-install-termux-configurations">Click the following links to install termux configurations:</h4>
<p><a href="i:0h/data/data/com.termux/files/home/.bashrc:https://fastly.jsdelivr.net/gh/torappinfo/uweb/termux/bashrc">.bashrc</a></p>
<p><a href="i:0h/data/data/com.termux/files/home/.inputrc:https://fastly.jsdelivr.net/gh/torappinfo/uweb/termux/inputrc">.inputrc</a></p>
<p><a href="i:0h/data/data/com.termux/files/home/.bashrc:../../termux/bashrc">.bashrc</a></p>
<p><a href="i:0h/data/data/com.termux/files/home/.inputrc:../../termux/inputrc">.inputrc</a></p>
<p><a href="i:0h/data/data/com.termux/files/home/z.sh:https://fastly.jsdelivr.net/gh/rupa/z/z.sh">z.sh</a></p>
<p><a href="i:0h/data/data/com.termux/files/home/commacd.sh:https://fastly.jsdelivr.net/gh/shyiko/commacd/commacd.sh">commacd.sh</a></p>
<p><a href="i:0h/data/data/com.termux/files/home/.profile:https://fastly.jsdelivr.net/gh/torappinfo/uweb/termux/profile">.profile</a> : only for kshell with naked termux (no initial packages, need the following fix for termux quick crash to be launched)</p>
<p><a href="i:0h/data/data/com.termux/files/home/.profile:../../termux/profile">.profile</a> : only for kshell with naked termux (no initial packages, need the following fix for termux quick crash to be launched)</p>
<h4 id="copy-existing-termux-installation-to-other-devices">Copy existing termux installation to other devices</h4>
<p>Using uweb to copy (Long pressing the following links and &quot;open in new tab&quot; to fix/send/receive):</p>
<ul>
<li>target device: install termux app.</li>
<li>(optional)<a href="d::mkdir -p /data/data/com.termux/files/home/.termux;cd /data/data/com.termux/files;mkdir usr;cd home/.termux;ln -s /system/bin/sh shell:">fix termux quick crash</a></li>
<li>(optional)<a href="d::mkdir -p /data/data/com.termux/files/home/.termux;cd /data/data/com.termux/files;mkdir usr;cd home/.termux;ln -s /system/bin/sh shell:">fix termux quick crash with &quot;updateonly&quot; versions</a></li>
<li>both devices: uweb to checke option &quot;Use termux&quot; in UI configuration page for long time tranferring. Uweb itself does not hold any wakelock thus may have issues for huge data transmission.</li>
<li>source device: uweb to visit &quot;files:///data/data/com.termux/&quot;, long click &quot;files&quot; folder to send to network.</li>
<li>target device: uweb to visit &quot;files:///data/data/com.termux/&quot;, long click &quot;right arrow&quot; button to receive from network.</li>

@ -0,0 +1,60 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/uwebzh/style.css" type="text/css" />
<title>Tips</title>
<script type="text/javascript">
function findLang(){
let href = location.href;
for(let i=href.length-1;i>0;i--){
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
return i;
}
return 0;
}
function nav2(page){
let i = findLang();
location.href = location.href.substring(0,i+1)+page;
}
function nav2Lang(lang){
let i = findLang();
let href = location.href;
location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
}
</script>
</head>
<body>
<header class='header'>
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
<a class="logo" href="javascript:void(0)" onclick="return nav2Lang('zh')">简体中文</a>
<nav>
</nav>
</header>
<br />
<div class="container">
<h1 class="title">Tips
<br>
<span class="subtitle"></span>
</h1>
<ul class="tags">
</ul>
<p><strong>Configuration folder and file managers</strong><br>
With <a href="../../en/acmd/index.html">shell command mode</a>, configuration folders can be symbolic linked to other public folders or managed by 3rd party file managers via termux.</p>
<p><strong>To show web pages in desktop mode</strong>:<br>
PC button + option &quot;wide viewport&quot; + global js &quot;force page resizable&quot;.</p>
<p><strong>Multiple home screens and Next/Prev page</strong>:<br>
home5.html, home6.html/home6.search, home7.html/home7.search, ... can be visited via pressing the right arrow button while home4.html/home4.search, home3.html/home3.search ... with long pressing the left arrow.</p>
</div>
</body>
</html>

@ -47,7 +47,7 @@ Note: &#34;Engines&#34; needs file &#34;engine.search&#34;whose format is sam
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
<guid>/en/sitemap/</guid>
<description>UI Search engines UI (gitee) Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Font settings Advanced Content AD blocking CSS styles Redirection Offline cache Javascript and CSS for domains Tools Bookmarklets Custom file handling Html5 application Termux Miscellaneous Configuration files Tips Manual </description>
<description>UI Search engines UI (gitee) Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Font settings Advanced Content AD blocking CSS styles Redirection Offline cache Javascript and CSS for domains Tools Bookmarklets Custom file handling Html5 application Termux Miscellaneous Configuration files Tips Manual Tips </description>
</item>
<item>

@ -1,10 +1 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>en/</title>
<link rel="canonical" href="en/">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=en/">
</head>
</html>
<meta http-equiv="refresh" content="0; url=en/index.html">

@ -409,7 +409,9 @@ http://www.numbertheory.org/gnubc/gnubc.html
<pubDate>Mon, 01 Nov 2021 00:00:00 +0000</pubDate>
<guid>/zh/tips/</guid>
<description>准确显示一切PC网页:
<description>目录配置及使用外部文件管理器
超微浏览器可以将配置目录或子目录符号链接至任意外部公共目录。安装有定制termux的用户也可以使用移动设备自带或第三方文件管理器管理超微内部指定目录。具体配置可见Shell command mode。
准确显示PC网页:
PC模式 + 勾选选项&amp;quot;宽屏显示&amp;quot; + 全局脚本&amp;quot;强制缩放&amp;quot;。
多主屏:
home5.html为自定义主屏home6.html, home6.search, home7.html ...为多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ... (长按后退按钮可进)。

@ -621,7 +621,9 @@ http://www.numbertheory.org/gnubc/gnubc.html
<pubDate>Mon, 01 Nov 2021 00:00:00 +0000</pubDate>
<guid>/zh/tips/</guid>
<description>准确显示一切PC网页:
<description>目录配置及使用外部文件管理器
超微浏览器可以将配置目录或子目录符号链接至任意外部公共目录。安装有定制termux的用户也可以使用移动设备自带或第三方文件管理器管理超微内部指定目录。具体配置可见Shell command mode。
准确显示PC网页:
PC模式 + 勾选选项&amp;quot;宽屏显示&amp;quot; + 全局脚本&amp;quot;强制缩放&amp;quot;。
多主屏:
home5.html为自定义主屏home6.html, home6.search, home7.html ...为多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ... (长按后退按钮可进)。

@ -343,6 +343,16 @@
</url><url>
<loc>/zh/tips/</loc>
<lastmod>2021-11-01T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tips/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tips/"
/>
</url><url>
<loc>/zh/tcron/</loc>
<lastmod>2021-02-13T00:00:00+00:00</lastmod>

@ -30,6 +30,10 @@
<header class='header'>
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
<a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
<nav>
</nav>
</header>
@ -43,7 +47,9 @@
<ul class="tags">
</ul>
<p><strong>准确显示一切PC网页</strong>:<br>
<p><strong>目录配置及使用外部文件管理器</strong><br>
超微浏览器可以将配置目录或子目录符号链接至任意外部公共目录。安装有定制termux的用户也可以使用移动设备自带或第三方文件管理器管理超微内部指定目录。具体配置可见<a href="../../en/acmd/index.html">Shell command mode</a></p>
<p><strong>准确显示PC网页</strong>:<br>
PC模式 + 勾选选项&quot;宽屏显示&quot; + 全局脚本&quot;强制缩放&quot;</p>
<p><strong>多主屏</strong>:<br>
home5.html为自定义主屏home6.html, home6.search, home7.html ...为多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ... (长按后退按钮可进)。</p>

Loading…
Cancel
Save