mirror of
https://github.com/RhenCloud/Cloud-Home.git
synced 2026-01-22 17:39:07 +08:00
refactor: 将项目迁移到 Nuxt 4
该项目从 Vue 3 迁移到了 Nuxt 4,对代码结构和配置进行了相应调整。 - 修改了环境变量前缀,将 `VITE_` 替换为 `NUXT_PUBLIC_`,以便与 Nuxt 的环境变量配置兼容。 - 添加了新的环境变量 `WAKATIME_API_KEY` 和可选变量 `WAKATIME_API_URL` 用于配置 Wakatime API。
This commit is contained in:
17
src/pages/projects.vue
Normal file
17
src/pages/projects.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<main class="page">
|
||||
<ProjectsSection :projects="projects" />
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import ProjectsSection from "~/components/ProjectsSection.vue";
|
||||
import siteConfig from "~/config/siteConfig";
|
||||
|
||||
const projects = siteConfig.projects;
|
||||
|
||||
definePageMeta({
|
||||
order: 3,
|
||||
label: "项目",
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user