diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index 83f3d187..7c7a071c 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -50,6 +50,9 @@ const showContactsEntry = computed(() => }) ) +// 是否在洞察页 +const isInsightPage = computed(() => route.path === '/insight') + // 重命名相关状态 const showRenameModal = ref(false) const renameTarget = ref(null) @@ -462,21 +465,32 @@ function getAvatarColorClass(session: AnalysisSession, isActive: boolean) { - - - +
+ + + + + + + +
diff --git a/src/i18n/locales/en-US/index.ts b/src/i18n/locales/en-US/index.ts index cffeeb77..1e23abec 100644 --- a/src/i18n/locales/en-US/index.ts +++ b/src/i18n/locales/en-US/index.ts @@ -13,6 +13,7 @@ import views from './views.json' import wordFilter from './wordFilter.json' import contacts from './contacts.json' import relationships from './relationships.json' +import insight from './insight.json' export default { common, @@ -30,4 +31,5 @@ export default { wordFilter, contacts, relationships, + insight, } diff --git a/src/i18n/locales/en-US/insight.json b/src/i18n/locales/en-US/insight.json new file mode 100644 index 00000000..4410fce7 --- /dev/null +++ b/src/i18n/locales/en-US/insight.json @@ -0,0 +1,9 @@ +{ + "title": "Insights", + "placeholder": "Global insights are coming soon, stay tuned", + "tabs": { + "overview": "Overview", + "trends": "Trends", + "ranking": "Ranking" + } +} diff --git a/src/i18n/locales/en-US/layout.json b/src/i18n/locales/en-US/layout.json index 47ed0678..55112bb8 100644 --- a/src/i18n/locales/en-US/layout.json +++ b/src/i18n/locales/en-US/layout.json @@ -3,6 +3,9 @@ "newAnalysis": "New Analysis", "contacts": "Contacts", "relationships": "Relationships", + "insight": "Insights", + "tools": "Tools", + "chatHistory": "Chat History", "manage": "Manage", "noRecords": "No records", "searchPlaceholder": "Search conversation name", diff --git a/src/i18n/locales/ja-JP/index.ts b/src/i18n/locales/ja-JP/index.ts index cffeeb77..1e23abec 100644 --- a/src/i18n/locales/ja-JP/index.ts +++ b/src/i18n/locales/ja-JP/index.ts @@ -13,6 +13,7 @@ import views from './views.json' import wordFilter from './wordFilter.json' import contacts from './contacts.json' import relationships from './relationships.json' +import insight from './insight.json' export default { common, @@ -30,4 +31,5 @@ export default { wordFilter, contacts, relationships, + insight, } diff --git a/src/i18n/locales/ja-JP/insight.json b/src/i18n/locales/ja-JP/insight.json new file mode 100644 index 00000000..57a8c593 --- /dev/null +++ b/src/i18n/locales/ja-JP/insight.json @@ -0,0 +1,9 @@ +{ + "title": "インサイト", + "placeholder": "グローバルインサイト機能は近日公開予定です", + "tabs": { + "overview": "概要", + "trends": "トレンド", + "ranking": "ランキング" + } +} diff --git a/src/i18n/locales/ja-JP/layout.json b/src/i18n/locales/ja-JP/layout.json index 614b59d3..b3bbb1ea 100644 --- a/src/i18n/locales/ja-JP/layout.json +++ b/src/i18n/locales/ja-JP/layout.json @@ -3,6 +3,9 @@ "newAnalysis": "新しいチャットを分析", "contacts": "連絡先", "relationships": "関係", + "insight": "インサイト", + "tools": "ツール", + "chatHistory": "チャット履歴", "manage": "管理", "noRecords": "記録がありません", "searchPlaceholder": "チャット名を検索", diff --git a/src/i18n/locales/zh-CN/index.ts b/src/i18n/locales/zh-CN/index.ts index cffeeb77..1e23abec 100644 --- a/src/i18n/locales/zh-CN/index.ts +++ b/src/i18n/locales/zh-CN/index.ts @@ -13,6 +13,7 @@ import views from './views.json' import wordFilter from './wordFilter.json' import contacts from './contacts.json' import relationships from './relationships.json' +import insight from './insight.json' export default { common, @@ -30,4 +31,5 @@ export default { wordFilter, contacts, relationships, + insight, } diff --git a/src/i18n/locales/zh-CN/insight.json b/src/i18n/locales/zh-CN/insight.json new file mode 100644 index 00000000..c5580cf6 --- /dev/null +++ b/src/i18n/locales/zh-CN/insight.json @@ -0,0 +1,9 @@ +{ + "title": "洞察", + "placeholder": "全局洞察功能正在建设中,敬请期待", + "tabs": { + "overview": "总览", + "trends": "趋势", + "ranking": "排行" + } +} diff --git a/src/i18n/locales/zh-CN/layout.json b/src/i18n/locales/zh-CN/layout.json index b7261cb9..29c8d26f 100644 --- a/src/i18n/locales/zh-CN/layout.json +++ b/src/i18n/locales/zh-CN/layout.json @@ -3,6 +3,9 @@ "newAnalysis": "分析新对话", "contacts": "联系人", "relationships": "关系", + "insight": "洞察", + "tools": "实用工具", + "chatHistory": "聊天对话", "manage": "管理", "noRecords": "暂无记录", "searchPlaceholder": "搜索对话名称", diff --git a/src/i18n/locales/zh-TW/index.ts b/src/i18n/locales/zh-TW/index.ts index cffeeb77..1e23abec 100644 --- a/src/i18n/locales/zh-TW/index.ts +++ b/src/i18n/locales/zh-TW/index.ts @@ -13,6 +13,7 @@ import views from './views.json' import wordFilter from './wordFilter.json' import contacts from './contacts.json' import relationships from './relationships.json' +import insight from './insight.json' export default { common, @@ -30,4 +31,5 @@ export default { wordFilter, contacts, relationships, + insight, } diff --git a/src/i18n/locales/zh-TW/insight.json b/src/i18n/locales/zh-TW/insight.json new file mode 100644 index 00000000..da8864ca --- /dev/null +++ b/src/i18n/locales/zh-TW/insight.json @@ -0,0 +1,9 @@ +{ + "title": "洞察", + "placeholder": "全域洞察功能正在建設中,敬請期待", + "tabs": { + "overview": "總覽", + "trends": "趨勢", + "ranking": "排行" + } +} diff --git a/src/i18n/locales/zh-TW/layout.json b/src/i18n/locales/zh-TW/layout.json index 6d9409fb..c5552db6 100644 --- a/src/i18n/locales/zh-TW/layout.json +++ b/src/i18n/locales/zh-TW/layout.json @@ -3,6 +3,9 @@ "newAnalysis": "分析新對話", "contacts": "聯絡人", "relationships": "關係", + "insight": "洞察", + "tools": "實用工具", + "chatHistory": "聊天紀錄", "manage": "管理", "noRecords": "暫無紀錄", "searchPlaceholder": "搜尋聊天名稱", diff --git a/src/pages/insight/index.vue b/src/pages/insight/index.vue new file mode 100644 index 00000000..379aef48 --- /dev/null +++ b/src/pages/insight/index.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/routes/routes.ts b/src/routes/routes.ts index 808d7dde..f537462b 100644 --- a/src/routes/routes.ts +++ b/src/routes/routes.ts @@ -27,6 +27,11 @@ export const appRoutes: RouteRecordRaw[] = [ name: 'private-chat', component: () => import('@/pages/private-chat/index.vue'), }, + { + path: '/insight', + name: 'insight', + component: () => import('@/pages/insight/index.vue'), + }, { path: '/people', component: () => import('@/pages/people/index.vue'),