-
Notifications
You must be signed in to change notification settings - Fork 0
Description
-
The aim of this issue is to create a new article:
-
As a developper I can see a new button (Add article) when connected as admin
-
when I click on the button I will be redirected to a page /new-article
-
On the new page a section with title and texte area will be displayed to fill a title and presentation of the article
-
a group of three buttons (TITLE - IMAGE - CODE) will be displayed in the button of the page
-
at the beggining I display input text (Title) and presentation section
-
I delimit the text area and buttons with . . . than I put the group of buttons
-
a group of button will be displayed under the . . . (+ Title) (+ Text) (+ Image) (+ Code) - float right
-
a button (Save article) will be displayed in the same line as a group of buttons on the left
Scenarios
- Four buttons are enabled:
- when we have a text area as last element in the new-article page
- (+ Title) is disabled:
- when we have a title as last element in the page
Technical solution:
- Every element will be presented as a TS object
- The content of the article will be stored as markdown content
- The compiler will generate the html and the html (preview) will be persisted as value of key (articleName, contentHtml from md)