Skip to content

Commit c00e0de

Browse files
authored
5.0.9
2 parents f6746a3 + fdd3246 commit c00e0de

26 files changed

+425
-126
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ before_script:
88
- "npm install -g lintspaces-cli"
99
script:
1010
- "gts check"
11-
- "lintspaces -nt -d 'spaces' -i 'js-comments' src/* *.html manifest-*.json css/popup.css css/import.css"
11+
- "lintspaces -nt -d 'spaces' -i 'js-comments' src/* view/* manifest-*.json css/popup.css css/import.css"
1212
- "npm run firefox"
1313
- "npm run chrome"
1414
- "addons-linter firefox"

README.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,11 @@
44

55
> Authenticator generates 2-Step Verification codes in your browser.
66
7-
You can install Authenticator from the [Chrome Web Store](https://chrome.google.com/webstore/detail/authenticator/bhghoamapcdpbohphigoooaddinpkbai) or from [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/auth-helper/).
7+
## Available for Chrome and Firefox
88

9-
## Build Setup
10-
11-
Compile for Chrome:
9+
[<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)
1210

13-
```bash
14-
npm install
15-
npm run chrome
16-
```
17-
Compile for Firefox:
18-
19-
```bash
20-
npm install
21-
npm run firefox
22-
```
23-
24-
Compile for development:
11+
## Build Setup
2512

2613
``` bash
2714
# install typescript
@@ -34,6 +21,8 @@ npm install
3421
gts check
3522
# try to auto fix style issue
3623
gts fix
37-
# compile
38-
npm run compile
24+
# compile for Chrome
25+
npm run chrome
26+
# compile for Firefox
27+
npm run firefox
3928
```

_locales/pl/messages.json

Lines changed: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,242 @@
1+
{
2+
"extName": {
3+
"message": "Authenticator",
4+
"description": "Extension Name."
5+
},
6+
"extShortName": {
7+
"message": "Authenticator",
8+
"description": "Extension Short Name."
9+
},
10+
"extDesc": {
11+
"message": "Authenticator generuje w przeglądarce kody 2-stopniowej weryfikacji.",
12+
"description": "Extension Description."
13+
},
14+
"added": {
15+
"message": " został dodany.",
16+
"description": "Added Account."
17+
},
18+
"errorqr": {
19+
"message": "Nie rozpoznano kodu QR.",
20+
"description": "QR Error."
21+
},
22+
"errorsecret": {
23+
"message": "Błąd sekretnego kodu. Dopuszczalne znaki Base32(A-Z, 2-7 and =) oraz HEX(0-9 and A-F). Jednakże, twój sekretny kod to: ",
24+
"description": "Secret Error."
25+
},
26+
"add_qr": {
27+
"message": "Zeskanuj kod QR",
28+
"description": "Scan QR Code."
29+
},
30+
"add_secret": {
31+
"message": "Ręczne wprowadzanie",
32+
"description": "Manual Entry."
33+
},
34+
"close": {
35+
"message": "Zamknij",
36+
"description": "Close."
37+
},
38+
"ok": {
39+
"message": "Ok",
40+
"description": "OK."
41+
},
42+
"yes": {
43+
"message": "Tak",
44+
"description": "Yes."
45+
},
46+
"no": {
47+
"message": "Nie",
48+
"description": "No."
49+
},
50+
"account": {
51+
"message": "Konto",
52+
"description": "Account."
53+
},
54+
"accountName": {
55+
"message": "Nazwa konta",
56+
"description": "Account Name."
57+
},
58+
"issuer": {
59+
"message": "Wystawca",
60+
"description": "Issuer."
61+
},
62+
"secret": {
63+
"message": "Sekretny kod",
64+
"description": "Secret."
65+
},
66+
"updateSuccess": {
67+
"message": "Sukces.",
68+
"description": "Update Success."
69+
},
70+
"updateFailure": {
71+
"message": "Niepowodzenie.",
72+
"description": "Update Failure."
73+
},
74+
"about": {
75+
"message": "O aplikacji",
76+
"description": "About."
77+
},
78+
"export_import": {
79+
"message": "Eksport \/ Import",
80+
"description": "Export and Import."
81+
},
82+
"settings": {
83+
"message": "Ustawienia",
84+
"description": "Settings."
85+
},
86+
"security": {
87+
"message": "Zabezpieczenia",
88+
"description": "Security."
89+
},
90+
"current_phrase": {
91+
"message": "Obecne hasło",
92+
"description": "Current Passphrase."
93+
},
94+
"new_phrase": {
95+
"message": "Nowe hasło",
96+
"description": "New Passphrase."
97+
},
98+
"phrase": {
99+
"message": "Hasło",
100+
"description": "Passphrase."
101+
},
102+
"confirm_phrase": {
103+
"message": "Potwierdź hasło",
104+
"description": "Confirm Passphrase."
105+
},
106+
"confirm_delete": {
107+
"message": "Czy na pewno chcesz usunąć sekretny kod? Nie można cofnąć tej akcji.",
108+
"description": "Remove entry confirmation"
109+
},
110+
"security_warning": {
111+
"message": "To hasło będzie służyć szyfrowaniu twojego sekretnego kodu. Nikt ci nie pomoże, jeśli zapomnisz hasła.",
112+
"description": "Passphrase Warning."
113+
},
114+
"update": {
115+
"message": "Aktualizuj",
116+
"description": "Update."
117+
},
118+
"phrase_incorrect": {
119+
"message": "Nie można dodać nowego konta lub eksportować danych, dopóki wszystkie konta nie zostaną odszyfrowane. Wprowadź poprawne hasło przed kontynuowaniem.",
120+
"description": "Passphrase Incorrect."
121+
},
122+
"phrase_not_match": {
123+
"message": "Hasło się nie zgadza.",
124+
"description": "Passphrase Not Match."
125+
},
126+
"encrypted": {
127+
"message": "Zaszyfrowane",
128+
"description": "Encrypted."
129+
},
130+
"copied": {
131+
"message": "Skopiowane",
132+
"description": "Copied."
133+
},
134+
"feedback": {
135+
"message": "Uwagi",
136+
"description": "Feedback."
137+
},
138+
"translate": {
139+
"message": "Przetłumacz",
140+
"description": "Translate."
141+
},
142+
"source": {
143+
"message": "Kod źródłowy",
144+
"description": "Source Code."
145+
},
146+
"passphrase_info": {
147+
"message": "Wprowadź hasło, aby odszyfrować dane konta.",
148+
"description": "Passphrase Info"
149+
},
150+
"sync_clock": {
151+
"message": "Synchronizuj wewnętrzny zegar z Google",
152+
"description": "Sync Clock"
153+
},
154+
"remember_phrase": {
155+
"message": "Zapamiętaj hasło",
156+
"description": "Remember Passphrase"
157+
},
158+
"clock_too_far_off": {
159+
"message": "Uwaga! Twój lokalny zegar jest zbyt niedokładny, należy go ustawić przed kontynuowaniem.",
160+
"description": "Local Time is Too Far Off"
161+
},
162+
"remind_backup": {
163+
"message": "Czy masz kopie zapasową sekretnych kodów? Nie czekaj, aż będzie za późno!",
164+
"description": "Remind Backup"
165+
},
166+
"capture_failed": {
167+
"message": "Przechwytywania nie powiodło się, proszę odśwież stronę i spróbuj ponownie.",
168+
"description": "Capture Failed"
169+
},
170+
"based_on_time": {
171+
"message": "Oparte na czasie",
172+
"description": "Time Based"
173+
},
174+
"based_on_counter": {
175+
"message": "Licznik oparty",
176+
"description": "Counter Based"
177+
},
178+
"resize_popup_page": {
179+
"message": "Zmiana rozmiaru okienka Popup",
180+
"description": "Resize Popup Page"
181+
},
182+
"scale": {
183+
"message": "Skala",
184+
"description": "Scale"
185+
},
186+
"export_info": {
187+
"message": "Uwaga: wszystkie kopie zapasowe są odszyfrowane. Chcesz dodać kono do innej aplikacji? Ustaw kursor nad prawym górnym rogiem dowolnego konta i wciśnij ukryty znak.",
188+
"description": "Export menu info text"
189+
},
190+
"download_backup": {
191+
"message": "Pobierz plik kopii zapasowej",
192+
"description": "Download backup file."
193+
},
194+
"import_backup": {
195+
"message": "Importuj kopię zapasową",
196+
"description": "Import backup."
197+
},
198+
"import_backup_file": {
199+
"message": "Importuj plik kopii zapasowej",
200+
"description": "Import backup file."
201+
},
202+
"import_backup_code": {
203+
"message": "Import tekstowej kopii zapasowej",
204+
"description": "Import backup code."
205+
},
206+
"dropbox_backup": {
207+
"message": "Automatyczna kopia zapasowa na Dropbox'ie",
208+
"description": "Auto backup to Dropbox."
209+
},
210+
"dropbox_code": {
211+
"message": "Kod Dropbox",
212+
"description": "Dropbox code."
213+
},
214+
"dropbox_token": {
215+
"message": "Token Dropbox",
216+
"description": "Dropbox token."
217+
},
218+
"dropbox_authorization": {
219+
"message": "Zaloguj się do Dropbox'a",
220+
"description": "Dropbox authorization."
221+
},
222+
"show_all_entries": {
223+
"message": "Pokaż wszystkie wpisy",
224+
"description": "Show all entries."
225+
},
226+
"dropbox_risk": {
227+
"message": "Ostrzeżenie: kopie zapasowe zapisane w Dropbox'ie są nieszyfrowane. Używasz na własne ryzyko.",
228+
"description": "Dropbox backup risk warning."
229+
},
230+
"import_error_password": {
231+
"message": "Należy podać prawidłowe hasło, żeby importować kopię zapasową.",
232+
"description": "Error password warning when import backups."
233+
},
234+
"local_passphrase_warning": {
235+
"message": "Hasła są przechowywane lokalnie, należy to natychmiast zmienić w menu Zabezpieczenia.",
236+
"description": "localStorage password warning."
237+
},
238+
"dropbox_logout": {
239+
"message": "Wyloguj się z Dropbox'a",
240+
"description": "Dropbox logout."
241+
}
242+
}

_locales/zh_TW/messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
"description": "Dropbox token."
217217
},
218218
"dropbox_authorization": {
219-
"message": "Sign in to Dropbox",
219+
"message": "登入 Dropbox",
220220
"description": "Dropbox authorization."
221221
},
222222
"show_all_entries": {
@@ -236,7 +236,7 @@
236236
"description": "localStorage password warning."
237237
},
238238
"dropbox_logout": {
239-
"message": "Logout of Dropbox",
239+
"message": "登出 Dropbox",
240240
"description": "Dropbox logout."
241241
}
242242
}

