|
|
|
@ -4,6 +4,7 @@ import attributeService from "../services/attributes.js";
|
|
|
|
import server from "../services/server.js";
|
|
|
|
import server from "../services/server.js";
|
|
|
|
import type FNote from "../entities/fnote.js";
|
|
|
|
import type FNote from "../entities/fnote.js";
|
|
|
|
import type { EventData } from "../components/app_context.js";
|
|
|
|
import type { EventData } from "../components/app_context.js";
|
|
|
|
|
|
|
|
import type { Icon } from "./icon_list.js";
|
|
|
|
|
|
|
|
|
|
|
|
const TPL = `
|
|
|
|
const TPL = `
|
|
|
|
<div class="note-icon-widget dropdown">
|
|
|
|
<div class="note-icon-widget dropdown">
|
|
|
|
@ -81,11 +82,6 @@ const TPL = `
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>`;
|
|
|
|
</div>`;
|
|
|
|
|
|
|
|
|
|
|
|
interface Icon {
|
|
|
|
|
|
|
|
className?: string;
|
|
|
|
|
|
|
|
name: string;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface IconToCountCache {
|
|
|
|
interface IconToCountCache {
|
|
|
|
iconClassToCountMap: Record<string, number>;
|
|
|
|
iconClassToCountMap: Record<string, number>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|