123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- import React from 'react'
- import ReactDOM from 'react-dom'
-
- import PopinFixed from './component/PopinFixed/PopinFixed.jsx'
- import PopinFixedHeader from './component/PopinFixed/PopinFixedHeader.jsx'
- import PopinFixedOption from './component/PopinFixed/PopinFixedOption.jsx'
- import PopinFixedContent from './component/PopinFixed/PopinFixedContent.jsx'
-
- import TextAreaApp from './component/Input/TextAreaApp/TextAreaApp.jsx'
- import BtnSwitch from './component/Input/BtnSwitch/BtnSwitch.jsx'
-
- import Timeline from './component/Timeline/Timeline.jsx'
- import TimelineDebugData from './component/Timeline/debugData.js'
-
- import Delimiter from './component/Delimiter/Delimiter.jsx'
-
- import CardPopup from './component/CardPopup/CardPopup.jsx'
- import CardPopupCreateContent from './component/CardPopup/CardPopupCreateContent.jsx'
-
- import NewVersionButton from './component/OptionComponent/NewVersionBtn.jsx'
- import ArchiveDeleteContent from './component/OptionComponent/ArchiveDeleteContent.jsx'
-
- ReactDOM.render(
- <div style={{width: '1200px'}}>
- <PopinFixed customClass={`${'randomClass'}`}>
- <PopinFixedHeader
- customClass={`${'randomClass'}`}
- faIcon={'fa fa-file-word-o'}
- name={'test exemple'}
- onClickCloseBtn={() => {}}
- />
-
- <PopinFixedOption
- customClass={`${'randomClass'}`}
- onClickNewVersionBtn={() => {}}
- selectedStatus={{
- label: 'Open',
- slug: 'open',
- faIcon: 'square-o',
- hexcolor: '#3f52e3',
- globalStatus: 'open'
- }}
- availableStatus={[{
- label: 'Open',
- slug: 'open',
- faIcon: 'square-o',
- hexcolor: '#3f52e3',
- globalStatus: 'open'
- }, {
- label: 'Validated',
- slug: 'closed-validated',
- faIcon: 'check-square-o',
- hexcolor: '#008000',
- globalStatus: 'closed'
- }, {
- label: 'Cancelled',
- slug: 'closed-unvalidated',
- faIcon: 'close',
- hexcolor: '#f63434',
- globalStatus: 'closed'
- }, {
- label: 'Deprecated',
- slug: 'closed-deprecated',
- faIcon: 'warning',
- hexcolor: '#ababab',
- globalStatus: 'closed'
- }]}
- onChangeStatus={newStatus => console.log('newStatus', newStatus)}
- onClickArchive={() => console.log('btn archive clicked')}
- onClickDelete={() => console.log('btn delete clicked')}
- />
-
- <PopinFixedContent customClass={`${'randomClass'}__contentpage`}>
- <div>
- <NewVersionButton customColor='#3f52e3' />
- <ArchiveDeleteContent customColor='#3f52e3' />
- <Delimiter />
- <span>Here will be the app content. Style is handled by the app (obviously)</span>
- <BtnSwitch />
- {/* <TextAreaApp customClass={'randomClass'} text={'woot'} /> */}
- </div>
-
- <Timeline
- customClass={`${'randomClass'}__contentpage`}
- customColor={'#3f52e3'}
- loggedUser={{
- user_id: 1,
- username: 'Smoi',
- firstname: 'Côme',
- lastname: 'Stoilenom',
- email: 'osef@algoo.fr',
- avatar_url: 'https://avatars3.githubusercontent.com/u/11177014?s=460&v=4'
- }}
- timelineData={TimelineDebugData}
- newComment={''}
- disableComment={false}
- wysiwyg={false}
- onChangeNewComment={() => {}}
- onClickValidateNewCommentBtn={() => {}}
- onClickWysiwygBtn={() => {}}
- onClickRevisionBtn={() => {}}
- shouldScrollToBottom={true}
- />
- </PopinFixedContent>
- </PopinFixed>
- </div>
- , document.getElementById('content')
- )
|