Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Frontend V2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Frontend V2
Commits
598e223b
Commit
598e223b
authored
1 year ago
by
Vink, S.A. (Sjoerd)
Browse files
Options
Downloads
Patches
Plain Diff
feat(visManager): color mode to bottom
parent
b45b2dcb
No related branches found
Branches containing commit
No related tags found
2 merge requests
!135
geo intergation
,
!129
Feat/visManager
Pipeline
#131231
passed
1 year ago
Stage: tag-release
Stage: get-release-tag
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/web/src/components/navbar/navbar.tsx
+0
-3
0 additions, 3 deletions
apps/web/src/components/navbar/navbar.tsx
libs/shared/lib/info/infoPanel.tsx
+29
-25
29 additions, 25 deletions
libs/shared/lib/info/infoPanel.tsx
with
29 additions
and
28 deletions
apps/web/src/components/navbar/navbar.tsx
+
0
−
3
View file @
598e223b
...
...
@@ -14,7 +14,6 @@ import logo from './gp-logo.svg';
import
{
useAuthorizationCache
,
useAuth
}
from
'
@graphpolaris/shared/lib/data-access
'
;
import
DatabaseSelector
from
'
./DatabaseManagement/dbConnectionSelector
'
;
import
{
DropdownItem
,
DropdownItemContainer
}
from
'
@graphpolaris/shared/lib/components/dropdowns
'
;
import
ColorMode
from
'
@graphpolaris/shared/lib/components/color-mode
'
;
import
GpLogo
from
'
./gp-logo
'
;
export
const
Navbar
=
()
=>
{
...
...
@@ -50,8 +49,6 @@ export const Navbar = () => {
</
div
>
<
div
>
{
/* <SearchBar /> */
}
<
ColorMode
/>
<
div
className
=
"w-fit"
ref
=
{
dropdownRef
}
>
<
div
className
=
"relative inline-flex items-center justify-center w-8 h-8 overflow-hidden bg-secondary-500 rounded-full hover:bg-secondary-600 transition-colors duration-150 ease-in-out cursor-pointer"
...
...
This diff is collapsed.
Click to expand it.
libs/shared/lib/info/infoPanel.tsx
+
29
−
25
View file @
598e223b
...
...
@@ -4,37 +4,41 @@ import { Addchart, Schema as SchemaIcon, Search as SearchIcon } from '@mui/icons
import
Schema
from
'
../schema/panel
'
;
import
Searchbar
from
'
./search/searchbar
'
;
import
Settings
from
'
./settings
'
;
import
ColorMode
from
'
../components/color-mode
'
;
export
default
function
InfoPanel
({
auth
,
manager
}:
{
auth
:
boolean
;
manager
:
any
})
{
const
[
tab
,
setTab
]
=
useState
(
'
Schema
'
);
return
(
<
div
className
=
"info-panel w-full h-full flex"
>
<
div
className
=
"w-12 flex flex-col items-center"
>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
SearchIcon
/>
}
onClick
=
{
()
=>
setTab
(
'
Search
'
)
}
additionalClasses
=
{
tab
===
'
Search
'
?
'
bg-secondary-100
'
:
''
}
/>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
SchemaIcon
/>
}
onClick
=
{
()
=>
setTab
(
'
Schema
'
)
}
additionalClasses
=
{
tab
===
'
Schema
'
?
'
bg-secondary-100
'
:
''
}
/>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
Addchart
/>
}
onClick
=
{
()
=>
setTab
(
'
Visualization
'
)
}
additionalClasses
=
{
tab
===
'
Visualization
'
?
'
bg-secondary-100
'
:
''
}
/>
<
div
className
=
"w-12 flex flex-col items-center justify-between"
>
<
div
>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
SearchIcon
/>
}
onClick
=
{
()
=>
setTab
(
'
Search
'
)
}
additionalClasses
=
{
tab
===
'
Search
'
?
'
bg-secondary-100
'
:
''
}
/>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
SchemaIcon
/>
}
onClick
=
{
()
=>
setTab
(
'
Schema
'
)
}
additionalClasses
=
{
tab
===
'
Schema
'
?
'
bg-secondary-100
'
:
''
}
/>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
Addchart
/>
}
onClick
=
{
()
=>
setTab
(
'
Visualization
'
)
}
additionalClasses
=
{
tab
===
'
Visualization
'
?
'
bg-secondary-100
'
:
''
}
/>
</
div
>
<
ColorMode
/>
</
div
>
<
div
className
=
"flex-1 border border-secondary-200 overflow-hidden"
>
<
div
className
=
"relative flex items-center justify-between z-[2] py-0 px-2 bg-secondary-100 border-b border-secondary-200"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment