bfg-common 1.4.592 → 1.4.594

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.
@@ -50,7 +50,6 @@
50
50
  </template>
51
51
 
52
52
  <script setup lang="ts">
53
- import type { UI_I_Localization } from '~/lib/models/interfaces'
54
53
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
55
54
  import type { UI_T_BlocksWidth } from '~/components/common/browse/blocks/lib/models/types'
56
55
  import type { UI_I_FileInfo } from '~/components/common/browse/lib/models/interfaces'
@@ -117,8 +116,6 @@ const filesLocal = computed<any[]>(() => {
117
116
  })
118
117
  })
119
118
 
120
- const localization = computed<UI_I_Localization>(() => useLocal())
121
-
122
119
  const blocksWidth = ref<UI_T_BlocksWidth>([272, 272, 256])
123
120
 
124
121
  const onChangeWidths = (width: number, index: number): void => {
@@ -11,7 +11,7 @@
11
11
  :selected-folder-files="props.selectedFolderFiles"
12
12
  :selected-file="props.selectedFile"
13
13
  :browse-loading="props.browseLoading"
14
- @select-file="emits('select-file', $events)"
14
+ @select-file="onSelectFile"
15
15
  />
16
16
  </template>
17
17
 
@@ -27,9 +27,11 @@ const emits = defineEmits<{
27
27
  }>()
28
28
 
29
29
  const { $store }: any = useNuxtApp()
30
-
31
30
  const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
31
+
32
+ const onSelectFile = (file: any): void => {
33
+ emits('select-file', file)
34
+ }
32
35
  </script>
33
36
 
34
- <style scoped lang="scss">
35
- </style>
37
+ <style scoped lang="scss"></style>
@@ -7,7 +7,7 @@
7
7
  'file-view',
8
8
  { selected: file.name === props.selectedFile?.name },
9
9
  ]"
10
- @click="emits('select-file', file)"
10
+ @click="onSelectFile(file)"
11
11
  >
12
12
  <span class="file-view__icon" :class="file.iconClassName"></span>
13
13
  <span class="file-view__text">{{ file.name }}</span>
@@ -26,7 +26,9 @@ const emits = defineEmits<{
26
26
  (event: 'select-file', file: any): void
27
27
  }>()
28
28
 
29
- const { $store }: any = useNuxtApp()
29
+ const onSelectFile = (file: any): void => {
30
+ emits('select-file', file)
31
+ }
30
32
  </script>
31
33
 
32
34
  <style scoped lang="scss">
@@ -12,7 +12,7 @@
12
12
  'file-view',
13
13
  { active: file.name === props.selectedFile?.name },
14
14
  ]"
15
- @click="emits('select-file', file)"
15
+ @click="onSelectFile(file)"
16
16
  >
17
17
  <span class="file-view__icon" :class="file.iconClassName"></span>
18
18
  <span class="file-view__text">{{ file.name }}</span>
@@ -39,6 +39,10 @@ const emits = defineEmits<{
39
39
  }>()
40
40
 
41
41
  const localization = computed<UI_I_Localization>(() => useLocal())
42
+
43
+ const onSelectFile = (file: any): void => {
44
+ emits('select-file', file)
45
+ }
42
46
  </script>
43
47
 
44
48
  <style scoped lang="scss">
@@ -1,6 +1,6 @@
1
1
  const ip =
2
2
  /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/
3
- const email = /^\w+([-]?\w+)*@\w+([-]?\w+)*(\.\w{2,3})+$/
3
+ const email = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
4
4
  const password =
5
5
  /(?=.*[0-9])(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z])[0-9a-zA-Z!@#$%^&*]{8,}/
6
6
  // const url = /https?:\/\/([a-zA-Zа-яА-Я0-9.-]+)\.([a-zA-Zа-яА-Я]{2,})(?:$|\/|:)/
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.592",
4
+ "version": "1.4.594",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",