Skip to content

Commit df9a427

Browse files
committed
jwt 生成器
1 parent 07eea0f commit df9a427

File tree

9 files changed

+258
-166
lines changed

9 files changed

+258
-166
lines changed

components.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,15 @@ declare module '@vue/runtime-core' {
9191
IbanValidatorAndParser: typeof import('./src/tools/iban-validator-and-parser/iban-validator-and-parser.vue')['default']
9292
'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']
9393
'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']
94+
IconMdiArrowRightBottom: typeof import('~icons/mdi/arrow-right-bottom')['default']
9495
IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']
9596
IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default']
9697
IconMdiClose: typeof import('~icons/mdi/close')['default']
9798
IconMdiContentCopy: typeof import('~icons/mdi/content-copy')['default']
9899
IconMdiEye: typeof import('~icons/mdi/eye')['default']
99100
IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default']
100101
IconMdiHeart: typeof import('~icons/mdi/heart')['default']
102+
IconMdiRefresh: typeof import('~icons/mdi/refresh')['default']
101103
IconMdiSearch: typeof import('~icons/mdi/search')['default']
102104
IconMdiTranslate: typeof import('~icons/mdi/translate')['default']
103105
IconMdiTriangleDown: typeof import('~icons/mdi/triangle-down')['default']
@@ -114,6 +116,7 @@ declare module '@vue/runtime-core' {
114116
JsonToXml: typeof import('./src/tools/json-to-xml/json-to-xml.vue')['default']
115117
JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']
116118
JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']
119+
'JwtGenerator.tool': typeof import('./src/tools/jwt-generator/jwt-generator.tool.vue')['default']
117120
JwtParser: typeof import('./src/tools/jwt-parser/jwt-parser.vue')['default']
118121
KeycodeInfo: typeof import('./src/tools/keycode-info/keycode-info.vue')['default']
119122
ListConverter: typeof import('./src/tools/list-converter/list-converter.vue')['default']
@@ -131,18 +134,36 @@ declare module '@vue/runtime-core' {
131134
MimeTypes: typeof import('./src/tools/mime-types/mime-types.vue')['default']
132135
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
133136
NCheckbox: typeof import('naive-ui')['NCheckbox']
137+
NCode: typeof import('naive-ui')['NCode']
134138
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
139+
NColorPicker: typeof import('naive-ui')['NColorPicker']
135140
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
141+
NDatePicker: typeof import('naive-ui')['NDatePicker']
136142
NDivider: typeof import('naive-ui')['NDivider']
137143
NEllipsis: typeof import('naive-ui')['NEllipsis']
144+
NForm: typeof import('naive-ui')['NForm']
145+
NFormItem: typeof import('naive-ui')['NFormItem']
146+
NGi: typeof import('naive-ui')['NGi']
147+
NGrid: typeof import('naive-ui')['NGrid']
138148
NH1: typeof import('naive-ui')['NH1']
149+
NH2: typeof import('naive-ui')['NH2']
139150
NH3: typeof import('naive-ui')['NH3']
140151
NIcon: typeof import('naive-ui')['NIcon']
152+
NImage: typeof import('naive-ui')['NImage']
153+
NInputGroup: typeof import('naive-ui')['NInputGroup']
154+
NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel']
155+
NInputNumber: typeof import('naive-ui')['NInputNumber']
141156
NLayout: typeof import('naive-ui')['NLayout']
142157
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
143158
NMenu: typeof import('naive-ui')['NMenu']
159+
NProgress: typeof import('naive-ui')['NProgress']
160+
NScrollbar: typeof import('naive-ui')['NScrollbar']
161+
NSlider: typeof import('naive-ui')['NSlider']
144162
NSpace: typeof import('naive-ui')['NSpace']
163+
NStatistic: typeof import('naive-ui')['NStatistic']
164+
NSwitch: typeof import('naive-ui')['NSwitch']
145165
NTable: typeof import('naive-ui')['NTable']
166+
NTag: typeof import('naive-ui')['NTag']
146167
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
147168
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
148169
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']

js-modules.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module 'jsonwebtoken'

locales/en.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,28 @@ tools:
9393
button:
9494
copy: Copy
9595
refresh: Refresh
96+
97+
jwt-generator:
98+
title: JWT generator
99+
description: Generate JWT (JSON Web Token) tokens with the algorithm you want.
100+
101+
algorithm:
102+
label: Signature or encryption algorithm
103+
placeholder: Select an encryption algorithm...
104+
encoding:
105+
label: Token encoding type
106+
placeholder: Select the result encoding...
107+
payload:
108+
label: JSON payload to generate the JWT
109+
placeholder: Paste your payload here...
110+
secret:
111+
label: Secret key
112+
placeholder: 'Enter the secret key...'
113+
jwt:
114+
label: JSON WEB TOKEN
115+
placeholder: 'The result of the JWT...'
116+
copied: JWT copied to the clipboard
117+
96118
percentage-calculator:
97119
title: Percentage calculator
98120
description: Easily calculate percentages from a value to another value, or from a percentage to a value.

locales/zh.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,28 @@ tools:
9292
button:
9393
copy: 复制
9494
refresh: 刷新
95+
96+
jwt-generator:
97+
title: JWT 生成器
98+
description: 生成您想要的算法的 JWT(JSON Web Token)令牌。
99+
100+
algorithm:
101+
label: 签名或加密算法
102+
placeholder: 选择加密算法...
103+
encoding:
104+
label: 令牌编码类型
105+
placeholder: 选择结果编码...
106+
payload:
107+
label: 生成 JWT 的 JSON 有效负载
108+
placeholder: 粘贴您的有效负载...
109+
secret:
110+
label: 秘钥
111+
placeholder: '输入秘钥...'
112+
jwt:
113+
label: JSON WEB TOKEN
114+
placeholder: 'JWT 的结果...'
115+
copied: JWT 复制到剪贴板
116+
95117
percentage-calculator:
96118
title: 百分比计算器
97119
description: 轻松计算从一个值到另一个值的百分比,或从百分比到值的百分比。

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "it-tools",
33
"type": "module",
44
"version": "2024.10.22-7ca5933",
5-
"packageManager": "pnpm@9.11.0",
5+
"packageManager": "pnpm@10.17.1+sha512.17c560fca4867ae9473a3899ad84a88334914f379be46d455cbf92e5cf4b39d34985d452d2583baf19967fa76cb5c17bc9e245529d0b98745721aa7200ecaf7a",
66
"description": "Collection of handy online tools for developers, with great UX. ",
77
"author": "Corentin Th <[email protected]> (https://corentin.tech)",
88
"license": "GNU GPLv3",
@@ -70,6 +70,7 @@
7070
"highlight.js": "^11.7.0",
7171
"iarna-toml-esm": "^3.0.5",
7272
"ibantools": "^4.3.3",
73+
"jose": "^6.1.0",
7374
"js-base64": "^3.7.6",
7475
"json5": "^2.2.3",
7576
"jwt-decode": "^3.1.2",

0 commit comments

Comments
 (0)