Skip to content

Commit 7edc163

Browse files
authored
Merge pull request #32 from Authenticator-Extension/dev
5.0.2
2 parents cb29e32 + 4f603e3 commit 7edc163

File tree

12 files changed

+224
-178
lines changed

12 files changed

+224
-178
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"
11+
- "lintspaces -nt -d 'spaces' -i 'js-comments' src/* *.html manifest-*.json css/popup.css css/import.css"
1212
- "npm run firefox"
1313
- "npm run chrome"
1414
- "addons-linter firefox"

_locales/en/messages.json

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
"message": "Secret Error. Only Base32(A-Z, 2-7 and =) and HEX(0-9 and A-F) are supported. However, your secret is: ",
2424
"description": "Secret Error."
2525
},
26-
"info": {
27-
"message": "<p><strong>Authenticator</strong> for Google&trade; Authenticator,<br/>&copy; 2018 <a target='_blank' href='https://github.com/Authenticator-Extension'>Authenticator Extension</a>. Released under the MIT License.</p><p>Google&trade; is Google's trademark, Google Authenticator is Google’s trade name, those rights of ownership belong with Google Inc.</p><p><a target='_blank' href='https://github.com/LazarSoft/jsqrcode'>jsqrcode</a> Copyright jsqrcode authors. Licensed under the Apache License.</p><p><a target='_blank' href='https://github.com/zxing/zxing'>ZXing</a> Copyright ZXing authors. Licensed under the Apache License.</p><p><a target='_blank' href='http://blog.tinisles.com/2011/10/google-authenticator-one-time-password-algorithm-in-javascript/'>totp.js</a> Copyright its author. Licensed under the MIT License.</p><p><a target='_blank' href='http://caligatio.github.com/jsSHA/'>jsSHA</a> Copyright jsSHA authors. Licensed under the BSD License.</p><p><a target='_blank' href='http://davidshimjs.github.io/qrcodejs/'>qrcode.js</a> Copyright qrcode.js author. Licensed under the MIT License.</p><p><a target='_blank' href='https://code.google.com/p/crypto-js/'>crypto-js</a> Copyright crypto-js author. Licensed under the BSD License.</p><p><a target='_blank' href='https://www.google.com/fonts/specimen/Droid+Sans+Mono'>Droid Sans Mono</a> Copyright Steve Matteson. Licensed under the Apache License.</p><p><a target='_blank' href='http://fontawesome.io'>Font Awesome</a> Copyright Dave Gandy. Licensed under the SIL OFL License 1.1.</p><p>Thanks to <a target='_blank' href='https://github.com/multiwebinc'>Mike Robinson</a> &lt;3</p>",
28-
"description": "Information."
29-
},
3026
"add_qr": {
3127
"message": "Scan QR Code",
3228
"description": "Scan QR Code."
@@ -51,21 +47,17 @@
5147
"message": "No",
5248
"description": "No."
5349
},
54-
"err_acc_sec": {
55-
"message": "Please enter account and secret.",
56-
"description": "Input Account and Secret."
57-
},
5850
"account": {
5951
"message": "Account",
6052
"description": "Account."
6153
},
6254
"accountName": {
63-
"message": "Account name",
55+
"message": "Account Name",
6456
"description": "Account Name."
6557
},
66-
"username": {
67-
"message": "Username",
68-
"description": "Username."
58+
"issuer": {
59+
"message": "Issuer",
60+
"description": "Issuer."
6961
},
7062
"secret": {
7163
"message": "Secret",
@@ -109,7 +101,7 @@
109101
},
110102
"confirm_phrase": {
111103
"message": "Confirm Password",
112-
"description": "Confirmm Passphrase."
104+
"description": "Confirm Passphrase."
113105
},
114106
"confirm_delete" : {
115107
"message": "Are you sure you want to delete this secret? This action cannot be undone.",
@@ -128,7 +120,7 @@
128120
"description": "Passphrase Incorrect."
129121
},
130122
"phrase_not_match": {
131-
"message": "Two passphrases do not match.",
123+
"message": "Password does not match.",
132124
"description": "Passphrase Not Match."
133125
},
134126
"encrypted": {
@@ -175,10 +167,6 @@
175167
"message": "Capture failed, please reload the page and try again.",
176168
"description": "Capture Failed"
177169
},
178-
"unencrypted_secret_warning": {
179-
"message": "This secret is not encrypted! Click here to set a passphrase.",
180-
"description": "Unencrypted Secret Warning"
181-
},
182170
"based_on_time": {
183171
"message": "Time Based",
184172
"description": "Time Based"
@@ -212,7 +200,7 @@
212200
"description": "Import backup file."
213201
},
214202
"import_backup_code": {
215-
"message": "Import Backup Code",
203+
"message": "Import Text Backup",
216204
"description": "Import backup code."
217205
},
218206
"dropbox_backup": {
@@ -238,5 +226,9 @@
238226
"dropbox_risk": {
239227
"message": "Warning: backups saved in Dropbox are unencrypted. Use at your own risk.",
240228
"description": "Dropbox backup risk warning."
229+
},
230+
"import_error_password": {
231+
"message": "You must provide correct password to import backups.",
232+
"description": "Error password warning when import backups."
241233
}
242234
}

_locales/zh_CN/messages.json

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
"message": "密钥错误,仅支持Base32(A-Z,2-7及=)和HEX(0-9及A-F)格式,然而您的密钥是:",
2424
"description": "Secret Error."
2525
},
26-
"info": {
27-
"message": "<p><strong>Authenticator<\/strong> for Google&trade; Authenticator,<br\/>&copy; 2018 <a target='_blank' href='https:\/\/github.com\/Authenticator-Extension'>Authenticator Extension<\/a>. Released under the MIT License.<\/p><p>Google&trade;是Google的商标,Google Authenticator是Google的商品名,以上所有权归Google公司所有。<\/p><p><a target='_blank' href='https:\/\/github.com\/LazarSoft\/jsqrcode'>jsqrcode<\/a>的所有权归jsqrcode的作者所有。以Apache协议授权。<\/p><p><a target='_blank' href='https:\/\/github.com\/zxing\/zxing'>ZXing<\/a>的所有权归ZXing的作者所有。以Apache协议授权。<\/p><p><a target='_blank' href='http:\/\/blog.tinisles.com\/2011\/10\/google-authenticator-one-time-password-algorithm-in-javascript\/'>totp.js<\/a>的所有权归其作者所有。以MIT协议授权。<\/p><p><a target='_blank' href='http:\/\/caligatio.github.com\/jsSHA\/'>jsSHA<\/a>的所有权归jsSHA的作者所有。以BSD协议授权。<\/p><p><a target='_blank' href='http:\/\/davidshimjs.github.io\/qrcodejs\/'>qrcode.js<\/a>的所有权归qrcode.js作者所有。以MIT协议授权。<\/p><p><a target='_blank' href='https:\/\/code.google.com\/p\/crypto-js\/'>crypto-js<\/a>的所有权归crypto-js作者所有。以BSD协议授权。<\/p><p><a target='_blank' href='https:\/\/www.google.com\/fonts\/specimen\/Droid+Sans+Mono'>Droid Sans Mono<\/a>的所有权归Steve Matteson所有。以Apache协议授权。<\/p><p><a target='_blank' href='http:\/\/fontawesome.io'>Font Awesome<\/a>的所有权归Dave Gandy所有。以SIL OFL协议1.1授权。<\/p><p>感谢 <a target='_blank' href='https:\/\/github.com\/multiwebinc'>Mike Robinson<\/a> &lt;3<\/p>",
28-
"description": "Information."
29-
},
3026
"add_qr": {
3127
"message": "扫描QR码",
3228
"description": "Scan QR Code."
@@ -51,10 +47,6 @@
5147
"message": "",
5248
"description": "No."
5349
},
54-
"err_acc_sec": {
55-
"message": "请输入账户和密钥。",
56-
"description": "Input Account and Secret."
57-
},
5850
"account": {
5951
"message": "账户",
6052
"description": "Account."
@@ -63,9 +55,9 @@
6355
"message": "账户名称",
6456
"description": "Account Name."
6557
},
66-
"username": {
67-
"message": "用户名",
68-
"description": "Username."
58+
"issuer": {
59+
"message": "签发方",
60+
"description": "Issuer."
6961
},
7062
"secret": {
7163
"message": "密钥",
@@ -175,10 +167,6 @@
175167
"message": "捕捉失败,请重载您正在浏览的页面后重试。",
176168
"description": "Capture Failed"
177169
},
178-
"unencrypted_secret_warning": {
179-
"message": "此密钥未被加密!点击此处来设置一个密码以解决此问题。",
180-
"description": "Unencrypted Secret Warning"
181-
},
182170
"based_on_time": {
183171
"message": "基于时间",
184172
"description": "Time Based"
@@ -212,7 +200,7 @@
212200
"description": "Import backup file."
213201
},
214202
"import_backup_code": {
215-
"message": "导入备份代码",
203+
"message": "导入备份文本",
216204
"description": "Import backup code."
217205
},
218206
"dropbox_backup": {
@@ -238,5 +226,9 @@
238226
"dropbox_risk": {
239227
"message": "警告:保存至Dropbox的备份均未备份,您需自担风险。",
240228
"description": "Dropbox backup risk warning."
229+
},
230+
"import_error_password": {
231+
"message": "您必须提供正确的密码才能导入备份。",
232+
"description": "Error password warning when import backups."
241233
}
242-
}
234+
}

