1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00
This commit is contained in:
gnosygnu
2017-05-12 00:19:12 -04:00
parent 7e9746c348
commit 1a372474ad
14 changed files with 2103 additions and 228 deletions

View File

@@ -52,7 +52,7 @@
<option value='xowa.gui.nightmode'>
Gui - Nightmode
</option>
<option value='xowa.wiki.hdumps' selected='selected'>
<option value='xowa.wiki.hdumps'>
Wiki - HTML Databases
</option>
<option value='xowa.wiki.edit'>
@@ -64,7 +64,7 @@
<option value='xowa.bldr.db'>
Import - Database
</option>
<option value='xowa.bldr.page_sync'>
<option value='xowa.bldr.page_sync' selected='selected'>
Import - Page sync
</option>
<option value='xowa.bldr.dansguardian'>
@@ -129,37 +129,99 @@
<div>
<p id='page_help_para'>
</p>
<p>
For more information, see <a tabindex="-1" href="/wiki/App/Xtn/Page_sync" id="xolnki_19" title="App/Xtn/Page sync">the page sync help page</a>
</p>
</div>
<h2>
General
Manual
</h2>
<div class="xocfg_row flex_div">
<!-- BTN:help_item -->
<div class='xocfg_itm_help'>
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.wiki.hdumps.read_preferred")' title='view more info'>&nbsp;</span>
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.page_sync.manual.enabled")' title='view more info'>&nbsp;</span>
</div><!-- TEXT:key -->
<div id='xowa.wiki.hdumps.read_preferred__name' class='xocfg_itm_name'>
Prefer HTML Databases for Read tab
<div id='xowa.bldr.page_sync.manual.enabled__name' class='xocfg_itm_name'>
Enabled
</div><!-- BTN:undo -->
<div id='xowa.wiki.hdumps.read_preferred__undo' data-xocfg-type='bool' class='xocfg_itm_delete'>
<span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.wiki.hdumps.read_preferred")' title="reset to &quot;y&quot;">&nbsp;</span>
<div id='xowa.bldr.page_sync.manual.enabled__undo' data-xocfg-type='bool' class='xocfg_itm_delete xocfg_itm_hide'>
<span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.page_sync.manual.enabled")' title="reset to &quot;n&quot;">&nbsp;</span>
</div><!-- TEXT:val -->
<div class='xocfg_itm_data'>
<input id="xowa.wiki.hdumps.read_preferred" data-xocfg-key="xowa.wiki.hdumps.read_preferred" data-xocfg-type="bool" accesskey="d" class="xocfg_data__bool" type="checkbox">
<input id="xowa.bldr.page_sync.manual.enabled" data-xocfg-key="xowa.bldr.page_sync.manual.enabled" data-xocfg-type="bool" accesskey="d" class="xocfg_data__bool" type="checkbox">
</div><!-- HIDDEN:key,ctx -->
<input type='hidden' id='xowa.wiki.hdumps.read_preferred__key_box' value='xowa.wiki.hdumps.read_preferred'> <input type='hidden' id='xowa.wiki.hdumps.read_preferred__ctx_box' value='app'>
<input type='hidden' id='xowa.bldr.page_sync.manual.enabled__key_box' value='xowa.bldr.page_sync.manual.enabled'> <input type='hidden' id='xowa.bldr.page_sync.manual.enabled__ctx_box' value='app'>
</div><!-- DIV:help -->
<div id='xowa.wiki.hdumps.read_preferred_help_div' class='xohelp_div'>
<div id='xowa.wiki.hdumps.read_preferred_help_msg' class='xohelp_msg'>
<div id='xowa.bldr.page_sync.manual.enabled_help_div' class='xohelp_div'>
<div id='xowa.bldr.page_sync.manual.enabled_help_msg' class='xohelp_msg'>
<p>
Choose one of the following:
</p>
<ul>
<li>
<b>checked</b>: Read tab uses HTML databases. Note that this will be faster, but there may be some inaccuracies. (These inaccuracies are being worked on)
<b>checked</b>: Show "Sync" in sidebar
</li>
<li>
<b>unchecked</b>: Read tab uses Wikitext. Note that this will be slower, but more accurate.
<b>unchecked</b>: Do not show "Sync" in sidebar
</li>
</ul>
<p>
Other notes:
</p>
<ul>
<li>
Clicking "Sync" will manually synchronize current page
</li>
<li>
"Sync" will never show in the home wiki
</li>
<li>
"Sync" will not work on Special pages
</li>
</ul>
</div>
</div>
<h2>
Automatic
</h2>
<div class="xocfg_row flex_div">
<!-- BTN:help_item -->
<div class='xocfg_itm_help'>
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.page_sync.auto.enabled")' title='view more info'>&nbsp;</span>
</div><!-- TEXT:key -->
<div id='xowa.bldr.page_sync.auto.enabled__name' class='xocfg_itm_name'>
Enabled
</div><!-- BTN:undo -->
<div id='xowa.bldr.page_sync.auto.enabled__undo' data-xocfg-type='bool' class='xocfg_itm_delete xocfg_itm_hide'>
<span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.page_sync.auto.enabled")' title="reset to &quot;n&quot;">&nbsp;</span>
</div><!-- TEXT:val -->
<div class='xocfg_itm_data'>
<input id="xowa.bldr.page_sync.auto.enabled" data-xocfg-key="xowa.bldr.page_sync.auto.enabled" data-xocfg-type="bool" accesskey="d" class="xocfg_data__bool" type="checkbox">
</div><!-- HIDDEN:key,ctx -->
<input type='hidden' id='xowa.bldr.page_sync.auto.enabled__key_box' value='xowa.bldr.page_sync.auto.enabled'> <input type='hidden' id='xowa.bldr.page_sync.auto.enabled__ctx_box' value='app'>
</div><!-- DIV:help -->
<div id='xowa.bldr.page_sync.auto.enabled_help_div' class='xohelp_div'>
<div id='xowa.bldr.page_sync.auto.enabled_help_msg' class='xohelp_msg'>
<p>
Choose one of the following:
</p>
<ul>
<li>
<b>checked</b>: Automatically synchronize page when viewing it
</li>
<li>
<b>unchecked</b>: (default) Do not automatically synchronize page
</li>
</ul>
<p>
Other notes:
</p>
<ul>
<li>
Pages are automatically synchronized based on options for time and scope. The default behavior is to synchronize when first visiting the page, and then every 24 hours afterwards
</li>
<li>
Automatic synchronization will never occur in the home wiki
</li>
</ul>
</div>
@@ -167,51 +229,70 @@
<div class="xocfg_row flex_div">
<!-- BTN:help_item -->
<div class='xocfg_itm_help'>
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.wiki.hdumps.html_mode")' title='view more info'>&nbsp;</span>
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.page_sync.auto.interval")' title='view more info'>&nbsp;</span>
</div><!-- TEXT:key -->
<div id='xowa.wiki.hdumps.html_mode__name' class='xocfg_itm_name'>
HTML tab mode
<div id='xowa.bldr.page_sync.auto.interval__name' class='xocfg_itm_name'>
Time to wait before syncs
</div><!-- BTN:undo -->
<div id='xowa.wiki.hdumps.html_mode__undo' data-xocfg-type='list:xowa.wiki.hdumps.html_mode' class='xocfg_itm_delete'>
<span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.wiki.hdumps.html_mode")' title="reset to &quot;shown&quot;">&nbsp;</span>
<div id='xowa.bldr.page_sync.auto.interval__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
<span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.page_sync.auto.interval")' title="reset to &quot;1440&quot;">&nbsp;</span>
</div><!-- TEXT:val -->
<div class='xocfg_itm_data'>
<select id="xowa.wiki.hdumps.html_mode" data-xocfg-key="xowa.wiki.hdumps.html_mode" data-xocfg-type="list:xowa.wiki.hdumps.html_mode" accesskey="d" class="xocfg_data__list" size="4">
<option value="shown">
Shown
</option>
<option value="swt_browser" selected="selected">
SWT Browser
</option>
<option value="hdump_save">
Saved for HTML DB
</option>
<option value="hdump_load">
Loaded by HTML DB
</option>
</select>
<input id="xowa.bldr.page_sync.auto.interval" data-xocfg-key="xowa.bldr.page_sync.auto.interval" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="1440">
</div><!-- HIDDEN:key,ctx -->
<input type='hidden' id='xowa.wiki.hdumps.html_mode__key_box' value='xowa.wiki.hdumps.html_mode'> <input type='hidden' id='xowa.wiki.hdumps.html_mode__ctx_box' value='app'>
<input type='hidden' id='xowa.bldr.page_sync.auto.interval__key_box' value='xowa.bldr.page_sync.auto.interval'> <input type='hidden' id='xowa.bldr.page_sync.auto.interval__ctx_box' value='app'>
</div><!-- DIV:help -->
<div id='xowa.wiki.hdumps.html_mode_help_div' class='xohelp_div'>
<div id='xowa.wiki.hdumps.html_mode_help_msg' class='xohelp_msg'>
<div id='xowa.bldr.page_sync.auto.interval_help_div' class='xohelp_div'>
<div id='xowa.bldr.page_sync.auto.interval_help_msg' class='xohelp_msg'>
<p>
Choose one of the following to show in HTML tab:
Enter the number of minutes to wait before checking for a new update:
</p>
</div>
</div>
<div class="xocfg_row flex_div">
<!-- BTN:help_item -->
<div class='xocfg_itm_help'>
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.page_sync.auto.scope")' title='view more info'>&nbsp;</span>
</div><!-- TEXT:key -->
<div id='xowa.bldr.page_sync.auto.scope__name' class='xocfg_itm_name'>
Pages to sync
</div><!-- BTN:undo -->
<div id='xowa.bldr.page_sync.auto.scope__undo' data-xocfg-type='memo' class='xocfg_itm_delete xocfg_itm_hide'>
<span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.page_sync.auto.scope")' title="reset to &quot;*&quot;">&nbsp;</span>
</div><!-- TEXT:val -->
<div class='xocfg_itm_data'>
<textarea id="xowa.bldr.page_sync.auto.scope" data-xocfg-key="xowa.bldr.page_sync.auto.scope" data-xocfg-type="memo" accesskey="d" class="xocfg_data__memo" rows="4">
*
</textarea>
</div><!-- HIDDEN:key,ctx -->
<input type='hidden' id='xowa.bldr.page_sync.auto.scope__key_box' value='xowa.bldr.page_sync.auto.scope'> <input type='hidden' id='xowa.bldr.page_sync.auto.scope__ctx_box' value='app'>
</div><!-- DIV:help -->
<div id='xowa.bldr.page_sync.auto.scope_help_div' class='xohelp_div'>
<div id='xowa.bldr.page_sync.auto.scope_help_msg' class='xohelp_msg'>
<p>
Specify specific page titles to sync:
</p>
<ul>
<li>
<b>Shown</b>: HTML as generated by XOWA
<b>*:Main_Page</b>: means sync all Main_Pages in all wikis
</li>
<li>
<b>SWT browser</b>: HTML as currently shown in SWT browser (useful for Special pages and javascript calls)
<b>*</b>: is a wildcard and means sync all pages in all wikis
</li>
<li>
<b>Saved for HTML DB</b>: HTML as saved in the HTML database. Note that this is for developer purposes only.
</li>
<li>
<b>Loaded for HTML DB</b>: HTML as saved in the HTML database but post-processed with image urls. Note that this is for developer purposes only.
Individual pages can be specified on each line.
</li>
</ul>
<p>
For example, the following would only auto-synchronize two pages: the Main_Page and Earth in English Wikipedia:
</p>
<pre>
en.w:Main_Page
en.w:Earth
</pre>
<p>
Note that all lines must be separated by a UNIX line ending (ASCII 10) not a Windows line ending (ASCII 13 + ASCII 10)
</p>
</div>
</div>
</div>