From b6db194dae510d4e8975fed2a68a9b2f0cc1c297 Mon Sep 17 00:00:00 2001 From: samet Date: Mon, 13 May 2024 20:34:01 +0300 Subject: [PATCH] testing 2.1.0 --- .gitignore | 2 ++ public/widgets/app releases/styles.css | 1 - public/widgets/clock/index.css | 3 +-- public/widgets/daily weather/index.css | 3 +-- public/widgets/disk usage/styles.css | 1 - public/widgets/hacker news/styles.css | 1 - public/widgets/r-programming/script.js | 9 +++++++++ public/widgets/r-programming/styles.css | 1 - public/widgets/search/index.css | 1 - public/widgets/system information/script.js | 6 +++--- public/widgets/system information/styles.css | 1 - public/widgets/transparent clock/styles.css | 1 - 12 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 8296128..8c4047f 100644 --- a/.gitignore +++ b/.gitignore @@ -90,3 +90,5 @@ typings/ # Electron-Forge out/ + +public/widgets/**/*.json diff --git a/public/widgets/app releases/styles.css b/public/widgets/app releases/styles.css index 9e0fa33..36eefa1 100644 --- a/public/widgets/app releases/styles.css +++ b/public/widgets/app releases/styles.css @@ -28,7 +28,6 @@ --background: #131313; --text: #f2f4f5; --secondary-text: #878a8c; - --primary: #c0c0c0; --border: 1px solid #3030309a; --box-shadow: 1px 1px 20px rgba(214, 214, 214, 0.096); } diff --git a/public/widgets/clock/index.css b/public/widgets/clock/index.css index d0ff651..59db6e7 100644 --- a/public/widgets/clock/index.css +++ b/public/widgets/clock/index.css @@ -14,7 +14,6 @@ --background: #131313; --text: #f2f4f5; --secondary-text: #878a8c; - --primary: #c0c0c0; --border: 1px solid #3030309a; --box-shadow: 1px 1px 20px rgba(214, 214, 214, 0.096); } @@ -44,7 +43,7 @@ body { .container h3 { font-size: 2rem; font-family: "Roboto", sans-serif; - color: var(--primary); + color: var(--secondary-text); margin-bottom: 1rem; } diff --git a/public/widgets/daily weather/index.css b/public/widgets/daily weather/index.css index e594dc6..1f94678 100644 --- a/public/widgets/daily weather/index.css +++ b/public/widgets/daily weather/index.css @@ -11,7 +11,6 @@ --background: #131313; --text: #f2f4f5; --secondary-text: #878a8c; - --primary: #c0c0c0; --border: 1px solid #3030309a; --box-shadow: 1px 1px 20px rgba(214, 214, 214, 0.096); } @@ -44,5 +43,5 @@ p { font-family: "Montserrat", sans-serif; font-size: 2rem; font-weight: 700; - color: var(--primary); + color: var(--secondary-text); } diff --git a/public/widgets/disk usage/styles.css b/public/widgets/disk usage/styles.css index 734f974..d18d78f 100644 --- a/public/widgets/disk usage/styles.css +++ b/public/widgets/disk usage/styles.css @@ -23,7 +23,6 @@ --background: #131313; --text: #f2f4f5; --secondary-text: #878a8c; - --primary: #c0c0c0; --border: 1px solid #3030309a; --box-shadow: 1px 1px 20px rgba(214, 214, 214, 0.096); } diff --git a/public/widgets/hacker news/styles.css b/public/widgets/hacker news/styles.css index 896a94b..804627b 100644 --- a/public/widgets/hacker news/styles.css +++ b/public/widgets/hacker news/styles.css @@ -24,7 +24,6 @@ --background-secondary: #1b1b1b; --text: #e0e0e0; --secondary-text: #878a8c; - --primary: #c0c0c0; --border: 1px solid #3030309a; --box-shadow: 1px 1px 20px rgba(214, 214, 214, 0.096); } diff --git a/public/widgets/r-programming/script.js b/public/widgets/r-programming/script.js index f25d082..43a86c6 100644 --- a/public/widgets/r-programming/script.js +++ b/public/widgets/r-programming/script.js @@ -38,6 +38,15 @@ async function fetchDataAndUpdateUI() { }); } + const opml = await window.electronAPI.readCustomData( + "r-programming", + "feed.opml" + ); + + console.log(opml); + + const parseOpml = await window.electronAPI.opmlToJson(opml); + console.log(parseOpml); // Fetch the RSS feed data const data = await window.electronAPI.getRSSFeed( "https://www.reddit.com/r/programming.rss" diff --git a/public/widgets/r-programming/styles.css b/public/widgets/r-programming/styles.css index d14fc4a..1b3b3db 100644 --- a/public/widgets/r-programming/styles.css +++ b/public/widgets/r-programming/styles.css @@ -28,7 +28,6 @@ --background-secondary: #1b1b1b; --text: #e0e0e0; --secondary-text: #878a8c; - --primary: #c0c0c0; --border: 1px solid #3030309a; --box-shadow: 1px 1px 20px rgba(214, 214, 214, 0.096); } diff --git a/public/widgets/search/index.css b/public/widgets/search/index.css index 12bdc24..21028b3 100644 --- a/public/widgets/search/index.css +++ b/public/widgets/search/index.css @@ -13,7 +13,6 @@ --background-secondary: #1b1b1b; --text: #e0e0e0; --secondary-text: #878a8c; - --primary: #c0c0c0; --border: 1px solid #3030309a; --box-shadow: 1px 1px 20px rgba(214, 214, 214, 0.096); } diff --git a/public/widgets/system information/script.js b/public/widgets/system information/script.js index f6b2339..fc6f1db 100644 --- a/public/widgets/system information/script.js +++ b/public/widgets/system information/script.js @@ -30,7 +30,7 @@ async function fetchDataAndUpdateUI() { // Calculate the total memory const totalMemory = data.memLayout.reduce( (acc, memory) => acc + memory.size, - 0, + 0 ); // Set the total RAM text main.querySelector("#total-ram").textContent = @@ -64,7 +64,7 @@ async function fetchDataAndUpdateUI() { // Read the custom data let data = await window.electronAPI.readCustomData( "system information", - "data.json", + "data.json" ); // If data exists, parse it if (data !== "") { @@ -78,7 +78,7 @@ async function fetchDataAndUpdateUI() { await window.electronAPI.writeCustomData( "system information", "data.json", - data, + data ); } // Log the data diff --git a/public/widgets/system information/styles.css b/public/widgets/system information/styles.css index effc3aa..f3bfad7 100644 --- a/public/widgets/system information/styles.css +++ b/public/widgets/system information/styles.css @@ -27,7 +27,6 @@ --background-secondary: #1b1b1b; --text: #e0e0e0; --secondary-text: #878a8c; - --primary: #c0c0c0; --border: 1px solid #3030309a; --box-shadow: 1px 1px 20px rgba(214, 214, 214, 0.096); } diff --git a/public/widgets/transparent clock/styles.css b/public/widgets/transparent clock/styles.css index fc5826f..8d6ff70 100644 --- a/public/widgets/transparent clock/styles.css +++ b/public/widgets/transparent clock/styles.css @@ -18,7 +18,6 @@ :root { --text: #d8d8d8; --background: #131313; - --primary: #cecece; } /* Body styles */