@things-factory/auth-ui 4.3.122 → 4.3.138

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.
@@ -365,10 +365,10 @@ class Application extends connect(store)(PageView) {
365
365
  })
366
366
 
367
367
  if (response.errors) {
368
- console.error('update fail')
368
+ this.showToast('resource failed to update')
369
369
  } else {
370
370
  this.application = { ...this.application, ...response.data.updateApplication }
371
- console.log('update sucess')
371
+ this.showToast('resource updated successfully')
372
372
  }
373
373
  }
374
374
 
@@ -390,12 +390,16 @@ class Application extends connect(store)(PageView) {
390
390
 
391
391
  const result = response.data.deleteApplication
392
392
  if (result) {
393
- console.log('delete sucess')
393
+ this.showToast('resource deleted successfully')
394
394
  navigate('applications')
395
395
  } else {
396
- console.error('delete fail')
396
+ this.showToast('resource failed to delete')
397
397
  }
398
398
  }
399
+
400
+ showToast(message) {
401
+ document.dispatchEvent(new CustomEvent('notify', { detail: { message } }))
402
+ }
399
403
  }
400
404
 
401
405
  window.customElements.define('application-page', Application)
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@things-factory/auth-ui",
3
- "version": "4.3.122",
3
+ "version": "4.3.138",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
7
- "license": "MIT",
8
7
  "author": "heartyoh",
9
8
  "description": "User interface for sign in and sign up page using JSON web token.",
10
9
  "publishConfig": {
@@ -34,10 +33,10 @@
34
33
  "@operato/i18n": "^0.4.6",
35
34
  "@operato/layout": "^0.4.6",
36
35
  "@operato/lottie-player": "^0.4.6",
37
- "@things-factory/auth-base": "^4.3.122",
38
- "@things-factory/i18n-base": "^4.3.122",
39
- "@things-factory/more-base": "^4.3.122",
36
+ "@things-factory/auth-base": "^4.3.138",
37
+ "@things-factory/i18n-base": "^4.3.131",
38
+ "@things-factory/more-base": "^4.3.131",
40
39
  "clipboard": "^2.0.6"
41
40
  },
42
- "gitHead": "3edd80e6ca68480b22ee0e25eba34d13ab0e49f1"
41
+ "gitHead": "1d4e0a3ff6b8792c843b9735a28a3f5fb946b144"
43
42
  }
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Hatiolab
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.