bfg-common 1.4.691 → 1.4.693

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.
@@ -3,8 +3,6 @@
3
3
  v-if="props.newView"
4
4
  :is-show-main-menu="props.isShowMainMenu"
5
5
  :company-name="props.companyName"
6
- :is-beta="props.isBeta"
7
- :is-dev="props.isDev"
8
6
  :beta-text="props.betaText"
9
7
  :global-refresh-loading="props.globalRefreshLoading"
10
8
  :hostname="props.hostname"
@@ -36,8 +34,6 @@
36
34
  <common-layout-the-header-old
37
35
  v-else
38
36
  :company-name="props.companyName"
39
- :is-beta="props.isBeta"
40
- :is-dev="props.isDev"
41
37
  :beta-text="props.betaText"
42
38
  :global-refresh-loading="props.globalRefreshLoading"
43
39
  :hostname="props.hostname"
@@ -78,8 +74,6 @@ import { checkIsTokenExpired } from '~/lib/utils/token'
78
74
  const props = defineProps<{
79
75
  isShowMainMenu: boolean
80
76
  companyName: string
81
- isBeta: boolean
82
- isDev: boolean
83
77
  betaText: string
84
78
  globalRefreshLoading: boolean
85
79
  project: UI_T_Project
@@ -47,10 +47,6 @@
47
47
  <span class="title pointer"
48
48
  >{{ props.companyName }}® {{ props.projectName }}</span
49
49
  >
50
- <span v-if="props.isBeta" class="badge-info">{{
51
- props.betaText
52
- }}</span>
53
- <span v-else-if="props.isDev" class="badge-info">Dev</span>
54
50
  </nuxt-link>
55
51
  </div>
56
52
  <div class="right-content">
@@ -142,8 +138,6 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
142
138
  const props = defineProps<{
143
139
  isShowMainMenu: boolean
144
140
  companyName: string
145
- isBeta: boolean
146
- isDev: boolean
147
141
  betaText: string
148
142
  globalRefreshLoading: boolean
149
143
  project: UI_T_Project
@@ -27,12 +27,6 @@
27
27
  >{{ props.companyName }}<sup><b>®</b></sup>
28
28
  {{ props.projectName }}</span
29
29
  >
30
- <span v-if="props.isBeta" class="beta-version badge badge-info">{{
31
- props.betaText
32
- }}</span>
33
- <span v-else-if="props.isDev" class="beta-version badge badge-info"
34
- >Dev</span
35
- >
36
30
  </nuxt-link>
37
31
  </div>
38
32
  <form>
@@ -112,8 +106,6 @@ import { findInLocals } from '~/components/common/selectLanguage/lib/utils/utils
112
106
 
113
107
  const props = defineProps<{
114
108
  companyName: string
115
- isBeta: boolean
116
- isDev: boolean
117
109
  betaText: string
118
110
  globalRefreshLoading: boolean
119
111
  project: UI_T_Project
@@ -7,8 +7,6 @@
7
7
  :about-heading-text="aboutHeadingText"
8
8
  :about-desc-one="aboutDesc1"
9
9
  :about-desc-second="aboutDesc2"
10
- :is-beta-version="props.isBeta"
11
- :is-dev="props.isDev"
12
10
  :project-name="props.projectName"
13
11
  :url="companyWebSitePath"
14
12
  @hide="emits('hide')"
@@ -21,8 +19,6 @@
21
19
  :about-heading-text="aboutHeadingText"
22
20
  :about-desc-one="aboutDesc1"
23
21
  :about-desc-second="aboutDesc2"
24
- :is-beta-version="props.isBeta"
25
- :is-dev="props.isDev"
26
22
  :project-name="props.projectName"
27
23
  :url="companyWebSitePath"
28
24
  @hide="emits('hide')"
@@ -35,8 +31,6 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
35
31
 
36
32
  const props = defineProps<{
37
33
  version: string
38
- isBeta: boolean
39
- isDev: boolean
40
34
  projectName: string
41
35
  }>()
42
36
  const emits = defineEmits<{
@@ -11,8 +11,6 @@
11
11
  <common-layout-the-header-help-menu-about
12
12
  v-if="isShowAbout"
13
13
  :version="version"
14
- :is-beta="isBeta"
15
- :is-dev="isDev"
16
14
  :project-name="props.projectName"
17
15
  @hide="isShowAbout = false"
18
16
  />
@@ -24,7 +22,7 @@ const props = defineProps<{
24
22
  }>()
25
23
 
26
24
  const { $store }: any = useNuxtApp()
27
- const { version, isBeta, isDev } = useAppVersion()
25
+ const { version } = useAppVersion()
28
26
 
29
27
  const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
30
28
 
@@ -46,8 +46,6 @@ const props = defineProps<{
46
46
  aboutHeadingText: string
47
47
  aboutDescOne: string
48
48
  aboutDescSecond: string
49
- isBetaVersion: boolean
50
- isDev: boolean
51
49
  projectName: string
52
50
  url: string
53
51
  }>()
@@ -13,14 +13,6 @@
13
13
  <h4 class="secondary-title">
14
14
  {{ props.subtitle }}
15
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
16
  </div>
25
17
  <button id="about-modal-button-close" class="close">
26
18
  <atoms-the-icon
@@ -66,8 +58,6 @@ const props = defineProps<{
66
58
  aboutHeadingText: string
67
59
  aboutDescOne: string
68
60
  aboutDescSecond: string
69
- isBetaVersion: boolean
70
- isDev: boolean
71
61
  projectName: string
72
62
  url: string
73
63
  }>()
@@ -564,8 +564,6 @@ const onFinish = (): void => {
564
564
 
565
565
  const selectedNavItem = ref<UI_T_SelectedNavItem>(0)
566
566
 
567
- const { isDev } = useAppVersion()
568
-
569
567
  const nameFormSubmit = ref<null | Function>(null)
570
568
  const computeResourceSubmit = ref<null | Function>(null)
571
569
  const storageSubmit = ref<null | Function>(null)
@@ -573,7 +571,8 @@ const customizeHardwareSubmit = ref<null | Function>(null)
573
571
  const compatibility = ref<UI_I_OptionItem[]>(
574
572
  capabilities.compatibility.filter((camp) => {
575
573
  let result = true
576
- if (isDev && camp.value === 'pvm-2') result = false
574
+ // if (isDev && camp.value === 'pvm-2') result = false
575
+ if (camp.value === 'pvm-2') result = false
577
576
  return result
578
577
  })
579
578
  )
@@ -1,22 +1,21 @@
1
- import type { UI_I_UseAppVersionReturnType } from '~/lib/models/composables/useAppVersion/interfaces'
2
-
3
- export function useAppVersion(): UI_I_UseAppVersionReturnType {
4
- const config = useRuntimeConfig()
5
- const version = config.public.APP_VERSION
6
-
7
- const regexHasDot = /\./
8
- // const regexHasDotAndB = /\..*b/
9
- const regexHasDotAndB = /\.\d*b$/
10
- const regexHasDotAndD = /\..*d/
11
-
12
- const isBeta = regexHasDotAndB.test(version)
13
- const isDev =
14
- regexHasDotAndD.test(version) ||
15
- (!regexHasDot.test(version) && version.length < 8)
16
-
17
- return {
18
- version,
19
- isBeta,
20
- isDev,
21
- }
22
- }
1
+ import type { UI_I_UseAppVersionReturnType } from '~/lib/models/composables/useAppVersion/interfaces'
2
+
3
+ export function useAppVersion(): UI_I_UseAppVersionReturnType {
4
+ const config = useRuntimeConfig()
5
+ const version = config.public.APP_VERSION as string
6
+
7
+ // const regexHasDot = /\./
8
+ // const regexHasDotAndB = /\.\d*b$/
9
+ // const regexHasDotAndD = /\..*d/
10
+
11
+ // const isBeta = regexHasDotAndB.test(version)
12
+ // const isDev =
13
+ // regexHasDotAndD.test(version) ||
14
+ // (!regexHasDot.test(version) && version.length < 8)
15
+
16
+ return {
17
+ version,
18
+ // isBeta,
19
+ // isDev,
20
+ }
21
+ }
@@ -1,5 +1,5 @@
1
1
  export interface UI_I_UseAppVersionReturnType {
2
2
  version: string
3
- isBeta: boolean
4
- isDev: boolean
3
+ // isBeta: boolean
4
+ // isDev: boolean
5
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.691",
4
+ "version": "1.4.693",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",