Skip to content

Commit 1943c04

Browse files
committed
added some content
1 parent 7a07eed commit 1943c04

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

Frontend/src/app/id-generator/id-generator.component.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ <h2>ID Generator</h2>
2121
<div class="col-sm-6 d-flex gap-2">
2222
<label class="form-label d-block me-2">Options:</label>
2323
<div class="form-check">
24-
<input class="form-check-input" type="checkbox" id="hyphens" [disabled]="!isGuid" [(ngModel)]="hyphen" (change)="generate()" />
24+
<input class="form-check-input" type="checkbox" id="hyphens" [disabled]="!isGuid" [(ngModel)]="hyphen"
25+
(change)="generate()" />
2526
<label class="form-check-label" for="hyphens">Hyphens</label>
2627
</div>
2728
<div class="form-check">
28-
<input class="form-check-input" type="checkbox" id="uppercase" [(ngModel)]="uppercase" (change)="generate()" />
29+
<input class="form-check-input" type="checkbox" id="uppercase" [(ngModel)]="uppercase"
30+
(change)="generate()" />
2931
<label class="form-check-label" for="uppercase">Uppercase</label>
3032
</div>
3133
</div>
@@ -50,15 +52,17 @@ <h2>ID Generator</h2>
5052
<div class="col d-flex gap-2">
5153
<label class="form-label d-block me-2">Encoding:</label>
5254
<div class="form-check">
53-
<input class="form-check-input" type="checkbox" id="base64" [(ngModel)]="base64" (change)="generate()" />
55+
<input class="form-check-input" type="checkbox" id="base64" [(ngModel)]="base64"
56+
(change)="generate()" />
5457
<label class="form-check-label" for="base64">Base64</label>
5558
</div>
5659
<!-- <div class="form-check">
5760
<input class="form-check-input" type="checkbox" id="rfc7515" [disabled]="!base64" [(ngModel)]="rfc7515" (change)="generate()" />
5861
<label class="form-check-label" for="rfc7515">RFC7515</label>
5962
</div> -->
6063
<div class="form-check">
61-
<input class="form-check-input" type="checkbox" id="urlEncode" [disabled]="!base64" [(ngModel)]="urlEncode" (change)="generate()" />
64+
<input class="form-check-input" type="checkbox" id="urlEncode" [disabled]="!base64"
65+
[(ngModel)]="urlEncode" (change)="generate()" />
6266
<label class="form-check-label" for="urlEncode">URL Encode</label>
6367
</div>
6468
</div>
@@ -85,7 +89,17 @@ <h2>ID Generator</h2>
8589

8690
<div class="row">
8791
<div class="col-12">
88-
92+
<p><strong>GUID &amp; UUID</strong><br>GUID (Globally Unique Identifier) and UUID (Universally Unique
93+
Identifier) are 128-bit unique IDs widely used in databases, distributed systems, and APIs. These
94+
alphanumeric strings (like <code>550e8400-e29b-41d4-a716-446655440000</code>) ensure uniqueness across
95+
systems. UUIDs follow the <strong>RFC 4122</strong> standard and come in versions like <strong>v1
96+
(time-based)</strong> or <strong>v4 (random)</strong>, making them perfect for decentralized setups
97+
where collisions must be avoided.</p>
98+
<p><strong>NanoID</strong><br>NanoID is the sleek, modern alternative to UUIDs. It’s
99+
<strong>faster</strong>, <strong>customizable</strong>, and <strong>shorter</strong>—ideal for use cases
100+
like short URLs, user sessions, or SPAs. With adjustable lengths and character sets, NanoID gives
101+
developers full control while staying efficient and secure. Need a compact, unique ID that’s easy to
102+
work with? NanoID has you covered.</p>
89103
</div>
90104
</div>
91105
</div>

Frontend/src/app/id-generator/id-generator.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export class IdGeneratorComponent {
3535
this.generate();
3636
}
3737

38-
3938
protected generate() {
4039
this.idsCode = "";
4140
for (let i = 0; i < this.count; i++) {

0 commit comments

Comments
 (0)