diff --git a/app/.env.example b/app/.env.example index f88678f..f6e870a 100644 --- a/app/.env.example +++ b/app/.env.example @@ -4,8 +4,8 @@ FF_DB_URI=postgresql://root:password@localhost:5432/fileflash APP_ENV=development # Required when APP_ENV=production or APP_ENV=prod. -DEFAULT_ADMIN_USERNAME=admin -DEFAULT_ADMIN_EMAIL=admin@example.com +DEFAULT_ADMIN_USERNAME=administrator +DEFAULT_ADMIN_EMAIL=admin@fileflash.next DEFAULT_ADMIN_PASSWORD=replace-with-32-bytes-or-longer-password JWT_SECRET_KEY=please-set-at-least-32-bytes-secret-key diff --git a/web/src/components/templates/AgentLayout.vue b/web/src/components/templates/AgentLayout.vue index 49b7dad..8e234d6 100644 --- a/web/src/components/templates/AgentLayout.vue +++ b/web/src/components/templates/AgentLayout.vue @@ -1,15 +1,82 @@ + + diff --git a/web/src/pages/agent/index.ts b/web/src/pages/agent/index.ts deleted file mode 100644 index c0da0fd..0000000 --- a/web/src/pages/agent/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import AgentLayout from './AgentLayout.vue'; - -export default AgentLayout; diff --git a/web/src/pages/agent/workspace/AgentWorkspace.vue b/web/src/pages/agent/workspace/AgentWorkspace.vue index 85dd1cd..f038329 100644 --- a/web/src/pages/agent/workspace/AgentWorkspace.vue +++ b/web/src/pages/agent/workspace/AgentWorkspace.vue @@ -71,6 +71,7 @@ const onHint = (text: string) => { taskInput.value = text; sendMessage(); }; min-width: 0; overflow: hidden; background: var(--surface-base); + position: relative; } .aw__left { min-height: 0; min-width: 0; } .aw__center { @@ -85,10 +86,11 @@ const onHint = (text: string) => { taskInput.value = text; sendMessage(); }; @media (max-width: 1280px) { .aw { grid-template-columns: 240px 1fr; } .aw__right { - position: fixed; right: 0; top: 48px; bottom: 0; + position: absolute; right: 0; top: 0; bottom: 0; + width: 320px; z-index: 50; transform: translateX(100%); - transition: transform 200ms var(--mo-easing); + transition: transform var(--mo-duration-mid) var(--mo-easing); background: var(--surface-base); border-left: 1px solid var(--border-default); } diff --git a/web/src/router/routes.ts b/web/src/router/routes.ts index fbc02db..f15ddc5 100644 --- a/web/src/router/routes.ts +++ b/web/src/router/routes.ts @@ -190,19 +190,19 @@ export const routes: Array = [ { path: "agent", component: AgentLayout, - meta: { navId: "agent" }, + meta: { navId: "agent", fullscreen: true }, children: [ { path: "", name: "AgentWorkspace", component: () => import("../pages/agent/workspace/index.ts"), - meta: { navId: "agent" }, + meta: { navId: "agent", fullscreen: true }, }, { path: "skills", name: "AgentSkills", component: () => import("../pages/agent/skills/index.ts"), - meta: { navId: "agent" }, + meta: { navId: "agent", fullscreen: true }, }, ], },