mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 14:49:57 +08:00

- Get rid of Bootstrap (except we still rely on some JS) - Use BEM class names - Rework variables/theme config - Fix various bugs, including some on mobile The CSS is still not ideal – it needs to be cleaned up some more. But that can be a focus for after beta.
27 lines
606 B
JavaScript
27 lines
606 B
JavaScript
import Component from 'flarum/Component';
|
|
import ItemList from 'flarum/utils/ItemList';
|
|
import listItems from 'flarum/helpers/listItems';
|
|
|
|
/**
|
|
* The `HeaderPrimary` component displays primary header controls. On the
|
|
* default skin, these are shown just to the right of the forum title.
|
|
*/
|
|
export default class HeaderPrimary extends Component {
|
|
view() {
|
|
return (
|
|
<ul className="Header-controls">
|
|
{listItems(this.items().toArray())}
|
|
</ul>
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Build an item list for the controls.
|
|
*
|
|
* @return {ItemList}
|
|
*/
|
|
items() {
|
|
return new ItemList();
|
|
}
|
|
}
|