Compare commits
5 Commits
8c720b7ac3
...
f2533767d2
| Author | SHA1 | Date | |
|---|---|---|---|
| f2533767d2 | |||
| f1116491b6 | |||
| 537a6b0bd6 | |||
| bcc08a53ea | |||
| fa1a22b286 |
@ -1,11 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<div v-if="!pending">
|
|
||||||
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
|
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<el-skeleton :loading="pending" :rows="10" animated>
|
||||||
|
<template #default>
|
||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||||
<div class="html-typography" v-html="companyProfile.content || ''" />
|
<div class="html-typography" v-html="companyProfile?.content || ''" />
|
||||||
<!-- <div v-if="!hydrated" v-html="companyProfile.content || ''" /> -->
|
<!-- <div v-if="!hydrated" v-html="companyProfile.content || ''" /> -->
|
||||||
<!-- <div v-else> -->
|
<!-- <div v-else> -->
|
||||||
<!-- <html-renderer -->
|
<!-- <html-renderer -->
|
||||||
@ -13,9 +14,10 @@
|
|||||||
<!-- :html="companyProfile.content || ''" -->
|
<!-- :html="companyProfile.content || ''" -->
|
||||||
<!-- /> -->
|
<!-- /> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
|
||||||
|
|
||||||
<el-divider content-position="left">{{ $t('learn-more') }}</el-divider>
|
<el-divider content-position="left">{{
|
||||||
|
$t('learn-more')
|
||||||
|
}}</el-divider>
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
<learn-more-card
|
<learn-more-card
|
||||||
:title="$t('navigation.contact-info')"
|
:title="$t('navigation.contact-info')"
|
||||||
@ -28,9 +30,8 @@
|
|||||||
@click="openMap"
|
@click="openMap"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
<div v-else class="loading">
|
</el-skeleton>
|
||||||
<el-skeleton :rows="5" animated />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -42,7 +43,9 @@
|
|||||||
{ label: $t('navigation.home'), to: localePath('/') },
|
{ label: $t('navigation.home'), to: localePath('/') },
|
||||||
{ label: $t('navigation.about-us') },
|
{ label: $t('navigation.about-us') },
|
||||||
];
|
];
|
||||||
const { data: companyProfile, pending, error } = await useCompanyProfile();
|
const { data, pending, error } = useCompanyProfile();
|
||||||
|
|
||||||
|
const companyProfile = computed(() => data.value ?? null);
|
||||||
|
|
||||||
const openMap = () => {
|
const openMap = () => {
|
||||||
window.open(localePath('/locate'));
|
window.open(localePath('/locate'));
|
||||||
|
|||||||
@ -10,7 +10,26 @@
|
|||||||
|
|
||||||
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
|
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!pending" class="page-content">
|
<div>
|
||||||
|
<el-skeleton
|
||||||
|
animated
|
||||||
|
:loading="pending"
|
||||||
|
:throttle="{ leading: 500, trailing: 500 }"
|
||||||
|
>
|
||||||
|
<template #template>
|
||||||
|
<div v-for="i in 3" :key="i" class="products-container">
|
||||||
|
<el-skeleton-item variant="h1" class="skeleton-collapse" />
|
||||||
|
<div class="skeleton-group-list">
|
||||||
|
<el-skeleton-item
|
||||||
|
v-for="j in 3"
|
||||||
|
:key="j"
|
||||||
|
variant="rect"
|
||||||
|
class="skeleton-card"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #default>
|
||||||
<div class="products-container">
|
<div class="products-container">
|
||||||
<el-collapse v-model="activeNames" class="product-collapse">
|
<el-collapse v-model="activeNames" class="product-collapse">
|
||||||
<el-collapse-item
|
<el-collapse-item
|
||||||
@ -32,9 +51,8 @@
|
|||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
</el-collapse>
|
</el-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
<div v-else>
|
</el-skeleton>
|
||||||
<el-skeleton :rows="6" animated />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -151,6 +169,46 @@
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.skeleton-collapse {
|
||||||
|
height: 50px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skeleton-group-list {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 40px;
|
||||||
|
justify-content: flex-start;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skeleton-card {
|
||||||
|
width: 30%;
|
||||||
|
height: 250px;
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.skeleton-card {
|
||||||
|
width: 45%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.group-list {
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.skeleton-group-list {
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skeleton-card {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
:deep(.el-collapse-item__header) {
|
:deep(.el-collapse-item__header) {
|
||||||
padding: 30px auto;
|
padding: 30px auto;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
|
|||||||
@ -8,7 +8,26 @@
|
|||||||
|
|
||||||
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
|
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!pending" class="solutions-container">
|
<div class="solutions-container">
|
||||||
|
<el-skeleton
|
||||||
|
:loading="pending"
|
||||||
|
animated
|
||||||
|
:throttle="{
|
||||||
|
leading: 500,
|
||||||
|
trailing: 500,
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<template #template>
|
||||||
|
<div class="skeleton-group-list">
|
||||||
|
<el-skeleton-item
|
||||||
|
v-for="i in 12"
|
||||||
|
:key="i"
|
||||||
|
variant="rect"
|
||||||
|
class="skeleton-card"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #default>
|
||||||
<el-tabs v-model="activeName" class="solutions-tabs">
|
<el-tabs v-model="activeName" class="solutions-tabs">
|
||||||
<el-tab-pane :label="$t('all')" name="all">
|
<el-tab-pane :label="$t('all')" name="all">
|
||||||
<div class="solution-list">
|
<div class="solution-list">
|
||||||
@ -40,9 +59,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</template>
|
||||||
<div v-else>
|
</el-skeleton>
|
||||||
<el-skeleton :rows="6" animated />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -56,7 +74,9 @@
|
|||||||
{ label: $t('navigation.solutions') },
|
{ label: $t('navigation.solutions') },
|
||||||
];
|
];
|
||||||
|
|
||||||
const { data: solutions, pending, error } = await useSolutionList();
|
const { data, pending, error } = useSolutionList();
|
||||||
|
|
||||||
|
const solutions = computed(() => data.value ?? []);
|
||||||
|
|
||||||
const activeName = ref<string>('all');
|
const activeName = ref<string>('all');
|
||||||
|
|
||||||
@ -123,4 +143,34 @@
|
|||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
gap: 40px;
|
gap: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.skeleton-group-list {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 20px;
|
||||||
|
justify-content: flex-start;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skeleton-card {
|
||||||
|
width: 30%;
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.skeleton-card {
|
||||||
|
width: 45%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.skeleton-group-list {
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skeleton-card {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -6,7 +6,14 @@
|
|||||||
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
|
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="!pending" class="page-content">
|
<div class="page-content">
|
||||||
|
<el-skeleton
|
||||||
|
:rows="10"
|
||||||
|
:loading="pending"
|
||||||
|
animated
|
||||||
|
:throttle="{ leading: 500, trailing: 500 }"
|
||||||
|
>
|
||||||
|
<template #default>
|
||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||||
<div class="html-typography" v-html="contactInfo?.content || ''" />
|
<div class="html-typography" v-html="contactInfo?.content || ''" />
|
||||||
<!-- <div v-if="!hydrated" v-html="contactInfo?.content || ''" /> -->
|
<!-- <div v-if="!hydrated" v-html="contactInfo?.content || ''" /> -->
|
||||||
@ -16,9 +23,8 @@
|
|||||||
<!-- :html="contactInfo?.content || ''" -->
|
<!-- :html="contactInfo?.content || ''" -->
|
||||||
<!-- /> -->
|
<!-- /> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
</template>
|
||||||
<div v-else class="loading">
|
</el-skeleton>
|
||||||
<el-skeleton :rows="5" animated />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -31,7 +37,9 @@
|
|||||||
{ label: $t('navigation.support'), to: localePath('/support') },
|
{ label: $t('navigation.support'), to: localePath('/support') },
|
||||||
{ label: $t('navigation.contact-info') },
|
{ label: $t('navigation.contact-info') },
|
||||||
];
|
];
|
||||||
const { data: contactInfo, pending, error } = await useContactInfo();
|
const { data, pending, error } = useContactInfo();
|
||||||
|
|
||||||
|
const contactInfo = computed(() => data.value ?? null);
|
||||||
|
|
||||||
watch(error, (value) => {
|
watch(error, (value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|||||||
@ -1,9 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<div v-if="pending">
|
<div>
|
||||||
<el-skeleton :rows="5" animated />
|
|
||||||
</div>
|
|
||||||
<div v-else>
|
|
||||||
<support-tabs model-value="documents" />
|
<support-tabs model-value="documents" />
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 class="page-title">{{ $t('navigation.documents') }}</h1>
|
<h1 class="page-title">{{ $t('navigation.documents') }}</h1>
|
||||||
@ -17,6 +14,29 @@
|
|||||||
:document-type-options="documentTypeOptions"
|
:document-type-options="documentTypeOptions"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<el-skeleton
|
||||||
|
:loading="pending"
|
||||||
|
animated
|
||||||
|
:throttle="{
|
||||||
|
leading: 500,
|
||||||
|
trailing: 500,
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<template #template>
|
||||||
|
<div class="flex flex-col gap-xl">
|
||||||
|
<el-skeleton-item
|
||||||
|
variant="rect"
|
||||||
|
style="width: 100%; height: 100px"
|
||||||
|
/>
|
||||||
|
<el-skeleton-item
|
||||||
|
v-for="i in 10"
|
||||||
|
:key="i"
|
||||||
|
variant="h1"
|
||||||
|
style="height: 60px"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #default>
|
||||||
<document-list
|
<document-list
|
||||||
:documents="paginatedDocuments"
|
:documents="paginatedDocuments"
|
||||||
:show-category="
|
:show-category="
|
||||||
@ -33,6 +53,8 @@
|
|||||||
:page-size="documentsPerPage"
|
:page-size="documentsPerPage"
|
||||||
:total="filteredDocuments.length"
|
:total="filteredDocuments.length"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
</el-skeleton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -56,7 +78,9 @@
|
|||||||
const page = ref(1);
|
const page = ref(1);
|
||||||
const documentsPerPage = 10;
|
const documentsPerPage = 10;
|
||||||
|
|
||||||
const { data: documents, pending, error } = await useDocumentList();
|
const { data, pending, error } = useDocumentList();
|
||||||
|
|
||||||
|
const documents = computed(() => data.value ?? []);
|
||||||
|
|
||||||
const documentTypeOptions = computed(() => {
|
const documentTypeOptions = computed(() => {
|
||||||
const types: DocumentTypeView[] = [];
|
const types: DocumentTypeView[] = [];
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<div v-if="pending" class="flex justify-center items-center h-64">
|
|
||||||
<el-skeleton :rows="6" animated />
|
|
||||||
</div>
|
|
||||||
<div v-else>
|
|
||||||
<support-tabs model-value="faq" />
|
<support-tabs model-value="faq" />
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 class="page-title">{{ $t('navigation.faq') }}</h1>
|
<h1 class="page-title">{{ $t('navigation.faq') }}</h1>
|
||||||
@ -18,6 +14,22 @@
|
|||||||
:question-type-options="questionTypeOptions"
|
:question-type-options="questionTypeOptions"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<el-skeleton
|
||||||
|
:loading="pending"
|
||||||
|
animated
|
||||||
|
:throttle="{ leading: 500, trailing: 500 }"
|
||||||
|
>
|
||||||
|
<template #template>
|
||||||
|
<div class="flex flex-col gap-xl">
|
||||||
|
<el-skeleton-item
|
||||||
|
v-for="i in 10"
|
||||||
|
:key="i"
|
||||||
|
variant="h1"
|
||||||
|
style="height: 80px"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #default>
|
||||||
<question-list :questions="paginatedQuestions" />
|
<question-list :questions="paginatedQuestions" />
|
||||||
|
|
||||||
<el-pagination
|
<el-pagination
|
||||||
@ -28,7 +40,8 @@
|
|||||||
:page-size="questionsPerPage"
|
:page-size="questionsPerPage"
|
||||||
:total="filteredQuestions.length"
|
:total="filteredQuestions.length"
|
||||||
/>
|
/>
|
||||||
</div>
|
</template>
|
||||||
|
</el-skeleton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -57,7 +70,9 @@
|
|||||||
{ label: $t('navigation.faq') },
|
{ label: $t('navigation.faq') },
|
||||||
];
|
];
|
||||||
|
|
||||||
const { data: questions, pending, error } = await useQuestionList();
|
const { data, pending, error } = useQuestionList();
|
||||||
|
|
||||||
|
const questions = computed(() => data.value ?? []);
|
||||||
|
|
||||||
const questionTypeOptions = computed(() => {
|
const questionTypeOptions = computed(() => {
|
||||||
const types: QuestionTypeView[] = [];
|
const types: QuestionTypeView[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user