Skip to content

Commit

Permalink
feat(homebridge): custom ui for config-ui-x
Browse files Browse the repository at this point in the history
Closes #696
  • Loading branch information
dgreif committed Jul 31, 2021
1 parent bed30d3 commit 4705d58
Show file tree
Hide file tree
Showing 18 changed files with 19,334 additions and 44 deletions.
7 changes: 2 additions & 5 deletions api/refresh-token.ts
Expand Up @@ -17,11 +17,8 @@ export async function acquireRefreshToken() {
}
},
auth: AuthTokenResponse = await restClient.getCurrentAuth().catch((e) => {
if (restClient.using2fa) {
console.log(
restClient.promptFor2fa ||
'Please enter the code sent to your text/email'
)
if (restClient.promptFor2fa) {
console.log(restClient.promptFor2fa)
return getAuthWith2fa()
}

Expand Down
2 changes: 1 addition & 1 deletion api/rest-client.ts
Expand Up @@ -196,7 +196,7 @@ export class RingRestClient {

this.promptFor2fa = `Please enter the code ${prompt}`
} else {
this.promptFor2fa = undefined
this.promptFor2fa = 'Please enter the code sent to your text/email'
}

throw new Error(
Expand Down
1 change: 1 addition & 0 deletions homebridge-ui/.env.development
@@ -0,0 +1 @@
PUBLIC_URL=/api/plugins/settings-ui/homebridge-ring
23 changes: 23 additions & 0 deletions homebridge-ui/.gitignore
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

0 comments on commit 4705d58

Please sign in to comment.