@@ -22,35 +22,24 @@ const Home: NextPage = () => {
Find in-depth information about sealos features and API.
- + +Find in-depth information about sealos features and API.
- - -Find newest information about sealos design and news!
- + +Find newest information about sealos design and news!
- - -Discover sealos in open source world!
- + +Discover sealos in open source world!
- - -- Instantly deploy your Next.js site to a public URL with Vercel. -
- + +Instantly deploy your Next.js site to a public URL with Vercel.
{otoken}
dashboard
>
- )
-}
+ );
+};
-export default Callback
\ No newline at end of file
+export default Callback;
diff --git a/desktop/frontend/src/pages/login/index.tsx b/desktop/frontend/src/pages/login/index.tsx
index 54d00db11..15a332f0f 100644
--- a/desktop/frontend/src/pages/login/index.tsx
+++ b/desktop/frontend/src/pages/login/index.tsx
@@ -1,17 +1,17 @@
-import type { GetServerSideProps, NextPage } from 'next'
-import { isUserLogin } from '../../store/session'
+import type { GetServerSideProps, NextPage } from 'next';
+import { isUserLogin } from '../../store/session';
export const getServerSideProps: GetServerSideProps = async (context) => {
- const is_login = isUserLogin();
- let destination = '/api/login';
- if (is_login) {
- destination = '/dashboard';
- }
- return {
- redirect: { statusCode: 302, destination: destination }
- }
-}
+ const is_login = isUserLogin();
+ let destination = '/api/login';
+ if (is_login) {
+ destination = '/dashboard';
+ }
+ return {
+ redirect: { statusCode: 302, destination: destination }
+ };
+};
-const Login: NextPage = () => <>>
+const Login: NextPage = () => <>>;
-export default Login
+export default Login;
diff --git a/desktop/frontend/src/store/session.ts b/desktop/frontend/src/store/session.ts
index 06db0b74a..b2035bdf5 100644
--- a/desktop/frontend/src/store/session.ts
+++ b/desktop/frontend/src/store/session.ts
@@ -6,8 +6,9 @@ export type OAuthToken = {
};
export type UserInfo = {
- readonly uid: string;
- readonly user_name: string;
+ readonly id: string;
+ readonly name: string;
+ readonly avatar: string;
};
export type Session = {
diff --git a/desktop/frontend/src/styles/globals.css b/desktop/frontend/src/styles/globals.css
index e5e2dcc23..b54eecdb4 100755
--- a/desktop/frontend/src/styles/globals.css
+++ b/desktop/frontend/src/styles/globals.css
@@ -2,15 +2,8 @@ html,
body {
padding: 0;
margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
- Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
-}
-
-a {
- color: inherit;
- text-decoration: none;
-}
-
-* {
- box-sizing: border-box;
+ font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
+ Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
+ background-color: var(--nextui-colors-background);
+ color: var(--nextui-colors-text);
}