Skip to content

Commit

Permalink
minor ui fixe
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantBorthakur committed Jun 6, 2023
1 parent 6308aaa commit 3ee69c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gui/pages/Content/Agents/AgentWorkspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default function AgentWorkspace({agentId}) {
<Image width={14} height={14} src="/images/run_icon.svg" alt="run-icon"/>&nbsp;New Run
</button>
</div>
{selectedRun && selectedRun.status !== 'COMPLETED' && <button className={styles.three_dots} onMouseEnter={() => setDropdown(true)} onMouseLeave={() => setDropdown(false)}>
{selectedRun && <button className={styles.three_dots} onMouseEnter={() => setDropdown(true)} onMouseLeave={() => setDropdown(false)}>
<Image width={14} height={14} src="/images/three_dots.svg" alt="run-icon"/>
</button>}
{dropdown && <div onMouseEnter={() => setDropdown(true)} onMouseLeave={() => setDropdown(false)}>
Expand Down
10 changes: 6 additions & 4 deletions gui/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ import {refreshUrl} from "@/utils/utils";

export default function App() {
const [selectedView, setSelectedView] = useState('');
const [applicationState, setApplicationState] = useState("LOADING");
const [applicationState, setApplicationState] = useState("Initializing SuperAGI");
const [selectedProject, setSelectedProject] = useState(null);
const [userName, setUserName] = useState('');
const [organisationId, setOrganisationId] = useState(null);
const [env, setEnv] = useState('DEV');
const [loadingText, setLoadingText] = useState("Loading");
const [loadingText, setLoadingText] = useState("Initializing SuperAGI");
const router = useRouter();

useEffect(() => {
const text = 'Loading';
const text = 'Initializing SuperAGI';
let dots = '';

const interval = setInterval(() => {
Expand Down Expand Up @@ -112,6 +112,8 @@ export default function App() {
return (
<div className="app">
<Head>
{/* eslint-disable-next-line @next/next/no-page-custom-font */}
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap" rel="stylesheet"/>
{/* eslint-disable-next-line @next/next/no-page-custom-font */}
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet"/>
</Head>
Expand Down Expand Up @@ -140,7 +142,7 @@ export default function App() {
By continuing, you agree to Super AGI’s Terms of Service and Privacy Policy, and to receive important updates.
</div>
</div> : <div className="signInWrapper" style={{background:'transparent'}}>
<div className="signInInfo" style={{fontSize:'18px'}}>{loadingText}</div>
<div className="signInInfo" style={{fontSize:'16px',fontFamily:'Source Code Pro'}}>{loadingText}</div>
</div>}
</div>
</div>}
Expand Down
4 changes: 2 additions & 2 deletions gui/pages/api/apiConfig.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import axios from 'axios';

const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID || 'eaaf029abe1165e23c1e';
const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8001';
// const API_BASE_URL = 'http://192.168.255.48:8001';
// const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8001';
const API_BASE_URL = 'http://192.168.255.48:8001';

export const baseUrl = () => {
return API_BASE_URL;
Expand Down

0 comments on commit 3ee69c6

Please sign in to comment.