2017-04-19 15:11:37 -06:00
|
|
|
import Inferno from 'inferno';
|
|
|
|
|
2017-07-25 22:11:33 -06:00
|
|
|
import { LeftColumn } from './structure/LeftColumn';
|
|
|
|
import { RightColumn } from './structure/RightColumn';
|
2017-04-19 15:11:37 -06:00
|
|
|
|
2017-07-25 22:11:33 -06:00
|
|
|
import { WordForm } from './management/WordForm';
|
|
|
|
import { DictionaryDetails } from './display/DictionaryDetails';
|
|
|
|
import { WordsList } from './display/WordsList';
|
2017-04-19 15:11:37 -06:00
|
|
|
|
2017-08-16 16:53:55 -06:00
|
|
|
export const MainDisplay = ({ dictionaryInfo, wordsToDisplay, updateDisplay, updater, lastRender }) => {
|
2017-04-19 15:11:37 -06:00
|
|
|
return (
|
|
|
|
<section className='section'>
|
|
|
|
<div className='container'>
|
|
|
|
<div className='columns'>
|
|
|
|
|
|
|
|
<LeftColumn>
|
|
|
|
<WordForm
|
2017-07-25 22:11:33 -06:00
|
|
|
updateDisplay={ () => updateDisplay() }
|
|
|
|
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
|
2017-04-19 15:11:37 -06:00
|
|
|
/>
|
|
|
|
</LeftColumn>
|
|
|
|
|
|
|
|
<RightColumn>
|
|
|
|
<DictionaryDetails
|
2017-08-16 16:53:55 -06:00
|
|
|
updater={ updater }
|
2017-07-25 22:11:33 -06:00
|
|
|
name={ dictionaryInfo.name }
|
|
|
|
specification={ dictionaryInfo.specification }
|
|
|
|
description={ dictionaryInfo.description }
|
2017-08-16 16:53:55 -06:00
|
|
|
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
|
2017-08-17 13:51:08 -06:00
|
|
|
alphabeticalOrder={['b', 'p', 't', 'd', 'a', 'o', 'j', 'e']}
|
2017-04-19 15:11:37 -06:00
|
|
|
details={{
|
2017-08-17 13:51:08 -06:00
|
|
|
phonology: {
|
|
|
|
consonants: ['b', 'p', 'd', 't', 'j'],
|
|
|
|
vowels: ['a', 'o', 'e'],
|
|
|
|
blends: ['ae', 'oe', 'tj', 'dy'],
|
|
|
|
phonotactics: {
|
|
|
|
onset: ['b', 'p', 'j'],
|
|
|
|
nucleus: ['a', 'o', 'e'],
|
|
|
|
coda: ['any'],
|
|
|
|
exceptions: 'There are no exceptions',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
grammar: {
|
|
|
|
content: 'The rules of the language are simple: just follow them!'
|
|
|
|
},
|
2017-04-19 15:11:37 -06:00
|
|
|
custom: [
|
|
|
|
{
|
2017-07-25 22:11:33 -06:00
|
|
|
name: 'Test Tab',
|
2017-08-17 13:51:08 -06:00
|
|
|
content: 'This is a test tab to test how custom tabs work!',
|
2017-04-19 15:11:37 -06:00
|
|
|
}
|
2017-08-17 13:51:08 -06:00
|
|
|
],
|
2017-04-19 15:11:37 -06:00
|
|
|
}}
|
|
|
|
/>
|
2017-05-18 23:43:29 -06:00
|
|
|
|
|
|
|
<WordsList
|
2017-07-25 22:11:33 -06:00
|
|
|
lastRender={ lastRender }
|
|
|
|
words={ wordsToDisplay } />
|
2017-04-19 15:11:37 -06:00
|
|
|
</RightColumn>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
}
|