1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 07:54:25 +02:00

Get admin area working again

This commit is contained in:
Toby Zerner
2015-07-29 20:58:22 +09:30
parent d8d9cac7c3
commit e863bd53d3
35 changed files with 432 additions and 419 deletions

View File

@@ -0,0 +1,26 @@
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();
}
}