+
@@ -8,13 +8,14 @@
.ylf-form {
background-color: var(--ylf-c-bg-alt);
- border-top: 1px solid var(--ylf-c-border);
- border-bottom: 1px solid var(--ylf-c-border);
+ border: 1px solid var(--ylf-c-border);
margin: 10px 0;
+ overflow: hidden;
.ylf-form-item {
border-bottom: 1px solid var(--ylf-c-border);
+
&:last-child {
border-bottom: none;
}
diff --git a/components/common/YlfFormItem.vue b/components/ylf/YlfFormItem.vue
similarity index 100%
rename from components/common/YlfFormItem.vue
rename to components/ylf/YlfFormItem.vue
diff --git a/components/ylf/YlfIconButton.vue b/components/ylf/YlfIconButton.vue
new file mode 100644
index 0000000..6e41e03
--- /dev/null
+++ b/components/ylf/YlfIconButton.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
diff --git a/components/common/YlfSwitch.vue b/components/ylf/YlfSwitch.vue
similarity index 100%
rename from components/common/YlfSwitch.vue
rename to components/ylf/YlfSwitch.vue
diff --git a/layouts/child.vue b/layouts/child.vue
new file mode 100644
index 0000000..62a96c7
--- /dev/null
+++ b/layouts/child.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+ {{ route.meta.title }}
+
+
+
+
+
+
+
+
diff --git a/layouts/default.vue b/layouts/default.vue
index ac551b2..7c246d4 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -1,7 +1,7 @@
-
+
diff --git a/pages/about.vue b/pages/about.vue
new file mode 100644
index 0000000..a7b8be0
--- /dev/null
+++ b/pages/about.vue
@@ -0,0 +1,5 @@
+
+
+ 关于
+
+
diff --git a/pages/cookbooks/index.vue b/pages/cookbooks/index.vue
new file mode 100644
index 0000000..9b529fa
--- /dev/null
+++ b/pages/cookbooks/index.vue
@@ -0,0 +1,25 @@
+
+
+
+
+
+ 开发中,敬请期待
+
+
+
+
+ 默认菜谱
+
+
+
+
+
+
diff --git a/pages/cookbooks/new.vue b/pages/cookbooks/new.vue
new file mode 100644
index 0000000..5617f6e
--- /dev/null
+++ b/pages/cookbooks/new.vue
@@ -0,0 +1,5 @@
+
+
+ 新建 Cookbook
+
+
diff --git a/pages/recipes/index.vue b/pages/recipes/index.vue
new file mode 100644
index 0000000..927d357
--- /dev/null
+++ b/pages/recipes/index.vue
@@ -0,0 +1,12 @@
+
+
+
+
+ asd
+
+
diff --git a/pages/recipes/new.vue b/pages/recipes/new.vue
new file mode 100644
index 0000000..bc6b2ab
--- /dev/null
+++ b/pages/recipes/new.vue
@@ -0,0 +1,5 @@
+
+
+ 新建 Recipe
+
+
diff --git a/pages/settings.vue b/pages/settings.vue
index c2bab97..ccfbf6b 100644
--- a/pages/settings.vue
+++ b/pages/settings.vue
@@ -1,7 +1,28 @@
+
+
-
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/user.vue b/pages/user.vue
index 2561e47..22a5bc2 100644
--- a/pages/user.vue
+++ b/pages/user.vue
@@ -1,7 +1,5 @@
@@ -12,6 +10,7 @@ const app = useAppStore()
@@ -20,14 +19,16 @@ const app = useAppStore()
-
-
-
-
+
-
+
+
+
+
+
+
diff --git a/types/cookbook.ts b/types/cookbook.ts
new file mode 100644
index 0000000..8383b47
--- /dev/null
+++ b/types/cookbook.ts
@@ -0,0 +1,22 @@
+import type { Recipes } from './recipe'
+
+export interface Cookbook {
+ /**
+ * 菜谱 ID,自定义,唯一标识符
+ */
+ id: string
+ cover?: string
+ /**
+ * 菜谱名称
+ */
+ title: string
+ description: string
+ author: string | string[]
+ /**
+ * 菜谱
+ */
+ recipes: Recipes[]
+
+ createdAt: string
+ updatedAt: string
+}
diff --git a/types/index.ts b/types/index.ts
index 93b0aba..c82c7c2 100644
--- a/types/index.ts
+++ b/types/index.ts
@@ -1 +1,2 @@
+export * from './cookbook'
export * from './recipe'
diff --git a/uno.config.ts b/uno.config.ts
index 5679724..c479814 100644
--- a/uno.config.ts
+++ b/uno.config.ts
@@ -21,7 +21,6 @@ export default defineConfig({
shortcuts: [
['tag', 'text-sm cursor-pointer inline-flex justify-center items-center transition shadow hover:shadow-md'],
['btn', 'text-sm px-4 py-1 rounded inline-block bg-blue-600 text-white cursor-pointer hover:bg-blue-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
- ['icon-btn', 'text-[0.9em] inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-blue-600'],
],
presets: [
presetUno(),
diff --git a/utils/cookbook.ts b/utils/cookbook.ts
new file mode 100644
index 0000000..52f11e8
--- /dev/null
+++ b/utils/cookbook.ts
@@ -0,0 +1,11 @@
+import type { Cookbook } from '~/types'
+
+export const defaultCookbook: Cookbook = {
+ id: 'default',
+ title: '默认菜谱',
+ description: '记录了一些特殊时期常用的菜谱',
+ author: [''],
+ recipes: [],
+ updatedAt: '',
+ createdAt: '2021-04-04',
+}