@enso-ui/users 2.0.16 → 2.0.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enso-ui/users",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "description": "Basic users package",
5
5
  "main": "bulma/index.js",
6
6
  "scripts": {
@@ -34,7 +34,8 @@
34
34
  "@enso-ui/ui": "^5.0",
35
35
  "@enso-ui/uploader": "^2.0",
36
36
  "@fortawesome/fontawesome-svg-core": "^1.2.2",
37
- "@fortawesome/free-solid-svg-icons": "^5.2.0",
37
+ "@fortawesome/free-brands-svg-icons": "^5.11.2",
38
+ "@fortawesome/free-solid-svg-icons": "^5.11.2",
38
39
  "@fortawesome/vue-fontawesome": "3.0.0-5",
39
40
  "vue": "^3.0",
40
41
  "vuex": "^4.0.0"
@@ -79,11 +79,11 @@ export default {
79
79
 
80
80
  components: { Avatar, CoreProfileControl, Fa },
81
81
 
82
+ inject: ['i18n'],
83
+
82
84
  methods: {
83
85
  ...mapActions('auth', ['logout']),
84
86
  },
85
-
86
- inject: ['i18n'],
87
87
  };
88
88
  </script>
89
89
 
@@ -147,7 +147,7 @@ export default {
147
147
 
148
148
  inject: [
149
149
  'http', 'i18n', 'canAccess', 'errorHandler', 'route',
150
- 'routerErrorHandler', 'toastr'
150
+ 'routerErrorHandler', 'toastr',
151
151
  ],
152
152
 
153
153
  emits: ['update'],
@@ -33,7 +33,9 @@ import DeleteModal from './components/DeleteModal.vue';
33
33
  export default {
34
34
  name: 'Index',
35
35
 
36
- components: { Avatar, DeleteModal, EnsoTable, Fa },
36
+ components: {
37
+ Avatar, DeleteModal, EnsoTable, Fa,
38
+ },
37
39
 
38
40
  inject: ['canAccess', 'i18n'],
39
41
 
@@ -69,10 +69,10 @@ library.add([
69
69
  export default {
70
70
  name: 'Session',
71
71
 
72
- inject: ['canAccess'],
73
-
74
72
  components: { Confirmation, Fa },
75
73
 
74
+ inject: ['canAccess'],
75
+
76
76
  props: {
77
77
  session: {
78
78
  type: Object,
@@ -49,10 +49,10 @@ library.add(faPlus, faSync, faSearch);
49
49
  export default {
50
50
  name: 'Sessions',
51
51
 
52
- inject: ['canAccess', 'errorHandler', 'http', 'i18n', 'route', 'toastr'],
53
-
54
52
  components: { Fa, Session },
55
53
 
54
+ inject: ['canAccess', 'errorHandler', 'http', 'i18n', 'route', 'toastr'],
55
+
56
56
  props: {
57
57
  id: {
58
58
  type: [Number, String],
@@ -73,7 +73,8 @@ export default {
73
73
  const query = this.query.toLowerCase();
74
74
 
75
75
  return query
76
- ? this.sessions.filter(({ ipAddress, OS, browser }) => OS.toLowerCase().indexOf(query) > -1
76
+ ? this.sessions.filter(({ ipAddress, OS, browser }) => OS
77
+ .toLowerCase().indexOf(query) > -1
77
78
  || ipAddress.toLowerCase().indexOf(query) > -1
78
79
  || browser.toLowerCase().indexOf(query) > -1)
79
80
  : this.sessions;
@@ -52,10 +52,10 @@ library.add([
52
52
  export default {
53
53
  name: 'Token',
54
54
 
55
- inject: ['canAccess'],
56
-
57
55
  components: { Confirmation, Fa },
58
56
 
57
+ inject: ['canAccess'],
58
+
59
59
  props: {
60
60
  token: {
61
61
  type: Object,
@@ -40,11 +40,11 @@
40
40
  </p>
41
41
  </div>
42
42
  <div>
43
- <div v-for="(token, index) in filtered"
44
- :key="token.id">
43
+ <div v-for="(filteredToken, index) in filtered"
44
+ :key="filteredToken.id">
45
45
  <token :id="id"
46
- :token="token"
47
- @delete="destroy(token, index)"/>
46
+ :token="filteredToken"
47
+ @delete="destroy(filteredToken, index)"/>
48
48
  </div>
49
49
  </div>
50
50
  <token-form :path="create"
@@ -71,8 +71,6 @@ library.add(faPlus, faSync, faSearch);
71
71
  export default {
72
72
  name: 'Tokens',
73
73
 
74
- inject: ['canAccess', 'errorHandler', 'http', 'i18n', 'route', 'toastr'],
75
-
76
74
  components: {
77
75
  Fa,
78
76
  Token,
@@ -80,6 +78,8 @@ export default {
80
78
  Url,
81
79
  },
82
80
 
81
+ inject: ['canAccess', 'errorHandler', 'http', 'i18n', 'route', 'toastr'],
82
+
83
83
  props: {
84
84
  id: {
85
85
  type: [Number, String],
@@ -149,9 +149,7 @@
149
149
  </template>
150
150
 
151
151
  <script>
152
- import {
153
- mapState, mapMutations, mapActions, mapGetters,
154
- } from 'vuex';
152
+ import { mapState, mapMutations, mapGetters } from 'vuex';
155
153
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
156
154
  import { library } from '@fortawesome/fontawesome-svg-core';
157
155
  import {
@@ -171,7 +169,7 @@ export default {
171
169
 
172
170
  inject: [
173
171
  'canAccess', 'errorHandler', 'http', 'i18n',
174
- 'route', 'routerErrorHandler'
172
+ 'route', 'routerErrorHandler',
175
173
  ],
176
174
 
177
175
  emits: ['start-impersonating'],