update valine

i18n
xaoxuu 5 years ago
parent c91685e046
commit a6c13c9d3f
  1. 2
      _config.yml
  2. 52
      source/js/volantis.js

@ -8,7 +8,7 @@ info:
js: js:
app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.5/js/app.js app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.5/js/app.js
search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.5/js/search.js search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.5/js/search.js
volantis: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1.0/js/volantis.min.js volantis: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1.0.4/js/volantis.min.js

@ -35,12 +35,10 @@ function() {
}) })
}, },
t.n = function(e) { t.n = function(e) {
var n = e && e.__esModule ? var n = e && e.__esModule ? function() {
function() { return e.default
return e. }
default : function() {
}:
function() {
return e return e
}; };
return t.d(n, "a", n), return t.d(n, "a", n),
@ -216,10 +214,8 @@ function() {
return e && Array.prototype.forEach.call(e.length ? e: [e], i), return e && Array.prototype.forEach.call(e.length ? e: [e], i),
e e
}), }),
t. t.default = s,
default = s, e.exports = t.default
e.exports = t.
default
}) })
}, },
function(e, t, n) { function(e, t, n) {
@ -412,8 +408,7 @@ function() {
var r = u.attr(n, "data-xid"); var r = u.attr(n, "data-xid");
r && e.Q(r).count().then(function(e) { r && e.Q(r).count().then(function(e) {
n.innerText = e n.innerText = e
}). }).catch(function(e) {
catch(function(e) {
n.innerText = 0 n.innerText = 0
}) })
} }
@ -504,8 +499,7 @@ function() {
n.set("time", 1), n.set("time", 1),
n.save().then(function(e) { n.save().then(function(e) {
u.find(t.el, ".leancloud-visitors-count").innerText = 1 u.find(t.el, ".leancloud-visitors-count").innerText = 1
}). }).catch(function(e) {})
catch(function(e) {})
}, },
k = { k = {
add: function(e) { add: function(e) {
@ -530,11 +524,9 @@ function() {
r.increment("time"), r.increment("time"),
r.save().then(function(e) { r.save().then(function(e) {
u.find(n, ".leancloud-visitors-count").innerText = e.get("time") u.find(n, ".leancloud-visitors-count").innerText = e.get("time")
}). }).catch(function(e) {})
catch(function(e) {})
} else w(e, a) } else w(e, a)
}). }).catch(function(t) {
catch(function(t) {
101 == t.code && w(e, a) 101 == t.code && w(e, a)
}) })
} else k.show(e, t) } else k.show(e, t)
@ -563,8 +555,7 @@ function() {
n && (n.innerText = r) n && (n.innerText = r)
}) })
}) })
}). }).catch(function(e) {})
catch(function(e) {})
} }
} }
}; };
@ -756,15 +747,13 @@ function() {
e(++n) e(++n)
}), }),
t.loading.hide() t.loading.hide()
}). }).catch(function(e) {
catch(function(e) {
t.loading.hide().ErrorHandler(e) t.loading.hide().ErrorHandler(e)
}) })
}; };
t.Q(y).count().then(function(e) { t.Q(y).count().then(function(e) {
e > 0 ? (u.attr(u.find(t.el, ".vinfo"), "style", "display:block;"), u.find(t.el, ".vcount").innerHTML = '<span class="vnum">' + e + "</span> " + t.locale.tips.comments, C()) : t.loading.hide() e > 0 ? (u.attr(u.find(t.el, ".vinfo"), "style", "display:block;"), u.find(t.el, ".vcount").innerHTML = '<span class="vnum">' + e + "</span> " + t.locale.tips.comments, C()) : t.loading.hide()
}). }).catch(function(e) {
catch(function(e) {
t.ErrorHandler(e) t.ErrorHandler(e)
}); });
var L = function(e, n, r) { var L = function(e, n, r) {
@ -931,8 +920,7 @@ function() {
} catch(e) { } catch(e) {
t.ErrorHandler(e) t.ErrorHandler(e)
} }
}). }).catch(function(e) {
catch(function(e) {
t.ErrorHandler(e) t.ErrorHandler(e)
}) })
}, },
@ -956,8 +944,7 @@ function() {
type: 1, type: 1,
text: "(T_T)" + t.locale.tips.again, text: "(T_T)" + t.locale.tips.again,
ctxt: t.locale.ctrl.cancel, ctxt: t.locale.ctrl.cancel,
otxt: t.locale.ctrl. otxt: t.locale.ctrl.try,
try,
cb: function() { cb: function() {
e(n) e(n)
} }
@ -974,16 +961,14 @@ function() {
t.signUp() t.signUp()
}, },
F = function e(n) { F = function e(n) {
AV.User.requestPasswordReset(n.mail).then(function(e) {}). AV.User.requestPasswordReset(n.mail).then(function(e) {}).catch(function(r) {
catch(function(r) {
1 == r.code ? t.alert.show({ 1 == r.code ? t.alert.show({
type: 0, type: 0,
text: "ヾ(o・ω・)ノ At太频繁啦,提醒功能暂时宕机。<br>" + r.error, text: "ヾ(o・ω・)ノ At太频繁啦,提醒功能暂时宕机。<br>" + r.error,
ctxt: t.locale.ctrl.ok ctxt: t.locale.ctrl.ok
}) : Q(n).then(function(t) { }) : Q(n).then(function(t) {
e(n) e(n)
}). }).catch(function(e) {})
catch(function(e) {})
}) })
}; };
u.on("click", I, P), u.on("click", I, P),
@ -994,8 +979,7 @@ function() {
}) })
}, },
e.exports = i, e.exports = i,
e.exports. e.exports.default = i
default = i
}, },
function(e, t, n) { function(e, t, n) {
"use strict"; "use strict";

Loading…
Cancel
Save