Skip to content

Commit 4fe58e6

Browse files
committed
feat: consolidate Code Formatter and JSON Tools into Code & JSON Tools
- Renamed and combined the Code Formatter and JSON Tools components into a single Code & JSON Tools component for improved functionality. - Updated routing in App.tsx to reflect the new consolidated component. - Modified Sidebar to display the new Code & JSON Tools entry with updated descriptions. - Enhanced SEO metadata for the new component, ensuring accurate representation and keywords for better discoverability. - Improved JWTDecoder component with auto-decoding feature and debounced input handling for better user experience.
1 parent 5bff5e0 commit 4fe58e6

File tree

5 files changed

+500
-26
lines changed

5 files changed

+500
-26
lines changed

src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ const TextUtilities = lazy(() => import('./pages/TextUtilities'))
1111
const GeneratorToolkit = lazy(() => import('./pages/GeneratorToolkit'))
1212
const HashVerify = lazy(() => import('./pages/HashVerify'))
1313
const JWTDecoder = lazy(() => import('./pages/JWTDecoder'))
14-
const CodeFormatter = lazy(() => import('./pages/CodeFormatter'))
15-
const JSONTools = lazy(() => import('./pages/JSONTools'))
14+
const CodeAndJSONTools = lazy(() => import('./pages/CodeAndJSONTools'))
1615
const RegexTester = lazy(() => import('./pages/RegexTester'))
1716
const CodeDiff = lazy(() => import('./pages/CodeDiff'))
1817
const ColorPicker = lazy(() => import('./pages/ColorPicker'))
@@ -48,8 +47,9 @@ function App() {
4847
<Route path="/generators" element={<GeneratorToolkit />} />
4948
<Route path="/hash-verify" element={<HashVerify />} />
5049
<Route path="/jwt-decoder" element={<JWTDecoder />} />
51-
<Route path="/code-formatter" element={<CodeFormatter />} />
52-
<Route path="/json-tools" element={<JSONTools />} />
50+
<Route path="/code-formatter" element={<CodeAndJSONTools />} />
51+
<Route path="/json-tools" element={<CodeAndJSONTools />} />
52+
<Route path="/code-json-tools" element={<CodeAndJSONTools />} />
5353
<Route path="/regex-tester" element={<RegexTester />} />
5454
<Route path="/code-diff" element={<CodeDiff />} />
5555
<Route path="/color-picker" element={<ColorPicker />} />

src/components/Sidebar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ const tools = [
2222
{
2323
category: 'Code & Development',
2424
items: [
25-
{ name: 'Code Formatter', path: '/code-formatter', icon: '✨', description: 'Beautify/minify code' },
26-
{ name: 'JSON Tools', path: '/json-tools', icon: '📋', description: 'Diff, Path evaluator' },
25+
{ name: 'Code & JSON Tools', path: '/code-formatter', icon: '✨', description: 'Format code & JSON tools' },
2726
{ name: 'Regex Tester', path: '/regex-tester', icon: '🔎', description: 'Test & build patterns' },
2827
{ name: 'Text Diff', path: '/code-diff', icon: '🔀', description: 'Compare text/files' },
2928
],

src/config/seoConfig.ts

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,29 @@ export const toolsMetadata: Record<string, ToolMeta> = {
7171
toolName: 'JWT Decoder',
7272
toolDescription: 'Decode and inspect JWT tokens with timestamp analysis using Developer Utilities Tool - privacy-focused, free, and instant.'
7373
},
74+
codeAndJsonTools: {
75+
title: 'Code & JSON Tools | Code Formatter, JSON Validator, JSONPath & Diff - Developer Utilities Tool',
76+
description: 'Format code (HTML, CSS, JavaScript) and manipulate JSON (format, validate, JSONPath query, diff) in one unified workspace. Free, privacy-first developer tools.',
77+
keywords: ['code formatter', 'json tools', 'beautify code', 'javascript formatter', 'json formatter', 'html formatter', 'css formatter', 'json validator', 'jsonpath', 'json diff', 'code beautifier', 'Developer Utilities Tool', 'online code formatter', 'privacy-first code tools'],
78+
canonical: '/code-formatter',
79+
toolName: 'Code & JSON Tools',
80+
toolDescription: 'Format code and manipulate JSON in a unified workspace with Developer Utilities Tool - privacy-focused, free, and instant.'
81+
},
7482
codeFormatter: {
75-
title: 'Code Formatter | Beautify JavaScript, JSON, HTML, CSS Online - Developer Utilities Tool',
76-
description: 'Format and beautify code online with Developer Utilities Tool. Supports JavaScript, JSON, HTML, CSS, and more. Free, privacy-first code formatter with syntax highlighting and indentation options.',
77-
keywords: ['code formatter', 'beautify code', 'javascript formatter', 'json formatter', 'html formatter', 'css formatter', 'code beautifier', 'Developer Utilities Tool', 'online code formatter', 'privacy-first code tools'],
83+
title: 'Code & JSON Tools | Code Formatter, JSON Validator, JSONPath & Diff - Developer Utilities Tool',
84+
description: 'Format code (HTML, CSS, JavaScript) and manipulate JSON (format, validate, JSONPath query, diff) in one unified workspace. Free, privacy-first developer tools.',
85+
keywords: ['code formatter', 'json tools', 'beautify code', 'javascript formatter', 'json formatter', 'html formatter', 'css formatter', 'json validator', 'jsonpath', 'json diff', 'code beautifier', 'Developer Utilities Tool', 'online code formatter', 'privacy-first code tools'],
7886
canonical: '/code-formatter',
79-
toolName: 'Code Formatter',
80-
toolDescription: 'Format and beautify code with syntax highlighting using Developer Utilities Tool - privacy-focused, free, and instant.'
87+
toolName: 'Code & JSON Tools',
88+
toolDescription: 'Format code and manipulate JSON in a unified workspace with Developer Utilities Tool - privacy-focused, free, and instant.'
8189
},
8290
jsonTools: {
83-
title: 'JSON Tools | JSON Validator, Formatter & Editor Online - Developer Utilities Tool',
84-
description: 'Validate, format, and edit JSON online with Developer Utilities Tool. Real-time JSON syntax validation with error highlighting. Free, privacy-first JSON tools for developers.',
85-
keywords: ['json validator', 'json formatter', 'json editor', 'json parser', 'json tools', 'validate json', 'format json', 'Developer Utilities Tool', 'online json tools', 'privacy-first json validator'],
91+
title: 'Code & JSON Tools | Code Formatter, JSON Validator, JSONPath & Diff - Developer Utilities Tool',
92+
description: 'Format code (HTML, CSS, JavaScript) and manipulate JSON (format, validate, JSONPath query, diff) in one unified workspace. Free, privacy-first developer tools.',
93+
keywords: ['code formatter', 'json tools', 'beautify code', 'javascript formatter', 'json formatter', 'html formatter', 'css formatter', 'json validator', 'jsonpath', 'json diff', 'code beautifier', 'Developer Utilities Tool', 'online code formatter', 'privacy-first code tools'],
8694
canonical: '/json-tools',
87-
toolName: 'JSON Tools',
88-
toolDescription: 'Validate, format, and manipulate JSON data with Developer Utilities Tool - privacy-focused, free, and instant.'
95+
toolName: 'Code & JSON Tools',
96+
toolDescription: 'Format code and manipulate JSON in a unified workspace with Developer Utilities Tool - privacy-focused, free, and instant.'
8997
},
9098
regexTester: {
9199
title: 'Regex Tester | Test Regular Expressions Online | RegEx Tool - Developer Utilities Tool',

0 commit comments

Comments
 (0)