1
0
mirror of https://github.com/flarum/core.git synced 2025-07-17 06:41:21 +02:00

Simplify Extension Categories (#2604)

This commit is contained in:
Charlie
2021-03-01 14:25:55 -08:00
committed by GitHub
parent 972748550f
commit 405b31f780
2 changed files with 4 additions and 9 deletions

View File

@@ -10,14 +10,9 @@ export default class AdminApplication extends Application {
extensionData = new ExtensionData(); extensionData = new ExtensionData();
extensionCategories = { extensionCategories = {
discussion: 70, feature: 30,
moderation: 60, theme: 20,
feature: 50,
formatting: 40,
theme: 30,
authentication: 20,
language: 10, language: 10,
other: 0,
}; };
history = { history = {

View File

@@ -15,9 +15,9 @@ export default function getCategorizedExtensions() {
extensions[category].push(extension); extensions[category].push(extension);
} else { } else {
extensions.other = extensions.other || []; extensions.feature = extensions.feature || [];
extensions.other.push(extension); extensions.feature.push(extension);
} }
}); });