diff --git a/docs/foo-comments.min.js b/docs/foo-comments.min.js index 39242f0..0f72300 100644 --- a/docs/foo-comments.min.js +++ b/docs/foo-comments.min.js @@ -3389,7 +3389,7 @@ module.exports={COMMENTS:"条评论",COMMENT:"条评论",NO_COMMENTS:"来做第 var define; var n;!function(t,e){"function"==typeof n&&n.amd?n([],e):"undefined"!=typeof module&&module.exports?module.exports=e():t.lscache=e()}(this,function(){var n,t,e="lscache-",r="-cacheexpiration",o=10,i=6e4,c=_(i),u="",a=!1;function f(){var t="__lscachetest__";if(void 0!==n)return n;try{if(!localStorage)return!1}catch(e){return!1}try{p(t,"__lscachetest__"),m(t),n=!0}catch(r){n=!(!l(r)||!localStorage.length)}return n}function l(n){return n&&("QUOTA_EXCEEDED_ERR"===n.name||"NS_ERROR_DOM_QUOTA_REACHED"===n.name||"QuotaExceededError"===n.name)}function s(){return void 0===t&&(t=null!=window.JSON),t}function h(n){return n+r}function d(){return Math.floor((new Date).getTime()/i)}function g(n){return localStorage.getItem(e+u+n)}function p(n,t){localStorage.removeItem(e+u+n),localStorage.setItem(e+u+n,t)}function m(n){localStorage.removeItem(e+u+n)}function w(n){for(var t=new RegExp("^"+e+u.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&")+"(.*)"),o=localStorage.length-1;o>=0;--o){var i=localStorage.key(o);(i=(i=i&&i.match(t))&&i[1])&&i.indexOf(r)<0&&n(i,h(i))}}function v(n){var t=h(n);m(n),m(t)}function y(n){var t=h(n),e=g(t);if(e){var r=parseInt(e,o);if(d()>=r)return m(n),m(t),!0}}function E(n,t){a&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+n),t&&window.console.warn("lscache - The error was: "+t.message))}function _(n){return Math.floor(864e13/n)}return{set:function(n,t,e){if(!f())return!1;if(!s())return!1;try{t=JSON.stringify(t)}catch(a){return!1}try{p(n,t)}catch(a){if(!l(a))return E("Could not add item with key '"+n+"'",a),!1;var r,i=[];w(function(n,t){var e=g(t);e=e?parseInt(e,o):c,i.push({key:n,size:(g(n)||"").length,expiration:e})}),i.sort(function(n,t){return t.expiration-n.expiration});for(var u=(t||"").length;i.length&&u>0;)r=i.pop(),E("Cache is full, removing item with key '"+n+"'"),v(r.key),u-=r.size;try{p(n,t)}catch(a){return E("Could not add item with key '"+n+"', perhaps it's too big?",a),!1}}return e?p(h(n),(d()+e).toString(o)):m(h(n)),!0},get:function(n){if(!f())return null;if(y(n))return null;var t=g(n);if(!t||!s())return t;try{return JSON.parse(t)}catch(e){return t}},remove:function(n){f()&&v(n)},supported:function(){return f()},flush:function(){f()&&w(function(n){v(n)})},flushExpired:function(){f()&&w(function(n){y(n)})},setBucket:function(n){u=n},resetBucket:function(){u=""},getExpiryMilliseconds:function(){return i},setExpiryMilliseconds:function(n){c=_(i=n)},enableWarnings:function(n){a=n}}}); },{}],"tPh4":[function(require,module,exports) { -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Input=exports.Form=exports.Footer=exports.Button=exports.Textarea=exports.Container=void 0;var n=e(require("styled-components"));function e(n){return n&&n.__esModule?n:{default:n}}function r(){var n=p(["\n flex: 1;\n font-size: 13px;\n border: none;\n padding: 8px;\n outline: none;\n min-width: 10px;\n box-shadow: none;\n appearance: none;\n border-radius: 0;\n letter-spacing: 0.5px;\n box-sizing: border-box;\n color: ",";\n background: ",";\n border-right: 2px solid ",";\n"]);return r=function(){return n},n}function t(){var n=p(["\n font-size: 0;\n line-height: 0;\n"]);return t=function(){return n},n}function o(){var n=p(["\n height: 36px;\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n border-radius: 0 0 2px 2px;\n transition: opacity linear 0.2s;\n border-top: solid 2px ",";\n"]);return o=function(){return n},n}function i(){var n=p(["\n border: none;\n margin: -2px;\n outline: none;\n font-size: 13px;\n cursor: pointer;\n appearance: none;\n box-shadow: none;\n font-weight: 700;\n min-width: 150px;\n font-weight: 500;\n line-height: 1.1;\n text-shadow: none;\n border-radius: 3px;\n padding: 12px 30px;\n white-space: nowrap;\n letter-spacing: 0.5px;\n display: inline-block;\n border-radius: 0 0 3px;\n transition: background 0.2s;\n color: ",";\n background: ",";\n"]);return i=function(){return n},n}function u(){var n=p(["\n border: 0;\n margin: 0;\n width: 100%;\n outline: none;\n font-size: 14px;\n min-width: 100%;\n max-width: 100%;\n min-height: 80px;\n box-shadow: none;\n line-height: 1.4;\n padding: 8px 10px;\n letter-spacing: 0.7px;\n box-sizing: border-box;\n color: ",";\n background: ",";\n"]);return u=function(){return n},n}function a(){var n=p(["\n margin: 0;\n padding: 0;\n font-size: 0;\n appearance: none;\n position: relative;\n border-radius: 4px;\n box-sizing: border-box;\n border: 2px solid ",";\n"]);return a=function(){return n},n}function p(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var d=n.default.div(a(),function(n){return n.theme.borderColor});exports.Container=d;var x=n.default.textarea(u(),function(n){return n.theme.textColor},function(n){return n.theme.inputBackground});exports.Textarea=x;var s=n.default.button(i(),function(n){return n.theme.buttonColor},function(n){return n.theme.buttonBackground});exports.Button=s;var c=n.default.div(o(),function(n){return n.theme.borderColor});exports.Footer=c;var f=n.default.form(t());exports.Form=f;var l=n.default.input(r(),function(n){return n.theme.textColor},function(n){return n.theme.inputBackground},function(n){return n.theme.borderColor});exports.Input=l; +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Input=exports.Form=exports.Footer=exports.Button=exports.Textarea=exports.Container=void 0;var n=e(require("styled-components"));function e(n){return n&&n.__esModule?n:{default:n}}function r(){var n=p(["\n flex: 1;\n font-size: 13px;\n border: none;\n padding: 8px;\n outline: none;\n min-width: 10px;\n box-shadow: none;\n appearance: none;\n border-radius: 0;\n letter-spacing: 0.5px;\n box-sizing: border-box;\n color: ",";\n background: ",";\n border-right: 2px solid ",";\n"]);return r=function(){return n},n}function t(){var n=p(["\n font-size: 0;\n line-height: 0;\n"]);return t=function(){return n},n}function o(){var n=p(["\n height: 36px;\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n border-radius: 0 0 2px 2px;\n transition: opacity linear 0.2s;\n border-top: solid 2px ",";\n"]);return o=function(){return n},n}function i(){var n=p(["\n border: none;\n margin: -2px;\n outline: none;\n font-size: 13px;\n cursor: pointer;\n appearance: none;\n box-shadow: none;\n font-weight: 700;\n min-width: 150px;\n font-weight: 500;\n line-height: 1.1;\n text-shadow: none;\n padding: 12px 25px;\n white-space: nowrap;\n letter-spacing: 0.5px;\n display: inline-block;\n transition: background 0.2s;\n border-radius: 0px 0px 3px 0px;\n color: ",";\n background: ",";\n"]);return i=function(){return n},n}function u(){var n=p(["\n border: 0;\n margin: 0;\n width: 100%;\n outline: none;\n font-size: 14px;\n min-width: 100%;\n max-width: 100%;\n min-height: 80px;\n box-shadow: none;\n line-height: 1.4;\n border-radius: 0;\n padding: 8px 10px;\n letter-spacing: 0.7px;\n box-sizing: border-box;\n color: ",";\n background: ",";\n"]);return u=function(){return n},n}function a(){var n=p(["\n margin: 0;\n padding: 0;\n font-size: 0;\n appearance: none;\n position: relative;\n border-radius: 4px;\n box-sizing: border-box;\n border: 2px solid ",";\n"]);return a=function(){return n},n}function p(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var d=n.default.div(a(),function(n){return n.theme.borderColor});exports.Container=d;var x=n.default.textarea(u(),function(n){return n.theme.textColor},function(n){return n.theme.inputBackground});exports.Textarea=x;var s=n.default.button(i(),function(n){return n.theme.buttonColor},function(n){return n.theme.buttonBackground});exports.Button=s;var c=n.default.div(o(),function(n){return n.theme.borderColor});exports.Footer=c;var f=n.default.form(t());exports.Form=f;var l=n.default.input(r(),function(n){return n.theme.textColor},function(n){return n.theme.inputBackground},function(n){return n.theme.borderColor});exports.Input=l; },{"styled-components":"tFSs"}],"Zi9t":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=m;var e=l(require("react")),t=u(require("lscache")),r=require("../../providers/Comments"),n=require("./style"),a=require("react-i18next");function u(e){return e&&e.__esModule?e:{default:e}}function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=n?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function i(e,t){return p(e)||s(e,t)||f(e,t)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r props.theme.buttonColor}; background: ${props => props.theme.buttonBackground}; `;