Skip to content

Commit dd03874

Browse files
committed
feat: json to typescript
1 parent 9eac9cb commit dd03874

File tree

11 files changed

+6986
-5244
lines changed

11 files changed

+6986
-5244
lines changed

components.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ declare module '@vue/runtime-core' {
110110
JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']
111111
JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default']
112112
JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default']
113+
JsonToTs: typeof import('./src/tools/json-to-ts/json-to-ts.vue')['default']
113114
JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']
114115
JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']
115116
JwtParser: typeof import('./src/tools/jwt-parser/jwt-parser.vue')['default']
@@ -130,21 +131,16 @@ declare module '@vue/runtime-core' {
130131
NCode: typeof import('naive-ui')['NCode']
131132
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
132133
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
133-
NDivider: typeof import('naive-ui')['NDivider']
134134
NEllipsis: typeof import('naive-ui')['NEllipsis']
135135
NFormItem: typeof import('naive-ui')['NFormItem']
136-
NGi: typeof import('naive-ui')['NGi']
137-
NGrid: typeof import('naive-ui')['NGrid']
138136
NH1: typeof import('naive-ui')['NH1']
139137
NH3: typeof import('naive-ui')['NH3']
140138
NIcon: typeof import('naive-ui')['NIcon']
141139
NInputNumber: typeof import('naive-ui')['NInputNumber']
142-
NLabel: typeof import('naive-ui')['NLabel']
143140
NLayout: typeof import('naive-ui')['NLayout']
144141
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
145142
NMenu: typeof import('naive-ui')['NMenu']
146143
NScrollbar: typeof import('naive-ui')['NScrollbar']
147-
NSpin: typeof import('naive-ui')['NSpin']
148144
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
149145
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
150146
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
@@ -159,6 +155,7 @@ declare module '@vue/runtime-core' {
159155
RouterLink: typeof import('vue-router')['RouterLink']
160156
RouterView: typeof import('vue-router')['RouterView']
161157
RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default']
158+
SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default']
162159
SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default']
163160
SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']
164161
SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']

locales/en.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ tools:
320320
title: JSON to TOML
321321
description: Parse and convert JSON to TOML.
322322

323+
json-to-ts:
324+
title: JSON to TS
325+
description: Parse and convert JSON to TS.
326+
323327
device-information:
324328
title: Device information
325329
description: Get information about your current device (screen size, pixel-ratio, user agent, ...)

locales/vi.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,14 @@ tools:
307307
hash-text:
308308
title: Mã hóa văn bản
309309
description: 'Mã hóa một chuỗi văn bản bằng cách sử dụng các hàm bạn cần: MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 hoặc RIPEMD160'
310+
310311
json-to-toml:
311312
title: Chuyển đổi JSON sang TOML
312313
description: Phân tích và chuyển đổi JSON sang TOML.
314+
315+
json-to-ts:
316+
title: Chuyển đổi JSON sang TS
317+
description: Phân tích và chuyển đổi JSON sang TS.
313318

314319
device-information:
315320
title: Thông tin thiết bị

locales/zh.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ tools:
316316
title: JSON 转 TOML
317317
description: 解析JSON并将其转换为TOML。
318318

319+
json-to-ts:
320+
title: JSON 转 TS
321+
description: 解析JSON并将其转换为TS。
322+
319323
device-information:
320324
title: 设备信息
321325
description: 获取有关当前设备的信息(屏幕大小、像素比率、用户代理…)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"highlight.js": "^11.7.0",
6565
"iarna-toml-esm": "^3.0.5",
6666
"ibantools": "^4.3.3",
67+
"json-to-ts": "^1.7.0",
6768
"json5": "^2.2.3",
6869
"jwt-decode": "^3.1.2",
6970
"libphonenumber-js": "^1.10.28",

0 commit comments

Comments
 (0)