Skip to content

Commit

Permalink
modified: index.html
Browse files Browse the repository at this point in the history
	modified:   package.json
	modified:   src-tauri/Cargo.lock
	modified:   src-tauri/Cargo.toml
	modified:   src-tauri/tauri.conf.json
	modified:   src/main.js
	modified:   src/styles.css
  • Loading branch information
death7654 committed Sep 10, 2023
1 parent 4be0625 commit e364ca8
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 24 deletions.
6 changes: 1 addition & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ <h2>🛡️ License:</h2>
This project is licensed under the GNU General Public License v3.0
<br>
<br>
<p><a href="https://github.com/death7654/Chultrabook-Windows-Controller/"
onclick="window.openExternal(this.href);event.preventDefault();">View on GitHub</a></p>
<!--<p><button id="githuburl" href="#">View on GitHub</button></p>-->
<br>
</div>

Expand Down Expand Up @@ -285,9 +284,6 @@ <h2>🛡️ License:</h2>
);
});

window.openExternal = (url) => {
window.electronAPI.openExternal(url);
};

});

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"preview": "vite preview",
"tauri": "tauri"
},
"author": "Robinson Arysseril",
"license": "GPL-3.0",
"dependencies": {
"@tauri-apps/api": "^1.4.0",
"node-os-utils": "^1.3.7",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "chrultrabook-windows-controller"
version = "0.0.0"
description = "A Tauri App"
version = "2.0.0"
description = "Chrultrabook Windows Controller"
authors = ["Robinson Arysseril"]
license = ""
license = "GPL-3.0"
repository = ""
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"withGlobalTauri": false
},
"package": {
"productName": "chrultrabook-windows-controller",
"productName": "Chrultrabook Windows Controller",
"version": "2.0.0"
},
"tauri": {
Expand Down Expand Up @@ -48,7 +48,7 @@
"decorations": false,
"fullscreen": false,
"resizable": false,
"title": "chrultrabook-windows-controller",
"title": "Chrultrabook Windows Controller",
"width": 800,
"height": 550,
"transparent": true
Expand Down
16 changes: 3 additions & 13 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,7 @@ setInterval(async () => {
averageTemp.toFixed(0) + "°C";
}, 1000);

function systeminfodatatransfer() {
console.log(bioslong);
const bios = bioslong.split("\n")[1];
const boardname = boardnamelong.split("\n")[1];
const cores = coreslong.split("\n")[1];
const cpuname = cpunamelong.split("\n")[1];

document.getElementById("biosVersion").innerText = "Bios Version: " + bios;
document.getElementById("boardname").innerText = "Boardname: " + boardname;
document.getElementById("coreCPU").innerText = "Cores: " + cores + " Cores";
document.getElementById("hostname").innerText = "Hostname: " + hostname;
document.getElementById("cpuName").innerText = "CPU: " + cpuname;
}


setTimeout(async () => {
const bioslong = await invoke("get_bios_version");
Expand Down Expand Up @@ -137,3 +125,5 @@ function copyTxt(htmlElement) {
document.querySelector("#copyButton").addEventListener("click", () => {
copyTxt(document.querySelector("#cbMemInfo"));
});

document.getElementById("githuburl").addEventListener('click', invoke('open_link'))
26 changes: 26 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,32 @@ nav.close ~ .dashboard .top{
.dash-content .overview .systemInfoText{
padding: 20px;
}
#githuburl {
display:none;
position: relative;
font-family: "Roboto", sans-serif;
font-size: 18px;
font-weight: bold;
width: calc(30% - 15px);
background-color: var(--copy-color);
padding: 20px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
color: #fff;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-property: box-shadow, transform;
transition-property: box-shadow, transform;
}
#githuburl:hover, #githuburl:active{
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
-webkit-transform: scale(1.1);
transform: scale(1.1);
}


/*main html file ends */
Expand Down

0 comments on commit e364ca8

Please sign in to comment.