Refactors most controllers and directives into classes for more organized and maintainable code

This commit is contained in:
Mo Bitar
2020-01-30 13:37:16 -06:00
parent badadba8f8
commit 3c8c43ac7e
144 changed files with 87972 additions and 5613 deletions

View File

@@ -4,18 +4,31 @@
.sk-panel-header-title Passcode Required
.sk-panel-content
.sk-panel-section
form.sk-panel-form.sk-panel-row(ng-submit='submitPasscodeForm()')
form.sk-panel-form.sk-panel-row(ng-submit='ctrl.submitPasscodeForm($event)')
.sk-panel-column.stretch
input#passcode-input.center-text.sk-input.contrast(autocomplete='new-password', autofocus='true', ng-model='formData.passcode', placeholder='Enter Passcode', should-focus='true', sn-autofocus='true', type='password')
input#passcode-input.center-text.sk-input.contrast(
autocomplete='new-password',
autofocus='true',
ng-model='ctrl.formData.passcode',
placeholder='Enter Passcode',
should-focus='true',
sn-autofocus='true',
type='password'
)
.sk-button-group.stretch.sk-panel-row.form-submit
button.sk-button.info(type='submit')
.sk-label Unlock
.sk-panel-footer
#passcode-reset
a.sk-a.neutral(ng-click='forgotPasscode()', ng-if='!formData.showRecovery') Forgot?
div(ng-if='formData.showRecovery')
a.sk-a.neutral(
ng-click='ctrl.forgotPasscode()',
ng-if='!ctrl.formData.showRecovery'
) Forgot?
div(ng-if='ctrl.formData.showRecovery')
.sk-p
| If you forgot your local passcode, your only option is to clear your local data from this device
| and sign back in to your account.
| If you forgot your local passcode, your only option is to clear
| your local data from this device and sign back in to your account.
.sk-panel-row
a.sk-a.danger.center-text(ng-click='beginDeleteData()') Delete Local Data
a.sk-a.danger.center-text(
ng-click='ctrl.beginDeleteData()'
) Delete Local Data