Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,35 @@

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 2025.05.23-2aa8a3c

### Bug fixes
- **json-editor**: lint fix (2aa8a3c)
- **json-editor**: removed path (bd644ce)
- **ui**: overflow fix (69830ac)

### Other
- Merge pull request #268 from sunnydanu/release/2.0.0 (94f14ef)
- Merge branch 'main' into release/2.0.0 (9f75c39)
- Merge pull request #265 from sunnydanu/pr-1319-feat(new-tool)-code-highlighter (3840ee3)

### This pr incorporates contributions from upstream [pr-#373](https
- //github.com/CorentinTh/it-tools/pull/373) of [CorentinTh/it-tools](https://github.com/CorentinTh/it-tools) . All original commits and authorship are retained. Some adjustments may have been made for compatibility or bug fixes. (be4fba0)

## Version 2025.05.23-bd644ce

### Bug fixes
- **json-editor**: removed path (bd644ce)
- **ui**: overflow fix (69830ac)

### Other
- Merge pull request #268 from sunnydanu/release/2.0.0 (94f14ef)
- Merge branch 'main' into release/2.0.0 (9f75c39)
- Merge pull request #265 from sunnydanu/pr-1319-feat(new-tool)-code-highlighter (3840ee3)

### This pr incorporates contributions from upstream [pr-#373](https
- //github.com/CorentinTh/it-tools/pull/373) of [CorentinTh/it-tools](https://github.com/CorentinTh/it-tools) . All original commits and authorship are retained. Some adjustments may have been made for compatibility or bug fixes. (be4fba0)

## Version 2024.11.06-4c6f110

### Features
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "godev-run",
"version": "2024.11.6-4c6f110",
"version": "2025.5.23-2aa8a3c",
"packageManager": "[email protected]",
"description": "GoDev.Run is a free, open-source collection of online tools for developers, exploring the possibilities of JavaScript—all powered entirely in your browser.",
"author": "Sunny Danu <[email protected]> (https://github.com/sunnydanu)",
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextareaCopyable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
</script>

<template>
<div style="overflow-x: hidden; width: 100%">
<div style="overflow-x: hidden; width: 100%; max-height: 300px;">
<c-card relative>
<n-scrollbar
x-scrollable
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/base.layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const tools = computed<ToolCategory[]>(() => [
<div>
GoDev.Run

<c-link target="_blank" rel="noopener" :href="`https://github.com/sunnydanu/godev.run/blob/master/CHANGELOG.md#version-${version}`">
<c-link target="_blank" rel="noopener" :href="`https://github.com/sunnydanu/godev.run/blob/main/CHANGELOG.md#version-${version}`">
v{{ version }}
</c-link>

Expand All @@ -73,7 +73,7 @@ const tools = computed<ToolCategory[]>(() => [
target="_blank"
rel="noopener"
type="primary"
:href="`https://github.com/sunnydanu/godev.run/blob/master/CHANGELOG.md#version-${version}`"
:href="`https://github.com/sunnydanu/godev.run/blob/main/CHANGELOG.md#version-${version}`"
>
{{ commitSha }}
</c-link>
Expand Down
28 changes: 0 additions & 28 deletions src/tools/json-editor/json-editor.vue
Original file line number Diff line number Diff line change
@@ -1,34 +1,11 @@
<script setup lang="ts">
import JsonEditorVue from 'json-editor-vue';
import { type AfterSelection, type InsideSelection, type JSONEditorSelection, type KeySelection, type MultiSelection, type ValueSelection, isAfterSelection, isInsideSelection, isKeySelection, isMultiSelection, isValueSelection, stringifyJSONPath } from 'vanilla-jsoneditor';
import 'vanilla-jsoneditor/themes/jse-theme-dark.css';
import { useStyleStore } from '@/stores/style.store';

const styleStore = useStyleStore();

const jsonText = ref('{ "a": { "array": [1, 2, 3] } }');
const jsonPath = ref('');

function updateJsonPath(selection: JSONEditorSelection) {
if (isAfterSelection (selection)) {
jsonPath.value = `$.${stringifyJSONPath((selection as AfterSelection).path)}`;
}
else if (isInsideSelection (selection)) {
jsonPath.value = `$.${stringifyJSONPath((selection as InsideSelection).path)}`;
}
else if (isKeySelection (selection)) {
jsonPath.value = `$.${stringifyJSONPath((selection as KeySelection).path)}`;
}
else if (isValueSelection (selection)) {
jsonPath.value = `$.${stringifyJSONPath((selection as ValueSelection).path)}`;
}
else if (isMultiSelection (selection)) {
jsonPath.value = `$.${stringifyJSONPath((selection as MultiSelection).focusPath)}`;
}
else {
jsonPath.value = 'No available in this mode';
}
}
</script>

<template>
Expand All @@ -37,14 +14,9 @@ function updateJsonPath(selection: JSONEditorSelection) {
v-model="jsonText"
mode="text"
:class="styleStore.isDarkTheme ? 'jse-theme-dark' : ''"
:on-select="updateJsonPath"
mb-2
/>

<n-form-item label="Current Selected Node JSONPath:">
<textarea-copyable :value="jsonPath" />
</n-form-item>

<n-divider />

<n-form-item label="Your edited JSON:">
Expand Down
Loading