tools-pro-Debug-vue.js 11.5 KB
(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["tools-pro-Debug-vue"],{"0614":function(e,t,a){"use strict";var s=a("5530"),i=a("2f62");t["a"]={data:function(){var e=this.$t.sprintf('<a href="%1$s" target="_blank">Scheduled Actions</a>',this.$aioseo.urls.admin.scheduledActions);return{showAreYouSureModal:!1,loading:{clearCache:!1,readdCapabilities:!1,rerunMigrations:!1,removeDuplicates:!1,unescapeData:!1,clearImageData:!1,clearVideoData:!1,restartMigration:!1,undismissSuggestions:!1,clearLinkAssistantData:!1},strings:{debug:"Debug",warning:"Before you run any of these actions, make sure that you have fully read the description and understand the consequences as these cannot be reverted.",general:"General",clearCache:"Clear Cache",clearCacheDescription:"This action deletes all cache records in the database.",rerunMigrations:"Rerun Migrations",rerunMigrationsDescription:"This action will rerun all update migrations since 4.0.0, excluding the V3 migration (which can be retriggered below).",readdCapabilities:"Readd Capabilities",readdCapabilitiesDescription:"This action will readd our capabilities (permissions) for all users.",removeDuplicates:"Remove Duplicates",removeDuplicatesDescription:"This action will remove any duplicate records that are found in the <code>aioseo_posts</code> or <code>aioseo_terms</code> table.",unescapeData:"Unescape Data",unescapeDataDescription:this.$t.sprintf("This action will clean posts/terms whose data is corrupted via Action Scheduler. To speed up this process, go to %1$s and run the <code>aioseo_unslash_escaped_data_posts</code> or <code>aioseo_unslash_escaped_data_terms</code> action.",e),sitemap:"Sitemap",clearImageData:"Clear Image Data",clearImageDataDescription:this.$t.sprintf("This action removes all image data from the database, forcing a site-wide rescan via Action Scheduler. To speed up the image scan, go to %1$s and run the <code>aioseo_video_sitemap_scan</code> action.",e),clearVideoData:"Clear Video Data",clearVideoDataDescription:this.$t.sprintf("This action removes all video data from the database, forcing a site-wide rescan via Action Scheduler. To speed up the video scan, go to %1$s and run the <code>aioseo_video_sitemap_scan</code> action.",e),linkAssistant:"Link Assistant",undismissSuggestions:"Undismiss Suggestions",undismissSuggestionsDescription:this.$t.sprintf("This action removes the dismissed state from all suggestions, which makes them appear in the UI again.",e),clearLinkAssistantData:"Clear Data",clearLinkAssistantDataDescription:this.$t.sprintf("This action removes all Link Assistant data from the database, forcing a site-wide rescan via Action Scheduler. The various Link Assistant scans can be sped up through the %1$s",e),restartMigration:"Restart v3 Migration",restartMigrationDescriptionPart1:"This action restarts the migration from v3 to v4. All settings are overidden immediately; the post/term meta will gradually be updated via Action Scheduler.",restartMigrationDescriptionPart2:this.$t.sprintf("To speed up the post/term meta migration, go to %1$s and run the <code>aioseo_migrate_post_meta</code> or <code>aioseo_migrate_term_meta action</code>.",e),areYouSureTitle:"Are you sure you want to restart the migration?",cannotBeUndone:"This action cannot be undone.",startMigration:"Yes, restart the migration",noChangedMind:"No, I changed my mind",migration:"Migration"}}},methods:Object(s["a"])(Object(s["a"])({},Object(i["b"])(["doTask"])),{},{clearCache:function(){var e=this;this.loading.clearingCache=!0,this.doTask("clear-cache").then((function(){e.loading.clearingCache=!1,console.log("Cache has been cleared.")}),(function(e){return console.error("Cache could not be cleared:",e)}))},readdCapabilities:function(){var e=this;this.loading.readdCapabilities=!0,this.doTask("readd-capabilities").then((function(){e.loading.readdCapabilities=!1,console.log("Capabilities have been readded.")}),(function(e){return console.error("Capabilities could not be readded:",e)}))},rerunMigrations:function(){var e=this;this.loading.rerunMigrations=!0,this.doTask("rerun-migrations").then((function(){e.loading.rerunMigrations=!1,console.log("Migrations have been restarted.")}),(function(e){return console.error("Migrations could not be restarted:",e)}))},removeDuplicates:function(){var e=this;this.loading.removeDuplicates=!0,this.doTask("remove-duplicates").then((function(){e.loading.removeDuplicates=!1,console.log("Duplicates have been removed.")}),(function(e){return console.error("Duplicates could not be removed:",e)}))},unescapeData:function(){var e=this;this.loading.unescapeData=!0,this.doTask("unescape-data").then((function(){e.loading.unescapeData=!1,console.log("Cleaning procedure for escaped data has been scheduled.")}),(function(e){return console.error("Cleaning procedure for escaped data could not be scheduled:",e)}))},clearImageData:function(){var e=this;this.loading.clearImageData=!0,this.doTask("clear-image-data").then((function(){e.loading.clearImageData=!1,console.log("Image data has been wiped.")}),(function(e){return console.error("Image data could not be wiped:",e)}))},clearVideoData:function(){var e=this;this.loading.clearVideoData=!0,this.doTask("clear-video-data").then((function(){e.loading.clearVideoData=!1,console.log("Video data has been cleared.")}),(function(e){return console.error("Video data could not be cleared:",e)}))},undismissSuggestions:function(){var e=this;this.loading.undismissSuggestions=!0,this.doTask("undismiss-suggestions").then((function(){e.loading.undismissSuggestions=!1,console.log("Suggestions have been undismissed.")}),(function(e){return console.error("Suggestions could not be undismissed:",e)}))},clearLinkAssistantData:function(){var e=this;this.loading.clearLinkAssistantData=!0,this.doTask("clear-link-assistant-data").then((function(){e.loading.clearLinkAssistantData=!1,console.log("Link Assistant data has been cleared.")}),(function(e){return console.error("Link data Assistant could not be cleared:",e)}))},maybeRestartMigration:function(){this.showAreYouSureModal=!0},restartMigration:function(){var e=this;this.showAreYouSureModal=!1,this.loading.restartMigration=!0,this.doTask("restart-v3-migration").then((function(){e.loading.restartMigration=!1,console.log("Migration has been restarted.")}),(function(e){return console.error("Migration could not be restarted:",e)}))}})}},e0b8:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"aioseo-tools-debug"},[a("core-card",{attrs:{slug:"debug","header-text":e.strings.debug}},[a("core-alert",{staticClass:"warning",attrs:{type:"yellow"}},[e._v(" "+e._s(e.strings.warning)+" ")]),a("core-settings-row",{staticClass:"first-row",attrs:{name:e.strings.general,align:""},scopedSlots:e._u([{key:"content",fn:function(){return[a("div",{staticClass:"action-row"},[a("base-button",{staticClass:"clear-cache",attrs:{type:"blue",size:"medium",loading:e.loading.clearCache},on:{click:e.clearCache}},[e._v(" "+e._s(e.strings.clearCache)+" ")]),a("div",{staticClass:"aioseo-description"},[e._v(" "+e._s(e.strings.clearCacheDescription)+" ")])],1),a("div",{staticClass:"action-row"},[a("base-button",{staticClass:"readd-capabilities",attrs:{type:"blue",size:"medium",loading:e.loading.readdCapabilities},on:{click:e.readdCapabilities}},[e._v(" "+e._s(e.strings.readdCapabilities)+" ")]),a("div",{staticClass:"aioseo-description"},[e._v(" "+e._s(e.strings.readdCapabilitiesDescription)+" ")])],1),a("div",{staticClass:"action-row"},[a("base-button",{staticClass:"rerun-migrations",attrs:{type:"blue",size:"medium",loading:e.loading.rerunMigrations},on:{click:e.rerunMigrations}},[e._v(" "+e._s(e.strings.rerunMigrations)+" ")]),a("div",{staticClass:"aioseo-description"},[e._v(" "+e._s(e.strings.rerunMigrationsDescription)+" ")])],1),a("div",{staticClass:"action-row"},[a("base-button",{staticClass:"remove-duplicates",attrs:{type:"blue",size:"medium",loading:e.loading.removeDuplicates},on:{click:e.removeDuplicates}},[e._v(" "+e._s(e.strings.removeDuplicates)+" ")]),a("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.removeDuplicatesDescription)}})],1),a("div",{staticClass:"action-row"},[a("base-button",{staticClass:"unescape-data",attrs:{type:"blue",size:"medium",loading:e.loading.unescapeData},on:{click:e.unescapeData}},[e._v(" "+e._s(e.strings.unescapeData)+" ")]),a("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.unescapeDataDescription)}})],1)]},proxy:!0}])}),a("core-settings-row",{attrs:{name:e.strings.sitemap,align:""},scopedSlots:e._u([{key:"content",fn:function(){return[a("div",{staticClass:"action-row"},[a("base-button",{staticClass:"clear-image-data",attrs:{type:"blue",size:"medium",loading:e.loading.clearImageData},on:{click:e.clearImageData}},[e._v(" "+e._s(e.strings.clearImageData)+" ")]),a("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.clearImageDataDescription)}})],1),a("div",{staticClass:"action-row"},[a("base-button",{staticClass:"clear-video-data",attrs:{type:"blue",size:"medium",loading:e.loading.clearVideoData},on:{click:e.clearVideoData}},[e._v(" "+e._s(e.strings.clearVideoData)+" ")]),a("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.clearVideoDataDescription)}})],1)]},proxy:!0}])}),a("core-settings-row",{attrs:{name:e.strings.linkAssistant,align:""},scopedSlots:e._u([{key:"content",fn:function(){return[a("div",{staticClass:"action-row"},[a("base-button",{staticClass:"undismiss-suggestions",attrs:{type:"blue",size:"medium",loading:e.loading.undismissSuggestions},on:{click:e.undismissSuggestions}},[e._v(" "+e._s(e.strings.undismissSuggestions)+" ")]),a("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.undismissSuggestionsDescription)}})],1),a("div",{staticClass:"action-row"},[a("base-button",{staticClass:"clear-link-data",attrs:{type:"blue",size:"medium",loading:e.loading.clearLinkAssistantData},on:{click:e.clearLinkAssistantData}},[e._v(" "+e._s(e.strings.clearLinkAssistantData)+" ")]),a("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.clearLinkAssistantDataDescription)}})],1)]},proxy:!0}])}),a("core-settings-row",{attrs:{name:e.strings.migration,align:""},scopedSlots:e._u([{key:"content",fn:function(){return[e.$aioseo.data.isDev?a("base-button",{staticClass:"redo-v3-migration",attrs:{type:"blue",size:"medium",loading:e.loading.restartMigration},on:{click:e.maybeRestartMigration}},[e._v(" "+e._s(e.strings.restartMigration)+" ")]):e._e(),a("div",{staticClass:"aioseo-description"},[e._v(" "+e._s(e.strings.restartMigrationDescriptionPart1)+" ")]),a("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.restartMigrationDescriptionPart2)}})]},proxy:!0}])}),e.showAreYouSureModal?a("core-modal",{attrs:{"no-header":""},scopedSlots:e._u([{key:"body",fn:function(){return[a("div",{staticClass:"aioseo-modal-body"},[a("button",{staticClass:"close",on:{click:function(t){t.stopPropagation(),e.showAreYouSureModal=!1}}},[a("svg-close",{on:{click:function(t){e.showDeleteModal=!1}}})],1),a("h3",[e._v(e._s(e.strings.areYouSureTitle))]),a("div",{staticClass:"reset-description",domProps:{innerHTML:e._s(e.strings.cannotBeUndone)}}),a("base-button",{attrs:{type:"blue",size:"medium"},on:{click:e.restartMigration}},[e._v(" "+e._s(e.strings.startMigration)+" ")]),a("base-button",{attrs:{type:"gray",size:"medium"},on:{click:function(t){e.showAreYouSureModal=!1}}},[e._v(" "+e._s(e.strings.noChangedMind)+" ")])],1)]},proxy:!0}],null,!1,14870036)}):e._e()],1)],1)},i=[],n=a("0614"),o={mixins:[n["a"]]},r=o,c=a("2877"),d=Object(c["a"])(r,s,i,!1,null,null,null);t["default"]=d.exports}}]);