Skip to content

Commit ae4c7a5

Browse files
committed
Minified the Icons. Added reset Function.
1 parent 6ed539b commit ae4c7a5

File tree

10 files changed

+29
-16
lines changed

10 files changed

+29
-16
lines changed

dist/NanoJSON.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/NanoJSON.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/NanoJSON.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<link rel="preload" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css" as="style" crossorigin="anonymous">
1313
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css" crossorigin="anonymous">
1414

15+
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
16+
1517
<script src="/dist/NanoJSON.js"></script>
1618

1719
<style>
@@ -140,12 +142,13 @@
140142
document.addEventListener('DOMContentLoaded', _ => {
141143
editor = new JSONEditor({
142144
id: "JSONEditor",
143-
title: "NanoJSON: JSON 編輯器",
144-
// description: "",
145+
title: "NanoJSON: JSON Editor",
146+
description: "NanoJSON is a lightweight JSON editing library built on pure JavaScript and native APIs. It can be easily embedded into websites.",
145147
// fill: 1
146148
button: {
147149
import: true,
148-
export: true
150+
export: true,
151+
reset: true
149152
},
150153
when: {
151154
rendered: _ => {
@@ -158,16 +161,26 @@
158161
});
159162

160163
editor.import({
161-
name: "NanoJSON",
162-
version: "0.1.5",
163-
description: "NanoJSON is a lightweight JSON editing library built on pure JavaScript and native APIs. Can be easily embedded into websites.",
164-
repository: "https://github.com/pardnchiu/NanoJSON.git",
165-
npm: "https://www.npmjs.com/package/@pardnchiu/nanojson",
166-
author: "邱敬幃 Pardn Chiu",
167-
license: "Proprietary",
168-
release: {
164+
"name": "NanoJSON",
165+
"version": "0.2.0",
166+
"description": "NanoJSON is a lightweight JSON editing library built on pure JavaScript and native APIs. It can be easily embedded into websites.",
167+
"repository": "https://github.com/pardnchiu/NanoJSON.git",
168+
"npm": "https://www.npmjs.com/package/@pardnchiu/nanojson",
169+
"author": "邱敬幃 Pardn Chiu",
170+
"license": {
171+
"type": "Proprietary",
172+
"url": "https://github.com/pardnchiu/NanoJSON/blob/main/LICENSE"
173+
},
174+
"dependencies": {
175+
"Google Icons": {
176+
"description": "A collection of icons provided by Google for intuitive and visually appealing UI designs.",
177+
"url": "https://fonts.google.com/icons"
178+
}
179+
},
180+
"release": {
181+
"0.2.0": "Minified the Icons. Added `reset` Function.",
169182
"0.1.5": "Added Lifecycle feature. Replaced Google Icon with inline SVG.",
170-
"0.1.5": "Removed test logs.",
183+
"0.1.4": "Removed test logs.",
171184
"0.1.3": "Fixed import functionality.",
172185
"0.1.2": "Improved CSS structure for nested display.",
173186
"0.1.1": "Introduced .json() method to retrieve JSON data.",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pardnchiu/nanojson",
3-
"version": "0.1.5",
3+
"version": "0.2.0",
44
"description": "NanoJSON is a lightweight JSON editing library built on pure JavaScript and native APIs. Can be easily embedded into websites.",
55
"main": "dist/NanoJSON.js",
66
"module": "dist/NanoJSON.esm.js",

src/data.js

-2.11 KB
Binary file not shown.

src/function/createCollapseButton.js

35 Bytes
Binary file not shown.

src/function/createRemoveButton.js

-2 Bytes
Binary file not shown.

src/model/JSONEditor.js

222 Bytes
Binary file not shown.

src/sass/NanoJSON.scss

-399 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)