提交 26367aab 编写于 作者: C Catouse

* build dist and doc.

上级 5ab0f8f0
/*!
* ZUI: Standard edition - v1.5.0 - 2016-09-01
* ZUI: Standard edition - v1.5.0 - 2016-09-02
* http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
......@@ -6987,7 +6987,7 @@ tbody.collapse.in {
.navbar-fixed-bottom .dropdown .caret {
content: "";
border-top: 0 dotted;
border-bottom: 4px solid #353535;
border-bottom: 4px solid;
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
......@@ -7011,6 +7011,7 @@ tbody.collapse.in {
margin-left: -1px;
border-radius: 4px;
}
.dropdown-submenu.open > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
display: block;
}
......@@ -7037,15 +7038,11 @@ tbody.collapse.in {
.dropdown-submenu:hover > a:after {
border-left-color: #fff;
}
.dropdown-submenu.pull-left {
float: none;
}
.dropdown-submenu.pull-left > a {
.dropdown-submenu > a {
min-width: 160px;
}
.dropdown-submenu.pull-left > .dropdown-menu {
.dropdown-submenu > .dropdown-menu.pull-left {
left: -100%;
border-radius: 4px;
}
.dropdown-submenu:hover > a,
.dropdown-submenu:focus > a {
......
/*!
* ZUI: Lite edition - v1.5.0 - 2016-09-01
* ZUI: Lite edition - v1.5.0 - 2016-09-02
* http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
......@@ -5934,7 +5934,7 @@ tbody.collapse.in {
.navbar-fixed-bottom .dropdown .caret {
content: "";
border-top: 0 dotted;
border-bottom: 4px solid #353535;
border-bottom: 4px solid;
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
......@@ -5958,6 +5958,7 @@ tbody.collapse.in {
margin-left: -1px;
border-radius: 4px;
}
.dropdown-submenu.open > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
display: block;
}
......@@ -5984,15 +5985,11 @@ tbody.collapse.in {
.dropdown-submenu:hover > a:after {
border-left-color: #fff;
}
.dropdown-submenu.pull-left {
float: none;
}
.dropdown-submenu.pull-left > a {
.dropdown-submenu > a {
min-width: 160px;
}
.dropdown-submenu.pull-left > .dropdown-menu {
.dropdown-submenu > .dropdown-menu.pull-left {
left: -100%;
border-radius: 4px;
}
.dropdown-submenu:hover > a,
.dropdown-submenu:focus > a {
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
因为 它太大了无法显示 source diff 。你可以改为 查看blob
/*!
* ZUI: Standard edition - v1.5.0 - 2016-09-01
* ZUI: Standard edition - v1.5.0 - 2016-09-02
* http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
......@@ -338,7 +338,7 @@
Tab.prototype.show = function() {
var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)')
var selector = $this.attr('data-target')
var selector = $this.attr('data-target') || $this.attr('data-tab')
if(!selector) {
selector = $this.attr('href')
......@@ -433,7 +433,7 @@
// TAB DATA-API
// ============
$(document).on('click.zui.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function(e) {
$(document).on('click.zui.tab.data-api', '[data-toggle="tab"], [data-tab]', function(e) {
e.preventDefault()
$(this).tab('show')
})
......@@ -569,7 +569,7 @@
this.$element.trigger(startEvent)
if(startEvent.isDefaultPrevented()) return
var actives = this.$parent && this.$parent.find('> .panel > .in')
var actives = this.$parent && this.$parent.find('.in')
if(actives && actives.length) {
var hasData = actives.data(zuiname)
......@@ -1061,17 +1061,17 @@
var result = this;
if(arguments.length > 0) {
var reg;
if(arguments.length == 1 && typeof(args) == "object") {
if(arguments.length <= 2 && typeof(args) == 'object') {
for(var key in args) {
if(args[key] !== undefined) {
reg = new RegExp("({" + key + "})", "g");
reg = new RegExp('(' + (arguments[1] ? arguments[1].replace('0', key) : '{' + key + '}') + ')', 'g');
result = result.replace(reg, args[key]);
}
}
} else {
for(var i = 0; i < arguments.length; i++) {
if(arguments[i] !== undefined) {
reg = new RegExp("({[" + i + "]})", "g");
reg = new RegExp('({[' + i + ']})', 'g');
result = result.replace(reg, arguments[i]);
}
}
......
/*!
* ZUI: Lite edition - v1.5.0 - 2016-09-01
* ZUI: Lite edition - v1.5.0 - 2016-09-02
* http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
......@@ -315,7 +315,7 @@
this.$element.trigger(startEvent)
if(startEvent.isDefaultPrevented()) return
var actives = this.$parent && this.$parent.find('> .panel > .in')
var actives = this.$parent && this.$parent.find('.in')
if(actives && actives.length) {
var hasData = actives.data(zuiname)
......@@ -807,17 +807,17 @@
var result = this;
if(arguments.length > 0) {
var reg;
if(arguments.length == 1 && typeof(args) == "object") {
if(arguments.length <= 2 && typeof(args) == 'object') {
for(var key in args) {
if(args[key] !== undefined) {
reg = new RegExp("({" + key + "})", "g");
reg = new RegExp('(' + (arguments[1] ? arguments[1].replace('0', key) : '{' + key + '}') + ')', 'g');
result = result.replace(reg, args[key]);
}
}
} else {
for(var i = 0; i < arguments.length; i++) {
if(arguments[i] !== undefined) {
reg = new RegExp("({[" + i + "]})", "g");
reg = new RegExp('({[' + i + ']})', 'g');
result = result.replace(reg, arguments[i]);
}
}
......@@ -1373,7 +1373,7 @@
Tab.prototype.show = function() {
var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)')
var selector = $this.attr('data-target')
var selector = $this.attr('data-target') || $this.attr('data-tab')
if(!selector) {
selector = $this.attr('href')
......@@ -1468,7 +1468,7 @@
// TAB DATA-API
// ============
$(document).on('click.zui.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function(e) {
$(document).on('click.zui.tab.data-api', '[data-toggle="tab"], [data-tab]', function(e) {
e.preventDefault()
$(this).tab('show')
})
......
此差异已折叠。
此差异已折叠。
......@@ -403,7 +403,7 @@
.chosen-container-active.chosen-with-drop .chosen-single div b {
content: "";
border-top: 0 dotted;
border-bottom: 4px solid #353535;
border-bottom: 4px solid;
}
.chosen-container-active.chosen-with-drop.chosen-up .chosen-single {
border-top-left-radius: 0;
......
此差异已折叠。
/*!
* ZUI: ZUI for official website - v1.5.0 - 2016-09-01
* ZUI: ZUI for official website - v1.5.0 - 2016-09-02
* http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
......@@ -6987,7 +6987,7 @@ tbody.collapse.in {
.navbar-fixed-bottom .dropdown .caret {
content: "";
border-top: 0 dotted;
border-bottom: 4px solid #353535;
border-bottom: 4px solid;
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
......@@ -7011,6 +7011,7 @@ tbody.collapse.in {
margin-left: -1px;
border-radius: 4px;
}
.dropdown-submenu.open > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
display: block;
}
......@@ -7037,15 +7038,11 @@ tbody.collapse.in {
.dropdown-submenu:hover > a:after {
border-left-color: #fff;
}
.dropdown-submenu.pull-left {
float: none;
}
.dropdown-submenu.pull-left > a {
.dropdown-submenu > a {
min-width: 160px;
}
.dropdown-submenu.pull-left > .dropdown-menu {
.dropdown-submenu > .dropdown-menu.pull-left {
left: -100%;
border-radius: 4px;
}
.dropdown-submenu:hover > a,
.dropdown-submenu:focus > a {
......@@ -11251,7 +11248,7 @@ a.calendar .event.color-purple:hover {
.chosen-container-active.chosen-with-drop .chosen-single div b {
content: "";
border-top: 0 dotted;
border-bottom: 4px solid #353535;
border-bottom: 4px solid;
}
.chosen-container-active.chosen-with-drop.chosen-up .chosen-single {
border-top-left-radius: 0;
......
此差异已折叠。
/*!
* ZUI: Document - v1.5.0 - 2016-09-01
* ZUI: Document - v1.5.0 - 2016-09-02
* http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
......@@ -1161,18 +1161,23 @@
}
}, 200);
if(zuiPkg) {
$pageBody.find('.zui-version').text(zuiPkg.version);
}
if(!delayMutedPageLoading) stopPageLoading();
};
var loadPage = function(section, topic, waitRemote) {
section = section || currentSection;
$pageContent.empty();
if(topic !== '!refresh') $pageContent.empty();
$page.addClass('loading');
$pageLoader.removeClass('with-error').addClass('loading');
var lastShowDataCall;
loadData(section.url, function(data, dataType) {
if(zuiPkg) data = data.format(zuiPkg, '{\\$0}');
var showData = function() {
if(data && window.marked && section.targetType === 'markdown') {
var $article = $();
......@@ -1245,7 +1250,8 @@
console.error('Page data has error: ', {content: data, error: e});
}
}
$pageBody.scrollTop(0);
if(topic !== '!refresh') $pageBody.scrollTop(0);
showPageTopic(topic);
handlePageLoad();
$pageAttrs.show();
......@@ -1507,7 +1513,7 @@
};
var openPageUrl = function(url) {
if(url.startsWith('#') && url.length > 1) {
if(url.startsWith('#') && url.length > 1 && url.indexOf('##') !== 0) {
url = url.substr(1);
setTimeout(function() {
var params = url.split('/');
......@@ -1615,7 +1621,7 @@
var initPackage = function() {
loadPackage(function(pkg) {
$('.zui-version').text('v' + pkg.version);
$('.zui-version').text(pkg.version);
pkgLibs.standard = getBuildList(pkg, pkg.builds.standard, pkg.lib);
pkgLibs.lite = getBuildList(pkg, pkg.builds.lite, pkg.lib);
pkgLibs.seperate = getBuildList(pkg, pkg.builds.seperate, pkg.lib);
......@@ -2165,7 +2171,7 @@
if(debug) {
$('#pageReloadBtn').on('click', function() {
loadPage(null, null, true);
loadPage(null, '!refresh', true);
});
}
......
此差异已折叠。
/*!
* ZUI: ZUI for official website - v1.5.0 - 2016-09-01
* ZUI: ZUI for official website - v1.5.0 - 2016-09-02
* http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
......@@ -575,7 +575,7 @@
Tab.prototype.show = function() {
var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)')
var selector = $this.attr('data-target')
var selector = $this.attr('data-target') || $this.attr('data-tab')
if(!selector) {
selector = $this.attr('href')
......@@ -670,7 +670,7 @@
// TAB DATA-API
// ============
$(document).on('click.zui.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function(e) {
$(document).on('click.zui.tab.data-api', '[data-toggle="tab"], [data-tab]', function(e) {
e.preventDefault()
$(this).tab('show')
})
......@@ -806,7 +806,7 @@
this.$element.trigger(startEvent)
if(startEvent.isDefaultPrevented()) return
var actives = this.$parent && this.$parent.find('> .panel > .in')
var actives = this.$parent && this.$parent.find('.in')
if(actives && actives.length) {
var hasData = actives.data(zuiname)
......@@ -1298,17 +1298,17 @@
var result = this;
if(arguments.length > 0) {
var reg;
if(arguments.length == 1 && typeof(args) == "object") {
if(arguments.length <= 2 && typeof(args) == 'object') {
for(var key in args) {
if(args[key] !== undefined) {
reg = new RegExp("({" + key + "})", "g");
reg = new RegExp('(' + (arguments[1] ? arguments[1].replace('0', key) : '{' + key + '}') + ')', 'g');
result = result.replace(reg, args[key]);
}
}
} else {
for(var i = 0; i < arguments.length; i++) {
if(arguments[i] !== undefined) {
reg = new RegExp("({[" + i + "]})", "g");
reg = new RegExp('({[' + i + ']})', 'g');
result = result.replace(reg, arguments[i]);
}
}
......@@ -10112,7 +10112,7 @@ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
/*!
* ZUI: Generated from less code - v1.5.0 - 2016-09-01
* ZUI: Generated from less code - v1.5.0 - 2016-09-02
* http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册