1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Res: Add resources from xowa_app_windows_64_v4.5.26.1810

This commit is contained in:
gnosygnu
2018-11-02 09:58:55 -04:00
parent a672fd8340
commit 5721913241
6057 changed files with 1156950 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
.cur_head_text {
width: calc(100% - 72px);
/* handle long paths */
font-size: 1em !important;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.cur_head_btns {
width: 72px;
}
.fsys_go_up_offset {
margin-top: -4px; /* nudge icon up to align with help */
}
.cur_data_row {
height: 50px;
}
.cur_link_btn {
display: flex;
width: 100%;
height: 100%;
}
.fsys_dir_txt {
display: inline-block;
align-self: center;
}
.fsys_fil_txt {
display: inline-block;
align-self: center;
}
.fsys_meta_txt {
display: block;
color: #828282;
font-family: monospace;
font-size: .8em;
}

View File

@@ -0,0 +1,68 @@
<div class='main_div'>
<div id='cur_help_div' class='xohelp_div'>
<div id='cur_help_msg' class='xohelp_msg'>
<div>
<b>Quick start</b>
<div>
<div class='xohelp_row'><span class='xohelp_bullet'>&nbsp;</span><span class='xohelp_row_text'>Navigate to the directory containing the XOWA wiki. For example, choose 'storage' -> 'CARD-NAME' -> 'xowa' -> 'wiki' -> 'en.wikipedia.org'</span></div>
</div>
<b>Buttons</b>
<div>
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_fsys_go_up'>&nbsp;</span><span class='xohelp_row_text'>Go up to the parent folder</span></div>
{{#dir_cmd_exists}}
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_misc_ok'>&nbsp;</span><span class='xohelp_row_text'>Select current folder</span></div>
{{/dir_cmd_exists}}
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_fsys_dir'>&nbsp;</span><span class='xohelp_row_text'>Open the folder</span></div>
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_xowa'>&nbsp;</span><span class='xohelp_row_text'>Import the XOWA wiki</span></div>
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_fsys_fil_blank'>&nbsp;</span><span class='xohelp_row_text'>Does nothing. Indicates the file is unselectable</span></div>
</div>
</div>
</div>
</div>
<div class='xotbl_head_row'>
<div class='xotbl_head_text cur_head_text'>{{path}}</div>
<div class='xotbl_head_btns cur_head_btns'>
<a class='xoimg_btn_x24 xoimg_fsys_go_up fsys_go_up_offset' href="/site/home/wiki/Special:XowaFileBrowser?path={{owner_dir_enc}}{{dir_cmd_arg}}">&nbsp;</a>
{{#dir_cmd_exists}}
<a class='xoimg_btn_x24 xoimg_misc_ok fsys_go_up_offset' href="/site/home/wiki/Special:XowaFileBrowser?path={{path_enc}}{{dir_cmd_arg}}&selected=1">&nbsp;</a>
{{/dir_cmd_exists}}
<a class='xoimg_btn_x24 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("cur")' title='view help'>&nbsp;</a>
</div>
</div>
{{#subs}}
<div class='xotbl_data_row cur_data_row'>
{{#is_dir}}
<a
class="link_btn_y cur_link_btn"
href="/site/home/wiki/Special:XowaFileBrowser?path={{path_enc}}{{dir_cmd_arg}}"
>
<span class='xoimg_btn_x24 xoimg_fsys_dir'>&nbsp;</span>
<span class='fsys_dir_txt'>{{name}}</span>
</a>
{{/is_dir}}
{{^is_dir}}
{{#is_core_xowa}}
<a
class="link_btn_y cur_link_btn"
href='/site/home/wiki/Special:XowaWikis?cmd=add&file={{path_enc}}'
>
<span class='xoimg_btn_x24 xoimg_xowa'>&nbsp;</span>
<span class='fsys_fil_txt'>
<span>{{name}}</span>
<span class='fsys_meta_txt'>{{date}}&nbsp;[{{size}}]</span>
</span>
</a>
{{/is_core_xowa}}
{{^is_core_xowa}}
<div class="link_btn_n cur_link_btn">
<span class='xoimg_btn_x24 xoimg_fsys_fil_blank'>&nbsp;</span>
<span class='fsys_fil_txt'>
<span>{{name}}</span>
<span class='fsys_meta_txt'>{{date}}&nbsp;[{{size}}]</span>
</span>
</div>
{{/is_core_xowa}}
{{/is_dir}}
</div>
{{/subs}}
</div>

View File

@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<!--
NOTE: this page loads local files
- Chrome is the easiest browser for local files; Use "chrome.exe --disable-web-security"
- Change C:/xowa/ to wherever it is on your system
-->
<!-- base -->
<base href="file:///C:/xowa/" target="_blank">
<!-- css -->
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/lib/alertify/themes/alertify.core.css">
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/lib/alertify/themes/alertify.bootstrap.css">
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/src/xowa/xocss/core/xocss_core-0.0.1.css">
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/src/xowa/xocss/core/xoimg_core-0.0.1.css">
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/src/xowa/xocss/help/xohelp-0.0.1.css">
<link type="text/css" rel="stylesheet" href="bin/any/xowa/addon/wiki/import/bin/xow_import.css">
<!-- js -->
<script type="text/javascript" src="bin/any/xowa/html/res/lib/alertify/lib/alertify-0.3.11.js"></script>
<script type="text/javascript" src="bin/any/xowa/html/res/lib/alertify/lib/xo-alertify-0.0.1.js"></script>
<script type="text/javascript" src="bin/any/xowa/html/res/lib/mustache/mustache-2.2.1.js"></script>
<script type="text/javascript" src="bin/any/xowa/html/res/lib/jquery/jquery-1.11.3.js"></script>
<script type="text/javascript" src="bin/any/xowa/html/res/src/xowa/xocss/help/xohelp-0.0.1.js"></script>
<!-- mustache -->
<script type="text/html" id="templates"></script>
<script type="text/javascript">
window.view = {
path : '/storage/sdcard1/xowa/wiki/',
owner_dir_enc : 'owner',
subs:
[
{is_dir:true , is_core_xowa:false, path_enc: 'a', name:'en.wikipedia.org'},
{is_dir:true , is_core_xowa:false, path_enc: 'b', name:'simple.wikipedia.org'},
{is_dir:false, is_core_xowa:true , path_enc: 'c', name:'simple.wikipedia.org-file-user.xowa' , date:'2015-12-20', size:'56 KB'},
{is_dir:false, is_core_xowa:false, path_enc: 'd', name:'simple.wikipedia.org-file-user1.xowa', date:'2015-12-20', size:'56 KB'},
{is_dir:false, is_core_xowa:false, path_enc: 'd', name:'simple.wikipedia.org-file-user2.xowa', date:'2015-12-20', size:'56 KB'},
{is_dir:false, is_core_xowa:false, path_enc: 'd', name:'simple.wikipedia.org-file-user3.xowa', date:'2015-12-20', size:'56 KB'},
],
};
</script>
<script type="text/javascript">
$("#templates").load("bin/any/xowa/addon/wiki/import/bin/xow_import.mustache.html", function(response_txt, status_txt, xhr){
var template = response_txt;
var output = Mustache.render(template, window.view);
document.getElementById('main').innerHTML = output;
});
</script>
</head>
<body>
<div id="main"></div>
</body>
</html>