mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 06:39:57 +08:00
Cleanup, update changelog
This commit is contained in:
@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- External authentication (social login) API.
|
- External authentication (social login) API.
|
||||||
- API to set asset compiler filename.
|
- API to set asset compiler filename.
|
||||||
- Migration generator, available via generate:migration console command.
|
- Migration generator, available via generate:migration console command.
|
||||||
|
- Tags: Ability to set the tags page as the home page.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Migrations must be namespaced under `Flarum\Migrations\{Core|ExtensionName}`. ([#422](https://github.com/flarum/core/issues/422))
|
- Migrations must be namespaced under `Flarum\Migrations\{Core|ExtensionName}`. ([#422](https://github.com/flarum/core/issues/422))
|
||||||
|
@ -7,9 +7,7 @@ import saveConfig from 'flarum/utils/saveConfig';
|
|||||||
import ItemList from 'flarum/utils/ItemList';
|
import ItemList from 'flarum/utils/ItemList';
|
||||||
|
|
||||||
export default class BasicsPage extends Component {
|
export default class BasicsPage extends Component {
|
||||||
constructor(...args) {
|
init() {
|
||||||
super(...args);
|
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
||||||
this.fields = [
|
this.fields = [
|
||||||
@ -110,9 +108,7 @@ export default class BasicsPage extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
changed() {
|
changed() {
|
||||||
const config = app.config;
|
return this.fields.some(key => this.values[key]() !== app.config[key]);
|
||||||
|
|
||||||
return this.fields.some(key => this.values[key]() !== config[key]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -122,7 +118,7 @@ export default class BasicsPage extends Component {
|
|||||||
* @return {ItemList}
|
* @return {ItemList}
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
homePageItems() {
|
homePageItems() {
|
||||||
const items = new ItemList();
|
const items = new ItemList();
|
||||||
|
|
||||||
items.add('allDiscussions', {
|
items.add('allDiscussions', {
|
||||||
|
Reference in New Issue
Block a user