Skip to content

Commit

Permalink
authme 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer authored Dec 19, 2020
1 parent 5807cda commit 28dc339
Show file tree
Hide file tree
Showing 13 changed files with 236 additions and 70 deletions.
8 changes: 5 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

# Rules

- Use ESLint
- Use Prettier
- Use snake_case
1. Use ESLint.
1. Use Prettier.
1. Use snake_case.
1. Try not use new modules modules.
1. Make your PR to the dev branch.

# Summary

Expand Down
19 changes: 11 additions & 8 deletions .github/bug_report.md → .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
---
name: Bug Report
about: Use this template for reporting a bug
labels: "Type: Bug"
name: Bug report
about: Use this template for reporting a bug.
title: ''
labels: 'Type: Bug'
assignees: Levminer

---

**Describe the bug**
**Describe the bug:**

- A clear and concise description of what the bug is.

**To Reproduce**
**To Reproduce:**

- Steps to reproduce the behavior (Detailed steps):

**Expected behavior**
**Expected behavior:**

- A clear and concise description of what you expected to happen.

**Version Info**
**Version Info:**

- Paste version informations here (Top menu > Info > About > Copy):

**Additional context**
**Additional context:**

- Add any other context about the problem here.
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
---
name: Feature Request
name: Feature request
about: Use this template for creating a feature request
labels: "Type: Feature"
title: ''
labels: 'Type: Feature'
assignees: Levminer

---

**Is your feature request related to a problem? Please describe.**
**Is your feature request related to a problem? Please describe:**

- A clear and concise description of what the problem is.

**Describe the solution you'd like**
**Describe the solution you'd like:**

- A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
**Describe alternatives you've considered:**

- A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
**Additional context:**

- Add any other context or screenshots about the feature request here.
21 changes: 21 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

- This is Authme's security policy.

## Supported Versions

- There are the currently supported versions:

| Version | Supported |
| ------- | ------------------ |
| 1.x.x | :x: |
| 2.x.x | :white_check_mark: |

## Reporting a Vulnerability

- Please report security vulnerabilitys thru email at: <[email protected]>

## 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.
6 changes: 0 additions & 6 deletions .github/costum.md

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: "CodeQL"

on:
push:
branches: [main, dev]
pull_request:
# The branches below must be a subset of the branches above
branches: [main, dev]
schedule:
- cron: "43 17 * * 4"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
41 changes: 33 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,47 @@

- Simple cross platform two-factor authentication app for desktop.

# How to use
## Authme Web Beta

- For non technical people: Instructions in the app
- For technical people: Check out this [Readme](https://github.com/Levminer/authme/blob/main/extract/README.md)
- Authme is now available as a web app in beta version. It's a PWA app to, so you can install it on your phone!
- Try it out and give feedback: [Authme Web](https://github.com/levminer/authme-web)

# Development
## How to use

- Simple quick start guide.

#### Getting started

- Currently you can import codes to Authme two ways:

1. From Google Authenticator: (Example: Import all of your saved QR codes from your Google Authenticator app.)
1. From stand alone QR codes: (Example: You screenshot all the QR codes from your favourite websites, and import all of them to Authme.)

### How to import

- If you are importing from Google Authenticator you have to install [Python](https://www.python.org/downloads/)

1. For non technical people: Instructions in the app.
1. For technical people: Check out this: [Readme](https://github.com/Levminer/authme/blob/main/extract/README.md)

## 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.

## Development

- Start app: `npm run start`
- Build app: `npm run build`
- Package app: `npm run package`
- Lint app: `npm run lint`

# Contrubuting
## Contributing

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

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

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

- MIT
- If you are planning to use this software as a business please contact me at: <[email protected]>
14 changes: 8 additions & 6 deletions app/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ <h1>Authme</h1>
<h2>Settings</h2>
<p class="text3">You can configure the app setting here.</p>
<button class="button1" onclick="hide()">Close</button>
<h3>Status</h3>
<p class="text3" id="status">All systems online.</p>
<button class="button1" id="but6" onclick="page()">Status</button>
<br />
<h3>Launch on startup</h3>
<p class="text3">Start the app after the operating system loaded. The app will start on the tray (Windows only).</p>
<button class="button1" id="but0" onclick="page()">-</button>
<button class="button1" id="but0" onclick="startup()">-</button>
<br />
<h3>Close app to tray</h3>
<p class="text3">On closing the app will not quit. You can open the app from the tray menu (Windows only).</p>
Expand All @@ -43,7 +39,13 @@ <h3>Open folders</h3>
<h3>Clear data</h3>
<p class="text3">Clear password, 2FA codes and other settings</p>
<button class="button1" id="but1" onclick="reset()">Clear data</button>
<h4 id="ver"></h4>
<h3>Status</h3>
<p class="text3">Current status of the API, click for all the status informations.</p>
<button class="button1" id="but6" onclick="link0()">-</button>
<br />
<h3>Version</h3>
<p class="text3">Your current Authme version, click for release notes.</p>
<button class="button1" id="but7" onclick="link1()">-</button>
</div>
</body>
</html>
12 changes: 1 addition & 11 deletions app/settings/src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body {
.center {
top: -50px;
width: 1000px;
height: 1700px;
height: 1850px;
}

.button1 {
Expand Down Expand Up @@ -47,19 +47,9 @@ body {
top: 45px;
}

#version {
position: relative;
top: 30px;
}

.link1 {
font-size: 1rem !important;
position: relative;
top: 50px;
color: white !important;
}

#status {
font-size: 28px;
font-weight: bold;
}
15 changes: 9 additions & 6 deletions app/settings/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const fetch = require("node-fetch")

const version = ipc.sendSync("ver")

document.querySelector("#ver").textContent = `Authme ${version}`
document.querySelector("#but7").textContent = `Authme ${version}`

let folder

Expand Down Expand Up @@ -193,7 +193,7 @@ const folder1 = () => {
}

// ? Status API
const status = document.querySelector("#status")
const status = document.querySelector("#but6")

const api = async () => {
try {
Expand All @@ -202,28 +202,31 @@ const api = async () => {
.then((data) => {
try {
if (data.state === "up") {
status.style.color = "green"
status.textContent = "All systems online"
} else {
status.textContent = "Some systems offline"
status.style.color = "red"
}
} catch (error) {
return console.log(error)
}
})
} catch (error) {
status.textContent = "Can't connect to API"
status.style.color = "red"
}
}

api()

// ? Open Status
const page = () => {
const link0 = () => {
shell.openExternal("https://status.levminer.com")
}

// ? Open Releases
const link1 = () => {
shell.openExternal("https://github.com/Levminer/authme/releases")
}

const hide = () => {
ipc.send("hide0")
}
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ let ipc_to_application_1 = false
let confirmed = false
let startup = false

const authme_version = "2.1.1"
const tag_name = "2.1.1"
const authme_version = "2.1.2"
const tag_name = "2.1.2"

ipc.on("ver", (event, data) => {
event.returnValue = authme_version
Expand Down
Loading

0 comments on commit 28dc339

Please sign in to comment.