@things-factory/auth-ui 4.3.86 → 4.3.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './application'
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { LitElement, css, html } from 'lit'
|
|
2
|
-
import { PageView, client, navigate, store } from '@things-factory/shell'
|
|
3
|
-
|
|
4
1
|
import Clipboard from 'clipboard'
|
|
5
|
-
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
6
2
|
import gql from 'graphql-tag'
|
|
3
|
+
import { css, html } from 'lit'
|
|
4
|
+
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
5
|
+
|
|
6
|
+
import { client, navigate, PageView, store } from '@things-factory/shell'
|
|
7
|
+
|
|
8
|
+
import { APPLICATION_TYPES } from '../../constants/application'
|
|
7
9
|
|
|
8
10
|
class Application extends connect(store)(PageView) {
|
|
9
11
|
static get styles() {
|
|
@@ -43,7 +45,8 @@ class Application extends connect(store)(PageView) {
|
|
|
43
45
|
color: var(--label-color);
|
|
44
46
|
text-transform: var(--label-text-transform);
|
|
45
47
|
}
|
|
46
|
-
input
|
|
48
|
+
input,
|
|
49
|
+
select {
|
|
47
50
|
border: var(--border-dark-color);
|
|
48
51
|
border-radius: var(--border-radius);
|
|
49
52
|
margin: var(--input-margin);
|
|
@@ -171,6 +174,16 @@ class Application extends connect(store)(PageView) {
|
|
|
171
174
|
<input id="email" type="text" name="email" .value=${app.email} />
|
|
172
175
|
</div>
|
|
173
176
|
|
|
177
|
+
<div field grid-span>
|
|
178
|
+
<label for="type-selector">type</label>
|
|
179
|
+
<select id="type-selector" name="type">
|
|
180
|
+
${APPLICATION_TYPES.map(
|
|
181
|
+
type =>
|
|
182
|
+
html`<option value="${app.type}" ?selected="${type === app.type ? true : false}">${type}</option>`
|
|
183
|
+
)}
|
|
184
|
+
</select>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
174
187
|
<div field grid-span>
|
|
175
188
|
<label for="url">application URL</label>
|
|
176
189
|
<input id="url" type="text" name="url" .value=${app.url} />
|
|
@@ -287,7 +300,7 @@ class Application extends connect(store)(PageView) {
|
|
|
287
300
|
async fetchApplication() {
|
|
288
301
|
const response = await client.query({
|
|
289
302
|
query: gql`
|
|
290
|
-
query($id: String!) {
|
|
303
|
+
query ($id: String!) {
|
|
291
304
|
application(id: $id) {
|
|
292
305
|
id
|
|
293
306
|
name
|
|
@@ -302,6 +315,7 @@ class Application extends connect(store)(PageView) {
|
|
|
302
315
|
availableScopes
|
|
303
316
|
appKey
|
|
304
317
|
appSecret
|
|
318
|
+
type
|
|
305
319
|
}
|
|
306
320
|
}
|
|
307
321
|
`,
|
|
@@ -328,7 +342,7 @@ class Application extends connect(store)(PageView) {
|
|
|
328
342
|
|
|
329
343
|
const response = await client.mutate({
|
|
330
344
|
mutation: gql`
|
|
331
|
-
mutation($id: String!, $patch: ApplicationPatch!) {
|
|
345
|
+
mutation ($id: String!, $patch: ApplicationPatch!) {
|
|
332
346
|
updateApplication(id: $id, patch: $patch) {
|
|
333
347
|
id
|
|
334
348
|
name
|
|
@@ -340,6 +354,7 @@ class Application extends connect(store)(PageView) {
|
|
|
340
354
|
webhook
|
|
341
355
|
appKey
|
|
342
356
|
appSecret
|
|
357
|
+
type
|
|
343
358
|
}
|
|
344
359
|
}
|
|
345
360
|
`,
|
|
@@ -364,7 +379,7 @@ class Application extends connect(store)(PageView) {
|
|
|
364
379
|
|
|
365
380
|
const response = await client.mutate({
|
|
366
381
|
mutation: gql`
|
|
367
|
-
mutation($id: String!) {
|
|
382
|
+
mutation ($id: String!) {
|
|
368
383
|
deleteApplication(id: $id)
|
|
369
384
|
}
|
|
370
385
|
`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/auth-ui",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.93",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@operato/i18n": "^0.4.6",
|
|
35
35
|
"@operato/layout": "^0.4.6",
|
|
36
36
|
"@operato/lottie-player": "^0.4.6",
|
|
37
|
-
"@things-factory/auth-base": "^4.3.
|
|
38
|
-
"@things-factory/i18n-base": "^4.3.
|
|
39
|
-
"@things-factory/more-base": "^4.3.
|
|
37
|
+
"@things-factory/auth-base": "^4.3.93",
|
|
38
|
+
"@things-factory/i18n-base": "^4.3.93",
|
|
39
|
+
"@things-factory/more-base": "^4.3.93",
|
|
40
40
|
"clipboard": "^2.0.6"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "eefbb0a37792d183e8b267dc3e0c70c5c3b16068"
|
|
43
43
|
}
|