tools-lite-Debug-vue.js
10.3 KB
(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["tools-lite-Debug-vue"],{"0614":function(e,a,t){"use strict";var i=t("5530"),s=t("2f62");a["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(i["a"])(Object(i["a"])({},Object(s["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)}))}})}},"65e5":function(e,a,t){"use strict";t.r(a);var i=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"aioseo-tools-debug"},[t("core-card",{attrs:{slug:"debug","header-text":e.strings.debug}},[t("core-alert",{staticClass:"warning",attrs:{type:"yellow"}},[e._v(" "+e._s(e.strings.warning)+" ")]),t("core-settings-row",{staticClass:"first-row",attrs:{name:e.strings.general,align:""},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"action-row"},[t("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)+" ")]),t("div",{staticClass:"aioseo-description"},[e._v(" "+e._s(e.strings.clearCacheDescription)+" ")])],1),t("div",{staticClass:"action-row"},[t("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)+" ")]),t("div",{staticClass:"aioseo-description"},[e._v(" "+e._s(e.strings.readdCapabilitiesDescription)+" ")])],1),t("div",{staticClass:"action-row"},[t("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)+" ")]),t("div",{staticClass:"aioseo-description"},[e._v(" "+e._s(e.strings.rerunMigrationsDescription)+" ")])],1),t("div",{staticClass:"action-row"},[t("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)+" ")]),t("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.removeDuplicatesDescription)}})],1),t("div",{staticClass:"action-row"},[t("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)+" ")]),t("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.unescapeDataDescription)}})],1)]},proxy:!0}])}),t("core-settings-row",{attrs:{name:"Sitemap",align:""},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"action-row"},[t("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)+" ")]),t("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.clearImageDataDescription)}})],1)]},proxy:!0}])}),t("core-settings-row",{attrs:{name:e.strings.migration,align:""},scopedSlots:e._u([{key:"content",fn:function(){return[e.$aioseo.data.isDev?t("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(),t("div",{staticClass:"aioseo-description"},[e._v(" "+e._s(e.strings.restartMigrationDescriptionPart1)+" ")]),t("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.restartMigrationDescriptionPart2)}})]},proxy:!0}])}),e.showAreYouSureModal?t("core-modal",{attrs:{"no-header":""},scopedSlots:e._u([{key:"body",fn:function(){return[t("div",{staticClass:"aioseo-modal-body"},[t("button",{staticClass:"close",on:{click:function(a){a.stopPropagation(),e.showAreYouSureModal=!1}}},[t("svg-close",{on:{click:function(a){e.showDeleteModal=!1}}})],1),t("h3",[e._v(e._s(e.strings.areYouSureTitle))]),t("div",{staticClass:"reset-description",domProps:{innerHTML:e._s(e.strings.cannotBeUndone)}}),t("base-button",{attrs:{type:"blue",size:"medium"},on:{click:e.restartMigration}},[e._v(" "+e._s(e.strings.startMigration)+" ")]),t("base-button",{attrs:{type:"gray",size:"medium"},on:{click:function(a){e.showAreYouSureModal=!1}}},[e._v(" "+e._s(e.strings.noChangedMind)+" ")])],1)]},proxy:!0}],null,!1,14870036)}):e._e()],1)],1)},s=[],o=t("0614"),n={mixins:[o["a"]]},r=n,c=t("2877"),d=Object(c["a"])(r,i,s,!1,null,null,null);a["default"]=d.exports}}]);