mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
chore: fix linting
This commit is contained in:
parent
7d4c994900
commit
d6bffa6f07
61 changed files with 167 additions and 218 deletions
|
|
@ -100,9 +100,7 @@ export const ObsidianConnectForm: FC<ConnectFormProps> = ({ onBack }) => {
|
|||
<div className="flex size-7 items-center justify-center rounded-md border border-slate-400/30 text-xs font-medium">
|
||||
2
|
||||
</div>
|
||||
<h3 className="text-sm font-medium sm:text-base">
|
||||
Create a personal access token
|
||||
</h3>
|
||||
<h3 className="text-sm font-medium sm:text-base">Create a personal access token</h3>
|
||||
</header>
|
||||
<p className="mb-3 text-[11px] text-muted-foreground sm:text-xs">
|
||||
Create a token and paste it into the plugin's{" "}
|
||||
|
|
|
|||
|
|
@ -28,11 +28,7 @@ function initializeMermaid() {
|
|||
mermaidInitialized = true;
|
||||
}
|
||||
|
||||
function MermaidDiagramComponent({
|
||||
source,
|
||||
isDarkMode,
|
||||
fallback,
|
||||
}: MermaidDiagramProps) {
|
||||
function MermaidDiagramComponent({ source, isDarkMode, fallback }: MermaidDiagramProps) {
|
||||
const id = useId();
|
||||
const [svg, setSvg] = useState<string | null>(null);
|
||||
const [hasError, setHasError] = useState(false);
|
||||
|
|
@ -107,11 +103,7 @@ function MermaidDiagramComponent({
|
|||
aria-label={hasCopied ? "Copied Mermaid source" : "Copy Mermaid source"}
|
||||
>
|
||||
<span className="sr-only">Copy Source</span>
|
||||
{hasCopied ? (
|
||||
<CheckIcon className="!size-3" />
|
||||
) : (
|
||||
<CopyIcon className="!size-3" />
|
||||
)}
|
||||
{hasCopied ? <CheckIcon className="!size-3" /> : <CopyIcon className="!size-3" />}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
|
|
@ -131,4 +123,4 @@ function MermaidDiagramComponent({
|
|||
);
|
||||
}
|
||||
|
||||
export const MermaidDiagram = memo(MermaidDiagramComponent);
|
||||
export const MermaidDiagram = memo(MermaidDiagramComponent);
|
||||
|
|
|
|||
|
|
@ -274,9 +274,9 @@ export function ImageModelSelector({
|
|||
<ImagePlus className="size-4 shrink-0" />
|
||||
)}
|
||||
{showIconOnlyTrigger ? null : (
|
||||
<span className="min-w-0 flex-1 truncate text-sm">
|
||||
{selected ? modelName(selected) : "Auto"}
|
||||
</span>
|
||||
<span className="min-w-0 flex-1 truncate text-sm">
|
||||
{selected ? modelName(selected) : "Auto"}
|
||||
</span>
|
||||
)}
|
||||
<ChevronDown className="h-3.5 w-3.5 shrink-0" />
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -43,12 +43,7 @@ export function PublicChatFooter({ shareToken }: PublicChatFooterProps) {
|
|||
const action = new URLSearchParams(window.location.search).get("action");
|
||||
|
||||
// Only auto-clone once, if authenticated and action=clone is present
|
||||
if (
|
||||
action === "clone" &&
|
||||
session.authenticated &&
|
||||
!hasAutoCloned.current &&
|
||||
!isCloning
|
||||
) {
|
||||
if (action === "clone" && session.authenticated && !hasAutoCloned.current && !isCloning) {
|
||||
hasAutoCloned.current = true;
|
||||
triggerClone();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,8 +210,8 @@ export function GeneralSettingsManager({ searchSpaceId }: GeneralSettingsManager
|
|||
<div className="space-y-1">
|
||||
<Label htmlFor="api-access-enabled">Programmatic API access</Label>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
Allow personal access tokens to use this search space. Web and desktop sessions are
|
||||
not affected.
|
||||
Allow personal access tokens to use this search space. Web and desktop sessions are not
|
||||
affected.
|
||||
</p>
|
||||
</div>
|
||||
<Switch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue