Skip to content

Commit 791bca4

Browse files
committed
feat(new tool): JWT Generator
Fix #1309
1 parent 08d977b commit 791bca4

6 files changed

+64
-0
lines changed

src/tools/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { tool as base64FileConverter } from './base64-file-converter';
22
import { tool as base64StringConverter } from './base64-string-converter';
33
import { tool as basicAuthGenerator } from './basic-auth-generator';
44
import { tool as emailNormalizer } from './email-normalizer';
5+
import { tool as jwtGenerator } from './jwt-generator';
56

67
import { tool as asciiTextDrawer } from './ascii-text-drawer';
78

@@ -130,6 +131,7 @@ export const toolsByCategory: ToolCategory[] = [
130131
otpCodeGeneratorAndValidator,
131132
mimeTypes,
132133
jwtParser,
134+
jwtGenerator,
133135
keycodeInfo,
134136
slugifyString,
135137
htmlWysiwygEditor,

src/tools/jwt-generator/index.ts

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { Key } from '@vicons/tabler';
2+
import { defineTool } from '../tool';
3+
4+
export const tool = defineTool({
5+
name: 'JWT Generator',
6+
path: '/jwt-generator',
7+
description: 'JWT Token generator and editor',
8+
keywords: [
9+
'jwt',
10+
'generator',
11+
'editor',
12+
'encode',
13+
'typ',
14+
'alg',
15+
'iss',
16+
'sub',
17+
'aud',
18+
'exp',
19+
'nbf',
20+
'iat',
21+
'jti',
22+
'json',
23+
'web',
24+
'token',
25+
],
26+
component: () => import('./jwt-generator.vue'),
27+
icon: Key,
28+
createdAt: new Date('2024-08-15'),
29+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test.describe('Tool - Jwt generator', () => {
4+
test.beforeEach(async ({ page }) => {
5+
await page.goto('/jwt-generator');
6+
});
7+
8+
test('Has correct title', async ({ page }) => {
9+
await expect(page).toHaveTitle('Jwt generator - IT Tools');
10+
});
11+
12+
test('', async ({ page }) => {
13+
14+
});
15+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { expect, describe, it } from 'vitest';
2+
// import { } from './jwt-generator.service';
3+
//
4+
// describe('jwt-generator', () => {
5+
//
6+
// })

src/tools/jwt-generator/jwt-generator.service.ts

Whitespace-only changes.
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<template>
2+
<div>
3+
Lorem ipsum
4+
</div>
5+
</template>
6+
7+
<script setup lang="ts">
8+
9+
</script>
10+
11+
<style lang="less" scoped>
12+
</style>

0 commit comments

Comments
 (0)