Skip to content

Commit

Permalink
authme 2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer authored Jan 5, 2021
1 parent 5472043 commit 315acd7
Show file tree
Hide file tree
Showing 12 changed files with 1,122 additions and 132 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/mac-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Mac Artifacts

on:
push:
branches: [dev]

jobs:
archive-build-artifacts:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2

- name: Install modules
run: npm i

- name: Run Build
run: npm run build

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: authme-latest-mac-x64-installer-portable
path: dist
675 changes: 670 additions & 5 deletions LICENSE.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
## Release cycle

- Standard updates: Coming on Tuesdays if everything is going well.
- Hotfix updates or Security updates: On Tuesdays, Thursdays or Saturdays if there is a problem that can not wait until the next Tuesday.
- Hotfix updates: On Tuesdays, Thursdays or Saturdays if there is a problem that can not wait until the next Tuesday.

## Contributing and development

- Read: [Contributing](https://github.com/Levminer/authme/blob/main/.github/CONTRIBUTING.md)

## License

- This software is licensed under: [MIT](https://github.com/Levminer/authme/blob/main/LICENSE.md)
- This software is licensed under: [GPL-3.0](https://github.com/Levminer/authme/blob/main/LICENSE.md)

- If you are planning to use this software as a business please contact me at: <[email protected]>
13 changes: 13 additions & 0 deletions app/application/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ file = JSON.parse(
)

const name_state = file.settings.show_2fa_names
const copy_state = file.settings.reset_after_copy

// ? separet values
const separation = () => {
Expand Down Expand Up @@ -246,8 +247,20 @@ const go = () => {
code.setSelectionRange(0, 9999)
document.execCommand("copy")
copy.textContent = "Copied"

setTimeout(() => {
copy.textContent = "Copy code"

setTimeout(() => {
if (copy_state === true) {
for (let i = 0; i < names.length; i++) {
const div = document.querySelector(`#grid${[i]}`)
div.style.display = "grid"
}
}

document.querySelector("#search").value = ""
}, 1200)
}, 1000)
})

Expand Down
128 changes: 118 additions & 10 deletions app/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<title>Authme</title>
<!-- js -->
<script defer src="./src/js/index.js"></script>
<script defer src="./src/js/keys.js"></script>
<!-- css -->
<link rel="stylesheet" href="../.././src/[email protected]" />
<link rel="stylesheet" href="../.././src/var.css" />
Expand Down Expand Up @@ -41,6 +42,11 @@ <h3>Close app to tray</h3>
<button class="button1" id="but2" onclick="tray()">-</button>
<br />
<hr />
<h3>Reset search after copy</h3>
<p class="text3">Reset the search bar after you copied your code.</p>
<button class="button1" id="but10" onclick="copy()">-</button>
<br />
<hr />
<h3>Show 2FA names</h3>
<p class="text3">The saved 2FA names will show up.</p>
<button class="button1" id="but5" onclick="names()">-</button>
Expand Down Expand Up @@ -74,8 +80,8 @@ <h3>Version</h3>
<div id="shortcuts" class="tabcontent">
<h3>Shortcuts</h3>
<p class="text3">
You can modify the not global shortcuts here. If you don't understand something just read the docs. After you done, restart the
app to make the new shortcuts work.
You can modify the shortcuts here. If you don't understand something just read the docs. After you done, restart the app to make
the new shortcuts work.
</p>
<button class="button1" id="but9" onclick="link2()">Docs</button>
<button class="button1" id="but9" onclick="restart()">Restart</button>
Expand All @@ -84,7 +90,7 @@ <h3>Shortcuts</h3>
<br />
<div class="grid">
<div class="div1">
<p class="text3 text">Settings</p>
<p class="text3 text">Show</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk0_input" />
Expand All @@ -95,7 +101,7 @@ <h3>Shortcuts</h3>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Exit</p>
<p class="text3 text">Settings</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk1_input" />
Expand All @@ -106,7 +112,7 @@ <h3>Shortcuts</h3>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Import</p>
<p class="text3 text">Exit</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk2_input" />
Expand All @@ -117,7 +123,7 @@ <h3>Shortcuts</h3>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Export</p>
<p class="text3 text">Web</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk3_input" />
Expand All @@ -128,7 +134,7 @@ <h3>Shortcuts</h3>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Update</p>
<p class="text3 text">Import</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk4_input" />
Expand All @@ -139,7 +145,7 @@ <h3>Shortcuts</h3>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">About</p>
<p class="text3 text">Export</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk5_input" />
Expand All @@ -148,15 +154,117 @@ <h3>Shortcuts</h3>
<button class="button1 button" id="hk5_button" onclick="hk_modify(5)">Modify</button>
</div>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Release</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk6_input" />
</div>
<div class="div3">
<button class="button1 button" id="hk6_button" onclick="hk_modify(6)">Modify</button>
</div>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Issues</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk7_input" />
</div>
<div class="div3">
<button class="button1 button" id="hk7_button" onclick="hk_modify(7)">Modify</button>
</div>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Docs</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk8_input" />
</div>
<div class="div3">
<button class="button1 button" id="hk8_button" onclick="hk_modify(8)">Modify</button>
</div>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Licenses</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk9_input" />
</div>
<div class="div3">
<button class="button1 button" id="hk9_button" onclick="hk_modify(9)">Modify</button>
</div>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Update</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk10_input" />
</div>
<div class="div3">
<button class="button1 button" id="hk10_button" onclick="hk_modify(10)">Modify</button>
</div>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Info</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk11_input" />
</div>
<div class="div3">
<button class="button1 button" id="hk11_button" onclick="hk_modify(11)">Modify</button>
</div>
</div>
<br />
<hr />
<h3>Global shortcuts</h3>
<p class="text3">
You can't directly modify the global shortcuts.Read the docs for more informations. After you done, restart the app to make the
new shortcuts work.
You can modify the global shortcuts. If you don't understand something or you want to use two modifier and a key please read the
docs. After you done, restart the app to make the new shortcuts work.
</p>
<button class="button1" id="but9" onclick="link2()">Docs</button>
<button class="button1" id="but9" onclick="restart()">Restart</button>
<br />
<br />
<br />
<div class="grid">
<div class="div1">
<p class="text3 text">Show app</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk100_input" />
</div>
<div class="div3">
<button class="button1 button" id="hk100_button" onclick="hk_modify(100)">Modify</button>
</div>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Settings</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk101_input" />
</div>
<div class="div3">
<button class="button1 button" id="hk101_button" onclick="hk_modify(101)">Modify</button>
</div>
</div>
<div class="grid">
<div class="div1">
<p class="text3 text">Exit app</p>
</div>
<div class="div2">
<input class="input1" disabled type="text" id="hk102_input" />
</div>
<div class="div3">
<button class="button1 button" id="hk102_button" onclick="hk_modify(102)">Modify</button>
</div>
</div>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion app/settings/src/css/index.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.center {
top: -50px;
width: 1000px;
height: 2250px;
height: 2450px;
}

.button1 {
Expand Down
Loading

0 comments on commit 315acd7

Please sign in to comment.