mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 13:35:47 +08:00
Simplify Extension Categories (#2604)
This commit is contained in:
parent
7fa22a131f
commit
b7379bf91b
|
@ -10,14 +10,9 @@ export default class AdminApplication extends Application {
|
|||
extensionData = new ExtensionData();
|
||||
|
||||
extensionCategories = {
|
||||
discussion: 70,
|
||||
moderation: 60,
|
||||
feature: 50,
|
||||
formatting: 40,
|
||||
theme: 30,
|
||||
authentication: 20,
|
||||
feature: 30,
|
||||
theme: 20,
|
||||
language: 10,
|
||||
other: 0,
|
||||
};
|
||||
|
||||
history = {
|
||||
|
|
|
@ -15,9 +15,9 @@ export default function getCategorizedExtensions() {
|
|||
|
||||
extensions[category].push(extension);
|
||||
} else {
|
||||
extensions.other = extensions.other || [];
|
||||
extensions.feature = extensions.feature || [];
|
||||
|
||||
extensions.other.push(extension);
|
||||
extensions.feature.push(extension);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user