文件操作 - activation_notification.js
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/ionos-security/build/activation_notification.js
编辑文件内容
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,n=window.wp.element,a=window.wp.domReady;var o=e.n(a);const i=window.wp.data,c="ionos/activation-notification";function l(){const{headline:e}=(0,i.useSelect)((e=>({headline:e(c).getHeadline()})));return(0,t.createElement)("div",{className:"ionos-activtion-notification-content__headline"},(0,t.createElement)("h1",null,e))}!function(){const e=(0,i.createReduxStore)(c,{reducer:(e={},{type:t,payload:n})=>"__SET_STATE"===t?{state:e,...n}:e,actions:{__initialize:e=>async function({dispatch:t}){t.__setState(e)},__setState:e=>({type:"__SET_STATE",payload:e})},selectors:{__getState:e=>e,getRestBase:e=>e.restBase,getMail:e=>e.mail,getHeadline:e=>e.headline,getConfirmButton:e=>e.confirm,getChangeButton:e=>e.change,getText:e=>e.text},resolvers:{}});(0,i.register)(e)}();const s=window.wp.apiFetch;var r=e.n(s);function m(){const{restBase:e,confirm:n,change:a}=(0,i.useSelect)((e=>({restBase:e(c).getRestBase(),confirm:e(c).getConfirmButton(),change:e(c).getChangeButton()})));return(0,t.createElement)("div",{className:"ionos-activtion-notification-footer"},(0,t.createElement)("button",{onClick:async()=>{const t=await r()({path:`${e}/set_timestamp`,method:"POST",data:{timestamp:Date.now()}});!0===t?.state&&window.location.reload(!1)},className:"button button-secondary",type:"button"},n),(0,t.createElement)("button",{onClick:async()=>{const t=await r()({path:`${e}/set_cookie`,method:"POST",data:{timestamp:Date.now()}});if(!0===t?.state){const e="/wp-admin/profile.php";window.location.pathname===e?window.location.reload(!1):window.location.replace(e+"#email")}},className:"button button-primary",type:"button"},a))}function d(){const{mail:e}=(0,i.useSelect)((e=>({mail:e(c).getMail()})));return(0,t.createElement)("div",{className:"ionos-activtion-notification-content__mail"},(0,t.createElement)("h2",null,e))}function u(){const{text:e}=(0,i.useSelect)((e=>({text:e(c).getText()})));return(0,t.createElement)("div",{className:"ionos-activtion-notification-content__message"},e.map(((e,n)=>(0,t.createElement)("p",{key:n},e))))}function p(){return(0,t.createElement)("div",{className:"ionos-activtion-notification-container"},(0,t.createElement)("div",{className:"ionos-activtion-notification-content"},(0,t.createElement)(l,null),(0,t.createElement)(u,null),(0,t.createElement)(d,null)),(0,t.createElement)(m,null))}o()((()=>(0,n.render)((0,t.createElement)(n.StrictMode,null,(0,t.createElement)(p,null)),document.getElementById("wpwrap"))))})();
修改文件时间
将文件时间修改为当前时间的前一年
删除文件