mizdra
https://gyazo.com/58a8462b9a296808cbfe8b8ad0b85138
code:matcher.js
import {
Icon,
forwardPartialFuzzyMatcher,
uniqueIcons,
} from '/api/code/customize/icon-suggestion/script.js';
// joke
export function babyMatcher(options) {
return uniqueIcons([
new Icon('mizdra', '赤ちゃん'),
...forwardPartialFuzzyMatcher(options),
]);
}
code:script.js
import {
Icon,
registerIconSuggestion,
fetchMemberPageIcons,
} from '/api/code/customize/icon-suggestion/script.js';
import { babyMatcher } from '/api/code/customize/mizdra/matcher.js';
registerIconSuggestion({
presetIcons: [
new Icon('icons', 'done'),
new Icon('icons', 'check'),
fetchMemberPageIcons('customize'),
],
matcher: babyMatcher,
});