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

Improve <BiometricManager> component #21

Open
deptyped opened this issue Apr 2, 2024 · 0 comments
Open

Improve <BiometricManager> component #21

deptyped opened this issue Apr 2, 2024 · 0 comments

Comments

@deptyped
Copy link
Owner

deptyped commented Apr 2, 2024

  • Slots API
<script lang="ts" setup>
import { BiometricManager } from 'vue-tg'
</script>

<template>
  <BiometricManager>
    <!-- isBiometricInited: false -->
    <template #loading>
      <p>Biometric init...</p>
    </template>

    <!-- isBiometricInited: true, isBiometricAvailable: false -->
    <template #not-supported>
      <p>Biometric is not supported on the current device</p>
    </template>

    <!-- isBiometricInited: true, isBiometricAccessGranted: false -->
    <template #not-granted>
      <p>Biometric access is not granted</p>
    </template>

    <p>Biometric is ready to use</p>
  </BiometricManager>
</template>
deptyped added a commit that referenced this issue Apr 2, 2024
* Implement BiometricManager

* Implement BiometricManager

* Implement BiometricManager (Updated README)

* Consistent naming, make exported refs read-only

* Simplify code

* Remove slot support, #21

* Update docs

---------

Co-authored-by: deptyped <[email protected]>
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

No branches or pull requests

1 participant