mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
Merge branch 'dev' of github.com:simstudioai/sim into dev
This commit is contained in:
@@ -111,7 +111,7 @@ function createCustomComponents(LinkComponent: typeof LinkWithPreview) {
|
||||
},
|
||||
|
||||
inlineCode: ({ children }: { children?: React.ReactNode }) => (
|
||||
<code className='rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.9em] text-gray-800 dark:bg-gray-700 dark:text-gray-200'>
|
||||
<code className='rounded bg-gray-200 px-1 py-0.5 font-mono text-inherit text-gray-800 dark:bg-gray-700 dark:text-gray-200'>
|
||||
{children}
|
||||
</code>
|
||||
),
|
||||
|
||||
@@ -204,7 +204,13 @@ interface FileViewerProps {
|
||||
|
||||
function isCodeFile(file: { type: string; name: string }): boolean {
|
||||
const ext = getFileExtension(file.name)
|
||||
return SUPPORTED_CODE_EXTENSIONS.includes(ext as (typeof SUPPORTED_CODE_EXTENSIONS)[number])
|
||||
return (
|
||||
SUPPORTED_CODE_EXTENSIONS.includes(ext as (typeof SUPPORTED_CODE_EXTENSIONS)[number]) ||
|
||||
ext === 'html' ||
|
||||
ext === 'htm' ||
|
||||
ext === 'xml' ||
|
||||
ext === 'svg'
|
||||
)
|
||||
}
|
||||
|
||||
function resolveCodeEditorLanguage(file: { type: string; name: string }): CodeEditorLanguage {
|
||||
|
||||
Reference in New Issue
Block a user