-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- merge image settings into one place - merge updates and notifications - better control of image model config - change default image dims - open currently used image settings - pass through chat image settings correctly - refactor char form into smaller components - add model override to generate avatar - allow ltm to be disabled - Make ltm off by default
- Loading branch information
Showing
44 changed files
with
1,412 additions
and
1,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,35 @@ | ||
import { Component } from 'solid-js' | ||
import { Component, createMemo } from 'solid-js' | ||
import { Portal } from 'solid-js/web' | ||
|
||
export const HeaderPortal: Component<{ children: any }> = (props) => { | ||
return <Portal mount={document.getElementById('site-header')!}>{props.children}</Portal> | ||
} | ||
|
||
export const Page: Component<{ children: any; class?: string; classList?: any }> = (props) => { | ||
const hasHorzPaddingClass = createMemo(() => { | ||
if (isHorzPadding(props.class)) return true | ||
|
||
for (const [cls, value] of Object.entries(props.classList || {})) { | ||
if (!isHorzPadding(cls)) continue | ||
if (value) return true | ||
} | ||
|
||
return false | ||
}) | ||
|
||
return ( | ||
<main class={`h-full w-full px-2 sm:px-3 ${props.class || ''}`} classList={props.classList}> | ||
<main | ||
class={`h-full w-full ${props.class || ''}`} | ||
classList={{ | ||
'px-2 sm:px-3': !hasHorzPaddingClass(), | ||
...props.classList, | ||
}} | ||
> | ||
{props.children} | ||
</main> | ||
) | ||
} | ||
|
||
function isHorzPadding(cls?: string) { | ||
return cls?.startsWith('p-') || cls?.startsWith('px-') | ||
} |
Oops, something went wrong.