Skip to content

Commit a35064d

Browse files
committed
Fix covid examples navigation concept and attribution labels (#9358)
1 parent 88611bd commit a35064d

2 files changed

Lines changed: 16 additions & 50 deletions

File tree

examples/component/coronaGallery/Viewport.mjs

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import BaseViewport from '../../../src/container/Viewport.mjs';
2+
import BoxLabel from '../../../src/component/BoxLabel.mjs';
23
import CountryGallery from './CountryGallery.mjs';
34
import Panel from '../../../src/container/Panel.mjs';
45
import RangeField from '../../../src/form/field/Range.mjs';
@@ -215,38 +216,20 @@ class Viewport extends BaseViewport {
215216
}]
216217
}]
217218
}, {
218-
ntype: 'label',
219-
html : [
219+
module: BoxLabel,
220+
html : [
220221
'<b>Navigation Concept</b>',
221222
'<p>You can use the Arrow Keys to walk through the items.</p>'
222-
].join(''),
223-
224-
style: {
225-
backgroundColor: '#323232',
226-
color : '#ddd',
227-
fontSize : '13px',
228-
margin : '10px',
229-
padding : '10px',
230-
whiteSpace : 'normal'
231-
}
223+
].join('')
232224
}, {
233-
ntype: 'label',
234-
cls : ['neo-link-color'],
235-
html : [
225+
module: BoxLabel,
226+
cls : ['neo-link-color'],
227+
html : [
236228
'<b>Attribution</b>',
237229
'<p>App created with <a href="https://github.com/neomjs/neo">neo.mjs</a>.</p>',
238230
'<p>Data provided by <a href="https://github.com/disease-sh/API">disease-sh/API</a>.</p>',
239231
'<p>Country Flag Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>.</p>'
240-
].join(''),
241-
242-
style: {
243-
backgroundColor: '#323232',
244-
color : '#ddd',
245-
fontSize : '13px',
246-
margin : '10px',
247-
padding : '10px',
248-
whiteSpace : 'normal'
249-
}
232+
].join('')
250233
}]
251234
}]
252235
}

examples/component/coronaHelix/MainContainer.mjs

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import BoxLabel from '../../../src/component/BoxLabel.mjs';
12
import CheckBox from '../../../src/form/field/CheckBox.mjs';
23
import CountryHelix from './CountryHelix.mjs';
34
import Panel from '../../../src/container/Panel.mjs';
@@ -364,40 +365,22 @@ class MainContainer extends Viewport {
364365
}
365366
}
366367
}, {
367-
ntype: 'label',
368-
text : [
368+
module: BoxLabel,
369+
html : [
369370
'<b>Navigation Concept</b>',
370371
'<p>Click on an item to select it. Afterwards you can use the Arrow Keys to walk through the items.</p>',
371372
'<p>Hit the Space Key to rotate the currently selected item to the front.</p>',
372373
'<p>Hit the Enter Key to expand the currently selected item.</p>'
373-
].join(''),
374-
375-
style: {
376-
backgroundColor: '#323232',
377-
color : '#ddd',
378-
fontSize : '13px',
379-
margin : '10px',
380-
padding : '10px',
381-
whiteSpace : 'normal'
382-
}
374+
].join('')
383375
}, {
384-
ntype: 'label',
385-
cls : ['neo-link-color'],
386-
text : [
376+
module: BoxLabel,
377+
cls : ['neo-link-color'],
378+
html : [
387379
'<b>Attribution</b>',
388380
'<p>App created with <a href="https://github.com/neomjs/neo">neo.mjs</a>.</p>',
389381
'<p>Data provided by <a href="https://github.com/disease-sh/API">disease.sh/API</a>.</p>',
390382
'<p>Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>.</p>'
391-
].join(''),
392-
393-
style: {
394-
backgroundColor: '#323232',
395-
color : '#ddd',
396-
fontSize : '13px',
397-
margin : '10px',
398-
padding : '10px',
399-
whiteSpace : 'normal'
400-
}
383+
].join('')
401384
}]
402385
}]
403386
}

0 commit comments

Comments
 (0)