diff --git a/app.config.ts b/app.config.ts
index 042ee58..32aa854 100644
--- a/app.config.ts
+++ b/app.config.ts
@@ -18,10 +18,15 @@ export default defineAppConfig({
container: 'gap-2',
base: 'px-3 py-4',
after: 'after:hidden',
- active: 'before:bg-neutral-600 hover:before:bg-neutral-600 dark:before:bg-neutral-800 dark:hover:before:bg-neutral-800 text-neutral-50 dark:text-neutral-300',
+ active:
+ 'before:bg-neutral-600 hover:before:bg-neutral-600 dark:before:bg-neutral-800 dark:hover:before:bg-neutral-800 text-neutral-50 dark:text-neutral-300',
icon: {
active: 'text-neutral-50 dark:text-neutral-300',
},
},
+ formGroup: {
+ hint: 'text-xs',
+ help: 'text-xs',
+ },
},
})
diff --git a/layouts/default.vue b/layouts/default.vue
index a999aae..83f2c7c 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -5,6 +5,7 @@ const colorMode = useColorMode()
const dayjs = useDayjs()
const modal = useModal()
const toast = useToast()
+const router = useRouter()
const loginState = useLoginState()
const isDark = computed({
@@ -42,6 +43,7 @@ const items = [
}], [{
label: '账号资料',
icon: 'i-tabler-user-circle',
+ to: '/profile'
}], [{
label: '注销登录',
icon: 'i-tabler-logout',
@@ -63,8 +65,8 @@ const open_login_modal = () => {
- 眩生花 AI 助手
- XSH AI Assistant
+ AIGC 微课视频研创平台
+
diff --git a/pages/generation.vue b/pages/generation.vue
index da3a1b0..3b39e43 100644
--- a/pages/generation.vue
+++ b/pages/generation.vue
@@ -33,6 +33,11 @@ const navList = ref<
icon: 'tabler:keyframes',
to: '/generation/materials',
},
+ {
+ label: 'PPT 模板库',
+ icon: 'tabler:file-type-ppt',
+ to: '/generation/ppt-templates',
+ },
{
label: '用户管理',
icon: 'tabler:users',
diff --git a/pages/generation/ppt-templates.vue b/pages/generation/ppt-templates.vue
new file mode 100644
index 0000000..d4e4e28
--- /dev/null
+++ b/pages/generation/ppt-templates.vue
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ ppt.title }}
+
+ {{ ppt.description }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/typings/types.d.ts b/typings/types.d.ts
index f5c7e37..d60aed5 100644
--- a/typings/types.d.ts
+++ b/typings/types.d.ts
@@ -32,6 +32,7 @@ interface UserSchema {
email: string
mobile: string
auth_code: 0 | 1 | 2 // 0: Banned, 1: User, 2: Operator
+ company?: string
}
interface DigitalHumanItem {
@@ -76,6 +77,22 @@ interface TitlesTemplate {
description: string
}
+interface PPTCategory {
+ id: number
+ type: string
+ create_time: number
+}
+
+interface PPTTemplate {
+ id: number
+ create_time: number
+ file_url: string
+ preview_url: string
+ title: string
+ description: string
+ type: string
+}
+
// Common request and response schemas
namespace req {
namespace user {
@@ -103,6 +120,22 @@ namespace req {
perpage?: number
is_verify: boolean
}
+
+ interface ChangePassword {
+ username: string
+ old_password: string
+ new_password: string
+ }
+
+ interface SmsChangePasswordVerify {
+ mobile: string
+ }
+
+ interface SmsChangePassword {
+ mobile: string
+ sms_code: string
+ new_password: string
+ }
}
namespace file {