@enso-ui/roles 3.0.3 → 4.0.3
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/.eslintrc.js +15 -13
- package/package.json +13 -14
- package/src/bulma/pages/roles/Configure.vue +3 -3
- package/src/bulma/pages/roles/Edit.vue +5 -4
package/.eslintrc.js
CHANGED
|
@@ -1,44 +1,46 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
2
|
+
root: true,
|
|
3
3
|
extends: [
|
|
4
4
|
'airbnb-base',
|
|
5
|
-
'plugin:vue/recommended'
|
|
5
|
+
'plugin:vue/vue3-recommended',
|
|
6
6
|
],
|
|
7
7
|
plugins: [
|
|
8
8
|
'vue',
|
|
9
9
|
],
|
|
10
10
|
globals: {
|
|
11
11
|
axios: true,
|
|
12
|
-
route: true,
|
|
13
12
|
},
|
|
14
13
|
parserOptions: {
|
|
15
14
|
parser: 'babel-eslint',
|
|
16
15
|
sourceType: 'module',
|
|
17
|
-
|
|
18
|
-
allowImportExportEverywhere: true
|
|
16
|
+
ecmaVersion: 2017,
|
|
17
|
+
allowImportExportEverywhere: true,
|
|
19
18
|
},
|
|
20
19
|
rules: {
|
|
21
20
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
22
21
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
23
22
|
indent: ['error', 4],
|
|
23
|
+
'arrow-parens': ['error', 'as-needed'],
|
|
24
24
|
'vue/html-indent': 0,
|
|
25
25
|
'vue/attributes-order': 0,
|
|
26
26
|
'no-plusplus': 0,
|
|
27
|
-
'no-debugger': 0,
|
|
28
27
|
'no-param-reassign': 0,
|
|
29
28
|
'no-mixed-operators': 0,
|
|
29
|
+
'no-underscore-dangle': 0,
|
|
30
30
|
'func-names': 0,
|
|
31
31
|
'no-shadow': 0,
|
|
32
|
+
'vue/multi-word-component-names': 0,
|
|
32
33
|
'vue/max-attributes-per-line': 0,
|
|
34
|
+
'vue/first-attribute-linebreak': 0,
|
|
33
35
|
'no-return-assign': ['error', 'except-parens'],
|
|
34
36
|
'vue/html-closing-bracket-newline': ['error', {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
singleline: 'never',
|
|
38
|
+
multiline: 'never',
|
|
37
39
|
}],
|
|
38
40
|
'vue/html-closing-bracket-spacing': ['error', {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}]
|
|
41
|
+
startTag: 'never',
|
|
42
|
+
endTag: 'never',
|
|
43
|
+
selfClosingTag: 'never',
|
|
44
|
+
}],
|
|
43
45
|
},
|
|
44
|
-
};
|
|
46
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enso-ui/roles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Basic roles package",
|
|
5
5
|
"main": "src/bulma/pages/roles/Index.vue",
|
|
6
6
|
"scripts": {
|
|
@@ -21,27 +21,26 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/enso-ui/roles#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@enso-ui/checkbox": "^
|
|
25
|
-
"@enso-ui/forms": "^
|
|
26
|
-
"@enso-ui/permissions": "^
|
|
27
|
-
"@enso-ui/tables": "^
|
|
28
|
-
"@enso-ui/ui": "^
|
|
24
|
+
"@enso-ui/checkbox": "^3.0",
|
|
25
|
+
"@enso-ui/forms": "^3.0",
|
|
26
|
+
"@enso-ui/permissions": "^4.0",
|
|
27
|
+
"@enso-ui/tables": "^3.0",
|
|
28
|
+
"@enso-ui/ui": "^5.0",
|
|
29
29
|
"@fortawesome/fontawesome-svg-core": "^1.2.2",
|
|
30
30
|
"@fortawesome/free-solid-svg-icons": "^5.2.0",
|
|
31
|
-
"
|
|
32
|
-
"vue": "^
|
|
31
|
+
"@fortawesome/vue-fontawesome": "3.0.0-5",
|
|
32
|
+
"vue": "^3.0",
|
|
33
|
+
"vuex": "^4.0.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@vue/cli-plugin-
|
|
37
|
-
"@vue/cli-plugin-eslint": "^4.0.5",
|
|
38
|
-
"@vue/cli-service": "^4.0.5",
|
|
36
|
+
"@vue/cli-plugin-babel": "5.0.0-beta.6",
|
|
37
|
+
"@vue/cli-plugin-eslint": "5.0.0-beta.6",
|
|
39
38
|
"@vue/eslint-config-airbnb": "^5.0.0",
|
|
40
39
|
"autoprefixer": "^9.6.1",
|
|
41
40
|
"babel-eslint": "^10.0.1",
|
|
42
41
|
"cross-env": "^6.0.0",
|
|
43
|
-
"eslint": "^
|
|
42
|
+
"eslint": "^7.0",
|
|
44
43
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
45
|
-
"eslint-plugin-vue": "^
|
|
44
|
+
"eslint-plugin-vue": "^7.0.0-beta.4"
|
|
46
45
|
}
|
|
47
46
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:title="`${i18n('Permissions')}: ${data.role.display_name}`"
|
|
8
8
|
v-model="data.rolePermissions"
|
|
9
9
|
:items="data.permissions">
|
|
10
|
-
<template
|
|
10
|
+
<template #item="{ item }">
|
|
11
11
|
<div class="level permission is-hoverable p-2 is-mobile">
|
|
12
12
|
<div class="level-left">
|
|
13
13
|
<div class="level-item">
|
|
@@ -54,10 +54,10 @@ import { CheckboxManager } from '@enso-ui/checkbox/bulma';
|
|
|
54
54
|
export default {
|
|
55
55
|
name: 'Configure',
|
|
56
56
|
|
|
57
|
-
inject: ['canAccess', 'errorHandler', 'i18n', 'route', 'toastr'],
|
|
58
|
-
|
|
59
57
|
components: { CheckboxManager },
|
|
60
58
|
|
|
59
|
+
inject: ['canAccess', 'errorHandler', 'i18n', 'route', 'toastr'],
|
|
60
|
+
|
|
61
61
|
data: () => ({
|
|
62
62
|
data: null,
|
|
63
63
|
}),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<enso-form class="box has-background-light raises-on-hover"
|
|
5
5
|
@ready="ready = true"
|
|
6
6
|
ref="form">
|
|
7
|
-
<template
|
|
7
|
+
<template #actions-left
|
|
8
8
|
v-if="ready">
|
|
9
9
|
<div class="level-item">
|
|
10
10
|
<a class="button is-warning"
|
|
@@ -40,18 +40,19 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script>
|
|
43
|
+
import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
|
|
43
44
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
44
45
|
import { faSave, faSlidersH } from '@fortawesome/free-solid-svg-icons';
|
|
45
46
|
import { EnsoForm } from '@enso-ui/forms/bulma';
|
|
46
47
|
|
|
47
|
-
library.add(
|
|
48
|
+
library.add(faSave, faSlidersH);
|
|
48
49
|
|
|
49
50
|
export default {
|
|
50
51
|
name: 'Edit',
|
|
51
52
|
|
|
52
|
-
|
|
53
|
+
components: { EnsoForm, Fa },
|
|
53
54
|
|
|
54
|
-
|
|
55
|
+
inject: ['errorHandler', 'i18n', 'route', 'routerErrorHandler', 'toastr'],
|
|
55
56
|
|
|
56
57
|
data: () => ({
|
|
57
58
|
ready: false,
|