Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Anything Llm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
Mintplex Labs
Anything Llm
Commits
5d1215f2
Commit
5d1215f2
authored
1 year ago
by
timothycarambat
Browse files
Options
Downloads
Patches
Plain Diff
dont show managed hosting while managed already
parent
6e56c51a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/components/Sidebar/index.jsx
+23
-25
23 additions, 25 deletions
frontend/src/components/Sidebar/index.jsx
with
23 additions
and
25 deletions
frontend/src/components/Sidebar/index.jsx
+
23
−
25
View file @
5d1215f2
...
...
@@ -98,17 +98,7 @@ export default function Sidebar() {
Feedback form
</
p
>
</
a
>
<
a
href
=
{
paths
.
hosting
()
}
target
=
"_blank"
className
=
"flex flex-grow w-[100%] h-[36px] gap-x-2 py-[5px] px-4 border border-slate-400 dark:border-transparent rounded-lg text-slate-800 dark:text-slate-200 justify-center items-center hover:bg-slate-100 dark:bg-stone-800 dark:hover:bg-stone-900"
>
<
Package
className
=
"h-4 w-4"
/>
<
p
className
=
"text-slate-800 dark:text-slate-200 text-xs leading-loose font-semibold"
>
Managed cloud hosting
</
p
>
</
a
>
<
ManagedHosting
/>
<
LogoutButton
/>
</
div
>
...
...
@@ -201,10 +191,11 @@ export function SidebarMobileHeader() {
className
=
{
`z-99 fixed top-0 left-0 transition-all duration-500 w-[100vw] h-[100vh]`
}
>
<
div
className
=
{
`
${
showBgOverlay
?
"
transition-all opacity-1
"
:
"
transition-none opacity-0
"
}
duration-500 fixed top-0 left-0 bg-black-900 bg-opacity-75 w-screen h-screen`
}
className
=
{
`
${
showBgOverlay
?
"
transition-all opacity-1
"
:
"
transition-none opacity-0
"
}
duration-500 fixed top-0 left-0 bg-black-900 bg-opacity-75 w-screen h-screen`
}
onClick
=
{
()
=>
setShowSidebar
(
false
)
}
/>
<
div
...
...
@@ -265,16 +256,7 @@ export function SidebarMobileHeader() {
Feedback form
</
p
>
</
a
>
<
a
href
=
{
paths
.
hosting
()
}
target
=
"_blank"
className
=
"flex flex-grow w-[100%] h-[36px] gap-x-2 py-[5px] px-4 border border-slate-400 dark:border-transparent rounded-lg text-slate-800 dark:text-slate-200 justify-center items-center hover:bg-slate-100 dark:bg-stone-800 dark:hover:bg-stone-900"
>
<
Package
className
=
"h-4 w-4"
/>
<
p
className
=
"text-slate-800 dark:text-slate-200 text-xs leading-loose font-semibold"
>
Managed cloud hosting
</
p
>
</
a
>
<
ManagedHosting
/>
<
LogoutButton
/>
</
div
>
...
...
@@ -354,3 +336,19 @@ function LogoutButton() {
</
button
>
);
}
function
ManagedHosting
()
{
if
(
window
.
location
.
origin
.
includes
(
"
.useanything.com
"
))
return
null
;
return
(
<
a
href
=
{
paths
.
hosting
()
}
target
=
"_blank"
className
=
"flex flex-grow w-[100%] h-[36px] gap-x-2 py-[5px] px-4 border border-slate-400 dark:border-transparent rounded-lg text-slate-800 dark:text-slate-200 justify-center items-center hover:bg-slate-100 dark:bg-stone-800 dark:hover:bg-stone-900"
>
<
Package
className
=
"h-4 w-4"
/>
<
p
className
=
"text-slate-800 dark:text-slate-200 text-xs leading-loose font-semibold"
>
Managed cloud hosting
</
p
>
</
a
>
);
}
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