From c9c4d29d36284e7a79f849822d4fb6295d89b682 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Mon, 24 Feb 2025 08:21:20 -0500 Subject: [PATCH] Add copy to clipboard functionality and improve UI layout --- package.json | 2 +- src/routes/+page.svelte | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e487f51..043ed2f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "git", "url": "https://github.com/kunkunsh/kunkun-ext-json" }, - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "kunkun": { "name": "JSON Formatter/Inspector", diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index de6704d..a6a4d81 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -5,7 +5,7 @@ import { Inspect } from 'svelte-inspect-value'; let rawJson = $state(''); - let jsonData = $state({}); + let jsonData = $state(undefined); function loadJsonFromClipboard() { clipboard.readText().then((text) => { @@ -40,7 +40,21 @@
-
- +
+ +