css/import.css

Lines changed: 112 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,112 @@
1-
[v-cloak] { display: none }
2-
3-
#authenticator {
4-
width: 600px;
5-
position: relative;
6-
margin: 0 auto;
7-
}
8-
9-
.import_tab {
10-
text-align: center;
11-
font-size: 0;
12-
}
13-
14-
.import_tab input {
15-
display: none;
16-
}
17-
18-
.import_tab label {
19-
width: 250px;
20-
height: 50px;
21-
line-height: 50px;
22-
font-size: 18px;
23-
text-align: center;
24-
display: inline-block;
25-
margin: 20px;
26-
cursor: pointer;
27-
border-radius: 2px;
28-
}
29-
30-
.import_tab input:checked + label,
31-
.import_tab label:hover {
32-
background: #eee;
33-
}
34-
35-
.import_file {
36-
text-align: center;
37-
}
38-
39-
.import_file input {
40-
display: none;
41-
}
42-
43-
button,
44-
.import_file label {
45-
display: inline-block;
46-
width: 260px;
47-
height: 60px;
48-
line-height: 60px;
49-
border: #CCC 1px solid;
50-
background: white;
51-
border-radius: 2px;
52-
position: relative;
53-
text-align: center;
54-
font-size: 16px;
55-
color: gray;
56-
cursor: pointer;
57-
outline: none;
58-
}
59-
60-
button:hover,
61-
.import_file label:hover {
62-
color: black;
63-
}
64-
65-
.import_encrypted {
66-
margin-bottom: 20px;
67-
}
68-
69-
.import_encrypted input {
70-
margin-left: 0;
71-
}
72-
73-
.import_code {
74-
float: left;
75-
margin-left: 30px;
76-
margin-right: 40px;
77-
}
78-
79-
.import_code textarea {
80-
width: 250px;
81-
height: 400px;
82-
padding: 10px;
83-
outline: none;
84-
resize: none;
85-
box-sizing: border-box;
86-
}
87-
88-
.import_passphrase input {
89-
padding: 10px;
90-
margin-bottom: 20px;
91-
width: 250px;
92-
border: #CCC 1px solid;
93-
background: white;
94-
outline: none;
95-
}
1+
::-webkit-scrollbar {
2+
width: 10px;
3+
background: #EEE;
4+
}
5+
6+
::-webkit-scrollbar-thumb {
7+
background-color: #AAA;
8+
border: 2px solid #EEE;
9+
border-radius: 5px;
10+
}
11+
12+
[v-cloak] { display: none }
13+
14+
#authenticator {
15+
width: 600px;
16+
position: relative;
17+
margin: 0 auto;
18+
}
19+
20+
.import_tab {
21+
text-align: center;
22+
font-size: 0;
23+
}
24+
25+
.import_tab input {
26+
display: none;
27+
}
28+
29+
.import_tab label {
30+
width: 250px;
31+
height: 50px;
32+
line-height: 50px;
33+
font-size: 18px;
34+
text-align: center;
35+
display: inline-block;
36+
margin: 20px;
37+
cursor: pointer;
38+
border-radius: 2px;
39+
}
40+
41+
.import_tab input:checked + label,
42+
.import_tab label:hover {
43+
background: #eee;
44+
}
45+
46+
.import_file {
47+
text-align: center;
48+
}
49+
50+
.import_file input {
51+
display: none;
52+
}
53+
54+
button,
55+
.import_file label {
56+
display: inline-block;
57+
width: 260px;
58+
height: 60px;
59+
line-height: 60px;
60+
border: #CCC 1px solid;
61+
background: white;
62+
border-radius: 2px;
63+
position: relative;
64+
text-align: center;
65+
font-size: 16px;
66+
color: gray;
67+
cursor: pointer;
68+
outline: none;
69+
}
70+
71+
button:hover,
72+
.import_file label:hover {
73+
color: black;
74+
}
75+
76+
.import_encrypted {
77+
margin-bottom: 20px;
78+
}
79+
80+
.import_encrypted input {
81+
margin-left: 0;
82+
}
83+
84+
.import_code {
85+
float: left;
86+
margin-left: 30px;
87+
margin-right: 40px;
88+
}
89+
90+
.import_code textarea {
91+
width: 250px;
92+
height: 400px;
93+
padding: 10px;
94+
outline: none;
95+
resize: none;
96+
box-sizing: border-box;
97+
}
98+
99+
.import_passphrase input {
100+
padding: 10px;
101+
margin-bottom: 20px;
102+
width: 250px;
103+
border: #CCC 1px solid;
104+
background: white;
105+
outline: none;
106+
}
107+
108+
.error_password {
109+
font-size: 18px;
110+
color: gray;
111+
text-align: center;
112+
}

0 commit comments

Comments
 (0)