-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
536 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ body { | |
.center { | ||
top: -50px; | ||
width: 1000px; | ||
height: 1050px; | ||
height: 1300px; | ||
} | ||
|
||
.button1 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Authme</title> | ||
<!-- js --> | ||
<script defer src="./src/js/index.js"></script> | ||
<!-- css --> | ||
<link rel="stylesheet" href="../.././src/dragonfly@1.1.0.css" /> | ||
<link rel="stylesheet" href="./src/css/index.css" /> | ||
<!-- favicon --> | ||
<link rel="shortcut icon" href="../../img/icon.ico" type="image/x-icon" /> | ||
</head> | ||
<body unselectable="on" onselectstart="return false;" onmousedown="return false;"> | ||
<div class="center"> | ||
<h1>Authme</h1> | ||
|
||
<img src="../../img/iconw.png" alt="" srcset="" /> | ||
<br /> | ||
<br /> | ||
<br /> | ||
<img src="../../img/loading.gif" alt="" srcset="" /> | ||
|
||
<h4 id="version">Authme 1.4.0</h4> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
body { | ||
background: rgb(0, 0, 0); | ||
background: linear-gradient(90deg, rgba(0, 0, 0, 1) 30%, rgba(42, 36, 36, 1) 100%); | ||
overflow: hidden; | ||
cursor: wait; | ||
} | ||
|
||
h1 { | ||
margin-top: 5px; | ||
} | ||
|
||
.center { | ||
top: -150px; | ||
width: 500px; | ||
height: 550px; | ||
} | ||
|
||
.button1 { | ||
color: black; | ||
background-color: white; | ||
border-color: white; | ||
} | ||
|
||
.button1:hover { | ||
color: white; | ||
border-color: white; | ||
} | ||
|
||
.input1 { | ||
color: black; | ||
background-color: white; | ||
border-color: white; | ||
width: 250px; | ||
} | ||
|
||
.input1:hover { | ||
color: white; | ||
border-color: white; | ||
} | ||
|
||
#password_input2 { | ||
position: relative; | ||
top: 20px; | ||
} | ||
|
||
#password_label2 { | ||
position: relative; | ||
top: 20px; | ||
} | ||
|
||
#button1 { | ||
position: relative; | ||
top: 45px; | ||
} | ||
|
||
#version { | ||
position: relative; | ||
top: -5px; | ||
} | ||
|
||
.link1 { | ||
font-size: 1rem !important; | ||
position: relative; | ||
top: 50px; | ||
color: white !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
const { ipcMain, shell } = require("electron") | ||
const fs = require("fs") | ||
const electron = require("electron") | ||
const ipc = electron.ipcRenderer | ||
const path = require("path") | ||
|
||
const file_path = path.join(process.env.APPDATA, "/Levminer/Authme") | ||
|
||
let but0 = document.querySelector("#but0") | ||
let but1 = document.querySelector("#but1") | ||
let but2 = document.querySelector("#but2") | ||
|
||
//? startup | ||
let startup_state = true | ||
|
||
fs.readFile(path.join(file_path, "saos.md"), "utf-8", (err, data) => { | ||
if (err) { | ||
but0.textContent = "Off" | ||
startup_state = true | ||
|
||
after_startup0() | ||
} else { | ||
but0.textContent = "On" | ||
startup_state = false | ||
|
||
after_startup1() | ||
} | ||
}) | ||
|
||
let startup = () => { | ||
if (startup_state == true) { | ||
fs.writeFile(path.join(file_path, "saos.md"), "saos", (err) => { | ||
if (err) { | ||
console.log("Start after os started don't created!") | ||
} else { | ||
console.log("Start after os started file created!") | ||
|
||
but0.textContent = "On" | ||
startup_state = false | ||
|
||
after_startup1() | ||
} | ||
}) | ||
} else { | ||
fs.unlink(path.join(file_path, "saos.md"), (err) => { | ||
if (err && err.code === "ENOENT") { | ||
return console.log("saos.md not deleted") | ||
} else { | ||
console.log("saos.md deleted") | ||
|
||
but0.textContent = "Off" | ||
startup_state = true | ||
|
||
after_tray0() | ||
} | ||
}) | ||
} | ||
} | ||
|
||
//? tray | ||
let tray_state = true | ||
|
||
fs.readFile(path.join(file_path, "catt.md"), "utf-8", (err, data) => { | ||
if (err) { | ||
but2.textContent = "Off" | ||
tray_state = true | ||
|
||
after_tray0() | ||
} else { | ||
but2.textContent = "On" | ||
tray_state = false | ||
|
||
after_tray1() | ||
} | ||
}) | ||
|
||
let tray = () => { | ||
if (tray_state == true) { | ||
fs.writeFile(path.join(file_path, "catt.md"), "catt", (err) => { | ||
if (err) { | ||
console.log("Close app to tray don't created!") | ||
} else { | ||
console.log("Close app to tray file created!") | ||
|
||
but2.textContent = "On" | ||
tray_state = false | ||
|
||
after_tray1() | ||
} | ||
}) | ||
} else { | ||
fs.unlink(path.join(file_path, "catt.md"), (err) => { | ||
if (err && err.code === "ENOENT") { | ||
return console.log("catt.md not deleted") | ||
} else { | ||
console.log("catt.md deleted") | ||
|
||
but2.textContent = "Off" | ||
tray_state = true | ||
|
||
after_tray0() | ||
} | ||
}) | ||
} | ||
} | ||
|
||
//? data | ||
let data_state = false | ||
|
||
let data = () => { | ||
if (data_state == false) { | ||
but1.textContent = "Confirm" | ||
data_state = true | ||
} else { | ||
fs.unlink(path.join(file_path, "nrpw.md"), (err) => { | ||
if (err && err.code === "ENOENT") { | ||
return console.log("nrpw.md not deleted") | ||
} else { | ||
console.log("nrpw.md deleted") | ||
} | ||
}) | ||
|
||
fs.unlink(path.join(file_path, "pass.md"), (err) => { | ||
if (err && err.code === "ENOENT") { | ||
return console.log("pass.md not deleted") | ||
} else { | ||
console.log("pass.md deleted") | ||
} | ||
}) | ||
|
||
fs.unlink(path.join(file_path, "hash.md"), (err) => { | ||
if (err && err.code === "ENOENT") { | ||
return console.log("hash.md not deleted") | ||
} else { | ||
console.log("hash.md deleted") | ||
} | ||
}) | ||
|
||
fs.unlink(path.join(file_path, "saos.md"), (err) => { | ||
if (err && err.code === "ENOENT") { | ||
return console.log("saos.md not deleted") | ||
} else { | ||
console.log("saos.md deleted") | ||
} | ||
}) | ||
|
||
let file_path2 = path.join(process.env.APPDATA, "/Microsoft/Windows/Start Menu/Programs/Startup/Authme Launcher.lnk") | ||
|
||
fs.unlink(file_path2, (err) => { | ||
if (err && err.code === "ENOENT") { | ||
return console.log("startup shortcut not deleted") | ||
} else { | ||
console.log("startup shortcut deleted") | ||
} | ||
}) | ||
|
||
but1.textContent = "Exiting app" | ||
after_data() | ||
} | ||
} | ||
|
||
//? folder 0 | ||
let folder0 = () => { | ||
ipc.send("app_path") | ||
} | ||
|
||
//? folder 1 | ||
let folder1 = () => { | ||
shell.showItemInFolder(file_path) | ||
} | ||
|
||
let hide = () => { | ||
ipc.send("hide0") | ||
} | ||
|
||
//? after_data | ||
let after_data = () => { | ||
ipc.send("after_data") | ||
} | ||
|
||
//? after_startup | ||
let after_startup0 = () => { | ||
ipc.send("after_startup0") | ||
} | ||
|
||
let after_startup1 = () => { | ||
ipc.send("after_startup1") | ||
} | ||
|
||
//? after_tray | ||
let after_tray0 = () => { | ||
ipc.send("after_tray0") | ||
} | ||
|
||
let after_tray1 = () => { | ||
ipc.send("after_tray1") | ||
} |
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.