Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APP SEPERATION]-Rupato/bot 1858/fix dashboard tab issues #15

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"start": "vite",
"start:dev": "vite-live-preview --reload --port=8443",
"start:dev": "vite-live-preview --reload --port=8444",
"build": "vite build",
"preview": "vite preview",
"test:lint": "prettier --log-level silent --write . && eslint \"./src/**/*.?(js|jsx|ts|tsx)\"",
Expand Down
1 change: 1 addition & 0 deletions public/assets/icons/IcCross.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/icons/IcDelete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/icons/IcEdit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions public/assets/icons/IcLocal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/icons/IcMenuDots.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/icons/IcPreview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/icons/IcUserGuide.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
6 changes: 6 additions & 0 deletions public/assets/icons/icQuickStrategy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/load-modal/load-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { tabs_title } from '@/constants/load-modal';
import { useStore } from '@/hooks/useStore';
import { localize } from '@/utils/tmp/dummy';

import GoogleDrive from '../../pages/dashboard/load-bot-preview/google-drive';
import GoogleDrive from '../../pages/dashboard/common/google-dialog/google-drive';
import MobileFullPageModal from '../shared_ui/mobile-full-page-modal';

import Local from './local';
Expand Down
137 changes: 137 additions & 0 deletions src/components/shared_ui/dialog/dialog.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
/** @define dc-dialog */

.dc-dialog {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
z-index: 999;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;

&__wrapper {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
transition: opacity 0.25s cubic-bezier(0.25, 0.1, 0.1, 0.25);
background-color: var(--overlay-outside-dialog);

&--enter,
&--exit {
opacity: 0;

.dc-dialog__dialog {
transform: translate3d(0, 50px, 0);
opacity: 0;
}
}
&--enter-done {
opacity: 1;

.dc-dialog__dialog {
transform: translate3d(0, 0, 0);
opacity: 1;
}
}
&--has-portal {
background-color: transparent;
}
}
&__dialog {
max-width: 560px;
max-height: 338px;
min-width: 440px;
min-height: 176px;
margin-top: -#{$HEADER_HEIGHT};
padding: 2.4rem;
border-radius: 8px;
box-sizing: border-box;
display: flex;
justify-content: space-around;
flex-direction: column;
align-items: center;
box-shadow: 0 2px 8px 0 var(--shadow-menu);
background-color: var(--general-main-2);
transition:
transform 0.25s cubic-bezier(0.25, 0.1, 0.1, 0.25),
opacity 0.25s cubic-bezier(0.25, 0.1, 0.1, 0.25);
}
&__header {
&-wrapper {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
&--end {
justify-content: flex-end;
}
}
&--title {
align-self: flex-start;
}
&--close {
cursor: pointer;
}
}
&__content {
align-self: flex-start;
margin-bottom: 2.4rem;
max-width: calc(440px - 4.8rem);
width: 100%;

/* postcss-bem-linter: ignore */
.dc-input__label {
background-color: var(--general-main-2);
}
&--centered {
align-self: center;
}
}
&__footer {
display: flex;
justify-content: flex-end;
align-items: center;
width: 100%;
@include mobile {
flex-wrap: wrap;
align-items: flex-start;
}
}
&__button {
margin-left: 0.8rem;
height: 4rem;
min-width: 6.4rem;
border-width: 2px;
@include mobile {
&:not(:last-child) {
margin-bottom: 1rem;
}
}
}
}

@media screen and (max-width: 560px) {
.dc-dialog {
&__dialog {
min-width: auto;

&--has-margin {
min-width: unset;
width: calc(100vw - 4.8rem);
}
}
}
}
Loading
Loading