Skip to content

Commit

Permalink
Test import page
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed May 12, 2022
1 parent c136db7 commit f2868ac
Show file tree
Hide file tree
Showing 7 changed files with 7,287 additions and 4,321 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Test
on: push
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install modules
run: npm ci
- name: Run Test
run: npm run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build
dist
build.json
log.txt
tests/**.png
4 changes: 2 additions & 2 deletions app/landing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h4 data-loc>Choose how you want to use Authme. Your 2FA codes are encrypted eit
<h4 data-loc class="m-0 mb-3">Require password</h4>
<h5 data-loc class="m-0 mb-3">You have to type in your password every time you launch Authme.</h5>

<button class="buttoni my-2" onclick="requirePassword()">
<button class="buttoni my-2 requirePassword" onclick="requirePassword()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
Expand Down Expand Up @@ -89,7 +89,7 @@ <h4 data-loc id="text">Create a strong password to encrypt your 2FA codes!</h4>
</svg>
</div>
</div>
<button class="buttoni mb-8" onclick="comparePasswords()">
<button class="buttoni mb-8 comparePasswords" onclick="comparePasswords()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ process.on("uncaughtException", async (error) => {

logger.error("Error on load", stack.clean(error.stack))

if (app.isPackaged === false) {
if (app.isPackaged === true) {
dialog.showErrorBox("Authme", `Authme crashed while starting, crash report sent. \n\nPlease restart Authme, if you want report this open a GitHub Issue with a screenshot of this error (https://github.com/Levminer/authme/issues). \n\n${stack.clean(error.stack)}`)

try {
Expand Down
Loading

0 comments on commit f2868ac

Please sign in to comment.