diff --git a/README.md b/README.md index e48313a..8f8540e 100644 --- a/README.md +++ b/README.md @@ -106,9 +106,7 @@ # Must have for each peer ``` -- Python 3.7+ & Pip3 - -- Browser support CSS3 and ES6 +- **Python 3.10** for v4.0+, **Python 3.7 - 3.9** for v2.0 - v3.0.6.2 ## 🛠 Install 1. Download WGDashboard diff --git a/docs/api-documents.md b/docs/api-documents.md new file mode 100644 index 0000000..677a641 --- /dev/null +++ b/docs/api-documents.md @@ -0,0 +1,8 @@ +# API Documents for WGDashboard + +**Version: v4.0** + +**Created by: Donald Zou** + +
/
at the end of your path. e.g /etc/wireguard
"})])]),h("div",fk,[pk,h("div",gk,[dt(c,{targetData:"username",title:"Username"}),mk,dt(d,{targetData:"password"})])]),dt(u)])])}const bk=St(nk,[["render",_k]]);var to={},vk=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},d_={},je={};let zd;const yk=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];je.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};je.getSymbolTotalCodewords=function(t){return yk[t]};je.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};je.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');zd=t};je.isKanjiModeEnabled=function(){return typeof zd<"u"};je.toSJIS=function(t){return zd(t)};var rl={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+s)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,i){if(e.isValid(n))return n;try{return t(n)}catch{return i}}})(rl);function u_(){this.buffer=[],this.length=0}u_.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let s=0;s/
at the end of your path. e.g /etc/wireguard
"})])]),h("div",fk,[pk,h("div",gk,[dt(c,{targetData:"username",title:"Username"}),mk,dt(d,{targetData:"password"})])]),dt(u)])])}const bk=Et(nk,[["render",_k]]);var to={},vk=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},d_={},je={};let zd;const yk=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];je.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};je.getSymbolTotalCodewords=function(t){return yk[t]};je.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};je.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');zd=t};je.isKanjiModeEnabled=function(){return typeof zd<"u"};je.toSJIS=function(t){return zd(t)};var rl={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+s)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,i){if(e.isValid(n))return n;try{return t(n)}catch{return i}}})(rl);function u_(){this.buffer=[],this.length=0}u_.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let s=0;si)return l}return Math.max(i,1)}function tR(e){const t=[];let s,n;for(s=0,n=e.length;so.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Qe.update(this,this.width,this.height,t);const s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],zt(this.boxes,i=>{n&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let s=0,n=this.data.datasets.length;s{s.addEventListener(this,o,r),t[o]=r},i=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};zt(this.options.events,o=>n(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,s=this.platform,n=(l,c)=>{s.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(s.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",a)},s.isAttached(this.canvas)?a():r()}unbindEvents(){zt(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},zt(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,n){const i=n?"set":"remove";let o,r,a,l;for(s==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a