bfg-common 1.4.323 → 1.4.325
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/components/common/layout/theHeader/helpMenu/About.vue +23 -91
- package/components/common/layout/theHeader/helpMenu/HelpMenu.vue +1 -1
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +114 -0
- package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +110 -0
- package/components/common/layout/theHeader/userMenu/UserMenu.vue +0 -1
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +3 -2
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordNew.vue +3 -3
- package/package.json +1 -1
|
@@ -1,110 +1,42 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Teleport to="body">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
:
|
|
6
|
-
:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
>Dev</span
|
|
23
|
-
>
|
|
24
|
-
</div>
|
|
25
|
-
<button id="about-modal-button-close" class="close">
|
|
26
|
-
<atoms-the-icon
|
|
27
|
-
data-id="about-modal-button-close-icon"
|
|
28
|
-
class="close-icon"
|
|
29
|
-
name="close"
|
|
30
|
-
@click="() => emits('hide')"
|
|
31
|
-
/>
|
|
32
|
-
</button>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<template #modalBody>
|
|
36
|
-
<div class="about-vsphere-dialog-legal-section">
|
|
37
|
-
<p>{{ aboutHeadingText }}</p>
|
|
38
|
-
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div class="about-vsphere-dialog-legal-section description">
|
|
42
|
-
{{ aboutDesc1 }}
|
|
43
|
-
(<a
|
|
44
|
-
id="about-description-link"
|
|
45
|
-
data-id="about-description-link"
|
|
46
|
-
:href="url"
|
|
47
|
-
target="_blank"
|
|
48
|
-
>{{ url }}</a
|
|
49
|
-
>){{ aboutDesc2 }}
|
|
50
|
-
</div>
|
|
51
|
-
</template>
|
|
52
|
-
|
|
53
|
-
<template #modalFooter>
|
|
54
|
-
<span></span>
|
|
55
|
-
</template>
|
|
56
|
-
</atoms-modal>
|
|
3
|
+
<common-layout-the-header-help-menu-about-new
|
|
4
|
+
v-if="isNewView"
|
|
5
|
+
:version="props.version"
|
|
6
|
+
:is-beta-version="props.isBeta"
|
|
7
|
+
:is-dev="props.isDev"
|
|
8
|
+
:project-name="props.projectName"
|
|
9
|
+
:url="companyWebSitePath"
|
|
10
|
+
@hide="emits('hide')"
|
|
11
|
+
/>
|
|
12
|
+
|
|
13
|
+
<common-layout-the-header-help-menu-about-old
|
|
14
|
+
v-else
|
|
15
|
+
:version="props.version"
|
|
16
|
+
:is-beta-version="props.isBeta"
|
|
17
|
+
:is-dev="props.isDev"
|
|
18
|
+
:project-name="props.projectName"
|
|
19
|
+
:url="companyWebSitePath"
|
|
20
|
+
@hide="emits('hide')"
|
|
21
|
+
/>
|
|
57
22
|
</Teleport>
|
|
58
23
|
</template>
|
|
59
24
|
|
|
60
25
|
<script lang="ts" setup>
|
|
61
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
62
|
-
|
|
63
26
|
const props = defineProps<{
|
|
64
27
|
version: string
|
|
65
|
-
|
|
28
|
+
isBeta: boolean
|
|
66
29
|
isDev: boolean
|
|
67
30
|
projectName: string
|
|
68
31
|
}>()
|
|
69
|
-
|
|
70
32
|
const emits = defineEmits<{
|
|
71
33
|
(event: 'hide'): void
|
|
72
34
|
}>()
|
|
73
35
|
|
|
74
|
-
const
|
|
36
|
+
const { $store }: any = useNuxtApp()
|
|
75
37
|
|
|
76
|
-
const brandName = computed<string>(
|
|
77
|
-
() => config.public[`TRADEMARK_${useEnvLanguage()}`]
|
|
78
|
-
)
|
|
79
|
-
const companyName = computed<string>(
|
|
80
|
-
() => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
|
|
81
|
-
)
|
|
82
|
-
const aboutHeadingText = computed<string>(() =>
|
|
83
|
-
localization.value.layout.aboutHeading.replaceAll('{companyName}', companyName.value)
|
|
84
|
-
)
|
|
85
|
-
const aboutDesc1 = computed<string>(() =>
|
|
86
|
-
localization.value.layout.aboutDesc1
|
|
87
|
-
.replaceAll('{companyName}', companyName.value)
|
|
88
|
-
.replaceAll('{trademark}', brandName.value)
|
|
89
|
-
)
|
|
90
|
-
const aboutDesc2 = computed<string>(() =>
|
|
91
|
-
localization.value.layout.aboutDesc2
|
|
92
|
-
.replaceAll('{companyName}', companyName.value)
|
|
93
|
-
.replaceAll('{trademark}', brandName.value)
|
|
94
|
-
)
|
|
95
38
|
|
|
96
|
-
const
|
|
39
|
+
const companyWebSitePath = ref<string>('https://iridium-soft.com/')
|
|
97
40
|
|
|
98
|
-
const
|
|
41
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
99
42
|
</script>
|
|
100
|
-
|
|
101
|
-
<style lang="scss" scoped>
|
|
102
|
-
.modal-title {
|
|
103
|
-
color: var(--main-color-mode);
|
|
104
|
-
}
|
|
105
|
-
.description {
|
|
106
|
-
padding-top: 10px;
|
|
107
|
-
font-size: 13px;
|
|
108
|
-
line-height: 19px;
|
|
109
|
-
}
|
|
110
|
-
</style>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ui-modal
|
|
3
|
+
test-id="about-modal"
|
|
4
|
+
width="720px"
|
|
5
|
+
:title="`${brandName}® ${props.projectName}`"
|
|
6
|
+
:subtitle="`${props.projectName} Web Client, version: ${props.version}`"
|
|
7
|
+
class="about-modal"
|
|
8
|
+
@hide="onHideModal"
|
|
9
|
+
>
|
|
10
|
+
<template #content>
|
|
11
|
+
<ui-modal-block-standard>
|
|
12
|
+
<div class="about-modal__text">
|
|
13
|
+
<p>{{ aboutHeadingText }}</p>
|
|
14
|
+
|
|
15
|
+
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div class="about-modal__description">
|
|
19
|
+
{{ aboutDesc1 }}
|
|
20
|
+
|
|
21
|
+
(<a
|
|
22
|
+
id="about-description-link"
|
|
23
|
+
data-id="about-description-link"
|
|
24
|
+
:href="url"
|
|
25
|
+
target="_blank"
|
|
26
|
+
class="about-modal__description-link"
|
|
27
|
+
>
|
|
28
|
+
{{ props.url }} </a
|
|
29
|
+
>)
|
|
30
|
+
|
|
31
|
+
{{ aboutDesc2 }}
|
|
32
|
+
</div>
|
|
33
|
+
</ui-modal-block-standard>
|
|
34
|
+
</template>
|
|
35
|
+
<template #footerContent><span /></template>
|
|
36
|
+
<template #footerLeftContent><span /></template>
|
|
37
|
+
</ui-modal>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script lang="ts" setup>
|
|
41
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
42
|
+
|
|
43
|
+
const props = defineProps<{
|
|
44
|
+
version: string
|
|
45
|
+
isBetaVersion: boolean
|
|
46
|
+
isDev: boolean
|
|
47
|
+
projectName: string
|
|
48
|
+
url: string
|
|
49
|
+
}>()
|
|
50
|
+
const emits = defineEmits<{
|
|
51
|
+
(event: 'hide'): void
|
|
52
|
+
}>()
|
|
53
|
+
|
|
54
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
55
|
+
const config = useRuntimeConfig()
|
|
56
|
+
|
|
57
|
+
const brandName = computed<string>(
|
|
58
|
+
() => config.public[`TRADEMARK_${useEnvLanguage()}`]
|
|
59
|
+
)
|
|
60
|
+
const companyName = computed<string>(
|
|
61
|
+
() => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
const aboutHeadingText = computed<string>(() =>
|
|
65
|
+
localization.value.layout.aboutHeading.replaceAll(
|
|
66
|
+
'{companyName}',
|
|
67
|
+
companyName.value
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
const aboutDesc1 = computed<string>(() =>
|
|
72
|
+
localization.value.layout.aboutDesc1
|
|
73
|
+
.replaceAll('{companyName}', companyName.value)
|
|
74
|
+
.replaceAll('{trademark}', brandName.value)
|
|
75
|
+
)
|
|
76
|
+
const aboutDesc2 = computed<string>(() =>
|
|
77
|
+
localization.value.layout.aboutDesc2
|
|
78
|
+
.replaceAll('{companyName}', companyName.value)
|
|
79
|
+
.replaceAll('{trademark}', brandName.value)
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
const onHideModal = (): void => {
|
|
83
|
+
emits('hide')
|
|
84
|
+
}
|
|
85
|
+
</script>
|
|
86
|
+
|
|
87
|
+
<style lang="scss" scoped>
|
|
88
|
+
.about-modal {
|
|
89
|
+
:deep(.title-wrapper__subtitle) {
|
|
90
|
+
max-width: 400px;
|
|
91
|
+
}
|
|
92
|
+
&__text {
|
|
93
|
+
color: #4d5d69;
|
|
94
|
+
font-size: 13px;
|
|
95
|
+
font-weight: 400;
|
|
96
|
+
line-height: 15.73px;
|
|
97
|
+
&:last-child {
|
|
98
|
+
margin: 16px 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
&__description {
|
|
102
|
+
color: #4d5d69;
|
|
103
|
+
font-size: 13px;
|
|
104
|
+
font-weight: 400;
|
|
105
|
+
line-height: 15.73px;
|
|
106
|
+
&-link {
|
|
107
|
+
color: #0786d2;
|
|
108
|
+
&:hover {
|
|
109
|
+
color: #0081c1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
</style>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Teleport to="body">
|
|
3
|
+
<atoms-modal
|
|
4
|
+
width="864px"
|
|
5
|
+
:show="true"
|
|
6
|
+
:title="`${brandName}® ${props.projectName}`"
|
|
7
|
+
test-id="about-modal"
|
|
8
|
+
>
|
|
9
|
+
<template #modalHeader>
|
|
10
|
+
<div class="flex-align-center">
|
|
11
|
+
<h3 class="modal-title">{{ brandName }}® {{ props.projectName }}</h3>
|
|
12
|
+
<span class="separator" />
|
|
13
|
+
<h4 class="secondary-title">
|
|
14
|
+
{{ props.projectName }} Web Client, version: {{ version }}
|
|
15
|
+
</h4>
|
|
16
|
+
<span
|
|
17
|
+
v-if="props.isBetaVersion"
|
|
18
|
+
class="beta-version badge badge-info"
|
|
19
|
+
>{{ localization.common.beta }}</span
|
|
20
|
+
>
|
|
21
|
+
<span v-else-if="isDev" class="beta-version badge badge-info"
|
|
22
|
+
>Dev</span
|
|
23
|
+
>
|
|
24
|
+
</div>
|
|
25
|
+
<button id="about-modal-button-close" class="close">
|
|
26
|
+
<atoms-the-icon
|
|
27
|
+
data-id="about-modal-button-close-icon"
|
|
28
|
+
class="close-icon"
|
|
29
|
+
name="close"
|
|
30
|
+
@click="() => emits('hide')"
|
|
31
|
+
/>
|
|
32
|
+
</button>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<template #modalBody>
|
|
36
|
+
<div class="about-vsphere-dialog-legal-section">
|
|
37
|
+
<p>{{ aboutHeadingText }}</p>
|
|
38
|
+
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="about-vsphere-dialog-legal-section description">
|
|
42
|
+
{{ aboutDesc1 }}
|
|
43
|
+
(<a
|
|
44
|
+
id="about-description-link"
|
|
45
|
+
data-id="about-description-link"
|
|
46
|
+
:href="url"
|
|
47
|
+
target="_blank"
|
|
48
|
+
>{{ props.url }}</a
|
|
49
|
+
>){{ aboutDesc2 }}
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<template #modalFooter>
|
|
54
|
+
<span></span>
|
|
55
|
+
</template>
|
|
56
|
+
</atoms-modal>
|
|
57
|
+
</Teleport>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script lang="ts" setup>
|
|
61
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
62
|
+
|
|
63
|
+
const props = defineProps<{
|
|
64
|
+
version: string
|
|
65
|
+
isBetaVersion: boolean
|
|
66
|
+
isDev: boolean
|
|
67
|
+
projectName: string
|
|
68
|
+
url: string
|
|
69
|
+
}>()
|
|
70
|
+
const emits = defineEmits<{
|
|
71
|
+
(event: 'hide'): void
|
|
72
|
+
}>()
|
|
73
|
+
|
|
74
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
75
|
+
const config = useRuntimeConfig()
|
|
76
|
+
|
|
77
|
+
const brandName = computed<string>(
|
|
78
|
+
() => config.public[`TRADEMARK_${useEnvLanguage()}`]
|
|
79
|
+
)
|
|
80
|
+
const companyName = computed<string>(
|
|
81
|
+
() => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
|
|
82
|
+
)
|
|
83
|
+
const aboutHeadingText = computed<string>(() =>
|
|
84
|
+
localization.value.layout.aboutHeading.replaceAll(
|
|
85
|
+
'{companyName}',
|
|
86
|
+
companyName.value
|
|
87
|
+
)
|
|
88
|
+
)
|
|
89
|
+
const aboutDesc1 = computed<string>(() =>
|
|
90
|
+
localization.value.layout.aboutDesc1
|
|
91
|
+
.replaceAll('{companyName}', companyName.value)
|
|
92
|
+
.replaceAll('{trademark}', brandName.value)
|
|
93
|
+
)
|
|
94
|
+
const aboutDesc2 = computed<string>(() =>
|
|
95
|
+
localization.value.layout.aboutDesc2
|
|
96
|
+
.replaceAll('{companyName}', companyName.value)
|
|
97
|
+
.replaceAll('{trademark}', brandName.value)
|
|
98
|
+
)
|
|
99
|
+
</script>
|
|
100
|
+
|
|
101
|
+
<style lang="scss" scoped>
|
|
102
|
+
.modal-title {
|
|
103
|
+
color: var(--main-color-mode);
|
|
104
|
+
}
|
|
105
|
+
.description {
|
|
106
|
+
padding-top: 10px;
|
|
107
|
+
font-size: 13px;
|
|
108
|
+
line-height: 19px;
|
|
109
|
+
}
|
|
110
|
+
</style>
|
package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<common-layout-the-header-user-menu-modals-change-password-new
|
|
3
|
-
v-if="
|
|
3
|
+
v-if="isNewView"
|
|
4
4
|
v-model="form"
|
|
5
5
|
:subtitle="props.hostname"
|
|
6
6
|
:project="props.project"
|
|
@@ -29,7 +29,6 @@ import type { UI_T_Project } from '~/lib/models/types'
|
|
|
29
29
|
import {} from '#build/components/common/layout/theHeader/userMenu/modals/changePassword/lib/models/interfaces'
|
|
30
30
|
|
|
31
31
|
const props = defineProps<{
|
|
32
|
-
newView: boolean
|
|
33
32
|
hostname: string
|
|
34
33
|
project: UI_T_Project
|
|
35
34
|
}>()
|
|
@@ -43,6 +42,8 @@ const form = ref<UI_I_ChangePasswordForm>({
|
|
|
43
42
|
new_password: '',
|
|
44
43
|
confirm_password: '',
|
|
45
44
|
})
|
|
45
|
+
|
|
46
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
46
47
|
const onChangePassword = async (): Promise<void> => {
|
|
47
48
|
const { current_password, new_password } = form.value
|
|
48
49
|
|
package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordNew.vue
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
:error="passwordErrorText"
|
|
33
33
|
type="password"
|
|
34
34
|
:autocomplete="'new-password'"
|
|
35
|
-
|
|
35
|
+
/>
|
|
36
36
|
|
|
37
37
|
<ui-input
|
|
38
38
|
v-model="modelLocal.new_password"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
:label="localization.common.newPassword"
|
|
41
41
|
:error="newPasswordErrorText"
|
|
42
42
|
type="password"
|
|
43
|
-
|
|
43
|
+
/>
|
|
44
44
|
|
|
45
45
|
<ui-input
|
|
46
46
|
v-model="modelLocal.confirm_password"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
:label="localization.common.confirmPassword"
|
|
49
49
|
:error="confirmPasswordErrorText"
|
|
50
50
|
type="password"
|
|
51
|
-
|
|
51
|
+
/>
|
|
52
52
|
</div>
|
|
53
53
|
</ui-modal-block-standard>
|
|
54
54
|
</template>
|