Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix: default json spacing

AykutSarac2e5007ee4290
diff --git a/src/store/useFile.ts b/src/store/useFile.ts
index ef6c817b..19311819 100644
--- a/src/store/useFile.ts
+++ b/src/store/useFile.ts
@@ -9,39 +9,41 @@ import { contentToJson, jsonToContent } from "../lib/utils/jsonAdapter";
import useConfig from "./useConfig";
import useJson from "./useJson";
-const defaultJson = JSON.stringify({
- fruits: [
- {
- name: "Apple",
- color: "Red",
- nutrients: {
- calories: 52,
- fiber: "2.4g",
- vitaminC: "4.6mg",
+const defaultJson = JSON.stringify(
+ {
+ fruits: [
+ {
+ name: "Apple",
+ color: "Red",
+ nutrients: {
+ calories: 52,
+ fiber: "2.4g",
+ vitaminC: "4.6mg",
+ },
},
- },
- {
- name: "Banana",
- color: "Yellow",
- nutrients: {
- calories: 89,
- fiber: "2.6g",
- potassium: "358mg",
+ {
+ name: "Banana",
+ color: "Yellow",
+ nutrients: {
+ calories: 89,
+ fiber: "2.6g",
+ potassium: "358mg",
+ },
},
- },
- {
- name: "Orange",
- color: "Orange",
- nutrients: {
- calories: 47,
- fiber: "2.4g",
- vitaminC: "53.2mg",
+ {
+ name: "Orange",
+ color: "Orange",
+ nutrients: {
+ calories: 47,
+ fiber: "2.4g",
+ vitaminC: "53.2mg",
+ },
},
- },
- null,
- 2,
- ],
-});
+ ],
+ },
+ null,
+ 2
+);
type SetContents = {
contents?: string;