3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-12 21:47:20 +00:00

Documentation work. Add command info for all Utility plugin commands.

This commit is contained in:
Dragory 2019-10-25 23:14:21 +03:00
parent 1ba49034e2
commit a1a5110c8d
5 changed files with 197 additions and 52 deletions

View file

@ -34,6 +34,15 @@ export const DocsStore: Module<DocsState, RootState> = {
if (state.plugins[name]) return;
const data = await get(`docs/plugins/${name}`);
if (data && data.commands) {
data.commands.sort((a, b) => {
const aName = a.trigger.toLowerCase();
const bName = b.trigger.toLowerCase();
if (aName > bName) return 1;
if (aName < bName) return -1;
return 0;
});
}
commit("setPluginData", { name, data });
},
},