diff --git a/CHANGELOG.md b/CHANGELOG.md index c151476d19..c11326aa31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # CHANGELOG +# 1.5.3 + +## Improvements + +- 优化邮件发送异常信息处理。 halo-dev/halo#1860 @ntdgy @superdgy +- 优化静态存储的资源映射处理逻辑,支持手动操作 `.halo/static` 目录后,在后台通过刷新按钮更新资源映射。 halo-dev/halo#1907 @Yhcrown @muyunil +- 优化文章字数统计的算法。将中文和其他字符分开统计,中文按照字数计数,其他的语言默认按照标点分割来计数。 halo-dev/halo#1865 @Yhcrown @Tanhex +- 优化后台部分弹窗中表单在移动端的布局。 halo-dev/halo-admin#564 @ruibaby + +## Bug Fixes + +- 修复在 Windows 平台下,因为 H2 Database 文件被占用导致无法全站备份的问题。 halo-dev/halo#1867 @anshangPro +- 修复在 1.5.x 版本中,文章搜索没有关联查询内容(contents)的问题。 halo-dev/halo#1873 @Yhcrown @guqing +- 修复本地上传附件过程中如果发生异常,没有完整打印异常信息栈的问题。 halo-dev/halo#1913 @JohnNiang +- 修复在系统初始化之后,任然可以通过 `/install` 跳转到登录页面的问题。 halo-dev/halo#1908 @Ljfanny @littlesleep +- 修复评论通知无法正常发送邮件的问题。 halo-dev/halo#1916 @JohnNiang @hapke24 +- 修复后台仪表盘中最近文章的标题过长导致样式异常的问题。 halo-dev/halo-admin#545 @Aanko @hotspring-zwb +- 修复后台带有分页的数据列表中,删除最后一页的所有数据后导致分页页码异常的问题。 halo-dev/halo-admin#550 @QuentinHsu @luohongqu +- 修复后台修复因为缓存数据,重新安装会出现循环进入 install 路由的问题。 halo-dev/halo-admin#558 @ruibaby @Ljfanny + +## Dependencies + +- 更新后台 @halo-dev/editor 版本。 halo-dev/halo-admin#562 @ruibaby + - 修复在改变编辑器布局后导致重复初始化编辑器的问题。 + # 1.5.2 ## Improvements diff --git a/src/main/resources/admin/css/215.015ccb20.css b/src/main/resources/admin/css/505.015ccb20.css similarity index 100% rename from src/main/resources/admin/css/215.015ccb20.css rename to src/main/resources/admin/css/505.015ccb20.css diff --git a/src/main/resources/admin/index.html b/src/main/resources/admin/index.html index ee3d31f605..2267d7eadf 100644 --- a/src/main/resources/admin/index.html +++ b/src/main/resources/admin/index.html @@ -1 +1 @@ -
"+tq(t[e].content)+"
\n"},eq.fence=function(t,e,n,r,i){var a,o,s,l,c,u=t[e],h=u.info?Jz(u.info).trim():"",f="",d="";return h&&(s=h.split(/(\s+)/g),f=s[0],d=s.slice(2).join("")),a=n.highlight&&n.highlight(u.content,f,d)||tq(u.content),0===a.indexOf(""+a+"
\n"):""+a+"
\n"},eq.image=function(t,e,n,r,i){var a=t[e];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(t,e,n)},eq.hardbreak=function(t,e,n){return n.xhtmlOut?"=p||41!==t.src.charCodeAt(s))&&(m=!0),s++}if(m){if("undefined"===typeof t.env.references)return!1;if(s
=0?i=t.src.slice(g,s++):s=a+1):s=a+1,i||(i=t.src.slice(o,a)),c=t.env.references[Zj(i)],!c)return t.pos=d,!1;h=c.href,f=c.title}return e||(t.pos=o,t.posMax=a,u=t.push("link_open","a",1),u.attrs=n=[["href",h]],f&&n.push(["title",f]),t.md.inline.tokenize(t),u=t.push("link_close","a",-1)),t.pos=s,t.posMax=p,!0},Jj=W.normalizeReference,tH=W.isSpace,eH=function(t,e){var n,r,i,a,o,s,l,c,u,h,f,d,p,g="",m=t.pos,y=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;if(s=t.pos+2,o=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),o<0)return!1;if(l=o+1,l =a)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},TH.prototype.parse=function(t,e,n,r){var i,a,o,s=new this.State(t,e,n,r);for(this.tokenize(s),a=this.ruler2.getRules(""),o=a.length,i=0;i "+$pt.renderToString(t,e)+" ${Gpt(t)} =0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=F);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a >1)+f+t+k+S.slice(E);break;default:t=S+f+t+k}return s(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=Wi(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Gi(e)/3))),i=Math.pow(10,-r),a=na[8+r/3];return function(t){return n(i*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ji=Qi.format,ta=Qi.formatPrefix;class aa extends Map{constructor(t,e=sa){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(oa(this,t))}has(t){return super.has(oa(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function oa({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function sa(t){return null!==t&&"object"==typeof t?t.valueOf():t}const la=Symbol("implicit");function ca(){var t=new aa,e=[],n=[],r=la;function i(i){let a=t.get(i);if(void 0===a){if(r!==la)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new aa;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return ca(e,n).unknown(r)},Hi.apply(i,arguments),i}const ua=1e3,ha=6e4,fa=36e5,da=864e5,pa=6048e5,ga=31536e6;var ma=new Date,ya=new Date;function va(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e =0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ps);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a
\n':'
\n')+'\n'}function Rpt(){return"
\n=s)&&(r++,n=t.src.slice(l+2,r-1),"undefined"!==typeof t.env.footnotes.refs[":"+n]&&(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+n]<0?(i=t.env.footnotes.list.length,t.env.footnotes.list[i]={label:n,count:0},t.env.footnotes.refs[":"+n]=i):i=t.env.footnotes.refs[":"+n],a=t.env.footnotes.list[i].count,t.env.footnotes.list[i].count++,o=t.push("footnote_ref","",0),o.meta={id:i,subId:a,label:n}),t.pos=r,t.posMax=s,!0)))}function o(t){var e,n,r,i,a,o,s,l,c,u,h=!1,f={};if(t.env.footnotes&&(t.tokens=t.tokens.filter((function(t){return"footnote_reference_open"===t.type?(h=!0,c=[],u=t.meta.label,!1):"footnote_reference_close"===t.type?(h=!1,f[":"+u]=c,!1):(h&&c.push(t),!h)})),t.env.footnotes.list)){for(o=t.env.footnotes.list,s=new t.Token("footnote_block_open","",1),t.tokens.push(s),e=0,n=o.length;e0?3*h:7*h,p=e.fontMetrics().denom1):(u>0?(f=e.fontMetrics().num2,d=h):(f=e.fontMetrics().num3,d=3*h),p=e.fontMetrics().denom2),c){var _=e.fontMetrics().axisHeight;f-o.depth-(_+.5*u)0?t.src.charCodeAt(e-1):-1,r=e+1<=i?t.src.charCodeAt(e+1):-1,(32===n||9===n||r>=48&&r<=57)&&(o=!1),32!==r&&9!==r||(a=!1),{can_open:a,can_close:o}}function Ypt(t,e){var n,r,i,a,o;if("$"!==t.src[t.pos])return!1;if(a=Wpt(t,t.pos),!a.can_open)return e||(t.pending+="$"),t.pos+=1,!0;n=t.pos+1,r=n;while(-1!==(r=t.src.indexOf("$",r))){o=r-1;while("\\"===t.src[o])o-=1;if((r-o)%2==1)break;r+=1}return-1===r?(e||(t.pending+="$"),t.pos=n,!0):r-n===0?(e||(t.pending+="$$"),t.pos=n+1,!0):(a=Wpt(t,r),a.can_close?(e||(i=t.push("math_inline","math",0),i.markup="$",i.content=t.src.slice(n,r)),t.pos=r+1,!0):(e||(t.pending+="$"),t.pos=n,!0))}function Vpt(t,e,n,r){var i,a,o,s,l,c=!1,u=t.bMarks[e]+t.tShift[e],h=t.eMarks[e];if(u+2>h)return!1;if("$$"!==t.src.slice(u,u+2))return!1;if(u+=2,i=t.src.slice(u,h),r)return!0;for("$$"===i.trim().slice(-2)&&(i=i.trim().slice(0,-2),c=!0),o=e;!c;){if(o++,o>=n)break;if(u=t.bMarks[o]+t.tShift[o],h=t.eMarks[o],u=l)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in Ja?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Qa=Ka.format,Ka.parse,Ka.utcFormat,Ka.utcParse;var Ts=Array.prototype.find;function As(){return this.firstElementChild}var Ms=Array.prototype.filter;function Ns(){return Array.from(this.children)}function Ds(t){return new Array(t.length)}function Os(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ls(t){return function(){return t}}function Bs(t,e,n,r,i,a){for(var o,s=0,l=e.length,c=a.length;sQl&&w>Ql?T>Ql?(m=uc(L,B,R,F,u,-T,g),y=uc(D,O,P,z,u,-T,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),Tt?1:e>=t?0:NaN}function bc(t){return t}function _c(){}function xc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function wc(t){this._context=t}function kc(t){return new wc(t)}function Cc(t){this._context=t}function Ec(t){this._context=t}function Sc(t){this._context=t}function Tc(t){return t<0?-1:1}function Ac(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Tc(a)+Tc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Mc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Nc(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Dc(t){this._context=t}function Oc(t){this._context=new Lc(t)}function Lc(t){this._context=t}function Bc(t){this._context=t}function Ic(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=l)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in cu?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),lu=su.format,su.parse,su.utcFormat,su.utcParse;var Sh={value:()=>{}};function Th(){for(var t,e=0,n=arguments.length,r={};e