hiding menu icon collapse panel left in local server page
This commit is contained in:
parent
005c47f0ae
commit
f5eaa41d09
@ -81,7 +81,10 @@ const TopBar = () => {
|
|||||||
<div className="absolute left-16 h-full w-60 border-r border-border">
|
<div className="absolute left-16 h-full w-60 border-r border-border">
|
||||||
<div className="flex h-full w-full items-center justify-between">
|
<div className="flex h-full w-full items-center justify-between">
|
||||||
<div
|
<div
|
||||||
className="unset-drag cursor-pointer"
|
className={twMerge(
|
||||||
|
'unset-drag cursor-pointer',
|
||||||
|
mainViewState !== MainViewState.Thread && 'invisible'
|
||||||
|
)}
|
||||||
onClick={() => setShowLeftSideBar((show) => !show)}
|
onClick={() => setShowLeftSideBar((show) => !show)}
|
||||||
>
|
>
|
||||||
<PanelRightCloseIcon
|
<PanelRightCloseIcon
|
||||||
|
|||||||
@ -16,14 +16,12 @@ import {
|
|||||||
SelectTrigger,
|
SelectTrigger,
|
||||||
SelectValue,
|
SelectValue,
|
||||||
} from '@janhq/uikit'
|
} from '@janhq/uikit'
|
||||||
// import hljs from 'highlight.js'
|
|
||||||
import { useAtom, useAtomValue } from 'jotai'
|
import { useAtom, useAtomValue } from 'jotai'
|
||||||
|
|
||||||
import { Paintbrush, CodeIcon } from 'lucide-react'
|
import { Paintbrush, CodeIcon } from 'lucide-react'
|
||||||
import { ExternalLinkIcon, InfoIcon } from 'lucide-react'
|
import { ExternalLinkIcon, InfoIcon } from 'lucide-react'
|
||||||
|
|
||||||
// import { Marked, Renderer } from 'marked'
|
|
||||||
// import { markedHighlight } from 'marked-highlight'
|
|
||||||
import { twMerge } from 'tailwind-merge'
|
import { twMerge } from 'tailwind-merge'
|
||||||
|
|
||||||
import CardSidebar from '@/containers/CardSidebar'
|
import CardSidebar from '@/containers/CardSidebar'
|
||||||
@ -56,33 +54,10 @@ const LocalServerScreen = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getServerLog().then((log) => {
|
getServerLog().then((log) => {
|
||||||
// setLogs(log)
|
|
||||||
// console.log(log)
|
|
||||||
setLogs(log.split(/\r?\n|\r|\n/g))
|
setLogs(log.split(/\r?\n|\r|\n/g))
|
||||||
// setLogs(JSON.stringify(log, null, 2))
|
|
||||||
})
|
})
|
||||||
}, [getServerLog, logs])
|
}, [getServerLog, logs])
|
||||||
|
|
||||||
// const marked: Marked = new Marked(
|
|
||||||
// markedHighlight({
|
|
||||||
// langPrefix: 'hljs',
|
|
||||||
// highlight(code) {
|
|
||||||
// return hljs.highlightAuto(code).value
|
|
||||||
// },
|
|
||||||
// }),
|
|
||||||
// {
|
|
||||||
// renderer: {
|
|
||||||
// link: (href, title, text) => {
|
|
||||||
// return Renderer.prototype.link
|
|
||||||
// ?.apply(this, [href, title, text])
|
|
||||||
// .replace('<a', "<a target='_blank'")
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// }
|
|
||||||
// )
|
|
||||||
|
|
||||||
// const parsedText = marked.parse(logs)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex h-full w-full">
|
<div className="flex h-full w-full">
|
||||||
{/* Left SideBar */}
|
{/* Left SideBar */}
|
||||||
@ -222,12 +197,6 @@ const LocalServerScreen = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="p-4">
|
<div className="p-4">
|
||||||
<code className="text-xs">
|
<code className="text-xs">
|
||||||
{/* <div
|
|
||||||
dangerouslySetInnerHTML={{
|
|
||||||
__html: parsedText,
|
|
||||||
}}
|
|
||||||
/> */}
|
|
||||||
|
|
||||||
{logs.map((log, i) => {
|
{logs.map((log, i) => {
|
||||||
return (
|
return (
|
||||||
<p key={i} className="my-2 leading-relaxed">
|
<p key={i} className="my-2 leading-relaxed">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user