chore(styles): 添加代码格式化依赖
- 为项目添加依赖ESLint、Prettier、Lint-Staged用于规范代码格式 - 创建pre-commit hook - 根据格式化规则格式化整个项目的代码
This commit is contained in:
@ -56,26 +56,11 @@ print_debug "Shell: $SHELL"
|
|||||||
print_debug "PATH: $PATH"
|
print_debug "PATH: $PATH"
|
||||||
print_debug "当前进程ID: $"
|
print_debug "当前进程ID: $"
|
||||||
|
|
||||||
# 检查 bunx 是否可用
|
|
||||||
print_section "检查工具可用性..."
|
|
||||||
print_info "尝试导入用户环境变量..."
|
|
||||||
export PATH="$HOME/.bun/bin:$PATH"
|
|
||||||
if command -v bunx >/dev/null 2>&1; then
|
|
||||||
BUNX_PATH=$(command -v bunx)
|
|
||||||
print_success "bunx 可用: $BUNX_PATH"
|
|
||||||
print_debug "bunx 版本信息:"
|
|
||||||
print_debug "$(bunx --version 2>&1 || echo 'bunx --version 失败')"
|
|
||||||
else
|
|
||||||
print_error "bunx 不可用"
|
|
||||||
print_info "PATH 内容: $PATH"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# 检查 commitlint 是否可用
|
# 检查 commitlint 是否可用
|
||||||
print_section "检查 commitlint..."
|
print_section "检查 commitlint..."
|
||||||
if bunx commitlint --version >/dev/null 2>&1; then
|
if npx commitlint --version >/dev/null 2>&1; then
|
||||||
COMMITLINT_VERSION=$(bunx commitlint --version)
|
COMMITLINT_VERSION=$(npx commitlint --version)
|
||||||
print_success "commitlint 可用: $COMMITLINT_VERSION"
|
print_success "commitlint 可用: $COMMITLINT_VERSION"
|
||||||
else
|
else
|
||||||
print_error "commitlint 不可用或配置有误"
|
print_error "commitlint 不可用或配置有误"
|
||||||
@ -132,15 +117,15 @@ fi
|
|||||||
# 运行 commitlint
|
# 运行 commitlint
|
||||||
echo
|
echo
|
||||||
print_section "执行 commitlint 检查..."
|
print_section "执行 commitlint 检查..."
|
||||||
print_command "执行命令: bunx commitlint --edit \"$1\""
|
print_command "执行命令: npx commitlint --edit \"$1\""
|
||||||
|
|
||||||
# 显示详细的执行过程
|
# 显示详细的执行过程
|
||||||
if [ "$DEBUG" = "true" ]; then
|
if [ "$DEBUG" = "true" ]; then
|
||||||
print_debug "详细执行过程:"
|
print_debug "详细执行过程:"
|
||||||
bunx commitlint --edit "$1" --verbose
|
npx commitlint --edit "$1" --verbose
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
else
|
else
|
||||||
bunx commitlint --edit "$1"
|
npx commitlint --edit "$1"
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -156,7 +141,7 @@ else
|
|||||||
echo "1. 检查提交消息是否符合约定式提交格式"
|
echo "1. 检查提交消息是否符合约定式提交格式"
|
||||||
echo "2. 确认 commitlint 配置是否正确"
|
echo "2. 确认 commitlint 配置是否正确"
|
||||||
echo "3. 运行 'DEBUG=true git commit' 查看详细调试信息"
|
echo "3. 运行 'DEBUG=true git commit' 查看详细调试信息"
|
||||||
echo "4. 手动测试: bunx commitlint --edit .git/COMMIT_EDITMSG"
|
echo "4. 手动测试: npx commitlint --edit .git/COMMIT_EDITMSG"
|
||||||
echo
|
echo
|
||||||
print_debug "Hook 执行失败,退出代码: $RESULT"
|
print_debug "Hook 执行失败,退出代码: $RESULT"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
npx lint-staged
|
||||||
@ -19,7 +19,6 @@
|
|||||||
- 关于我们
|
- 关于我们
|
||||||
- 公司基本信息
|
- 公司基本信息
|
||||||
|
|
||||||
|
|
||||||
## 安装与设置
|
## 安装与设置
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
@ -65,11 +64,13 @@ pnpm run dev
|
|||||||
1. 构建生产版本
|
1. 构建生产版本
|
||||||
|
|
||||||
项目构建
|
项目构建
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pnpm run build
|
pnpm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
预览构建版本
|
预览构建版本
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pnpm run preview
|
pnpm run preview
|
||||||
```
|
```
|
||||||
@ -77,3 +78,4 @@ pnpm run preview
|
|||||||
2. 部署
|
2. 部署
|
||||||
|
|
||||||
部署构建后的项目并推送到文件服务器中,具体步骤视服务器配置而定
|
部署构建后的项目并推送到文件服务器中,具体步骤视服务器配置而定
|
||||||
|
|
||||||
|
|||||||
10
app/app.vue
10
app/app.vue
@ -9,7 +9,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ElConfigProvider } from "element-plus";
|
import { ElConfigProvider } from 'element-plus';
|
||||||
|
|
||||||
const { login } = useStrapiAuth();
|
const { login } = useStrapiAuth();
|
||||||
|
|
||||||
@ -22,15 +22,15 @@ onMounted(() => {
|
|||||||
const user = useStrapiUser();
|
const user = useStrapiUser();
|
||||||
if (!user.value) {
|
if (!user.value) {
|
||||||
// 如果未登录,重定向到登录页面
|
// 如果未登录,重定向到登录页面
|
||||||
login({ identifier: "remilia", password: "huanshuo51" })
|
login({ identifier: 'remilia', password: 'huanshuo51' })
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log("Login successful");
|
console.log('Login successful');
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error("Login failed:", error);
|
console.error('Login failed:', error);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log("User is already logged in:", user.value);
|
console.log('User is already logged in:', user.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Source Han Sans CN";
|
font-family: "Source Han Sans CN";
|
||||||
src: url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff2") format("woff2"),
|
src:
|
||||||
url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff") format("woff");
|
url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff2")
|
||||||
|
format("woff2"),
|
||||||
|
url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff")
|
||||||
|
format("woff");
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
@ -9,8 +12,12 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Source Han Sans CN";
|
font-family: "Source Han Sans CN";
|
||||||
src: url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff2") format("woff2"),
|
src:
|
||||||
url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff") format("woff");
|
url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff2")
|
||||||
|
format("woff2"),
|
||||||
|
url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff")
|
||||||
|
format("woff");
|
||||||
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
@ -18,8 +25,11 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Source Han Sans CN";
|
font-family: "Source Han Sans CN";
|
||||||
src: url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff2") format("woff2"),
|
src:
|
||||||
url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff") format("woff");
|
url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff2")
|
||||||
|
format("woff2"),
|
||||||
|
url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff")
|
||||||
|
format("woff");
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
@forward 'element-plus/theme-chalk/src/dark/var.scss' with (
|
@forward "element-plus/theme-chalk/src/dark/var.scss" with (
|
||||||
$bg-color: (
|
$bg-color: (
|
||||||
'page': #0a0a0a,
|
"page": #0a0a0a,
|
||||||
'overlay': #1d1e1f,
|
"overlay": #1d1e1f,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,26 +1,26 @@
|
|||||||
$-colors: (
|
$-colors: (
|
||||||
'primary': (
|
"primary": (
|
||||||
'base': #177ee5,
|
"base": #177ee5,
|
||||||
),
|
),
|
||||||
'success': (
|
"success": (
|
||||||
'base': green,
|
"base": green,
|
||||||
),
|
),
|
||||||
'warning': (
|
"warning": (
|
||||||
'base': #f9a23c,
|
"base": #f9a23c,
|
||||||
),
|
),
|
||||||
'danger': (
|
"danger": (
|
||||||
'base': #ff3300,
|
"base": #ff3300,
|
||||||
),
|
),
|
||||||
'error': (
|
"error": (
|
||||||
'base': #f56c6c,
|
"base": #f56c6c,
|
||||||
),
|
),
|
||||||
'info': (
|
"info": (
|
||||||
'base': #909399,
|
"base": #909399,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
@forward 'element-plus/theme-chalk/src/common/var.scss' with (
|
@forward "element-plus/theme-chalk/src/common/var.scss" with (
|
||||||
$colors: $-colors
|
$colors: $-colors
|
||||||
);
|
);
|
||||||
|
|
||||||
@use './dark.scss';
|
@use "./dark.scss";
|
||||||
|
|||||||
@ -17,5 +17,6 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--font-main: "Source Han Sans CN", "Noto Sans CJK SC", "Noto Sans CJK", sans-serif;
|
--font-main:
|
||||||
|
"Source Han Sans CN", "Noto Sans CJK SC", "Noto Sans CJK", sans-serif;
|
||||||
}
|
}
|
||||||
@ -40,7 +40,7 @@ const handleDownload = async (fileName: string, fileUrl: string) => {
|
|||||||
const blob = await response.blob();
|
const blob = await response.blob();
|
||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
|
|
||||||
const link = document.createElement("a");
|
const link = document.createElement('a');
|
||||||
link.href = url;
|
link.href = url;
|
||||||
link.download = fileName;
|
link.download = fileName;
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
|
|||||||
@ -4,39 +4,39 @@
|
|||||||
<!-- Logo 和公司信息 -->
|
<!-- Logo 和公司信息 -->
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
<div class="footer-logo">
|
<div class="footer-logo">
|
||||||
<img src="/jinshen-logo.png" alt="Jinshen Logo" class="logo-image">
|
<img src="/jinshen-logo.png" alt="Jinshen Logo" class="logo-image" />
|
||||||
<h3>{{ $t("company-name") }}</h3>
|
<h3>{{ $t('company-name') }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<p class="company-description">
|
<p class="company-description">
|
||||||
{{ $t("company-description") }}
|
{{ $t('company-description') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 快速链接 -->
|
<!-- 快速链接 -->
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
<h4>{{ $t("quick-links") }}</h4>
|
<h4>{{ $t('quick-links') }}</h4>
|
||||||
<ul class="footer-links">
|
<ul class="footer-links">
|
||||||
<li>
|
<li>
|
||||||
<NuxtLinkLocale to="/">{{ $t("navigation.home") }}</NuxtLinkLocale>
|
<NuxtLinkLocale to="/">{{ $t('navigation.home') }}</NuxtLinkLocale>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<NuxtLink :to="$localePath('/productions')">{{
|
<NuxtLink :to="$localePath('/productions')">{{
|
||||||
$t("navigation.productions")
|
$t('navigation.productions')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<NuxtLink :to="$localePath('/solutions')">{{
|
<NuxtLink :to="$localePath('/solutions')">{{
|
||||||
$t("navigation.solutions")
|
$t('navigation.solutions')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<NuxtLink :to="$localePath('/support')">{{
|
<NuxtLink :to="$localePath('/support')">{{
|
||||||
$t("navigation.support")
|
$t('navigation.support')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<NuxtLink :to="$localePath('/about')">{{
|
<NuxtLink :to="$localePath('/about')">{{
|
||||||
$t("navigation.about-us")
|
$t('navigation.about-us')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -44,24 +44,24 @@
|
|||||||
|
|
||||||
<!-- 联系信息 -->
|
<!-- 联系信息 -->
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
<h4>{{ $t("contact-info") }}</h4>
|
<h4>{{ $t('contact-info') }}</h4>
|
||||||
<div class="contact-item">
|
<div class="contact-item">
|
||||||
<el-icon><Phone /></el-icon>
|
<el-icon><Phone /></el-icon>
|
||||||
<span>{{ $t("telephone") }}: 0573-88187988</span>
|
<span>{{ $t('telephone') }}: 0573-88187988</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="contact-item">
|
<div class="contact-item">
|
||||||
<el-icon><Message /></el-icon>
|
<el-icon><Message /></el-icon>
|
||||||
<span>{{ $t("email") }}: jinshen@wzjinshen.com</span>
|
<span>{{ $t('email') }}: jinshen@wzjinshen.com</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="contact-item">
|
<div class="contact-item">
|
||||||
<el-icon><Location /></el-icon>
|
<el-icon><Location /></el-icon>
|
||||||
<span>{{ $t("address") }}: {{ $t("company-address") }}</span>
|
<span>{{ $t('address') }}: {{ $t('company-address') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 社交媒体 -->
|
<!-- 社交媒体 -->
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
<h4>{{ $t("follow-us") }}</h4>
|
<h4>{{ $t('follow-us') }}</h4>
|
||||||
<div class="social-links">
|
<div class="social-links">
|
||||||
<a href="#" class="social-link" aria-label="WeChat">
|
<a href="#" class="social-link" aria-label="WeChat">
|
||||||
<el-icon size="20"><ChatDotRound /></el-icon>
|
<el-icon size="20"><ChatDotRound /></el-icon>
|
||||||
@ -84,21 +84,21 @@
|
|||||||
<div class="footer-container">
|
<div class="footer-container">
|
||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
<p>
|
<p>
|
||||||
© {{ currentYear }} {{ $t("company-name") }}.
|
© {{ currentYear }} {{ $t('company-name') }}.
|
||||||
{{ $t("all-rights-reserved") }}
|
{{ $t('all-rights-reserved') }}
|
||||||
</p>
|
</p>
|
||||||
<p>备案号: 浙ICP备12003709号-5</p>
|
<p>备案号: 浙ICP备12003709号-5</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-links-bottom">
|
<div class="footer-links-bottom">
|
||||||
<NuxtLink :to="$localePath('/privacy')">{{
|
<NuxtLink :to="$localePath('/privacy')">{{
|
||||||
$t("privacy-policy")
|
$t('privacy-policy')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
<span class="separator">|</span>
|
<span class="separator">|</span>
|
||||||
<NuxtLink :to="$localePath('/terms')">{{
|
<NuxtLink :to="$localePath('/terms')">{{
|
||||||
$t("terms-of-service")
|
$t('terms-of-service')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
<span class="separator">|</span>
|
<span class="separator">|</span>
|
||||||
<NuxtLink :to="$localePath('/sitemap')">{{ $t("sitemap") }}</NuxtLink>
|
<NuxtLink :to="$localePath('/sitemap')">{{ $t('sitemap') }}</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -113,7 +113,7 @@ import {
|
|||||||
ChatDotRound,
|
ChatDotRound,
|
||||||
Star,
|
Star,
|
||||||
Link,
|
Link,
|
||||||
} from "@element-plus/icons-vue";
|
} from '@element-plus/icons-vue';
|
||||||
|
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -22,16 +22,16 @@
|
|||||||
router
|
router
|
||||||
>
|
>
|
||||||
<el-menu-item index="productions" :route="$localePath('/productions')">
|
<el-menu-item index="productions" :route="$localePath('/productions')">
|
||||||
<span class="title">{{ $t("navigation.productions") }}</span>
|
<span class="title">{{ $t('navigation.productions') }}</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item index="solutions" :route="$localePath('/solutions')">
|
<el-menu-item index="solutions" :route="$localePath('/solutions')">
|
||||||
<span class="title">{{ $t("navigation.solutions") }}</span>
|
<span class="title">{{ $t('navigation.solutions') }}</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item index="support" :route="$localePath('/support')">
|
<el-menu-item index="support" :route="$localePath('/support')">
|
||||||
<span class="title">{{ $t("navigation.support") }}</span>
|
<span class="title">{{ $t('navigation.support') }}</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item index="about" :route="$localePath('/about')">
|
<el-menu-item index="about" :route="$localePath('/about')">
|
||||||
<span class="title">{{ $t("navigation.about-us") }}</span>
|
<span class="title">{{ $t('navigation.about-us') }}</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</el-menu>
|
</el-menu>
|
||||||
</div>
|
</div>
|
||||||
@ -62,14 +62,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Search } from "@element-plus/icons-vue";
|
import { Search } from '@element-plus/icons-vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const localePath = useLocalePath();
|
const localePath = useLocalePath();
|
||||||
|
|
||||||
const { setLocale } = useI18n();
|
const { setLocale } = useI18n();
|
||||||
|
|
||||||
const searchQuery = ref("");
|
const searchQuery = ref('');
|
||||||
|
|
||||||
const activeName = ref<string | undefined>(undefined);
|
const activeName = ref<string | undefined>(undefined);
|
||||||
|
|
||||||
@ -77,24 +77,24 @@ const handleSearch = () => {
|
|||||||
const trimmed = searchQuery.value.trim();
|
const trimmed = searchQuery.value.trim();
|
||||||
if (!trimmed) return;
|
if (!trimmed) return;
|
||||||
navigateTo({
|
navigateTo({
|
||||||
path: localePath("/search"),
|
path: localePath('/search'),
|
||||||
query: {
|
query: {
|
||||||
query: trimmed,
|
query: trimmed,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
searchQuery.value = "";
|
searchQuery.value = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
const refreshMenu = () => {
|
const refreshMenu = () => {
|
||||||
const path = router.currentRoute.value.path;
|
const path = router.currentRoute.value.path;
|
||||||
if (path.startsWith("/productions")) {
|
if (path.startsWith('/productions')) {
|
||||||
activeName.value = "productions";
|
activeName.value = 'productions';
|
||||||
} else if (path.startsWith("/solutions")) {
|
} else if (path.startsWith('/solutions')) {
|
||||||
activeName.value = "solutions";
|
activeName.value = 'solutions';
|
||||||
} else if (path.startsWith("/support")) {
|
} else if (path.startsWith('/support')) {
|
||||||
activeName.value = "support";
|
activeName.value = 'support';
|
||||||
} else if (path.startsWith("/about")) {
|
} else if (path.startsWith('/about')) {
|
||||||
activeName.value = "about";
|
activeName.value = 'about';
|
||||||
} else {
|
} else {
|
||||||
activeName.value = undefined; // 默认不激活任何菜单项
|
activeName.value = undefined; // 默认不激活任何菜单项
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,7 @@ const contentWithAbsoluteUrls = convertMedia(props.content);
|
|||||||
const safeHtml = computed(() => renderMarkdown(contentWithAbsoluteUrls));
|
const safeHtml = computed(() => renderMarkdown(contentWithAbsoluteUrls));
|
||||||
// const safeHtml = computed(() => renderMarkdown(props.content))
|
// const safeHtml = computed(() => renderMarkdown(props.content))
|
||||||
|
|
||||||
console.log("Rendered HTML:", safeHtml.value);
|
console.log('Rendered HTML:', safeHtml.value);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@ -15,16 +15,16 @@
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: '',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const activeTab = ref(props.modelValue || "");
|
const activeTab = ref(props.modelValue || '');
|
||||||
const options = [
|
const options = [
|
||||||
{ label: "服务支持", value: "" },
|
{ label: '服务支持', value: '' },
|
||||||
{ label: "常见问题", value: "faq" },
|
{ label: '常见问题', value: 'faq' },
|
||||||
{ label: "文档资料", value: "documents" },
|
{ label: '文档资料', value: 'documents' },
|
||||||
{ label: "联系售后", value: "contact-us" },
|
{ label: '联系售后', value: 'contact-us' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const handleSegmentedChange = (value: string) => {
|
const handleSegmentedChange = (value: string) => {
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import type { StrapiLocale } from "@nuxtjs/strapi";
|
import type { StrapiLocale } from '@nuxtjs/strapi';
|
||||||
import type { Language as ElementLanguage } from "element-plus/es/locale";
|
import type { Language as ElementLanguage } from 'element-plus/es/locale';
|
||||||
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
import zhCn from 'element-plus/es/locale/lang/zh-cn';
|
||||||
import en from "element-plus/es/locale/lang/en";
|
import en from 'element-plus/es/locale/lang/en';
|
||||||
|
|
||||||
// Strapi本地化映射
|
// Strapi本地化映射
|
||||||
export const strapiLocales: Record<string, StrapiLocale> = {
|
export const strapiLocales: Record<string, StrapiLocale> = {
|
||||||
zh: "zh-CN",
|
zh: 'zh-CN',
|
||||||
en: "en",
|
en: 'en',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Element Plus本地化映射
|
// Element Plus本地化映射
|
||||||
@ -21,14 +21,14 @@ export const useLocalizations = () => {
|
|||||||
// 获取Strapi本地化代码
|
// 获取Strapi本地化代码
|
||||||
const getStrapiLocale = (nuxtLocale?: string): StrapiLocale => {
|
const getStrapiLocale = (nuxtLocale?: string): StrapiLocale => {
|
||||||
const currentLocale = nuxtLocale || locale.value;
|
const currentLocale = nuxtLocale || locale.value;
|
||||||
return strapiLocales[currentLocale] || "zh-Hans";
|
return strapiLocales[currentLocale] || 'zh-Hans';
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取Element Plus本地化
|
// 获取Element Plus本地化
|
||||||
const getElementPlusLocale = (nuxtLocale?: string) => {
|
const getElementPlusLocale = (nuxtLocale?: string) => {
|
||||||
const currentLocale = nuxtLocale || locale.value;
|
const currentLocale = nuxtLocale || locale.value;
|
||||||
const elementPlusLocale =
|
const elementPlusLocale =
|
||||||
elementPlusLocales[currentLocale] || elementPlusLocales["zh"];
|
elementPlusLocales[currentLocale] || elementPlusLocales['zh'];
|
||||||
return elementPlusLocale;
|
return elementPlusLocale;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { MeiliSearch } from "meilisearch";
|
import { MeiliSearch } from 'meilisearch';
|
||||||
import type { SearchParams, SearchResponse } from "meilisearch";
|
import type { SearchParams, SearchResponse } from 'meilisearch';
|
||||||
|
|
||||||
interface RawSearchSection {
|
interface RawSearchSection {
|
||||||
indexUid: string;
|
indexUid: string;
|
||||||
@ -26,7 +26,7 @@ const parseIndexes = (indexes: string | string[] | undefined): string[] => {
|
|||||||
return indexes.map((item) => item.trim()).filter(Boolean);
|
return indexes.map((item) => item.trim()).filter(Boolean);
|
||||||
}
|
}
|
||||||
return indexes
|
return indexes
|
||||||
.split(",")
|
.split(',')
|
||||||
.map((item) => item.trim())
|
.map((item) => item.trim())
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
};
|
};
|
||||||
@ -45,7 +45,7 @@ export const useMeilisearch = () => {
|
|||||||
|
|
||||||
const host = runtimeConfig.public?.meili?.host;
|
const host = runtimeConfig.public?.meili?.host;
|
||||||
if (!host) {
|
if (!host) {
|
||||||
console.warn("Meilisearch host is not configured.");
|
console.warn('Meilisearch host is not configured.');
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const apiKey = runtimeConfig.public?.meili?.searchKey;
|
const apiKey = runtimeConfig.public?.meili?.searchKey;
|
||||||
@ -72,7 +72,7 @@ export const useMeilisearch = () => {
|
|||||||
|
|
||||||
const activeIndexes = indexes.value;
|
const activeIndexes = indexes.value;
|
||||||
if (!activeIndexes.length) {
|
if (!activeIndexes.length) {
|
||||||
console.warn("No Meilisearch indexes configured.");
|
console.warn('No Meilisearch indexes configured.');
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,14 +101,14 @@ export const useMeilisearch = () => {
|
|||||||
settled
|
settled
|
||||||
.filter(
|
.filter(
|
||||||
(result): result is PromiseRejectedResult =>
|
(result): result is PromiseRejectedResult =>
|
||||||
result.status === "rejected"
|
result.status === 'rejected'
|
||||||
)
|
)
|
||||||
.forEach((result) => {
|
.forEach((result) => {
|
||||||
console.error("Meilisearch query failed", result.reason);
|
console.error('Meilisearch query failed', result.reason);
|
||||||
});
|
});
|
||||||
|
|
||||||
return settled
|
return settled
|
||||||
.filter((result) => result.status === "fulfilled")
|
.filter((result) => result.status === 'fulfilled')
|
||||||
.map((result) => {
|
.map((result) => {
|
||||||
const fulfilled = result as PromiseFulfilledResult<RawSearchSection>;
|
const fulfilled = result as PromiseFulfilledResult<RawSearchSection>;
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
<div text4xl>
|
<div text4xl>
|
||||||
<div i-ep-warning inline-block />
|
<div i-ep-warning inline-block />
|
||||||
</div>
|
</div>
|
||||||
<div>{{ $t("not-found") }}</div>
|
<div>{{ $t('not-found') }}</div>
|
||||||
<div>
|
<div>
|
||||||
<button text-sm btn m="3 t8" @click="router.back()">
|
<button text-sm btn m="3 t8" @click="router.back()">
|
||||||
{{ $t("back") }}
|
{{ $t('back') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
<el-breadcrumb class="breadcrumb" separator="/">
|
<el-breadcrumb class="breadcrumb" separator="/">
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/')">
|
<NuxtLink :to="$localePath('/')">
|
||||||
{{ $t("navigation.home") }}
|
{{ $t('navigation.home') }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/about')">
|
<NuxtLink :to="$localePath('/about')">
|
||||||
{{ $t("navigation.about-us") }}
|
{{ $t('navigation.about-us') }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
<el-icon class="icon" size="80">
|
<el-icon class="icon" size="80">
|
||||||
<ElIconService />
|
<ElIconService />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<br>
|
<br />
|
||||||
联系信息
|
联系信息
|
||||||
</el-card>
|
</el-card>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
@ -48,19 +48,19 @@ const content = ref<string | null>(null);
|
|||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await findOne<StrapiCompanyProfile>(
|
const response = await findOne<StrapiCompanyProfile>(
|
||||||
"company-profile",
|
'company-profile',
|
||||||
undefined,
|
undefined,
|
||||||
{
|
{
|
||||||
locale: strapiLocale,
|
locale: strapiLocale,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
content.value = response.data.content || "";
|
content.value = response.data.content || '';
|
||||||
} else {
|
} else {
|
||||||
console.warn("No company profile data found");
|
console.warn('No company profile data found');
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to fetch company profile:", error);
|
console.error('Failed to fetch company profile:', error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -141,22 +141,22 @@ const pending = ref(true);
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await findOne<StrapiHomepage>("homepage", undefined, {
|
const response = await findOne<StrapiHomepage>('homepage', undefined, {
|
||||||
populate: {
|
populate: {
|
||||||
carousel: {
|
carousel: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
recommend_productions: {
|
recommend_productions: {
|
||||||
populate: {
|
populate: {
|
||||||
cover: {
|
cover: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
recommend_solutions: {
|
recommend_solutions: {
|
||||||
populate: {
|
populate: {
|
||||||
cover: {
|
cover: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -167,11 +167,11 @@ onMounted(async () => {
|
|||||||
carouselImages.value = response.data.carousel || [];
|
carouselImages.value = response.data.carousel || [];
|
||||||
recommend_productions.value = response.data.recommend_productions || [];
|
recommend_productions.value = response.data.recommend_productions || [];
|
||||||
recommend_solutions.value = response.data.recommend_solutions || [];
|
recommend_solutions.value = response.data.recommend_solutions || [];
|
||||||
console.log("推荐产品:", recommend_productions.value);
|
console.log('推荐产品:', recommend_productions.value);
|
||||||
console.log("推荐解决方案:", recommend_solutions.value);
|
console.log('推荐解决方案:', recommend_solutions.value);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error fetching homepage data:", error);
|
console.error('Error fetching homepage data:', error);
|
||||||
} finally {
|
} finally {
|
||||||
pending.value = false;
|
pending.value = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,12 +5,12 @@
|
|||||||
<el-breadcrumb class="breadcrumb" separator="/">
|
<el-breadcrumb class="breadcrumb" separator="/">
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/')">{{
|
<NuxtLink :to="$localePath('/')">{{
|
||||||
$t("navigation.home")
|
$t('navigation.home')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/productions')">{{
|
<NuxtLink :to="$localePath('/productions')">{{
|
||||||
$t("navigation.productions")
|
$t('navigation.productions')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opactiy-50">{{
|
<el-breadcrumb-item class="text-md opactiy-50">{{
|
||||||
@ -102,7 +102,7 @@
|
|||||||
>
|
>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<el-button type="primary" @click="$router.push('/productions')">
|
<el-button type="primary" @click="$router.push('/productions')">
|
||||||
{{ $t("back-to-productions") }}
|
{{ $t('back-to-productions') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-result>
|
</el-result>
|
||||||
@ -119,7 +119,7 @@ const strapiLocale = getStrapiLocale();
|
|||||||
const production = ref<Production | null>(null);
|
const production = ref<Production | null>(null);
|
||||||
const pending = ref(true);
|
const pending = ref(true);
|
||||||
|
|
||||||
const activeName = ref("details"); // 默认选中概览标签
|
const activeName = ref('details'); // 默认选中概览标签
|
||||||
|
|
||||||
// 获取路由参数(slug 或 id)
|
// 获取路由参数(slug 或 id)
|
||||||
const documentId = computed(() => route.params.slug as string);
|
const documentId = computed(() => route.params.slug as string);
|
||||||
@ -127,24 +127,24 @@ const documentId = computed(() => route.params.slug as string);
|
|||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await findOne<Production>(
|
const response = await findOne<Production>(
|
||||||
"productions",
|
'productions',
|
||||||
documentId.value,
|
documentId.value,
|
||||||
{
|
{
|
||||||
populate: {
|
populate: {
|
||||||
production_specs: {
|
production_specs: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
production_images: {
|
production_images: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
cover: {
|
cover: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
questions: {
|
questions: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
production_documents: {
|
production_documents: {
|
||||||
populate: "document",
|
populate: 'document',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
locale: strapiLocale,
|
locale: strapiLocale,
|
||||||
@ -155,10 +155,10 @@ onMounted(async () => {
|
|||||||
production.value = {
|
production.value = {
|
||||||
...item,
|
...item,
|
||||||
};
|
};
|
||||||
console.log("Fetched production:", production.value);
|
console.log('Fetched production:', production.value);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to fetch production:", error);
|
console.error('Failed to fetch production:', error);
|
||||||
} finally {
|
} finally {
|
||||||
pending.value = false;
|
pending.value = false;
|
||||||
}
|
}
|
||||||
@ -166,11 +166,11 @@ onMounted(async () => {
|
|||||||
|
|
||||||
// SEO
|
// SEO
|
||||||
useHead({
|
useHead({
|
||||||
title: computed(() => production.value?.title || "Product Detail"),
|
title: computed(() => production.value?.title || 'Product Detail'),
|
||||||
meta: [
|
meta: [
|
||||||
{
|
{
|
||||||
name: "description",
|
name: 'description',
|
||||||
content: computed(() => production.value?.summary || ""),
|
content: computed(() => production.value?.summary || ''),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 class="page-title">{{ $t("our-productions") }}</h1>
|
<h1 class="page-title">{{ $t('our-productions') }}</h1>
|
||||||
<el-breadcrumb class="breadcrumb">
|
<el-breadcrumb class="breadcrumb">
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/')">{{
|
<NuxtLink :to="$localePath('/')">{{
|
||||||
$t("navigation.home")
|
$t('navigation.home')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/productions')">{{
|
<NuxtLink :to="$localePath('/productions')">{{
|
||||||
$t("navigation.productions")
|
$t('navigation.productions')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
@ -56,15 +56,15 @@ const productions = ref<Production[]>([]);
|
|||||||
const groupedProductions = computed(() => {
|
const groupedProductions = computed(() => {
|
||||||
const groups: Record<string, Production[]> = {};
|
const groups: Record<string, Production[]> = {};
|
||||||
for (const prod of productions.value) {
|
for (const prod of productions.value) {
|
||||||
let typeKey = "";
|
let typeKey = '';
|
||||||
if (typeof prod.production_type === "string") {
|
if (typeof prod.production_type === 'string') {
|
||||||
typeKey = prod.production_type;
|
typeKey = prod.production_type;
|
||||||
} else if (
|
} else if (
|
||||||
prod.production_type &&
|
prod.production_type &&
|
||||||
typeof prod.production_type === "object" &&
|
typeof prod.production_type === 'object' &&
|
||||||
"type" in prod.production_type
|
'type' in prod.production_type
|
||||||
) {
|
) {
|
||||||
typeKey = prod.production_type.type || "";
|
typeKey = prod.production_type.type || '';
|
||||||
}
|
}
|
||||||
if (!groups[typeKey]) groups[typeKey] = [];
|
if (!groups[typeKey]) groups[typeKey] = [];
|
||||||
groups[typeKey]?.push(prod);
|
groups[typeKey]?.push(prod);
|
||||||
@ -74,13 +74,13 @@ const groupedProductions = computed(() => {
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await find<Production>("productions", {
|
const response = await find<Production>('productions', {
|
||||||
populate: {
|
populate: {
|
||||||
cover: {
|
cover: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
production_type: {
|
production_type: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
@ -97,9 +97,9 @@ onMounted(async () => {
|
|||||||
}));
|
}));
|
||||||
// 默认展开所有分组
|
// 默认展开所有分组
|
||||||
activeNames.value = Object.keys(groupedProductions.value);
|
activeNames.value = Object.keys(groupedProductions.value);
|
||||||
activeNames.value.push("no-category"); // 展开未分类
|
activeNames.value.push('no-category'); // 展开未分类
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to fetch productions:", error);
|
console.error('Failed to fetch productions:', error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="search-page">
|
<div class="search-page">
|
||||||
<div class="search-header">
|
<div class="search-header">
|
||||||
<h1 class="page-title">{{ $t("search.title") }}</h1>
|
<h1 class="page-title">{{ $t('search.title') }}</h1>
|
||||||
<div class="search-bar">
|
<div class="search-bar">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="keyword"
|
v-model="keyword"
|
||||||
@ -14,11 +14,11 @@
|
|||||||
@clear="handleClear"
|
@clear="handleClear"
|
||||||
/>
|
/>
|
||||||
<el-button type="primary" @click="navigateToQuery(keyword)">
|
<el-button type="primary" @click="navigateToQuery(keyword)">
|
||||||
{{ $t("search.search-button") }}
|
{{ $t('search.search-button') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<p v-if="keyword && hasResults" class="search-meta">
|
<p v-if="keyword && hasResults" class="search-meta">
|
||||||
{{ $t("search.results-for", { query: keyword }) }}
|
{{ $t('search.results-for', { query: keyword }) }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<h2 class="section-title">
|
<h2 class="section-title">
|
||||||
{{ getIndexLabel(section.indexUid) }}
|
{{ getIndexLabel(section.indexUid) }}
|
||||||
<span class="section-count">{{
|
<span class="section-count">{{
|
||||||
$t("search.result-count", { count: section.estimatedTotalHits })
|
$t('search.result-count', { count: section.estimatedTotalHits })
|
||||||
}}</span>
|
}}</span>
|
||||||
</h2>
|
</h2>
|
||||||
</header>
|
</header>
|
||||||
@ -73,8 +73,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Search } from "@element-plus/icons-vue";
|
import { Search } from '@element-plus/icons-vue';
|
||||||
import type { SearchHit, SearchSection } from "~/composables/useMeilisearch";
|
import type { SearchHit, SearchSection } from '~/composables/useMeilisearch';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
@ -87,7 +87,7 @@ const strapiLocale = getStrapiLocale();
|
|||||||
const { search } = useMeilisearch();
|
const { search } = useMeilisearch();
|
||||||
|
|
||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
const keyword = ref("");
|
const keyword = ref('');
|
||||||
const sections = ref<SearchSection[]>([]);
|
const sections = ref<SearchSection[]>([]);
|
||||||
const localeSections = computed(() =>
|
const localeSections = computed(() =>
|
||||||
sections.value.map((section) => ({
|
sections.value.map((section) => ({
|
||||||
@ -105,10 +105,10 @@ const filteredSections = computed(() =>
|
|||||||
const activeRequestId = ref(0);
|
const activeRequestId = ref(0);
|
||||||
|
|
||||||
const indexLabels = computed<Record<string, string>>(() => ({
|
const indexLabels = computed<Record<string, string>>(() => ({
|
||||||
production: t("search.sections.production"),
|
production: t('search.sections.production'),
|
||||||
solution: t("search.sections.solution"),
|
solution: t('search.sections.solution'),
|
||||||
support: t("search.sections.support"),
|
support: t('search.sections.support'),
|
||||||
default: t("search.sections.default"),
|
default: t('search.sections.default'),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const getIndexLabel = (indexUid: string) =>
|
const getIndexLabel = (indexUid: string) =>
|
||||||
@ -121,16 +121,19 @@ const hasResults = computed(() =>
|
|||||||
const getHitIdentifier = (hit: SearchHit, index: number) => {
|
const getHitIdentifier = (hit: SearchHit, index: number) => {
|
||||||
const candidate = [hit.objectID, hit.documentId, hit.id, hit.slug].find(
|
const candidate = [hit.objectID, hit.documentId, hit.id, hit.slug].find(
|
||||||
(value) =>
|
(value) =>
|
||||||
["string", "number"].includes(typeof value) && String(value).length > 0
|
['string', 'number'].includes(typeof value) && String(value).length > 0
|
||||||
);
|
);
|
||||||
return candidate != null ? String(candidate) : String(index);
|
return candidate != null ? String(candidate) : String(index);
|
||||||
};
|
};
|
||||||
|
|
||||||
const getHitTitle = (hit: SearchHit) => {
|
const getHitTitle = (hit: SearchHit) => {
|
||||||
const candidate = [hit.title, hit.name, hit.heading, hit.documentTitle].find(
|
const candidate = [
|
||||||
(value) => typeof value === "string" && value.trim().length > 0
|
hit.title,
|
||||||
);
|
hit.name,
|
||||||
return candidate ? String(candidate) : t("search.untitled");
|
hit.heading,
|
||||||
|
hit.documentTitle,
|
||||||
|
].find((value) => typeof value === 'string' && value.trim().length > 0);
|
||||||
|
return candidate ? String(candidate) : t('search.untitled');
|
||||||
};
|
};
|
||||||
|
|
||||||
const getHitSummary = (hit: SearchHit) => {
|
const getHitSummary = (hit: SearchHit) => {
|
||||||
@ -140,18 +143,18 @@ const getHitSummary = (hit: SearchHit) => {
|
|||||||
hit.snippet,
|
hit.snippet,
|
||||||
hit.content,
|
hit.content,
|
||||||
hit.text,
|
hit.text,
|
||||||
].find((value) => typeof value === "string" && value.trim().length > 0);
|
].find((value) => typeof value === 'string' && value.trim().length > 0);
|
||||||
return candidate ? String(candidate) : "";
|
return candidate ? String(candidate) : '';
|
||||||
};
|
};
|
||||||
|
|
||||||
const resolveHitLink = (hit: SearchHit) => {
|
const resolveHitLink = (hit: SearchHit) => {
|
||||||
if (typeof hit.route === "string" && hit.route.trim().length > 0) {
|
if (typeof hit.route === 'string' && hit.route.trim().length > 0) {
|
||||||
return localePath(hit.route);
|
return localePath(hit.route);
|
||||||
}
|
}
|
||||||
|
|
||||||
const slugCandidate = [hit.slug, hit.documentId, hit.id, hit.objectID].find(
|
const slugCandidate = [hit.slug, hit.documentId, hit.id, hit.objectID].find(
|
||||||
(value) =>
|
(value) =>
|
||||||
["string", "number"].includes(typeof value) && String(value).length > 0
|
['string', 'number'].includes(typeof value) && String(value).length > 0
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!slugCandidate) {
|
if (!slugCandidate) {
|
||||||
@ -160,11 +163,11 @@ const resolveHitLink = (hit: SearchHit) => {
|
|||||||
|
|
||||||
const slug = String(slugCandidate);
|
const slug = String(slugCandidate);
|
||||||
|
|
||||||
if (hit.indexUid === "production") {
|
if (hit.indexUid === 'production') {
|
||||||
return localePath({ path: `/productions/${slug}` });
|
return localePath({ path: `/productions/${slug}` });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hit.indexUid === "solution") {
|
if (hit.indexUid === 'solution') {
|
||||||
return localePath({ path: `/solutions/${slug}` });
|
return localePath({ path: `/solutions/${slug}` });
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,7 +178,7 @@ const navigateToQuery = (value: string) => {
|
|||||||
const trimmed = value.trim();
|
const trimmed = value.trim();
|
||||||
if (!trimmed) return;
|
if (!trimmed) return;
|
||||||
navigateTo({
|
navigateTo({
|
||||||
path: localePath("/search"),
|
path: localePath('/search'),
|
||||||
query: { query: trimmed },
|
query: { query: trimmed },
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -201,7 +204,7 @@ const performSearch = async (value: string) => {
|
|||||||
console.log(results);
|
console.log(results);
|
||||||
console.log(localeSections.value);
|
console.log(localeSections.value);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to perform search", error);
|
console.error('Failed to perform search', error);
|
||||||
if (requestId === activeRequestId.value) {
|
if (requestId === activeRequestId.value) {
|
||||||
sections.value = [];
|
sections.value = [];
|
||||||
}
|
}
|
||||||
@ -233,13 +236,13 @@ const handleInput = debounce((value: string) => {
|
|||||||
}, 300);
|
}, 300);
|
||||||
|
|
||||||
const handleClear = () => {
|
const handleClear = () => {
|
||||||
keyword.value = "";
|
keyword.value = '';
|
||||||
sections.value = [];
|
sections.value = [];
|
||||||
router.replace(localePath({ path: "/search" }));
|
router.replace(localePath({ path: '/search' }));
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (typeof route.query.query === "string" && route.query.query.trim()) {
|
if (typeof route.query.query === 'string' && route.query.query.trim()) {
|
||||||
keyword.value = route.query.query;
|
keyword.value = route.query.query;
|
||||||
performSearch(route.query.query);
|
performSearch(route.query.query);
|
||||||
} else {
|
} else {
|
||||||
@ -248,7 +251,7 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
useHead(() => ({
|
useHead(() => ({
|
||||||
title: t("search.head-title"),
|
title: t('search.head-title'),
|
||||||
}));
|
}));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -5,12 +5,12 @@
|
|||||||
<el-breadcrumb class="breadcrumb" separator="/">
|
<el-breadcrumb class="breadcrumb" separator="/">
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/')">{{
|
<NuxtLink :to="$localePath('/')">{{
|
||||||
$t("navigation.home")
|
$t('navigation.home')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/solutions')">{{
|
<NuxtLink :to="$localePath('/solutions')">{{
|
||||||
$t("navigation.solutions")
|
$t('navigation.solutions')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">{{
|
<el-breadcrumb-item class="text-md opacity-50">{{
|
||||||
@ -52,8 +52,8 @@ const documentId = computed(() => route.params.slug as string);
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await findOne<Solution>("solutions", documentId.value, {
|
const response = await findOne<Solution>('solutions', documentId.value, {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
locale: strapiLocale,
|
locale: strapiLocale,
|
||||||
});
|
});
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
@ -63,9 +63,9 @@ onMounted(async () => {
|
|||||||
solution_type: response.data.solution_type,
|
solution_type: response.data.solution_type,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
console.log("Fetched Solution:", solution.value);
|
console.log('Fetched Solution:', solution.value);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to fetch solution:", error);
|
console.error('Failed to fetch solution:', error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 class="page-title">{{ $t("learn-our-solutions") }}</h1>
|
<h1 class="page-title">{{ $t('learn-our-solutions') }}</h1>
|
||||||
<el-breadcrumb class="breadcrumb">
|
<el-breadcrumb class="breadcrumb">
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/')">{{
|
<NuxtLink :to="$localePath('/')">{{
|
||||||
$t("navigation.home")
|
$t('navigation.home')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/solutions')">{{
|
<NuxtLink :to="$localePath('/solutions')">{{
|
||||||
$t("navigation.solutions")
|
$t('navigation.solutions')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
@ -57,7 +57,7 @@ const { getStrapiLocale } = useLocalizations();
|
|||||||
|
|
||||||
const strapiLocale = getStrapiLocale();
|
const strapiLocale = getStrapiLocale();
|
||||||
|
|
||||||
const activeName = ref<string>("all");
|
const activeName = ref<string>('all');
|
||||||
|
|
||||||
const solutions = ref<Solution[]>([]);
|
const solutions = ref<Solution[]>([]);
|
||||||
|
|
||||||
@ -65,15 +65,15 @@ const solutions = ref<Solution[]>([]);
|
|||||||
const groupedSolutions = computed(() => {
|
const groupedSolutions = computed(() => {
|
||||||
const gourps: Record<string, Solution[]> = {};
|
const gourps: Record<string, Solution[]> = {};
|
||||||
for (const sol of solutions.value) {
|
for (const sol of solutions.value) {
|
||||||
let typeKey = "";
|
let typeKey = '';
|
||||||
if (typeof sol.solution_type === "string") {
|
if (typeof sol.solution_type === 'string') {
|
||||||
typeKey = sol.solution_type;
|
typeKey = sol.solution_type;
|
||||||
} else if (
|
} else if (
|
||||||
sol.solution_type &&
|
sol.solution_type &&
|
||||||
typeof sol.solution_type === "object" &&
|
typeof sol.solution_type === 'object' &&
|
||||||
"type" in sol.solution_type
|
'type' in sol.solution_type
|
||||||
) {
|
) {
|
||||||
typeKey = sol.solution_type.type || "";
|
typeKey = sol.solution_type.type || '';
|
||||||
}
|
}
|
||||||
if (!gourps[typeKey]) gourps[typeKey] = [];
|
if (!gourps[typeKey]) gourps[typeKey] = [];
|
||||||
gourps[typeKey]?.push(sol);
|
gourps[typeKey]?.push(sol);
|
||||||
@ -83,13 +83,13 @@ const groupedSolutions = computed(() => {
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await find<Solution>("solutions", {
|
const response = await find<Solution>('solutions', {
|
||||||
populate: {
|
populate: {
|
||||||
cover: {
|
cover: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
solution_type: {
|
solution_type: {
|
||||||
populate: "*",
|
populate: '*',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
locale: strapiLocale,
|
locale: strapiLocale,
|
||||||
@ -98,10 +98,10 @@ onMounted(async () => {
|
|||||||
...item,
|
...item,
|
||||||
solution_type: item.solution_type,
|
solution_type: item.solution_type,
|
||||||
}));
|
}));
|
||||||
console.log("Fetched Solutions:", solutions.value);
|
console.log('Fetched Solutions:', solutions.value);
|
||||||
console.log("Grouped Solutions:", groupedSolutions.value);
|
console.log('Grouped Solutions:', groupedSolutions.value);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to fetch solutions:", error);
|
console.error('Failed to fetch solutions:', error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -3,21 +3,21 @@
|
|||||||
<div v-if="content">
|
<div v-if="content">
|
||||||
<support-tabs model-value="contact-us" />
|
<support-tabs model-value="contact-us" />
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 class="page-title">{{ $t("navigation.contact-info") }}</h1>
|
<h1 class="page-title">{{ $t('navigation.contact-info') }}</h1>
|
||||||
<el-breadcrumb class="breadcrumb" separator="/">
|
<el-breadcrumb class="breadcrumb" separator="/">
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/')">
|
<NuxtLink :to="$localePath('/')">
|
||||||
{{ $t("navigation.home") }}
|
{{ $t('navigation.home') }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/support')">
|
<NuxtLink :to="$localePath('/support')">
|
||||||
{{ $t("navigation.support") }}
|
{{ $t('navigation.support') }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/support/contact-us')">
|
<NuxtLink :to="$localePath('/support/contact-us')">
|
||||||
{{ $t("navigation.contact-info") }}
|
{{ $t('navigation.contact-info') }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
@ -39,25 +39,25 @@ const { getStrapiLocale } = useLocalizations();
|
|||||||
|
|
||||||
const strapiLocale = getStrapiLocale();
|
const strapiLocale = getStrapiLocale();
|
||||||
|
|
||||||
const content = ref<string>("");
|
const content = ref<string>('');
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await findOne<StrapiContactInfo>(
|
const response = await findOne<StrapiContactInfo>(
|
||||||
"contact-info",
|
'contact-info',
|
||||||
undefined,
|
undefined,
|
||||||
{
|
{
|
||||||
populate: "*",
|
populate: '*',
|
||||||
locale: strapiLocale,
|
locale: strapiLocale,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
content.value = response.data.content || "";
|
content.value = response.data.content || '';
|
||||||
} else {
|
} else {
|
||||||
console.warn("No contact info data found");
|
console.warn('No contact info data found');
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to fetch contact info:", error);
|
console.error('Failed to fetch contact info:', error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -6,21 +6,21 @@
|
|||||||
<div v-else>
|
<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>
|
||||||
<el-breadcrumb class="breadcrumb" separator="/">
|
<el-breadcrumb class="breadcrumb" separator="/">
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/')">{{
|
<NuxtLink :to="$localePath('/')">{{
|
||||||
$t("navigation.home")
|
$t('navigation.home')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/support')">{{
|
<NuxtLink :to="$localePath('/support')">{{
|
||||||
$t("navigation.support")
|
$t('navigation.support')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/support/documents')">{{
|
<NuxtLink :to="$localePath('/support/documents')">{{
|
||||||
$t("navigation.documents")
|
$t('navigation.documents')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
@ -43,9 +43,9 @@ const documents = ref<StrapiMedia[]>([]);
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await find<ProductionDocument>("production-documents", {
|
const response = await find<ProductionDocument>('production-documents', {
|
||||||
locale: strapiLocale,
|
locale: strapiLocale,
|
||||||
populate: "document",
|
populate: 'document',
|
||||||
});
|
});
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
documents.value =
|
documents.value =
|
||||||
@ -54,7 +54,7 @@ onMounted(async () => {
|
|||||||
})) || [];
|
})) || [];
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error fetching documents:", error);
|
console.error('Error fetching documents:', error);
|
||||||
} finally {
|
} finally {
|
||||||
pending.value = false;
|
pending.value = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,21 +6,21 @@
|
|||||||
<div v-else>
|
<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>
|
||||||
<el-breadcrumb class="breadcrumb" separator="/">
|
<el-breadcrumb class="breadcrumb" separator="/">
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/')">{{
|
<NuxtLink :to="$localePath('/')">{{
|
||||||
$t("navigation.home")
|
$t('navigation.home')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/support')">{{
|
<NuxtLink :to="$localePath('/support')">{{
|
||||||
$t("navigation.support")
|
$t('navigation.support')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/support/faq')">{{
|
<NuxtLink :to="$localePath('/support/faq')">{{
|
||||||
$t("navigation.faq")
|
$t('navigation.faq')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
@ -43,14 +43,14 @@ const pending = ref(true);
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const faqData = await find<Question>("questions", {
|
const faqData = await find<Question>('questions', {
|
||||||
locale: strapiLocale,
|
locale: strapiLocale,
|
||||||
});
|
});
|
||||||
if (faqData) {
|
if (faqData) {
|
||||||
questions.value = faqData.data || [];
|
questions.value = faqData.data || [];
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to fetch FAQ data:", error);
|
console.error('Failed to fetch FAQ data:', error);
|
||||||
} finally {
|
} finally {
|
||||||
pending.value = false;
|
pending.value = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,16 +3,16 @@
|
|||||||
<support-tabs />
|
<support-tabs />
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 class="page-title">{{ $t("navigation.support") }}</h1>
|
<h1 class="page-title">{{ $t('navigation.support') }}</h1>
|
||||||
<el-breadcrumb class="breadcrumb" separator="/">
|
<el-breadcrumb class="breadcrumb" separator="/">
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/')">{{
|
<NuxtLink :to="$localePath('/')">{{
|
||||||
$t("navigation.home")
|
$t('navigation.home')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item class="text-md opacity-50">
|
<el-breadcrumb-item class="text-md opacity-50">
|
||||||
<NuxtLink :to="$localePath('/support')">{{
|
<NuxtLink :to="$localePath('/support')">{{
|
||||||
$t("navigation.support")
|
$t('navigation.support')
|
||||||
}}</NuxtLink>
|
}}</NuxtLink>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="18">
|
<el-col :span="18">
|
||||||
<div class="card-title">
|
<div class="card-title">
|
||||||
<span>{{ $t("navigation.faq") }}</span>
|
<span>{{ $t('navigation.faq') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -58,7 +58,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="18">
|
<el-col :span="18">
|
||||||
<div class="card-title">
|
<div class="card-title">
|
||||||
<span>{{ $t("navigation.documents") }}</span>
|
<span>{{ $t('navigation.documents') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -84,7 +84,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="18">
|
<el-col :span="18">
|
||||||
<div class="card-title">
|
<div class="card-title">
|
||||||
<span>{{ $t("navigation.contact-info") }}</span>
|
<span>{{ $t('navigation.contact-info') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export * from "./common";
|
export * from './common';
|
||||||
export * from "./production";
|
export * from './production';
|
||||||
export * from "./singleTypes";
|
export * from './singleTypes';
|
||||||
export * from "./solution";
|
export * from './solution';
|
||||||
export * from "./question";
|
export * from './question';
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import type {
|
|||||||
StrapiImage,
|
StrapiImage,
|
||||||
StrapiMedia,
|
StrapiMedia,
|
||||||
StrapiRelation,
|
StrapiRelation,
|
||||||
} from "./common";
|
} from './common';
|
||||||
|
|
||||||
export interface ProductionType extends StrapiEntity {
|
export interface ProductionType extends StrapiEntity {
|
||||||
type: string;
|
type: string;
|
||||||
@ -29,13 +29,13 @@ export interface Production extends StrapiEntity {
|
|||||||
production_specs: ProductionSpecGroup[];
|
production_specs: ProductionSpecGroup[];
|
||||||
production_documents: StrapiRelation<
|
production_documents: StrapiRelation<
|
||||||
ProductionDocument,
|
ProductionDocument,
|
||||||
"related_productions"
|
'related_productions'
|
||||||
>[];
|
>[];
|
||||||
questions: StrapiRelation<Question, "related_productions">[];
|
questions: StrapiRelation<Question, 'related_productions'>[];
|
||||||
show_in_production_list: boolean;
|
show_in_production_list: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductionDocument extends StrapiEntity {
|
export interface ProductionDocument extends StrapiEntity {
|
||||||
document: StrapiMedia;
|
document: StrapiMedia;
|
||||||
related_productions: StrapiRelation<Production, "production_documents">[];
|
related_productions: StrapiRelation<Production, 'production_documents'>[];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export interface Question extends StrapiEntity {
|
export interface Question extends StrapiEntity {
|
||||||
title: string;
|
title: string;
|
||||||
content: string;
|
content: string;
|
||||||
related_productions: StrapiRelation<Production, "questions">[];
|
related_productions: StrapiRelation<Production, 'questions'>[];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import type { StrapiEntity, StrapiImage } from "./common";
|
import type { StrapiEntity, StrapiImage } from './common';
|
||||||
|
|
||||||
export interface SolutionType extends StrapiEntity {
|
export interface SolutionType extends StrapiEntity {
|
||||||
type: string;
|
type: string;
|
||||||
|
|||||||
@ -8,5 +8,5 @@ export function formatFileSize(sizeInKB: number): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function formatFileExtension(ext: string): string {
|
export function formatFileExtension(ext: string): string {
|
||||||
return ext.startsWith(".") ? ext.slice(1).toUpperCase() : ext.toUpperCase();
|
return ext.startsWith('.') ? ext.slice(1).toUpperCase() : ext.toUpperCase();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import MarkdownIt from "markdown-it";
|
import MarkdownIt from 'markdown-it';
|
||||||
|
|
||||||
const md = new MarkdownIt({
|
const md = new MarkdownIt({
|
||||||
html: true,
|
html: true,
|
||||||
@ -10,8 +10,8 @@ const md = new MarkdownIt({
|
|||||||
export function renderMarkdown(content: string): string {
|
export function renderMarkdown(content: string): string {
|
||||||
const dirtyHtml = md.render(content);
|
const dirtyHtml = md.render(content);
|
||||||
|
|
||||||
if (typeof window !== "undefined") {
|
if (typeof window !== 'undefined') {
|
||||||
import("dompurify").then((DOMPurify) => {
|
import('dompurify').then((DOMPurify) => {
|
||||||
return DOMPurify.default.sanitize(dirtyHtml);
|
return DOMPurify.default.sanitize(dirtyHtml);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -23,7 +23,7 @@ export function convertMedia(content: string): string {
|
|||||||
// 通过正则表达式替换Markdown中的图片链接
|
// 通过正则表达式替换Markdown中的图片链接
|
||||||
//  -> )
|
//  -> )
|
||||||
|
|
||||||
if (!content) return "";
|
if (!content) return '';
|
||||||
|
|
||||||
const contentWithAbsoluteUrls = content.replace(
|
const contentWithAbsoluteUrls = content.replace(
|
||||||
/!\[([^\]]*)\]\((\/uploads\/[^)]+)\)/g,
|
/!\[([^\]]*)\]\((\/uploads\/[^)]+)\)/g,
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
export default {
|
export default {
|
||||||
extends: ['@commitlint/config-conventional']
|
extends: ['@commitlint/config-conventional'],
|
||||||
};
|
};
|
||||||
@ -1,6 +1,18 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
import withNuxt from './.nuxt/eslint.config.mjs'
|
import withNuxt from './.nuxt/eslint.config.mjs';
|
||||||
|
|
||||||
export default withNuxt(
|
export default withNuxt(
|
||||||
// Your custom configs here
|
// Your custom configs here
|
||||||
)
|
{
|
||||||
|
rules: {
|
||||||
|
'vue/html-self-closing': [
|
||||||
|
'warn',
|
||||||
|
{
|
||||||
|
html: {
|
||||||
|
void: 'any',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|||||||
@ -2,5 +2,5 @@
|
|||||||
export default defineI18nConfig(() => ({
|
export default defineI18nConfig(() => ({
|
||||||
legacy: false,
|
legacy: false,
|
||||||
locale: 'zh',
|
locale: 'zh',
|
||||||
fallbackLocale: 'zh'
|
fallbackLocale: 'zh',
|
||||||
}))
|
}));
|
||||||
|
|||||||
@ -2,4 +2,5 @@ export default defineI18nConfig(() => ({
|
|||||||
legacy: false,
|
legacy: false,
|
||||||
locale: 'zh',
|
locale: 'zh',
|
||||||
fallbackLocale: 'zh',
|
fallbackLocale: 'zh',
|
||||||
}))
|
}));
|
||||||
|
|
||||||
|
|||||||
8
lint-staged.config.mjs
Normal file
8
lint-staged.config.mjs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* @filename: lint-staged.config.mjs
|
||||||
|
* @type {import('lint-staged').Configuration}
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
'*.{js,jsx,mjs,ts,tsx}': ['prettier --write'],
|
||||||
|
'*.{json,md,css,scss,html}': ['prettier --write'],
|
||||||
|
};
|
||||||
@ -1,33 +1,33 @@
|
|||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
compatibilityDate: "2025-07-15",
|
compatibilityDate: '2025-07-15',
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
|
|
||||||
app: {
|
app: {
|
||||||
// head
|
// head
|
||||||
head: {
|
head: {
|
||||||
title: "金申机械制造有限公司",
|
title: '金申机械制造有限公司',
|
||||||
meta: [
|
meta: [
|
||||||
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||||
{
|
{
|
||||||
name: "description",
|
name: 'description',
|
||||||
content: "Jinshen Website",
|
content: 'Jinshen Website',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
meili: {
|
meili: {
|
||||||
host: process.env.MEILI_HOST || "http://localhost:7700",
|
host: process.env.MEILI_HOST || 'http://localhost:7700',
|
||||||
searchKey: process.env.MEILI_SEARCH_KEY || "",
|
searchKey: process.env.MEILI_SEARCH_KEY || '',
|
||||||
indexes: process.env.MEILI_SEARCH_INDEXES
|
indexes: process.env.MEILI_SEARCH_INDEXES
|
||||||
? (typeof process.env.MEILI_SEARCH_INDEXES === "string"
|
? typeof process.env.MEILI_SEARCH_INDEXES === 'string'
|
||||||
? process.env.MEILI_SEARCH_INDEXES.split(",").map(i => i.trim())
|
? process.env.MEILI_SEARCH_INDEXES.split(',').map((i) => i.trim())
|
||||||
: process.env.MEILI_SEARCH_INDEXES)
|
: process.env.MEILI_SEARCH_INDEXES
|
||||||
: ["production", "solution"],
|
: ['production', 'solution'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -38,22 +38,22 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
// css
|
// css
|
||||||
css: [
|
css: [
|
||||||
"@unocss/reset/tailwind.css",
|
'@unocss/reset/tailwind.css',
|
||||||
"~/assets/scss/index.scss",
|
'~/assets/scss/index.scss',
|
||||||
"~/assets/css/fonts.css",
|
'~/assets/css/fonts.css',
|
||||||
"@mdi/font/css/materialdesignicons.min.css",
|
'@mdi/font/css/materialdesignicons.min.css',
|
||||||
],
|
],
|
||||||
|
|
||||||
nitro: {
|
nitro: {
|
||||||
esbuild: {
|
esbuild: {
|
||||||
options: {
|
options: {
|
||||||
target: "esnext",
|
target: 'esnext',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
prerender: {
|
prerender: {
|
||||||
crawlLinks: false,
|
crawlLinks: false,
|
||||||
routes: ["/"],
|
routes: ['/'],
|
||||||
ignore: ["/hi"],
|
ignore: ['/hi'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -73,53 +73,52 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
elementPlus: {
|
elementPlus: {
|
||||||
icon: "ElIcon",
|
icon: 'ElIcon',
|
||||||
importStyle: "scss",
|
importStyle: 'scss',
|
||||||
themes: ["dark"],
|
themes: ['dark'],
|
||||||
},
|
},
|
||||||
|
|
||||||
i18n: {
|
i18n: {
|
||||||
detectBrowserLanguage: {
|
detectBrowserLanguage: {
|
||||||
useCookie: true,
|
useCookie: true,
|
||||||
cookieKey: "i18n_redirected",
|
cookieKey: 'i18n_redirected',
|
||||||
redirectOn: "root",
|
redirectOn: 'root',
|
||||||
alwaysRedirect: true
|
alwaysRedirect: true,
|
||||||
},
|
},
|
||||||
locales: [
|
locales: [
|
||||||
{ code: "en", language: "en-US", name: "English", file: "en.json" },
|
{ code: 'en', language: 'en-US', name: 'English', file: 'en.json' },
|
||||||
{ code: "zh", language: "zh-CN", name: "简体中文", file: "zh.json" },
|
{ code: 'zh', language: 'zh-CN', name: '简体中文', file: 'zh.json' },
|
||||||
],
|
],
|
||||||
defaultLocale: "zh",
|
defaultLocale: 'zh',
|
||||||
strategy: "prefix_except_default",
|
strategy: 'prefix_except_default',
|
||||||
langDir: "locales",
|
langDir: 'locales',
|
||||||
},
|
},
|
||||||
|
|
||||||
strapi: {
|
strapi: {
|
||||||
url: process.env.STRAPI_URL || "http://localhost:1337",
|
url: process.env.STRAPI_URL || 'http://localhost:1337',
|
||||||
token: process.env.STRAPI_TOKEN || undefined,
|
token: process.env.STRAPI_TOKEN || undefined,
|
||||||
prefix: "/api",
|
prefix: '/api',
|
||||||
admin: "/admin",
|
admin: '/admin',
|
||||||
version: "v5",
|
version: 'v5',
|
||||||
cookie: {},
|
cookie: {},
|
||||||
cookieName: "strapi_jwt",
|
cookieName: 'strapi_jwt',
|
||||||
},
|
},
|
||||||
|
|
||||||
imports: {
|
imports: {
|
||||||
dirs: ['types/**']
|
dirs: ['types/**'],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
modules: [
|
modules: [
|
||||||
"@nuxt/eslint",
|
'@nuxt/eslint',
|
||||||
"@nuxt/fonts",
|
'@nuxt/fonts',
|
||||||
"@nuxt/icon",
|
'@nuxt/icon',
|
||||||
"@nuxt/image",
|
'@nuxt/image',
|
||||||
"@nuxt/test-utils",
|
'@nuxt/test-utils',
|
||||||
"@vueuse/nuxt",
|
'@vueuse/nuxt',
|
||||||
"@pinia/nuxt",
|
'@pinia/nuxt',
|
||||||
"@unocss/nuxt",
|
'@unocss/nuxt',
|
||||||
"@element-plus/nuxt",
|
'@element-plus/nuxt',
|
||||||
"@nuxtjs/i18n",
|
'@nuxtjs/i18n',
|
||||||
"@nuxtjs/strapi",
|
'@nuxtjs/strapi',
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
@ -25,7 +25,6 @@
|
|||||||
"@vueuse/nuxt": "^13.6.0",
|
"@vueuse/nuxt": "^13.6.0",
|
||||||
"dompurify": "^3.2.6",
|
"dompurify": "^3.2.6",
|
||||||
"element-plus": "^2.10.7",
|
"element-plus": "^2.10.7",
|
||||||
"eslint": "^9.0.0",
|
|
||||||
"markdown-it": "^14.1.0",
|
"markdown-it": "^14.1.0",
|
||||||
"meilisearch": "^0.53.0",
|
"meilisearch": "^0.53.0",
|
||||||
"nuxt": "^4.0.3",
|
"nuxt": "^4.0.3",
|
||||||
@ -38,6 +37,9 @@
|
|||||||
"@commitlint/cli": "^19.8.1",
|
"@commitlint/cli": "^19.8.1",
|
||||||
"@commitlint/config-conventional": "^19.8.1",
|
"@commitlint/config-conventional": "^19.8.1",
|
||||||
"@element-plus/nuxt": "^1.1.4",
|
"@element-plus/nuxt": "^1.1.4",
|
||||||
"husky": "^9.1.7"
|
"eslint": "^9.35.0",
|
||||||
|
"husky": "^9.1.7",
|
||||||
|
"lint-staged": "^16.1.6",
|
||||||
|
"prettier": "^3.6.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
205
pnpm-lock.yaml
generated
205
pnpm-lock.yaml
generated
@ -50,9 +50,6 @@ importers:
|
|||||||
element-plus:
|
element-plus:
|
||||||
specifier: ^2.10.7
|
specifier: ^2.10.7
|
||||||
version: 2.11.2(vue@3.5.21(typescript@5.9.2))
|
version: 2.11.2(vue@3.5.21(typescript@5.9.2))
|
||||||
eslint:
|
|
||||||
specifier: ^9.0.0
|
|
||||||
version: 9.35.0(jiti@2.5.1)
|
|
||||||
markdown-it:
|
markdown-it:
|
||||||
specifier: ^14.1.0
|
specifier: ^14.1.0
|
||||||
version: 14.1.0
|
version: 14.1.0
|
||||||
@ -84,9 +81,18 @@ importers:
|
|||||||
'@element-plus/nuxt':
|
'@element-plus/nuxt':
|
||||||
specifier: ^1.1.4
|
specifier: ^1.1.4
|
||||||
version: 1.1.4(@element-plus/icons-vue@2.3.2(vue@3.5.21(typescript@5.9.2)))(element-plus@2.11.2(vue@3.5.21(typescript@5.9.2)))(magicast@0.3.5)
|
version: 1.1.4(@element-plus/icons-vue@2.3.2(vue@3.5.21(typescript@5.9.2)))(element-plus@2.11.2(vue@3.5.21(typescript@5.9.2)))(magicast@0.3.5)
|
||||||
|
eslint:
|
||||||
|
specifier: ^9.35.0
|
||||||
|
version: 9.35.0(jiti@2.5.1)
|
||||||
husky:
|
husky:
|
||||||
specifier: ^9.1.7
|
specifier: ^9.1.7
|
||||||
version: 9.1.7
|
version: 9.1.7
|
||||||
|
lint-staged:
|
||||||
|
specifier: ^16.1.6
|
||||||
|
version: 16.1.6
|
||||||
|
prettier:
|
||||||
|
specifier: ^3.6.2
|
||||||
|
version: 3.6.2
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
@ -2335,6 +2341,10 @@ packages:
|
|||||||
alien-signals@2.0.7:
|
alien-signals@2.0.7:
|
||||||
resolution: {integrity: sha512-wE7y3jmYeb0+h6mr5BOovuqhFv22O/MV9j5p0ndJsa7z1zJNPGQ4ph5pQk/kTTCWRC3xsA4SmtwmkzQO+7NCNg==}
|
resolution: {integrity: sha512-wE7y3jmYeb0+h6mr5BOovuqhFv22O/MV9j5p0ndJsa7z1zJNPGQ4ph5pQk/kTTCWRC3xsA4SmtwmkzQO+7NCNg==}
|
||||||
|
|
||||||
|
ansi-escapes@7.1.0:
|
||||||
|
resolution: {integrity: sha512-YdhtCd19sKRKfAAUsrcC1wzm4JuzJoiX4pOJqIoW2qmKj5WzG/dL8uUJ0361zaXtHqK7gEhOwtAtz7t3Yq3X5g==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
ansi-regex@5.0.1:
|
ansi-regex@5.0.1:
|
||||||
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
|
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@ -2587,6 +2597,14 @@ packages:
|
|||||||
resolution: {integrity: sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==}
|
resolution: {integrity: sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==}
|
||||||
engines: {node: '>=4'}
|
engines: {node: '>=4'}
|
||||||
|
|
||||||
|
cli-cursor@5.0.0:
|
||||||
|
resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
|
cli-truncate@5.1.0:
|
||||||
|
resolution: {integrity: sha512-7JDGG+4Zp0CsknDCedl0DYdaeOhc46QNpXi3NLQblkZpXXgA6LncLDUUyvrjSvZeF3VRQa+KiMGomazQrC1V8g==}
|
||||||
|
engines: {node: '>=20'}
|
||||||
|
|
||||||
clipboardy@4.0.0:
|
clipboardy@4.0.0:
|
||||||
resolution: {integrity: sha512-5mOlNS0mhX0707P2I0aZ2V/cmHUEO/fL7VFLqszkhUsxt7RwnmrInf/eEQKlf5GzvYeHIjT+Ov1HRfNmymlG0w==}
|
resolution: {integrity: sha512-5mOlNS0mhX0707P2I0aZ2V/cmHUEO/fL7VFLqszkhUsxt7RwnmrInf/eEQKlf5GzvYeHIjT+Ov1HRfNmymlG0w==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
@ -2627,6 +2645,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
|
resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
|
||||||
engines: {node: '>=16'}
|
engines: {node: '>=16'}
|
||||||
|
|
||||||
|
commander@14.0.1:
|
||||||
|
resolution: {integrity: sha512-2JkV3gUZUVrbNA+1sjBOYLsMZ5cEEl8GTFP2a4AVz5hvasAMCQ1D2l2le/cX+pV4N6ZU17zjUahLpIXRrnWL8A==}
|
||||||
|
engines: {node: '>=20'}
|
||||||
|
|
||||||
commander@2.20.3:
|
commander@2.20.3:
|
||||||
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
|
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
|
||||||
|
|
||||||
@ -2957,6 +2979,9 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
vue: ^3.2.0
|
vue: ^3.2.0
|
||||||
|
|
||||||
|
emoji-regex@10.5.0:
|
||||||
|
resolution: {integrity: sha512-lb49vf1Xzfx080OKA0o6l8DQQpV+6Vg95zyCJX9VB/BqKYlhG7N4wgROUUHRA+ZPUefLnteQOad7z1kT2bV7bg==}
|
||||||
|
|
||||||
emoji-regex@8.0.0:
|
emoji-regex@8.0.0:
|
||||||
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
|
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
|
||||||
|
|
||||||
@ -2982,6 +3007,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
|
resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
|
|
||||||
|
environment@1.1.0:
|
||||||
|
resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
error-ex@1.3.2:
|
error-ex@1.3.2:
|
||||||
resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}
|
resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}
|
||||||
|
|
||||||
@ -3193,6 +3222,9 @@ packages:
|
|||||||
resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}
|
resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
|
|
||||||
|
eventemitter3@5.0.1:
|
||||||
|
resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
|
||||||
|
|
||||||
events@3.3.0:
|
events@3.3.0:
|
||||||
resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
|
resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
|
||||||
engines: {node: '>=0.8.x'}
|
engines: {node: '>=0.8.x'}
|
||||||
@ -3316,6 +3348,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
|
resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
|
||||||
engines: {node: 6.* || 8.* || >= 10.*}
|
engines: {node: 6.* || 8.* || >= 10.*}
|
||||||
|
|
||||||
|
get-east-asian-width@1.4.0:
|
||||||
|
resolution: {integrity: sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
get-intrinsic@1.3.0:
|
get-intrinsic@1.3.0:
|
||||||
resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
|
resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@ -3551,6 +3587,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
|
resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
|
||||||
|
is-fullwidth-code-point@5.1.0:
|
||||||
|
resolution: {integrity: sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
is-glob@4.0.3:
|
is-glob@4.0.3:
|
||||||
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
|
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
@ -3735,10 +3775,19 @@ packages:
|
|||||||
linkify-it@5.0.0:
|
linkify-it@5.0.0:
|
||||||
resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==}
|
resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==}
|
||||||
|
|
||||||
|
lint-staged@16.1.6:
|
||||||
|
resolution: {integrity: sha512-U4kuulU3CKIytlkLlaHcGgKscNfJPNTiDF2avIUGFCv7K95/DCYQ7Ra62ydeRWmgQGg9zJYw2dzdbztwJlqrow==}
|
||||||
|
engines: {node: '>=20.17'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
listhen@1.9.0:
|
listhen@1.9.0:
|
||||||
resolution: {integrity: sha512-I8oW2+QL5KJo8zXNWX046M134WchxsXC7SawLPvRQpogCbkyQIaFxPE89A2HiwR7vAK2Dm2ERBAmyjTYGYEpBg==}
|
resolution: {integrity: sha512-I8oW2+QL5KJo8zXNWX046M134WchxsXC7SawLPvRQpogCbkyQIaFxPE89A2HiwR7vAK2Dm2ERBAmyjTYGYEpBg==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
listr2@9.0.4:
|
||||||
|
resolution: {integrity: sha512-1wd/kpAdKRLwv7/3OKC8zZ5U8e/fajCfWMxacUvB79S5nLrYGPtUI/8chMQhn3LQjsRVErTb9i1ECAwW0ZIHnQ==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
load-tsconfig@0.2.5:
|
load-tsconfig@0.2.5:
|
||||||
resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}
|
resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}
|
||||||
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
|
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
|
||||||
@ -3808,6 +3857,10 @@ packages:
|
|||||||
lodash@4.17.21:
|
lodash@4.17.21:
|
||||||
resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
|
resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
|
||||||
|
|
||||||
|
log-update@6.1.0:
|
||||||
|
resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
lru-cache@10.4.3:
|
lru-cache@10.4.3:
|
||||||
resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
|
resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
|
||||||
|
|
||||||
@ -3902,6 +3955,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
|
resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
|
mimic-function@5.0.1:
|
||||||
|
resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
mimic-response@3.1.0:
|
mimic-response@3.1.0:
|
||||||
resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}
|
resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
@ -3959,6 +4016,10 @@ packages:
|
|||||||
muggle-string@0.4.1:
|
muggle-string@0.4.1:
|
||||||
resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==}
|
resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==}
|
||||||
|
|
||||||
|
nano-spawn@1.0.3:
|
||||||
|
resolution: {integrity: sha512-jtpsQDetTnvS2Ts1fiRdci5rx0VYws5jGyC+4IYOTnIQ/wwdf6JdomlHBwqC3bJYOvaKu0C2GSZ1A60anrYpaA==}
|
||||||
|
engines: {node: '>=20.17'}
|
||||||
|
|
||||||
nanoid@3.3.11:
|
nanoid@3.3.11:
|
||||||
resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}
|
resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}
|
||||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||||
@ -4105,6 +4166,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
|
resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
|
onetime@7.0.0:
|
||||||
|
resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
open@10.2.0:
|
open@10.2.0:
|
||||||
resolution: {integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==}
|
resolution: {integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
@ -4250,6 +4315,11 @@ packages:
|
|||||||
resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
|
resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
|
pidtree@0.6.0:
|
||||||
|
resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==}
|
||||||
|
engines: {node: '>=0.10'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
pinia@3.0.3:
|
pinia@3.0.3:
|
||||||
resolution: {integrity: sha512-ttXO/InUULUXkMHpTdp9Fj4hLpD/2AoJdmAbAeW2yu1iy1k+pkFekQXw5VpC0/5p51IOR/jDaDRfRWRnMMsGOA==}
|
resolution: {integrity: sha512-ttXO/InUULUXkMHpTdp9Fj4hLpD/2AoJdmAbAeW2yu1iy1k+pkFekQXw5VpC0/5p51IOR/jDaDRfRWRnMMsGOA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@ -4455,6 +4525,11 @@ packages:
|
|||||||
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
|
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
|
||||||
engines: {node: '>= 0.8.0'}
|
engines: {node: '>= 0.8.0'}
|
||||||
|
|
||||||
|
prettier@3.6.2:
|
||||||
|
resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
|
||||||
|
engines: {node: '>=14'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
pretty-bytes@7.0.1:
|
pretty-bytes@7.0.1:
|
||||||
resolution: {integrity: sha512-285/jRCYIbMGDciDdrw0KPNC4LKEEwz/bwErcYNxSJOi4CpGUuLpb9gQpg3XJP0XYj9ldSRluXxih4lX2YN8Xw==}
|
resolution: {integrity: sha512-285/jRCYIbMGDciDdrw0KPNC4LKEEwz/bwErcYNxSJOi4CpGUuLpb9gQpg3XJP0XYj9ldSRluXxih4lX2YN8Xw==}
|
||||||
engines: {node: '>=20'}
|
engines: {node: '>=20'}
|
||||||
@ -4581,6 +4656,10 @@ packages:
|
|||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
restore-cursor@5.1.0:
|
||||||
|
resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
restructure@3.0.2:
|
restructure@3.0.2:
|
||||||
resolution: {integrity: sha512-gSfoiOEA0VPE6Tukkrr7I0RBdE0s7H1eFCDBk05l1KIQT1UIKNc5JZy6jdyW6eYH3aR3g5b3PuL77rq0hvwtAw==}
|
resolution: {integrity: sha512-gSfoiOEA0VPE6Tukkrr7I0RBdE0s7H1eFCDBk05l1KIQT1UIKNc5JZy6jdyW6eYH3aR3g5b3PuL77rq0hvwtAw==}
|
||||||
|
|
||||||
@ -4730,6 +4809,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==}
|
resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==}
|
||||||
engines: {node: '>=14.16'}
|
engines: {node: '>=14.16'}
|
||||||
|
|
||||||
|
slice-ansi@7.1.2:
|
||||||
|
resolution: {integrity: sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
smob@1.5.0:
|
smob@1.5.0:
|
||||||
resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==}
|
resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==}
|
||||||
|
|
||||||
@ -4786,6 +4869,10 @@ packages:
|
|||||||
streamx@2.22.1:
|
streamx@2.22.1:
|
||||||
resolution: {integrity: sha512-znKXEBxfatz2GBNK02kRnCXjV+AA4kjZIUxeWSr3UGirZMJfTE9uiwKHobnbgxWyL/JWro8tTq+vOqAK1/qbSA==}
|
resolution: {integrity: sha512-znKXEBxfatz2GBNK02kRnCXjV+AA4kjZIUxeWSr3UGirZMJfTE9uiwKHobnbgxWyL/JWro8tTq+vOqAK1/qbSA==}
|
||||||
|
|
||||||
|
string-argv@0.3.2:
|
||||||
|
resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==}
|
||||||
|
engines: {node: '>=0.6.19'}
|
||||||
|
|
||||||
string-width@4.2.3:
|
string-width@4.2.3:
|
||||||
resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
|
resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@ -4794,6 +4881,14 @@ packages:
|
|||||||
resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}
|
resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
|
string-width@7.2.0:
|
||||||
|
resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
|
string-width@8.1.0:
|
||||||
|
resolution: {integrity: sha512-Kxl3KJGb/gxkaUMOjRsQ8IrXiGW75O4E3RPjFIINOVH8AMl2SQ/yWdTzWwF3FevIX9LcMAjJW+GRwAlAbTSXdg==}
|
||||||
|
engines: {node: '>=20'}
|
||||||
|
|
||||||
string_decoder@1.1.1:
|
string_decoder@1.1.1:
|
||||||
resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==}
|
resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==}
|
||||||
|
|
||||||
@ -5372,6 +5467,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}
|
resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
|
wrap-ansi@9.0.2:
|
||||||
|
resolution: {integrity: sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
wrappy@1.0.2:
|
wrappy@1.0.2:
|
||||||
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
|
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
|
||||||
|
|
||||||
@ -8057,6 +8156,10 @@ snapshots:
|
|||||||
|
|
||||||
alien-signals@2.0.7: {}
|
alien-signals@2.0.7: {}
|
||||||
|
|
||||||
|
ansi-escapes@7.1.0:
|
||||||
|
dependencies:
|
||||||
|
environment: 1.1.0
|
||||||
|
|
||||||
ansi-regex@5.0.1: {}
|
ansi-regex@5.0.1: {}
|
||||||
|
|
||||||
ansi-regex@6.2.2: {}
|
ansi-regex@6.2.2: {}
|
||||||
@ -8324,6 +8427,15 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
escape-string-regexp: 1.0.5
|
escape-string-regexp: 1.0.5
|
||||||
|
|
||||||
|
cli-cursor@5.0.0:
|
||||||
|
dependencies:
|
||||||
|
restore-cursor: 5.1.0
|
||||||
|
|
||||||
|
cli-truncate@5.1.0:
|
||||||
|
dependencies:
|
||||||
|
slice-ansi: 7.1.2
|
||||||
|
string-width: 8.1.0
|
||||||
|
|
||||||
clipboardy@4.0.0:
|
clipboardy@4.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
execa: 8.0.1
|
execa: 8.0.1
|
||||||
@ -8362,6 +8474,8 @@ snapshots:
|
|||||||
|
|
||||||
commander@11.1.0: {}
|
commander@11.1.0: {}
|
||||||
|
|
||||||
|
commander@14.0.1: {}
|
||||||
|
|
||||||
commander@2.20.3: {}
|
commander@2.20.3: {}
|
||||||
|
|
||||||
commander@7.2.0:
|
commander@7.2.0:
|
||||||
@ -8675,6 +8789,8 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@vue/composition-api'
|
- '@vue/composition-api'
|
||||||
|
|
||||||
|
emoji-regex@10.5.0: {}
|
||||||
|
|
||||||
emoji-regex@8.0.0: {}
|
emoji-regex@8.0.0: {}
|
||||||
|
|
||||||
emoji-regex@9.2.2: {}
|
emoji-regex@9.2.2: {}
|
||||||
@ -8695,6 +8811,8 @@ snapshots:
|
|||||||
|
|
||||||
env-paths@2.2.1: {}
|
env-paths@2.2.1: {}
|
||||||
|
|
||||||
|
environment@1.1.0: {}
|
||||||
|
|
||||||
error-ex@1.3.2:
|
error-ex@1.3.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
is-arrayish: 0.2.1
|
is-arrayish: 0.2.1
|
||||||
@ -8972,6 +9090,8 @@ snapshots:
|
|||||||
|
|
||||||
event-target-shim@5.0.1: {}
|
event-target-shim@5.0.1: {}
|
||||||
|
|
||||||
|
eventemitter3@5.0.1: {}
|
||||||
|
|
||||||
events@3.3.0: {}
|
events@3.3.0: {}
|
||||||
|
|
||||||
execa@8.0.1:
|
execa@8.0.1:
|
||||||
@ -9099,6 +9219,8 @@ snapshots:
|
|||||||
|
|
||||||
get-caller-file@2.0.5: {}
|
get-caller-file@2.0.5: {}
|
||||||
|
|
||||||
|
get-east-asian-width@1.4.0: {}
|
||||||
|
|
||||||
get-intrinsic@1.3.0:
|
get-intrinsic@1.3.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
call-bind-apply-helpers: 1.0.2
|
call-bind-apply-helpers: 1.0.2
|
||||||
@ -9373,6 +9495,10 @@ snapshots:
|
|||||||
|
|
||||||
is-fullwidth-code-point@3.0.0: {}
|
is-fullwidth-code-point@3.0.0: {}
|
||||||
|
|
||||||
|
is-fullwidth-code-point@5.1.0:
|
||||||
|
dependencies:
|
||||||
|
get-east-asian-width: 1.4.0
|
||||||
|
|
||||||
is-glob@4.0.3:
|
is-glob@4.0.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
is-extglob: 2.1.1
|
is-extglob: 2.1.1
|
||||||
@ -9522,6 +9648,21 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
uc.micro: 2.1.0
|
uc.micro: 2.1.0
|
||||||
|
|
||||||
|
lint-staged@16.1.6:
|
||||||
|
dependencies:
|
||||||
|
chalk: 5.6.2
|
||||||
|
commander: 14.0.1
|
||||||
|
debug: 4.4.3
|
||||||
|
lilconfig: 3.1.3
|
||||||
|
listr2: 9.0.4
|
||||||
|
micromatch: 4.0.8
|
||||||
|
nano-spawn: 1.0.3
|
||||||
|
pidtree: 0.6.0
|
||||||
|
string-argv: 0.3.2
|
||||||
|
yaml: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
listhen@1.9.0:
|
listhen@1.9.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@parcel/watcher': 2.5.1
|
'@parcel/watcher': 2.5.1
|
||||||
@ -9543,6 +9684,15 @@ snapshots:
|
|||||||
untun: 0.1.3
|
untun: 0.1.3
|
||||||
uqr: 0.1.2
|
uqr: 0.1.2
|
||||||
|
|
||||||
|
listr2@9.0.4:
|
||||||
|
dependencies:
|
||||||
|
cli-truncate: 5.1.0
|
||||||
|
colorette: 2.0.20
|
||||||
|
eventemitter3: 5.0.1
|
||||||
|
log-update: 6.1.0
|
||||||
|
rfdc: 1.4.1
|
||||||
|
wrap-ansi: 9.0.2
|
||||||
|
|
||||||
load-tsconfig@0.2.5: {}
|
load-tsconfig@0.2.5: {}
|
||||||
|
|
||||||
loader-runner@4.3.0: {}
|
loader-runner@4.3.0: {}
|
||||||
@ -9595,6 +9745,14 @@ snapshots:
|
|||||||
|
|
||||||
lodash@4.17.21: {}
|
lodash@4.17.21: {}
|
||||||
|
|
||||||
|
log-update@6.1.0:
|
||||||
|
dependencies:
|
||||||
|
ansi-escapes: 7.1.0
|
||||||
|
cli-cursor: 5.0.0
|
||||||
|
slice-ansi: 7.1.2
|
||||||
|
strip-ansi: 7.1.2
|
||||||
|
wrap-ansi: 9.0.2
|
||||||
|
|
||||||
lru-cache@10.4.3: {}
|
lru-cache@10.4.3: {}
|
||||||
|
|
||||||
lru-cache@5.1.1:
|
lru-cache@5.1.1:
|
||||||
@ -9682,6 +9840,8 @@ snapshots:
|
|||||||
|
|
||||||
mimic-fn@4.0.0: {}
|
mimic-fn@4.0.0: {}
|
||||||
|
|
||||||
|
mimic-function@5.0.1: {}
|
||||||
|
|
||||||
mimic-response@3.1.0:
|
mimic-response@3.1.0:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@ -9731,6 +9891,8 @@ snapshots:
|
|||||||
|
|
||||||
muggle-string@0.4.1: {}
|
muggle-string@0.4.1: {}
|
||||||
|
|
||||||
|
nano-spawn@1.0.3: {}
|
||||||
|
|
||||||
nanoid@3.3.11: {}
|
nanoid@3.3.11: {}
|
||||||
|
|
||||||
nanoid@5.1.5: {}
|
nanoid@5.1.5: {}
|
||||||
@ -10053,6 +10215,10 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
mimic-fn: 4.0.0
|
mimic-fn: 4.0.0
|
||||||
|
|
||||||
|
onetime@7.0.0:
|
||||||
|
dependencies:
|
||||||
|
mimic-function: 5.0.1
|
||||||
|
|
||||||
open@10.2.0:
|
open@10.2.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
default-browser: 5.2.1
|
default-browser: 5.2.1
|
||||||
@ -10263,6 +10429,8 @@ snapshots:
|
|||||||
|
|
||||||
picomatch@4.0.3: {}
|
picomatch@4.0.3: {}
|
||||||
|
|
||||||
|
pidtree@0.6.0: {}
|
||||||
|
|
||||||
pinia@3.0.3(typescript@5.9.2)(vue@3.5.21(typescript@5.9.2)):
|
pinia@3.0.3(typescript@5.9.2)(vue@3.5.21(typescript@5.9.2)):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vue/devtools-api': 7.7.7
|
'@vue/devtools-api': 7.7.7
|
||||||
@ -10469,6 +10637,8 @@ snapshots:
|
|||||||
|
|
||||||
prelude-ls@1.2.1: {}
|
prelude-ls@1.2.1: {}
|
||||||
|
|
||||||
|
prettier@3.6.2: {}
|
||||||
|
|
||||||
pretty-bytes@7.0.1: {}
|
pretty-bytes@7.0.1: {}
|
||||||
|
|
||||||
process-nextick-args@2.0.1: {}
|
process-nextick-args@2.0.1: {}
|
||||||
@ -10593,6 +10763,11 @@ snapshots:
|
|||||||
path-parse: 1.0.7
|
path-parse: 1.0.7
|
||||||
supports-preserve-symlinks-flag: 1.0.0
|
supports-preserve-symlinks-flag: 1.0.0
|
||||||
|
|
||||||
|
restore-cursor@5.1.0:
|
||||||
|
dependencies:
|
||||||
|
onetime: 7.0.0
|
||||||
|
signal-exit: 4.1.0
|
||||||
|
|
||||||
restructure@3.0.2: {}
|
restructure@3.0.2: {}
|
||||||
|
|
||||||
reusify@1.1.0: {}
|
reusify@1.1.0: {}
|
||||||
@ -10823,6 +10998,11 @@ snapshots:
|
|||||||
|
|
||||||
slash@5.1.0: {}
|
slash@5.1.0: {}
|
||||||
|
|
||||||
|
slice-ansi@7.1.2:
|
||||||
|
dependencies:
|
||||||
|
ansi-styles: 6.2.3
|
||||||
|
is-fullwidth-code-point: 5.1.0
|
||||||
|
|
||||||
smob@1.5.0: {}
|
smob@1.5.0: {}
|
||||||
|
|
||||||
source-map-js@1.2.1: {}
|
source-map-js@1.2.1: {}
|
||||||
@ -10868,6 +11048,8 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- react-native-b4a
|
- react-native-b4a
|
||||||
|
|
||||||
|
string-argv@0.3.2: {}
|
||||||
|
|
||||||
string-width@4.2.3:
|
string-width@4.2.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
emoji-regex: 8.0.0
|
emoji-regex: 8.0.0
|
||||||
@ -10880,6 +11062,17 @@ snapshots:
|
|||||||
emoji-regex: 9.2.2
|
emoji-regex: 9.2.2
|
||||||
strip-ansi: 7.1.2
|
strip-ansi: 7.1.2
|
||||||
|
|
||||||
|
string-width@7.2.0:
|
||||||
|
dependencies:
|
||||||
|
emoji-regex: 10.5.0
|
||||||
|
get-east-asian-width: 1.4.0
|
||||||
|
strip-ansi: 7.1.2
|
||||||
|
|
||||||
|
string-width@8.1.0:
|
||||||
|
dependencies:
|
||||||
|
get-east-asian-width: 1.4.0
|
||||||
|
strip-ansi: 7.1.2
|
||||||
|
|
||||||
string_decoder@1.1.1:
|
string_decoder@1.1.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
safe-buffer: 5.1.2
|
safe-buffer: 5.1.2
|
||||||
@ -11546,6 +11739,12 @@ snapshots:
|
|||||||
string-width: 5.1.2
|
string-width: 5.1.2
|
||||||
strip-ansi: 7.1.2
|
strip-ansi: 7.1.2
|
||||||
|
|
||||||
|
wrap-ansi@9.0.2:
|
||||||
|
dependencies:
|
||||||
|
ansi-styles: 6.2.3
|
||||||
|
string-width: 7.2.0
|
||||||
|
strip-ansi: 7.1.2
|
||||||
|
|
||||||
wrappy@1.0.2:
|
wrappy@1.0.2:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
|||||||
42
prettier.config.mjs
Normal file
42
prettier.config.mjs
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
/**
|
||||||
|
* @see https://prettier.io/docs/en/configuration.html
|
||||||
|
* @type {import("prettier").Config}
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
// 打印宽度
|
||||||
|
printWidth: 80,
|
||||||
|
// 缩进空格数
|
||||||
|
tabWidth: 2,
|
||||||
|
// 使用制表符而不是空格缩进
|
||||||
|
useTabs: false,
|
||||||
|
// 句尾添加分号
|
||||||
|
semi: true,
|
||||||
|
// 使用单引号
|
||||||
|
singleQuote: true,
|
||||||
|
// 尾随逗号
|
||||||
|
trailingComma: 'es5',
|
||||||
|
// 对象大括号内的空格
|
||||||
|
bracketSpacing: true,
|
||||||
|
// 箭头函数参数括号
|
||||||
|
arrowParens: 'always',
|
||||||
|
// 括号行位置
|
||||||
|
bracketSameLine: false,
|
||||||
|
// 换行符使用 lf
|
||||||
|
endOfLine: 'lf',
|
||||||
|
// HTML 空格敏感度
|
||||||
|
htmlWhitespaceSensitivity: 'css',
|
||||||
|
// Vue 文件脚本和样式缩进
|
||||||
|
vueIndentScriptAndStyle: true,
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
// 对 CSS 文件使用双引号
|
||||||
|
files: '*.css',
|
||||||
|
options: { singleQuote: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// 对 SCSS 文件使用双引号
|
||||||
|
files: '*.scss',
|
||||||
|
options: { singleQuote: false },
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
@ -7,12 +7,18 @@ import {
|
|||||||
// presetWebFonts,
|
// presetWebFonts,
|
||||||
transformerDirectives,
|
transformerDirectives,
|
||||||
transformerVariantGroup,
|
transformerVariantGroup,
|
||||||
} from 'unocss'
|
} from 'unocss';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
shortcuts: [
|
shortcuts: [
|
||||||
['btn', 'px-4 py-1 rounded inline-block bg-teal-600 text-white cursor-pointer hover:bg-teal-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
|
[
|
||||||
['icon-btn', 'inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-teal-600'],
|
'btn',
|
||||||
|
'px-4 py-1 rounded inline-block bg-teal-600 text-white cursor-pointer hover:bg-teal-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'icon-btn',
|
||||||
|
'inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-teal-600',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
presets: [
|
presets: [
|
||||||
presetUno(),
|
presetUno(),
|
||||||
@ -30,8 +36,5 @@ export default defineConfig({
|
|||||||
// },
|
// },
|
||||||
// }),
|
// }),
|
||||||
],
|
],
|
||||||
transformers: [
|
transformers: [transformerDirectives(), transformerVariantGroup()],
|
||||||
transformerDirectives(),
|
});
|
||||||
transformerVariantGroup(),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
|
|||||||
Reference in New Issue
Block a user