@enso-ui/teams 5.0.0 → 5.1.1
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/LICENSE +1 -1
- package/README.md +2 -8
- package/package.json +10 -24
- package/src/bulma/pages/teams/Index.vue +6 -6
- package/src/bulma/pages/teams/components/Team.vue +11 -10
- package/src/icons.js +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
# Teams
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-

|
|
5
|
-

|
|
6
|
-

|
|
7
|
-

|
|
8
|
-
|
|
9
3
|
## Usage
|
|
10
4
|
|
|
11
5
|
The component cannot be used outside of the Enso ecosystem.
|
|
@@ -16,7 +10,7 @@ For live examples and demos, you may visit [laravel-enso.com](https://www.larave
|
|
|
16
10
|
|
|
17
11
|
### Installation, Configuration & Usage
|
|
18
12
|
|
|
19
|
-
Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/teams.html)
|
|
13
|
+
Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/teams.html).
|
|
20
14
|
|
|
21
15
|
## Contributions
|
|
22
16
|
|
|
@@ -26,4 +20,4 @@ Thank you to all the people who already contributed to Enso!
|
|
|
26
20
|
|
|
27
21
|
## License
|
|
28
22
|
|
|
29
|
-
[
|
|
23
|
+
[MIT](LICENSE)
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enso-ui/teams",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Basic teams package",
|
|
5
5
|
"main": "src/bulma/pages/teams/Index.vue",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
6
|
"repository": {
|
|
10
7
|
"type": "git",
|
|
11
8
|
"url": "git+https://github.com/enso-ui/teams.git"
|
|
@@ -15,31 +12,20 @@
|
|
|
15
12
|
"vue"
|
|
16
13
|
],
|
|
17
14
|
"author": "Adrian Ocneanu <aocneanu@gmail.com>",
|
|
18
|
-
"license": "
|
|
15
|
+
"license": "MIT",
|
|
19
16
|
"bugs": {
|
|
20
17
|
"url": "https://github.com/enso-ui/teams/issues"
|
|
21
18
|
},
|
|
22
19
|
"homepage": "https://github.com/enso-ui/teams#readme",
|
|
23
20
|
"dependencies": {
|
|
24
|
-
"@enso-ui/directives": "^
|
|
25
|
-
"@enso-ui/select": "^
|
|
26
|
-
"@enso-ui/transitions": "^2.0",
|
|
27
|
-
"@enso-ui/ui": "^
|
|
28
|
-
"@enso-ui/users": "^3.0",
|
|
29
|
-
"@fortawesome/fontawesome-svg-core": "^
|
|
30
|
-
"@fortawesome/free-solid-svg-icons": "^
|
|
31
|
-
"@fortawesome/vue-fontawesome": "3.
|
|
21
|
+
"@enso-ui/directives": "^3.1.0",
|
|
22
|
+
"@enso-ui/select": "^4.1.0",
|
|
23
|
+
"@enso-ui/transitions": "^2.1.0",
|
|
24
|
+
"@enso-ui/ui": "^7.1.0",
|
|
25
|
+
"@enso-ui/users": "^3.1.0",
|
|
26
|
+
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
27
|
+
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
28
|
+
"@fortawesome/vue-fontawesome": "3.1.3",
|
|
32
29
|
"vue": "^3.0"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@vue/cli-plugin-babel": "5.0.0-beta.6",
|
|
36
|
-
"@vue/cli-plugin-eslint": "5.0.0-beta.6",
|
|
37
|
-
"@vue/eslint-config-airbnb": "^5.0.0",
|
|
38
|
-
"autoprefixer": "^9.6.1",
|
|
39
|
-
"babel-eslint": "^10.0.1",
|
|
40
|
-
"cross-env": "^6.0.0",
|
|
41
|
-
"eslint": "^7.0.0",
|
|
42
|
-
"eslint-import-resolver-alias": "^1.1.2",
|
|
43
|
-
"eslint-plugin-vue": "^8.0.0"
|
|
44
30
|
}
|
|
45
31
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@click="team=factory()"
|
|
6
6
|
:disabled="team">
|
|
7
7
|
<span class="icon is-small">
|
|
8
|
-
<fa icon="
|
|
8
|
+
<fa :icon="faPlus"/>
|
|
9
9
|
</span>
|
|
10
10
|
<span>
|
|
11
11
|
{{ i18n('New team') }}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:placeholder="i18n('Filter teams')"
|
|
19
19
|
v-model="query">
|
|
20
20
|
<span class="icon is-small is-left">
|
|
21
|
-
<fa icon="
|
|
21
|
+
<fa :icon="faSearch"/>
|
|
22
22
|
</span>
|
|
23
23
|
<span class="icon is-small is-right clear-button"
|
|
24
24
|
v-if="query"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
v-if="!ready && loading">
|
|
32
32
|
{{ i18n('Loading') }}
|
|
33
33
|
<span class="icon is-small ml-2">
|
|
34
|
-
<fa icon="
|
|
34
|
+
<fa :icon="faSpinner"
|
|
35
35
|
size="xs"
|
|
36
36
|
spin/>
|
|
37
37
|
</span>
|
|
@@ -61,12 +61,9 @@
|
|
|
61
61
|
|
|
62
62
|
<script>
|
|
63
63
|
import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
|
|
64
|
-
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
65
64
|
import { faPlus, faSearch, faSpinner } from '@fortawesome/free-solid-svg-icons';
|
|
66
65
|
import Team from './components/Team.vue';
|
|
67
66
|
|
|
68
|
-
library.add(faPlus, faSearch, faSpinner);
|
|
69
|
-
|
|
70
67
|
export default {
|
|
71
68
|
name: 'Index',
|
|
72
69
|
|
|
@@ -75,6 +72,9 @@ export default {
|
|
|
75
72
|
inject: ['errorHandler', 'http', 'i18n', 'route'],
|
|
76
73
|
|
|
77
74
|
data: () => ({
|
|
75
|
+
faPlus,
|
|
76
|
+
faSearch,
|
|
77
|
+
faSpinner,
|
|
78
78
|
loading: false,
|
|
79
79
|
ready: false,
|
|
80
80
|
teams: [],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="box info-box is-paddingless
|
|
2
|
+
<div class="box info-box is-paddingless"
|
|
3
3
|
:class="[
|
|
4
4
|
{ 'is-danger': team.edit && !team.id },
|
|
5
5
|
{ 'is-warning': team.edit && team.id },
|
|
6
6
|
{ 'is-info': !team.edit && team.users.length === 0 },
|
|
7
7
|
]">
|
|
8
|
-
<div class="box-header p-2
|
|
8
|
+
<div class="box-header p-2">
|
|
9
9
|
<div class="level is-mobile">
|
|
10
10
|
<div class="level-left">
|
|
11
11
|
<div name="left"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
v-if="!team.edit"
|
|
29
29
|
@click="team.edit = true">
|
|
30
30
|
<span class="icon">
|
|
31
|
-
<fa icon="
|
|
31
|
+
<fa :icon="faPen"
|
|
32
32
|
size="sm"/>
|
|
33
33
|
</span>
|
|
34
34
|
</a>
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
<a class="button is-naked is-outlined"
|
|
37
37
|
@click="$emit('cancel');team.edit = false">
|
|
38
38
|
<span class="icon">
|
|
39
|
-
<fa icon="
|
|
39
|
+
<fa :icon="faBan"/>
|
|
40
40
|
</span>
|
|
41
41
|
</a>
|
|
42
42
|
<a class="button is-naked is-success is-outlined"
|
|
43
43
|
@click="store();"
|
|
44
44
|
v-if="team.name">
|
|
45
45
|
<span class="icon">
|
|
46
|
-
<fa icon="
|
|
46
|
+
<fa :icon="faCheck"
|
|
47
47
|
size="sm"/>
|
|
48
48
|
</span>
|
|
49
49
|
</a>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
@click="destroy"
|
|
52
52
|
v-if="team.id !== null && team.users.length === 0">
|
|
53
53
|
<span class="icon">
|
|
54
|
-
<fa icon="
|
|
54
|
+
<fa :icon="faTrashCan"/>
|
|
55
55
|
</span>
|
|
56
56
|
</a>
|
|
57
57
|
</span>
|
|
@@ -84,17 +84,14 @@
|
|
|
84
84
|
|
|
85
85
|
<script>
|
|
86
86
|
import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
|
|
87
|
-
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
88
87
|
import {
|
|
89
|
-
faBan,
|
|
88
|
+
faBan, faCheck, faPen, faTrashCan,
|
|
90
89
|
} from '@fortawesome/free-solid-svg-icons';
|
|
91
90
|
import { focus } from '@enso-ui/directives';
|
|
92
91
|
import { Fade } from '@enso-ui/transitions';
|
|
93
92
|
import { EnsoSelect } from '@enso-ui/select/bulma';
|
|
94
93
|
import AvatarList from './AvatarList.vue';
|
|
95
94
|
|
|
96
|
-
library.add([faBan, faPencilAlt, faTrash, faCheck]);
|
|
97
|
-
|
|
98
95
|
export default {
|
|
99
96
|
name: 'Team',
|
|
100
97
|
|
|
@@ -116,6 +113,10 @@ export default {
|
|
|
116
113
|
emits: ['cancel', 'create', 'destroy'],
|
|
117
114
|
|
|
118
115
|
data: () => ({
|
|
116
|
+
faBan,
|
|
117
|
+
faCheck,
|
|
118
|
+
faPen,
|
|
119
|
+
faTrashCan,
|
|
119
120
|
loading: false,
|
|
120
121
|
}),
|
|
121
122
|
|
package/src/icons.js
CHANGED