Skip to content

display with fracturedjson #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
6 changes: 2 additions & 4 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
cache: 'yarn'

- uses: calcit-lang/setup-cr@0.0.4
with:
version: "0.9.4"
- uses: calcit-lang/setup-cr@0.0.8

- name: "compiles to js"
run: >
Expand Down
2,531 changes: 69 additions & 2,462 deletions calcit.cirru

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions compact.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@
-> display-types $ map
fn (info)
let
k $ :value info
v $ :name info
k $ nth info 0
v $ nth info 1
[] k $ div
{} (:class-name css-type-label)
:style $ {}
Expand All @@ -176,14 +176,12 @@
:json5 $ .!stringify JSON5 (to-js-data data) nil 2
:cirru-edn $ format-cirru-edn data
:cson $ cson-stringify (to-js-data data) nil 2
:f-json $ let
f $ new Formatter
.!toString $ .!Serialize f (to-js-data data)
|display-types $ %{} :CodeEntry (:doc |)
:code $ quote
def display-types $ []
{} (:value :json) (:name "\"JSON")
{} (:value :cirru-edn) (:name "\"Cirru EDN")
{} (:value :json5) (:name "\"JSON5")
{} (:value :cson) (:name "\"CSON")
{} (:value :edn) (:name "\"EDN")
def display-types $ [] (:: :json "\"JSON") (:: :cirru-edn "\"Cirru EDN") (:: :json5 "\"JSON5") (:: :f-json "\"Fractured") (:: :cson "\"CSON") (:: :edn "\"EDN")
|effect-codearea $ %{} :CodeEntry (:doc |)
:code $ quote
defeffect effect-codearea () (action el)
Expand Down Expand Up @@ -238,6 +236,7 @@
respo.css :refer $ defstyle
respo-ui.css :as css
"\"json5" :default JSON5
"\"fracturedjsonjs" :refer $ Formatter
|app.config $ %{} :FileEntry
:defs $ {}
|cdn? $ %{} :CodeEntry (:doc |)
Expand Down
5 changes: 3 additions & 2 deletions package.cirru → deps.cirru
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

{}
:calcit-version |0.9.13
:dependencies $ {}
|calcit-lang/lilac |main
|calcit-lang/memof |main
|Respo/respo.calcit |main
|Respo/reel.calcit |main
|Respo/respo-markdown.calcit |main
|Respo/respo-ui.calcit |main
|Respo/respo-markdown.calcit |0.4.9
|Respo/respo-ui.calcit |0.6.3
|Respo/alerts.calcit |main
26 changes: 24 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@

<!DOCTYPE html>
<html>
<html lang="en">

<head>
<title>Edn Formatter</title>
<title>EDN Formatter - Convert JSON, EDN, Cirru EDN to Multiple Formats</title>
<meta name="description" content="Free online EDN formatter and converter. Transform JSON, EDN, and Cirru EDN data between multiple formats including JSON, JSON5, CSON, Cirru EDN, and EDN. Fast, reliable, and easy to use.">
<meta name="keywords" content="EDN formatter, JSON converter, Cirru EDN, JSON5 formatter, CSON converter, data format converter, online formatter, JSON to EDN, EDN to JSON">
<meta name="author" content="MVC Works">
<meta name="robots" content="index, follow">

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="http://repo.tiye.me/mvc-works/edn-formatter/">
<meta property="og:title" content="EDN Formatter - Convert JSON, EDN, Cirru EDN to Multiple Formats">
<meta property="og:description" content="Free online EDN formatter and converter. Transform JSON, EDN, and Cirru EDN data between multiple formats including JSON, JSON5, CSON, Cirru EDN, and EDN.">
<meta property="og:image" content="https://cdn.tiye.me/logo/edn-formatter.png">

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="http://repo.tiye.me/mvc-works/edn-formatter/">
<meta property="twitter:title" content="EDN Formatter - Convert JSON, EDN, Cirru EDN to Multiple Formats">
<meta property="twitter:description" content="Free online EDN formatter and converter. Transform JSON, EDN, and Cirru EDN data between multiple formats including JSON, JSON5, CSON, Cirru EDN, and EDN.">
<meta property="twitter:image" content="https://cdn.tiye.me/logo/edn-formatter.png">

<!-- Canonical URL -->
<link rel="canonical" href="http://repo.tiye.me/mvc-works/edn-formatter/">

<link href="https://cdn.tiye.me/logo/edn-formatter.png" rel="icon" type="image/png" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@
"license": "MIT",
"devDependencies": {
"bottom-tip": "^0.1.5",
"vite": "^5.4.6"
"vite": "^7.0.3"
},
"dependencies": {
"@calcit/procs": "^0.9.4",
"@calcit/procs": "^0.9.13",
"@mvc-works/codearea": "^0.0.4",
"coffeescript": "^2.7.0",
"copy-text-to-clipboard": "^3.2.0",
"cson": "^8.4.0",
"cson-parser": "^4.0.9",
"feather-icons": "^4.29.2",
"fracturedjsonjs": "^4.1.0",
"jsedn": "^0.4.1",
"json5": "^2.2.3",
"shortid": "^2.2.16"
"shortid": "^2.2.17"
}
}
Loading