mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
custom_wikis
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
<option value='xowa.gui.shortcuts'>
|
||||
Gui - Shortcuts
|
||||
</option>
|
||||
<option value='xowa.wiki.hdumps' selected='selected'>
|
||||
<option value='xowa.wiki.hdumps'>
|
||||
Wiki - HTML Databases
|
||||
</option>
|
||||
<option value='xowa.wiki.edit'>
|
||||
@@ -76,7 +76,7 @@
|
||||
<option value='xowa.html.scripting'>
|
||||
HTML - Scripting
|
||||
</option>
|
||||
<option value='xowa.files.general'>
|
||||
<option value='xowa.files.general' selected='selected'>
|
||||
Files - General
|
||||
</option>
|
||||
<option value='xowa.files.apps'>
|
||||
@@ -117,74 +117,186 @@
|
||||
</p>
|
||||
</div>
|
||||
<h2>
|
||||
General
|
||||
Basic
|
||||
</h2>
|
||||
<div class="xocfg_row flex_div">
|
||||
<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'> </span>
|
||||
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.files.retrieval_enabled")' title='view more info'> </span>
|
||||
</div>
|
||||
<div id='xowa.wiki.hdumps.read_preferred__name' class='xocfg_itm_name'>
|
||||
Prefer HTML Databases for Read tab
|
||||
<div id='xowa.files.retrieval_enabled__name' class='xocfg_itm_name'>
|
||||
Retrieval enabled
|
||||
</div>
|
||||
<div id='xowa.wiki.hdumps.read_preferred__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.wiki.hdumps.read_preferred")' title="reset to "y""> </span>
|
||||
<div id='xowa.files.retrieval_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.files.retrieval_enabled")' title="reset to "y""> </span>
|
||||
</div>
|
||||
<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" checked="checked">
|
||||
</div><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 id="xowa.files.retrieval_enabled" data-xocfg-key="xowa.files.retrieval_enabled" data-xocfg-type="bool" accesskey="d" class="xocfg_data__bool" type="checkbox" checked="checked">
|
||||
</div><input type='hidden' id='xowa.files.retrieval_enabled__key_box' value='xowa.files.retrieval_enabled'> <input type='hidden' id='xowa.files.retrieval_enabled__ctx_box' value='app'>
|
||||
</div>
|
||||
<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.files.retrieval_enabled_help_div' class='xohelp_div'>
|
||||
<div id='xowa.files.retrieval_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> to automatically download images / retrieve images from database
|
||||
<ul>
|
||||
<li>
|
||||
ImageMagick and Inkscape <b>must</b> be installed (See <a tabindex="-1" href="/wiki/Dev/File/Setup" id="xolnki_27" title="Dev/File/Setup">Dev/File/Setup</a>)
|
||||
</li>
|
||||
<li>
|
||||
An internet connection must be available, or a local tarball must be set up. (See <a tabindex="-1" href="/wiki/Archive/Usage/Offline_images" id="xolnki_28" title="Archive/Usage/Offline images">Archive/Usage/Offline_images</a>)
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<b>unchecked</b>: Read tab uses Wikitext. Note that this will be slower, but more accurate.
|
||||
<b>unchecked</b> to leave images unprocessed
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<h2>
|
||||
Cache
|
||||
</h2>
|
||||
<div class="xocfg_row flex_div">
|
||||
<div class='xocfg_itm_help'>
|
||||
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.files.cache.fsys_size_min")' title='view more info'> </span>
|
||||
</div>
|
||||
<div id='xowa.files.cache.fsys_size_min__name' class='xocfg_itm_name'>
|
||||
Minimum disk space used
|
||||
</div>
|
||||
<div id='xowa.files.cache.fsys_size_min__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.files.cache.fsys_size_min")' title="reset to "75""> </span>
|
||||
</div>
|
||||
<div class='xocfg_itm_data'>
|
||||
<input id="xowa.files.cache.fsys_size_min" data-xocfg-key="xowa.files.cache.fsys_size_min" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="75">
|
||||
</div><input type='hidden' id='xowa.files.cache.fsys_size_min__key_box' value='xowa.files.cache.fsys_size_min'> <input type='hidden' id='xowa.files.cache.fsys_size_min__ctx_box' value='app'>
|
||||
</div>
|
||||
<div id='xowa.files.cache.fsys_size_min_help_div' class='xohelp_div'>
|
||||
<div id='xowa.files.cache.fsys_size_min_help_msg' class='xohelp_msg'>
|
||||
<p>
|
||||
Enter a minimum size for the cache to use (in MB)<br>
|
||||
</p>
|
||||
<p>
|
||||
This is an advanced configuration tweak. When the cache reaches its maximum size, it will delete files to free space. It will continue deleting files until the minimum size is reached.<br>
|
||||
</p>
|
||||
<p>
|
||||
For example:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
If the max is set to 100 MB
|
||||
</li>
|
||||
<li>
|
||||
... and the current size of all files in the cache is 99.9 MB
|
||||
</li>
|
||||
<li>
|
||||
... and a 200 KB file is added
|
||||
</li>
|
||||
<li>
|
||||
Then the cache size will be temporarily 100.1 MB
|
||||
</li>
|
||||
<li>
|
||||
... triggering the delete mechanism
|
||||
</li>
|
||||
<li>
|
||||
... which will reduce the current size of all files to 75 MB
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="xocfg_row flex_div">
|
||||
<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'> </span>
|
||||
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.files.cache.fsys_size_max")' title='view more info'> </span>
|
||||
</div>
|
||||
<div id='xowa.wiki.hdumps.html_mode__name' class='xocfg_itm_name'>
|
||||
HTML tab mode
|
||||
<div id='xowa.files.cache.fsys_size_max__name' class='xocfg_itm_name'>
|
||||
Maximum disk space used
|
||||
</div>
|
||||
<div id='xowa.wiki.hdumps.html_mode__undo' data-xocfg-type='list:xowa.wiki.hdumps.html_mode' class='xocfg_itm_delete xocfg_itm_hide'>
|
||||
<span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.wiki.hdumps.html_mode")' title="reset to "shown""> </span>
|
||||
<div id='xowa.files.cache.fsys_size_max__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.files.cache.fsys_size_max")' title="reset to "100""> </span>
|
||||
</div>
|
||||
<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="3">
|
||||
<option value="shown" selected="selected">
|
||||
Shown
|
||||
</option>
|
||||
<option value="hdump_save">
|
||||
Saved for HTML DB
|
||||
</option>
|
||||
<option value="hdump_load">
|
||||
Loaded by HTML DB
|
||||
</option>
|
||||
</select>
|
||||
</div><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 id="xowa.files.cache.fsys_size_max" data-xocfg-key="xowa.files.cache.fsys_size_max" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="100">
|
||||
</div><input type='hidden' id='xowa.files.cache.fsys_size_max__key_box' value='xowa.files.cache.fsys_size_max'> <input type='hidden' id='xowa.files.cache.fsys_size_max__ctx_box' value='app'>
|
||||
</div>
|
||||
<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.files.cache.fsys_size_max_help_div' class='xohelp_div'>
|
||||
<div id='xowa.files.cache.fsys_size_max_help_msg' class='xohelp_msg'>
|
||||
<p>
|
||||
Choose one of the following:
|
||||
Enter a maximum size for the cache to use (in MB)<br>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="xocfg_row flex_div">
|
||||
<div class='xocfg_itm_help'>
|
||||
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.files.cache.reduce_to_min")' title='view more info'> </span>
|
||||
</div>
|
||||
<div id='xowa.files.cache.reduce_to_min__name' class='xocfg_itm_name'>
|
||||
Reduce cache to min
|
||||
</div>
|
||||
<div id='xowa.files.cache.reduce_to_min__undo' data-xocfg-type='btn' class='xocfg_itm_delete xocfg_itm_hide'>
|
||||
<span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.files.cache.reduce_to_min")' title="reset to """> </span>
|
||||
</div>
|
||||
<div class='xocfg_itm_data'>
|
||||
<button id="xowa.files.cache.reduce_to_min" data-xocfg-key="xowa.files.cache.reduce_to_min" data-xocfg-type="btn" class="xocfg_data__btn">Reduce cache to min</button>
|
||||
</div><input type='hidden' id='xowa.files.cache.reduce_to_min__key_box' value='xowa.files.cache.reduce_to_min'> <input type='hidden' id='xowa.files.cache.reduce_to_min__ctx_box' value='app'>
|
||||
</div>
|
||||
<div id='xowa.files.cache.reduce_to_min_help_div' class='xohelp_div'>
|
||||
<div id='xowa.files.cache.reduce_to_min_help_msg' class='xohelp_msg'>
|
||||
<p>
|
||||
Press to reduce the cache to the minimum now (typically 75 MB).
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="xocfg_row flex_div">
|
||||
<div class='xocfg_itm_help'>
|
||||
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.files.cache.clear")' title='view more info'> </span>
|
||||
</div>
|
||||
<div id='xowa.files.cache.clear__name' class='xocfg_itm_name'>
|
||||
Clear cache
|
||||
</div>
|
||||
<div id='xowa.files.cache.clear__undo' data-xocfg-type='btn' class='xocfg_itm_delete xocfg_itm_hide'>
|
||||
<span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.files.cache.clear")' title="reset to """> </span>
|
||||
</div>
|
||||
<div class='xocfg_itm_data'>
|
||||
<button id="xowa.files.cache.clear" data-xocfg-key="xowa.files.cache.clear" data-xocfg-type="btn" class="xocfg_data__btn">Clear cache</button>
|
||||
</div><input type='hidden' id='xowa.files.cache.clear__key_box' value='xowa.files.cache.clear'> <input type='hidden' id='xowa.files.cache.clear__ctx_box' value='app'>
|
||||
</div>
|
||||
<div id='xowa.files.cache.clear_help_div' class='xohelp_div'>
|
||||
<div id='xowa.files.cache.clear_help_msg' class='xohelp_msg'>
|
||||
<p>
|
||||
Press to clear the cache (reduces to 0 MB).
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="xocfg_row flex_div">
|
||||
<div class='xocfg_itm_help'>
|
||||
<span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.files.cache.info")' title='view more info'> </span>
|
||||
</div>
|
||||
<div id='xowa.files.cache.info__name' class='xocfg_itm_name'>
|
||||
Info
|
||||
</div>
|
||||
<div id='xowa.files.cache.info__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.files.cache.info")' title="reset to "cache folder: C:\xowa\file
|
||||
space used: 0.000 B
|
||||
file count: 0
|
||||
oldest file:
|
||||
""> </span>
|
||||
</div>
|
||||
<div class='xocfg_itm_data'>
|
||||
<textarea id="xowa.files.cache.info" data-xocfg-key="xowa.files.cache.info" data-xocfg-type="memo" accesskey="d" class="xocfg_data__memo xocfg_data__readonly" readonly="true">
|
||||
cache folder: C:\xowa\file
|
||||
space used: 0.000 B
|
||||
file count: 0
|
||||
oldest file:
|
||||
</textarea>
|
||||
</div><input type='hidden' id='xowa.files.cache.info__key_box' value='xowa.files.cache.info'> <input type='hidden' id='xowa.files.cache.info__ctx_box' value='app'>
|
||||
</div>
|
||||
<div id='xowa.files.cache.info_help_div' class='xohelp_div'>
|
||||
<div id='xowa.files.cache.info_help_msg' class='xohelp_msg'>
|
||||
<p>
|
||||
Miscellaneous information about the cache
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Shown</b>: HTML tab shows actual HTML.
|
||||
</li>
|
||||
<li>
|
||||
<b>Saved for HTML DB</b>: HTML tab shows HTML as it will be saved for the HTML database. Note that this is for developer purposes only.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user