css/popup.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,20 @@ body {
452452
display: none;
453453
}
454454

455+
#lock {
456+
position: absolute;
457+
left: 45px;
458+
bottom: 0;
459+
height: 38px;
460+
line-height: 38px;
461+
font-size: 16px;
462+
color: gray;
463+
cursor: pointer;
464+
}
465+
455466
#dropbox {
456467
position: absolute;
457-
left: 50px;
468+
left: 68px;
458469
bottom: 0;
459470
height: 38px;
460471
line-height: 38px;
@@ -647,6 +658,7 @@ body {
647658
#import_backup:hover,
648659
#editAction:hover,
649660
#infoAction:hover,
661+
#lock:hover,
650662
#scan:hover,
651663
#codes #add:hover,
652664
#infoClose:hover,

dropboxtoken.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

js/import.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
document.title = chrome.i18n.getMessage('import_backup');
1+
document.title = chrome.i18n.getMessage('import_backup');
2+
3+
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
4+
if (message.action === 'lock') {
5+
window.close();
6+
}
7+
});

manifest-chrome.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "__MSG_extName__",
44
"short_name": "__MSG_extShortName__",
5-
"version": "5.0.8",
5+
"version": "5.0.9",
66
"default_locale": "en",
77
"description": "__MSG_extDesc__",
88
"icons": {
@@ -16,7 +16,7 @@
1616
"38": "images/icon38.png"
1717
},
1818
"default_title": "__MSG_extShortName__",
19-
"default_popup": "popup.html"
19+
"default_popup": "view/popup.html"
2020
},
2121
"background": {
2222
"scripts": [
@@ -61,7 +61,7 @@
6161
],
6262
"offline_enabled": true,
6363
"web_accessible_resources": [
64-
"qr.html",
64+
"view/qr.html",
6565
"images/scan.gif"
6666
],
6767
"content_security_policy": "script-src 'self'; font-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; connect-src https://www.google.com/ https://*.dropboxapi.com; default-src 'none'"

0 commit comments

Comments
 (0)