This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Base from "controllers/base"; | |
| export default class extends Base { | |
| static targets = ["checkbox", "toggler", "count", "menu", "hide"]; | |
| mount() { | |
| this.on("turbo:morph", document, this.update); | |
| this.on("click", this.togglerTarget, this.toggle); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import LocalAuthentication | |
| class BiometricAuthenticationManager { | |
| enum BiometricAuthenticationType { | |
| case faceID(permitted: Bool) | |
| case touchID | |
| case none | |
| } | |