fix(icons): render FA glyphs in the SPA picker grid and harden item clicks
The server catalog ships bare glyph names, but the SPA grid preview composed "fas home" instead of "fas fa-home" — every FA icon rendered blank (the old curated lists carried the fa- prefix, so the regression appeared with the catalog switch). Item clicks move from per-element @click to a delegated panel handler reading data-icon (immunity to DOM-replacing extensions/userscripts, matching the PHP picker's pattern), and selecting now closes the popover so the choice is visible in the field immediately.
This commit is contained in:
1 parent
27d8a9ea71
commit
39bafb65c4
12 files changed
+33
-20
No files matched your search
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SchemaPage._RXlmOMl.js","./vendor-vue.BxZIRU0_.js","./shared-api.DsnKC5vk.js","./FaIcon.NZ6TDkNu.js","./FaIconPicker.DuahAn6_.js","./shared-api.DnsQ5cxS.js","./FaIconPicker.css","./vendor-misc.bELTaXdf.js","./level.E3ANSDAX.js","./badge.CKTsmH1z.js","./index2.css","./vendor-naive.CKYCZmXD.js","./SchemaPage.css","./DeferredPage.DpQpYrho.js","./DeferredPage.css","./NativeOpsRedirect.CHwEgYbu.js","./NativeOpsRedirect.css","./FloatingButtonsSettings.DPX1stkw.js","./vendor-draggable.BooRVfGb.js","./PageHeader.CtT29f8Y.js","./PageHeader.css","./FloatingButtonsSettings.css","./FooterTabbarSettings.CIyXQt9d.js","./FooterTabbarSettings.css","./PostPageSettings.DEf9Fwyn.js","./CommentSettings.Cc5FzO9W.js","./PermissionsCapabilities.CjA3yZya.js","./PermissionsCapabilities.css","./AttachmentPermissions.Dzsg-DfQ.js","./AttachmentPermissions.css","./CmsCredits.BYsXdX89.js","./ThemeInfoPage.jxAxkM2b.js","./ThemeInfoPage.css","./ThemeAuthorizationPage.DMbNRHuq.js","./DocsPage.mFfiXsYT.js","./DocsPage.css","./UsersVerify.ryf_AQd6.js","./UsersVerify.css","./UsersLevel.BpnbcbVe.js","./UsersLevel.css","./UsersBadge.DCbaumfe.js","./UsersBadge.css","./UsersWechatTemplate.Dn21sVHP.js","./UsersWechatTemplate.css","./PaymentGateway.Cpy4K2E1.js","./PaymentGateway.css","./ToolsImportExport.BxEsl-fY.js","./ToolsImportExport.css","./ToolsHealth.B1bVNkRU.js","./ToolsHealth.css","./ToolsUpdate.DZedmIdt.js","./ToolsUpdate.css","./ExtensionAI.BmvoDo9B.js","./ExtensionAI.css"])))=>i.map(i=>d[i]);
|
||||
import{W as h,X as S,Y as l,Z as O,r as V,k as ne,_ as ie,$ as re,o as le,b as ce,a0 as me,a1 as k,a2 as H,a3 as f,a4 as p,N as w,a5 as N,z,a6 as G,f as W,c as q,p as de,a7 as ue,a8 as pe,M as ye,a9 as fe}from"./vendor-vue.BxZIRU0_.js";import{N as be,n as _e}from"./vendor-naive.CKYCZmXD.js";import"./vendor-misc.bELTaXdf.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const m of i)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&r(y)}).observe(document,{childList:!0,subtree:!0});function n(i){const m={};return i.integrity&&(m.integrity=i.integrity),i.referrerPolicy&&(m.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?m.credentials="include":i.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(i){if(i.ep)return;i.ep=!0;const m=n(i);fetch(i.href,m)}})();const Y=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},he={class:"aksrt-mobile-topbar"},ge={class:"aksrt-mobile-topbar__title"},ve={__name:"MobileTopBar",props:{title:{type:String,default:"AKSRT"}},emits:["toggle"],setup(e){return(t,n)=>(h(),S("header",he,[l("button",{class:"aksrt-mobile-topbar__menu",type:"button","aria-label":"打开菜单",onClick:n[0]||(n[0]=r=>t.$emit("toggle"))},[...n[1]||(n[1]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),l("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),l("line",{x1:"4",y1:"18",x2:"20",y2:"18"})],-1)])]),l("div",ge,O(e.title),1),n[2]||(n[2]=l("div",{class:"aksrt-mobile-topbar__brand"},"AK",-1))]))}},ke=Y(ve,[["__scopeId","data-v-2fabfa7d"]]),J=V(null);function E(e){return()=>ne("i",{class:e,style:"font-size:18px;width:18px;text-align:center"})}function X(e){return{status:"available",component:"SchemaPage",canonicalDomain:"",section:"",phase:"",dependsOn:[],reason:"",features:[],iconClass:"",...e}}function d(e){return X(e)}function o(e){return X({component:"SchemaPage",...e})}const Pe={key:"global",label:"全局&功能",icon:E("fa fas fa-globe"),route:"/global",children:[o({key:"global-common",name:"GlobalCommon",label:"常用功能",route:"/global/common",title:"常用功能",desc:"评论、性能、头像源与备案等全局基础配置。",canonicalDomain:"global",section:"common"}),o({key:"global-logo",name:"GlobalLogo",label:"LOGO图像",route:"/global/logo",title:"LOGO图像",desc:"管理站点 Logo、站点图标和品牌标识。",canonicalDomain:"global",section:"logo"}),o({key:"global-seo",name:"GlobalSeo",label:"SEO优化",route:"/global/seo",title:"SEO优化",desc:"站点标题、描述、关键词、Sitemap 等搜索引擎优化设置。",canonicalDomain:"global",section:"seo"}),o({key:"global-layout",name:"GlobalLayout",label:"显示&布局",route:"/global/layout",title:"显示&布局",desc:"全局布局风格、颜色方案、字体设置。",canonicalDomain:"global",section:"layout"}),o({key:"global-search",name:"GlobalSearch",label:"搜索功能",route:"/global/search",title:"搜索功能",desc:"搜索页面样式、搜索建议、热门搜索配置。",canonicalDomain:"global",section:"search"}),d({key:"global-tabbar",name:"GlobalTabbar",label:"手机底部Tab",route:"/global/tabbar",title:"手机底部Tab",desc:"移动端底部导航栏配置。",component:"FooterTabbarSettings"}),d({key:"global-floating",name:"GlobalFloating",label:"右侧悬浮按钮",route:"/global/floating",title:"右侧悬浮按钮",desc:"页面右侧浮动按钮的显示与配置。",component:"FloatingButtonsSettings"}),o({key:"global-i18n",name:"GlobalI18n",label:"多语言翻译",route:"/global/i18n",title:"多语言翻译",desc:"配置站点语言、语言切换器和翻译管理。",canonicalDomain:"global",section:"i18n"}),o({key:"global-email",name:"GlobalEmail",label:"Email邮件",route:"/global/email",title:"Email邮件",desc:"SMTP 发信配置、邮件模板与测试。",canonicalDomain:"global",section:"email"}),o({key:"global-custom-code",name:"GlobalCustomCode",label:"自定义代码",route:"/global/custom-code",title:"自定义代码",desc:"自定义 CSS、JS 代码注入。",canonicalDomain:"global",section:"custom-code"})]},Ee={key:"page-display",label:"页面&显示",icon:E("fa fas fa-desktop"),route:"/page-display",children:[o({key:"page-display-header-nav",name:"PageDisplayHeaderNav",label:"顶部导航栏",route:"/page-display/header-nav",title:"顶部导航栏",canonicalDomain:"page_display",section:"header-nav"}),o({key:"page-display-header-components",name:"PageDisplayHeaderComponents",label:"顶部多功能组件",route:"/page-display/header-components",title:"顶部多功能组件",canonicalDomain:"page_display",seLine truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SchemaPage.DUnjy3YN.js","./vendor-vue.BxZIRU0_.js","./shared-api.DieGsdVx.js","./FaIcon.NZ6TDkNu.js","./FaIconPicker.C_p6xA0k.js","./shared-api.DnsQ5cxS.js","./FaIconPicker.css","./vendor-misc.bELTaXdf.js","./level.E3ANSDAX.js","./badge.CKTsmH1z.js","./index2.css","./vendor-naive.CKYCZmXD.js","./SchemaPage.css","./DeferredPage.DpQpYrho.js","./DeferredPage.css","./NativeOpsRedirect.CHwEgYbu.js","./NativeOpsRedirect.css","./FloatingButtonsSettings.i1suZZSa.js","./vendor-draggable.BooRVfGb.js","./PageHeader.CtT29f8Y.js","./PageHeader.css","./FloatingButtonsSettings.css","./FooterTabbarSettings.pU_E4Hmw.js","./FooterTabbarSettings.css","./PostPageSettings.BLoHVRqN.js","./CommentSettings.D1KlFUf4.js","./PermissionsCapabilities.CjA3yZya.js","./PermissionsCapabilities.css","./AttachmentPermissions.Dzsg-DfQ.js","./AttachmentPermissions.css","./CmsCredits.BYsXdX89.js","./ThemeInfoPage.jxAxkM2b.js","./ThemeInfoPage.css","./ThemeAuthorizationPage.DMbNRHuq.js","./DocsPage.mFfiXsYT.js","./DocsPage.css","./UsersVerify.ryf_AQd6.js","./UsersVerify.css","./UsersLevel.BpnbcbVe.js","./UsersLevel.css","./UsersBadge.DCbaumfe.js","./UsersBadge.css","./UsersWechatTemplate.Dn21sVHP.js","./UsersWechatTemplate.css","./PaymentGateway.CciAIUvu.js","./PaymentGateway.css","./ToolsImportExport.BxEsl-fY.js","./ToolsImportExport.css","./ToolsHealth.B1bVNkRU.js","./ToolsHealth.css","./ToolsUpdate.DZedmIdt.js","./ToolsUpdate.css","./ExtensionAI.BmvoDo9B.js","./ExtensionAI.css"])))=>i.map(i=>d[i]);
|
||||
import{W as h,X as S,Y as l,Z as O,r as V,k as ne,_ as ie,$ as re,o as le,b as ce,a0 as me,a1 as k,a2 as H,a3 as f,a4 as p,N as w,a5 as N,z,a6 as G,f as W,c as q,p as de,a7 as ue,a8 as pe,M as ye,a9 as fe}from"./vendor-vue.BxZIRU0_.js";import{N as be,n as _e}from"./vendor-naive.CKYCZmXD.js";import"./vendor-misc.bELTaXdf.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const m of i)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&r(y)}).observe(document,{childList:!0,subtree:!0});function n(i){const m={};return i.integrity&&(m.integrity=i.integrity),i.referrerPolicy&&(m.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?m.credentials="include":i.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(i){if(i.ep)return;i.ep=!0;const m=n(i);fetch(i.href,m)}})();const Y=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},he={class:"aksrt-mobile-topbar"},ge={class:"aksrt-mobile-topbar__title"},ve={__name:"MobileTopBar",props:{title:{type:String,default:"AKSRT"}},emits:["toggle"],setup(e){return(t,n)=>(h(),S("header",he,[l("button",{class:"aksrt-mobile-topbar__menu",type:"button","aria-label":"打开菜单",onClick:n[0]||(n[0]=r=>t.$emit("toggle"))},[...n[1]||(n[1]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),l("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),l("line",{x1:"4",y1:"18",x2:"20",y2:"18"})],-1)])]),l("div",ge,O(e.title),1),n[2]||(n[2]=l("div",{class:"aksrt-mobile-topbar__brand"},"AK",-1))]))}},ke=Y(ve,[["__scopeId","data-v-2fabfa7d"]]),J=V(null);function E(e){return()=>ne("i",{class:e,style:"font-size:18px;width:18px;text-align:center"})}function X(e){return{status:"available",component:"SchemaPage",canonicalDomain:"",section:"",phase:"",dependsOn:[],reason:"",features:[],iconClass:"",...e}}function d(e){return X(e)}function o(e){return X({component:"SchemaPage",...e})}const Pe={key:"global",label:"全局&功能",icon:E("fa fas fa-globe"),route:"/global",children:[o({key:"global-common",name:"GlobalCommon",label:"常用功能",route:"/global/common",title:"常用功能",desc:"评论、性能、头像源与备案等全局基础配置。",canonicalDomain:"global",section:"common"}),o({key:"global-logo",name:"GlobalLogo",label:"LOGO图像",route:"/global/logo",title:"LOGO图像",desc:"管理站点 Logo、站点图标和品牌标识。",canonicalDomain:"global",section:"logo"}),o({key:"global-seo",name:"GlobalSeo",label:"SEO优化",route:"/global/seo",title:"SEO优化",desc:"站点标题、描述、关键词、Sitemap 等搜索引擎优化设置。",canonicalDomain:"global",section:"seo"}),o({key:"global-layout",name:"GlobalLayout",label:"显示&布局",route:"/global/layout",title:"显示&布局",desc:"全局布局风格、颜色方案、字体设置。",canonicalDomain:"global",section:"layout"}),o({key:"global-search",name:"GlobalSearch",label:"搜索功能",route:"/global/search",title:"搜索功能",desc:"搜索页面样式、搜索建议、热门搜索配置。",canonicalDomain:"global",section:"search"}),d({key:"global-tabbar",name:"GlobalTabbar",label:"手机底部Tab",route:"/global/tabbar",title:"手机底部Tab",desc:"移动端底部导航栏配置。",component:"FooterTabbarSettings"}),d({key:"global-floating",name:"GlobalFloating",label:"右侧悬浮按钮",route:"/global/floating",title:"右侧悬浮按钮",desc:"页面右侧浮动按钮的显示与配置。",component:"FloatingButtonsSettings"}),o({key:"global-i18n",name:"GlobalI18n",label:"多语言翻译",route:"/global/i18n",title:"多语言翻译",desc:"配置站点语言、语言切换器和翻译管理。",canonicalDomain:"global",section:"i18n"}),o({key:"global-email",name:"GlobalEmail",label:"Email邮件",route:"/global/email",title:"Email邮件",desc:"SMTP 发信配置、邮件模板与测试。",canonicalDomain:"global",section:"email"}),o({key:"global-custom-code",name:"GlobalCustomCode",label:"自定义代码",route:"/global/custom-code",title:"自定义代码",desc:"自定义 CSS、JS 代码注入。",canonicalDomain:"global",section:"custom-code"})]},Ee={key:"page-display",label:"页面&显示",icon:E("fa fas fa-desktop"),route:"/page-display",children:[o({key:"page-display-header-nav",name:"PageDisplayHeaderNav",label:"顶部导航栏",route:"/page-display/header-nav",title:"顶部导航栏",canonicalDomain:"page_display",section:"header-nav"}),o({key:"page-display-header-components",name:"PageDisplayHeaderComponents",label:"顶部多功能组件",route:"/page-display/header-components",title:"顶部多功能组件",canonicalDomain:"page_display",seLine truncated
|
||||
Reference in new issue
Block a user