Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nnqq committed Aug 20, 2023
1 parent 1843a1e commit 184f598
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</b-nav-item>
<b-nav-item
target="_blank"
href="http://api.leaq.ru/docs/"
href="https://api.leaq.ru/docs/"
>
API
</b-nav-item>
Expand Down
4 changes: 2 additions & 2 deletions components/Plans.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
запрос в секунду к
<b-link
target="_blank"
href="http://api.leaq.ru/docs/"
href="https://api.leaq.ru/docs/"
>
API
</b-link>
Expand Down Expand Up @@ -140,7 +140,7 @@
запросов в секунду к
<b-link
target="_blank"
href="http://api.leaq.ru/docs/"
href="https://api.leaq.ru/docs/"
>
API
</b-link>
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default {
},
env: {
HOST: isProd('http://leaq.ru', 'http://leaq.local:1100'),
API_HOST: isProd('http://api.leaq.ru', 'http://localhost:1101'),
API_HOST: isProd('https://api.leaq.ru', 'http://localhost:1101'),
VK_APPID: isProd('7649529', '7654813'),
YANDEX_APPID: isProd('4dbda8170ade4ab6bf5c3a7e9593db60', '9703caf752294e53b11da5bbe5809b47'),
ADS: true
Expand Down
2 changes: 1 addition & 1 deletion pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<p>
Доступно
<a
href="http://api.leaq.ru/docs/"
href="https://api.leaq.ru/docs/"
target="_blank"
>
API
Expand Down
2 changes: 1 addition & 1 deletion pages/account/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<span class="text-muted">
Токен для доступа по

<a href="http://api.leaq.ru/docs/" target="_blank">
<a href="https://api.leaq.ru/docs/" target="_blank">
API
</a>

Expand Down
4 changes: 2 additions & 2 deletions pages/company/_companySlug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@

<div
v-if="!premium"
id="horizontal-1"
id="horizontal-2"
class="mt-5 w-100"
/>

Expand Down Expand Up @@ -1043,7 +1043,7 @@ export default Vue.extend({
const w = window as any
w.yaContextCb.push(() => {
w.Ya.Context.AdvManager.render({
renderTo: 'horizontal-1',
renderTo: 'horizontal-2',
blockId: 'R-A-2665526-2',
type: 'feed'
})
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Сформируйте поисковый запрос в форме ниже и скачайте CSV базу, список email и телефонов.
Фильтровать можно по городу, категории, технологиям на сайте, и многому другому.
Также все данные доступны по
<b-link href="http://api.leaq.ru/docs/" target="_blank">
<b-link href="https://api.leaq.ru/docs/" target="_blank">
API
</b-link>
</p>
Expand Down
20 changes: 20 additions & 0 deletions pages/orgs/company/_orgSlug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@
</b-card>
</template>

<div
id="horizontal-2"
class="mt-5 w-100"
/>

<b-row
v-if="related && related.length"
class="mt-5"
Expand Down Expand Up @@ -546,8 +551,23 @@ export default Vue.extend({
return this.related?.length
}
},
mounted () {
this.injectAds()
},
methods: {
...orgGetters,
injectAds () {
if (process.env.ADS) {
const w = window as any
w.yaContextCb.push(() => {
w.Ya.Context.AdvManager.render({
renderTo: 'horizontal-2',
blockId: 'R-A-2665526-2',
type: 'feed'
})
})
}
},
unifyDate,
capitalize,
safeEmptyDate (d: string): string {
Expand Down
2 changes: 1 addition & 1 deletion pages/orgs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<b-jumbotron header="База юрлиц и ИП России">
<p>
Все данные доступны по
<b-link href="http://api.leaq.ru/docs/" target="_blank">
<b-link href="https://api.leaq.ru/docs/" target="_blank">
API
</b-link>
</p>
Expand Down

0 comments on commit 184f598

Please sign in to comment.