From f9debe4ed35bd3cfa5282efdd30a7a47139d4554 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=83=A1=E9=91=AB?= <1219654535@qq.com>
Date: Thu, 27 Apr 2023 13:58:47 +0800
Subject: [PATCH] add: hook section
---
.eslintrc | 5 +-
components/Carousel.vue | 34 +-----
components/Footer.vue | 10 +-
components/header/header.vue | 39 +------
components/header/nav.vue | 32 +-----
config/pages/home/use-carousel.ts | 28 +++++
config/pages/home/use-section-one.ts | 23 +++++
config/pages/home/use-section-three.ts | 61 +++++++++++
config/pages/home/use-section-two.ts | 42 ++++++++
config/use-nav.ts | 43 ++++++++
layouts/default.vue | 20 ++--
nuxt.config.ts | 2 +
pages/index.vue | 137 ++++++++++++++++++-------
uno.config.ts | 16 +--
14 files changed, 344 insertions(+), 148 deletions(-)
create mode 100644 config/pages/home/use-carousel.ts
create mode 100644 config/pages/home/use-section-one.ts
create mode 100644 config/pages/home/use-section-three.ts
create mode 100644 config/pages/home/use-section-two.ts
create mode 100644 config/use-nav.ts
diff --git a/.eslintrc b/.eslintrc
index 61f6f70..fde5836 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -2,5 +2,8 @@
"extends": [
"@antfu",
"@unocss"
- ]
+ ],
+ "rules": {
+ "@typescript-eslint/ban-ts-comment":"off"
+ }
}
diff --git a/components/Carousel.vue b/components/Carousel.vue
index 475ce96..34f5f77 100644
--- a/components/Carousel.vue
+++ b/components/Carousel.vue
@@ -1,34 +1,10 @@
-
-