@xpoudy/free-tools 0.1.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +26 -7
- package/assets/calculators.js +175 -0
- package/assets/common.js +176 -0
- package/assets/copy.js +140 -0
- package/assets/dns.js +280 -0
- package/assets/lists.js +187 -0
- package/assets/mail.js +302 -0
- package/assets/message.js +47 -0
- package/assets/mirror-index.css +6 -0
- package/assets/reports.js +179 -0
- package/assets/toolbox-auth.js +229 -0
- package/assets/toolbox-campaign.js +154 -0
- package/assets/toolbox-compose.js +212 -0
- package/assets/toolbox-data.js +53 -0
- package/assets/toolbox-disposable-license.txt +24 -0
- package/assets/toolbox-disposable.js +1 -0
- package/assets/toolbox-domain.js +199 -0
- package/assets/toolbox-files.js +250 -0
- package/assets/toolbox-leads.js +133 -0
- package/assets/toolbox-measure.js +153 -0
- package/assets/toolbox-pdf-license.txt +177 -0
- package/assets/toolbox-pdf-worker.js +21 -0
- package/assets/toolbox-pdf.js +21 -0
- package/assets/toolbox-ui.js +285 -0
- package/assets/toolbox-vendor-data.js +6 -0
- package/assets/toolbox-vendor-licenses.txt +75 -0
- package/assets/toolbox-vendor-qr.js +8 -0
- package/assets/toolbox.css +14 -0
- package/assets/tools.css +112 -0
- package/assets/ui.js +257 -0
- package/catalog.json +3 -1
- package/favicon-32x32.png +0 -0
- package/index.html +1 -0
- package/index.js +3 -1
- package/package.json +17 -3
- package/tools/cold-email-volume-calculator/index.html +33 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
fflate
|
|
2
|
+
MIT License
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 Arjun Barrett
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
23
|
+
|
|
24
|
+
qrcode
|
|
25
|
+
The MIT License (MIT)
|
|
26
|
+
|
|
27
|
+
Copyright (c) 2012 Ryan Day
|
|
28
|
+
|
|
29
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
30
|
+
|
|
31
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
32
|
+
|
|
33
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
libphonenumber-js
|
|
38
|
+
(The MIT License)
|
|
39
|
+
|
|
40
|
+
Copyright (c) 2016 @catamphetamine <purecatamphetamine@gmail.com>
|
|
41
|
+
|
|
42
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
43
|
+
a copy of this software and associated documentation files (the
|
|
44
|
+
'Software'), to deal in the Software without restriction, including
|
|
45
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
46
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
47
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
48
|
+
the following conditions:
|
|
49
|
+
|
|
50
|
+
The above copyright notice and this permission notice shall be
|
|
51
|
+
included in all copies or substantial portions of the Software.
|
|
52
|
+
|
|
53
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
54
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
55
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
56
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
57
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
58
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
59
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
60
|
+
|
|
61
|
+
tldts
|
|
62
|
+
Copyright (c) 2017 Thomas Parisot, 2018 Rémi Berson
|
|
63
|
+
|
|
64
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
65
|
+
associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
66
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
67
|
+
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
68
|
+
subject to the following conditions:
|
|
69
|
+
|
|
70
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
71
|
+
|
|
72
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
73
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
74
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
75
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var Ue=Object.create;var Lt=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var Fe=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty;var g=(n,t)=>()=>{try{return t||n((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var ze=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of De(t))!ke.call(n,o)&&o!==e&&Lt(n,o,{get:()=>t[o],enumerable:!(r=qe(t,o))||r.enumerable});return n};var Ve=(n,t,e)=>(e=n!=null?Ue(Fe(n)):{},ze(t||!n||!n.__esModule?Lt(e,"default",{value:n,enumerable:!0}):e,n));var xt=g((Dn,_t)=>{_t.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var I=g(P=>{var st,He=[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];P.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};P.getSymbolTotalCodewords=function(t){return He[t]};P.getBCHDigit=function(n){let t=0;for(;n!==0;)t++,n>>>=1;return t};P.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');st=t};P.isKanjiModeEnabled=function(){return typeof st<"u"};P.toSJIS=function(t){return st(t)}});var j=g(m=>{m.L={bit:1};m.M={bit:0};m.Q={bit:3};m.H={bit:2};function Ke(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return m.L;case"m":case"medium":return m.M;case"q":case"quartile":return m.Q;case"h":case"high":return m.H;default:throw new Error("Unknown EC Level: "+n)}}m.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};m.from=function(t,e){if(m.isValid(t))return t;try{return Ke(t)}catch{return e}}});var Dt=g((zn,qt)=>{function Ut(){this.buffer=[],this.length=0}Ut.prototype={get:function(n){let t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)===1},put:function(n,t){for(let e=0;e<t;e++)this.putBit((n>>>t-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}};qt.exports=Ut});var kt=g((Vn,Ft)=>{function k(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}k.prototype.set=function(n,t,e,r){let o=n*this.size+t;this.data[o]=e,r&&(this.reservedBit[o]=!0)};k.prototype.get=function(n,t){return this.data[n*this.size+t]};k.prototype.xor=function(n,t,e){this.data[n*this.size+t]^=e};k.prototype.isReserved=function(n,t){return this.reservedBit[n*this.size+t]};Ft.exports=k});var zt=g(G=>{var Je=I().getSymbolSize;G.getRowColCoords=function(t){if(t===1)return[];let e=Math.floor(t/7)+2,r=Je(t),o=r===145?26:Math.ceil((r-13)/(2*e-2))*2,i=[r-7];for(let s=1;s<e-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()};G.getPositions=function(t){let e=[],r=G.getRowColCoords(t),o=r.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||e.push([r[i],r[s]]);return e}});var Kt=g(Ht=>{var Ye=I().getSymbolSize,Vt=7;Ht.getPositions=function(t){let e=Ye(t);return[[0,0],[e-Vt,0],[0,e-Vt]]}});var Jt=g(d=>{d.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var b={N1:3,N2:3,N3:40,N4:10};d.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};d.from=function(t){return d.isValid(t)?parseInt(t,10):void 0};d.getPenaltyN1=function(t){let e=t.size,r=0,o=0,i=0,s=null,u=null;for(let c=0;c<e;c++){o=i=0,s=u=null;for(let l=0;l<e;l++){let a=t.get(c,l);a===s?o++:(o>=5&&(r+=b.N1+(o-5)),s=a,o=1),a=t.get(l,c),a===u?i++:(i>=5&&(r+=b.N1+(i-5)),u=a,i=1)}o>=5&&(r+=b.N1+(o-5)),i>=5&&(r+=b.N1+(i-5))}return r};d.getPenaltyN2=function(t){let e=t.size,r=0;for(let o=0;o<e-1;o++)for(let i=0;i<e-1;i++){let s=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);(s===4||s===0)&&r++}return r*b.N2};d.getPenaltyN3=function(t){let e=t.size,r=0,o=0,i=0;for(let s=0;s<e;s++){o=i=0;for(let u=0;u<e;u++)o=o<<1&2047|t.get(s,u),u>=10&&(o===1488||o===93)&&r++,i=i<<1&2047|t.get(u,s),u>=10&&(i===1488||i===93)&&r++}return r*b.N3};d.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let i=0;i<r;i++)e+=t.data[i];return Math.abs(Math.ceil(e*100/r/5)-10)*b.N4};function Oe(n,t,e){switch(n){case d.Patterns.PATTERN000:return(t+e)%2===0;case d.Patterns.PATTERN001:return t%2===0;case d.Patterns.PATTERN010:return e%3===0;case d.Patterns.PATTERN011:return(t+e)%3===0;case d.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case d.Patterns.PATTERN101:return t*e%2+t*e%3===0;case d.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case d.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}d.applyMask=function(t,e){let r=e.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)e.isReserved(i,o)||e.xor(i,o,Oe(t,i,o))};d.getBestMask=function(t,e){let r=Object.keys(d.Patterns).length,o=0,i=1/0;for(let s=0;s<r;s++){e(s),d.applyMask(s,t);let u=d.getPenaltyN1(t)+d.getPenaltyN2(t)+d.getPenaltyN3(t)+d.getPenaltyN4(t);d.applyMask(s,t),u<i&&(i=u,o=s)}return o}});var ct=g(ut=>{var N=j(),Q=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],$=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ut.getBlocksCount=function(t,e){switch(e){case N.L:return Q[(t-1)*4+0];case N.M:return Q[(t-1)*4+1];case N.Q:return Q[(t-1)*4+2];case N.H:return Q[(t-1)*4+3];default:return}};ut.getTotalCodewordsCount=function(t,e){switch(e){case N.L:return $[(t-1)*4+0];case N.M:return $[(t-1)*4+1];case N.Q:return $[(t-1)*4+2];case N.H:return $[(t-1)*4+3];default:return}}});var Yt=g(Z=>{var z=new Uint8Array(512),W=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)z[e]=t,W[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)z[e]=z[e-255]})();Z.log=function(t){if(t<1)throw new Error("log("+t+")");return W[t]};Z.exp=function(t){return z[t]};Z.mul=function(t,e){return t===0||e===0?0:z[W[t]+W[e]]}});var Ot=g(V=>{var lt=Yt();V.mul=function(t,e){let r=new Uint8Array(t.length+e.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<e.length;i++)r[o+i]^=lt.mul(t[o],e[i]);return r};V.mod=function(t,e){let r=new Uint8Array(t);for(;r.length-e.length>=0;){let o=r[0];for(let s=0;s<e.length;s++)r[s]^=lt.mul(e[s],o);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r};V.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let r=0;r<t;r++)e=V.mul(e,new Uint8Array([1,lt.exp(r)]));return e}});var Qt=g((Gn,Gt)=>{var jt=Ot();function at(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}at.prototype.initialize=function(t){this.degree=t,this.genPoly=jt.generateECPolynomial(this.degree)};at.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let r=jt.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};Gt.exports=at});var ft=g($t=>{$t.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var gt=g(B=>{var Wt="[0-9]+",je="[A-Z $%*+\\-./:]+",H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");var Ge="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
|
|
2
|
+
]))+`;B.KANJI=new RegExp(H,"g");B.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");B.BYTE=new RegExp(Ge,"g");B.NUMERIC=new RegExp(Wt,"g");B.ALPHANUMERIC=new RegExp(je,"g");var Qe=new RegExp("^"+H+"$"),$e=new RegExp("^"+Wt+"$"),We=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");B.testKanji=function(t){return Qe.test(t)};B.testNumeric=function(t){return $e.test(t)};B.testAlphanumeric=function(t){return We.test(t)}});var M=g(p=>{var Ze=ft(),dt=gt();p.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};p.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};p.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};p.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};p.MIXED={bit:-1};p.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!Ze.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]};p.getBestModeForData=function(t){return dt.testNumeric(t)?p.NUMERIC:dt.testAlphanumeric(t)?p.ALPHANUMERIC:dt.testKanji(t)?p.KANJI:p.BYTE};p.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};p.isValid=function(t){return t&&t.bit&&t.ccBits};function Xe(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return p.NUMERIC;case"alphanumeric":return p.ALPHANUMERIC;case"kanji":return p.KANJI;case"byte":return p.BYTE;default:throw new Error("Unknown mode: "+n)}}p.from=function(t,e){if(p.isValid(t))return t;try{return Xe(t)}catch{return e}}});var ee=g(R=>{var X=I(),ve=ct(),Zt=j(),S=M(),ht=ft(),vt=7973,Xt=X.getBCHDigit(vt);function tn(n,t,e){for(let r=1;r<=40;r++)if(t<=R.getCapacity(r,e,n))return r}function te(n,t){return S.getCharCountIndicator(n,t)+4}function en(n,t){let e=0;return n.forEach(function(r){let o=te(r.mode,t);e+=o+r.getBitsLength()}),e}function nn(n,t){for(let e=1;e<=40;e++)if(en(n,e)<=R.getCapacity(e,t,S.MIXED))return e}R.from=function(t,e){return ht.isValid(t)?parseInt(t,10):e};R.getCapacity=function(t,e,r){if(!ht.isValid(t))throw new Error("Invalid QR Code version");typeof r>"u"&&(r=S.BYTE);let o=X.getSymbolTotalCodewords(t),i=ve.getTotalCodewordsCount(t,e),s=(o-i)*8;if(r===S.MIXED)return s;let u=s-te(r,t);switch(r){case S.NUMERIC:return Math.floor(u/10*3);case S.ALPHANUMERIC:return Math.floor(u/11*2);case S.KANJI:return Math.floor(u/13);case S.BYTE:default:return Math.floor(u/8)}};R.getBestVersionForData=function(t,e){let r,o=Zt.from(e,Zt.M);if(Array.isArray(t)){if(t.length>1)return nn(t,o);if(t.length===0)return 1;r=t[0]}else r=t;return tn(r.mode,r.getLength(),o)};R.getEncodedBits=function(t){if(!ht.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;X.getBCHDigit(e)-Xt>=0;)e^=vt<<X.getBCHDigit(e)-Xt;return t<<12|e}});var ie=g(oe=>{var pt=I(),re=1335,rn=21522,ne=pt.getBCHDigit(re);oe.getEncodedBits=function(t,e){let r=t.bit<<3|e,o=r<<10;for(;pt.getBCHDigit(o)-ne>=0;)o^=re<<pt.getBCHDigit(o)-ne;return(r<<10|o)^rn}});var ue=g((vn,se)=>{var on=M();function x(n){this.mode=on.NUMERIC,this.data=n.toString()}x.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(t){let e,r,o;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),o=parseInt(r,10),t.put(o,10);let i=this.data.length-e;i>0&&(r=this.data.substr(e),o=parseInt(r,10),t.put(o,i*3+1))};se.exports=x});var le=g((tr,ce)=>{var sn=M(),wt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function U(n){this.mode=sn.ALPHANUMERIC,this.data=n}U.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=wt.indexOf(this.data[e])*45;r+=wt.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(wt.indexOf(this.data[e]),6)};ce.exports=U});var fe=g((er,ae)=>{var un=M();function q(n){this.mode=un.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}q.getBitsLength=function(t){return t*8};q.prototype.getLength=function(){return this.data.length};q.prototype.getBitsLength=function(){return q.getBitsLength(this.data.length)};q.prototype.write=function(n){for(let t=0,e=this.data.length;t<e;t++)n.put(this.data[t],8)};ae.exports=q});var de=g((nr,ge)=>{var cn=M(),ln=I();function D(n){this.mode=cn.KANJI,this.data=n}D.getBitsLength=function(t){return t*13};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=ln.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
3
|
+
Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}};ge.exports=D});var he=g((rr,mt)=>{"use strict";var K={single_source_shortest_paths:function(n,t,e){var r={},o={};o[t]=0;var i=K.PriorityQueue.make();i.push(t,0);for(var s,u,c,l,a,w,h,y,A;!i.empty();){s=i.pop(),u=s.value,l=s.cost,a=n[u]||{};for(c in a)a.hasOwnProperty(c)&&(w=a[c],h=l+w,y=o[c],A=typeof o[c]>"u",(A||y>h)&&(o[c]=h,i.push(c,h),r[c]=u))}if(typeof e<"u"&&typeof o[e]>"u"){var T=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(T)}return r},extract_shortest_path_from_predecessor_list:function(n,t){for(var e=[],r=t,o;r;)e.push(r),o=n[r],r=n[r];return e.reverse(),e},find_path:function(n,t,e){var r=K.single_source_shortest_paths(n,t,e);return K.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(n){var t=K.PriorityQueue,e={},r;n=n||{};for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e.queue=[],e.sorter=n.sorter||t.default_sorter,e},default_sorter:function(n,t){return n.cost-t.cost},push:function(n,t){var e={value:n,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof mt<"u"&&(mt.exports=K)});var Ae=g(F=>{var f=M(),me=ue(),ye=le(),Ee=fe(),Ce=de(),J=gt(),v=I(),an=he();function pe(n){return unescape(encodeURIComponent(n)).length}function Y(n,t,e){let r=[],o;for(;(o=n.exec(e))!==null;)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function Be(n){let t=Y(J.NUMERIC,f.NUMERIC,n),e=Y(J.ALPHANUMERIC,f.ALPHANUMERIC,n),r,o;return v.isKanjiModeEnabled()?(r=Y(J.BYTE,f.BYTE,n),o=Y(J.KANJI,f.KANJI,n)):(r=Y(J.BYTE_KANJI,f.BYTE,n),o=[]),t.concat(e,r,o).sort(function(s,u){return s.index-u.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function yt(n,t){switch(t){case f.NUMERIC:return me.getBitsLength(n);case f.ALPHANUMERIC:return ye.getBitsLength(n);case f.KANJI:return Ce.getBitsLength(n);case f.BYTE:return Ee.getBitsLength(n)}}function fn(n){return n.reduce(function(t,e){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}function gn(n){let t=[];for(let e=0;e<n.length;e++){let r=n[e];switch(r.mode){case f.NUMERIC:t.push([r,{data:r.data,mode:f.ALPHANUMERIC,length:r.length},{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.ALPHANUMERIC:t.push([r,{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.KANJI:t.push([r,{data:r.data,mode:f.BYTE,length:pe(r.data)}]);break;case f.BYTE:t.push([{data:r.data,mode:f.BYTE,length:pe(r.data)}])}}return t}function dn(n,t){let e={},r={start:{}},o=["start"];for(let i=0;i<n.length;i++){let s=n[i],u=[];for(let c=0;c<s.length;c++){let l=s[c],a=""+i+c;u.push(a),e[a]={node:l,lastCount:0},r[a]={};for(let w=0;w<o.length;w++){let h=o[w];e[h]&&e[h].node.mode===l.mode?(r[h][a]=yt(e[h].lastCount+l.length,l.mode)-yt(e[h].lastCount,l.mode),e[h].lastCount+=l.length):(e[h]&&(e[h].lastCount=l.length),r[h][a]=yt(l.length,l.mode)+4+f.getCharCountIndicator(l.mode,t))}}o=u}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:e}}function we(n,t){let e,r=f.getBestModeForData(n);if(e=f.from(t,r),e!==f.BYTE&&e.bit<r.bit)throw new Error('"'+n+'" cannot be encoded with mode '+f.toString(e)+`.
|
|
4
|
+
Suggested mode is: `+f.toString(r));switch(e===f.KANJI&&!v.isKanjiModeEnabled()&&(e=f.BYTE),e){case f.NUMERIC:return new me(n);case f.ALPHANUMERIC:return new ye(n);case f.KANJI:return new Ce(n);case f.BYTE:return new Ee(n)}}F.fromArray=function(t){return t.reduce(function(e,r){return typeof r=="string"?e.push(we(r,null)):r.data&&e.push(we(r.data,r.mode)),e},[])};F.fromString=function(t,e){let r=Be(t,v.isKanjiModeEnabled()),o=gn(r),i=dn(o,e),s=an.find_path(i.map,"start","end"),u=[];for(let c=1;c<s.length-1;c++)u.push(i.table[s[c]].node);return F.fromArray(fn(u))};F.rawSplit=function(t){return F.fromArray(Be(t,v.isKanjiModeEnabled()))}});var Ie=g(Te=>{var et=I(),Et=j(),hn=Dt(),pn=kt(),wn=zt(),mn=Kt(),At=Jt(),Tt=ct(),yn=Qt(),tt=ee(),En=ie(),Cn=M(),Ct=Ae();function Bn(n,t){let e=n.size,r=mn.getPositions(t);for(let o=0;o<r.length;o++){let i=r[o][0],s=r[o][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||e<=i+u))for(let c=-1;c<=7;c++)s+c<=-1||e<=s+c||(u>=0&&u<=6&&(c===0||c===6)||c>=0&&c<=6&&(u===0||u===6)||u>=2&&u<=4&&c>=2&&c<=4?n.set(i+u,s+c,!0,!0):n.set(i+u,s+c,!1,!0))}}function An(n){let t=n.size;for(let e=8;e<t-8;e++){let r=e%2===0;n.set(e,6,r,!0),n.set(6,e,r,!0)}}function Tn(n,t){let e=wn.getPositions(t);for(let r=0;r<e.length;r++){let o=e[r][0],i=e[r][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?n.set(o+s,i+u,!0,!0):n.set(o+s,i+u,!1,!0)}}function In(n,t){let e=n.size,r=tt.getEncodedBits(t),o,i,s;for(let u=0;u<18;u++)o=Math.floor(u/3),i=u%3+e-8-3,s=(r>>u&1)===1,n.set(o,i,s,!0),n.set(i,o,s,!0)}function Bt(n,t,e){let r=n.size,o=En.getEncodedBits(t,e),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?n.set(i,8,s,!0):i<8?n.set(i+1,8,s,!0):n.set(r-15+i,8,s,!0),i<8?n.set(8,r-i-1,s,!0):i<9?n.set(8,15-i-1+1,s,!0):n.set(8,15-i-1,s,!0);n.set(r-8,8,1,!0)}function Nn(n,t){let e=n.size,r=-1,o=e-1,i=7,s=0;for(let u=e-1;u>0;u-=2)for(u===6&&u--;;){for(let c=0;c<2;c++)if(!n.isReserved(o,u-c)){let l=!1;s<t.length&&(l=(t[s]>>>i&1)===1),n.set(o,u-c,l),i--,i===-1&&(s++,i=7)}if(o+=r,o<0||e<=o){o-=r,r=-r;break}}}function Mn(n,t,e){let r=new hn;e.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),Cn.getCharCountIndicator(c.mode,n)),c.write(r)});let o=et.getSymbolTotalCodewords(n),i=Tt.getTotalCodewordsCount(n,t),s=(o-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let u=(s-r.getLengthInBits())/8;for(let c=0;c<u;c++)r.put(c%2?17:236,8);return Sn(r,n,t)}function Sn(n,t,e){let r=et.getSymbolTotalCodewords(t),o=Tt.getTotalCodewordsCount(t,e),i=r-o,s=Tt.getBlocksCount(t,e),u=r%s,c=s-u,l=Math.floor(r/s),a=Math.floor(i/s),w=a+1,h=l-a,y=new yn(h),A=0,T=new Array(s),bt=new Array(s),rt=0,xe=new Uint8Array(n.buffer);for(let _=0;_<s;_++){let it=_<c?a:w;T[_]=xe.slice(A,A+it),bt[_]=y.encode(T[_]),A+=it,rt=Math.max(rt,it)}let ot=new Uint8Array(r),Rt=0,E,C;for(E=0;E<rt;E++)for(C=0;C<s;C++)E<T[C].length&&(ot[Rt++]=T[C][E]);for(E=0;E<h;E++)for(C=0;C<s;C++)ot[Rt++]=bt[C][E];return ot}function Pn(n,t,e,r){let o;if(Array.isArray(n))o=Ct.fromArray(n);else if(typeof n=="string"){let l=t;if(!l){let a=Ct.rawSplit(n);l=tt.getBestVersionForData(a,e)}o=Ct.fromString(n,l||40)}else throw new Error("Invalid data");let i=tt.getBestVersionForData(o,e);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
|
|
5
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
+
Minimum version required to store current data is: `+i+`.
|
|
7
|
+
`);let s=Mn(t,e,o),u=et.getSymbolSize(t),c=new pn(u);return Bn(c,t),An(c),Tn(c,t),Bt(c,e,0),t>=7&&In(c,t),Nn(c,s),isNaN(r)&&(r=At.getBestMask(c,Bt.bind(null,c,e))),At.applyMask(r,c),Bt(c,e,r),{modules:c,version:t,errorCorrectionLevel:e,maskPattern:r,segments:o}}Te.create=function(t,e){if(typeof t>"u"||t==="")throw new Error("No input text");let r=Et.M,o,i;return typeof e<"u"&&(r=Et.from(e.errorCorrectionLevel,Et.M),o=tt.from(e.version),i=At.from(e.maskPattern),e.toSJISFunc&&et.setToSJISFunction(e.toSJISFunc)),Pn(t,o,r,i)}});var It=g(L=>{function Ne(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let t=n.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+n);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(r){return[r,r]}))),t.length===6&&t.push("F","F");let e=parseInt(t.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+t.slice(0,6).join("")}}L.getOptions=function(t){t||(t={}),t.color||(t.color={});let e=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:e,color:{dark:Ne(t.color.dark||"#000000ff"),light:Ne(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};L.getScale=function(t,e){return e.width&&e.width>=t+e.margin*2?e.width/(t+e.margin*2):e.scale};L.getImageWidth=function(t,e){let r=L.getScale(t,e);return Math.floor((t+e.margin*2)*r)};L.qrToImageData=function(t,e,r){let o=e.modules.size,i=e.modules.data,s=L.getScale(o,r),u=Math.floor((o+r.margin*2)*s),c=r.margin*s,l=[r.color.light,r.color.dark];for(let a=0;a<u;a++)for(let w=0;w<u;w++){let h=(a*u+w)*4,y=r.color.light;if(a>=c&&w>=c&&a<u-c&&w<u-c){let A=Math.floor((a-c)/s),T=Math.floor((w-c)/s);y=l[i[A*o+T]?1:0]}t[h++]=y.r,t[h++]=y.g,t[h++]=y.b,t[h]=y.a}}});var Me=g(nt=>{var Nt=It();function bn(n,t,e){n.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=e,t.width=e,t.style.height=e+"px",t.style.width=e+"px"}function Rn(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}nt.render=function(t,e,r){let o=r,i=e;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),e||(i=Rn()),o=Nt.getOptions(o);let s=Nt.getImageWidth(t.modules.size,o),u=i.getContext("2d"),c=u.createImageData(s,s);return Nt.qrToImageData(c.data,t,o),bn(u,i,s),u.putImageData(c,0,0),i};nt.renderToDataURL=function(t,e,r){let o=r;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),o||(o={});let i=nt.render(t,e,o),s=o.type||"image/png",u=o.rendererOpts||{};return i.toDataURL(s,u.quality)}});var be=g(Pe=>{var Ln=It();function Se(n,t){let e=n.a/255,r=t+'="'+n.hex+'"';return e<1?r+" "+t+'-opacity="'+e.toFixed(2).slice(1)+'"':r}function Mt(n,t,e){let r=n+t;return typeof e<"u"&&(r+=" "+e),r}function _n(n,t,e){let r="",o=0,i=!1,s=0;for(let u=0;u<n.length;u++){let c=Math.floor(u%t),l=Math.floor(u/t);!c&&!i&&(i=!0),n[u]?(s++,u>0&&c>0&&n[u-1]||(r+=i?Mt("M",c+e,.5+l+e):Mt("m",o,0),o=0,i=!1),c+1<t&&n[u+1]||(r+=Mt("h",s),s=0)):o++}return r}Pe.render=function(t,e,r){let o=Ln.getOptions(e),i=t.modules.size,s=t.modules.data,u=i+o.margin*2,c=o.color.light.a?"<path "+Se(o.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+Se(o.color.dark,"stroke")+' d="'+_n(s,i,o.margin)+'"/>',a='viewBox="0 0 '+u+" "+u+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+a+' shape-rendering="crispEdges">'+c+l+`</svg>
|
|
8
|
+
`;return typeof r=="function"&&r(null,h),h}});var Le=g(O=>{var xn=xt(),St=Ie(),Re=Me(),Un=be();function Pt(n,t,e,r,o){let i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!xn())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(o=e,e=t,t=r=void 0):s===3&&(t.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=e,e=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(e=t,t=r=void 0):s===2&&!t.getContext&&(r=e,e=t,t=void 0),new Promise(function(c,l){try{let a=St.create(e,r);c(n(a,t,r))}catch(a){l(a)}})}try{let c=St.create(e,r);o(null,n(c,t,r))}catch(c){o(c)}}O.create=St.create;O.toCanvas=Pt.bind(null,Re.render);O.toDataURL=Pt.bind(null,Re.renderToDataURL);O.toString=Pt.bind(null,function(n,t,e){return Un.render(n,e)})});var _e=Ve(Le(),1),ar=_e.default.create;export{ar as createQR};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.tool-search{max-width:36rem;margin:0 0 1.2rem}
|
|
2
|
+
.tool-search p{min-height:1.2em;margin-top:.4rem;font-size:.82rem}
|
|
3
|
+
.tool-recents{margin-bottom:1rem}
|
|
4
|
+
.tool-recents h2{font-size:1rem;margin-bottom:.55rem}
|
|
5
|
+
.tool-recents ul{list-style:none;padding:0;margin:0}
|
|
6
|
+
.tool-recents li{display:flex}
|
|
7
|
+
.result .record-output{max-height:25rem;overflow:auto}
|
|
8
|
+
.result table td{white-space:pre-line}
|
|
9
|
+
.toolbox-preview{display:block;margin:.8rem 0;max-width:100%;min-height:12rem;border-radius:12px;background:#fff;border:1px solid var(--line)}
|
|
10
|
+
.toolbox-inbox{max-width:100%;margin:.65rem 0;padding:.65rem .8rem;border:1px solid var(--line);border-radius:12px;background:#0C1629;overflow:hidden}
|
|
11
|
+
.toolbox-inbox-narrow{width:18rem}
|
|
12
|
+
.toolbox-inbox p,.toolbox-inbox-subject,.toolbox-inbox strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
|
13
|
+
.toolbox-inbox p{font-size:.81rem}
|
|
14
|
+
.toolbox-qr{display:block;max-width:min(100%,16rem);height:auto;margin:.8rem 0;border-radius:10px}
|
package/assets/tools.css
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme:dark; --canvas:#050912; --panel:#0A0F1D; --surface:#0B132B;
|
|
3
|
+
--ink:#F8FAFC; --mute:#AAB9CD; --accent:#00F5D4; --line:rgba(255,255,255,.13);
|
|
4
|
+
font:16px/1.55 Inter,system-ui,sans-serif; background:var(--canvas); color:var(--ink);
|
|
5
|
+
}
|
|
6
|
+
* {box-sizing:border-box}
|
|
7
|
+
body {margin:0}
|
|
8
|
+
[hidden] {display:none!important}
|
|
9
|
+
h1,h2,h3,p,dl,dd {margin:0}
|
|
10
|
+
h1,h2,h3,.brand {font-family:"Plus Jakarta Sans",Inter,system-ui,sans-serif;line-height:1.15}
|
|
11
|
+
h1 {font-size:clamp(2.05rem,4.8vw,3.85rem);letter-spacing:-.035em;font-weight:800;text-wrap:balance}
|
|
12
|
+
h2 {font-size:1.37rem;letter-spacing:-.02em}
|
|
13
|
+
h3 {font-size:1.0rem;line-height:1.35}
|
|
14
|
+
a {color:var(--accent);text-underline-offset:.18em}
|
|
15
|
+
a:hover {color:#B6FFF3}
|
|
16
|
+
p {color:var(--mute);line-height:1.62}
|
|
17
|
+
button,input,select,textarea {font:inherit}
|
|
18
|
+
.shell {width:min(calc(100% - 3rem),74rem);margin-inline:auto}
|
|
19
|
+
.skip {position:absolute;left:1rem;top:-8rem;padding:.55rem .9rem;background:var(--canvas);z-index:10}
|
|
20
|
+
.skip:focus {top:.5rem}
|
|
21
|
+
:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
|
|
22
|
+
header,footer {background:#080D19;border-bottom:1px solid var(--line)}
|
|
23
|
+
.header-inner,.footer-inner {display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.15rem}
|
|
24
|
+
.brand {color:var(--ink);font-size:1.45rem;letter-spacing:-.06em;font-weight:800;text-decoration:none}
|
|
25
|
+
.brand span {color:var(--accent)}
|
|
26
|
+
header nav,footer nav {display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
|
|
27
|
+
header nav>a:not(.primary),footer a {color:var(--mute);text-decoration:none;font-size:.87rem}
|
|
28
|
+
header nav>a:not(.primary):hover,footer a:hover {color:var(--accent)}
|
|
29
|
+
.primary,.secondary {display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:42px;padding:.59rem .86rem;border-radius:10px;font-size:.88rem;font-weight:720;line-height:1.3;cursor:pointer;text-decoration:none}
|
|
30
|
+
.primary {color:#050912;background:var(--accent);border:1px solid transparent;box-shadow:0 4px 14px rgba(0,245,212,.24)}
|
|
31
|
+
.primary:hover {color:#050912;background:#A0FFF0}
|
|
32
|
+
.secondary {color:#D9E4F2;background:rgba(255,255,255,.06);border:1px solid var(--line)}
|
|
33
|
+
.secondary:hover {color:white;border-color:rgba(0,245,212,.45)}
|
|
34
|
+
button:disabled {opacity:.55;cursor:wait}
|
|
35
|
+
.hero {background:radial-gradient(ellipse at 86% -12%,#182A43 0,transparent 63%),linear-gradient(145deg,#0D1729,#080D19);border-bottom:1px solid var(--line);padding:clamp(1.7rem,4vw,3.6rem) 0}
|
|
36
|
+
.hero h1 {max-width:24ch}
|
|
37
|
+
.crumb {display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;font-size:.81rem;font-weight:680;color:var(--mute);margin-bottom:.65rem}
|
|
38
|
+
.crumb>*+* {border-left:1px solid var(--line);padding-left:.6rem}
|
|
39
|
+
.lead {font-size:clamp(1rem,1.8vw,1.15rem);color:#C7D4E6;max-width:70ch;margin-top:.65rem}
|
|
40
|
+
.hero .privacy {color:#9BB0C7;font-size:.82rem;margin-top:.65rem}
|
|
41
|
+
.directory-hero .hero-actions {display:flex;gap:.8rem;margin-top:1.1rem}
|
|
42
|
+
.workspace {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.86fr);gap:1.1rem;align-items:start;padding-block:1.45rem}
|
|
43
|
+
.panel {background:var(--panel);border:1px solid var(--line);border-radius:14px;min-width:0;padding:clamp(1rem,2.2vw,1.45rem)}
|
|
44
|
+
.panel-title {display:flex;justify-content:space-between;align-items:center;gap:.65rem;flex-wrap:wrap;margin-bottom:.9rem}
|
|
45
|
+
.field-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem .9rem}
|
|
46
|
+
.field {min-width:0}
|
|
47
|
+
.field-wide {grid-column:1/-1}
|
|
48
|
+
label {display:block;color:#EBF0F8;font-weight:700;font-size:.85rem;margin-bottom:.28rem}
|
|
49
|
+
.field-hint {font-size:.79rem;margin-top:.3rem;color:#9BB0C7}
|
|
50
|
+
input:not([type=file]), select, textarea {width:100%;min-height:44px;background:#050914;color:white;border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:.58rem .7rem}
|
|
51
|
+
input[type=file] {max-width:100%;font-size:.82rem;color:#BECDE0}
|
|
52
|
+
input[type=file]::file-selector-button {margin-right:.55rem;padding:.39rem .62rem;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--ink);cursor:pointer}
|
|
53
|
+
textarea {resize:vertical;min-height:114px;font: .87rem/1.5 "JetBrains Mono",ui-monospace,monospace}
|
|
54
|
+
.file-pick {margin-top:.32rem}
|
|
55
|
+
.form-actions {display:flex;gap:.55rem;flex-wrap:wrap;margin-top:1rem}
|
|
56
|
+
.error {display:block;margin:.6rem 0;color:#FFD4D8;background:#2C131B;border:1px solid #A85464;border-radius:10px;padding:.55rem .68rem;overflow-wrap:anywhere}
|
|
57
|
+
.activity {margin-top:.55rem;min-height:1em;font-size:.8rem;color:#AABED4}
|
|
58
|
+
.result {scroll-margin-top:1rem}
|
|
59
|
+
.result>h2 {margin-bottom:.68rem}
|
|
60
|
+
.result[data-state=idle] {background:linear-gradient(155deg,#0E1930,var(--panel))}
|
|
61
|
+
.result[data-state=idle] p {color:#CAD7E8}
|
|
62
|
+
.metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.8rem 0}
|
|
63
|
+
.metrics>div {min-width:0;border-radius:10px;border:1px solid var(--line);background:#0C1629;padding:.65rem .72rem}
|
|
64
|
+
.metrics dt {color:#9EB0C9;font-size:.78rem}
|
|
65
|
+
.metrics dd {color:var(--ink);font-weight:760;font-size:1.13rem;line-height:1.25;margin-top:.22rem;overflow-wrap:anywhere}
|
|
66
|
+
.table-scroll {overflow:auto;max-height:24rem;margin-top:.7rem;border:1px solid var(--line);border-radius:10px}
|
|
67
|
+
.table-scroll table {border-collapse:collapse;width:100%;min-width:20rem;font-size:.79rem;line-height:1.36}
|
|
68
|
+
.table-scroll th,.table-scroll td {text-align:left;vertical-align:top;padding:.48rem .58rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
|
|
69
|
+
.table-scroll th {background:#111E35;position:sticky;top:0;white-space:nowrap}
|
|
70
|
+
.table-scroll td {color:#C0CFE0}
|
|
71
|
+
.table-scroll tr:last-child td {border-bottom:0}
|
|
72
|
+
.record-output {color:#DFEAF6;background:#050914;border:1px solid var(--line);border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere;padding:.65rem;font: .84rem/1.48 "JetBrains Mono",ui-monospace,monospace}
|
|
73
|
+
.previews {display:grid;gap:.45rem;margin-top:.7rem}
|
|
74
|
+
.previews details {border:1px solid var(--line);border-radius:10px;padding:.55rem .7rem}
|
|
75
|
+
.previews summary {font-size:.85rem;cursor:pointer;font-weight:700}
|
|
76
|
+
.downloads {margin:.68rem 0;display:flex;gap:.4rem;flex-wrap:wrap}
|
|
77
|
+
.downloads button {font-size:.77rem;overflow-wrap:anywhere}
|
|
78
|
+
.note,.result-notes {font-size:.82rem;color:#9FB1C8}
|
|
79
|
+
.note {margin-top:.49rem}
|
|
80
|
+
.result-notes {padding-left:1.15rem;margin:.8rem 0 0}
|
|
81
|
+
.result-notes li+li {margin-top:.35rem}
|
|
82
|
+
.clipboard-fallback {position:fixed;top:0;left:0;width:1px;height:1px;opacity:0}
|
|
83
|
+
.tool-reading {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.62fr);gap:1.1rem;margin:0 auto 2.8rem}
|
|
84
|
+
.tool-reading p {margin-top:.48rem}
|
|
85
|
+
.tool-reading section+section {margin-top:1.15rem}
|
|
86
|
+
.tool-reading ul {margin:.55rem 0 0;padding-left:1.12rem}
|
|
87
|
+
.tool-reading li+li {margin-top:.33rem}
|
|
88
|
+
.directory {padding:1.6rem 0 3.4rem}
|
|
89
|
+
.topic-nav {display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.8rem}
|
|
90
|
+
.topic-nav a {border:1px solid var(--line);border-radius:10px;padding:.47rem .68rem;background:var(--panel);color:#DCE7F5;text-decoration:none;font-size:.83rem}
|
|
91
|
+
.topic-nav a:hover {border-color:var(--accent);color:var(--accent)}
|
|
92
|
+
.tool-group {scroll-margin-top:1rem;margin:0 0 1.5rem}
|
|
93
|
+
.tool-group h2 {margin-bottom:.69rem}
|
|
94
|
+
.tool-grid {list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;padding:0;margin:0}
|
|
95
|
+
.tool-grid a {height:100%;display:flex;flex-direction:column;gap:.28rem;padding:.85rem;border:1px solid var(--line);border-radius:14px;background:var(--panel);text-decoration:none}
|
|
96
|
+
.tool-grid a:hover {border-color:rgba(0,245,212,.49)}
|
|
97
|
+
.tool-grid h3 {color:var(--ink);display:flex;align-items:flex-start;justify-content:space-between;gap:.4rem}
|
|
98
|
+
.tool-grid h3 svg {flex-shrink:0;color:var(--accent)}
|
|
99
|
+
.tool-grid p {font-size:.85rem}
|
|
100
|
+
footer {border-top:1px solid var(--line);border-bottom:0}
|
|
101
|
+
.footer-inner {color:#92A7BE;font-size:.84rem}
|
|
102
|
+
@media(max-width:890px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
|
|
103
|
+
@media(max-width:760px){.workspace,.tool-reading{grid-template-columns:minmax(0,1fr)}}
|
|
104
|
+
@media(max-width:510px){
|
|
105
|
+
.shell{width:calc(100% - 2rem)}.field-grid,.tool-grid{grid-template-columns:minmax(0,1fr)}
|
|
106
|
+
.footer-inner{flex-wrap:wrap;padding:.55rem 0}.header-inner{min-height:3.75rem}
|
|
107
|
+
header nav{gap:.55rem}.header-inner nav>a:nth-child(2){display:none}
|
|
108
|
+
.metrics dd{font-size:1.02rem}.metrics>div{padding:.55rem}
|
|
109
|
+
.table-scroll table{min-width:25rem}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.mirror-origin{margin:.85rem 0 0}.mirror-origin a{color:#00f5d4;text-decoration:underline}
|
package/assets/ui.js
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import {InputError,MAX_FILE_SIZE} from './common.js';
|
|
2
|
+
|
|
3
|
+
const settings=document.querySelector('#tool-config');
|
|
4
|
+
const form=document.querySelector('#tool-form');
|
|
5
|
+
const output=document.querySelector('#tool-output');
|
|
6
|
+
const alertBox=document.querySelector('#tool-error');
|
|
7
|
+
const activity=document.querySelector('#tool-activity');
|
|
8
|
+
const submit=form.querySelector('button[type=submit]');
|
|
9
|
+
const config=JSON.parse(settings.textContent);
|
|
10
|
+
const formFields=Array.from(form.querySelectorAll('[data-field]'));
|
|
11
|
+
const uploadFields=Array.from(form.querySelectorAll('[data-read-into]'));
|
|
12
|
+
|
|
13
|
+
const modules={
|
|
14
|
+
calculators:()=>import('./calculators.js'),
|
|
15
|
+
lists:()=>import('./lists.js'),
|
|
16
|
+
copy:()=>import('./copy.js'),
|
|
17
|
+
mail:()=>import('./mail.js'),
|
|
18
|
+
reports:()=>import('./reports.js')
|
|
19
|
+
};
|
|
20
|
+
let modulePromise;
|
|
21
|
+
let working=false;
|
|
22
|
+
let revision=0;
|
|
23
|
+
let fileReads=0;
|
|
24
|
+
const pendingReads=new WeakMap();
|
|
25
|
+
|
|
26
|
+
function element(name,content,className){
|
|
27
|
+
const node=document.createElement(name);
|
|
28
|
+
if(className) node.className=className;
|
|
29
|
+
if(content!==undefined) node.textContent=String(content);
|
|
30
|
+
return node;
|
|
31
|
+
}
|
|
32
|
+
function syncMode(){
|
|
33
|
+
const mode=form.elements.namedItem('mode')?.value;
|
|
34
|
+
for(const wrap of formFields){
|
|
35
|
+
if(!wrap.dataset.when) continue;
|
|
36
|
+
wrap.hidden=wrap.dataset.when!==mode;
|
|
37
|
+
for(const input of wrap.querySelectorAll('input,textarea,select')) input.disabled=wrap.hidden;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function showError(message,focus=false){
|
|
41
|
+
alertBox.textContent=message;
|
|
42
|
+
alertBox.hidden=!message;
|
|
43
|
+
if(message&&focus) alertBox.focus();
|
|
44
|
+
}
|
|
45
|
+
function controlsLocked(){
|
|
46
|
+
submit.disabled=working||fileReads>0;
|
|
47
|
+
}
|
|
48
|
+
async function fileText(file){
|
|
49
|
+
if(file.size>MAX_FILE_SIZE) throw new InputError('Open files no larger than 4 MB.');
|
|
50
|
+
try {
|
|
51
|
+
return new TextDecoder('utf-8',{fatal:true}).decode(await file.arrayBuffer());
|
|
52
|
+
} catch {
|
|
53
|
+
throw new InputError('This file could not be read as UTF-8. Save it as UTF-8 text or CSV and try again.');
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
for(const fileInput of uploadFields){
|
|
57
|
+
fileInput.addEventListener('change',async()=>{
|
|
58
|
+
const file=fileInput.files[0];
|
|
59
|
+
if(!file) return;
|
|
60
|
+
const token=revision;
|
|
61
|
+
const operation=Symbol();
|
|
62
|
+
pendingReads.set(fileInput,operation);
|
|
63
|
+
fileReads++;
|
|
64
|
+
controlsLocked();
|
|
65
|
+
showError('');
|
|
66
|
+
activity.textContent='Opening '+file.name+' locally…';
|
|
67
|
+
try{
|
|
68
|
+
const text=await fileText(file);
|
|
69
|
+
if(token!==revision||pendingReads.get(fileInput)!==operation) return;
|
|
70
|
+
form.elements.namedItem(fileInput.dataset.readInto).value=text;
|
|
71
|
+
activity.textContent='Opened '+file.name+' locally.';
|
|
72
|
+
}catch(error){
|
|
73
|
+
if(token===revision&&pendingReads.get(fileInput)===operation){
|
|
74
|
+
activity.textContent='';
|
|
75
|
+
showError(error instanceof InputError?error.message:'This file could not be opened.',true);
|
|
76
|
+
}
|
|
77
|
+
}finally{
|
|
78
|
+
if(pendingReads.get(fileInput)===operation) fileInput.value='';
|
|
79
|
+
fileReads--;
|
|
80
|
+
controlsLocked();
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
form.addEventListener('change',event=>{if(event.target.name==='mode') syncMode();});
|
|
85
|
+
function inputs(){
|
|
86
|
+
const values={}, files={};
|
|
87
|
+
for(const wrap of formFields){
|
|
88
|
+
const control=form.elements.namedItem(wrap.dataset.field);
|
|
89
|
+
if(control.disabled) continue;
|
|
90
|
+
if(control.type==='file') files[control.name]=Array.from(control.files);
|
|
91
|
+
else values[control.name]=control.value;
|
|
92
|
+
}
|
|
93
|
+
return {values,files};
|
|
94
|
+
}
|
|
95
|
+
function makeButton(label,handler){
|
|
96
|
+
const node=element('button',label,'secondary');
|
|
97
|
+
node.type='button';
|
|
98
|
+
node.addEventListener('click',handler);
|
|
99
|
+
return node;
|
|
100
|
+
}
|
|
101
|
+
async function copyText(text){
|
|
102
|
+
if(navigator.clipboard?.writeText){
|
|
103
|
+
try{await navigator.clipboard.writeText(text);activity.textContent='Copied.';return;}catch{}
|
|
104
|
+
}
|
|
105
|
+
const previous=document.activeElement;
|
|
106
|
+
const field=element('textarea',undefined,'clipboard-fallback');
|
|
107
|
+
field.value=text;
|
|
108
|
+
field.setAttribute('aria-label','Text to copy');
|
|
109
|
+
document.body.append(field);
|
|
110
|
+
field.select();
|
|
111
|
+
const copied=document.execCommand('copy');
|
|
112
|
+
field.remove();
|
|
113
|
+
if(previous instanceof HTMLElement) previous.focus();
|
|
114
|
+
activity.textContent=copied?'Copied.':'Copy is unavailable here. Select and copy the displayed result.';
|
|
115
|
+
}
|
|
116
|
+
function downloadFile(file){
|
|
117
|
+
const data=new Blob([file.text],{type:file.type});
|
|
118
|
+
const url=URL.createObjectURL(data);
|
|
119
|
+
const link=element('a');
|
|
120
|
+
link.href=url;
|
|
121
|
+
link.download=file.name;
|
|
122
|
+
document.body.append(link);
|
|
123
|
+
link.click();
|
|
124
|
+
link.remove();
|
|
125
|
+
setTimeout(()=>URL.revokeObjectURL(url),1000);
|
|
126
|
+
}
|
|
127
|
+
function tableCell(value){
|
|
128
|
+
const text=String(value??'—');
|
|
129
|
+
return text.length>4000 ? text.slice(0,3999)+'…' : text;
|
|
130
|
+
}
|
|
131
|
+
function accessibleTable(table){
|
|
132
|
+
const scroll=element('div',undefined,'table-scroll');
|
|
133
|
+
scroll.setAttribute('aria-label','Detailed results');
|
|
134
|
+
scroll.setAttribute('role','region');
|
|
135
|
+
scroll.tabIndex=0;
|
|
136
|
+
const out=element('table');
|
|
137
|
+
const head=element('thead');
|
|
138
|
+
const headerRow=element('tr');
|
|
139
|
+
for(const name of table.columns){
|
|
140
|
+
const cell=element('th',tableCell(name));
|
|
141
|
+
cell.scope='col';
|
|
142
|
+
headerRow.append(cell);
|
|
143
|
+
}
|
|
144
|
+
head.append(headerRow);
|
|
145
|
+
const body=element('tbody');
|
|
146
|
+
for(const row of table.rows){
|
|
147
|
+
const tr=element('tr');
|
|
148
|
+
for(const value of row) tr.append(element('td',tableCell(value)));
|
|
149
|
+
body.append(tr);
|
|
150
|
+
}
|
|
151
|
+
out.append(head,body);
|
|
152
|
+
scroll.append(out);
|
|
153
|
+
return scroll;
|
|
154
|
+
}
|
|
155
|
+
function present(result){
|
|
156
|
+
const fragment=document.createDocumentFragment();
|
|
157
|
+
const heading=element('h2','Results');
|
|
158
|
+
heading.tabIndex=-1;
|
|
159
|
+
heading.id='result-heading';
|
|
160
|
+
fragment.append(heading);
|
|
161
|
+
const metrics=element('dl',undefined,'metrics');
|
|
162
|
+
for(const [label,value] of result.metrics){
|
|
163
|
+
const metric=element('div');
|
|
164
|
+
metric.append(element('dt',label),element('dd',value));
|
|
165
|
+
metrics.append(metric);
|
|
166
|
+
}
|
|
167
|
+
if(result.metrics.length) fragment.append(metrics);
|
|
168
|
+
if(result.text!==undefined){
|
|
169
|
+
fragment.append(element('pre',result.text,'record-output'),makeButton('Copy record',()=>copyText(result.text)));
|
|
170
|
+
}
|
|
171
|
+
if(result.table?.rows.length){
|
|
172
|
+
fragment.append(accessibleTable(result.table));
|
|
173
|
+
if(result.table.rows.some(row=>row.some(value=>String(value??'').length>4000))){
|
|
174
|
+
fragment.append(element('p','Long values are shortened in this preview.','note'));
|
|
175
|
+
}
|
|
176
|
+
if(result.table.total>result.table.rows.length){
|
|
177
|
+
fragment.append(element('p','Showing '+result.table.rows.length+' of '+result.table.total+' rows.','note'));
|
|
178
|
+
}
|
|
179
|
+
}else if(result.table) fragment.append(element('p','No detail rows to show.','note'));
|
|
180
|
+
if(result.blocks?.length){
|
|
181
|
+
const previews=element('div',undefined,'previews');
|
|
182
|
+
for(const [title,body] of result.blocks){
|
|
183
|
+
const detail=element('details');
|
|
184
|
+
detail.open=previews.childElementCount===0;
|
|
185
|
+
detail.append(element('summary',title),element('pre',body,'record-output'),
|
|
186
|
+
makeButton('Copy text',()=>copyText(body)));
|
|
187
|
+
previews.append(detail);
|
|
188
|
+
}
|
|
189
|
+
fragment.append(previews);
|
|
190
|
+
}
|
|
191
|
+
if(result.downloads?.length){
|
|
192
|
+
const area=element('div',undefined,'downloads');
|
|
193
|
+
for(const file of result.downloads) area.append(makeButton('Download '+file.name,()=>downloadFile(file)));
|
|
194
|
+
fragment.append(area);
|
|
195
|
+
}
|
|
196
|
+
if(result.notes?.length){
|
|
197
|
+
const notes=element('ul',undefined,'result-notes');
|
|
198
|
+
for(const text of result.notes) notes.append(element('li',text));
|
|
199
|
+
fragment.append(notes);
|
|
200
|
+
}
|
|
201
|
+
output.replaceChildren(fragment);
|
|
202
|
+
output.dataset.state='done';
|
|
203
|
+
heading.focus({preventScroll:true});
|
|
204
|
+
if(window.matchMedia('(max-width: 760px)').matches) output.scrollIntoView({block:'start',behavior:'instant'});
|
|
205
|
+
}
|
|
206
|
+
async function run(){
|
|
207
|
+
if(working||fileReads) return;
|
|
208
|
+
working=true;
|
|
209
|
+
const submitted=revision;
|
|
210
|
+
controlsLocked();
|
|
211
|
+
showError('');
|
|
212
|
+
activity.textContent='Working…';
|
|
213
|
+
output.dataset.state='working';
|
|
214
|
+
output.setAttribute('aria-busy','true');
|
|
215
|
+
const {values,files}=inputs();
|
|
216
|
+
try{
|
|
217
|
+
modulePromise??=modules[config.module]().catch(error=>{modulePromise=undefined;throw error;});
|
|
218
|
+
const mod=await modulePromise;
|
|
219
|
+
const result=await mod[config.action](values,{files});
|
|
220
|
+
if(submitted!==revision) return;
|
|
221
|
+
present(result);
|
|
222
|
+
activity.textContent='Results ready.';
|
|
223
|
+
}catch(error){
|
|
224
|
+
if(submitted!==revision) return;
|
|
225
|
+
const message=error instanceof InputError?error.message:'The tool could not complete that input. Check the file format or try the example.';
|
|
226
|
+
output.dataset.state='error';
|
|
227
|
+
output.replaceChildren(element('h2','Results'),element('p','Review the message beside the form and run the tool again.','note'));
|
|
228
|
+
activity.textContent='';
|
|
229
|
+
showError(message,true);
|
|
230
|
+
}finally{
|
|
231
|
+
output.setAttribute('aria-busy','false');
|
|
232
|
+
working=false;
|
|
233
|
+
controlsLocked();
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
form.addEventListener('submit',event=>{event.preventDefault();void run();});
|
|
237
|
+
document.querySelector('#load-example').addEventListener('click',()=>{
|
|
238
|
+
if(working||fileReads) return;
|
|
239
|
+
revision++;
|
|
240
|
+
form.reset();
|
|
241
|
+
for(const [name,value] of Object.entries(config.example)){
|
|
242
|
+
const field=form.elements.namedItem(name);
|
|
243
|
+
if(field&&field.type!=='file') field.value=String(value);
|
|
244
|
+
}
|
|
245
|
+
syncMode();
|
|
246
|
+
void run();
|
|
247
|
+
});
|
|
248
|
+
form.addEventListener('reset',()=>{
|
|
249
|
+
revision++;
|
|
250
|
+
showError('');
|
|
251
|
+
activity.textContent='';
|
|
252
|
+
output.dataset.state='idle';
|
|
253
|
+
output.replaceChildren(element('h2','Results'),element('p',config.exampleLine));
|
|
254
|
+
setTimeout(syncMode,0);
|
|
255
|
+
});
|
|
256
|
+
syncMode();
|
|
257
|
+
|
package/catalog.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"title": "Cold Email Volume Calculator",
|
|
5
5
|
"summary": "See how many messages your prospect list and follow-ups could create. Compare the average daily workload with the mailbox capacity you enter.",
|
|
6
6
|
"official_url": "https://xpoudy.com/tools/cold-email-volume-calculator/",
|
|
7
|
-
"module": "calculators"
|
|
7
|
+
"module": "calculators",
|
|
8
|
+
"category": "Campaign planning",
|
|
9
|
+
"action": "volume"
|
|
8
10
|
}
|
|
9
11
|
]
|
|
Binary file
|
package/index.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,follow"><title>Xpoudy Free Tools (npm Package)</title><meta name="description" content="Standalone email, DNS, and CSV tools."><link rel="stylesheet" href="assets/tools.css"><link rel="stylesheet" href="assets/mirror-index.css"></head><body><main class="shell mirror-directory"><h1>Xpoudy Free Tools (npm Package)</h1><p>Standalone email, DNS, and CSV tools.</p><p><a href="https://xpoudy.com/tools/">Browse all 100 tools on Xpoudy</a></p><ul><li><a href="tools/cold-email-volume-calculator/index.html">Cold Email Volume Calculator</a><p>See how many messages your prospect list and follow-ups could create. Compare the average daily workload with the mailbox capacity you enter.</p><a href="https://xpoudy.com/tools/cold-email-volume-calculator/">Open on Xpoudy</a></li></ul></main></body></html>
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpoudy/free-tools",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Open-source email deliverability, DNS, and CSV browser tools (full HTML/JS/CSS + MIT license).",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"homepage": "https://xpoudy.com/tools/"
|
|
7
|
+
"homepage": "https://xpoudy.com/tools/",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"email",
|
|
10
|
+
"deliverability",
|
|
11
|
+
"spf",
|
|
12
|
+
"dkim",
|
|
13
|
+
"dmarc",
|
|
14
|
+
"csv",
|
|
15
|
+
"cold-email",
|
|
16
|
+
"xpoudy"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/xpoudy/free-tools.git"
|
|
21
|
+
}
|
|
8
22
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head><meta charset="utf-8"/><meta content="width=device-width,initial-scale=1" name="viewport"/>
|
|
5
|
+
<meta content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'" http-equiv="Content-Security-Policy"/>
|
|
6
|
+
<title>Cold Email Volume Calculator | npm Package Bundle Edition · Xpoudy</title>
|
|
7
|
+
<meta content="Client-side campaign planning utility from @xpoudy/free-tools: See how many messages your prospect list and follow-ups could create. Compare the average da" name="description"/><meta content="noindex,follow" name="robots"/>
|
|
8
|
+
|
|
9
|
+
<meta content="website" property="og:type"/><meta content="Xpoudy" property="og:site_name"/>
|
|
10
|
+
<meta content="Cold Email Volume Calculator | npm Package Bundle Edition · Xpoudy" property="og:title"/><meta content="Client-side campaign planning utility from @xpoudy/free-tools: See how many messages your prospect list and follow-ups could create. Compare the average da" property="og:description"/>
|
|
11
|
+
<meta content="https://xpoudy.com/og-image.png" property="og:image"/>
|
|
12
|
+
<meta content="summary_large_image" name="twitter:card"/><link href="../../favicon-32x32.png" rel="icon"/>
|
|
13
|
+
<link href="../../assets/tools.css" rel="stylesheet"/>
|
|
14
|
+
<script id="tool-config" type="application/json">{"module": "calculators", "action": "volume", "example": {"prospects": 1000, "sequence_steps": 3, "stop_rate": 20, "sending_days": 20, "mailboxes": 5, "daily_mailbox_limit": 25}, "exampleLine": "1,000 prospects and three steps, with 20% stopping after each step, produce an estimated 2,440 messages."}</script><script src="../../assets/ui.js" type="module"></script></head>
|
|
15
|
+
<body><a class="skip" href="#main">Skip to content</a>
|
|
16
|
+
<header><div class="shell header-inner"><a aria-label="Xpoudy homepage" class="brand" href="https://xpoudy.com/">Xp<span>oudy</span></a>
|
|
17
|
+
<nav aria-label="Main navigation"><a href="../../index.html">Free tools</a><a href="https://xpoudy.com/blog/">Blog</a><a class="primary" href="https://xpoudy.com/?signup=1">Get free account <svg aria-hidden="true" fill="none" height="17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8" viewbox="0 0 24 24" width="17"><path d="M5 12h14m-7-7 7 7-7 7"></path></svg></a></nav></div></header>
|
|
18
|
+
<main data-tool-slug="cold-email-volume-calculator" id="main"><section class="hero"><div class="shell"><nav aria-label="Breadcrumb" class="crumb"><a href="../../index.html">Free tools</a><span>Campaign planning</span></nav>
|
|
19
|
+
<h1>Cold Email Volume Calculator</h1><p class="lead">Client-side campaign planning utility from @xpoudy/free-tools: See how many messages your prospect list and follow-ups could create. Compare the average daily workload with the mailbox capacity you enter.</p><p class="privacy">Free to use. Your inputs stay in this browser tab.</p><p class="mirror-origin"><a href="https://xpoudy.com/tools/cold-email-volume-calculator/">Open Cold Email Volume Calculator on Xpoudy</a></p></div></section>
|
|
20
|
+
<div class="shell workspace">
|
|
21
|
+
<form class="panel" id="tool-form" novalidate="">
|
|
22
|
+
<div class="panel-title"><h2>Inputs</h2><button class="secondary" id="load-example" type="button">Try example</button></div>
|
|
23
|
+
<div class="field-grid"><div class="field" data-field="prospects"><label for="field-prospects">Unique prospects</label><input id="field-prospects" inputmode="decimal" name="prospects" step="any" type="number" value=""/></div><div class="field" data-field="sequence_steps"><label for="field-sequence_steps">Steps including the first email</label><input aria-describedby="sequence_steps-hint" id="field-sequence_steps" inputmode="decimal" name="sequence_steps" step="any" type="number" value=""/><p class="field-hint" id="sequence_steps-hint">Enter 1 to 20.</p></div><div class="field" data-field="stop_rate"><label for="field-stop_rate">Stop rate after each step (%)</label><input aria-describedby="stop_rate-hint" id="field-stop_rate" inputmode="decimal" name="stop_rate" step="any" type="number" value=""/><p class="field-hint" id="stop_rate-hint">Include replies, opt-outs, or failures that prevent a follow-up.</p></div><div class="field" data-field="sending_days"><label for="field-sending_days">Sending days in the period</label><input id="field-sending_days" inputmode="decimal" name="sending_days" step="any" type="number" value=""/></div><div class="field" data-field="mailboxes"><label for="field-mailboxes">Connected mailboxes</label><input id="field-mailboxes" inputmode="decimal" name="mailboxes" step="any" type="number" value=""/></div><div class="field" data-field="daily_mailbox_limit"><label for="field-daily_mailbox_limit">Your daily limit per mailbox</label><input id="field-daily_mailbox_limit" inputmode="decimal" name="daily_mailbox_limit" step="any" type="number" value=""/></div></div>
|
|
24
|
+
<div class="form-actions"><button class="primary" type="submit">Estimate volume <svg aria-hidden="true" fill="none" height="17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8" viewbox="0 0 24 24" width="17"><path d="M5 12h14m-7-7 7 7-7 7"></path></svg></button><button class="secondary" type="reset">Clear</button></div>
|
|
25
|
+
<p class="error" hidden="" id="tool-error" role="alert" tabindex="-1"></p><p aria-live="polite" class="activity" id="tool-activity" role="status"></p>
|
|
26
|
+
<noscript><p>Enable JavaScript to run this tool in your browser.</p></noscript>
|
|
27
|
+
</form>
|
|
28
|
+
<section aria-label="Tool results" class="panel result" data-state="idle" id="tool-output"><h2>Results</h2><p>1,000 prospects and three steps, with 20% stopping after each step, produce an estimated 2,440 messages.</p></section>
|
|
29
|
+
</div><div class="shell tool-reading" data-edition="npm"><section class="panel"><h2>Bundled Node Static View</h2><p>Packaged inside @xpoudy/free-tools alongside catalog.json. Executes volume in calculators.js across 6 form controls.</p><p>Sample baseline: 1,000 prospects and three steps, with 20% stopping after each step, produce an estimated 2,440 messages.</p></section></div>
|
|
30
|
+
</main>
|
|
31
|
+
<footer><div class="shell footer-inner"><span>© 2026 Xpoudy</span><nav aria-label="Footer">
|
|
32
|
+
<a href="../../index.html">Free tools</a><a href="https://xpoudy.com/blog/outreach-questions/">Outreach questions</a><a href="https://xpoudy.com/privacy-policy/">Privacy</a></nav></div></footer>
|
|
33
|
+
</body></html>
|