mirror of
https://codeberg.org/yeentown/barkey
synced 2025-03-23 16:47:46 +00:00
Merge pull request 'Sort emoji categories consistently' (#55) from fix-emoji-category-sort into dev
Reviewed-on: https://codeberg.org/yeentown/barkey/pulls/55 Reviewed-by: zima <zima@noreply.codeberg.org>
This commit is contained in:
commit
f4e04606c6
2 changed files with 6 additions and 1 deletions
|
@ -17,7 +17,7 @@ export const customEmojiCategories = computed<[ ...string[], null ]>(() => {
|
|||
categories.add(emoji.category);
|
||||
}
|
||||
}
|
||||
return markRaw([...Array.from(categories), null]);
|
||||
return markRaw([...Array.from(categories).sort(), null]);
|
||||
});
|
||||
|
||||
export function compareBySortKey(a: Misskey.entities.EmojiSimple, b: Misskey.entities.EmojiSimple): number {
|
||||
|
|
|
@ -4948,6 +4948,7 @@ export type components = {
|
|||
localOnly?: boolean;
|
||||
isSensitive?: boolean;
|
||||
roleIdsThatCanBeUsedThisEmojiAsReaction?: string[];
|
||||
sortKey: string | null;
|
||||
};
|
||||
EmojiDetailed: {
|
||||
/** Format: id */
|
||||
|
@ -4962,6 +4963,7 @@ export type components = {
|
|||
isSensitive: boolean;
|
||||
localOnly: boolean;
|
||||
roleIdsThatCanBeUsedThisEmojiAsReaction: string[];
|
||||
sortKey: string | null;
|
||||
};
|
||||
Flash: {
|
||||
/**
|
||||
|
@ -7319,6 +7321,7 @@ export type operations = {
|
|||
isSensitive?: boolean;
|
||||
localOnly?: boolean;
|
||||
roleIdsThatCanBeUsedThisEmojiAsReaction?: string[];
|
||||
sortKey?: string | null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -7684,6 +7687,7 @@ export type operations = {
|
|||
/** @description The local host is represented with `null`. The field exists for compatibility with other API endpoints that return files. */
|
||||
host: string | null;
|
||||
url: string;
|
||||
sortKey: string | null;
|
||||
})[];
|
||||
};
|
||||
};
|
||||
|
@ -7951,6 +7955,7 @@ export type operations = {
|
|||
isSensitive?: boolean;
|
||||
localOnly?: boolean;
|
||||
roleIdsThatCanBeUsedThisEmojiAsReaction?: string[];
|
||||
sortKey?: string | null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue