Skip to content

Commit

Permalink
deploy: 7c90787
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed May 9, 2024
1 parent ff37278 commit ee5435c
Show file tree
Hide file tree
Showing 27 changed files with 227 additions and 227 deletions.
2 changes: 1 addition & 1 deletion controllers/FeedbackController.html
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ <h3 id="methods">
}

@Post()
@Throttle({ default: { ttl: seconds(30), limit: 3 } })
@Throttle({ default: { ttl: seconds(30), limit: 5 } })
@Responser.handle(&#x27;Create feedback&#x27;)
async createFeedback(
@Body() feedback: FeedbackBase,
Expand Down
4 changes: 2 additions & 2 deletions dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<li>
<b>dayjs</b> : ^1.11.10</li>
<li>
<b>express</b> : ^4.18.2</li>
<b>express</b> : ^4.19.2</li>
<li>
<b>fast-xml-parser</b> : ^4.3.2</li>
<li>
Expand All @@ -168,7 +168,7 @@
<li>
<b>node-schedule</b> : ^2.1.1</li>
<li>
<b>nodemailer</b> : ^6.9.7</li>
<b>nodemailer</b> : ^6.9.9</li>
<li>
<b>passport</b> : ~0.6.0</li>
<li>
Expand Down
32 changes: 16 additions & 16 deletions injectables/IPService.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ <h6><b>Methods</b></h6>
</li>
<li>
<span class="modifier">Private</span>
<a href="#queryLocationByAPICo" >queryLocationByAPICo</a>
<a href="#queryLocationByApiCo" >queryLocationByApiCo</a>
</li>
<li>
<span class="modifier">Private</span>
<a href="#queryLocationByIP_API" >queryLocationByIP_API</a>
<a href="#queryLocationByIpApi" >queryLocationByIpApi</a>
</li>
</ul>
</td>
Expand Down Expand Up @@ -293,18 +293,18 @@ <h3 id="methods">
<tbody>
<tr>
<td class="col-md-4">
<a name="queryLocationByAPICo"></a>
<a name="queryLocationByApiCo"></a>
<span class="name">
<span class="modifier">Private</span>
<span ><b>queryLocationByAPICo</b></span>
<a href="#queryLocationByAPICo"><span class="icon ion-ios-link"></span></a>
<span ><b>queryLocationByApiCo</b></span>
<a href="#queryLocationByApiCo"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<span class="modifier-icon icon ion-ios-reset"></span>
<code>queryLocationByAPICo(ip: <a href="../undefineds/IP.html" target="_self">IP</a>)</code>
<code>queryLocationByApiCo(ip: <a href="../undefineds/IP.html" target="_self">IP</a>)</code>
</td>
</tr>

Expand Down Expand Up @@ -362,18 +362,18 @@ <h3 id="methods">
<tbody>
<tr>
<td class="col-md-4">
<a name="queryLocationByIP_API"></a>
<a name="queryLocationByIpApi"></a>
<span class="name">
<span class="modifier">Private</span>
<span ><b>queryLocationByIP_API</b></span>
<a href="#queryLocationByIP_API"><span class="icon ion-ios-link"></span></a>
<span ><b>queryLocationByIpApi</b></span>
<a href="#queryLocationByIpApi"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<span class="modifier-icon icon ion-ios-reset"></span>
<code>queryLocationByIP_API(ip: <a href="../undefineds/IP.html" target="_self">IP</a>)</code>
<code>queryLocationByIpApi(ip: <a href="../undefineds/IP.html" target="_self">IP</a>)</code>
</td>
</tr>

Expand Down Expand Up @@ -457,7 +457,7 @@ <h3 id="methods">
constructor(private readonly httpService: HttpService) {}

// query by https://ip-api.com/docs/api:json
private queryLocationByIP_API(ip: IP): Promise&lt;IPLocation&gt; {
private queryLocationByIpApi(ip: IP): Promise&lt;IPLocation&gt; {
return this.httpService.axiosRef
.get&lt;any&gt;(&#x60;http://ip-api.com/json/${ip}?fields&#x3D;status,message,country,countryCode,region,regionName,city,zip&#x60;)
.then((response) &#x3D;&gt; {
Expand All @@ -474,13 +474,13 @@ <h3 id="methods">
})
.catch((error) &#x3D;&gt; {
const message &#x3D; getMessageFromAxiosError(error)
logger.warn(&#x27;queryLocationByIPAPI failed!&#x27;, message)
logger.warn(&#x27;queryLocationByIpApi failed!&#x27;, &#x60;&quot;${ip}&quot;&#x60;, message)
return Promise.reject(message)
})
}

// query by https://ipapi.co/api/#introduction
private queryLocationByAPICo(ip: IP): Promise&lt;IPLocation&gt; {
private queryLocationByApiCo(ip: IP): Promise&lt;IPLocation&gt; {
return this.httpService.axiosRef
.get&lt;any&gt;(&#x60;https://ipapi.co/${ip}/json/&#x60;)
.then((response) &#x3D;&gt; {
Expand All @@ -497,14 +497,14 @@ <h3 id="methods">
})
.catch((error) &#x3D;&gt; {
const message &#x3D; getMessageFromAxiosError(error)
logger.warn(&#x27;queryLocationByAPICo failed!&#x27;, message)
logger.warn(&#x27;queryLocationByApiCo failed!&#x27;, &#x60;&quot;${ip}&quot;&#x60;, message)
return Promise.reject(message)
})
}

public queryLocation(ip: IP): Promise&lt;IPLocation | null&gt; {
return this.queryLocationByIP_API(ip)
.catch(() &#x3D;&gt; this.queryLocationByAPICo(ip))
return this.queryLocationByIpApi(ip)
.catch(() &#x3D;&gt; this.queryLocationByApiCo(ip))
.catch(() &#x3D;&gt; null)
}
}
Expand Down
12 changes: 6 additions & 6 deletions interfaces/IPLocation.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ <h3 id="inputs">Properties</h3>
constructor(private readonly httpService: HttpService) {}

// query by https://ip-api.com/docs/api:json
private queryLocationByIP_API(ip: IP): Promise&lt;IPLocation&gt; {
private queryLocationByIpApi(ip: IP): Promise&lt;IPLocation&gt; {
return this.httpService.axiosRef
.get&lt;any&gt;(&#x60;http://ip-api.com/json/${ip}?fields&#x3D;status,message,country,countryCode,region,regionName,city,zip&#x60;)
.then((response) &#x3D;&gt; {
Expand All @@ -456,13 +456,13 @@ <h3 id="inputs">Properties</h3>
})
.catch((error) &#x3D;&gt; {
const message &#x3D; getMessageFromAxiosError(error)
logger.warn(&#x27;queryLocationByIPAPI failed!&#x27;, message)
logger.warn(&#x27;queryLocationByIpApi failed!&#x27;, &#x60;&quot;${ip}&quot;&#x60;, message)
return Promise.reject(message)
})
}

// query by https://ipapi.co/api/#introduction
private queryLocationByAPICo(ip: IP): Promise&lt;IPLocation&gt; {
private queryLocationByApiCo(ip: IP): Promise&lt;IPLocation&gt; {
return this.httpService.axiosRef
.get&lt;any&gt;(&#x60;https://ipapi.co/${ip}/json/&#x60;)
.then((response) &#x3D;&gt; {
Expand All @@ -479,14 +479,14 @@ <h3 id="inputs">Properties</h3>
})
.catch((error) &#x3D;&gt; {
const message &#x3D; getMessageFromAxiosError(error)
logger.warn(&#x27;queryLocationByAPICo failed!&#x27;, message)
logger.warn(&#x27;queryLocationByApiCo failed!&#x27;, &#x60;&quot;${ip}&quot;&#x60;, message)
return Promise.reject(message)
})
}

public queryLocation(ip: IP): Promise&lt;IPLocation | null&gt; {
return this.queryLocationByIP_API(ip)
.catch(() &#x3D;&gt; this.queryLocationByAPICo(ip))
return this.queryLocationByIpApi(ip)
.catch(() &#x3D;&gt; this.queryLocationByApiCo(ip))
.catch(() &#x3D;&gt; null)
}
}
Expand Down
6 changes: 3 additions & 3 deletions js/menu-wc.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ customElements.define('compodoc-menu', class extends HTMLElement {
<a href="modules/AppModule.html" data-type="entity-link" >AppModule</a>
<li class="chapter inner">
<div class="simple menu-toggler" data-bs-toggle="collapse" ${ isNormalMode ?
'data-bs-target="#controllers-links-module-AppModule-099b75e9ad4440a18d672b7c44b8916ea569942c046b5f1fc763c1b77a5c1e8a64b26f682cd52ea52c84d27455673d3148a685d0a44dc6faf655b0091dbd59b4"' : 'data-bs-target="#xs-controllers-links-module-AppModule-099b75e9ad4440a18d672b7c44b8916ea569942c046b5f1fc763c1b77a5c1e8a64b26f682cd52ea52c84d27455673d3148a685d0a44dc6faf655b0091dbd59b4"' }>
'data-bs-target="#controllers-links-module-AppModule-301234cb2cc681e1659c34ea9343035c3406fcb918e2384909deb3a8444fcedfd7889319fd0c57410e51c3ec859e279b68ac13a0f85876a82ec9a6e1d4af0ff3"' : 'data-bs-target="#xs-controllers-links-module-AppModule-301234cb2cc681e1659c34ea9343035c3406fcb918e2384909deb3a8444fcedfd7889319fd0c57410e51c3ec859e279b68ac13a0f85876a82ec9a6e1d4af0ff3"' }>
<span class="icon ion-md-swap"></span>
<span>Controllers</span>
<span class="icon ion-ios-arrow-down"></span>
</div>
<ul class="links collapse" ${ isNormalMode ? 'id="controllers-links-module-AppModule-099b75e9ad4440a18d672b7c44b8916ea569942c046b5f1fc763c1b77a5c1e8a64b26f682cd52ea52c84d27455673d3148a685d0a44dc6faf655b0091dbd59b4"' :
'id="xs-controllers-links-module-AppModule-099b75e9ad4440a18d672b7c44b8916ea569942c046b5f1fc763c1b77a5c1e8a64b26f682cd52ea52c84d27455673d3148a685d0a44dc6faf655b0091dbd59b4"' }>
<ul class="links collapse" ${ isNormalMode ? 'id="controllers-links-module-AppModule-301234cb2cc681e1659c34ea9343035c3406fcb918e2384909deb3a8444fcedfd7889319fd0c57410e51c3ec859e279b68ac13a0f85876a82ec9a6e1d4af0ff3"' :
'id="xs-controllers-links-module-AppModule-301234cb2cc681e1659c34ea9343035c3406fcb918e2384909deb3a8444fcedfd7889319fd0c57410e51c3ec859e279b68ac13a0f85876a82ec9a6e1d4af0ff3"' }>
<li class="link">
<a href="controllers/AppController.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >AppController</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion js/menu-wc_es5.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/search/search_index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/AppModule.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ <h3 id="methods">
ThrottlerModule.forRoot([
{
ttl: minutes(5), // 5 minutes &#x3D; 300s
limit: 300, // 300 limit
limit: 800, // 800 limit
ignoreUserAgents: [/googlebot/gi, /bingbot/gi, /baidubot/gi]
}
]),
Expand Down
56 changes: 28 additions & 28 deletions modules/ArticleModule.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,83 +124,83 @@
<title>cluster_ArticleModule</title>
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-268 531,-268 531,-70 8,-70"/>
</g>
<g id="clust3" class="cluster">
<title>cluster_ArticleModule_imports</title>
<polygon fill="none" stroke="black" points="174,-78 174,-130 523,-130 523,-78 174,-78"/>
</g>
<g id="clust4" class="cluster">
<title>cluster_ArticleModule_exports</title>
<polygon fill="none" stroke="black" points="184,-208 184,-260 300,-260 300,-208 184,-208"/>
<polygon fill="none" stroke="black" points="222,-208 222,-260 338,-260 338,-208 222,-208"/>
</g>
<g id="clust6" class="cluster">
<title>cluster_ArticleModule_providers</title>
<polygon fill="none" stroke="black" points="373,-78 373,-130 523,-130 523,-78 373,-78"/>
</g>
<g id="clust3" class="cluster">
<title>cluster_ArticleModule_imports</title>
<polygon fill="none" stroke="black" points="16,-78 16,-130 365,-130 365,-78 16,-78"/>
<polygon fill="none" stroke="black" points="16,-78 16,-130 166,-130 166,-78 16,-78"/>
</g>
<!-- ArchiveModule -->
<g id="node1" class="node">
<title>ArchiveModule</title>
<polygon fill="#8dd3c7" stroke="black" points="357.14,-122 354.14,-126 333.14,-126 330.14,-122 252.86,-122 252.86,-86 357.14,-86 357.14,-122"/>
<text text-anchor="middle" x="305" y="-99.8" font-family="Times,serif" font-size="14.00">ArchiveModule</text>
<polygon fill="#8dd3c7" stroke="black" points="515.14,-122 512.14,-126 491.14,-126 488.14,-122 410.86,-122 410.86,-86 515.14,-86 515.14,-122"/>
<text text-anchor="middle" x="463" y="-99.8" font-family="Times,serif" font-size="14.00">ArchiveModule</text>
</g>
<!-- ArticleModule -->
<g id="node4" class="node">
<title>ArticleModule</title>
<polygon fill="#8dd3c7" stroke="black" points="291.42,-187 288.42,-191 267.42,-191 264.42,-187 192.58,-187 192.58,-151 291.42,-151 291.42,-187"/>
<text text-anchor="middle" x="242" y="-164.8" font-family="Times,serif" font-size="14.00">ArticleModule</text>
<polygon fill="#8dd3c7" stroke="black" points="329.42,-187 326.42,-191 305.42,-191 302.42,-187 230.58,-187 230.58,-151 329.42,-151 329.42,-187"/>
<text text-anchor="middle" x="280" y="-164.8" font-family="Times,serif" font-size="14.00">ArticleModule</text>
</g>
<!-- ArchiveModule&#45;&gt;ArticleModule -->
<g id="edge1" class="edge">
<title>ArchiveModule&#45;&gt;ArticleModule</title>
<path fill="none" stroke="black" d="M271.95,-122.11C271.95,-122.11 271.95,-140.99 271.95,-140.99"/>
<polygon fill="black" stroke="black" points="268.45,-140.99 271.95,-150.99 275.45,-140.99 268.45,-140.99"/>
<path fill="none" stroke="black" d="M463,-122.11C463,-141.34 463,-169 463,-169 463,-169 339.52,-169 339.52,-169"/>
<polygon fill="black" stroke="black" points="339.52,-165.5 329.52,-169 339.52,-172.5 339.52,-165.5"/>
</g>
<!-- CategoryModule -->
<g id="node2" class="node">
<title>CategoryModule</title>
<polygon fill="#8dd3c7" stroke="black" points="234.37,-122 231.37,-126 210.37,-126 207.37,-122 123.63,-122 123.63,-86 234.37,-86 234.37,-122"/>
<text text-anchor="middle" x="179" y="-99.8" font-family="Times,serif" font-size="14.00">CategoryModule</text>
<polygon fill="#8dd3c7" stroke="black" points="392.37,-122 389.37,-126 368.37,-126 365.37,-122 281.63,-122 281.63,-86 392.37,-86 392.37,-122"/>
<text text-anchor="middle" x="337" y="-99.8" font-family="Times,serif" font-size="14.00">CategoryModule</text>
</g>
<!-- CategoryModule&#45;&gt;ArticleModule -->
<g id="edge2" class="edge">
<title>CategoryModule&#45;&gt;ArticleModule</title>
<path fill="none" stroke="black" d="M213.61,-122.11C213.61,-122.11 213.61,-140.99 213.61,-140.99"/>
<polygon fill="black" stroke="black" points="210.11,-140.99 213.61,-150.99 217.11,-140.99 210.11,-140.99"/>
<path fill="none" stroke="black" d="M305.39,-122.11C305.39,-122.11 305.39,-140.99 305.39,-140.99"/>
<polygon fill="black" stroke="black" points="301.89,-140.99 305.39,-150.99 308.89,-140.99 301.89,-140.99"/>
</g>
<!-- TagModule -->
<g id="node3" class="node">
<title>TagModule</title>
<polygon fill="#8dd3c7" stroke="black" points="105.82,-122 102.82,-126 81.82,-126 78.82,-122 24.18,-122 24.18,-86 105.82,-86 105.82,-122"/>
<text text-anchor="middle" x="65" y="-99.8" font-family="Times,serif" font-size="14.00">TagModule</text>
<polygon fill="#8dd3c7" stroke="black" points="263.82,-122 260.82,-126 239.82,-126 236.82,-122 182.18,-122 182.18,-86 263.82,-86 263.82,-122"/>
<text text-anchor="middle" x="223" y="-99.8" font-family="Times,serif" font-size="14.00">TagModule</text>
</g>
<!-- TagModule&#45;&gt;ArticleModule -->
<g id="edge3" class="edge">
<title>TagModule&#45;&gt;ArticleModule</title>
<path fill="none" stroke="black" d="M65,-122.11C65,-141.34 65,-169 65,-169 65,-169 182.7,-169 182.7,-169"/>
<polygon fill="black" stroke="black" points="182.7,-172.5 192.7,-169 182.7,-165.5 182.7,-172.5"/>
<path fill="none" stroke="black" d="M247.22,-122.11C247.22,-122.11 247.22,-140.99 247.22,-140.99"/>
<polygon fill="black" stroke="black" points="243.72,-140.99 247.22,-150.99 250.72,-140.99 243.72,-140.99"/>
</g>
<!-- ArticleService -->
<g id="node5" class="node">
<title>ArticleService </title>
<polygon fill="#fb8072" stroke="black" points="292.35,-252 191.65,-252 191.65,-216 292.35,-216 292.35,-252"/>
<text text-anchor="middle" x="242" y="-229.8" font-family="Times,serif" font-size="14.00">ArticleService </text>
<polygon fill="#fb8072" stroke="black" points="330.35,-252 229.65,-252 229.65,-216 330.35,-216 330.35,-252"/>
<text text-anchor="middle" x="280" y="-229.8" font-family="Times,serif" font-size="14.00">ArticleService </text>
</g>
<!-- ArticleModule&#45;&gt;ArticleService -->
<g id="edge4" class="edge">
<title>ArticleModule&#45;&gt;ArticleService </title>
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M242,-187.11C242,-187.11 242,-205.99 242,-205.99"/>
<polygon fill="black" stroke="black" points="238.5,-205.99 242,-215.99 245.5,-205.99 238.5,-205.99"/>
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M280,-187.11C280,-187.11 280,-205.99 280,-205.99"/>
<polygon fill="black" stroke="black" points="276.5,-205.99 280,-215.99 283.5,-205.99 276.5,-205.99"/>
</g>
<!-- ArticleService -->
<g id="node6" class="node">
<title>ArticleService</title>
<ellipse fill="#fdb462" stroke="black" cx="448" cy="-104" rx="66.61" ry="18"/>
<text text-anchor="middle" x="448" y="-99.8" font-family="Times,serif" font-size="14.00">ArticleService</text>
<ellipse fill="#fdb462" stroke="black" cx="91" cy="-104" rx="66.61" ry="18"/>
<text text-anchor="middle" x="91" y="-99.8" font-family="Times,serif" font-size="14.00">ArticleService</text>
</g>
<!-- ArticleService&#45;&gt;ArticleModule -->
<g id="edge5" class="edge">
<title>ArticleService&#45;&gt;ArticleModule</title>
<path fill="none" stroke="black" d="M448,-122.11C448,-141.34 448,-169 448,-169 448,-169 301.34,-169 301.34,-169"/>
<polygon fill="black" stroke="black" points="301.34,-165.5 291.34,-169 301.34,-172.5 301.34,-165.5"/>
<path fill="none" stroke="black" d="M91,-122.11C91,-141.34 91,-169 91,-169 91,-169 220.34,-169 220.34,-169"/>
<polygon fill="black" stroke="black" points="220.34,-172.5 230.34,-169 220.34,-165.5 220.34,-172.5"/>
</g>
</g>
</svg>
Expand Down
Loading

0 comments on commit ee5435c

Please sign in to comment.