Просмотр исходного кода

zbytest003-2025-02-20 13:09:09

genlitex 2 месяцев назад
Родитель
Сommit
5991e192e4

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
dist/assets/index-D8VB0yZb.css


Разница между файлами не показана из-за своего большого размера
+ 4 - 0
dist/assets/index-DeCEEcK6.js


+ 14 - 0
dist/index.html

@@ -0,0 +1,14 @@
+<!doctype html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>Vite + Vue</title>
+    <script type="module" crossorigin src="/ide/proxy/6006/assets/index-DeCEEcK6.js"></script>
+    <link rel="stylesheet" crossorigin href="/ide/proxy/6006/assets/index-D8VB0yZb.css">
+  </head>
+  <body>
+    <div id="app"></div>
+  </body>
+</html>

+ 6 - 0
src/router/index.js

@@ -1,11 +1,17 @@
 import { createRouter, createWebHashHistory } from 'vue-router'
 import HomeView from '../views/HomeView.vue'
+import UserStoriesView from '../views/UserStoriesView.vue'
 
 const routes = [
   {
     path: '/',
     name: 'home',
     component: HomeView
+  },
+  {
+    path: '/user-stories',
+    name: 'user-stories',
+    component: UserStoriesView
   }
 ]
 

+ 146 - 0
src/views/UserStoriesView.vue

@@ -0,0 +1,146 @@
+<template>
+  <div class="flex h-screen bg-light-green">
+    <!-- Sidebar -->
+    <aside class="w-250 bg-[#08002E] text-white flex flex-col">
+      <!-- Logo -->
+      <div class="p-6 bg-[#4B0082] flex items-center justify-center">
+        <span class="text-18px font-bold">生成用户故事</span>
+      </div>
+
+      <!-- Navigation -->
+      <nav class="flex-1 px-4">
+        <div class="mb-8">
+          <div class="flex items-center justify-between mb-4">
+            <span class="text-sm">Sessions</span>
+            <button class="px-3 py-1 text-xs bg-purple-600 rounded-md hover:bg-purple-700">
+              + New Requirement
+            </button>
+          </div>
+        </div>
+
+        <div class="space-y-6">
+          <div class="text-xs text-gray-400 uppercase">MANAGE YOUR CONTEXT</div>
+          <div class="space-y-2">
+            <a v-for="(item, index) in menuItems"
+               :key="index"
+               href="#"
+               class="flex items-center gap-3 px-3 py-2 text-gray-300 rounded-lg hover:bg-purple-600/20">
+              <component :is="item.icon" class="w-5 h-5" />
+              {{ item.name }}
+              <span v-if="item.badge"
+                    class="ml-auto px-2 py-0.5 text-xs bg-purple-500 rounded-full">
+                {{ item.badge }}
+              </span>
+            </a>
+          </div>
+        </div>
+      </nav>
+
+      <!-- User Profile -->
+      <div class="p-4 border-t border-gray-700">
+        <div class="flex items-center gap-3">
+          <div class="w-10 h-10 bg-gray-600 rounded-full"></div>
+          <div>
+            <div class="text-sm font-medium">zbytest003</div>
+            <div class="text-xs text-gray-400">platform admin</div>
+          </div>
+          <ChevronRight class="w-4 h-4 ml-auto text-gray-400" />
+        </div>
+      </div>
+    </aside>
+
+    <!-- Main Content -->
+    <main class="flex-1 overflow-auto bg-light-green">
+      <div class="max-w-4xl mx-auto p-8">
+        <!-- Header -->
+        <div class="flex justify-between items-center mb-8">
+          <div>
+            <h1 class="text-2xl font-semibold mb-2">Hi, zbytest003</h1>
+            <p class="text-gray-600">I am GenliteX User Story generator, I'm here to help.</p>
+          </div>
+          <div class="w-64">
+            <select class="w-full p-2 border rounded-lg">
+              <option value="">Select a model</option>
+            </select>
+          </div>
+        </div>
+
+        <!-- Content -->
+        <div class="bg-white p-6 rounded-lg shadow-sm mb-6">
+          <p class="text-gray-600 mb-4">
+            Simply upload the related documents you have so that I can understand the background and generate user stories more accurately.
+          </p>
+          <p class="text-gray-600">
+            You can also constantly clarify your requests through the conversation.
+          </p>
+        </div>
+
+        <!-- Chat Bubbles -->
+        <div class="chat-bubbles">
+          <div class="bubble sender">Sender Message</div>
+          <div class="bubble receiver">Receiver Message</div>
+        </div>
+
+        <!-- Chat Input -->
+        <div class="flex gap-2 mt-4">
+          <div class="flex-1 relative">
+            <input
+                type="text"
+                placeholder="Type a message..."
+                class="w-full p-3 pr-12 border rounded-lg"
+            />
+            <Upload class="absolute right-4 top-1/2 -translate-y-1/2 text-gray-400" />
+          </div>
+          <button class="p-3 bg-purple-500 text-white rounded-lg hover:bg-purple-600">
+            <Send class="w-5 h-5" />
+          </button>
+        </div>
+      </div>
+    </main>
+  </div>
+</template>
+
+<script setup>
+import {
+  ChevronRight,
+  Upload,
+  Send,
+  Home,
+  Briefcase,
+  Book,
+  MessageSquare,
+  Link,
+  User,
+  Bell
+} from 'lucide-vue-next'
+
+const menuItems = [
+  { name: 'Home', icon: Home },
+  { name: 'Workspace', icon: Briefcase },
+  { name: 'Knowledge', icon: Book },
+  { name: 'Prompt', icon: MessageSquare },
+  { name: 'Link', icon: Link },
+  { name: 'User', icon: User },
+  { name: 'Notifications', icon: Bell, badge: '0' },
+]
+</script>
+
+<style>
+/* Additional styles can be added here if needed */
+.chat-bubbles .bubble {
+  margin: 5px;
+  padding: 10px;
+  border-radius: 15px;
+  max-width: 70%;
+}
+
+.chat-bubbles .sender {
+  background-color: #D1C4E9;
+  align-self: flex-end;
+}
+
+.chat-bubbles .receiver {
+  background-color: #F5F5F5;
+  align-self: flex-start;
+}
+</style>

Некоторые файлы не были показаны из-за большого количества измененных файлов