-
Notifications
You must be signed in to change notification settings - Fork 28
/
information.vue
115 lines (115 loc) · 2.94 KB
/
information.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<template>
<div class="vf-information">
<div class="vf-information__item">
<div class="vf-information__item_title">
{{ $t('textAccount') }}
</div>
<div class="vf-information__item_value">
{{ $t('textFree') }}
</div>
</div>
<div class="vf-information__item">
<div class="vf-information__item_title">
{{ $t('textBuildMin') }}
</div>
<div class="vf-information__item_value">
{{ Math.floor($moment.duration(cms.usagedTime, 'milliseconds').asMinutes()) }} / 100
</div>
</div>
<div class="vf-information__item">
<div class="vf-information__item_title">
{{ $t('textPluginVersion') }}
</div>
<div class="vf-information__item_value">
{{ information.plugin_version }}
</div>
</div>
<div
v-for="(value, index) in information.extensions"
:key="index"
class="vf-information__item"
>
<div class="vf-information__item_title">
{{ value.name }}
</div>
<div class="vf-information__item_value">
{{ value.status ? $t('textActive') : $t('textNoActive') }}
</div>
</div>
<div class="vf-information__item">
<div class="vf-information__item_title">
{{ $t('textPHPVersion') }}
</div>
<div class="vf-information__item_value">
{{ information.phpversion }}
</div>
</div>
<div class="vf-information__item">
<div class="vf-information__item_title">
{{ $t('textServer') }}
</div>
<div class="vf-information__item_value">
{{ information.server }}
</div>
</div>
</div>
</template>
<script>
import {mapGetters} from 'vuex'
export default {
computed: {
...mapGetters({information: 'information/get', cms: 'cms/get'})
}
}
</script>
<i18n locale="en">
{
"textAccount": "Account",
"textFree": "Free",
"textPluginVersion": "Plugin version",
"textPHPVersion": "PHP",
"textServer": "Server",
"textActive": "Active",
"textNoActive": "Not active",
"textBuildMin": "Build min."
}
</i18n>
<style lang="scss">
.vf-information {
border-radius: 3px;
border: 1px solid $white-five;
background-color: $white;
padding: 35px;
&__item {
display: flex;
flex-flow: row;
margin-bottom: 15px;
&_title {
text-align: left;
flex: 1;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
font-weight: bold;
font-stretch: normal;
font-style: normal;
line-height: 1.5;
letter-spacing: 0.16px;
color: $black;
}
&_value {
padding-left: 10px;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
font-weight: normal;
font-stretch: normal;
font-style: normal;
line-height: 1.5;
letter-spacing: 0.16px;
text-align: right;
color: $black;
white-space: nowrap;
overflow-y: auto;
}
}
}
</style>