create for series
This commit is contained in:
parent
cb59182d6a
commit
0437138830
@ -1,5 +1,5 @@
|
|||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Button, Card } from './ui'
|
import { Button, Card, Textarea } from './ui'
|
||||||
import type { MediaRef } from '@/types/nostr'
|
import type { MediaRef } from '@/types/nostr'
|
||||||
import { uploadNip95Media } from '@/lib/nip95'
|
import { uploadNip95Media } from '@/lib/nip95'
|
||||||
import { t } from '@/lib/i18n'
|
import { t } from '@/lib/i18n'
|
||||||
@ -40,10 +40,10 @@ function MarkdownEditorInner({ value, onChange, onMediaAdd, onBannerChange }: Ma
|
|||||||
{preview ? (
|
{preview ? (
|
||||||
<MarkdownPreview value={value} />
|
<MarkdownPreview value={value} />
|
||||||
) : (
|
) : (
|
||||||
<textarea
|
<Textarea
|
||||||
className="w-full border rounded p-3 h-64"
|
|
||||||
value={value}
|
value={value}
|
||||||
onChange={(e) => onChange(e.target.value)}
|
onChange={(e) => onChange(e.target.value)}
|
||||||
|
className="h-64"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Button, Card } from '../ui'
|
import { Button, Card, Textarea } from '../ui'
|
||||||
import type { MediaRef, Page } from '@/types/nostr'
|
import type { MediaRef, Page } from '@/types/nostr'
|
||||||
import { t } from '@/lib/i18n'
|
import { t } from '@/lib/i18n'
|
||||||
import { createPagesHandlers, PagesManager } from './PagesManager'
|
import { createPagesHandlers, PagesManager } from './PagesManager'
|
||||||
@ -75,12 +75,12 @@ function MarkdownToolbar(params: {
|
|||||||
function EditorColumn(params: { value: string; onChange: (value: string) => void }): React.ReactElement {
|
function EditorColumn(params: { value: string; onChange: (value: string) => void }): React.ReactElement {
|
||||||
return (
|
return (
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label className="block text-sm font-semibold text-gray-800">{t('markdown.editor')}</label>
|
<Textarea
|
||||||
<textarea
|
label={t('markdown.editor')}
|
||||||
className="w-full border rounded p-3 h-96 font-mono text-sm"
|
|
||||||
value={params.value}
|
value={params.value}
|
||||||
onChange={(e) => params.onChange(e.target.value)}
|
onChange={(e) => params.onChange(e.target.value)}
|
||||||
placeholder={t('markdown.placeholder')}
|
placeholder={t('markdown.placeholder')}
|
||||||
|
className="h-96 font-mono text-sm"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -101,8 +101,8 @@ Aucun composant prioritaire restant. Tous les composants principaux ont été mi
|
|||||||
- ✅ `components/UserArticlesEditPanel.tsx` - Migration du conteneur principal vers Card
|
- ✅ `components/UserArticlesEditPanel.tsx` - Migration du conteneur principal vers Card
|
||||||
- ✅ `components/markdownEditorTwoColumns/PagesManager.tsx` - Migration de PageEditor vers Card et message d'état vide vers EmptyState
|
- ✅ `components/markdownEditorTwoColumns/PagesManager.tsx` - Migration de PageEditor vers Card et message d'état vide vers EmptyState
|
||||||
- ✅ `components/authorPresentationEditor/AuthorPresentationEditor.tsx` - Migration de SuccessNotice vers Card
|
- ✅ `components/authorPresentationEditor/AuthorPresentationEditor.tsx` - Migration de SuccessNotice vers Card
|
||||||
- ✅ `components/MarkdownEditor.tsx` - Migration de MarkdownPreview vers Card
|
- ✅ `components/MarkdownEditor.tsx` - Migration de MarkdownPreview vers Card et textarea vers Textarea
|
||||||
- ✅ `components/markdownEditorTwoColumns/MarkdownEditorTwoColumns.tsx` - Migration de MarkdownPreview vers Card
|
- ✅ `components/markdownEditorTwoColumns/MarkdownEditorTwoColumns.tsx` - Migration de MarkdownPreview vers Card et textarea vers Textarea
|
||||||
|
|
||||||
## Erreurs corrigées
|
## Erreurs corrigées
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user