Skip to content

Commit

Permalink
Merge pull request #177 from Authenticator-Extension/dev
Browse files Browse the repository at this point in the history
5.1.1
  • Loading branch information
mymindstorm authored Jul 30, 2018
2 parents bd61387 + 5bdbfee commit c626c88
Show file tree
Hide file tree
Showing 29 changed files with 2,039 additions and 178 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
build
chrome
firefox
edge
.vscode
.atom-build.yml
ci/authenticator-build-key.enc
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- stage: deploy
# release tagging
script: bash ci/tag.sh
if: branch = release
if: branch = release AND type != pull_request
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,23 @@

> Authenticator generates 2-Step Verification codes in your browser.
## Available for Chrome and Firefox
## Available for Chrome, Firefox, and Microsoft Edge

[<img src="https://raw.githubusercontent.com/wiki/Authenticator-Extension/Authenticator/readme-images/chrome-web-store.png" title="Chrome Web Store" width="170" height="48" />](https://chrome.google.com/webstore/detail/authenticator/bhghoamapcdpbohphigoooaddinpkbai) [<img src="https://raw.githubusercontent.com/wiki/Authenticator-Extension/Authenticator/readme-images/firefox-add-ons.png" title="Firefox Add-ons" width="170" height="48" />](https://addons.mozilla.org/en-US/firefox/addon/auth-helper?src=external-github)
[<img src="https://raw.githubusercontent.com/wiki/Authenticator-Extension/Authenticator/readme-images/chrome-web-store.png" title="Chrome Web Store" width="170" height="48" />](https://chrome.google.com/webstore/detail/authenticator/bhghoamapcdpbohphigoooaddinpkbai) [<img src="https://raw.githubusercontent.com/wiki/Authenticator-Extension/Authenticator/readme-images/firefox-add-ons.png" title="Firefox Add-ons" width="170" height="48" />](https://addons.mozilla.org/en-US/firefox/addon/auth-helper?src=external-github) [<img src="https://raw.githubusercontent.com/wiki/Authenticator-Extension/Authenticator/readme-images/microsoft-store.png" title="Microsoft Store" height="48">](https://www.microsoft.com/store/apps/9P0FD39WFFMK?ocid=badge)

Authenticator is one of the [featured extensions on Firefox Add-ons this month](https://blog.mozilla.org/addons/2018/07/02/julys-featured-extensions-2/)!

## Build Setup

``` bash
# install typescript
npm install -g typescript
#install gts
npm install -g gts
# install dependencies
# install typescript and gts
npm install -g typescript gts
# install development dependencies
npm install
# check typescript style
gts check
# try to auto fix style issue
# fix code style issues
gts fix
# compile for Chrome
npm run chrome
# compile for Firefox
npm run firefox
# compile
npm run [chrome, firefox, edge]
```

Note that Windows users should download [Cygwin](http://cygwin.com/) to build. Building for Edge requires the [Windows App Certification Kit](https://developer.microsoft.com/en-us/windows/develop/app-certification-kit)
42 changes: 21 additions & 21 deletions _locales/cs/messages.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"extName": {
"message": "Ověření",
"message": "Authenticator",
"description": "Extension Name."
},
"extShortName": {
"message": "Ověřovatel",
"message": "Authenticator",
"description": "Extension Short Name."
},
"extDesc": {
"message": "Authenticator generuje kódy 2 krok ověření v prohlížeči.",
"message": "Authenticator generuje kódy dvoufázového ověření ve Vašem prohlížeči.",
"description": "Extension Description."
},
"added": {
"message": " byla přidána.",
"message": " byl přidán.",
"description": "Added Account."
},
"errorqr": {
"message": "Neznámý kód QR.",
"message": "QR kód nebyl rozpoznán.",
"description": "QR Error."
},
"errorsecret": {
"message": "Tajné chyba. Jen Base32 (A-Z, 2-7 a =) a HEX (0-9 a A-F) jsou podporovány. Vaše tajemství je však: ",
"message": "Chyba tajného klíče. Podporovány jsou pouze Base32(A-Z, 2-7 a =) a HEX(0-9 a A-F). Nicméně, Váš tajný klíč je: ",
"description": "Secret Error."
},
"add_qr": {
"message": "Načíst QR kód",
"message": "Naskenovat QR kód",
"description": "Scan QR Code."
},
"add_secret": {
Expand Down Expand Up @@ -64,7 +64,7 @@
"description": "Secret."
},
"updateSuccess": {
"message": "Úspěšně dokončeno.",
"message": "Úspěch.",
"description": "Update Success."
},
"updateFailure": {
Expand All @@ -76,7 +76,7 @@
"description": "About."
},
"export_import": {
"message": "Export \/ Import",
"message": "Exportovat \/ Importovat",
"description": "Export and Import."
},
"settings": {
Expand All @@ -88,7 +88,7 @@
"description": "Security."
},
"current_phrase": {
"message": "Aktuální heslo",
"message": "Stávající heslo",
"description": "Current Passphrase."
},
"new_phrase": {
Expand All @@ -108,19 +108,19 @@
"description": "Remove entry confirmation"
},
"security_warning": {
"message": "Toto heslo bude používat k šifrování váš tajný klíč. Pokud zapomenete heslo, nikdo vám nemůže pomoct.",
"message": "Toto heslo se bude používat k zašifrování vašich tajných klíčů. Pokud zapomenete heslo, nikdo vám nemůže pomoci.",
"description": "Passphrase Warning."
},
"update": {
"message": "Aktualizovat",
"description": "Update."
},
"phrase_incorrect": {
"message": "Nelze přidat nový účet nebo exportovat data, pokud jsou všechny účty dešifrovány. Před dalším pokračováním zadejte správné heslo.",
"message": "Nemůžete přidat nový účet nebo exportovat data, pokud jsou všechny účty dešifrovány. Před dalším pokračováním zadejte prosím správné heslo.",
"description": "Passphrase Incorrect."
},
"phrase_not_match": {
"message": "Hesla nesouhlasí.",
"message": "Heslo se neshoduje.",
"description": "Passphrase Not Match."
},
"encrypted": {
Expand Down Expand Up @@ -152,11 +152,11 @@
"description": "Sync Clock"
},
"remember_phrase": {
"message": "Pamatovat si heslo",
"message": "Zapamatovat si heslo",
"description": "Remember Passphrase"
},
"clock_too_far_off": {
"message": "Pozor! Váš místní čas se velmi liší, opravte jej prosím před pokračováním.",
"message": "Pozor! Váš místní čas se velmi liší, před pokračováním jej prosím opravte.",
"description": "Local Time is Too Far Off"
},
"remind_backup": {
Expand All @@ -172,19 +172,19 @@
"description": "Time Based"
},
"based_on_counter": {
"message": "Počítadlo založeno",
"message": "Založeno na počítadle",
"description": "Counter Based"
},
"resize_popup_page": {
"message": "Popup obrázek",
"message": "Vyskakovací stránka",
"description": "Popup Page Settings"
},
"scale": {
"message": "Zvětšení",
"message": "Měřítko",
"description": "Scale"
},
"export_info": {
"message": "Upozornění: všechny zálohy nejsou rozšifrovány. Chcete přidat účet do jiné aplikace? Ukazatel myši nad pravý horní roh z libovolného účtu a kliknete na tlačítko skryté.",
"message": "Upozornění: všechny zálohy jsou nešifrované. Chcete přidat účet do jiné aplikace? Najeďte myší na pravý horní roh libovolného účtu a klikněte na skryté tlačítko.",
"description": "Export menu info text"
},
"download_backup": {
Expand All @@ -200,11 +200,11 @@
"description": "Import backup file."
},
"import_backup_code": {
"message": "Importovat textový soubor",
"message": "Importovat textovou zálohu",
"description": "Import backup code."
},
"dropbox_backup": {
"message": "Automatická záloha na Dropbox",
"message": "Automatické zálohování na Dropbox",
"description": "Auto backup to Dropbox."
},
"dropbox_code": {
Expand Down
38 changes: 19 additions & 19 deletions _locales/vi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"description": "QR Error."
},
"errorsecret": {
"message": "Lỗi từ khóa. Chỉ chứa các ký tự Base32(A-Z, 2-7 và =) và các ký tự mã HEX(0-9 và A-F). Khóa bạn nhập là: ",
"message": "Chuỗi khóa bị lỗi. Chỉ các ký tự Base32 (A-Z, 2-7 và =) và HEX (0-9 và A-F) được hỗ trợ. Chuỗi khóa bạn đã nhập là: ",
"description": "Secret Error."
},
"add_qr": {
Expand Down Expand Up @@ -60,7 +60,7 @@
"description": "Issuer."
},
"secret": {
"message": "Từ khóa",
"message": "Chuỗi khóa",
"description": "Secret."
},
"updateSuccess": {
Expand All @@ -76,15 +76,15 @@
"description": "About."
},
"export_import": {
"message": "Xuất \/ Nhập",
"message": "Xuất \/ Nhập dữ liệu",
"description": "Export and Import."
},
"settings": {
"message": "Cài đặt",
"description": "Settings."
},
"security": {
"message": "Bảo mật",
"message": "Đặt mật khẩu bảo vệ",
"description": "Security."
},
"current_phrase": {
Expand All @@ -104,35 +104,35 @@
"description": "Confirm Passphrase."
},
"confirm_delete": {
"message": "Bạn có chắc muốn xóa từ khóa này? Việc này không thể khôi phục lại được.",
"message": "Bạn có chắc sẽ xóa chuỗi khóa này? Sau khi xóa sẽ không thể khôi phục lại được.",
"description": "Remove entry confirmation"
},
"security_warning": {
"message": "Mật khẩu này sẽ được dùng để mã hóa các từ khóa của bạn. Không ai có thể khôi phục lại được nếu bạn quên mật khẩu.",
"message": "Mật khẩu này sẽ được dùng để mã hóa toàn bộ dữ liệu của bạn. Không ai có thể giúp bạn khôi phục lại mật khẩu này nếu bạn quên mật khẩu.",
"description": "Passphrase Warning."
},
"update": {
"message": "Cập nhật",
"description": "Update."
},
"phrase_incorrect": {
"message": "Bạn không thể thêm tài khoản mới hoặc xuất dữ liệu đến khi tất cả các tài khoản được giải mã hết. Xin hãy nhập đúng mật khẩu để tiếp tục.",
"message": "Bạn không thể thêm tài khoản mới hoặc trích xuất dữ liệu cho đến khi tất cả các tài khoản được giải mã. Vui lòng nhập đúng mật khẩu để tiếp tục.",
"description": "Passphrase Incorrect."
},
"phrase_not_match": {
"message": "Mật khẩu không khớp.",
"message": "Mật khẩu không trùng nhau.",
"description": "Passphrase Not Match."
},
"encrypted": {
"message": " hóa",
"message": "Đã mã hóa",
"description": "Encrypted."
},
"copied": {
"message": "Đã sao chép",
"description": "Copied."
},
"feedback": {
"message": "Phản hồi",
"message": "Góp ý",
"description": "Feedback."
},
"translate": {
Expand Down Expand Up @@ -176,7 +176,7 @@
"description": "Counter Based"
},
"resize_popup_page": {
"message": "Popup Page",
"message": "Trang Popup",
"description": "Popup Page Settings"
},
"scale": {
Expand Down Expand Up @@ -244,35 +244,35 @@
"description": "Remove password."
},
"download_enc_backup": {
"message": "Download Password-Protected Backup",
"message": "Tải về Bản sao lưu",
"description": "Download Encrypted Backup"
},
"search": {
"message": "Search",
"message": "Tìm kiếm",
"description": "Search"
},
"popout": {
"message": "Popup mode",
"message": "Chế độ Popup",
"description": "Make window turn into persistent popup"
},
"lock": {
"message": "Lock",
"message": "Khóa",
"description": "Lock accounts"
},
"dropbox_tooltip": {
"message": "Dropbox sync enabled",
"message": "Đã kích hoạt tự động đồng bộ với Dropbox",
"description": "Dropbox sync enabled"
},
"edit": {
"message": "Edit",
"message": "Điều chỉnh",
"description": "Edit"
},
"manual_dropbox": {
"message": "Manual Sync",
"message": "Đồng bộ thủ công",
"description": "Manual Dropbox sync"
},
"use_autofill": {
"message": "Use Autofill",
"message": "Chế độ Điền tự động",
"description": "Use Autofill"
}
}
38 changes: 35 additions & 3 deletions css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,13 @@ body {

#codes.filter .entry[filtered],
#codes.search .entry[notSearched] {
display: none;
height: 0;
margin: 0;
padding: 0;
opacity: 0;
border: none;
overflow: hidden;
position: absolute;
}

#filter,
Expand Down Expand Up @@ -332,7 +338,7 @@ body {
display: block;
}

#codes.timeout .code:not(.hotp) {
#codes:not(.edit) .code.timeout:not(.hotp) {
animation: twinkling 1s infinite ease-in-out;
}

Expand Down Expand Up @@ -563,9 +569,35 @@ body {
bottom: 10px;
}

@keyframes timer {
to {
stroke-dashoffset: -25.12;
}
}

.sector svg {
width: 16px;
height: 16px;
margin: 2px;
}

.sector circle {
fill: none;
transform: rotate(-90deg);
transform-origin: 50% 50%;
stroke: gray;
stroke-width: 8px;
stroke-dasharray: 25.12;
animation-name: timer;
animation-iteration-count: infinite;
animation-timing-function: linear;
}

#codes.edit .sector,
#codes.edit .counter {
display: none;
position: absolute;
left: -1000px;
opacity: 0;
}

#menu {
Expand Down
Loading

0 comments on commit c626c88

Please sign in to comment.