Commit 65e6dfd 1 parent 9b4ac9b commit 65e6dfd Copy full SHA for 65e6dfd
File tree 17 files changed +88
-254
lines changed
17 files changed +88
-254
lines changed Original file line number Diff line number Diff line change 34
34
},
35
35
"dependencies" : {
36
36
"@cfworker/json-schema" : " ^1.12.0" ,
37
+ "@heroicons/vue" : " ^1.0.6" ,
37
38
"typescript" : " ^4.5.5" ,
38
39
"urlcat" : " ^2.0.4" ,
39
40
"vue" : " ^3.2.29" ,
Original file line number Diff line number Diff line change 100
100
>
101
101
<LoadingIcon
102
102
v-if =" displayLoading"
103
+ class =" icon"
103
104
/>
104
105
<ErrorIcon
105
106
v-if =" displayError"
107
+ class =" icon"
106
108
/>
107
109
<SuccessIcon
108
110
v-if =" displaySuccess"
111
+ class =" icon"
109
112
/>
110
113
</div >
111
114
</form >
Original file line number Diff line number Diff line change @@ -64,5 +64,4 @@ export default {
64
64
color : white ;
65
65
}
66
66
}
67
-
68
67
</style >
Original file line number Diff line number Diff line change 13
13
<div class =" icons" >
14
14
<AddIcon
15
15
v-if =" displayButton"
16
+ class =" icon"
16
17
@click =" submit"
17
18
/>
18
19
<LoadingIcon
32
33
import LoadingIcon from ' ../../shared/components/icons/LoadingIcon.vue'
33
34
import SuccessIcon from ' ../../shared/components/icons/SuccessIcon.vue'
34
35
import ErrorIcon from ' ../../shared/components/icons/ErrorIcon.vue'
35
- import AddIcon from ' ./icons/AddIcon. vue'
36
+ import { PlusIcon } from ' @heroicons/ vue/solid '
36
37
import { useStore } from ' vuex'
37
38
import { computed , ref } from ' vue'
38
39
@@ -42,7 +43,7 @@ export default {
42
43
LoadingIcon,
43
44
ErrorIcon,
44
45
SuccessIcon,
45
- AddIcon,
46
+ AddIcon: PlusIcon ,
46
47
},
47
48
setup () {
48
49
const store = useStore ()
@@ -102,6 +103,7 @@ export default {
102
103
overflow : hidden ;
103
104
text-overflow : ellipsis ;
104
105
white-space : nowrap ;
106
+ line-height : 0 ;
105
107
}
106
108
107
109
input .add-url {
Original file line number Diff line number Diff line change 15
15
</div >
16
16
<div id =" center" >
17
17
<RefreshIcon
18
+ class =" icon icon-big icon-pointer"
19
+ :is-loading =" isLoading"
18
20
@click =" refresh"
19
21
/>
20
22
</div >
21
23
<div id =" right" >
22
- <AddIcon
23
- class =" add- icon-big"
24
+ <PlusIcon
25
+ class =" icon icon-big"
24
26
@click =" toggleShowAddBar"
25
27
/>
26
28
<CogWheelIcon
29
+ class =" icon icon-big"
27
30
@click =" openSettingsPage"
28
31
/>
29
32
</div >
30
33
</div >
31
34
</template >
32
35
33
36
<script >
34
- import AddIcon from ' ./icons/AddIcon. vue'
37
+ import { PlusIcon , CogIcon } from ' @heroicons/ vue/solid '
35
38
import RefreshIcon from ' ./icons/RefreshIcon.vue'
36
- import CogWheelIcon from ' ./icons/CogWheelIcon.vue'
37
39
import browser from ' webextension-polyfill'
38
40
import { useStore } from ' vuex'
39
41
import { computed } from ' vue'
40
42
41
43
export default {
42
44
name: ' IconBar' ,
43
45
components: {
44
- AddIcon ,
46
+ PlusIcon ,
45
47
RefreshIcon,
46
- CogWheelIcon,
48
+ CogWheelIcon: CogIcon ,
47
49
},
48
50
setup () {
49
51
const store = useStore ()
@@ -86,6 +88,10 @@ export default {
86
88
border-radius : 0.25rem ;
87
89
align-items : center ;
88
90
91
+ #left , #center , #right {
92
+ line-height : 0 ;
93
+ }
94
+
89
95
div #left {
90
96
justify-self : start ;
91
97
}
Original file line number Diff line number Diff line change 37
37
class =" instance-icon-bar-viewers"
38
38
title =" current number of viewers"
39
39
>
40
- <ViewerIcon />
40
+ <UsersIcon class = " icon " />
41
41
{{ instance.viewer }}
42
42
</div >
43
43
<div
44
44
v-if =" instance.online"
45
45
class =" instance-icon-bar-uptime"
46
46
title =" uptime"
47
47
>
48
- <UptimeIcon />
48
+ <ClockIcon class = " icon " />
49
49
{{ instance.onlineSince.hour }}h {{ instance.onlineSince.minute }}m
50
50
</div >
51
51
</div >
65
65
class =" instance-hidden-icon-bar"
66
66
>
67
67
<div class =" instance-icon-bar-remove" >
68
- <RemoveIcon
68
+ <TrashIcon
69
+ class =" icon"
69
70
@click =" toggleRemove"
70
71
/>
71
72
</div >
86
87
87
88
<script >
88
89
import stripHtml from ' ../../shared/util/stripHtml'
89
- import ViewerIcon from ' ./icons/ViewerIcon.vue'
90
- import UptimeIcon from ' ./icons/UptimeIcon.vue'
91
- import RemoveIcon from ' ./icons/RemoveIcon.vue'
90
+ import { UsersIcon , ClockIcon , TrashIcon } from ' @heroicons/vue/solid'
92
91
import ChevronIcon from ' ./icons/ChevronIcon.vue'
93
92
import { ref , toRefs , computed } from ' vue'
94
93
import { useStore } from ' vuex'
95
94
96
95
export default {
97
96
name: ' InstanceItem' ,
98
97
components: {
99
- ViewerIcon ,
100
- UptimeIcon ,
101
- RemoveIcon ,
98
+ UsersIcon ,
99
+ ClockIcon ,
100
+ TrashIcon ,
102
101
ChevronIcon,
103
102
},
104
103
props: {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<template >
2
- <svg
3
- xmlns =" http://www.w3.org/2000/svg"
4
- class =" chevron-icon"
2
+ <Chevron
3
+ class =" icon chevron-icon"
5
4
:class =" `chevron-icon-${orientation}`"
6
- viewBox =" 0 0 20 20"
7
- fill =" currentColor"
8
- @click =" emitClick"
9
- >
10
- <path
11
- fill-rule =" evenodd"
12
- d =" M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
13
- clip-rule =" evenodd"
14
- />
15
- </svg >
5
+ />
16
6
</template >
17
7
18
8
<script >
9
+ import { ChevronDownIcon } from ' @heroicons/vue/solid'
10
+
19
11
export default {
20
12
name: ' ChevronIcon' ,
13
+ components: {
14
+ Chevron: ChevronDownIcon,
15
+ },
21
16
props: {
22
17
orientation: {
23
18
type: String ,
24
19
default: ' down' ,
25
20
},
26
21
},
27
- emits: [
28
- ' click' ,
29
- ],
30
- methods: {
31
- emitClick () {
32
- this .$emit (' click' )
33
- },
34
- },
35
22
}
36
23
</script >
37
24
Original file line number Diff line number Diff line change 1
1
<template >
2
- <svg
3
- id =" refresh"
4
- class =" refresh-icon"
5
- xmlns =" http://www.w3.org/2000/svg"
6
- viewBox =" 0 0 20 20"
7
- fill =" currentColor"
2
+ <Refresh
8
3
:class =" {'animate-spin':isLoading }"
9
- @click =" emitClick"
10
- >
11
- <path
12
- fill-rule =" evenodd"
13
- d =" M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z"
14
- clip-rule =" evenodd"
15
- />
16
- </svg >
4
+ />
17
5
</template >
18
6
19
7
<script >
8
+ import { RefreshIcon } from ' @heroicons/vue/solid'
9
+
20
10
export default {
21
11
name: ' RefreshIcon' ,
22
- emits: [
23
- ' click' ,
24
- ],
25
- methods: {
26
- emitClick () {
27
- this .$emit (' click' )
28
- },
12
+ components: {
13
+ Refresh: RefreshIcon,
29
14
},
15
+ props: { isLoading: Boolean },
30
16
}
31
17
</script >
32
18
33
19
<style lang="scss">
34
- /* class="w-6 h-6 cursor-pointer" */
35
- .refresh-icon {
36
- width : 1.5rem ;
37
- height : 1.5rem ;
38
- cursor : pointer ;
39
- }
40
20
41
- .refresh-icon. animate-spin {
21
+ .animate-spin {
42
22
animation : spin 1s linear infinite ;
43
23
}
44
24
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments