@enso-ui/users 2.0.23 → 3.0.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enso-ui/users",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Basic users package",
|
|
5
5
|
"main": "bulma/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,16 +22,15 @@
|
|
|
22
22
|
"homepage": "https://github.com/enso-ui/users#readme",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@enso-ui/accessories": "^4.0",
|
|
25
|
-
"@enso-ui/auth": "^
|
|
25
|
+
"@enso-ui/auth": "^3.0",
|
|
26
26
|
"@enso-ui/confirmation": "^2.0",
|
|
27
27
|
"@enso-ui/directives": "^2.0",
|
|
28
28
|
"@enso-ui/divider": "^2.0",
|
|
29
|
-
"@enso-ui/files": "^4.0",
|
|
30
29
|
"@enso-ui/forms": "^3.0",
|
|
31
30
|
"@enso-ui/modal": "^3.0",
|
|
32
31
|
"@enso-ui/tables": "^3.0",
|
|
33
32
|
"@enso-ui/tabs": "^2.0",
|
|
34
|
-
"@enso-ui/ui": "^
|
|
33
|
+
"@enso-ui/ui": "^6.0",
|
|
35
34
|
"@enso-ui/uploader": "^2.0",
|
|
36
35
|
"@fortawesome/fontawesome-svg-core": "^1.2.2",
|
|
37
36
|
"@fortawesome/free-brands-svg-icons": "^5.11.2",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
|
|
63
63
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
64
64
|
import { faPlus, faSync, faSearch } from '@fortawesome/free-solid-svg-icons';
|
|
65
|
-
import
|
|
65
|
+
import Url from './Url.vue';
|
|
66
66
|
import Token from './Token.vue';
|
|
67
67
|
import TokenForm from './TokenForm.vue';
|
|
68
68
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<modal v-if="show">
|
|
3
|
+
<div class="box">
|
|
4
|
+
<div class="field has-addons">
|
|
5
|
+
<div class="control is-expanded">
|
|
6
|
+
<input class="input"
|
|
7
|
+
:value="link"
|
|
8
|
+
v-select-on-focus
|
|
9
|
+
v-focus>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="control">
|
|
12
|
+
<a class="button"
|
|
13
|
+
@click="copy">
|
|
14
|
+
<span class="icon is-small">
|
|
15
|
+
<fa icon="copy"/>
|
|
16
|
+
</span>
|
|
17
|
+
</a>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<clipboard ref="clipboard"/>
|
|
21
|
+
</div>
|
|
22
|
+
</modal>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
|
|
27
|
+
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
28
|
+
import { faCopy } from '@fortawesome/free-solid-svg-icons';
|
|
29
|
+
import { focus, selectOnFocus } from '@enso-ui/directives';
|
|
30
|
+
import { Modal } from '@enso-ui/modal/bulma';
|
|
31
|
+
import Clipboard from '@enso-ui/clipboard';
|
|
32
|
+
|
|
33
|
+
library.add(faCopy);
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
name: 'Url',
|
|
37
|
+
|
|
38
|
+
directives: { focus, selectOnFocus },
|
|
39
|
+
|
|
40
|
+
components: { Clipboard, Fa, Modal },
|
|
41
|
+
|
|
42
|
+
inject: ['i18n', 'toastr'],
|
|
43
|
+
|
|
44
|
+
props: {
|
|
45
|
+
show: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
link: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: '',
|
|
52
|
+
required: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
methods: {
|
|
57
|
+
copy() {
|
|
58
|
+
this.$refs.clipboard.copy(this.link);
|
|
59
|
+
this.toastr.success(this.i18n('Copied to clipboard'));
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
</script>
|