mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-24 23:00:19 +03:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47888b542d |
No files matched your search
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve our tools
|
||||||
|
title: '[BUG] '
|
||||||
|
labels: bug
|
||||||
|
assignees: CorentinTh
|
||||||
|
---
|
||||||
|
|
||||||
|
**Which tool is impacted?**
|
||||||
|
Example: the token generator
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**Configuration (please complete the following information):**
|
||||||
|
|
||||||
|
- Device: [e.g. iPhone6, ]
|
||||||
|
- OS: [e.g. iOS]
|
||||||
|
- Browser [e.g. chrome, safari]
|
||||||
|
- Version [e.g. 22]
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here.
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
name: 🐞 Bug Report
|
|
||||||
description: File a bug report.
|
|
||||||
labels: ['bug', 'triage']
|
|
||||||
assignees:
|
|
||||||
- CorentinTh
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
Thanks for taking the time to fill out this bug report!
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: bug-description
|
|
||||||
attributes:
|
|
||||||
label: Describe the bug
|
|
||||||
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
|
|
||||||
placeholder: Bug description
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: what-happened
|
|
||||||
attributes:
|
|
||||||
label: What happened?
|
|
||||||
description: Also tell us, what did you expect to happen? If you have a screenshot, you can paste it here.
|
|
||||||
placeholder: Tell us what you see!
|
|
||||||
value: 'A bug happened!'
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: version
|
|
||||||
attributes:
|
|
||||||
label: System information
|
|
||||||
description: What is you environment? You can use the `npx envinfo --system --browsers` command to get this information.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: dropdown
|
|
||||||
id: app-type
|
|
||||||
attributes:
|
|
||||||
label: Where did you encounter the bug?
|
|
||||||
options:
|
|
||||||
- Public app (it-tools.tech)
|
|
||||||
- A self hosted
|
|
||||||
- Other (installations, docker, etc.)
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
blank_issues_enabled: false
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
name: 🚀 New feature proposal
|
|
||||||
description: Propose a new feature/enhancement or tool idea for IT-Tools
|
|
||||||
labels: ['enhancement', 'triage']
|
|
||||||
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
Thanks for your interest in the project and taking the time to fill out this feature report!
|
|
||||||
|
|
||||||
- type: dropdown
|
|
||||||
id: request-type
|
|
||||||
attributes:
|
|
||||||
label: What type of request is this?
|
|
||||||
options:
|
|
||||||
- New tool idea
|
|
||||||
- New feature for an existing tool
|
|
||||||
- Deployment or CI/CD improvement
|
|
||||||
- Self-hosting improvement
|
|
||||||
- Other
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: feature-description
|
|
||||||
attributes:
|
|
||||||
label: Clear and concise description of the feature you are proposing
|
|
||||||
description: A clear and concise description of what the feature is.
|
|
||||||
placeholder: 'Example: a token generator tool'
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: alternative
|
|
||||||
attributes:
|
|
||||||
label: Is their example of this tool in the wild?
|
|
||||||
description: Provide link to already existing tool (like websites, apps, cli, ...) or npm packages that could be used or provide inspiration for the feature.
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: additional-context
|
|
||||||
attributes:
|
|
||||||
label: Additional context
|
|
||||||
description: Any other context or screenshots about the feature request here.
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
id: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: Validations
|
|
||||||
description: Before submitting the issue, please make sure you do the following
|
|
||||||
options:
|
|
||||||
- label: Check the feature is not already implemented in the project.
|
|
||||||
required: true
|
|
||||||
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
|
|
||||||
required: true
|
|
||||||
- label: Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).
|
|
||||||
required: true
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
name: New tool request
|
||||||
|
about: Suggest a new tool idea
|
||||||
|
title: '[NEW TOOL]'
|
||||||
|
labels: new tool
|
||||||
|
assignees: CorentinTh
|
||||||
|
---
|
||||||
|
|
||||||
|
**What tool do you want?**
|
||||||
|
Example: a token generator
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Is their example of this tool in the wild?**
|
||||||
|
Provide link to already existing tool or npm packages if any exists
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the feature request here.
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
name: Other request
|
||||||
|
about: Any request that does not concern a tool creation, a new feature request on a tool or a bug
|
||||||
|
title: '[OTHER] '
|
||||||
|
labels:
|
||||||
|
assignees: CorentinTh
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the feature request here.
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
name: Tool improvement
|
||||||
|
about: Improvement on an existing tool
|
||||||
|
title: '[TOOL IMPROVEMENT]'
|
||||||
|
labels: enhancement
|
||||||
|
assignees: CorentinTh
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the feature request here.
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
# For most projects, this workflow file will not need changing; you simply need
|
||||||
|
# to commit it to your repository.
|
||||||
|
#
|
||||||
|
# You may wish to alter this file to override the set of languages analyzed,
|
||||||
|
# or to provide custom queries or build logic.
|
||||||
|
#
|
||||||
|
# ******** NOTE ********
|
||||||
|
# We have attempted to detect the languages in your repository. Please check
|
||||||
|
# the `language` matrix defined below to confirm you have the correct set of
|
||||||
|
# supported CodeQL languages.
|
||||||
|
#
|
||||||
|
name: "CodeQL"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ dev ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ dev ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analyze:
|
||||||
|
name: Analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: [ 'javascript' ]
|
||||||
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||||
|
# Learn more:
|
||||||
|
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||||
|
|
||||||
|
# Initializes the CodeQL tools for scanning.
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v2
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
|
# By default, queries listed here will override any specified in a config file.
|
||||||
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
|
|
||||||
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
|
- name: Autobuild
|
||||||
|
uses: github/codeql-action/autobuild@v2
|
||||||
|
|
||||||
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
|
# 📚 https://git.io/JvXDl
|
||||||
|
|
||||||
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||||
|
# and modify them (or add more) to build your code if your project
|
||||||
|
# uses a compiled language
|
||||||
|
|
||||||
|
#- run: |
|
||||||
|
# make bootstrap
|
||||||
|
# make release
|
||||||
|
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v2
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
- run: corepack enable
|
- run: corepack enable
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 16
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 16
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -2,51 +2,9 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
## Version 2024.05.13-a0bc346
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- **i18n**: added German translation (#1038) (2c2fb21)
|
|
||||||
- **new tool**: Outlook Safelink Decoder (#911) (d3b32cc)
|
|
||||||
- **new tool**: ascii art generator (#886) (fe349ad)
|
|
||||||
- **i18n**: get locales on build (#880) (dc04615)
|
|
||||||
- **i18n**: added vi tools translations (#876) (079aa21)
|
|
||||||
- **i18n**: added zh tools translations (#874) (9c6b122)
|
|
||||||
- **i18n**: added missing locale files in tools (#863) (7f5fa00)
|
|
||||||
- **i18n**: added vietnamese language (#859) (1334bff)
|
|
||||||
- **i18n**: added spanish language (#854) (85b50bb)
|
|
||||||
- **i18n**: added portuguese language (#813) (c65ffb6)
|
|
||||||
- **i18n**: added ukrainian language (#827) (693f362)
|
|
||||||
- **new-tool**: yaml formater (#779) (fc06f01)
|
|
||||||
- **new-tool**: added unicode conversion utilities (#858) (c46207f)
|
|
||||||
|
|
||||||
### Bug fixes
|
|
||||||
- **language**: English language cleanup (#1036) (221ddfa)
|
|
||||||
- **url-encoder, validation**: typo in validation of url-encoder.vue #1024 (cb5b462)
|
|
||||||
- **integer base converter**: support bigint (#872) (9eac9cb)
|
|
||||||
- **bcrypt tool**: allow salt rounds up to 100 (#987) (23f82d9)
|
|
||||||
|
|
||||||
### Refactoring
|
|
||||||
- **lint**: removed extra semi (33e5294)
|
|
||||||
- **auto-imports**: regen auto imports (1242842)
|
|
||||||
- **home**: lightened tool cards (#882) (a07806c)
|
|
||||||
- **home**: removed n-grid to prevent layout shift (#881) (10e56b3)
|
|
||||||
- **i18n**: added locales per tool (#861) (95698cb)
|
|
||||||
|
|
||||||
### Chores
|
|
||||||
- **issues**: prevent empty issues (#1078) (a0bc346)
|
|
||||||
- **issues**: removed old issue templates (#1077) (5a7b0f9)
|
|
||||||
- **node**: upgraded node version in CI workflows (b59942a)
|
|
||||||
- **version**: release 2024.05.10-33e5294 (38d5687)
|
|
||||||
- **issues**: improved issues template (2852c30)
|
|
||||||
- **issues**: improved bug issue template (#1046) (a799234)
|
|
||||||
|
|
||||||
### Documentation
|
|
||||||
- **changelog**: update changelog for 2024.05.10-33e5294 (9dfd347)
|
|
||||||
|
|
||||||
## Version 2023.12.21-5ed3693
|
## Version 2023.12.21-5ed3693
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **i18n**: improve chinese i18n (#757) (2e56641)
|
- **i18n**: improve chinese i18n (#757) (2e56641)
|
||||||
- **i18n**: add tooltip and favoriteButton i18n (#756) (a1037cf)
|
- **i18n**: add tooltip and favoriteButton i18n (#756) (a1037cf)
|
||||||
- **i18n**: add Chinese translation base (#718) (8f99eb6)
|
- **i18n**: add Chinese translation base (#718) (8f99eb6)
|
||||||
@@ -54,7 +12,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **new tool**: numeronym generator (#729) (e07e2ae)
|
- **new tool**: numeronym generator (#729) (e07e2ae)
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- **jwt-parser**: jwt claim array support (#799) (5ed3693)
|
- **jwt-parser**: jwt claim array support (#799) (5ed3693)
|
||||||
- **camera-recorder**: stop camera on navigation (#782) (80e46c9)
|
- **camera-recorder**: stop camera on navigation (#782) (80e46c9)
|
||||||
- **doc**: updated create new tool command in readme (#762) (7a70dbb)
|
- **doc**: updated create new tool command in readme (#762) (7a70dbb)
|
||||||
@@ -63,7 +20,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **eta**: corrected example (#737) (821cbea)
|
- **eta**: corrected example (#737) (821cbea)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **about, i18n**: improved i18n dx with markdown (#753) (bd3edcb)
|
- **about, i18n**: improved i18n dx with markdown (#753) (bd3edcb)
|
||||||
- **token, i18n**: complete fr translation (#752) (de1ee69)
|
- **token, i18n**: complete fr translation (#752) (de1ee69)
|
||||||
- **uuid generator**: uuid version picker (#751) (38586ca)
|
- **uuid generator**: uuid version picker (#751) (38586ca)
|
||||||
@@ -73,7 +29,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **bcrypt**: fix input label align (#721) (093ff31)
|
- **bcrypt**: fix input label align (#721) (093ff31)
|
||||||
|
|
||||||
### Chores
|
### Chores
|
||||||
|
|
||||||
- **deps**: switched from oui to oui-data for mac address lookup (#693) (0fe9a20)
|
- **deps**: switched from oui to oui-data for mac address lookup (#693) (0fe9a20)
|
||||||
- **deps**: update unocss monorepo to ^0.57.0 (#638) (2e396d8)
|
- **deps**: update unocss monorepo to ^0.57.0 (#638) (2e396d8)
|
||||||
- **docker**: added armv7 plateform for docker releases (#722) (fe1de8c)
|
- **docker**: added armv7 plateform for docker releases (#722) (fe1de8c)
|
||||||
@@ -81,23 +36,19 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
## Version 2023.11.02-7d94e11
|
## Version 2023.11.02-7d94e11
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **i18n**: language selector (#710) (e86fd96)
|
- **i18n**: language selector (#710) (e86fd96)
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- **dockerfile**: revert replacement of nginx image with non-privileged one (#716) (7d94e11)
|
- **dockerfile**: revert replacement of nginx image with non-privileged one (#716) (7d94e11)
|
||||||
- **encryption**: alert on decryption error (#711) (02b0d0d)
|
- **encryption**: alert on decryption error (#711) (02b0d0d)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **math-evaluator**: improved description (e87f4b1)
|
- **math-evaluator**: improved description (e87f4b1)
|
||||||
- **math-evaluator**: improved search and UX (#713) (58de897)
|
- **math-evaluator**: improved search and UX (#713) (58de897)
|
||||||
|
|
||||||
## Version 2023.11.01-e164afb
|
## Version 2023.11.01-e164afb
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **command-palette**: clear prompt on palette close (#708) (d013696)
|
- **command-palette**: clear prompt on palette close (#708) (d013696)
|
||||||
- **command-palette**: added about page in command palette (99b1eb9)
|
- **command-palette**: added about page in command palette (99b1eb9)
|
||||||
- **new tool**: random MAC address generator (#657) (cc3425d)
|
- **new tool**: random MAC address generator (#657) (cc3425d)
|
||||||
@@ -116,13 +67,11 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **new tool**: text diff and comparator (#588) (81bfe57)
|
- **new tool**: text diff and comparator (#588) (81bfe57)
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- **deps**: fix issue on slugify (#593) (#673) (720201a)
|
- **deps**: fix issue on slugify (#593) (#673) (720201a)
|
||||||
- **deps**: update dependency monaco-editor to ^0.43.0 (#620) (e371ef7)
|
- **deps**: update dependency monaco-editor to ^0.43.0 (#620) (e371ef7)
|
||||||
- **deps**: update dependency sql-formatter to v13 (#606) (c7d4562)
|
- **deps**: update dependency sql-formatter to v13 (#606) (c7d4562)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **ui**: better ui demo preview menu (#664) (015c673)
|
- **ui**: better ui demo preview menu (#664) (015c673)
|
||||||
- **color-converter**: improved color-converter UX (#701) (abb8335)
|
- **color-converter**: improved color-converter UX (#701) (abb8335)
|
||||||
- **docker**: improved docker config (#700) (020e9cb)
|
- **docker**: improved docker config (#700) (020e9cb)
|
||||||
@@ -139,7 +88,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **bcrypt**: fix typo (#604) (e18bae1)
|
- **bcrypt**: fix typo (#604) (e18bae1)
|
||||||
|
|
||||||
### Chores
|
### Chores
|
||||||
|
|
||||||
- **deps**: clean unused dependencies (#709) (e164afb)
|
- **deps**: clean unused dependencies (#709) (e164afb)
|
||||||
- **deps**: update docker/setup-qemu-action action to v3 (#627) (4365226)
|
- **deps**: update docker/setup-qemu-action action to v3 (#627) (4365226)
|
||||||
- **deps**: update docker/setup-buildx-action action to v3 (#626) (57ecda1)
|
- **deps**: update docker/setup-buildx-action action to v3 (#626) (57ecda1)
|
||||||
@@ -154,23 +102,19 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **deps**: update dependency typescript to ~5.2.0 (#587) (f3e14fc)
|
- **deps**: update dependency typescript to ~5.2.0 (#587) (f3e14fc)
|
||||||
|
|
||||||
### Doc
|
### Doc
|
||||||
|
|
||||||
- **readme**: added contributors list (#622) (557b304)
|
- **readme**: added contributors list (#622) (557b304)
|
||||||
- **hosting**: added cloudron in the other hosting solutions section (#589) (06c3547)
|
- **hosting**: added cloudron in the other hosting solutions section (#589) (06c3547)
|
||||||
|
|
||||||
## Version 2023.08.21-6f93cba
|
## Version 2023.08.21-6f93cba
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **copy**: support legacy copy to clipboard for older browser (#581) (6f93cba)
|
- **copy**: support legacy copy to clipboard for older browser (#581) (6f93cba)
|
||||||
- **new tool**: string obfuscator (#575) (c58d6e3)
|
- **new tool**: string obfuscator (#575) (c58d6e3)
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- **deps**: update dependency sql-formatter to v12 (#520) (2bcb77a)
|
- **deps**: update dependency sql-formatter to v12 (#520) (2bcb77a)
|
||||||
|
|
||||||
### Chores
|
### Chores
|
||||||
|
|
||||||
- **deps**: switched to fucking typescript v5 (#501) (76b2761)
|
- **deps**: switched to fucking typescript v5 (#501) (76b2761)
|
||||||
- **deps**: update dependency @antfu/eslint-config to ^0.40.0 (#552) (6ff9a01)
|
- **deps**: update dependency @antfu/eslint-config to ^0.40.0 (#552) (6ff9a01)
|
||||||
- **deps**: update dependency prettier to v3 (#564) (a2b9b15)
|
- **deps**: update dependency prettier to v3 (#564) (a2b9b15)
|
||||||
@@ -180,7 +124,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
## Version 2023.08.16-9bd4ad4
|
## Version 2023.08.16-9bd4ad4
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **Case Converter**: Add lowercase and uppercase (#534) (7b6232a)
|
- **Case Converter**: Add lowercase and uppercase (#534) (7b6232a)
|
||||||
- **new tool**: emoji picker (#551) (93f7cf0)
|
- **new tool**: emoji picker (#551) (93f7cf0)
|
||||||
- **ui**: added c-select in the ui lib (#550) (dfa1ba8)
|
- **ui**: added c-select in the ui lib (#550) (dfa1ba8)
|
||||||
@@ -201,7 +144,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **base64-string-converter**: switch to encode and decode url safe base64 strings (#392) (0b20f1c)
|
- **base64-string-converter**: switch to encode and decode url safe base64 strings (#392) (0b20f1c)
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- **deps**: update dependency uuid to v9 (#566) (5e12991)
|
- **deps**: update dependency uuid to v9 (#566) (5e12991)
|
||||||
- **deps**: update dependency mathjs to v11 (#519) (7924456)
|
- **deps**: update dependency mathjs to v11 (#519) (7924456)
|
||||||
- **deps**: update dependency @vueuse/router to v10 (#516) (ea0f27c)
|
- **deps**: update dependency @vueuse/router to v10 (#516) (ea0f27c)
|
||||||
@@ -221,7 +163,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **ipv4-converter**: removed readonly on input (7aed9c5)
|
- **ipv4-converter**: removed readonly on input (7aed9c5)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **navbar**: consistent spacing in navbar buttons (#507) (30f88fc)
|
- **navbar**: consistent spacing in navbar buttons (#507) (30f88fc)
|
||||||
- **ui**: remove n-text (#506) (72c98a3)
|
- **ui**: remove n-text (#506) (72c98a3)
|
||||||
- **ui**: replaced some n-input to c-input (#505) (05ea545)
|
- **ui**: replaced some n-input to c-input (#505) (05ea545)
|
||||||
@@ -234,7 +175,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **ui**: replaced some n-input with c-input-text (f7fc779)
|
- **ui**: replaced some n-input with c-input-text (f7fc779)
|
||||||
|
|
||||||
### Chores
|
### Chores
|
||||||
|
|
||||||
- **deps**: update dependency vitest to ^0.34.0 (#562) (9bd4ad4)
|
- **deps**: update dependency vitest to ^0.34.0 (#562) (9bd4ad4)
|
||||||
- **deps**: update dependency node to v18.17.1 (#560) (65a9474)
|
- **deps**: update dependency node to v18.17.1 (#560) (65a9474)
|
||||||
- **deps**: update dependency unocss to ^0.55.0 (#561) (85cc7a8)
|
- **deps**: update dependency unocss to ^0.55.0 (#561) (85cc7a8)
|
||||||
@@ -275,58 +215,47 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
- **lint**: switched to a better lint config (33c9b66)
|
- **lint**: switched to a better lint config (33c9b66)
|
||||||
|
|
||||||
### Refacor
|
### Refacor
|
||||||
|
|
||||||
- **transformers**: use monospace font for JSON and SQL text areas (#476) (ba4876d)
|
- **transformers**: use monospace font for JSON and SQL text areas (#476) (ba4876d)
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
|
||||||
- **ide**: updated vscode extensions settings (#472) (847323c)
|
- **ide**: updated vscode extensions settings (#472) (847323c)
|
||||||
|
|
||||||
### Chors
|
### Chors
|
||||||
|
|
||||||
- **deps**: updated vueuse dependency version (8515c24)
|
- **deps**: updated vueuse dependency version (8515c24)
|
||||||
|
|
||||||
## Version 2023.05.14-77f2efc
|
## Version 2023.05.14-77f2efc
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **list-converter**: a small converter who deals with column based data and do some stuff with it (#387) (83a7b3b)
|
- **list-converter**: a small converter who deals with column based data and do some stuff with it (#387) (83a7b3b)
|
||||||
- **new tool**: phone parser and normalizer (ce3150c)
|
- **new tool**: phone parser and normalizer (ce3150c)
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- **phone-parser**: use default country code (a43c546)
|
- **phone-parser**: use default country code (a43c546)
|
||||||
- **home**: prevent weird blue border on card (3f6c8f0)
|
- **home**: prevent weird blue border on card (3f6c8f0)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **ui**: replaced some n-input with c-input-text (77f2efc)
|
- **ui**: replaced some n-input with c-input-text (77f2efc)
|
||||||
|
|
||||||
### Chores
|
### Chores
|
||||||
|
|
||||||
- **issues**: updated new tool request issue template (edae4c6)
|
- **issues**: updated new tool request issue template (edae4c6)
|
||||||
|
|
||||||
### Ui-lib
|
### Ui-lib
|
||||||
|
|
||||||
- **new-component**: added text input component in the c-lib (aad8d84)
|
- **new-component**: added text input component in the c-lib (aad8d84)
|
||||||
- **button**: size variants (401f13f)
|
- **button**: size variants (401f13f)
|
||||||
|
|
||||||
## Version 2023.04.23-92bd835
|
## Version 2023.04.23-92bd835
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **ui-lib**: demo pages for c-lib components (92bd835)
|
- **ui-lib**: demo pages for c-lib components (92bd835)
|
||||||
- **new-tool**: diff of two json objects (362f2fa)
|
- **new-tool**: diff of two json objects (362f2fa)
|
||||||
- **ipv4-range-expander**: expands a given IPv4 start and end address to a valid IPv4 subnet (#366) (df989e2)
|
- **ipv4-range-expander**: expands a given IPv4 start and end address to a valid IPv4 subnet (#366) (df989e2)
|
||||||
- **date converter**: auto focus main input (6d22025)
|
- **date converter**: auto focus main input (6d22025)
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- **ts**: cleaned legacy typechecking warning (e88c1d5)
|
- **ts**: cleaned legacy typechecking warning (e88c1d5)
|
||||||
- **mac-address-lookup**: added copy handler on button click (c311e38)
|
- **mac-address-lookup**: added copy handler on button click (c311e38)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **ui-lib**: prevent c-button to shrink (61ece23)
|
- **ui-lib**: prevent c-button to shrink (61ece23)
|
||||||
- **ui**: replaced naive ui cards with custom ones (f080933)
|
- **ui**: replaced naive ui cards with custom ones (f080933)
|
||||||
- **clean**: removed unused lodash import (bb32513)
|
- **clean**: removed unused lodash import (bb32513)
|
||||||
@@ -336,60 +265,48 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
## Version 2023.04.14-dbad773
|
## Version 2023.04.14-dbad773
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **new-tool**: http status codes (8355bd2)
|
- **new-tool**: http status codes (8355bd2)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
||||||
|
|
||||||
### Chores
|
### Chores
|
||||||
|
|
||||||
- **release**: create a github release on new version (dbad773)
|
- **release**: create a github release on new version (dbad773)
|
||||||
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
||||||
|
|
||||||
## Version 2023.04.14-f9b77b7
|
## Version 2023.04.14-f9b77b7
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **new-tool**: http status codes (8355bd2)
|
- **new-tool**: http status codes (8355bd2)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
||||||
|
|
||||||
### Chores
|
### Chores
|
||||||
|
|
||||||
- **release**: create a github release on new version (f9b77b7)
|
- **release**: create a github release on new version (f9b77b7)
|
||||||
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
||||||
|
|
||||||
## Version 2023.04.14-2f0d239
|
## Version 2023.04.14-2f0d239
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **new-tool**: http status codes (8355bd2)
|
- **new-tool**: http status codes (8355bd2)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
||||||
|
|
||||||
### Chores
|
### Chores
|
||||||
|
|
||||||
- **release**: create a github release on new version (2f0d239)
|
- **release**: create a github release on new version (2f0d239)
|
||||||
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
||||||
|
|
||||||
## Version 2023.04.14-474cae4
|
## Version 2023.04.14-474cae4
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- **new-tool**: http status codes (8355bd2)
|
- **new-tool**: http status codes (8355bd2)
|
||||||
|
|
||||||
### Refactoring
|
### Refactoring
|
||||||
|
|
||||||
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
||||||
|
|
||||||
### Chores
|
### Chores
|
||||||
|
|
||||||
- **release**: create a github release on new version (474cae4)
|
- **release**: create a github release on new version (474cae4)
|
||||||
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
||||||
|
|
||||||
|
|||||||
Vendored
+7
-3
@@ -109,7 +109,6 @@ declare module '@vue/runtime-core' {
|
|||||||
JsonDiff: typeof import('./src/tools/json-diff/json-diff.vue')['default']
|
JsonDiff: typeof import('./src/tools/json-diff/json-diff.vue')['default']
|
||||||
JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']
|
JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']
|
||||||
JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default']
|
JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default']
|
||||||
JsonToPhpArray: typeof import('./src/tools/json-to-php-array/json-to-php-array.vue')['default']
|
|
||||||
JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default']
|
JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default']
|
||||||
JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']
|
JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']
|
||||||
JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']
|
JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']
|
||||||
@@ -131,14 +130,21 @@ declare module '@vue/runtime-core' {
|
|||||||
NCode: typeof import('naive-ui')['NCode']
|
NCode: typeof import('naive-ui')['NCode']
|
||||||
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
|
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
|
||||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||||
|
NDivider: typeof import('naive-ui')['NDivider']
|
||||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||||
|
NFormItem: typeof import('naive-ui')['NFormItem']
|
||||||
|
NGi: typeof import('naive-ui')['NGi']
|
||||||
|
NGrid: typeof import('naive-ui')['NGrid']
|
||||||
NH1: typeof import('naive-ui')['NH1']
|
NH1: typeof import('naive-ui')['NH1']
|
||||||
NH3: typeof import('naive-ui')['NH3']
|
NH3: typeof import('naive-ui')['NH3']
|
||||||
NIcon: typeof import('naive-ui')['NIcon']
|
NIcon: typeof import('naive-ui')['NIcon']
|
||||||
|
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
||||||
|
NLabel: typeof import('naive-ui')['NLabel']
|
||||||
NLayout: typeof import('naive-ui')['NLayout']
|
NLayout: typeof import('naive-ui')['NLayout']
|
||||||
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
||||||
NMenu: typeof import('naive-ui')['NMenu']
|
NMenu: typeof import('naive-ui')['NMenu']
|
||||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||||
|
NSpin: typeof import('naive-ui')['NSpin']
|
||||||
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
||||||
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
|
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
|
||||||
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
|
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
|
||||||
@@ -146,7 +152,6 @@ declare module '@vue/runtime-core' {
|
|||||||
PdfSignatureDetails: typeof import('./src/tools/pdf-signature-checker/components/pdf-signature-details.vue')['default']
|
PdfSignatureDetails: typeof import('./src/tools/pdf-signature-checker/components/pdf-signature-details.vue')['default']
|
||||||
PercentageCalculator: typeof import('./src/tools/percentage-calculator/percentage-calculator.vue')['default']
|
PercentageCalculator: typeof import('./src/tools/percentage-calculator/percentage-calculator.vue')['default']
|
||||||
PhoneParserAndFormatter: typeof import('./src/tools/phone-parser-and-formatter/phone-parser-and-formatter.vue')['default']
|
PhoneParserAndFormatter: typeof import('./src/tools/phone-parser-and-formatter/phone-parser-and-formatter.vue')['default']
|
||||||
PhpArrayToJson: typeof import('./src/tools/php-array-to-json/php-array-to-json.vue')['default']
|
|
||||||
QrCodeGenerator: typeof import('./src/tools/qr-code-generator/qr-code-generator.vue')['default']
|
QrCodeGenerator: typeof import('./src/tools/qr-code-generator/qr-code-generator.vue')['default']
|
||||||
RandomPortGenerator: typeof import('./src/tools/random-port-generator/random-port-generator.vue')['default']
|
RandomPortGenerator: typeof import('./src/tools/random-port-generator/random-port-generator.vue')['default']
|
||||||
ResultRow: typeof import('./src/tools/ipv4-range-expander/result-row.vue')['default']
|
ResultRow: typeof import('./src/tools/ipv4-range-expander/result-row.vue')['default']
|
||||||
@@ -154,7 +159,6 @@ declare module '@vue/runtime-core' {
|
|||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default']
|
RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default']
|
||||||
SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default']
|
|
||||||
SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default']
|
SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default']
|
||||||
SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']
|
SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']
|
||||||
SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']
|
SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']
|
||||||
|
|||||||
-455
@@ -1,455 +0,0 @@
|
|||||||
'404':
|
|
||||||
notFound: 404 Nicht gefunden
|
|
||||||
sorry: Entschuldigung, diese Seite scheint nicht zu existieren
|
|
||||||
maybe: >-
|
|
||||||
Vielleicht macht der Cache etwas Seltsames. Mit einem erzwungenen Neuladen
|
|
||||||
versuchen?
|
|
||||||
backHome: Zurück zur Startseite
|
|
||||||
home:
|
|
||||||
categories:
|
|
||||||
newestTools: Neueste Tools
|
|
||||||
favoriteTools: Deine Lieblingstools
|
|
||||||
allTools: Alle Tools
|
|
||||||
subtitle: Praktische Tools für Entwickler
|
|
||||||
toggleMenu: Menü umschalten
|
|
||||||
home: Startseite
|
|
||||||
uiLib: UI-Bibliothek
|
|
||||||
support: Unterstütze die Entwicklung von IT-Tools
|
|
||||||
buyMeACoffee: Kauf mir einen Kaffee
|
|
||||||
follow:
|
|
||||||
title: Magst du IT-Tools?
|
|
||||||
p1: Gib uns einen Stern auf
|
|
||||||
githubRepository: IT-Tools GitHub-Repository
|
|
||||||
p2: oder folge uns auf
|
|
||||||
twitterAccount: IT-Tools Twitter-Konto
|
|
||||||
thankYou: Vielen Dank!
|
|
||||||
nav:
|
|
||||||
github: GitHub-Repository
|
|
||||||
githubRepository: IT-Tools GitHub-Repository
|
|
||||||
twitter: Twitter-Konto
|
|
||||||
twitterAccount: IT-Tools Twitter-Konto
|
|
||||||
about: Über IT-Tools
|
|
||||||
aboutLabel: Über
|
|
||||||
darkMode: Dunkelmodus
|
|
||||||
lightMode: Hellmodus
|
|
||||||
mode: Wechseln zwischen dunklem/hellem Modus
|
|
||||||
about:
|
|
||||||
content: >
|
|
||||||
# Über IT-Tools
|
|
||||||
|
|
||||||
Diese wunderbare Website, erstellt mit ❤ von [Corentin
|
|
||||||
Thomasset](https://github.com/CorentinTh), sammelt nützliche Tools für
|
|
||||||
Entwickler und Menschen, die in der IT arbeiten. Wenn du sie nützlich
|
|
||||||
findest, teile sie gerne mit Personen, von denen du denkst, dass sie sie
|
|
||||||
ebenfalls nützlich finden könnten, und vergiss nicht, sie in deiner
|
|
||||||
Lesezeichenleiste zu speichern!
|
|
||||||
|
|
||||||
IT-Tools ist Open Source (unter der MIT-Lizenz) und kostenlos und wird es
|
|
||||||
immer sein, aber es kostet mich Geld, die Website zu hosten und den
|
|
||||||
Domainnamen zu erneuern. Wenn du meine Arbeit unterstützen möchtest und mich
|
|
||||||
ermutigen möchtest, mehr Tools hinzuzufügen, überlege bitte, mich durch
|
|
||||||
[Sponsoring](https://www.buymeacoffee.com/cthmsst) zu unterstützen.
|
|
||||||
|
|
||||||
## Technologien
|
|
||||||
|
|
||||||
IT-Tools wurde mit Vue.js (Vue 3) und der Naive UI-Komponentenbibliothek
|
|
||||||
erstellt und wird von Vercel gehostet und kontinuierlich bereitgestellt. In
|
|
||||||
einigen Tools werden Drittanbieter-Open-Source-Bibliotheken verwendet. Du
|
|
||||||
findest die vollständige Liste in der
|
|
||||||
[package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json)-Datei
|
|
||||||
des Repositorys.
|
|
||||||
|
|
||||||
## Einen Fehler gefunden? Ein Tool fehlt?
|
|
||||||
|
|
||||||
Wenn du ein Tool benötigst, das hier noch nicht vorhanden ist, und du
|
|
||||||
denkst, dass es nützlich sein könnte, bist du herzlich eingeladen, einen
|
|
||||||
Feature-Request im
|
|
||||||
[Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose)
|
|
||||||
im GitHub-Repository einzureichen.
|
|
||||||
|
|
||||||
Und wenn du einen Fehler gefunden hast oder etwas nicht wie erwartet
|
|
||||||
funktioniert, melde bitte einen Fehler im
|
|
||||||
[Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose)
|
|
||||||
im GitHub-Repository.
|
|
||||||
favoriteButton:
|
|
||||||
remove: Aus Favoriten entfernen
|
|
||||||
add: Zu Favoriten hinzufügen
|
|
||||||
toolCard:
|
|
||||||
new: Neu
|
|
||||||
search:
|
|
||||||
label: Suche
|
|
||||||
tools:
|
|
||||||
categories:
|
|
||||||
favorite-tools: Deine Lieblingstools
|
|
||||||
crypto: Krypto
|
|
||||||
converter: Konverter
|
|
||||||
web: Web
|
|
||||||
images and videos: Bilder & Videos
|
|
||||||
development: Entwicklung
|
|
||||||
network: Netzwerk
|
|
||||||
math: Mathematik
|
|
||||||
measurement: Messung
|
|
||||||
text: Text
|
|
||||||
data: Daten
|
|
||||||
password-strength-analyser:
|
|
||||||
title: Passwortstärken-Analysator
|
|
||||||
description: >-
|
|
||||||
Ermittle die Stärke deines Passworts mit diesem Client-seitigen
|
|
||||||
Passwortstärken-Analysator und Tool zur Schätzung der Knackzeit.
|
|
||||||
chronometer:
|
|
||||||
title: Chronometer
|
|
||||||
description: >-
|
|
||||||
Überwache die Dauer einer Sache. Im Grunde ein Chronometer mit einfachen
|
|
||||||
Chronometerfunktionen.
|
|
||||||
token-generator:
|
|
||||||
title: Token-Generator
|
|
||||||
description: >-
|
|
||||||
Generiere eine zufällige Zeichenfolge mit den von dir gewünschten Zeichen,
|
|
||||||
Groß- oder Kleinbuchstaben, Zahlen und/oder Symbolen.
|
|
||||||
uppercase: Großbuchstaben (ABC...)
|
|
||||||
lowercase: Kleinbuchstaben (abc...)
|
|
||||||
numbers: Zahlen (123...)
|
|
||||||
symbols: Symbole (!-;...)
|
|
||||||
length: Länge
|
|
||||||
tokenPlaceholder: Der Token ...
|
|
||||||
copied: Token in die Zwischenablage kopiert
|
|
||||||
button:
|
|
||||||
copy: Kopieren
|
|
||||||
refresh: Aktualisieren
|
|
||||||
percentage-calculator:
|
|
||||||
title: Prozentrechner
|
|
||||||
description: >-
|
|
||||||
Berechne einfach Prozentsätze von einem Wert zu einem anderen Wert oder
|
|
||||||
von einem Prozentsatz zu einem Wert.
|
|
||||||
svg-placeholder-generator:
|
|
||||||
title: SVG-Platzhalter-Generator
|
|
||||||
description: >-
|
|
||||||
Generiere SVG-Bilder, die als Platzhalter in deinen Anwendungen verwendet
|
|
||||||
werden können.
|
|
||||||
json-to-csv:
|
|
||||||
title: JSON zu CSV
|
|
||||||
description: Konvertiere JSON mit automatischer Headererkennung in CSV.
|
|
||||||
camera-recorder:
|
|
||||||
title: Kamera-Rekorder
|
|
||||||
description: Mache ein Foto oder nimm ein Video von deiner Webcam oder Kamera auf.
|
|
||||||
keycode-info:
|
|
||||||
title: Keycode-Info
|
|
||||||
description: >-
|
|
||||||
Finde den JavaScript-Keycode, den Code, den Standort und die Modifikatoren
|
|
||||||
einer beliebigen gedrückten Taste.
|
|
||||||
emoji-picker:
|
|
||||||
title: Emoji-Picker
|
|
||||||
description: >-
|
|
||||||
Einfaches Kopieren und Einfügen von Emojis. Erhalte außerdem den Unicode-
|
|
||||||
und Codepunkt-Wert jedes Emojis.
|
|
||||||
color-converter:
|
|
||||||
title: Farbkonverter
|
|
||||||
description: >-
|
|
||||||
Konvertiere Farben zwischen den verschiedenen Formaten (Hex, RGB, HSL und
|
|
||||||
CSS-Name).
|
|
||||||
bcrypt:
|
|
||||||
title: Bcrypt
|
|
||||||
description: >-
|
|
||||||
Hashen und Vergleichen von Strings mit bcrypt. Bcrypt ist eine auf der
|
|
||||||
Blowfish-Chiffre basierende Hash-Funktion.
|
|
||||||
crontab-generator:
|
|
||||||
title: Crontab-Generator
|
|
||||||
description: >-
|
|
||||||
Überprüfe und generiere Crontab und erhalte die menschenlesbare
|
|
||||||
Beschreibung des Cron-Zeitplans.
|
|
||||||
http-status-codes:
|
|
||||||
title: HTTP-Statuscodes
|
|
||||||
description: Liste aller HTTP-Statuscodes, ihrer Namen und ihrer Bedeutung.
|
|
||||||
sql-prettify:
|
|
||||||
title: SQL verschönern und formatieren
|
|
||||||
description: >-
|
|
||||||
Formatiere und verschönere deine SQL-Abfragen online (unterstützt
|
|
||||||
verschiedene SQL-Dialekte).
|
|
||||||
benchmark-builder:
|
|
||||||
title: Benchmark-Builder
|
|
||||||
description: >-
|
|
||||||
Vergleiche ganz einfach die Ausführungszeit von Aufgaben mit diesem sehr
|
|
||||||
einfachen Online-Benchmark-Builder.
|
|
||||||
git-memo:
|
|
||||||
title: Git-Spickzettel
|
|
||||||
description: >-
|
|
||||||
Git ist eine dezentrale Versionsverwaltungssoftware. Mit diesem
|
|
||||||
Spickzettel hast du schnellen Zugriff auf die gängigsten Git-Befehle.
|
|
||||||
slugify-string:
|
|
||||||
title: Slugify String
|
|
||||||
description: Mache einen String URL-, Dateinamen- und ID-sicher.
|
|
||||||
encryption:
|
|
||||||
title: Text verschlüsseln / entschlüsseln
|
|
||||||
description: >-
|
|
||||||
Verschlüssele und entschlüssele Klartext mithilfe von Kryptoalgorithmen
|
|
||||||
wie AES, TripleDES, Rabbit oder RC4.
|
|
||||||
random-port-generator:
|
|
||||||
title: Zufälliger Port-Generator
|
|
||||||
description: >-
|
|
||||||
Generiere zufällige Portnummern außerhalb des Bereichs der "bekannten"
|
|
||||||
Ports (0-1023).
|
|
||||||
yaml-prettify:
|
|
||||||
title: YAML verschönern und formatieren
|
|
||||||
description: Verschönere deinen YAML-String in ein menschenlesbares Format.
|
|
||||||
eta-calculator:
|
|
||||||
title: ETA-Rechner
|
|
||||||
description: >-
|
|
||||||
Ein ETA (Estimated Time of Arrival)-Rechner, um die ungefähre Endzeit
|
|
||||||
einer Aufgabe zu erfahren, z. B. den Zeitpunkt des Endes eines Downloads.
|
|
||||||
roman-numeral-converter:
|
|
||||||
title: Römische Zahlen Konverter
|
|
||||||
description: >-
|
|
||||||
Konvertiere römische Zahlen in Dezimalzahlen und Dezimalzahlen in römische
|
|
||||||
Zahlen.
|
|
||||||
hmac-generator:
|
|
||||||
title: HMAC-Generator
|
|
||||||
description: >-
|
|
||||||
Berechnet einen hashbasierten Nachrichtenauthentifizierungscode (HMAC)
|
|
||||||
unter Verwendung eines geheimen Schlüssels und deiner bevorzugten
|
|
||||||
Hash-Funktion.
|
|
||||||
bip39-generator:
|
|
||||||
title: BIP39-Passphrasengenerator
|
|
||||||
description: >-
|
|
||||||
Generiere BIP39-Passphrasen aus vorhandener oder zufälliger Mnemonik oder
|
|
||||||
erhalte die Mnemonik aus der Passphrase.
|
|
||||||
base64-file-converter:
|
|
||||||
title: Base64-Dateikonverter
|
|
||||||
description: Konvertiere Strings, Dateien oder Bilder in ihre Base64-Repräsentation.
|
|
||||||
list-converter:
|
|
||||||
title: Listenkonverter
|
|
||||||
description: >-
|
|
||||||
Dieses Tool kann spaltenbasierte Daten verarbeiten und verschiedene
|
|
||||||
Änderungen (transponieren, Präfix und Suffix hinzufügen, Liste umkehren,
|
|
||||||
Liste sortieren, Werte in Kleinbuchstaben umwandeln, Werte abschneiden)
|
|
||||||
auf jede Zeile anwenden.
|
|
||||||
base64-string-converter:
|
|
||||||
title: Base64-String-Encoder/Decoder
|
|
||||||
description: Codiere und decodiere Strings einfach in ihre Base64-Repräsentation.
|
|
||||||
toml-to-yaml:
|
|
||||||
title: TOML zu YAML
|
|
||||||
description: Parse und konvertiere TOML zu YAML.
|
|
||||||
math-evaluator:
|
|
||||||
title: Mathematischer Auswerter
|
|
||||||
description: >-
|
|
||||||
Ein Taschenrechner zum Auswerten mathematischer Ausdrücke. Du kannst
|
|
||||||
Funktionen wie sqrt, cos, sin, abs usw. verwenden.
|
|
||||||
json-to-yaml-converter:
|
|
||||||
title: JSON zu YAML
|
|
||||||
description: Konvertiere JSON einfach in YAML mit diesem Live-Online-Konverter.
|
|
||||||
url-parser:
|
|
||||||
title: URL-Parser
|
|
||||||
description: >-
|
|
||||||
Parse eine URL-Zeichenfolge, um alle verschiedenen Teile (Protokoll,
|
|
||||||
Ursprung, Parameter, Port, Benutzername-Passwort usw.) zu erhalten.
|
|
||||||
iban-validator-and-parser:
|
|
||||||
title: IBAN-Validator und -Parser
|
|
||||||
description: >-
|
|
||||||
Validiere und parse IBAN-Nummern. Überprüfe, ob die IBAN gültig ist, und
|
|
||||||
erhalte das Land, BBAN, ob es sich um eine QR-IBAN handelt und das
|
|
||||||
IBAN-freundliche Format.
|
|
||||||
user-agent-parser:
|
|
||||||
title: User-Agent-Parser
|
|
||||||
description: >-
|
|
||||||
Erkenne und parse Browser, Engine, Betriebssystem, CPU und
|
|
||||||
Gerätetyp/-modell aus einer User-Agent-Zeichenfolge.
|
|
||||||
numeronym-generator:
|
|
||||||
title: Numeronym-Generator
|
|
||||||
description: >-
|
|
||||||
Ein Numeronym ist ein Wort, bei dem eine Zahl verwendet wird, um eine
|
|
||||||
Abkürzung zu bilden. Zum Beispiel ist "i18n" ein Numeronym für
|
|
||||||
"internationalization", wobei 18 für die Anzahl der Buchstaben zwischen
|
|
||||||
dem ersten "i" und dem letzten "n" im Wort steht.
|
|
||||||
case-converter:
|
|
||||||
title: Fall-Konverter
|
|
||||||
description: >-
|
|
||||||
Ändere den Fall eines Strings und wähle zwischen verschiedenen Formaten
|
|
||||||
aus.
|
|
||||||
html-entities:
|
|
||||||
title: HTML-Entity-Escape
|
|
||||||
description: >-
|
|
||||||
Escape oder unescape HTML-Entitäten (ersetze <, >, &, " und ' durch ihre
|
|
||||||
HTML-Version).
|
|
||||||
json-prettify:
|
|
||||||
title: JSON verschönern und formatieren
|
|
||||||
description: Verschönere deinen JSON-String in ein menschenlesbares Format.
|
|
||||||
docker-run-to-docker-compose-converter:
|
|
||||||
title: Docker run zu Docker compose Konverter
|
|
||||||
description: Wandle docker run-Befehle in docker-compose-Dateien um!
|
|
||||||
mac-address-lookup:
|
|
||||||
title: MAC-Adressensuche
|
|
||||||
description: Finde den Anbieter und Hersteller eines Geräts anhand seiner MAC-Adresse.
|
|
||||||
mime-types:
|
|
||||||
title: MIME-Typen
|
|
||||||
description: Konvertiere MIME-Typen in Erweiterungen und umgekehrt.
|
|
||||||
toml-to-json:
|
|
||||||
title: TOML zu JSON
|
|
||||||
description: Parse und konvertiere TOML zu JSON.
|
|
||||||
lorem-ipsum-generator:
|
|
||||||
title: Lorem Ipsum Generator
|
|
||||||
description: >-
|
|
||||||
Lorem Ipsum ist ein Platzhaltertext, der häufig verwendet wird, um die
|
|
||||||
visuelle Form eines Dokuments oder einer Schriftart ohne Verwendung von
|
|
||||||
bedeutendem Inhalt zu demonstrieren.
|
|
||||||
qrcode-generator:
|
|
||||||
title: QR-Code-Generator
|
|
||||||
description: >-
|
|
||||||
Generiere und downloade QR-Codes für eine URL oder einfach einen Text und
|
|
||||||
passe die Hintergrund- und Vordergrundfarben an.
|
|
||||||
wifi-qrcode-generator:
|
|
||||||
title: WLAN-QR-Code-Generator
|
|
||||||
description: >-
|
|
||||||
Generiere und lade QR-Codes für schnelle Verbindungen zu WLAN-Netzwerken
|
|
||||||
herunter.
|
|
||||||
xml-formatter:
|
|
||||||
title: XML-Formatter
|
|
||||||
description: Verschönere deinen XML-String in ein menschenlesbares Format.
|
|
||||||
temperature-converter:
|
|
||||||
title: Temperaturkonverter
|
|
||||||
description: >-
|
|
||||||
Temperaturgradumrechnungen für Kelvin, Celsius, Fahrenheit, Rankine,
|
|
||||||
Delisle, Newton, Réaumur und Rømer.
|
|
||||||
chmod-calculator:
|
|
||||||
title: Chmod-Rechner
|
|
||||||
description: >-
|
|
||||||
Berechne deine Chmod-Berechtigungen und -Befehle mit diesem
|
|
||||||
Online-Chmod-Rechner.
|
|
||||||
rsa-key-pair-generator:
|
|
||||||
title: RSA-Schlüsselpaar-Generator
|
|
||||||
description: Generiere neue zufällige RSA-Private- und Public-Key-PEM-Zertifikate.
|
|
||||||
html-wysiwyg-editor:
|
|
||||||
title: HTML-WYSIWYG-Editor
|
|
||||||
description: >-
|
|
||||||
Online-HTML-Editor mit funktionsreichem WYSIWYG-Editor, erhalte sofort den
|
|
||||||
Quellcode des Inhalts.
|
|
||||||
yaml-to-toml:
|
|
||||||
title: YAML zu TOML
|
|
||||||
description: Parse und konvertiere YAML zu TOML.
|
|
||||||
mac-address-generator:
|
|
||||||
title: MAC-Adressen-Generator
|
|
||||||
description: >-
|
|
||||||
Gebe die Menge und das Präfix ein. MAC-Adressen werden in deiner gewählten
|
|
||||||
Schreibweise (Groß- oder Kleinbuchstaben) generiert.
|
|
||||||
json-diff:
|
|
||||||
title: JSON-Unterschied
|
|
||||||
description: Vergleiche zwei JSON-Objekte und erhalte die Unterschiede zwischen ihnen.
|
|
||||||
jwt-parser:
|
|
||||||
title: JWT-Parser
|
|
||||||
description: >-
|
|
||||||
Parse und decodiere deinen JSON-Web-Token (JWT) und zeige dessen Inhalt
|
|
||||||
an.
|
|
||||||
date-converter:
|
|
||||||
title: Datum-Uhrzeit-Konverter
|
|
||||||
description: Konvertiere Datum und Uhrzeit in verschiedene Formate.
|
|
||||||
phone-parser-and-formatter:
|
|
||||||
title: Telefonnummer-Parser und -Formatter
|
|
||||||
description: >-
|
|
||||||
Parse, validiere und formatiere Telefonnummern. Erhalte Informationen zur
|
|
||||||
Telefonnummer, wie z. B. die Landesvorwahl, den Typ usw.
|
|
||||||
ipv4-subnet-calculator:
|
|
||||||
title: IPv4-Subnetzrechner
|
|
||||||
description: >-
|
|
||||||
Parse deine IPv4-CIDR-Blöcke und erhalte alle Informationen, die du über
|
|
||||||
dein Subnetz benötigst.
|
|
||||||
og-meta-generator:
|
|
||||||
title: Open Graph Meta-Generator
|
|
||||||
description: Generiere Open Graph- und Social-HTML-Metatags für deine Website.
|
|
||||||
ipv6-ula-generator:
|
|
||||||
title: IPv6-ULA-Generator
|
|
||||||
description: >-
|
|
||||||
Generiere deine eigenen lokalen, nicht routbaren IP-Adressen in deinem
|
|
||||||
Netzwerk gemäß RFC4193.
|
|
||||||
hash-text:
|
|
||||||
title: Text hashen
|
|
||||||
description: >-
|
|
||||||
Hashe einen Text-String mit der von dir benötigten Funktion: MD5, SHA1,
|
|
||||||
SHA256, SHA224, SHA512, SHA384, SHA3 oder RIPEMD160
|
|
||||||
json-to-toml:
|
|
||||||
title: JSON zu TOML
|
|
||||||
description: Parse und konvertiere JSON zu TOML.
|
|
||||||
device-information:
|
|
||||||
title: Geräteinformationen
|
|
||||||
description: >-
|
|
||||||
Informationen zu deinem aktuellen Gerät (Bildschirmgröße, Pixelverhältnis,
|
|
||||||
Benutzeragent, ...) erhalten.
|
|
||||||
pdf-signature-checker:
|
|
||||||
title: PDF-Signaturprüfer
|
|
||||||
description: >-
|
|
||||||
Überprüfe die Signaturen einer PDF-Datei. Eine signierte PDF-Datei enthält
|
|
||||||
eine oder mehrere Signaturen, die verwendet werden können, um
|
|
||||||
festzustellen, ob der Inhalt der Datei seit dem Zeitpunkt der Signierung
|
|
||||||
geändert wurde.
|
|
||||||
json-minify:
|
|
||||||
title: JSON minifizieren
|
|
||||||
description: >-
|
|
||||||
Minifiziere und komprimiere dein JSON, indem unnötige Leerzeichen entfernt
|
|
||||||
werden.
|
|
||||||
ulid-generator:
|
|
||||||
title: ULID-Generator
|
|
||||||
description: >-
|
|
||||||
Generiere zufällige Universally Unique Lexicographically Sortable
|
|
||||||
Identifier (ULID).
|
|
||||||
string-obfuscator:
|
|
||||||
title: String-Verschleierer
|
|
||||||
description: >-
|
|
||||||
Verschleiere einen String (wie ein Secret, eine IBAN oder ein Token), um
|
|
||||||
ihn weitergeben zu können und identifizierbar zu machen, ohne seinen
|
|
||||||
Inhalt preiszugeben.
|
|
||||||
base-converter:
|
|
||||||
title: Ganzzahl-Basiskonverter
|
|
||||||
description: >-
|
|
||||||
Konvertiere Zahlen zwischen verschiedenen Basen (Dezimal, Hexadezimal,
|
|
||||||
Binär, Oktal, Base64, ...).
|
|
||||||
yaml-to-json-converter:
|
|
||||||
title: YAML zu JSON
|
|
||||||
description: Konvertiere YAML einfach in JSON mit diesem Live-Online-Konverter.
|
|
||||||
uuid-generator:
|
|
||||||
title: UUID-Generator
|
|
||||||
description: >-
|
|
||||||
Ein Universally Unique Identifier (UUID) ist eine 128-Bit-Nummer, die zur
|
|
||||||
Identifizierung von Informationen in Computersystemen verwendet wird. Die
|
|
||||||
Anzahl der möglichen UUIDs beträgt 16^32, was 2^128 oder etwa 3,4x10^38
|
|
||||||
entspricht (was ziemlich viel ist!).
|
|
||||||
ipv4-address-converter:
|
|
||||||
title: IPv4-Adresskonverter
|
|
||||||
description: >-
|
|
||||||
Konvertiere eine IP-Adresse in Dezimal, Binär, Hexadezimal oder sogar in
|
|
||||||
IPv6.
|
|
||||||
text-statistics:
|
|
||||||
title: Textstatistiken
|
|
||||||
description: >-
|
|
||||||
Informationen zu einem Text erhalten, wie die Anzahl der Zeichen, die
|
|
||||||
Anzahl der Wörter, die Größe usw.
|
|
||||||
text-to-nato-alphabet:
|
|
||||||
title: Text zu NATO-Alphabet
|
|
||||||
description: >-
|
|
||||||
Wandle Text in das NATO-Phonetik-Alphabet für die mündliche Übermittlung
|
|
||||||
um.
|
|
||||||
basic-auth-generator:
|
|
||||||
title: Basic-Auth-Generator
|
|
||||||
description: >-
|
|
||||||
Generiere einen Base64-Basic-Auth-Header aus einem Benutzernamen und einem
|
|
||||||
Passwort.
|
|
||||||
text-to-unicode:
|
|
||||||
title: Text zu Unicode
|
|
||||||
description: Parse und konvertiere Text in Unicode und umgekehrt.
|
|
||||||
ipv4-range-expander:
|
|
||||||
title: IPv4-Bereichserweiterer
|
|
||||||
description: >-
|
|
||||||
Bei Angabe einer Start- und End-IPv4-Adresse berechnet dieses Tool ein
|
|
||||||
gültiges IPv4-Netzwerk mit seiner CIDR-Notation.
|
|
||||||
text-diff:
|
|
||||||
title: Textunterschied
|
|
||||||
description: Vergleiche zwei Texte und sieh die Unterschiede zwischen ihnen.
|
|
||||||
otp-generator:
|
|
||||||
title: OTP-Code-Generator
|
|
||||||
description: >-
|
|
||||||
Generiere und validiere zeitbasierte OTPs (Einmalpasswörter) für
|
|
||||||
Multi-Faktor-Authentifizierung.
|
|
||||||
url-encoder:
|
|
||||||
title: Kodieren/Decodieren von URL-formatierten Zeichenfolgen
|
|
||||||
description: >-
|
|
||||||
Kodiere zum URL-kodierten Format (auch als "prozentkodiert" bekannt) oder
|
|
||||||
decodiere es.
|
|
||||||
text-to-binary:
|
|
||||||
title: Text zu ASCII-Binär
|
|
||||||
description: Konvertiere Text in seine ASCII-Binärrepräsentation und umgekehrt.
|
|
||||||
+45
-45
@@ -7,7 +7,7 @@ home:
|
|||||||
toggleMenu: 'Toggle menu'
|
toggleMenu: 'Toggle menu'
|
||||||
home: Home
|
home: Home
|
||||||
uiLib: 'UI Lib'
|
uiLib: 'UI Lib'
|
||||||
support: 'Support IT-Tools development'
|
support: 'Support IT Tools development'
|
||||||
buyMeACoffee: 'Buy me a coffee'
|
buyMeACoffee: 'Buy me a coffee'
|
||||||
follow:
|
follow:
|
||||||
title: 'You like it-tools?'
|
title: 'You like it-tools?'
|
||||||
@@ -15,7 +15,7 @@ home:
|
|||||||
githubRepository: 'IT-Tools GitHub repository'
|
githubRepository: 'IT-Tools GitHub repository'
|
||||||
p2: 'or follow us on'
|
p2: 'or follow us on'
|
||||||
twitterAccount: 'IT-Tools Twitter account'
|
twitterAccount: 'IT-Tools Twitter account'
|
||||||
thankYou: 'Thank you!'
|
thankYou: 'Thank you !'
|
||||||
nav:
|
nav:
|
||||||
github: 'GitHub repository'
|
github: 'GitHub repository'
|
||||||
githubRepository: 'IT-Tools GitHub repository'
|
githubRepository: 'IT-Tools GitHub repository'
|
||||||
@@ -72,7 +72,7 @@ tools:
|
|||||||
|
|
||||||
password-strength-analyser:
|
password-strength-analyser:
|
||||||
title: Password strength analyser
|
title: Password strength analyser
|
||||||
description: Discover the strength of your password with this client-side-only password strength analyser and crack time estimation tool.
|
description: Discover the strength of your password with this client side only password strength analyser and crack time estimation tool.
|
||||||
|
|
||||||
chronometer:
|
chronometer:
|
||||||
title: Chronometer
|
title: Chronometer
|
||||||
@@ -98,7 +98,7 @@ tools:
|
|||||||
|
|
||||||
svg-placeholder-generator:
|
svg-placeholder-generator:
|
||||||
title: SVG placeholder generator
|
title: SVG placeholder generator
|
||||||
description: Generate svg images to use as a placeholder in your applications.
|
description: Generate svg images to use as placeholder in your applications.
|
||||||
|
|
||||||
json-to-csv:
|
json-to-csv:
|
||||||
title: JSON to CSV
|
title: JSON to CSV
|
||||||
@@ -126,11 +126,11 @@ tools:
|
|||||||
|
|
||||||
crontab-generator:
|
crontab-generator:
|
||||||
title: Crontab generator
|
title: Crontab generator
|
||||||
description: Validate and generate crontab and get the human-readable description of the cron schedule.
|
description: Validate and generate crontab and get the human readable description of the cron schedule.
|
||||||
|
|
||||||
http-status-codes:
|
http-status-codes:
|
||||||
title: HTTP status codes
|
title: HTTP status codes
|
||||||
description: The list of all HTTP status codes, their name, and their meaning.
|
description: The list of all HTTP status codes their name and their meaning.
|
||||||
|
|
||||||
sql-prettify:
|
sql-prettify:
|
||||||
title: SQL prettify and format
|
title: SQL prettify and format
|
||||||
@@ -142,7 +142,7 @@ tools:
|
|||||||
|
|
||||||
git-memo:
|
git-memo:
|
||||||
title: Git cheatsheet
|
title: Git cheatsheet
|
||||||
description: Git is a decentralized version management software. With this cheatsheet, you will have quick access to the most common git commands.
|
description: Git is a decentralized version management software. With this cheatsheet you will have a quick access to the most common git commands.
|
||||||
|
|
||||||
slugify-string:
|
slugify-string:
|
||||||
title: Slugify string
|
title: Slugify string
|
||||||
@@ -150,7 +150,7 @@ tools:
|
|||||||
|
|
||||||
encryption:
|
encryption:
|
||||||
title: Encrypt / decrypt text
|
title: Encrypt / decrypt text
|
||||||
description: Encrypt clear text and decrypt ciphertext using crypto algorithms like AES, TripleDES, Rabbit or RC4.
|
description: Encrypt and decrypt text clear text using crypto algorithm like AES, TripleDES, Rabbit or RC4.
|
||||||
|
|
||||||
random-port-generator:
|
random-port-generator:
|
||||||
title: Random port generator
|
title: Random port generator
|
||||||
@@ -158,11 +158,11 @@ tools:
|
|||||||
|
|
||||||
yaml-prettify:
|
yaml-prettify:
|
||||||
title: YAML prettify and format
|
title: YAML prettify and format
|
||||||
description: Prettify your YAML string into a friendly, human-readable format.
|
description: Prettify your YAML string to a human friendly readable format.
|
||||||
|
|
||||||
eta-calculator:
|
eta-calculator:
|
||||||
title: ETA calculator
|
title: ETA calculator
|
||||||
description: An ETA (Estimated Time of Arrival) calculator to determine the approximate end time of a task, for example, the end time and duration of a file download.
|
description: An ETA (Estimated Time of Arrival) calculator to know the approximate end time of a task, for example the moment of ending of a download.
|
||||||
|
|
||||||
roman-numeral-converter:
|
roman-numeral-converter:
|
||||||
title: Roman numeral converter
|
title: Roman numeral converter
|
||||||
@@ -174,11 +174,11 @@ tools:
|
|||||||
|
|
||||||
bip39-generator:
|
bip39-generator:
|
||||||
title: BIP39 passphrase generator
|
title: BIP39 passphrase generator
|
||||||
description: Generate a BIP39 passphrase from an existing or random mnemonic, or get the mnemonic from the passphrase.
|
description: Generate BIP39 passphrase from existing or random mnemonic, or get the mnemonic from the passphrase.
|
||||||
|
|
||||||
base64-file-converter:
|
base64-file-converter:
|
||||||
title: Base64 file converter
|
title: Base64 file converter
|
||||||
description: Convert a string, file, or image into its base64 representation.
|
description: Convert string, files or images into a it\'s base64 representation.
|
||||||
|
|
||||||
list-converter:
|
list-converter:
|
||||||
title: List converter
|
title: List converter
|
||||||
@@ -186,7 +186,7 @@ tools:
|
|||||||
|
|
||||||
base64-string-converter:
|
base64-string-converter:
|
||||||
title: Base64 string encoder/decoder
|
title: Base64 string encoder/decoder
|
||||||
description: Simply encode and decode strings into their base64 representation.
|
description: Simply encode and decode string into a their base64 representation.
|
||||||
|
|
||||||
toml-to-yaml:
|
toml-to-yaml:
|
||||||
title: TOML to YAML
|
title: TOML to YAML
|
||||||
@@ -198,15 +198,15 @@ tools:
|
|||||||
|
|
||||||
json-to-yaml-converter:
|
json-to-yaml-converter:
|
||||||
title: JSON to YAML converter
|
title: JSON to YAML converter
|
||||||
description: Simply convert JSON to YAML with this online live converter.
|
description: Simply convert JSON to YAML with this live online converter.
|
||||||
|
|
||||||
url-parser:
|
url-parser:
|
||||||
title: URL parser
|
title: Url parser
|
||||||
description: Parse a URL into its separate constituent parts (protocol, origin, params, port, username-password, ...)
|
description: Parse an url string to get all the different parts (protocol, origin, params, port, username-password, ...)
|
||||||
|
|
||||||
iban-validator-and-parser:
|
iban-validator-and-parser:
|
||||||
title: IBAN validator and parser
|
title: IBAN validator and parser
|
||||||
description: Validate and parse IBAN numbers. Check if an IBAN is valid and get the country, BBAN, if it is a QR-IBAN and the IBAN friendly format.
|
description: Validate and parse IBAN numbers. Check if IBAN is valid and get the country, BBAN, if it is a QR-IBAN and the IBAN friendly format.
|
||||||
|
|
||||||
user-agent-parser:
|
user-agent-parser:
|
||||||
title: User-agent parser
|
title: User-agent parser
|
||||||
@@ -218,27 +218,27 @@ tools:
|
|||||||
|
|
||||||
case-converter:
|
case-converter:
|
||||||
title: Case converter
|
title: Case converter
|
||||||
description: Transform the case of a string and choose between different formats
|
description: Change the case of a string and chose between different formats
|
||||||
|
|
||||||
html-entities:
|
html-entities:
|
||||||
title: Escape HTML entities
|
title: Escape html entities
|
||||||
description: Escape or unescape HTML entities (replace characters like <,>, &, " and \' with their HTML version)
|
description: Escape or unescape html entities (replace <,>, &, " and \' to their html version)
|
||||||
|
|
||||||
json-prettify:
|
json-prettify:
|
||||||
title: JSON prettify and format
|
title: JSON prettify and format
|
||||||
description: Prettify your JSON string into a friendly, human-readable format.
|
description: Prettify your JSON string to a human friendly readable format.
|
||||||
|
|
||||||
docker-run-to-docker-compose-converter:
|
docker-run-to-docker-compose-converter:
|
||||||
title: Docker run to Docker compose converter
|
title: Docker run to Docker compose converter
|
||||||
description: Transforms "docker run" commands into docker-compose files!
|
description: Turns docker run commands into docker-compose files!
|
||||||
|
|
||||||
mac-address-lookup:
|
mac-address-lookup:
|
||||||
title: MAC address lookup
|
title: MAC address lookup
|
||||||
description: Find the vendor and manufacturer of a device by its MAC address.
|
description: Find the vendor and manufacturer of a device by its MAC address.
|
||||||
|
|
||||||
mime-types:
|
mime-types:
|
||||||
title: MIME types
|
title: Mime types
|
||||||
description: Convert MIME types to file extensions and vice-versa.
|
description: Convert mime types to extensions and vice-versa.
|
||||||
|
|
||||||
toml-to-json:
|
toml-to-json:
|
||||||
title: TOML to JSON
|
title: TOML to JSON
|
||||||
@@ -250,19 +250,19 @@ tools:
|
|||||||
|
|
||||||
qrcode-generator:
|
qrcode-generator:
|
||||||
title: QR Code generator
|
title: QR Code generator
|
||||||
description: Generate and download a QR code for a URL (or just plain text), and customize the background and foreground colors.
|
description: Generate and download QR-code for an url or just a text and customize the background and foreground colors.
|
||||||
|
|
||||||
wifi-qrcode-generator:
|
wifi-qrcode-generator:
|
||||||
title: WiFi QR Code generator
|
title: WiFi QR Code generator
|
||||||
description: Generate and download QR codes for quick connections to WiFi networks.
|
description: Generate and download QR-codes for quick connections to WiFi networks.
|
||||||
|
|
||||||
xml-formatter:
|
xml-formatter:
|
||||||
title: XML formatter
|
title: XML formatter
|
||||||
description: Prettify your XML string into a friendly, human-readable format.
|
description: Prettify your XML string to a human friendly readable format.
|
||||||
|
|
||||||
temperature-converter:
|
temperature-converter:
|
||||||
title: Temperature converter
|
title: Temperature converter
|
||||||
description: Degrees temperature conversions for Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur, and Rømer.
|
description: Temperature degrees conversions for Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur and Rømer.
|
||||||
|
|
||||||
chmod-calculator:
|
chmod-calculator:
|
||||||
title: Chmod calculator
|
title: Chmod calculator
|
||||||
@@ -270,11 +270,11 @@ tools:
|
|||||||
|
|
||||||
rsa-key-pair-generator:
|
rsa-key-pair-generator:
|
||||||
title: RSA key pair generator
|
title: RSA key pair generator
|
||||||
description: Generate a new random RSA private and public pem certificate key pair.
|
description: Generate new random RSA private and public key pem certificates.
|
||||||
|
|
||||||
html-wysiwyg-editor:
|
html-wysiwyg-editor:
|
||||||
title: HTML WYSIWYG editor
|
title: HTML WYSIWYG editor
|
||||||
description: Online, feature-rich WYSIWYG HTML editor which generates the source code of the content immediately.
|
description: Online HTML editor with feature-rich WYSIWYG editor, get the source code of the content immediately.
|
||||||
|
|
||||||
yaml-to-toml:
|
yaml-to-toml:
|
||||||
title: YAML to TOML
|
title: YAML to TOML
|
||||||
@@ -302,15 +302,15 @@ tools:
|
|||||||
|
|
||||||
ipv4-subnet-calculator:
|
ipv4-subnet-calculator:
|
||||||
title: IPv4 subnet calculator
|
title: IPv4 subnet calculator
|
||||||
description: Parse your IPv4 CIDR blocks and get all the info you need about your subnet.
|
description: Parse your IPv4 CIDR blocks and get all the info you need about your sub network.
|
||||||
|
|
||||||
og-meta-generator:
|
og-meta-generator:
|
||||||
title: Open graph meta generator
|
title: Open graph meta generator
|
||||||
description: Generate open-graph and socials HTML meta tags for your website.
|
description: Generate open-graph and socials html meta tags for your website.
|
||||||
|
|
||||||
ipv6-ula-generator:
|
ipv6-ula-generator:
|
||||||
title: IPv6 ULA generator
|
title: IPv6 ULA generator
|
||||||
description: Generate your own local, non-routable IP addresses for your network according to RFC4193.
|
description: Generate your own local, non-routable IP addresses on your network according to RFC4193.
|
||||||
|
|
||||||
hash-text:
|
hash-text:
|
||||||
title: Hash text
|
title: Hash text
|
||||||
@@ -330,7 +330,7 @@ tools:
|
|||||||
|
|
||||||
json-minify:
|
json-minify:
|
||||||
title: JSON minify
|
title: JSON minify
|
||||||
description: Minify and compress your JSON by removing unnecessary whitespace.
|
description: Minify and compress your JSON by removing unnecessary white spaces.
|
||||||
|
|
||||||
ulid-generator:
|
ulid-generator:
|
||||||
title: ULID generator
|
title: ULID generator
|
||||||
@@ -342,31 +342,31 @@ tools:
|
|||||||
|
|
||||||
base-converter:
|
base-converter:
|
||||||
title: Integer base converter
|
title: Integer base converter
|
||||||
description: Convert a number between different bases (decimal, hexadecimal, binary, octal, base64, ...)
|
description: Convert number between different bases (decimal, hexadecimal, binary, octal, base64, ...)
|
||||||
|
|
||||||
yaml-to-json-converter:
|
yaml-to-json-converter:
|
||||||
title: YAML to JSON converter
|
title: YAML to JSON converter
|
||||||
description: Simply convert YAML to JSON with this online live converter.
|
description: Simply convert YAML to JSON with this live online converter.
|
||||||
|
|
||||||
uuid-generator:
|
uuid-generator:
|
||||||
title: UUIDs generator
|
title: UUIDs generator
|
||||||
description: A Universally Unique Identifier (UUID) is a 128-bit number used to identify information in computer systems. The number of possible UUIDs is 16^32, which is 2^128 or about 3.4x10^38 (which is a lot!).
|
description: A Universally Unique Identifier (UUID) is a 128-bit number used to identify information in computer systems. The number of possible UUIDs is 16^32, which is 2^128 or about 3.4x10^38 (which is a lot!).
|
||||||
|
|
||||||
ipv4-address-converter:
|
ipv4-address-converter:
|
||||||
title: IPv4 address converter
|
title: Ipv4 address converter
|
||||||
description: Convert an IP address into decimal, binary, hexadecimal, or even an IPv6 representation of it.
|
description: Convert an ip address into decimal, binary, hexadecimal or event in ipv6
|
||||||
|
|
||||||
text-statistics:
|
text-statistics:
|
||||||
title: Text statistics
|
title: Text statistics
|
||||||
description: Get information about a text, the number of characters, the number of words, its size in bytes, ...
|
description: Get information about a text, the amount of characters, the amount of words, it\'s size, ...
|
||||||
|
|
||||||
text-to-nato-alphabet:
|
text-to-nato-alphabet:
|
||||||
title: Text to NATO alphabet
|
title: Text to NATO alphabet
|
||||||
description: Transform text into the NATO phonetic alphabet for oral transmission.
|
description: Transform text into NATO phonetic alphabet for oral transmission.
|
||||||
|
|
||||||
basic-auth-generator:
|
basic-auth-generator:
|
||||||
title: Basic auth generator
|
title: Basic auth generator
|
||||||
description: Generate a base64 basic auth header from a username and password.
|
description: Generate a base64 basic auth header from an username and a password.
|
||||||
|
|
||||||
text-to-unicode:
|
text-to-unicode:
|
||||||
title: Text to Unicode
|
title: Text to Unicode
|
||||||
@@ -374,7 +374,7 @@ tools:
|
|||||||
|
|
||||||
ipv4-range-expander:
|
ipv4-range-expander:
|
||||||
title: IPv4 range expander
|
title: IPv4 range expander
|
||||||
description: Given a start and an end IPv4 address, this tool calculates a valid IPv4 subnet along with its CIDR notation.
|
description: Given a start and an end IPv4 address this tool calculates a valid IPv4 network with its CIDR notation.
|
||||||
|
|
||||||
text-diff:
|
text-diff:
|
||||||
title: Text diff
|
title: Text diff
|
||||||
@@ -385,9 +385,9 @@ tools:
|
|||||||
description: Generate and validate time-based OTP (one time password) for multi-factor authentication.
|
description: Generate and validate time-based OTP (one time password) for multi-factor authentication.
|
||||||
|
|
||||||
url-encoder:
|
url-encoder:
|
||||||
title: Encode/decode URL-formatted strings
|
title: Encode/decode url formatted strings
|
||||||
description: Encode text to URL-encoded format (also known as "percent-encoded"), or decode from it.
|
description: Encode to url-encoded format (also known as "percent-encoded") or decode from it.
|
||||||
|
|
||||||
text-to-binary:
|
text-to-binary:
|
||||||
title: Text to ASCII binary
|
title: Text to ASCII binary
|
||||||
description: Convert text to its ASCII binary representation and vice-versa.
|
description: Convert text to its ASCII binary representation and vice versa.
|
||||||
+1
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "it-tools",
|
"name": "it-tools",
|
||||||
"version": "2024.5.13-a0bc346",
|
"version": "2023.12.21-5ed3693",
|
||||||
"description": "Collection of handy online tools for developers, with great UX. ",
|
"description": "Collection of handy online tools for developers, with great UX. ",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"productivity",
|
"productivity",
|
||||||
@@ -65,7 +65,6 @@
|
|||||||
"iarna-toml-esm": "^3.0.5",
|
"iarna-toml-esm": "^3.0.5",
|
||||||
"ibantools": "^4.3.3",
|
"ibantools": "^4.3.3",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"jsonar-mod": "^1.9.0",
|
|
||||||
"jwt-decode": "^3.1.2",
|
"jwt-decode": "^3.1.2",
|
||||||
"libphonenumber-js": "^1.10.28",
|
"libphonenumber-js": "^1.10.28",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
@@ -87,7 +86,6 @@
|
|||||||
"unicode-emoji-json": "^0.4.0",
|
"unicode-emoji-json": "^0.4.0",
|
||||||
"unplugin-auto-import": "^0.16.4",
|
"unplugin-auto-import": "^0.16.4",
|
||||||
"uuid": "^9.0.0",
|
"uuid": "^9.0.0",
|
||||||
"vite-plugin-node-polyfills": "^0.21.0",
|
|
||||||
"vue": "^3.3.4",
|
"vue": "^3.3.4",
|
||||||
"vue-i18n": "^9.9.1",
|
"vue-i18n": "^9.9.1",
|
||||||
"vue-router": "^4.1.6",
|
"vue-router": "^4.1.6",
|
||||||
|
|||||||
Generated
+88
-662
File diff suppressed because it is too large.
Load diff
@@ -3,7 +3,6 @@ const { availableLocales, locale } = useI18n();
|
|||||||
|
|
||||||
const localesLong: Record<string, string> = {
|
const localesLong: Record<string, string> = {
|
||||||
en: 'English',
|
en: 'English',
|
||||||
de: 'Deutsch',
|
|
||||||
es: 'Español',
|
es: 'Español',
|
||||||
fr: 'Français',
|
fr: 'Français',
|
||||||
pt: 'Português',
|
pt: 'Português',
|
||||||
|
|||||||
+2
-4
@@ -1,13 +1,12 @@
|
|||||||
import { tool as base64FileConverter } from './base64-file-converter';
|
import { tool as base64FileConverter } from './base64-file-converter';
|
||||||
import { tool as base64StringConverter } from './base64-string-converter';
|
import { tool as base64StringConverter } from './base64-string-converter';
|
||||||
import { tool as basicAuthGenerator } from './basic-auth-generator';
|
import { tool as basicAuthGenerator } from './basic-auth-generator';
|
||||||
import { tool as jsonToPhpArray } from './json-to-php-array';
|
|
||||||
import { tool as phpArrayToJson } from './php-array-to-json';
|
|
||||||
|
|
||||||
import { tool as asciiTextDrawer } from './ascii-text-drawer';
|
import { tool as asciiTextDrawer } from './ascii-text-drawer';
|
||||||
|
|
||||||
import { tool as textToUnicode } from './text-to-unicode';
|
import { tool as textToUnicode } from './text-to-unicode';
|
||||||
import { tool as safelinkDecoder } from './safelink-decoder';
|
import { tool as safelinkDecoder } from './safelink-decoder';
|
||||||
|
import { tool as jsonToGo } from './json-to-go';
|
||||||
import { tool as pdfSignatureChecker } from './pdf-signature-checker';
|
import { tool as pdfSignatureChecker } from './pdf-signature-checker';
|
||||||
import { tool as numeronymGenerator } from './numeronym-generator';
|
import { tool as numeronymGenerator } from './numeronym-generator';
|
||||||
import { tool as macAddressGenerator } from './mac-address-generator';
|
import { tool as macAddressGenerator } from './mac-address-generator';
|
||||||
@@ -109,6 +108,7 @@ export const toolsByCategory: ToolCategory[] = [
|
|||||||
listConverter,
|
listConverter,
|
||||||
tomlToJson,
|
tomlToJson,
|
||||||
tomlToYaml,
|
tomlToYaml,
|
||||||
|
jsonToGo,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -130,8 +130,6 @@ export const toolsByCategory: ToolCategory[] = [
|
|||||||
httpStatusCodes,
|
httpStatusCodes,
|
||||||
jsonDiff,
|
jsonDiff,
|
||||||
safelinkDecoder,
|
safelinkDecoder,
|
||||||
jsonToPhpArray,
|
|
||||||
phpArrayToJson,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import { Braces } from '@vicons/tabler';
|
||||||
|
import { defineTool } from '../tool';
|
||||||
|
|
||||||
|
export const tool = defineTool({
|
||||||
|
name: 'JSON to Go',
|
||||||
|
path: '/json-to-go',
|
||||||
|
description: 'Convert JSON to Go struct',
|
||||||
|
keywords: ['json', 'parse', 'go', 'convert', 'transform'],
|
||||||
|
component: () => import('./json-to-go.vue'),
|
||||||
|
icon: Braces,
|
||||||
|
createdAt: new Date('2024-04-02'),
|
||||||
|
});
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { describe, expect, it } from 'vitest';
|
||||||
|
import { jsonToGo } from './json-to-go.service';
|
||||||
|
import testCases from './json-to-go.test.data.json';
|
||||||
|
|
||||||
|
describe('json-to-go', () => {
|
||||||
|
describe('jsonToGo', () => {
|
||||||
|
for (const includeExampleData of [true, false]) {
|
||||||
|
it(`must return correct results (includeExampleData = ${includeExampleData})`, () => {
|
||||||
|
for (const testCase of testCases) {
|
||||||
|
const got = jsonToGo(testCase.input, '', false, includeExampleData);
|
||||||
|
const expected = includeExampleData
|
||||||
|
? testCase.expectedWithExample
|
||||||
|
: testCase.expected;
|
||||||
|
|
||||||
|
expect(got.go).to.equal(expected);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,430 @@
|
|||||||
|
// JSON-to-Go
|
||||||
|
// by Matt Holt
|
||||||
|
// https://github.com/mholt/json-to-go
|
||||||
|
// A simple utility to translate JSON into a Go type definition.
|
||||||
|
export function jsonToGo(json: string, typename: string | '', flatten = true, example = false, allOmitempty = false) {
|
||||||
|
let data;
|
||||||
|
let scope;
|
||||||
|
let go = '';
|
||||||
|
let tabs = 0;
|
||||||
|
const seen: { [key: string]: any } = {};
|
||||||
|
const stack: any[] = [];
|
||||||
|
let accumulator = '';
|
||||||
|
const innerTabs = 0;
|
||||||
|
let parent = '';
|
||||||
|
|
||||||
|
try {
|
||||||
|
data = JSON.parse(json.replace(/(:\s*\[?\s*-?\d*)\.0/g, '$1.1')); // NOSONAR : hack that forces floats to stay as floats
|
||||||
|
scope = data;
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
return {
|
||||||
|
go: '',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
typename = format(typename || 'AutoGenerated');
|
||||||
|
append(`type ${typename} `);
|
||||||
|
|
||||||
|
parseScope(scope);
|
||||||
|
|
||||||
|
return {
|
||||||
|
go: flatten
|
||||||
|
? go += accumulator
|
||||||
|
: go,
|
||||||
|
};
|
||||||
|
|
||||||
|
function parseScope(scope: string | any[] | null, depth = 0) {
|
||||||
|
if (typeof scope === 'object' && scope !== null) {
|
||||||
|
if (Array.isArray(scope)) {
|
||||||
|
let sliceType;
|
||||||
|
const scopeLength = scope.length;
|
||||||
|
|
||||||
|
for (let i = 0; i < scopeLength; i++) {
|
||||||
|
const thisType = goType(scope[i]);
|
||||||
|
if (!sliceType) {
|
||||||
|
sliceType = thisType;
|
||||||
|
}
|
||||||
|
else if (sliceType !== thisType) {
|
||||||
|
sliceType = mostSpecificPossibleGoType(thisType, sliceType);
|
||||||
|
if (sliceType === 'any') {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const slice = flatten && ['struct', 'slice'].includes(sliceType ?? '[]')
|
||||||
|
? `[]${parent}`
|
||||||
|
: '[]';
|
||||||
|
|
||||||
|
if (flatten && depth >= 2) {
|
||||||
|
appender(slice);
|
||||||
|
}
|
||||||
|
else { append(slice); };
|
||||||
|
if (sliceType === 'struct') {
|
||||||
|
const allFields = {} as Record<string, { value: string; count: number }>;
|
||||||
|
|
||||||
|
// for each field counts how many times appears
|
||||||
|
for (let i = 0; i < scopeLength; i++) {
|
||||||
|
const keys = Object.keys(scope[i]);
|
||||||
|
for (const k in keys) {
|
||||||
|
let keyname = keys[k];
|
||||||
|
if (!(keyname in allFields)) {
|
||||||
|
allFields[keyname] = {
|
||||||
|
value: scope[i][keyname],
|
||||||
|
count: 0,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
const existingValue = allFields[keyname].value;
|
||||||
|
const currentValue = scope[i][keyname];
|
||||||
|
|
||||||
|
if (compareObjects(existingValue, currentValue)) {
|
||||||
|
const comparisonResult = compareObjectKeys(
|
||||||
|
Object.keys(currentValue),
|
||||||
|
Object.keys(existingValue),
|
||||||
|
);
|
||||||
|
if (!comparisonResult) {
|
||||||
|
keyname = `${keyname}_${uuidv4()}`;
|
||||||
|
allFields[keyname] = {
|
||||||
|
value: currentValue,
|
||||||
|
count: 0,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
allFields[keyname].count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// create a common struct with all fields found in the current array
|
||||||
|
// omitempty dict indicates if a field is optional
|
||||||
|
const keys = Object.keys(allFields);
|
||||||
|
const struct = {} as Record<string, string>;
|
||||||
|
const omitempty = {} as Record<string, boolean>;
|
||||||
|
for (const k in keys) {
|
||||||
|
const keyname = keys[k];
|
||||||
|
const elem = allFields[keyname];
|
||||||
|
|
||||||
|
struct[keyname] = elem.value;
|
||||||
|
omitempty[keyname] = elem.count !== scopeLength;
|
||||||
|
}
|
||||||
|
parseStruct(depth + 1, innerTabs, struct, omitempty); // finally parse the struct !!
|
||||||
|
}
|
||||||
|
else if (sliceType === 'slice') {
|
||||||
|
parseScope(scope[0], depth);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (flatten && depth >= 2) {
|
||||||
|
appender(sliceType || 'any');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
append(sliceType || 'any');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (flatten) {
|
||||||
|
if (depth >= 2) {
|
||||||
|
appender(parent);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
append(parent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
parseStruct(depth + 1, innerTabs, scope, undefined);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (flatten && depth >= 2) {
|
||||||
|
appender(goType(scope));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
append(goType(scope));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function parseStruct(depth: number | undefined, innerTabs: number, scope: { [x: string]: any }, omitempty: { [x: string]: boolean } | undefined) {
|
||||||
|
if (flatten) {
|
||||||
|
if (depth !== undefined) {
|
||||||
|
stack.push(
|
||||||
|
depth >= 2
|
||||||
|
? '\n'
|
||||||
|
: '',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const seenTypeNames = [];
|
||||||
|
|
||||||
|
if (flatten && depth !== undefined && depth >= 2) {
|
||||||
|
const parentType = `type ${parent}`;
|
||||||
|
const scopeKeys = formatScopeKeys(Object.keys(scope));
|
||||||
|
|
||||||
|
// this can only handle two duplicate items
|
||||||
|
// future improvement will handle the case where there could
|
||||||
|
// three or more duplicate keys with different values
|
||||||
|
if (parent in seen && compareObjectKeys(scopeKeys, seen[parent])) {
|
||||||
|
stack.pop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
seen[parent] = scopeKeys;
|
||||||
|
|
||||||
|
appender(`${parentType} struct {\n`);
|
||||||
|
++innerTabs;
|
||||||
|
const keys = Object.keys(scope);
|
||||||
|
for (const i in keys) {
|
||||||
|
const keyname = getOriginalName(keys[i]);
|
||||||
|
indenter(innerTabs);
|
||||||
|
const typename = uniqueTypeName(format(keyname), seenTypeNames);
|
||||||
|
seenTypeNames.push(typename);
|
||||||
|
|
||||||
|
appender(`${typename} `);
|
||||||
|
parent = typename;
|
||||||
|
parseScope(scope[keys[i]], depth);
|
||||||
|
appender(` \`json:"${keyname}`);
|
||||||
|
if (allOmitempty || (omitempty && omitempty[keys[i]] === true)) {
|
||||||
|
appender(',omitempty');
|
||||||
|
}
|
||||||
|
appender('"`\n');
|
||||||
|
}
|
||||||
|
indenter(--innerTabs);
|
||||||
|
appender('}');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
append('struct {\n');
|
||||||
|
++tabs;
|
||||||
|
const keys = Object.keys(scope);
|
||||||
|
for (const i in keys) {
|
||||||
|
const keyname = getOriginalName(keys[i]);
|
||||||
|
indent(tabs);
|
||||||
|
const typename = uniqueTypeName(format(keyname), seenTypeNames);
|
||||||
|
seenTypeNames.push(typename);
|
||||||
|
append(`${typename} `);
|
||||||
|
parent = typename;
|
||||||
|
parseScope(scope[keys[i]], depth);
|
||||||
|
append(` \`json:"${keyname}`);
|
||||||
|
if (allOmitempty || (omitempty && omitempty[keys[i]] === true)) {
|
||||||
|
append(',omitempty');
|
||||||
|
}
|
||||||
|
if (example && scope[keys[i]] !== '' && typeof scope[keys[i]] !== 'object') {
|
||||||
|
append(`" example:"${scope[keys[i]]}`);
|
||||||
|
}
|
||||||
|
append('"`\n');
|
||||||
|
}
|
||||||
|
indent(--tabs);
|
||||||
|
append('}');
|
||||||
|
}
|
||||||
|
if (flatten) {
|
||||||
|
accumulator += stack.pop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function indent(tabs: number) {
|
||||||
|
for (let i = 0; i < tabs; i++) {
|
||||||
|
go += '\t';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function append(str: string) {
|
||||||
|
go += str;
|
||||||
|
}
|
||||||
|
|
||||||
|
function indenter(tabs: number) {
|
||||||
|
for (let i = 0; i < tabs; i++) {
|
||||||
|
stack[stack.length - 1] += '\t';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function appender(str: string) {
|
||||||
|
stack[stack.length - 1] += str;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generate a unique name to avoid duplicate struct field names.
|
||||||
|
// This function appends a number at the end of the field name.
|
||||||
|
function uniqueTypeName(name: string, seen: string | any[]) {
|
||||||
|
if (!seen.includes(name)) {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
let i = 0;
|
||||||
|
while (true) {
|
||||||
|
const newName = name + i.toString();
|
||||||
|
if (!seen.includes(newName)) {
|
||||||
|
return newName;
|
||||||
|
}
|
||||||
|
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sanitizes and formats a string to make an appropriate identifier in Go
|
||||||
|
function format(str: any) {
|
||||||
|
str = formatNumber(str);
|
||||||
|
|
||||||
|
const sanitized = toProperCase(str).replace(/[^a-z0-9]/ig, '');
|
||||||
|
if (!sanitized) {
|
||||||
|
return 'NAMING_FAILED';
|
||||||
|
}
|
||||||
|
|
||||||
|
// After sanitizing the remaining characters can start with a number.
|
||||||
|
// Run the sanitized string again trough formatNumber to make sure the identifier is Num[0-9] or Zero_... instead of 1.
|
||||||
|
return formatNumber(sanitized);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adds a prefix to a number to make an appropriate identifier in Go
|
||||||
|
function formatNumber(str: string) {
|
||||||
|
if (!str) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
else if (str.match(/^\d+$/)) {
|
||||||
|
str = `Num${str}`;
|
||||||
|
}
|
||||||
|
else if (str.charAt(0).match(/\d/)) {
|
||||||
|
const numbers: { [key: string]: string } = {
|
||||||
|
0: 'Zero_',
|
||||||
|
1: 'One_',
|
||||||
|
2: 'Two_',
|
||||||
|
3: 'Three_',
|
||||||
|
4: 'Four_',
|
||||||
|
5: 'Five_',
|
||||||
|
6: 'Six_',
|
||||||
|
7: 'Seven_',
|
||||||
|
8: 'Eight_',
|
||||||
|
9: 'Nine_',
|
||||||
|
};
|
||||||
|
str = numbers[str.charAt(0)] + str.substr(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Determines the most appropriate Go type
|
||||||
|
function goType(val: string | number | null) {
|
||||||
|
if (val === null) {
|
||||||
|
return 'any';
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (typeof val) {
|
||||||
|
case 'string':
|
||||||
|
if (/\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(\+\d\d:\d\d|Z)/.test(val)) {
|
||||||
|
return 'time.Time';
|
||||||
|
}
|
||||||
|
else { return 'string'; }
|
||||||
|
case 'number':
|
||||||
|
if (val % 1 === 0) {
|
||||||
|
if (val > -2147483648 && val < 2147483647) {
|
||||||
|
return 'int';
|
||||||
|
}
|
||||||
|
else { return 'int64'; }
|
||||||
|
}
|
||||||
|
else { return 'float64'; }
|
||||||
|
case 'boolean':
|
||||||
|
return 'bool';
|
||||||
|
case 'object':
|
||||||
|
if (Array.isArray(val)) {
|
||||||
|
return 'slice';
|
||||||
|
}
|
||||||
|
return 'struct';
|
||||||
|
default:
|
||||||
|
return 'any';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Given two types, returns the more specific of the two
|
||||||
|
function mostSpecificPossibleGoType(typ1: string, typ2: string) {
|
||||||
|
if (typ1.substr(0, 5) === 'float' && typ2.substr(0, 3) === 'int') {
|
||||||
|
return typ1;
|
||||||
|
}
|
||||||
|
else if (typ1.substr(0, 3) === 'int' && typ2.substr(0, 5) === 'float') {
|
||||||
|
return typ2;
|
||||||
|
}
|
||||||
|
else { return 'any'; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Proper cases a string according to Go conventions
|
||||||
|
function toProperCase(str: string) {
|
||||||
|
// ensure that the SCREAMING_SNAKE_CASE is converted to snake_case
|
||||||
|
if (str.match(/^[_A-Z0-9]+$/)) {
|
||||||
|
str = str.toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://github.com/golang/lint/blob/5614ed5bae6fb75893070bdc0996a68765fdd275/lint.go#L771-L810
|
||||||
|
const commonInitialisms = [
|
||||||
|
'ACL', 'API', 'ASCII', 'CPU', 'CSS', 'DNS', 'EOF', 'GUID', 'HTML', 'HTTP',
|
||||||
|
'HTTPS', 'ID', 'IP', 'JSON', 'LHS', 'QPS', 'RAM', 'RHS', 'RPC', 'SLA',
|
||||||
|
'SMTP', 'SQL', 'SSH', 'TCP', 'TLS', 'TTL', 'UDP', 'UI', 'UID', 'UUID',
|
||||||
|
'URI', 'URL', 'UTF8', 'VM', 'XML', 'XMPP', 'XSRF', 'XSS',
|
||||||
|
];
|
||||||
|
|
||||||
|
return str.replace(/(^|[^a-zA-Z])([a-z]+)/g, (unused: any, sep: any, frag: string | string[]) => {
|
||||||
|
if (!Array.isArray(frag) && commonInitialisms.includes(frag.toUpperCase())) {
|
||||||
|
return sep + frag.toUpperCase();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return sep + frag[0].toUpperCase() + (frag as string).substr(1).toLowerCase();
|
||||||
|
}
|
||||||
|
}).replace(/([A-Z])([a-z]+)/g, (unused: any, sep: any, frag: string) => {
|
||||||
|
if (commonInitialisms.includes(sep + frag.toUpperCase())) {
|
||||||
|
return (sep + frag).toUpperCase();
|
||||||
|
}
|
||||||
|
else { return sep + frag; }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function uuidv4() {
|
||||||
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
|
||||||
|
const r = Math.random() * 16 | 0; // NOSONAR
|
||||||
|
const v = c === 'x' ? r : (r & 0x3 | 0x8);
|
||||||
|
return v.toString(16);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getOriginalName(unique: string) {
|
||||||
|
const reLiteralUUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
||||||
|
const uuidLength = 36;
|
||||||
|
|
||||||
|
if (unique.length >= uuidLength) {
|
||||||
|
const tail = unique.substr(-uuidLength);
|
||||||
|
if (reLiteralUUID.test(tail)) {
|
||||||
|
return unique.slice(0, -1 * (uuidLength + 1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return unique;
|
||||||
|
}
|
||||||
|
|
||||||
|
function compareObjects(objectA: any, objectB: any) {
|
||||||
|
const object = '[object Object]';
|
||||||
|
return Object.prototype.toString.call(objectA) === object && Object.prototype.toString.call(objectB) === object;
|
||||||
|
}
|
||||||
|
|
||||||
|
function compareObjectKeys(itemAKeys: string | any[], itemBKeys: string | any[]) {
|
||||||
|
const lengthA = itemAKeys.length;
|
||||||
|
const lengthB = itemBKeys.length;
|
||||||
|
|
||||||
|
// nothing to compare, probably identical
|
||||||
|
if (lengthA === 0 && lengthB === 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// duh
|
||||||
|
if (lengthA !== lengthB) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const item of itemAKeys) {
|
||||||
|
if (!itemBKeys.includes(item)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatScopeKeys(keys: string[]) {
|
||||||
|
for (const i in keys) {
|
||||||
|
keys[i] = format(keys[i]);
|
||||||
|
}
|
||||||
|
return keys;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"input": "{\"SourceCode\": \"exampleDataHere\"}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tSourceCode string `json:\"SourceCode\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tSourceCode string `json:\"SourceCode\" example:\"exampleDataHere\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"source_code\": \"exampleDataHere\"}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tSourceCode string `json:\"source_code\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tSourceCode string `json:\"source_code\" example:\"exampleDataHere\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"sourceCode\": \"exampleDataHere\"}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tSourceCode string `json:\"sourceCode\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tSourceCode string `json:\"sourceCode\" example:\"exampleDataHere\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"SOURCE_CODE\": \"\"}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tSourceCode string `json:\"SOURCE_CODE\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tSourceCode string `json:\"SOURCE_CODE\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"PublicIP\": \"\"}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tPublicIP string `json:\"PublicIP\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tPublicIP string `json:\"PublicIP\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"public_ip\": \"\"}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tPublicIP string `json:\"public_ip\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tPublicIP string `json:\"public_ip\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"publicIP\": \"\"}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tPublicIP string `json:\"publicIP\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tPublicIP string `json:\"publicIP\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"PUBLIC_IP\": \"\"}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tPublicIP string `json:\"PUBLIC_IP\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tPublicIP string `json:\"PUBLIC_IP\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"+1\": \"Fails\", \"-1\": \"This should not cause duplicate field name\"}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tNum1 string `json:\"+1\"`\n\tNum10 string `json:\"-1\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tNum1 string `json:\"+1\" example:\"Fails\"`\n\tNum10 string `json:\"-1\" example:\"This should not cause duplicate field name\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"age\": 46}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tAge int `json:\"age\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tAge int `json:\"age\" example:\"46\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"negativeFloat\": -1.00}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tNegativeFloat float64 `json:\"negativeFloat\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tNegativeFloat float64 `json:\"negativeFloat\" example:\"-1.1\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"zeroFloat\": 0.00}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tZeroFloat float64 `json:\"zeroFloat\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tZeroFloat float64 `json:\"zeroFloat\" example:\"0.1\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"positiveFloat\": 1.00}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tPositiveFloat float64 `json:\"positiveFloat\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tPositiveFloat float64 `json:\"positiveFloat\" example:\"1.1\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"negativeFloats\": [-1.00, -2.00, -3.00]}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tNegativeFloats []float64 `json:\"negativeFloats\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tNegativeFloats []float64 `json:\"negativeFloats\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"zeroFloats\": [0.00, 0.00, 0.00]}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tZeroFloats []float64 `json:\"zeroFloats\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tZeroFloats []float64 `json:\"zeroFloats\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"positiveFloats\": [1.00, 2.00, 3.00]}",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tPositiveFloats []float64 `json:\"positiveFloats\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tPositiveFloats []float64 `json:\"positiveFloats\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"topLevel\": { \"secondLevel\": \"exampleDataHere\"} }",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tTopLevel struct {\n\t\tSecondLevel string `json:\"secondLevel\"`\n\t} `json:\"topLevel\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tTopLevel struct {\n\t\tSecondLevel string `json:\"secondLevel\" example:\"exampleDataHere\"`\n\t} `json:\"topLevel\"`\n}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "{\"people\": [{ \"name\": \"Frank\"}, {\"name\": \"Dennis\"}, {\"name\": \"Dee\"}, {\"name\": \"Charley\"}, {\"name\":\"Mac\"}] }",
|
||||||
|
"expected": "type AutoGenerated struct {\n\tPeople []struct {\n\t\tName string `json:\"name\"`\n\t} `json:\"people\"`\n}",
|
||||||
|
"expectedWithExample": "type AutoGenerated struct {\n\tPeople []struct {\n\t\tName string `json:\"name\" example:\"Frank\"`\n\t} `json:\"people\"`\n}"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import JSON5 from 'json5';
|
||||||
|
import { jsonToGo } from './json-to-go.service';
|
||||||
|
import type { UseValidationRule } from '@/composable/validation';
|
||||||
|
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||||
|
|
||||||
|
const definitions = ref(true);
|
||||||
|
const omitempty = ref(false);
|
||||||
|
const example = ref(false);
|
||||||
|
const jsonInput = ref('');
|
||||||
|
const goOutput = computed(() => jsonToGo(jsonInput.value, '', !definitions.value, example.value, omitempty.value).go);
|
||||||
|
const rules: UseValidationRule<string>[] = [
|
||||||
|
{
|
||||||
|
validator: (v: string) => v === '' || JSON5.parse(v),
|
||||||
|
message: 'Provided JSON is not valid.',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<c-card title="JSON to Go">
|
||||||
|
<n-form-item label="Inline type definitions" label-placement="left">
|
||||||
|
<n-switch v-model:value="definitions" />
|
||||||
|
</n-form-item>
|
||||||
|
<n-form-item label="Omit Empty" label-placement="left">
|
||||||
|
<n-switch v-model:value="omitempty" />
|
||||||
|
</n-form-item>
|
||||||
|
<n-form-item label="Example" label-placement="left">
|
||||||
|
<n-switch v-model:value="example" />
|
||||||
|
</n-form-item>
|
||||||
|
<c-input-text
|
||||||
|
v-model:value="jsonInput"
|
||||||
|
multiline
|
||||||
|
placeholder="Put your json string here..."
|
||||||
|
rows="20"
|
||||||
|
label="JSON to GO"
|
||||||
|
:validation-rules="rules"
|
||||||
|
raw-text
|
||||||
|
mb-5
|
||||||
|
/>
|
||||||
|
</c-card>
|
||||||
|
<c-card title="Your Go String">
|
||||||
|
<TextareaCopyable
|
||||||
|
:value="goOutput"
|
||||||
|
language="go"
|
||||||
|
/>
|
||||||
|
</c-card>
|
||||||
|
</template>
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
import { BrandPhp } from '@vicons/tabler';
|
|
||||||
import { defineTool } from '../tool';
|
|
||||||
|
|
||||||
export const tool = defineTool({
|
|
||||||
name: 'Json to PHP-Array',
|
|
||||||
path: '/json-to-php-array',
|
|
||||||
description: 'Convert JSON to PHP Array',
|
|
||||||
keywords: ['json', 'php', 'array'],
|
|
||||||
component: () => import('./json-to-php-array.vue'),
|
|
||||||
icon: BrandPhp,
|
|
||||||
createdAt: new Date('2024-05-11'),
|
|
||||||
});
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import jsonar from 'jsonar-mod';
|
|
||||||
import JSON5 from 'json5';
|
|
||||||
import type { UseValidationRule } from '@/composable/validation';
|
|
||||||
import { withDefaultOnError } from '@/utils/defaults';
|
|
||||||
|
|
||||||
const defaultValue = `{
|
|
||||||
a:"b",
|
|
||||||
arr: [1, "2"],
|
|
||||||
nested: {
|
|
||||||
c:12,
|
|
||||||
d: "az"
|
|
||||||
}
|
|
||||||
}`;
|
|
||||||
function transformer(value: string) {
|
|
||||||
return withDefaultOnError(() => jsonar.arrify(JSON5.parse(value), { prettify: true }), '');
|
|
||||||
}
|
|
||||||
|
|
||||||
const rules: UseValidationRule<string>[] = [
|
|
||||||
{
|
|
||||||
validator: (v: string) => JSON5.parse(v),
|
|
||||||
message: 'Provided JSON is not valid.',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<format-transformer
|
|
||||||
input-label="Your JSON"
|
|
||||||
:input-default="defaultValue"
|
|
||||||
input-placeholder="Paste your JSON here..."
|
|
||||||
output-label="PHP Array version"
|
|
||||||
:input-validation-rules="rules"
|
|
||||||
:transformer="transformer"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
-4
@@ -1,4 +0,0 @@
|
|||||||
declare module 'jsonar-mod' {
|
|
||||||
export function arrify(json: any, options?: { prettify?: boolean}): string
|
|
||||||
export function parse(php: string): object
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
import { BrandPhp } from '@vicons/tabler';
|
|
||||||
import { defineTool } from '../tool';
|
|
||||||
|
|
||||||
export const tool = defineTool({
|
|
||||||
name: 'PHP-Array to JSON',
|
|
||||||
path: '/php-array-to-json',
|
|
||||||
description: 'Convert PHP Array to JSON',
|
|
||||||
keywords: ['php', 'array', 'json'],
|
|
||||||
component: () => import('./php-array-to-json.vue'),
|
|
||||||
icon: BrandPhp,
|
|
||||||
createdAt: new Date('2024-05-11'),
|
|
||||||
});
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import jsonar from 'jsonar-mod';
|
|
||||||
import type { UseValidationRule } from '@/composable/validation';
|
|
||||||
import { withDefaultOnError } from '@/utils/defaults';
|
|
||||||
|
|
||||||
const defaultValue = `array(
|
|
||||||
"a" => "b",
|
|
||||||
"arr" => array(
|
|
||||||
1,
|
|
||||||
"2"
|
|
||||||
),
|
|
||||||
"nested" => array(
|
|
||||||
"c" => 12,
|
|
||||||
"d" => "az"
|
|
||||||
)
|
|
||||||
);`;
|
|
||||||
function transformer(value: string) {
|
|
||||||
return withDefaultOnError(() => JSON.stringify(jsonar.parse(value), null, 2), '');
|
|
||||||
}
|
|
||||||
|
|
||||||
const rules: UseValidationRule<string>[] = [
|
|
||||||
{
|
|
||||||
validator: (v: string) => v === '' || jsonar.parse(v),
|
|
||||||
message: 'Provided PHP Array is not valid.',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<format-transformer
|
|
||||||
input-label="Your PHP Array"
|
|
||||||
:input-default="defaultValue"
|
|
||||||
input-placeholder="Paste your PHP Array here..."
|
|
||||||
output-label="JSON version"
|
|
||||||
output-language="json"
|
|
||||||
:input-validation-rules="rules"
|
|
||||||
:transformer="transformer"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
@@ -20,7 +20,7 @@ export function createToken({
|
|||||||
withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '',
|
withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '',
|
||||||
withNumbers ? '0123456789' : '',
|
withNumbers ? '0123456789' : '',
|
||||||
withSymbols ? '.,;:!?./-"\'#{([-|\\@)]=}*+' : '',
|
withSymbols ? '.,;:!?./-"\'#{([-|\\@)]=}*+' : '',
|
||||||
].join('');
|
].join(''); ;
|
||||||
|
|
||||||
return shuffleString(allAlphabet.repeat(length)).substring(0, length);
|
return shuffleString(allAlphabet.repeat(length)).substring(0, length);
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import { resolve } from 'node:path';
|
import { resolve } from 'node:path';
|
||||||
import { URL, fileURLToPath } from 'node:url';
|
import { URL, fileURLToPath } from 'node:url';
|
||||||
import { nodePolyfills } from 'vite-plugin-node-polyfills';
|
|
||||||
|
|
||||||
import VueI18n from '@intlify/unplugin-vue-i18n/vite';
|
import VueI18n from '@intlify/unplugin-vue-i18n/vite';
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
@@ -98,7 +97,6 @@ export default defineConfig({
|
|||||||
resolvers: [NaiveUiResolver(), IconsResolver({ prefix: 'icon' })],
|
resolvers: [NaiveUiResolver(), IconsResolver({ prefix: 'icon' })],
|
||||||
}),
|
}),
|
||||||
Unocss(),
|
Unocss(),
|
||||||
nodePolyfills(),
|
|
||||||
],
|
],
|
||||||
base: baseUrl,
|
base: baseUrl,
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
Reference in new issue
Block a user