Skip to content

Commit

Permalink
v7.0.0 (#1195)
Browse files Browse the repository at this point in the history
* add compact theme

* Add new strings

This commit was automatically made by run 1641549669

* add icon for shortcut (#820)

* strict ts

* managed storage not available in safari.

* use blob url to replace data url (#817)

* Add flat theme.

* add permissions management (#827)

* add permissions management

* hide required permission by default

* update permission description

* update strings

Co-authored-by: Brendan Early <[email protected]>

* Add new strings

This commit was automatically made by run 1704482678

* Bump pathval from 1.1.0 to 1.1.1 (#852)

Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/chaijs/pathval/releases)
- [Changelog](https://github.com/chaijs/pathval/blob/master/CHANGELOG.md)
- [Commits](chaijs/pathval@v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: pathval
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump node-fetch from 2.6.1 to 2.6.7 (#853)

Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](node-fetch/node-fetch@v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump urijs from 1.19.7 to 1.19.10 (#873)

Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.7 to 1.19.10.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](medialize/URI.js@v1.19.7...v1.19.10)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump minimist from 1.2.5 to 1.2.6 (#884)

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ansi-regex from 3.0.0 to 3.0.1 (#885)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump urijs from 1.19.10 to 1.19.11 (#886)

Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.10 to 1.19.11.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](medialize/URI.js@v1.19.10...v1.19.11)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add autofill command (#831)

* add autofill command

* address comment

* Add 'wasm-unsafe-eval' to custom CSP (fix #906)

It seems that some dependencies (at least argon2-browser) require allowing WebAssembly at the CSP level.
Recent Firefox allows that by default, but having your own CSP means this extension won't be able to benefit from this automatically.

* revert unnecessary change

* Update readme

* Browser componnet

* isFirefox

* isEdge.

* 💄

* TypeScript does not like type annotation for catch.

* 💄

* fix build

* update theme for safari

* fix local download

* update to latest

* minimal change

* 💄

* fix redundant theme option

* Update translations from crowdin

* Update readme for safari.

* Use `&&`

* Add new strings

This commit was automatically made by run 2680600562

* Bump terser from 4.8.0 to 4.8.1 (#929)

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump loader-utils from 1.4.0 to 1.4.1 (#970)

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump qs from 6.9.4 to 6.11.0 (#985)

Bumps [qs](https://github.com/ljharb/qs) from 6.9.4 to 6.11.0.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.9.4...v6.11.0)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump json5 from 1.0.1 to 1.0.2 (#993)

Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](json5/json5@v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump cookiejar from 2.1.2 to 2.1.4 (#1006)

Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.2 to 2.1.4.
- [Release notes](https://github.com/bmeck/node-cookiejar/releases)
- [Commits](https://github.com/bmeck/node-cookiejar/commits)

---
updated-dependencies:
- dependency-name: cookiejar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix disable backup policy not working issue (#1050)

* 6.3.5

* typo

* fix typo (#1144)

* add import QR images/OTP URLs buttons to add account page

* Add new strings

This commit was automatically made by run 8076854721

* Migrate to MV3 (Chrome, Firefox, Edge) (#1009)

* Migrate to MV3

* fix entry type

* fix default storage area

* fix mv3 migration errors

* further CI fixes

* Fix disable backup policy not working issue (#1050)

* 6.3.5

* typo

* Fix bad practice with argon2-browser

* Remove 'offline_enabled' from manifest

* update test runner and coverage for mv3

* don't use dev config by default

* fix typo (#1144)

* add import QR images/OTP URLs buttons to add account page

* Migrate to MV3

* fix entry type

* fix default storage area

* fix mv3 migration errors

* further CI fixes

* Fix bad practice with argon2-browser

* Remove 'offline_enabled' from manifest

* update test runner and coverage for mv3

* don't use dev config by default

* dump version

* update manifest

* fix ff csp

* remove artifact

* rename test files

* move syncTimeWithGoogle out of popup.ts

this prevents a dependency issue in the tests

* fix the tests, remove code coverage

mv3 makes code cov w/ istanbul virtually impossible due to restrictions on unsafe-eval

* remove testing code

* refactor user settings (#1191)

* remove out-of-date eslint comments

* fix user settings migration issue

* fix user setting migration issue

* fix edge errors

* fix edge issues

* update firefox permissions

* remove all_urls permission since Firefox has supported activeTab

* fix firefox crash due to functions getting added to usersettings object

---------

Co-authored-by: Brendan Early <[email protected]>
Co-authored-by: Zhe Li <[email protected]>
Co-authored-by: spaette <[email protected]>
Co-authored-by: vuittont60 <[email protected]>

* Add new strings

This commit was automatically made by run 9249787733

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Zhe Li <[email protected]>
Co-authored-by: rebornix <[email protected]>
Co-authored-by: Brendan Early <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Frederik Braun <[email protected]>
Co-authored-by: Peng Lyu <[email protected]>
Co-authored-by: spaette <[email protected]>
Co-authored-by: vuittont60 <[email protected]>
  • Loading branch information
10 people authored May 27, 2024
1 parent c3d1fdf commit bf630cc
Show file tree
Hide file tree
Showing 104 changed files with 10,609 additions and 15,369 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,34 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/[email protected]

- name: Install dependencies
run: |
npm i prettier
sudo npm i -g lintspaces-cli
- name: Prettier
run: ./node_modules/prettier/bin-prettier.js --check ./src/* ./src/**/* ./src/**/**/* ./sass/*.scss

- name: lintspaces
run: |
lintspaces -nt -d 'spaces' -i 'js-comments' src/*/* src/*.ts view/* manifest-*.json css/popup.css css/import.css
build:
runs-on: ubuntu-latest
name: Build ${{ matrix.platform }}

strategy:
matrix:
platform: ["chrome", "firefox"]

steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/[email protected]

- name: Install dependencies
run: npm ci

- name: Build
run: npm run ${{ matrix.platform }}
run-tests:
Expand All @@ -63,6 +59,3 @@ jobs:
uses: mujo-code/puppeteer-headful@master
with:
args: npm test

- name: Codecov
uses: codecov/[email protected]
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
node_modules
build
chrome
firefox
edge
chrome*
firefox*
edge*
dist
.vscode
.atom-build.yml
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

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

[<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://microsoftedge.microsoft.com/addons/detail/ocglkepbibnalbgmbachknglpdipeoio)
[<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://microsoftedge.microsoft.com/addons/detail/ocglkepbibnalbgmbachknglpdipeoio) [<img width="150" alt="Download on the App Store" src="https://developer.apple.com/assets/elements/badges/download-on-the-app-store.svg"/>](https://apps.apple.com/us/app/authen/id1602945200?mt=12)

## Build Setup

Expand All @@ -22,6 +22,8 @@ npm ci
npm run prod
```

To reproduce a build for Safari, please follow contribution guidance in [Authenticator-Extension/Authen](https://github.com/Authenticator-Extension/Authen#how-to-contribute)

## Development (Chrome)

``` bash
Expand Down
143 changes: 108 additions & 35 deletions _locales/ar/messages.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extName": {
"message": "مصادقة",
"message": "Authenticator",
"description": "Extension Name."
},
"extShortName": {
"message": "المصادقة",
"message": "Authenticator",
"description": "Extension Short Name."
},
"extDesc": {
Expand All @@ -16,11 +16,11 @@
"description": "Added Account."
},
"errorqr": {
"message": "رمز الاستجابة السريع غير معترف به.",
"message": "رمز QR غير معروف.",
"description": "QR Error."
},
"errorsecret": {
"message": "بيانات الحساب غير صالحة",
"message": "سرية الحساب غير صالحة",
"description": "Secret Error."
},
"add_code": {
Expand All @@ -40,7 +40,7 @@
"description": "Import migration data failed."
},
"migration_partly_fail": {
"message": "Some account data was not imported successfully.",
"message": "بعض بيانات الحساب لم يتم استيرادها بنجاح.",
"description": "Some migration data is broken."
},
"close": {
Expand All @@ -52,7 +52,7 @@
"description": "OK."
},
"yes": {
"message": "نعم!",
"message": "نعم",
"description": "Yes."
},
"no": {
Expand Down Expand Up @@ -84,15 +84,15 @@
"description": "Update Failure."
},
"about": {
"message": "حول التطبيق",
"message": "عن",
"description": "About."
},
"settings": {
"message": "الاعدادات",
"description": "Settings."
},
"security": {
"message": "الوظائف الأمنية",
"message": "الحماية",
"description": "Security."
},
"current_phrase": {
Expand All @@ -112,25 +112,25 @@
"description": "Confirm Passphrase."
},
"confirm_delete": {
"message": "هل أنت متأكد من حذف هذا الملف؟ لا يمكن التراجع عن هذا الإجراء.",
"message": "هل أنت متأكد من حذف هذا الحساب؟ لا يمكن التراجع عن هذا الإجراء.",
"description": "Remove entry confirmation"
},
"confirm_delete_all": {
"message": "أفهم أنه سيتم حذف جميع بياناتي بشكل لا رجعة فيه.",
"description": "Message that user is required to acknowledge before clearing all data."
},
"delete_all": {
"message": "إعادة تعيين أداة المصادقة"
"message": "إعادة تعيين Authenticator"
},
"delete_all_warning": {
"message": "سيؤدي هذا إلى حذف جميع بياناتك وإعادة تعيين أداة المصادقة بالكامل. لن تتمكن من استعادة أي بيانات محذوفة! يجب مراعاة حفظ نسخة احتياطية قبل إعادة تعيين أداة المصادقة."
"message": "سيؤدي هذا إلى حذف جميع بياناتك وإعادة تعيين Authenticator بالكامل. لن تتمكن من استعادة أي بيانات محذوفة! يجب مراعاة حفظ نسخة احتياطية قبل إعادة تعيين Authenticator."
},
"security_warning": {
"message": "سيتم استخدام كلمة المرور هذه لتشفير الحسابات الخاصة بك. لا يمكن أن يساعدك أحد إذا كنت قد نسيت كلمة المرور.",
"message": "سيتم استخدام كلمة المرور هذه لتشفير الحسابات الخاصة بك. لن يساعدك أحد إذا كنت قد نسيت كلمة المرور.",
"description": "Passphrase Warning."
},
"update": {
"message": "التحديث",
"message": "حدِّث",
"description": "Update."
},
"phrase_incorrect": {
Expand Down Expand Up @@ -170,7 +170,7 @@
"description": "Passphrase Info"
},
"sync_clock": {
"message": "Sync Clock with Google",
"message": "مزامنة الساعة مع جوجل",
"description": "Sync Clock"
},
"remember_phrase": {
Expand All @@ -190,15 +190,15 @@
"description": "Capture Failed"
},
"capture_local_file_failed": {
"message": "هل تحاول مسح رمز QR من ملف محلي؟ استخدم استيراد نسخة احتياطية لصورة QR بدلاً من ذلك.",
"message": "Are you trying to scan QR code from a local file? Use Import QR Image Backup instead.",
"description": "Import QR image backup instead of scan local image"
},
"based_on_time": {
"message": "على أساس الوقت",
"description": "Time Based"
},
"based_on_counter": {
"message": "قائم على العداد",
"message": "Counter Based",
"description": "Counter Based"
},
"resize_popup_page": {
Expand Down Expand Up @@ -234,7 +234,7 @@
"description": "Import backup code."
},
"import_backup_qr_partly_failed": {
"message": "Import successful, but some QR codes could not be recognized.",
"message": "تم الاستيراد بنجاح، ولكن لم يتم التعرف على بعض رموز QR.",
"description": "Import successful, but some QR image cannot be recognized."
},
"import_backup_qr_in_batches": {
Expand Down Expand Up @@ -306,9 +306,13 @@
"description": "Dark theme"
},
"theme_simple": {
"message": "Simple",
"message": "بسيط",
"description": "Simple theme"
},
"theme_compact": {
"message": "مبسط",
"description": "Compact theme"
},
"theme_high_contrast": {
"message": "تباين عالي",
"description": "High Contrast theme"
Expand Down Expand Up @@ -395,51 +399,120 @@
"message": "قم بالنسخ الاحتياطي لبياناتك إلى ملف."
},
"password_policy_default_hint": {
"message": "Your password does not meet your organization's security requirements. Contact your administrator for more information."
"message": "كلمة المرور الخاصة بك لا تفي بمتطلبات أمان مؤسستك. اتصل بالمسؤول للحصول على مزيد من المعلومات."
},
"advisor": {
"message": "Advisor"
"message": "مستشار"
},
"advisor_insight_password_not_set": {
"message": "Set a password to protect your data."
"message": "تعيين كلمة مرور لحماية بياناتك."
},
"advisor_insight_auto_lock_not_set": {
"message": "Enable auto-lock to protect your data."
"message": "تفعيل القفل التلقائي لحماية بياناتك."
},
"advisor_insight_browser_sync_not_enabled": {
"message": "Browser sync is disabled. Enabling it allows accounts to be synced across browsers."
"message": "مزامنة المتصفح معطلة. تمكينه يسمح للمزامنة بين الحسابات عبر المتصفحات."
},
"advisor_insight_auto_fill_not_enabled": {
"message": "Autofill can be enabled to automatically fill codes into websites."
"message": "يمكن تمكين التعبئة التلقائية لملء الرموز تلقائياً في مواقع الويب."
},
"advisor_insight_smart_filter_not_enabled": {
"message": "Enabling smart filter allows for quick access to accounts."
"message": "تفعيل الفلتر الذكي يسمح بالوصول السريع إلى الحسابات."
},
"show_all_insights": {
"message": "Show all insights."
"message": "إظهار جميع الرؤى."
},
"no_insight_available": {
"message": "No insights found, everything looks good!"
"message": "لم يتم العثور على رؤية، كل شيء يبدو جيدًا!"
},
"danger": {
"message": "Danger"
"message": "خطر"
},
"warning": {
"message": "Warning"
"message": "تحذير"
},
"info": {
"message": "Info"
"message": "معلومات"
},
"dismiss": {
"message": "Dismiss"
"message": "تجاهل"
},
"learn_more": {
"message": "Learn more"
"message": "لمعرفة المزيد"
},
"enable_context_menu": {
"message": "Add to context menu"
"message": "إضافة إلى قائمة السياق"
},
"no_entires": {
"message": "No accounts to display. Add your first account now."
"message": "لا توجد حسابات لعرضها. أضف حسابك الأول الآن."
},
"permissions": {
"message": "الصلاحيات"
},
"permission_revoke": {
"message": "تعطيل"
},
"permission_show_required_permissions": {
"message": "إظهار الأذونات غير القابلة للتعطيل"
},
"permission_required": {
"message": "هذه الصلاحية اساسية و لا يمكن تعطيلها."
},
"permission_active_tab": {
"message": "الوصول إلى علامة التبويب الحالية لمسح رموز QR."
},
"permission_storage": {
"message": "الوصول إلى تخزين المتصفح لتخزين بيانات الحساب."
},
"permission_identity": {
"message": "يسمح بتسجيل الدخول إلى خدمات تخزين طرف ثالث."
},
"permission_clipboard_write": {
"message": "يمنح صلاحية الكتابة فقط إلى الحافظة لنسخ الرموز إلى الحافظة عند النقر على الحساب."
},
"permission_context_menus": {
"message": "يضيف Authenticator إلى القائمة."
},
"permission_sync_clock": {
"message": "يسمح بمزامنة الساعة مع جوجل."
},
"permission_dropbox": {
"message": "يسمح بالنسخ الاحتياطي إلى Dropbox."
},
"permission_dropbox_cannot_revoke": {
"message": "يجب عليك تعطيل النسخ الاحتياطي لـ Dropbox أولاً."
},
"permission_drive": {
"message": "يسمح بالنسخ الاحتياطي لGoogle Drive."
},
"permission_drive_cannot_revoke": {
"message": "يجب عليك تعطيل النسخ الاحتياطي لـ Google Drive أولاً."
},
"permission_onedrive": {
"message": "يسمح بالنسخ الاحتياطي لـ OneDrive."
},
"permission_onedrive_cannot_revoke": {
"message": "يجب عليك تعطيل النسخ الاحتياطي لـ OneDrive أولاً."
},
"permission_unknown_permission": {
"message": "صلاحية غير معروفة. إذا وجدت هذه الرسالة، يرجى إرسال تقرير عن الأخطاء."
},
"theme_flat": {
"message": "Flat",
"description": "Flat theme"
},
"import_qr_images": {
"message": "Import QR Images",
"description": "Import qr images. Shown as add account method."
},
"import_otp_urls": {
"message": "Import OTP URLs",
"description": "Import OTP URLs. Shown as add account method."
},
"permission_alarms": {
"message": "Allows auto-lock to work."
},
"permission_scripting": {
"message": "Inject scripts into he current tab to scan QR codes and allow auto-fill to work."
}
}
}
Loading

0 comments on commit bf630cc

Please sign in to comment.