├── static ├── .nojekyll └── favicon.png ├── .npmrc ├── .github ├── FUNDING.yml └── workflows │ ├── release.yml │ └── static.yml ├── src ├── routes │ ├── +layout.ts │ ├── (try) │ │ └── try │ │ │ ├── +layout.svelte │ │ │ └── +page.svelte │ └── (docs) │ │ ├── +layout.svelte │ │ ├── +page.svelte │ │ └── docs │ │ └── +page.md ├── lib │ ├── doc-components │ │ ├── Playground │ │ │ ├── snippets │ │ │ │ ├── errors.text │ │ │ │ ├── simple.text │ │ │ │ ├── regex.text │ │ │ │ ├── store.text │ │ │ │ ├── functions.text │ │ │ │ ├── objects.text │ │ │ │ └── maps.text │ │ │ ├── codemirror.ts │ │ │ └── index.svelte │ │ └── Nav.svelte │ └── svelte-json-tree │ │ ├── index.ts │ │ └── SvelteJsonTree │ │ ├── Summary.svelte │ │ ├── utils │ │ ├── objType.ts │ │ ├── expand.ts │ │ └── context.ts │ │ ├── Expandable.svelte │ │ ├── JSONValueNode.svelte │ │ ├── JSONStringNode.svelte │ │ ├── ErrorNode.svelte │ │ ├── RegExpNode.svelte │ │ ├── ErrorStack.svelte │ │ ├── JSONArrayNode.svelte │ │ ├── JSONObjectNode.svelte │ │ ├── JSONArrow.svelte │ │ ├── PreviewList.svelte │ │ ├── JSONSvelteStoreNode.svelte │ │ ├── TypedArrayNode.svelte │ │ ├── JSONIterableArrayNode.svelte │ │ ├── JSONIterableMapNode.svelte │ │ ├── JSONNested.svelte │ │ ├── JSONFunctionNode.svelte │ │ ├── Root.svelte │ │ └── JSONNode.svelte ├── app.d.ts └── app.html ├── images └── screenshot.png ├── .gitignore ├── .eslintignore ├── .prettierignore ├── .prettierrc ├── playwright.config.ts ├── .changeset ├── config.json └── README.md ├── CHANGELOG.md ├── .eslintrc.cjs ├── svelte.config.js ├── mdsvex.config.js ├── LICENSE ├── tsconfig.json ├── vite.config.ts ├── package.json ├── README.md └── pnpm-lock.yaml /static/.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: tanhauhau 2 | -------------------------------------------------------------------------------- /src/routes/+layout.ts: -------------------------------------------------------------------------------- 1 | export const prerender = true -------------------------------------------------------------------------------- /src/lib/doc-components/Playground/snippets/errors.text: -------------------------------------------------------------------------------- 1 | new Error('Error') -------------------------------------------------------------------------------- /src/lib/svelte-json-tree/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './SvelteJsonTree/Root.svelte'; 2 | -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/svelte-json-tree/HEAD/static/favicon.png -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/svelte-json-tree/HEAD/images/screenshot.png -------------------------------------------------------------------------------- /src/lib/doc-components/Playground/snippets/simple.text: -------------------------------------------------------------------------------- 1 | { 2 | message: 'hello world', 3 | item: [1, 2, 3], 4 | } -------------------------------------------------------------------------------- /src/lib/doc-components/Playground/snippets/regex.text: -------------------------------------------------------------------------------- 1 | { 2 | regex: /^[a-z0-9]+/g, 3 | case_insensitive: /^(?:[a-z0-9]+)foo.*?/i, 4 | } -------------------------------------------------------------------------------- /src/routes/(try)/try/+layout.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |