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 @@
|
||||
const q={getMailSettings(){return this.request("/settings/mail")},saveMailSettings(e){return this.request("/settings/mail",{method:"POST",body:JSON.stringify(e)})},testMail(e){return this.request("/mail/test",{method:"POST",body:JSON.stringify({to:e})})},getFooterSettings(){return this.request("/settings/footer")},saveFooterSettings(e){return this.request("/settings/footer",{method:"POST",body:JSON.stringify(e)})},getFooterTabbarSettings(){return this.request("/settings/footer-tabbar")},saveFooterTabbarSettings(e){return this.request("/settings/footer-tabbar",{method:"POST",body:JSON.stringify(e)})},reorderFooterTabbar(e){return this.request("/settings/footer-tabbar/reorder",{method:"POST",body:JSON.stringify({ids:e})})},getFloatingButtons(){return this.request("/settings/floating-buttons")},saveFloatingButtons(e){return this.request("/settings/floating-buttons",{method:"POST",body:JSON.stringify(e)})},reorderFloatingButtons(e){return this.request("/settings/floating-buttons/reorder",{method:"POST",body:JSON.stringify({ids:e})})},getFriendLinks(){return this.request("/friend-links")},addFriendLink(e){return this.request("/friend-links",{method:"POST",body:JSON.stringify(e)})},deleteFriendLink(e){return this.request(`/friend-links/${e}`,{method:"DELETE"})},reorderFriendLinks(e){return this.request("/friend-links/reorder",{method:"POST",body:JSON.stringify({ids:e})})},getCmsFeatures(){return this.request("/settings/cms-features")},saveCmsFeatures(e){return this.request("/settings/cms-features",{method:"POST",body:JSON.stringify({cms_features:e})})}},O={getHomepageSettings(){return this.request("/settings/homepage")},saveHomepageSettings(e){return this.request("/settings/homepage",{method:"POST",body:JSON.stringify(e)})},getHomepageCategories(){return this.request("/homepage/categories")},getCategoryRecommendSettings(){return this.request("/settings/category-recommend")},saveCategoryRecommendSettings(e){return this.request("/settings/category-recommend",{method:"POST",body:JSON.stringify(e)})},getCategories(){return this.request("/categories")},updateCategoryMeta(e,t){return this.request(`/categories/${e}/meta`,{method:"POST",body:JSON.stringify(t)})},searchUsers(e="",t=20){return this.request(`/users/search?search=${encodeURIComponent(e)}&number=${t}`)},getBanners(e="hero"){return this.request(`/banners?kind=${encodeURIComponent(e)}`)},createBanner(e){return this.request("/banners",{method:"POST",body:JSON.stringify(e)})},updateBanner(e,t){return this.request(`/banners/${e}`,{method:"PUT",body:JSON.stringify(t)})},deleteBanner(e){return this.request(`/banners/${e}`,{method:"DELETE"})},getHeroes(){return this.getBanners("hero")},createHero(e){return this.createBanner({...e,kind:"hero"})},updateHero(e,t){return this.updateBanner(e,{...t,kind:"hero"})},deleteHero(e){return this.deleteBanner(e)},getHomepageBanners(){return this.getBanners("banner")},createHomepageBanner(e){return this.createBanner({...e,kind:"banner"})},updateHomepageBanner(e,t){return this.updateBanner(e,{...t,kind:"banner"})},deleteHomepageBanner(e){return this.deleteBanner(e)}},P={getPermissionsAttachmentSettings(){return this.getSchemaPage("permissions","attachment")},savePermissionsAttachmentSettings(e){return this.saveSchemaPage("permissions","attachment",e)},getPermissionsLoginSettings(){return this.getSchemaPage("permissions","login")},savePermissionsLoginSettings(e){return this.saveSchemaPage("permissions","login",e)},getPermissionsModerationSettings(){return this.getSchemaPage("permissions","moderation")},savePermissionsModerationSettings(e){return this.saveSchemaPage("permissions","moderation",e)},getCapabilities(){return this.request("/permissions/capabilities")},saveCapabilities(e){return this.request("/permissions/capabilities",{method:"POST",body:JSON.stringify({user_caps:e})})}},T={getAuthSettings(){return this.request("/settings/auth")},saveAuthSettings(e){return this.request("/settings/auth",{method:"POST",body:JSON.stringify(e)})},getOAuthSettings(){return this.request("/settings/oauth")},saveOAuthSettings(e){return this.request("/settings/oauth",{method:"POST",body:JSON.stringify(e)})},getNotificationSettings(){return this.request("/settings/notifications")},saveNotificationSettings(e){return this.request("/settings/notifications",{method:"POST",body:JSON.stringify(e)})},getNotificationOverview(e={}){const t=new URLSearchParams(e).toString();return this.request("/notifications/overview"+(t?`?${t}`:""))},markNotificationRead(e){return this.request("/notifications/mark-read",{method:"POST",body:JSON.stringify({id:e})})},markAllNotificationsRead(){return this.request("/notifications/mark-read",{method:"POST",body:JSON.stringify({mark_all:!0})})},deleteNotification(e){return this.request(`/notifications/${e}`,{method:"DELETE"})},runNotificationCleanup(){return this.request("/notifications/cleanup",{method:"POST",body:JSON.stringify({})})},getCreditSettings(){return this.request("/credits/settings")},saveCreditSettings(e){return tLine truncated
|
||||
Reference in new issue
Block a user