Skip to content

Commit

Permalink
Merge pull request #153 from IBEC-BOX/feat/footer-erg
Browse files Browse the repository at this point in the history
deleted console logs
  • Loading branch information
Zh3nyaZh3nya authored Dec 19, 2024
2 parents 1ccea64 + b89b107 commit 2b91c70
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

<script setup>
const testButtonNews = () => console.log(cards[1].id)
const cards = [
{
id: 1,
Expand Down Expand Up @@ -56,7 +55,6 @@ const cards = [
text: "A “card” is a UI design pattern that groups related information in a flexible-size container visually resembling a playing card.",
date: "02.04.2023",
author: "by Tyler, The Creator",
functionButton: testButtonNews,
textButton: "Читать",
},
{
Expand Down
1 change: 0 additions & 1 deletion playground/pages/vacancies.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@
]
const formData = (data) => {

Check warning on line 159 in playground/pages/vacancies.vue

View workflow job for this annotation

GitHub Actions / build

'data' is defined but never used
console.log(data)
}
const socials = [
{
Expand Down
2 changes: 1 addition & 1 deletion playground/pages/vacancy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
]
const formData = (data) => {

Check warning on line 101 in playground/pages/vacancy.vue

View workflow job for this annotation

GitHub Actions / build

'data' is defined but never used
console.log(data)
}
const socials = [
{
Expand Down
6 changes: 1 addition & 5 deletions src/runtime/components/Parts/Footer/Erg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,9 @@ const props = defineProps({
})
const isMultiParagraph = (html: string): boolean => {
if (!html || process.server) return false;
console.log('Checking HTML content:', html);
if (!html || import.meta.env.SSR) return false; // Проверяем серверную среду через Vite
const parser = new DOMParser();
const doc = parser.parseFromString(html, 'text/html');
const paragraphs = doc.querySelectorAll('p, a, br');
return paragraphs.length > 2;
};
Expand Down
1 change: 0 additions & 1 deletion src/runtime/components/Parts/Forms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ const dataForm = (validForm) => {
} else if(!Object.keys(props.checkboxSetting).length) {
if(inputValues.value.every(value => value)) {
confirmForm.value = true
console.log(inputValues.value)
emit('form-data', [inputValues.value] )
}
} else {
Expand Down
4 changes: 0 additions & 4 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ import vuetify from './plugins/vuetify/index'
import { vMaska } from "maska"

export default defineNuxtPlugin(nuxtApp => {
console.log('Plugin injected by NUXT3-UI-KIT!');

const vuetifyInstance = vuetify(nuxtApp);
nuxtApp.vueApp.use(vuetifyInstance);
nuxtApp.vueApp.directive("maska", vMaska);

if (!process.server && process.env.NODE_ENV !== 'production') console.log('❤️ Initialized Vuetify 3', vuetifyInstance);
});

0 comments on commit 2b91c70

Please sign in to comment.