@designcrowd/fe-shared-lib 1.5.6-domain-locale-reset → 1.5.6-mason-1

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.
@@ -1,8 +1,14 @@
1
1
  <template>
2
2
  <div ref="wall" class="masonry-wall" :style="_style.wall" :class="{ ready }">
3
- <div v-for="(lane, index) in columns" :key="index" class="masonry-column" :style="_style.lane">
4
- <div v-for="i in lane.indexes" :key="i" :ref="`item_${i}`" class="masonry-item" :style="_style.item">
5
- <slot :item="items[i]" :index="i">{{ items[i] }}</slot>
3
+ <div v-for="(lane, index) in columns" :key="`lane_key_${index}`" class="masonry-column" :style="_style.lane">
4
+ <div
5
+ v-for="i in lane.indexes"
6
+ :key="`item_key_${i}`"
7
+ :ref="`item_${i}`"
8
+ class="masonry-item"
9
+ :style="_style.item"
10
+ >
11
+ <slot :item="items[i]" :index="`slot_item_${i}`">{{ items[i] }}</slot>
6
12
  </div>
7
13
 
8
14
  <div
@@ -30,6 +36,7 @@ const _newColumns = (count) => {
30
36
  for (let i = 0; i < count; i++) {
31
37
  columns.push({ i, indexes: [] });
32
38
  }
39
+ console.log('returened columns:', columns);
33
40
  return columns;
34
41
  };
35
42
 
@@ -76,7 +76,6 @@ const searchDomainNamesByKeywordAsync = async ({
76
76
  domainNameSearchOrigin,
77
77
  userText,
78
78
  limit,
79
- locale,
80
79
  }) => {
81
80
  try {
82
81
  let url = `${API.DOMAIN_NAME_SEARCH_API_URL}?keyword=${keyword}&userText=${encodeURIComponent(userText)}`;
@@ -101,10 +100,6 @@ const searchDomainNamesByKeywordAsync = async ({
101
100
  url = `${url}&limit=${limit}`;
102
101
  }
103
102
 
104
- if (locale) {
105
- url = `${url}&locale=${locale}`;
106
- }
107
-
108
103
  const response = await getAxios()({
109
104
  method: 'get',
110
105
  url,
@@ -38,7 +38,7 @@ import SellDomainNameSearchResult from '../SellDomainNameSearchResult/SellDomain
38
38
 
39
39
  import brandCrowdApiClient from '../../clients/brand-crowd-api.client';
40
40
  import Events from '../../constants/event-constants';
41
- import {getCurrentLocale, publishBrandPageModalTr} from '../../../useSharedLibTranslate';
41
+ import { publishBrandPageModalTr } from '../../../useSharedLibTranslate';
42
42
  import Button from '../../../atoms/components/Button/Button.vue';
43
43
 
44
44
  const TEXT_CHANGED_PARAM = 'textChanged';
@@ -137,11 +137,6 @@ export default {
137
137
  this.searchDomainName(this.initialSearchTerm, true);
138
138
  },
139
139
  },
140
- computed: {
141
- currentLocale() {
142
- return getCurrentLocale();
143
- },
144
- },
145
140
  mounted() {
146
141
  if (this.initialSearchTerm) {
147
142
  this.previousSearchText = this.initialSearchTerm;
@@ -179,10 +174,6 @@ export default {
179
174
  request.domainSearchLocation = this.domainSearchLocation;
180
175
  }
181
176
 
182
- if (this.currentLocale) {
183
- request.locale = this.currentLocale;
184
- }
185
-
186
177
  window.dispatchEvent(new CustomEvent(Events.DomainSearchEvent, { detail: request }));
187
178
  const result = await brandCrowdApiClient.searchDomainNamesByKeywordAsync(request);
188
179
  if (!result) {