feat(admin): back the SPA icon picker with the server catalog

FaIconPicker drops its duplicated hard-coded FA subset and loads
GET /aksrt/v1/icons/catalog: full solid/regular/brands sets, the
built-in zibsvg sprite tab and an inline custom SVG tab. Props/emit
surface is unchanged; the system-notice title icon schema drift
(input vs icon) is fixed on the JS side.
This commit is contained in:
kate522 committed 2026-09-06 12:59:30 +08:00
1 parent 009f9874c0
commit 5b5db0f8f5
5 files changed
+211 -96

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
/**
* Icon catalog API — serves the universal icon picker (FA5 + sprite + custom).
*/
export const iconsApiMethods = {
getIconCatalog() {
return this.request('/icons/catalog')
},
}
+2
View File
@@ -6,6 +6,7 @@ import { paymentApiMethods } from './payment.js'
import { extensionsApiMethods } from './extensions.js'
import { toolsApiMethods } from './tools.js'
import { schemaApiMethods } from './schema.js'
import { iconsApiMethods } from './icons.js'
export const apiMethods = {
...globalApiMethods,
@@ -16,4 +17,5 @@ export const apiMethods = {
...extensionsApiMethods,
...toolsApiMethods,
...schemaApiMethods,
...iconsApiMethods,
}