diff --git a/locales/en.yml b/locales/en.yml index b66ebc27..fa16ac63 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -122,39 +122,39 @@ home: it-tools-handy-online-tools-for-developers: IT Tools - Handy online tools for developers tools: crop-image: - title: "Crop image" - description: "Crop, resize, and rotate images with custom background colors." + title: Crop image + description: Crop, resize, and rotate images with custom background colors. texts: - drag-drop: "Drag and drop your image here, or click to browse" - drag-hint: "Drag to position • Scroll to zoom ({zoom}%)" - flip-h: "Flip H" - flip-v: "Flip V" - reset: "Reset" - fit: "Fit" - change-image: "Change Image" - aspect-ratio: "Aspect Ratio:" - custom-ratio: "Custom Ratio:" - background-color: "Background Color:" - transparent: "Transparent" - zoom-image: "Zoom Image:" - rotate-image: "Rotate Image:" - rule-of-thirds-grid: "Rule-of-Thirds Grid:" - export-settings: "Export Settings" - export-format: "Export Format:" - image-quality: "Image Quality:" - export-width: "Export Width:" - custom-width: "Custom Width (px):" - export-download-image: "Export & Download Cropped Image" - ratio-square: "1:1 (Square)" - ratio-widescreen: "16:9 (Widescreen)" - ratio-portrait: "9:16 (Portrait)" - ratio-standard: "4:3 (Standard)" - ratio-photo: "3:2 (Photo)" - ratio-original: "Original Aspect Ratio" - ratio-custom: "Custom Ratio" - width-original: "Original Crop Size" - width-viewport: "Viewport Size" - width-custom: "Custom Width" + drag-drop: Drag and drop your image here, or click to browse + drag-hint: Drag to position • Scroll to zoom ({zoom}%) + flip-h: Flip H + flip-v: Flip V + reset: Reset + fit: Fit + change-image: Change Image + aspect-ratio: 'Aspect Ratio:' + custom-ratio: 'Custom Ratio:' + background-color: 'Background Color:' + transparent: Transparent + zoom-image: 'Zoom Image:' + rotate-image: 'Rotate Image:' + rule-of-thirds-grid: 'Rule-of-Thirds Grid:' + export-settings: Export Settings + export-format: 'Export Format:' + image-quality: 'Image Quality:' + export-width: 'Export Width:' + custom-width: 'Custom Width (px):' + export-download-image: Export & Download Cropped Image + ratio-square: 1:1 (Square) + ratio-widescreen: 16:9 (Widescreen) + ratio-portrait: 9:16 (Portrait) + ratio-standard: 4:3 (Standard) + ratio-photo: 3:2 (Photo) + ratio-original: Original Aspect Ratio + ratio-custom: Custom Ratio + width-original: Original Crop Size + width-viewport: Viewport Size + width-custom: Custom Width chronometer: title: Chronometer description: >- @@ -8855,6 +8855,15 @@ tools: tag-copy: Copy tag-refresh: Refresh text-picked-lines-copied-to-clipboard: Picked lines copied to clipboard! + markdown-to-data: + texts: + label-paste-your-markdown-content: 'Paste your markdown content:' + placeholder-your-markdown: Your markdown... + html-to-data: + texts: + label-paste-your-html-content: 'Paste your HTML content:' + placeholder-your-html: Your HTML here... + error-multiple-json-blocks: Cannot convert multiple tables at once collapsibleToolMenu: text: expanding: Expanding... diff --git a/package.json b/package.json index 39b777d7..a24d17cd 100644 --- a/package.json +++ b/package.json @@ -262,6 +262,7 @@ "marked": "^10.0.0", "mathjs": "^15.2.0", "md-editor-v3": "^4.21.3", + "mdt2json": "^1.1.0", "memorystream": "^0.3.1", "merge-anything": "^6.0.6", "mermaid": "^11.12.2", @@ -426,6 +427,7 @@ "@types/text-encoding-utf-8": "^1.0.5", "@types/turndown": "^5.0.6", "@types/ua-parser-js": "^0.7.39", + "@types/unist": "^3.0.3", "@types/utf8": "^3.0.3", "@types/uuid": "^10.0.0", "@unocss/eslint-config": "^0.57.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3a0e1735..05f4a754 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -683,6 +683,9 @@ importers: md-editor-v3: specifier: ^4.21.3 version: 4.21.3(vue@3.3.4) + mdt2json: + specifier: ^1.1.0 + version: 1.1.0 memorystream: specifier: ^0.3.1 version: 0.3.1 @@ -1170,6 +1173,9 @@ importers: '@types/ua-parser-js': specifier: ^0.7.39 version: 0.7.39 + '@types/unist': + specifier: ^3.0.3 + version: 3.0.3 '@types/utf8': specifier: ^3.0.3 version: 3.0.3 @@ -8836,6 +8842,10 @@ packages: mdn-data@2.0.30: resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} + mdt2json@1.1.0: + resolution: {integrity: sha512-YlZ7xP25OgiGKYC/DYk+XqhKTnSHF7M/74A3I76AjNqrVfmCMuQN8sOzfLI2aCo189Kb17gqJk/UhYg2iKi1WA==} + hasBin: true + mdurl@2.0.0: resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==} @@ -20746,6 +20756,8 @@ snapshots: mdn-data@2.0.30: {} + mdt2json@1.1.0: {} + mdurl@2.0.0: {} medium-zoom@1.1.0: {} diff --git a/src/tools/html-to-data/html-to-data.vue b/src/tools/html-to-data/html-to-data.vue new file mode 100644 index 00000000..c74c6424 --- /dev/null +++ b/src/tools/html-to-data/html-to-data.vue @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + {{ t('tools.csv-to-data.texts.tag-convert') }} + + + + + {{ error }} + + + + + + + diff --git a/src/tools/html-to-data/index.ts b/src/tools/html-to-data/index.ts new file mode 100644 index 00000000..5cde176d --- /dev/null +++ b/src/tools/html-to-data/index.ts @@ -0,0 +1,13 @@ +import { TableExport } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'HTML to data', + path: '/html-to-data', + description: 'Convert HTML table to JSON, YAML, CSV, SQL INSERT, XML, Markdown or XLSX', + keywords: ['html', 'table', 'excel', 'csv', 'xlsx', 'sql', 'json', 'yaml', 'insert', 'markdown', 'md', 'tsv', 'xml'], + component: () => import('./html-to-data.vue'), + icon: TableExport, + createdAt: new Date('2026-07-04'), + category: 'Web', +}); diff --git a/src/tools/markdown-to-data/index.ts b/src/tools/markdown-to-data/index.ts new file mode 100644 index 00000000..1319649f --- /dev/null +++ b/src/tools/markdown-to-data/index.ts @@ -0,0 +1,13 @@ +import { TableExport } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Markdown to data', + path: '/markdown-to-data', + description: 'Convert Markdown table to JSON, YAML, CSV, SQL INSERT, XML, Markdown or XLSX', + keywords: ['markdown', 'table', 'excel', 'csv', 'xlsx', 'sql', 'json', 'yaml', 'insert', 'md', 'tsv', 'xml'], + component: () => import('./markdown-to-data.vue'), + icon: TableExport, + createdAt: new Date('2026-07-04'), + category: 'Markdown', +}); diff --git a/src/tools/markdown-to-data/markdown-to-data.vue b/src/tools/markdown-to-data/markdown-to-data.vue new file mode 100644 index 00000000..0e1589bf --- /dev/null +++ b/src/tools/markdown-to-data/markdown-to-data.vue @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + {{ t('tools.csv-to-data.texts.tag-convert') }} + + + + + {{ error }} + + + + + + +