feat(new-tool): jwt parser (#262)

* npm install jwt-decode

* added base tool structure

* added function to decode JWT and display header and payload

* use a table to display the data

* show human readable values

* added switch to toggle display of parsed values

* lint

* replaced basic package-lock.json with pnpm-lock.json

* change the icon of the tool

* simplify return

* use camelCase

* added description of the tool

* always parse the values

* use camelCase...
This commit is contained in:
bastantoine 2022-12-27 09:38:35 +01:00 committed by GitHub
parent ebb7301a98
commit acc7f0a586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 567 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import { Key } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
name: 'JWT parser',
path: '/jwt-parser',
description: 'Parse a JWT (JSON Web Token) to display its content.',
keywords: ['jwt', 'parser'],
component: () => import('./jwt-parser.vue'),
icon: Key,
});