Skip to content

Commit

Permalink
testing 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sametcn99 committed May 13, 2024
1 parent eb4eb91 commit b6db194
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,5 @@ typings/

# Electron-Forge
out/

public/widgets/**/*.json
1 change: 0 additions & 1 deletion public/widgets/app releases/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 1 addition & 2 deletions public/widgets/clock/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
}

Expand Down
3 changes: 1 addition & 2 deletions public/widgets/daily weather/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -44,5 +43,5 @@ p {
font-family: "Montserrat", sans-serif;
font-size: 2rem;
font-weight: 700;
color: var(--primary);
color: var(--secondary-text);
}
1 change: 0 additions & 1 deletion public/widgets/disk usage/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion public/widgets/hacker news/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
9 changes: 9 additions & 0 deletions public/widgets/r-programming/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion public/widgets/r-programming/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion public/widgets/search/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions public/widgets/system information/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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 !== "") {
Expand All @@ -78,7 +78,7 @@ async function fetchDataAndUpdateUI() {
await window.electronAPI.writeCustomData(
"system information",
"data.json",
data,
data
);
}
// Log the data
Expand Down
1 change: 0 additions & 1 deletion public/widgets/system information/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion public/widgets/transparent clock/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
:root {
--text: #d8d8d8;
--background: #131313;
--primary: #cecece;
}

/* Body styles */
Expand Down

0 comments on commit b6db194

Please sign in to comment.