From 1db26de0f6b92acf50d0f2531bed4928d7006060 Mon Sep 17 00:00:00 2001 From: fisheva Date: Tue, 17 Dec 2024 22:12:32 +0800 Subject: [PATCH] 2.7.4 --- index/index.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/index/index.js b/index/index.js index cf46eca..2a34565 100644 --- a/index/index.js +++ b/index/index.js @@ -1,16 +1,11 @@ const fs = require("fs"); const { parse } = require("jsonc-parser"); -let light_content = fs.readFileSync("../jsonc/lightUI.jsonc", "utf-8"), - dark_content = fs.readFileSync("../jsonc/darkUI.jsonc", "utf-8"), - syntax_content = fs.readFileSync("../jsonc/syntax.jsonc", "utf-8"); - -let light = parse(light_content), - dark = parse(dark_content), - syntax = parse(syntax_content); +let light = parse(fs.readFileSync("../jsonc/lightUI.jsonc", "utf-8")), + dark = parse(fs.readFileSync("../jsonc/darkUI.jsonc", "utf-8")), + syntax = parse(fs.readFileSync("../jsonc/syntax.jsonc", "utf-8")); // console.log("light========",light); -// let light = require('../json/lightUI.json'), dark = require('../json/darkUI.json'), syntax = require('../json/syntax.json'); let output = { "Eva-Light": {},