Skip to content

Commit

Permalink
feat:db adapt mongo instance count (#4490)
Browse files Browse the repository at this point in the history
* feat:db adapt mongo instance count

Signed-off-by: jingyang <[email protected]>

* app logo

Signed-off-by: jingyang <[email protected]>

---------

Signed-off-by: jingyang <[email protected]>
  • Loading branch information
zjy365 authored Jan 17, 2024
1 parent d5c2fec commit 9125932
Show file tree
Hide file tree
Showing 27 changed files with 247 additions and 103 deletions.
3 changes: 2 additions & 1 deletion frontend/desktop/src/components/desktop_content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { createMasterAPP, masterApp } from 'sealos-desktop-sdk/master';
import IframeWindow from './iframe_window';
import styles from './index.module.scss';
import useDriver from '@/hooks/useDriver';
import { BackgroundImageUrl } from '@/constants/config';

const TimeComponent = dynamic(() => import('./time'), {
ssr: false
Expand Down Expand Up @@ -86,7 +87,7 @@ export default function DesktopContent(props: any) {
<Box
id="desktop"
className={styles.desktop}
backgroundImage={'url(/images/bg-blue.svg)'}
backgroundImage={`url(${BackgroundImageUrl})`}
backgroundRepeat={'no-repeat'}
backgroundSize={'cover'}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const useProtocol = ({
const { t, i18n } = useTranslation();
const [isAgree, setIsAgree] = useState(false);
const [isInvalid, setIsInvalid] = useState(false);
console.log(service_protocol, private_protocol);

const Protocol = () => (
<Flex
className="protocol"
Expand Down
3 changes: 2 additions & 1 deletion frontend/desktop/src/components/signin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Language from '@/components/signin/auth/useLanguage';
import usePassword from '@/components/signin/auth/usePassword';
import useProtocol from '@/components/signin/auth/useProtocol';
import useSms from '@/components/signin/auth/useSms';
import { BackgroundImageUrl } from '@/constants/config';
import request from '@/services/request';
import useSessionStore from '@/stores/session';
import { ApiResp, LoginType, SystemEnv } from '@/types';
Expand Down Expand Up @@ -122,7 +123,7 @@ export default function SigninComponent() {
overflow={'hidden'}
w="100vw"
h="100vh"
backgroundImage={'url(/images/background.svg)'}
backgroundImage={`url(${BackgroundImageUrl})`}
backgroundRepeat={'no-repeat'}
backgroundSize={'cover'}
>
Expand Down
1 change: 1 addition & 0 deletions frontend/desktop/src/constants/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const BackgroundImageUrl = '/images/bg-blue.svg';
30 changes: 29 additions & 1 deletion frontend/providers/adminer/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions frontend/providers/applaunchpad/public/logo-colorful.svg

This file was deleted.

10 changes: 9 additions & 1 deletion frontend/providers/applaunchpad/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions frontend/providers/costcenter/public/logo-colorful.svg

This file was deleted.

11 changes: 10 additions & 1 deletion frontend/providers/costcenter/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions frontend/providers/cronjob/public/logo-colorful.svg

This file was deleted.

Loading

0 comments on commit 9125932

Please sign in to comment.