Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rewrite the UI of the code scanner. #4677

Merged
merged 39 commits into from
Jun 30, 2024

Conversation

sheldon66
Copy link
Contributor

Description

rewrite UI of the code scanner

Motivation

Previously, the QR code scanner used the built-in UI of html5-qrcode, which provided a poor user experience. This rewrite focuses on optimizing the UI for mobile devices.

Key changes

  • Frontend
    The QR code scanner now defaults to using the rear camera and includes UI localization features.

Test plan

Suggestions

Underlying risk

Showcase

20240617-142651.mp4

chenos and others added 30 commits June 4, 2024 23:07
# Conflicts:
#	packages/presets/nocobase/package.json
# Conflicts:
#	packages/plugins/@nocobase/plugin-block-workbench/src/client/WorkbenchBlock.tsx
# Conflicts:
#	packages/presets/nocobase/package.json
# Conflicts:
#	packages/plugins/@nocobase/plugin-block-workbench/src/client/WorkbenchScanActionSchemaInitializerItem.tsx
#	packages/plugins/@nocobase/plugin-block-workbench/src/client/index.tsx
@CLAassistant
Copy link

CLAassistant commented Jun 17, 2024

CLA assistant check
All committers have signed the CLA.

@chenos chenos merged commit ba1cdce into nocobase:main Jun 30, 2024
21 of 23 checks passed
chenos added a commit that referenced this pull request Jun 30, 2024
* feat: workbench block

* feat: mobilePage

* fix: update WorkbenchAction

* feat: support qrcode embed in markdown and scan in mobile

* fix: fix markdown button be covered problem

* fix: fix unit test error

* fix: fix unit test errors

* refactor: use react router in qrcode scanner

* feat: markdown add loading

* fix: fix blank content in print page

* refactor: change plugin dependencies to devDependencies

* feat: add some padding in markdown editor

* chore: improve some code

* feat: improve code

* fix: add QRCodeScanner

* fix: iconColor

* fix: Improve code

* feat: Improve code

* fix: version

* chore: improve some code

* chore: improve some code

* fix: i18n

* refactor: refact the UI of code scanner

* feat: add some locale

* feat: add qrbox

* feat: add image upload and fix qrbox

* feat: fix full screen problem

* fix: fix not full screen problem

* fix: add some error handling

* feat: add album locale

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants