mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-11 13:11:23 +00:00
chore: add mock assert (#312)
This commit is contained in:
commit
3b29df586c
16 changed files with 144 additions and 36 deletions
4
src/assets/Folder-1.svg
Normal file
4
src/assets/Folder-1.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M22 11V17C22 19 21 20 19 20H5C3 20 2 19 2 17V7C2 5 3 4 5 4H8L9.5 5.5C10 6 10.5 6 11 6H19C21 6 22 7 22 9V11Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M22 11H2" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 419 B |
3
src/assets/Folder.svg
Normal file
3
src/assets/Folder.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3 7V17C3 19 4 20 6 20H18C20 20 21 19 21 17V8C21 6 20 5 18 5H12L10.5 3.5C10 3 9.5 3 9 3H6C4 3 3 4 3 6V7Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 307 B |
0
src/assets/add_worker.mp4
Normal file
0
src/assets/add_worker.mp4
Normal file
42
src/assets/animation/onboarding_success.json
Normal file
42
src/assets/animation/onboarding_success.json
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"v": "5.5.7",
|
||||
"fr": 30,
|
||||
"ip": 0,
|
||||
"op": 60,
|
||||
"w": 400,
|
||||
"h": 400,
|
||||
"nm": "Onboarding Success",
|
||||
"ddd": 0,
|
||||
"assets": [],
|
||||
"layers": [
|
||||
{
|
||||
"ddd": 0,
|
||||
"ind": 1,
|
||||
"ty": 4,
|
||||
"nm": "Success Layer",
|
||||
"sr": 1,
|
||||
"ks": {
|
||||
"o": {"a": 0, "k": 100},
|
||||
"r": {"a": 0, "k": 0},
|
||||
"p": {"a": 0, "k": [200, 200, 0]},
|
||||
"a": {"a": 0, "k": [0, 0, 0]},
|
||||
"s": {"a": 0, "k": [100, 100, 100]}
|
||||
},
|
||||
"shapes": [
|
||||
{
|
||||
"ty": "el",
|
||||
"d": 1,
|
||||
"s": {"a": 0, "k": [100, 100]},
|
||||
"p": {"a": 0, "k": [0, 0]}
|
||||
},
|
||||
{
|
||||
"ty": "fl",
|
||||
"c": {"a": 0, "k": [0.2, 0.8, 0.4, 1]}
|
||||
}
|
||||
],
|
||||
"ip": 0,
|
||||
"op": 60,
|
||||
"st": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
43
src/assets/animation/openning_animaiton.json
Normal file
43
src/assets/animation/openning_animaiton.json
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"v": "5.5.7",
|
||||
"fr": 30,
|
||||
"ip": 0,
|
||||
"op": 60,
|
||||
"w": 400,
|
||||
"h": 400,
|
||||
"nm": "Opening Animation",
|
||||
"ddd": 0,
|
||||
"assets": [],
|
||||
"layers": [
|
||||
{
|
||||
"ddd": 0,
|
||||
"ind": 1,
|
||||
"ty": 4,
|
||||
"nm": "Shape Layer 1",
|
||||
"sr": 1,
|
||||
"ks": {
|
||||
"o": {"a": 0, "k": 100},
|
||||
"r": {"a": 0, "k": 0},
|
||||
"p": {"a": 0, "k": [200, 200, 0]},
|
||||
"a": {"a": 0, "k": [0, 0, 0]},
|
||||
"s": {"a": 0, "k": [100, 100, 100]}
|
||||
},
|
||||
"shapes": [
|
||||
{
|
||||
"ty": "rc",
|
||||
"d": 1,
|
||||
"s": {"a": 0, "k": [100, 100]},
|
||||
"p": {"a": 0, "k": [0, 0]},
|
||||
"r": {"a": 0, "k": 0}
|
||||
},
|
||||
{
|
||||
"ty": "fl",
|
||||
"c": {"a": 0, "k": [0.2, 0.4, 0.8, 1]}
|
||||
}
|
||||
],
|
||||
"ip": 0,
|
||||
"op": 60,
|
||||
"st": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
3
src/assets/chevron_left.svg
Normal file
3
src/assets/chevron_left.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M15 18L9 12L15 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 219 B |
0
src/assets/dynamic_workforce.mp4
Normal file
0
src/assets/dynamic_workforce.mp4
Normal file
3
src/assets/github.svg
Normal file
3
src/assets/github.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12 2C6.477 2 2 6.477 2 12c0 4.42 2.865 8.166 6.839 9.489.5.092.682-.217.682-.482 0-.237-.008-.866-.013-1.7-2.782.603-3.369-1.341-3.369-1.341-.454-1.155-1.11-1.462-1.11-1.462-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.831.092-.646.35-1.086.636-1.336-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.269 2.75 1.025A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.294 2.747-1.025 2.747-1.025.546 1.377.203 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.743 0 .267.18.578.688.48C19.138 20.163 22 16.418 22 12c0-5.523-4.477-10-10-10z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 855 B |
0
src/assets/local_model.mp4
Normal file
0
src/assets/local_model.mp4
Normal file
4
src/assets/mcp/Ellipse-25.svg
Normal file
4
src/assets/mcp/Ellipse-25.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="12.5" cy="12.5" r="12.5" fill="currentColor" opacity="0.2"/>
|
||||
<circle cx="12.5" cy="12.5" r="8" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 235 B |
0
src/assets/privacy_settings.png
Normal file
0
src/assets/privacy_settings.png
Normal file
4
src/assets/rac-pause.svg
Normal file
4
src/assets/rac-pause.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="6" y="4" width="4" height="16" rx="1" fill="currentColor"/>
|
||||
<rect x="14" y="4" width="4" height="16" rx="1" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 245 B |
|
|
@ -2,16 +2,13 @@ import { useAuthStore } from "@/store/authStore";
|
|||
import { useNavigate, useLocation } from "react-router-dom";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import { useStackApp } from "@stackframe/react";
|
||||
import loginGif from "@/assets/login.gif";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { Eye, EyeOff, Github } from "lucide-react";
|
||||
|
||||
import github2 from "@/assets/github2.svg";
|
||||
import google from "@/assets/google.svg";
|
||||
import eye from "@/assets/eye.svg";
|
||||
import eyeOff from "@/assets/eye-off.svg";
|
||||
import githubIcon from "@/assets/github.svg";
|
||||
import { proxyFetchPost } from "@/api/http";
|
||||
import { hasStackKeys } from "@/lib";
|
||||
|
||||
|
|
@ -213,8 +210,11 @@ export default function Login() {
|
|||
|
||||
return (
|
||||
<div className={`p-2 flex items-center justify-center gap-2 h-full`}>
|
||||
<div className="flex items-center justify-center h-[calc(800px-16px)] rounded-3xl bg-white-100%">
|
||||
<img src={loginGif} className=" rounded-3xl h-full object-cover" />
|
||||
<div className="flex items-center justify-center h-[calc(800px-16px)] rounded-3xl bg-gradient-to-br from-blue-50 to-indigo-100">
|
||||
<div className="text-gray-400 text-center p-8">
|
||||
<div className="text-6xl mb-4">🔐</div>
|
||||
<div className="text-xl font-semibold">Welcome to Eigent</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="h-full flex-1 flex flex-col items-center justify-center">
|
||||
<div className="flex-1 flex flex-col items-center justify-center">
|
||||
|
|
@ -237,7 +237,14 @@ export default function Login() {
|
|||
className="w-full rounded-[24px] mb-4 transition-all duration-300 ease-in-out text-[#F5F5F5] text-center font-inter text-[15px] font-bold leading-[22px] justify-center"
|
||||
disabled={isLoading}
|
||||
>
|
||||
<img src={google} className="w-5 h-5" />
|
||||
<div className="w-5 h-5 flex items-center justify-center">
|
||||
<svg viewBox="0 0 24 24" className="w-full h-full" fill="currentColor">
|
||||
<path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
|
||||
<path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
|
||||
<path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/>
|
||||
<path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<span className="ml-2">Continue with Google</span>
|
||||
</Button>
|
||||
<Button
|
||||
|
|
@ -247,7 +254,7 @@ export default function Login() {
|
|||
className="w-full rounded-[24px] mb-4 transition-all duration-300 ease-in-out text-[#F5F5F5] text-center font-inter text-[15px] font-bold leading-[22px] justify-center"
|
||||
disabled={isLoading}
|
||||
>
|
||||
<img src={github2} className="w-5 h-5" />
|
||||
<img src={githubIcon} className="w-5 h-5" />
|
||||
<span className="ml-2">Continue with Github</span>
|
||||
</Button>
|
||||
</div>
|
||||
|
|
@ -304,7 +311,7 @@ export default function Login() {
|
|||
setHidePassword(!hidePassword);
|
||||
}}
|
||||
>
|
||||
<img src={hidePassword ? eye : eyeOff} />
|
||||
{hidePassword ? <Eye className="w-5 h-5" /> : <EyeOff className="w-5 h-5" />}
|
||||
</div>
|
||||
<Input
|
||||
id="password"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import { useState, useEffect } from "react";
|
|||
import { useNavigate, useLocation, Outlet } from "react-router-dom";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import useAppVersion from "@/hooks/use-app-version";
|
||||
import vsersionLogo from "@/assets/version-logo.png"
|
||||
import {
|
||||
X,
|
||||
CircleCheck,
|
||||
|
|
@ -120,9 +119,6 @@ export default function Setting() {
|
|||
</nav>
|
||||
</div>
|
||||
<div className="w-full h-[55px] pt-4 pb-2 flex items-center justify-center border-[0px] border-t border-solid border-white-80% flex-shrink-0 flex-grow-0">
|
||||
<div className="flex items-center gap-1 leading-9">
|
||||
<img src={vsersionLogo} alt="version-logo" className="h-6" />
|
||||
</div>
|
||||
<div className="px-sm py-0.5 bg-bg-surface-tertiary rounded-full gap-1 flex items-center justify-center">
|
||||
<CircleCheck className="w-4 h-4 text-bg-fill-success-primary" />
|
||||
<div className="text-primary text-xs font-bold leading-17">
|
||||
|
|
|
|||
|
|
@ -2,9 +2,6 @@ import { Button } from "@/components/ui/button";
|
|||
import { Input } from "@/components/ui/input";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { LogOut, Settings, Check } from "lucide-react";
|
||||
import light from "@/assets/light.png";
|
||||
import dark from "@/assets/dark.png";
|
||||
import transparent from "@/assets/transparent.png";
|
||||
import { useAuthStore } from "@/store/authStore";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { proxyFetchPut, proxyFetchGet } from "@/api/http";
|
||||
|
|
@ -37,12 +34,10 @@ export default function SettingGeneral() {
|
|||
|
||||
const [themeList, setThemeList] = useState<any>([
|
||||
{
|
||||
img: light,
|
||||
label: "Light",
|
||||
value: "light",
|
||||
},
|
||||
{
|
||||
img: transparent,
|
||||
label: "Transparent",
|
||||
value: "transparent",
|
||||
},
|
||||
|
|
@ -53,12 +48,10 @@ export default function SettingGeneral() {
|
|||
if (platform === "darwin") {
|
||||
setThemeList([
|
||||
{
|
||||
img: light,
|
||||
label: "Light",
|
||||
value: "light",
|
||||
},
|
||||
{
|
||||
img: transparent,
|
||||
label: "Transparent",
|
||||
value: "transparent",
|
||||
},
|
||||
|
|
@ -66,7 +59,6 @@ export default function SettingGeneral() {
|
|||
} else {
|
||||
setThemeList([
|
||||
{
|
||||
img: light,
|
||||
label: "Light",
|
||||
value: "light",
|
||||
},
|
||||
|
|
@ -138,13 +130,13 @@ export default function SettingGeneral() {
|
|||
className="hover:cursor-pointer group flex flex-col items-center gap-sm "
|
||||
onClick={() => setAppearance(item.value)}
|
||||
>
|
||||
<img
|
||||
src={item.img}
|
||||
className={`rounded-lg transition-all h-[91.67px] aspect-[183/91.67] border border-solid border-transparent group-hover:border-bg-fill-info-primary ${
|
||||
<div
|
||||
className={`rounded-lg transition-all h-[91.67px] aspect-[183/91.67] border border-solid border-gray-200 group-hover:border-bg-fill-info-primary flex items-center justify-center bg-gray-50 ${
|
||||
item.value == appearance ? "border-bg-fill-info-primary" : ""
|
||||
}`}
|
||||
alt=""
|
||||
/>
|
||||
>
|
||||
<span className="text-gray-500 text-xs">{item.label} Theme</span>
|
||||
</div>
|
||||
<div
|
||||
className={`text-sm leading-13 text-text-primary group-hover:underline ${
|
||||
item.value == appearance ? "underline" : ""
|
||||
|
|
|
|||
|
|
@ -2,16 +2,13 @@ import { useAuthStore } from "@/store/authStore";
|
|||
import { useNavigate, useLocation } from "react-router-dom";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import { useStackApp } from "@stackframe/react";
|
||||
import loginGif from "@/assets/login.gif";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { Eye, EyeOff } from "lucide-react";
|
||||
|
||||
import github2 from "@/assets/github2.svg";
|
||||
import google from "@/assets/google.svg";
|
||||
import eye from "@/assets/eye.svg";
|
||||
import eyeOff from "@/assets/eye-off.svg";
|
||||
import githubIcon from "@/assets/github.svg";
|
||||
import { proxyFetchPost } from "@/api/http";
|
||||
import { hasStackKeys } from "@/lib";
|
||||
|
||||
|
|
@ -232,7 +229,10 @@ export default function SignUp() {
|
|||
return (
|
||||
<div className={`p-2 flex items-center justify-center gap-2 h-full`}>
|
||||
<div className="flex items-center justify-center h-[calc(800px-16px)] rounded-3xl bg-white-100%">
|
||||
<img src={loginGif} className=" rounded-3xl h-full object-cover" />
|
||||
<div className="text-gray-400 text-center p-8">
|
||||
<div className="text-6xl mb-4">✨</div>
|
||||
<div className="text-xl font-semibold">Join Eigent</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="h-full flex-1 flex flex-col items-center justify-center">
|
||||
<div className="flex-1 flex flex-col items-center justify-center">
|
||||
|
|
@ -254,7 +254,14 @@ export default function SignUp() {
|
|||
className="w-full rounded-[24px] mb-4 transition-all duration-300 ease-in-out text-[#F5F5F5] text-center font-inter text-[15px] font-bold leading-[22px] justify-center"
|
||||
disabled={isLoading}
|
||||
>
|
||||
<img src={google} className="w-5 h-5" />
|
||||
<div className="w-5 h-5 flex items-center justify-center">
|
||||
<svg viewBox="0 0 24 24" className="w-full h-full" fill="currentColor">
|
||||
<path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
|
||||
<path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
|
||||
<path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/>
|
||||
<path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<span className="ml-2">Continue with Google</span>
|
||||
</Button>
|
||||
<Button
|
||||
|
|
@ -264,7 +271,7 @@ export default function SignUp() {
|
|||
className="w-full rounded-[24px] mb-4 transition-all duration-300 ease-in-out text-[#F5F5F5] text-center font-inter text-[15px] font-bold leading-[22px] justify-center"
|
||||
disabled={isLoading}
|
||||
>
|
||||
<img src={github2} className="w-5 h-5" />
|
||||
<img src={githubIcon} className="w-5 h-5" />
|
||||
<span className="ml-2">Continue with Github</span>
|
||||
</Button>
|
||||
</div>}
|
||||
|
|
@ -308,7 +315,7 @@ export default function SignUp() {
|
|||
setHidePassword(!hidePassword);
|
||||
}}
|
||||
>
|
||||
<img src={hidePassword ? eye : eyeOff} />
|
||||
{hidePassword ? <Eye className="w-5 h-5" /> : <EyeOff className="w-5 h-5" />}
|
||||
</div>
|
||||
<Input
|
||||
id="password"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue