feat(admin): strip SPA ops menus; redirect old hashes to native WP (Phase 4)
SPA shop/forum/payment/users sections now keep configuration pages only. Operational workbenches were removed from the sidebar and loaders; legacy hash routes open NativeOpsRedirect into the matching WP native admin page. Admin SPA production build refreshed accordingly.
This commit is contained in:
1 parent
bf061f43ee
commit
a3dde3874a
85 files changed
+15987
-249
No files matched your search
@@ -0,0 +1 @@
|
||||
import{d as E}from"./vendor-draggable.CceJcfGJ.js";import{a as V}from"./shared-api.D5_fnN32.js";import{P as pe}from"./PageHeader.Di3JTPjc.js";import{_ as fe}from"./index.js";import{u as _e,a as ce,B as b,b as I}from"./vendor-naive.BuHWlEgf.js";import{o as me,X as c,a4 as o,a3 as s,r as C,a1 as _,e as L,W as u,N as f,f as i,Y as n,Z as w,a2 as y,L as j,a5 as g,F as $,R as be,c as ye}from"./vendor-vue.Bykizn0M.js";import"./vendor-misc.1adHN6i_.js";const ge={class:"aksrt-page-container content-page"},ve={class:"aksrt-card-header-row"},ke={class:"aksrt-card-header-row__left"},we={class:"aksrt-card-header-row__title"},he={class:"section-desc section-desc--tight"},xe={class:"tabbar-sort__item"},Te={class:"tabbar-sort__main"},Ue={class:"tabbar-sort__icon"},Ce={class:"tabbar-sort__meta"},$e={class:"tabbar-sort__title-row"},ze={class:"tabbar-sort__desc"},Ie={class:"tabbar-sort__actions"},Ae={class:"aksrt-form-actions"},Fe={class:"icon-preview-row"},De={key:1,class:"muted-text"},Ve={key:5,class:"add-items-editor"},Ne={class:"add-items-editor__head"},Se={class:"add-items-editor__presets"},Pe={key:0,class:"add-items-editor__list"},Be={class:"add-items-editor__row"},Oe={key:1,class:"muted-text"},Me={class:"aksrt-modal-footer"},qe={__name:"FooterTabbarSettings",setup(Ee){const m=_e(),W=ce(),A=C(!0),z=C(!1),T=C(!1),h=C(-1),F=C([]),d=L({enabled:!0,scroll_hide:!1,scroll_down_hide:!0,footer_tabbar_single:"default",items:[]}),a=L({id:"",type:"link",icon:"",text:"",link:"",badge:"",badge_mode:"static",category_id:null,search_default_type:"post",new_window:!1,add_items:[],enabled:!0,sort_order:0,ontop:!1}),H=[{label:"首页",value:"home"},{label:"分类页",value:"category"},{label:"链接",value:"link"},{label:"中央发布按钮",value:"add"},{label:"用户中心",value:"user"},{label:"登录/我的",value:"auth"},{label:"搜索",value:"search"},{label:"消息中心",value:"msg"},{label:"开通会员",value:"pay_vip"},{label:"购物车",value:"shop_cart"}],R={home:"首页",category:"分类页",link:"链接",add:"中央发布按钮",user:"用户中心",auth:"登录/我的",search:"搜索",msg:"消息中心",pay_vip:"开通会员",shop_cart:"购物车"},N={home:{icon:"fas fa-home",text:"首页"},category:{icon:"fas fa-th-large",text:"分类"},link:{icon:"fas fa-link",text:"链接"},add:{icon:"fas fa-plus",text:"发布"},user:{icon:"fas fa-user",text:"用户中心"},auth:{icon:"fas fa-user",text:"我的"},search:{icon:"fas fa-search",text:"搜索"},msg:{icon:"fas fa-bell",text:"消息"},pay_vip:{icon:"fas fa-crown",text:"会员"},shop_cart:{icon:"fas fa-shopping-cart",text:"购物车"}},X=ye(()=>d.items.filter(t=>t.enabled));function Y(t){var e;if(t.type==="home")return t.ontop?"首页按钮,滚动后切换返回顶部":"首页按钮";if(t.type==="category"){if(t.category_id){const r=F.value.find(p=>p.value===t.category_id);return r?`跳转到分类: ${r.label}`:`跳转到分类 ID ${t.category_id}`}return"跳转到分类聚合页"}return t.type==="add"?(e=t.add_items)!=null&&e.length?`展开 ${t.add_items.length} 个发布入口`:"点击后打开默认发布入口":t.type==="search"?`打开顶部搜索面板,默认搜索${t.search_default_type==="category"?"分类":t.search_default_type==="tag"?"标签":"文章"}`:t.type==="user"?"自动跳转到用户中心或登录页":t.type==="auth"?"登录用户显示我的,游客显示登录":t.type==="msg"?"跳转到消息中心页面":t.type==="pay_vip"?t.link||"跳转到会员开通页":t.type==="shop_cart"?t.link||"跳转到购物车页面":t.link||"自定义链接按钮"}const Z=[{label:"写文章",icon:"fas fa-pen-fancy",url:"/post-new"},{label:"投稿页",icon:"fas fa-file-alt",url:"/submit"},{label:"发布资源",icon:"fas fa-cloud-upload-alt",url:"/resource-new"},{label:"创作中心",icon:"fas fa-palette",url:"/creator"}];function G(t){a.add_items.some(e=>e.url===t.url)||a.add_items.push({id:`add_${Date.now()}_${a.add_items.length}`,label:t.label,icon:t.icon,url:t.url})}function J(){a.add_items.push({id:`add_${Date.now()}_${a.add_items.length}`,label:"",icon:"fas fa-pen",url:""})}function K(t){a.add_items.splice(t,1)}function S(){d.items=d.items.map((t,e)=>({...t,sort_order:e}))}function Q(t,e=!1){const r=N[t]||N.link;(e||!a.icon)&&(a.icon=r.icon),(e||!a.text)&&(a.text=r.text),["link","msg","pay_vip","shop_cart"].includes(t)||(a.link=""),t!=="category"&&(a.category_id=null),t!=="search"&&(a.search_default_type="post"),t!=="add"&&(a.add_items=[]),t!=="home"&&(a.ontop=!1)}function ee(t){Q(t,!1)}function ae(){if(d.items.length>=5){m.warning("底部Tab最多只能配置 5 个按钮");return}Object.assign(a,{id:`tab_${Date.now()}`,type:"link",icon:"fas fa-link",text:"链接",link:"",badge:"",badge_mode:"static",category_id:null,search_default_type:"post",new_window:!1,add_items:[],enabled:!0,sort_order:d.items.length,ontop:!1}),h.value=-1,T.value=!0}function te(t){const e=d.items[t];Object.assign(a,{id:e.id,type:e.type||"link",icon:e.icon||"",text:e.text||"",link:e.link||"",baLine truncated
|
||||
Reference in new issue
Block a user