Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/dist-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ jobs:
yarn install

- name: Generate dist
env:
SMARTLOOK_KEY: ${{ secrets.SMARTLOOK_KEY }}
run: |
echo "VITE_SMARTLOOK_KEY=$SMARTLOOK_KEY" > ./src/.env
yarn build

- name: "Check dist dir consistency"
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/dist-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ jobs:
yarn install

- name: Generate dist
env:
SMARTLOOK_KEY: ${{ secrets.SMARTLOOK_KEY }}
run: |
echo "VITE_SMARTLOOK_KEY=$SMARTLOOK_KEY" > ./src/.env
yarn build

- name: "Check dist dir consistency"
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"dependencies": {
"@gtm-support/vue-gtm": "^3.1.0",
"@justinribeiro/lite-youtube": "^1.8.2",
"markdown-it-image-size": "^15.0.1",
"smartlook-client": "^10.0.0"
"markdown-it-image-size": "^15.0.1"
}
}
1 change: 0 additions & 1 deletion src/.env

This file was deleted.

7 changes: 0 additions & 7 deletions src/.vitepress/components/CookieConsentView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

<script setup lang="ts">
import { ref, reactive, onMounted, watch } from 'vue';
import Smartlook from 'smartlook-client';
import { useGtm } from '@gtm-support/vue-gtm';

import CookieConsentBanner from './cookie-consent/components/CookieConsentBanner.vue';
Expand Down Expand Up @@ -77,12 +76,6 @@ watch(
(value) => {
if (value !== undefined) {
gtm?.enable(value);
const smartlookKey = import.meta.env.VITE_SMARTLOOK_KEY;
if (value && smartlookKey && !Smartlook.initialized()) {
Smartlook.init(smartlookKey, {
region: 'eu',
});
}
}
},
{ immediate: true }
Expand Down
8 changes: 0 additions & 8 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@
// SPDX-License-Identifier: LicenseRef-MerginMaps-Commercial

/// <reference types="vite/client" />

interface ImportMetaEnv {
readonly VITE_SMARTLOOK_KEY: string
}

interface ImportMeta {
readonly env: ImportMetaEnv
}
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1325,11 +1325,6 @@ shiki@^2.1.0:
"@shikijs/vscode-textmate" "^10.0.2"
"@types/hast" "^3.0.4"

smartlook-client@^10.0.0:
version "10.0.0"
resolved "https://registry.npmjs.org/smartlook-client/-/smartlook-client-10.0.0.tgz"
integrity sha512-KAyy+MXxgqfQJOqsnJhlFiBP29g7rE50hmdoSB3YYq15Dl9y8WEdh1OhdUAYWnENkyDHu3v5lE39O6VuhQMgrA==

"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.0, source-map-js@^1.2.1:
version "1.2.1"
resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz"
Expand Down
Loading