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:
28
res/bin/any/xowa/addon/wiki/registry/info/bin/xow_info.css
Normal file
28
res/bin/any/xowa/addon/wiki/registry/info/bin/xow_info.css
Normal file
@@ -0,0 +1,28 @@
|
||||
.cur_head_text {
|
||||
width: calc(100% - 83px);
|
||||
}
|
||||
.cur_head_btns {
|
||||
width: 72px;
|
||||
}
|
||||
|
||||
/* Detail Tbl */
|
||||
.cur_data_row {
|
||||
padding: 4px 0px 4px;
|
||||
}
|
||||
.cur_data_row label {
|
||||
display: inline-block;
|
||||
width: 50px;
|
||||
margin: 0px 4px 0px 10px;
|
||||
vertical-align: top;
|
||||
align-self: flex-start;
|
||||
-webkit-align-self: flex-start;
|
||||
|
||||
font-weight: bold;
|
||||
}
|
||||
.cur_data_row label::after {
|
||||
content: ":";
|
||||
}
|
||||
.cur_data_row span {
|
||||
display: inline-block;
|
||||
width: calc(100% - 70px);
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<div class='main_div'>
|
||||
{{#wiki_info}}
|
||||
<div id='cur_help_div' class='xohelp_div'>
|
||||
<div id='cur_help_msg' class='xohelp_msg'>
|
||||
<div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_list_delete'> </span><span class='xohelp_row_text'>Delete the wiki and all its files</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='xotbl_head_row'>
|
||||
<div class='xotbl_head_text cur_head_text'>Details</div>
|
||||
<div class='xotbl_head_btns cur_head_btns'>
|
||||
<a class='xoimg_btn_x24 xoimg_list_delete' title='delete wiki' href='javascript:void(0)'
|
||||
data_alertify_msg='Are you sure you want to delete {{wiki_domain}}?<br/>({{wiki_size}} will be deleted!)'
|
||||
data_alertify_ok='Delete'
|
||||
data_alertify_cancel='Cancel'
|
||||
data_alertify_href='/site/home/wiki/Special:XowaWikiInfo?cmd=delete&wiki={{wiki_domain}}'
|
||||
onclick='return xo.alertify.confirm_href(this);'>
|
||||
</a>
|
||||
<a class='xoimg_btn_x24 xoimg_help_tip' title='view help' href='javascript:void(0)' onclick='return xo.help.toggle("cur")'> </a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Wiki</label>
|
||||
<span>{{wiki_domain}}</span>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Date</label>
|
||||
<span>{{wiki_date}}</span>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Path</label>
|
||||
<span>{{wiki_dir}}</span>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Size</label>
|
||||
<span>{{wiki_size}}</span>
|
||||
</div>
|
||||
{{/wiki_info}}
|
||||
</div>
|
||||
@@ -0,0 +1,51 @@
|
||||
<!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/registry/info/bin/xow_info.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 = {
|
||||
wiki_info :
|
||||
{
|
||||
wiki_domain : 'en.wikipedia.org'
|
||||
, wiki_date : '2016-06-01'
|
||||
, wiki_dir : 'C:\\xowa\\wiki\\en.wikipedia.org'
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$("#templates").load("bin/any/xowa/addon/wiki/registry/info/bin/xow_info.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>
|
||||
29
res/bin/any/xowa/addon/wiki/registry/list/bin/xow_list.css
Normal file
29
res/bin/any/xowa/addon/wiki/registry/list/bin/xow_list.css
Normal file
@@ -0,0 +1,29 @@
|
||||
/* head row */
|
||||
.cur_head_text {
|
||||
width: calc(100% - 113px);
|
||||
}
|
||||
.cur_head_btns {
|
||||
width: 112px;
|
||||
}
|
||||
|
||||
/* wiki row */
|
||||
.cur_data_row {
|
||||
height: 44px;
|
||||
width: 100%;
|
||||
}
|
||||
.wiki_link_btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: calc(100% - 36px);
|
||||
height: 100%;
|
||||
}
|
||||
.wiki_domain {
|
||||
display: inline-block;
|
||||
width: calc(100% - 136px);
|
||||
}
|
||||
.wiki_date {
|
||||
display: inline-block;
|
||||
width: 100px;
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<div class='main_div'>
|
||||
<div id='cur_help_div' class='xohelp_div'>
|
||||
<div id='cur_help_msg' class='xohelp_msg'>
|
||||
<div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_fsys_dir'> </span><span class='xohelp_row_text'>Import wikis from your device or SD card using a file browser</span></div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_inet_download'> </span><span class='xohelp_row_text'>Download wikis from archive.org</span></div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_xowa'> </span><span class='xohelp_row_text'>Open the wiki and go to its Main Page</span></div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_help_info'> </span><span class='xohelp_row_text'>View more information about the wiki</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='xotbl_head_row'>
|
||||
<div class='xotbl_head_text cur_head_text'>Wikis</div>
|
||||
<div class='xotbl_head_btns cur_head_btns'>
|
||||
<a class='xoimg_btn_x24 xoimg_fsys_dir' title='add wiki' href="/wiki/Special:XowaFileBrowser?path={{import_root}}"> </a>
|
||||
<a class='xoimg_btn_x24 xoimg_inet_download' title='download' href="/wiki/Special:XowaDownloadCentral"> </a>
|
||||
<a class='xoimg_btn_x24 xoimg_help_tip' title='view help' href='javascript:void(0)' onclick='return xo.help.toggle("cur")'> </a>
|
||||
</div>
|
||||
</div>
|
||||
{{#subs}}
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<a class="link_btn_y wiki_link_btn" href="/site/{{domain}}/wiki/">
|
||||
<span class='xoimg_btn_x24 xoimg_xowa'> </span>
|
||||
<span class='wiki_domain'>{{domain}}</span>
|
||||
<span class='wiki_date'>{{date}}</span>
|
||||
</a>
|
||||
<a class='xoimg_btn_x24 xoimg_help_info' href="/wiki/Special:XowaWikiInfo?wiki={{domain}}" title="info"> </a>
|
||||
</div>
|
||||
{{/subs}}
|
||||
</div>
|
||||
@@ -0,0 +1,51 @@
|
||||
<!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/registry/list/bin/xow_list.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 = {
|
||||
import_root:'/wiki/A',
|
||||
subs:
|
||||
[
|
||||
{date:'2016-03-06', domain:'en.wikipedia.org'},
|
||||
{date:'2016-03-05', domain:'simple.wikipedia.org'},
|
||||
],
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$("#templates").load("bin/any/xowa/addon/wiki/registry/list/bin/xow_list.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>
|
||||
Reference in New Issue
Block a user