Skip to content

Commit

Permalink
deploy: 9e0fec1
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed May 20, 2024
1 parent 1de906c commit 4db9487
Show file tree
Hide file tree
Showing 33 changed files with 394 additions and 396 deletions.
5 changes: 5 additions & 0 deletions changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@

<h1>Changelog</h1>
<p>All notable changes to this project will be documented in this file.</p>
<h3>4.9.0 (2024-05-20)</h3>
<p><strong>Feature</strong></p>
<ul>
<li><strong>[Auth]</strong> rename DB collection name from <code>Auth</code> to <code>Admin</code></li>
</ul>
<h3>4.8.0 (2024-05-19)</h3>
<p><strong>Feature</strong></p>
<ul>
Expand Down
10 changes: 5 additions & 5 deletions classes/Auth.html → classes/Admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

<ol class="breadcrumb">
<li class="breadcrumb-item">Classes</li>
<li class="breadcrumb-item" >Auth</li>
<li class="breadcrumb-item" >Admin</li>
</ol>

<ul class="nav nav-tabs" role="tablist">
Expand Down Expand Up @@ -348,7 +348,7 @@ <h3 id="inputs">
import { IsString, IsDefined, IsOptional } from &#x27;class-validator&#x27;
import { getProviderByTypegooseClass } from &#x27;@app/transformers/model.transformer&#x27;

export const DEFAULT_AUTH &#x3D; Object.freeze&lt;Auth&gt;({
export const DEFAULT_ADMIN_PROFILE &#x3D; Object.freeze&lt;Admin&gt;({
name: &#x27;&#x27;,
slogan: &#x27;&#x27;,
avatar: &#x27;&#x27;
Expand All @@ -359,7 +359,7 @@ <h3 id="inputs">
versionKey: false
}
})
export class Auth {
export class Admin {
@IsString({ message: &quot;what&#x27;s your name?&quot; })
@IsDefined()
@prop({ required: true })
Expand All @@ -380,7 +380,7 @@ <h3 id="inputs">
password?: string
}

export const AuthProvider &#x3D; getProviderByTypegooseClass(Auth)
export const AdminProvider &#x3D; getProviderByTypegooseClass(Admin)
</code></pre>
</div>
</div>
Expand Down Expand Up @@ -419,7 +419,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'class';
var COMPODOC_CURRENT_PAGE_URL = 'Auth.html';
var COMPODOC_CURRENT_PAGE_URL = 'Admin.html';
var MAX_SEARCH_RESULTS = 15;
</script>

Expand Down
26 changes: 13 additions & 13 deletions classes/AuthUpdateDTO.html → classes/AdminUpdateDTO.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

<ol class="breadcrumb">
<li class="breadcrumb-item">Classes</li>
<li class="breadcrumb-item" >AuthUpdateDTO</li>
<li class="breadcrumb-item" >AdminUpdateDTO</li>
</ol>

<ul class="nav nav-tabs" role="tablist">
Expand Down Expand Up @@ -126,7 +126,7 @@ <h3>File</h3>
<h3>Extends</h3>
</p>
<p class="comment">
<code><a href="../classes/Auth.html" target="_self" >Auth</a></code>
<code><a href="../classes/Admin.html" target="_self" >Admin</a></code>
</p>


Expand Down Expand Up @@ -248,13 +248,13 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Inherited from <code><a href="../classes/Auth.html" target="_self" >Auth</a></code>
<div class="io-line">Inherited from <code><a href="../classes/Admin.html" target="_self" >Admin</a></code>
</div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <code><a href="../classes/Auth.html#source" target="_self" >Auth:36</a></code>
<div class="io-line">Defined in <code><a href="../classes/Admin.html#source" target="_self" >Admin:36</a></code>
</div>
</td>
</tr>
Expand Down Expand Up @@ -293,13 +293,13 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Inherited from <code><a href="../classes/Auth.html" target="_self" >Auth</a></code>
<div class="io-line">Inherited from <code><a href="../classes/Admin.html" target="_self" >Admin</a></code>
</div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <code><a href="../classes/Auth.html#source" target="_self" >Auth:26</a></code>
<div class="io-line">Defined in <code><a href="../classes/Admin.html#source" target="_self" >Admin:26</a></code>
</div>
</td>
</tr>
Expand Down Expand Up @@ -338,13 +338,13 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Inherited from <code><a href="../classes/Auth.html" target="_self" >Auth</a></code>
<div class="io-line">Inherited from <code><a href="../classes/Admin.html" target="_self" >Admin</a></code>
</div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <code><a href="../classes/Auth.html#source" target="_self" >Auth:40</a></code>
<div class="io-line">Defined in <code><a href="../classes/Admin.html#source" target="_self" >Admin:40</a></code>
</div>
</td>
</tr>
Expand Down Expand Up @@ -383,13 +383,13 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Inherited from <code><a href="../classes/Auth.html" target="_self" >Auth</a></code>
<div class="io-line">Inherited from <code><a href="../classes/Admin.html" target="_self" >Admin</a></code>
</div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <code><a href="../classes/Auth.html#source" target="_self" >Auth:31</a></code>
<div class="io-line">Defined in <code><a href="../classes/Admin.html#source" target="_self" >Admin:31</a></code>
</div>
</td>
</tr>
Expand All @@ -410,7 +410,7 @@ <h3 id="inputs">

<div class="tab-pane fade tab-source-code" id="source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { IsString, IsDefined, IsNotEmpty } from &#x27;class-validator&#x27;
import { Auth } from &#x27;./auth.model&#x27;
import { Admin } from &#x27;./auth.model&#x27;

export class AuthLoginDTO {
@IsString({ message: &#x27;password must be string type&#x27; })
Expand All @@ -419,7 +419,7 @@ <h3 id="inputs">
password: string
}

export class AuthUpdateDTO extends Auth {
export class AdminUpdateDTO extends Admin {
new_password?: string
}
</code></pre>
Expand Down Expand Up @@ -460,7 +460,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'class';
var COMPODOC_CURRENT_PAGE_URL = 'AuthUpdateDTO.html';
var COMPODOC_CURRENT_PAGE_URL = 'AdminUpdateDTO.html';
var MAX_SEARCH_RESULTS = 15;
</script>

Expand Down
4 changes: 2 additions & 2 deletions classes/AuthLoginDTO.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ <h3 id="inputs">

<div class="tab-pane fade tab-source-code" id="source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { IsString, IsDefined, IsNotEmpty } from &#x27;class-validator&#x27;
import { Auth } from &#x27;./auth.model&#x27;
import { Admin } from &#x27;./auth.model&#x27;

export class AuthLoginDTO {
@IsString({ message: &#x27;password must be string type&#x27; })
Expand All @@ -222,7 +222,7 @@ <h3 id="inputs">
password: string
}

export class AuthUpdateDTO extends Auth {
export class AdminUpdateDTO extends Admin {
new_password?: string
}
</code></pre>
Expand Down
Loading

0 comments on commit 4db9487

Please sign in to comment.