Skip to content

Commit aeed394

Browse files
committed
refactor: enhance app settings and editor options
- clean up css file
1 parent 064ef7b commit aeed394

File tree

4 files changed

+492
-246
lines changed

4 files changed

+492
-246
lines changed

src-tauri/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "json-prettier"
33
version = "0.1.0"
4-
description = "JSON Prettier"
5-
authors = ["you"]
4+
description = "A simple desktop app that makes messy JSON data look clean and organized"
5+
authors = ["rebase"]
66
edition = "2021"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src-tauri/src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
22

33
use serde::{Deserialize, Serialize};
4-
use serde_json;
5-
use serde_json::ser::{PrettyFormatter, Serializer};
4+
use serde_json::{
5+
self,
6+
ser::{PrettyFormatter, Serializer},
7+
};
68
use tauri_plugin_store::StoreExt;
79

8-
#[derive(Debug, Clone, Serialize, Deserialize)]
10+
#[derive(Clone, Serialize, Deserialize)]
911
pub struct AppSettings {
1012
pub indent_type: String,
1113
pub indent_width: usize,
@@ -24,7 +26,7 @@ impl Default for AppSettings {
2426
}
2527
}
2628

27-
#[derive(Debug, Clone, Serialize, Deserialize)]
29+
#[derive(Clone, Serialize, Deserialize)]
2830
pub struct AppData {
2931
pub last_json_input: String,
3032
pub settings: AppSettings,

0 commit comments

Comments
 (0)