Skip to content

Commit

Permalink
Settings better wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Jan 6, 2022
1 parent efaa065 commit 285f473
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 45 deletions.
34 changes: 5 additions & 29 deletions app/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h4>When closing Authme the app will not quit. You can open Authme from the syst
<span id="tgt1" class="text-black text-xl">-</span>
</div>
<hr />
<div id="disable_screen_capture_div">
<div class="windowCapture">
<h3>Window capture</h3>
<h4>Allows screenshots and screen capture. You can record or screenshot the app until you restart Authme.</h4>
<div class="flex justify-center items-center w-72 h-[68px] bg-white mx-auto rounded-full">
Expand Down Expand Up @@ -323,7 +323,7 @@ <h4>The saved codes description will be visible. You can copy it after clicking
<br />
<hr />
<h3>Blur codes</h3>
<h4>Blur the saved codes. You can still copy it or hover over it to reveal.</h4>
<h4>Blur the saved codes. You can still copy the codes or hover over the codes to show them.</h4>
<div class="flex justify-center items-center w-72 h-[68px] bg-white mx-auto rounded-full">
<a href="#" onclick="blurCodes()">
<div class="pointer-events-none relative inline-block w-10 mr-2 align-middle select-none bg-gray-900 border-2 border-gray-900 rounded-full">
Expand Down Expand Up @@ -364,16 +364,8 @@ <h3>Shortcuts</h3>
<h4>
You can modify the shortcuts here, read the documentation for more information.
<br />
Shortcuts not work on this page, go back to the settings tab to reactivate them!
Shortcuts not work on this tab, go to any other settings tab to reactivate them!
</h4>
<button class="buttoni" onclick="shortcutsLink()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9" />
</svg>
Documentation
</button>
<br />
<br />
<br />
<div class="flex flex-col md:w-4/5 lg:w-2/3 mx-auto rounded-2xl bg-gray-800 mb-20">
<div class="flex justify-center items-center">
Expand Down Expand Up @@ -788,16 +780,8 @@ <h3>Global shortcuts</h3>
<h4>
You can modify the global shortcuts here, read the documentation for more information.
<br />
Shortcuts not work on this page, go back to the settings tab to reactivate them!
Shortcuts not work on this tab, go to any other settings tab to reactivate them!
</h4>
<button class="buttoni" onclick="globalShortcutsLink()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9" />
</svg>
Documentation
</button>
<br />
<br />
<br />
<div class="flex flex-col md:w-4/5 lg:w-2/3 mx-auto rounded-2xl bg-gray-800 mb-20">
<div class="flex justify-center items-center">
Expand Down Expand Up @@ -887,16 +871,8 @@ <h3>Quick copy shortcuts</h3>
<h4>
You can create a shortcut for your most used codes to copy quickly.
<br />
Shortcuts not work on this page, go back to the settings tab to reactivate them!
Shortcuts not work on this tab, go to any other settings tab to reactivate them!
</h4>
<button class="buttoni" onclick="quickCopyShortcutsLink()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9" />
</svg>
Read docs
</button>
<br />
<br />
<br />
<div class="quick"></div>
</div>
Expand Down
17 changes: 1 addition & 16 deletions app/settings/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (app.isPackaged === false) {

// check if running on linux
if (process.platform !== "win32" && process.platform !== "darwin") {
document.querySelector("#disable_screen_capture_div").style.display = "none"
document.querySelector(".windowCapture").style.display = "none"
}

/**
Expand Down Expand Up @@ -655,21 +655,6 @@ const logsFolder = () => {
shell.openPath(path.join(folder_path, "logs"))
}

/**
* Shortcut links
*/
const shortcutsLink = () => {
shell.openExternal("https://docs.authme.levminer.com/#/settings?id=shortcuts")
}

const globalShortcutsLink = () => {
shell.openExternal("https://docs.authme.levminer.com/#/settings?id=gobal-shortcuts")
}

const quickCopyShortcutsLink = () => {
shell.openExternal("https://docs.authme.levminer.com/#/settings?id=quick-copy-shortcuts")
}

/**
* Hide window
*/
Expand Down

0 comments on commit 285f473

Please sign in to comment.