Plugin Directory

Changeset 3116686


Ignore:
Timestamp:
07/11/2024 09:39:24 PM (20 months ago)
Author:
deryck
Message:

v1.2

Location:
logdash-activity-log
Files:
87 added
23 edited

Legend:

Unmodified
Added
Removed
  • logdash-activity-log/trunk/README.txt

    r3045030 r3116686  
    22Contributors: deryck
    33Donate link: https://www.paypal.com/donate/?hosted_button_id=XHK37YBVVMP58
    4 Tags: Activity Log, User Activity, User Log, Audit Log, Security, Tracking, WooCommerce, bbPress, GDPR,
     4Tags: Activity Log, User Activity, User Log, Audit Log
    55Requires at least: 5.9.5
    6 Tested up to: 6.4.1
     6Tested up to: 6.6
    77Requires PHP: 7.4
    8 Stable tag: 1.1.4
     8Stable tag: 1.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838* __Files:__ such as uploads or every files, including plugins and themes and updates in WordPress theme or plugin editors.
    3939* __Attachments:__ Uploads and updates for every attachment.
    40 * __Posts, Pages and Custom Posts:__ such as title, content (with quick link to rollback revisions), status, taxonomies and many more.
    41 * __Meta fields:__ such as every meta data associated to every post type and users.
     40* __Posts, Pages and Custom Posts:__ such as title, content (with quick link to rollback revisions), status, taxonomies and many more.
    4241* __Settings:__ such as the Blog Title, Date format and every setting in WordPress.
    4342* __Categories, Tags and Custom Taxonomies:__ such as creating, removing, updating and adding values to posts, pages and custom posts.
     
    7675== Changelog ==
    7776
     77= 1.1.5 =
     78* Enhanced log rotation process for better performance.
     79* Fixed issue that was overriding stored dates.
     80* Removed IP info through API; now accessible via link.
     81* Decluttered log records for improved readability.
     82
    7883= 1.1.4 =
    7984* Addressed a security issue in the login failure process, preventing a potential exploit that could harm the website. This fix significantly enhances the overall safety and reliability of the plugin.
     
    96101== Upgrade Notice ==
    97102
     103= 1.1.5 =
     104* Enhanced log rotation process for better performance.
     105* Fixed issue that was overriding stored dates.
     106* Removed IP info through API; now accessible via link.
     107* Decluttered log records for improved readability.
     108
     109= 1.1.4 =
     110* Addressed a security issue in the login failure process, preventing a potential exploit that could harm the website. This fix significantly enhances the overall safety and reliability of the plugin.
     111* Fixed some minor bugs that generated warnings in the logs.
     112
    98113= 1.1.3 =
    99114* Performance improved while deleting old events
  • logdash-activity-log/trunk/assets/build/index.asset.php

    r2914549 r3116686  
    1 <?php return array('dependencies' => array('wp-element'), 'version' => '722510710f04bf5fdca3');
     1<?php return array('dependencies' => array(), 'version' => 'ffa372b12ac9130d925d');
  • logdash-activity-log/trunk/assets/build/index.css

    r2914549 r3116686  
    1 .tally-does-no-exist-yet{color:red}th#event_meta{width:30%}.event_meta.column-event_meta .actions{display:flex;gap:5px;margin:5px 0}.event_meta.column-event_meta .actions .action:nth-child(2n)::before{content:"|";color:#a7aaad;display:inline-block;margin-right:5px}.column-user_ip .ip-info-wrapper .label{display:flex;gap:4px;align-items:center;cursor:pointer}.column-user_ip .ip-info-wrapper .more{width:14px;height:14px}.column-user_ip .ip-info-wrapper .details{z-index:900;position:absolute;background-color:#fff;width:300px;padding:0;color:#333;cursor:text;border-radius:6px;box-shadow:0 0 12px rgba(0,0,0,.3);overflow:hidden}.column-user_ip .ip-info-wrapper .details h2{margin:0;padding:10px 20px;background:#1d2327;color:#ececed;font-size:16px}.column-user_ip .ip-info-wrapper .details ul{margin:10px 20px 20px 20px}.column-user_ip .ip-info-wrapper .details li{margin-bottom:4px}#toplevel_page_logdash_activity_log .wp-menu-image img{padding-top:7px}.value-more-link{margin-left:5px;border:1px solid #dedede;display:inline-block;padding:0 2px}.event_meta_container{display:flex;flex-direction:column;gap:8px}.event_meta_container .has_more .more{position:fixed;background:#fff;width:80%;max-width:900px;max-height:80%;padding:20px;left:50%;top:50%;transform:translate(-50%, -50%);z-index:9999;box-shadow:0 0 10px rgba(0,0,0,.5);overflow:scroll;border-radius:6px}.event_title{font-size:1em;font-weight:400;line-height:167%;margin:0}.event_title .before{color:red}.event_title .after{color:green}.event_title .before.has_more::after,.event_title .after.has_more::after{content:"..."}.event_title .before.has_more .more,.event_title .after.has_more .more{display:none}.event_details{max-height:0;overflow:hidden}.event_details.active{animation:showDetails 1s ease-in-out;max-height:600px}.event_details .event_lines{background:#fff;border:1px solid #ebebeb;border-radius:4px;padding:10px 12px}.event_details .event_line{margin-bottom:.2em;line-height:167%}.event_details .event_line_key{font-weight:700;white-space:nowrap;margin-right:4px}.event_details .event_line_key::after{content:":"}.event_details .before{color:red}.event_details .after{color:green}.event_details .before.has_more::after,.event_details .after.has_more::after{content:"..."}.event_details .before.has_more .more,.event_details .after.has_more .more{display:none}.event_actions{margin:0;display:flex;gap:4px}.event_actions .details{display:flex;gap:6px;align-items:center;cursor:pointer;min-width:54px}.event_actions .details i{font-style:normal;color:#2271b1}.event_actions .details .icon{transition:transform .3s}.event_actions .details .more{display:block}.event_actions .details .less{display:none}.event_actions .details.active .icon{transform:rotate(180deg)}.event_actions .details.active .more{display:none}.event_actions .details.active .less{display:block}.event_actions .action::before{content:"|";color:#a7aaad;display:inline-block;margin-right:5px}@keyframes showDetails{from{max-height:0}to{max-height:600px}}
     1.tally-does-no-exist-yet{color:red}th#event_meta{width:30%}.event_meta.column-event_meta .actions{display:flex;gap:5px;margin:5px 0}.event_meta.column-event_meta .actions .action:nth-child(2n)::before{content:"|";color:#a7aaad;display:inline-block;margin-right:5px}.column-user_ip .ip-info-wrapper .label{display:flex;gap:4px;align-items:center;cursor:pointer}.column-user_ip .ip-info-wrapper .more{width:14px;height:14px}.column-user_ip .ip-info-wrapper .details{z-index:900;position:absolute;background-color:#fff;width:300px;padding:0;color:#333;cursor:text;border-radius:6px;box-shadow:0 0 12px rgba(0,0,0,.3);overflow:hidden}.column-user_ip .ip-info-wrapper .details h2{margin:0;padding:10px 20px;background:#1d2327;color:#ececed;font-size:16px}.column-user_ip .ip-info-wrapper .details ul{margin:10px 20px 20px 20px}.column-user_ip .ip-info-wrapper .details li{margin-bottom:4px}#toplevel_page_logdash_activity_log .wp-menu-image img{padding-top:7px}.value-more-link{margin-left:5px;border:1px solid #dedede;display:inline-block;padding:0 2px}.event_meta_container{display:flex;flex-direction:column;gap:8px}.event_meta_container .has_more .more{position:fixed;background:#fff;width:80%;max-width:900px;max-height:80%;padding:20px;left:50%;top:50%;transform:translate(-50%, -50%);z-index:9999;box-shadow:0 0 10px rgba(0,0,0,.5);overflow:scroll;border-radius:6px}.event_title{font-size:1em;font-weight:400;line-height:167%;margin:0}.event_title .before{color:red}.event_title .after{color:green}.event_title .before.has_more::after,.event_title .after.has_more::after{content:"..."}.event_title .before.has_more .more,.event_title .after.has_more .more{display:none}.event_details{max-height:0;overflow:hidden}.event_details.active{animation:showDetails 1s ease-in-out;max-height:600px}.event_details .event_lines{background:#fff;border:1px solid #ebebeb;border-radius:4px;padding:10px 12px}.event_details .event_line{margin-bottom:.2em;line-height:167%}.event_details .event_line_key{font-weight:700;white-space:nowrap;margin-right:4px}.event_details .event_line_key::after{content:":"}.event_details .before{color:red}.event_details .after{color:green}.event_details .before.has_more::after,.event_details .after.has_more::after{content:"..."}.event_details .before.has_more .more,.event_details .after.has_more .more{display:none}.event_actions{margin:0;display:flex;gap:4px}.event_actions .details{display:flex;gap:6px;align-items:center;cursor:pointer;min-width:54px}.event_actions .details i{font-style:normal;color:#2271b1}.event_actions .details .icon{transition:transform .3s}.event_actions .details .more{display:block}.event_actions .details .less{display:none}.event_actions .details.active .icon{transform:rotate(180deg)}.event_actions .details.active .more{display:none}.event_actions .details.active .less{display:block}.event_actions .action::before{content:"|";color:#a7aaad;display:inline-block;margin-right:5px}@keyframes showDetails{from{max-height:0}to{max-height:600px}}select.ld-select+.select2-container .select2-selection--single{height:30px}
    22
    33/*# sourceMappingURL=index.css.map*/
  • logdash-activity-log/trunk/assets/build/index.css.map

    r2914549 r3116686  
    1 {"version":3,"file":"index.css","mappings":"AAAA,yBACE,UAGF,cACE,UAKA,uCACE,aACA,QACA,aAIE,qEACE,YACA,cACA,qBACA,iBAQN,wCACE,aACA,QACA,mBACA,eAOF,uCACE,WACA,YAGF,0CACE,YACA,kBACA,sBACA,YACA,UACA,WACA,YACA,kBACA,mCACA,gBAEA,6CACE,SACA,kBACA,mBACA,cACA,eAGF,6CACE,2BAGF,6CACE,kBAON,uDACE,gBAGF,iBACE,gBACA,yBACA,qBACA,cAGF,sBACE,aACA,sBACA,QAEA,sCACE,eACA,gBACA,UACA,gBACA,eACA,aACA,SACA,QACA,gCACA,aACA,mCACA,gBACA,kBAKJ,aACE,cACA,gBACA,iBACA,SAEA,qBACE,UAGF,oBACE,YAKA,yEACE,cAEF,uEACE,aAMN,eACE,aACA,gBAEA,sBACE,qCACA,iBAGF,4BACE,gBACA,yBACA,kBACA,kBAGF,2BACE,mBAGA,iBAGF,+BACE,gBACA,mBACA,iBAEA,sCACE,YAQJ,uBACE,UAGF,sBACE,YAKA,6EACE,cAEF,2EACE,aAMN,eACE,SACA,aACA,QAEA,wBACE,aACA,QACA,mBACA,eACA,eAEA,0BACE,kBACA,cAGF,8BACE,yBAGF,8BACE,cAGF,8BACE,aAKF,qCACE,yBAGF,qCACE,aAGF,qCACE,cAKJ,+BACE,YACA,cACA,qBACA,iBAKJ,uBACE,kBACA,qB","sources":["webpack://logdash/./assets/src/index.scss"],"sourcesContent":[".tally-does-no-exist-yet {\n  color: red;\n}\n\nth#event_meta {\n  width: 30%\n}\n\n.event_meta.column-event_meta {\n\n  .actions {\n    display: flex;\n    gap: 5px;\n    margin: 5px 0;\n\n    .action:nth-child(2n) {\n\n      &::before {\n        content: \"|\";\n        color: #a7aaad;\n        display: inline-block;\n        margin-right: 5px;\n      }\n    }\n  }\n}\n\n.column-user_ip .ip-info-wrapper {\n\n  .label {\n    display: flex;\n    gap: 4px;\n    align-items: center;\n    cursor: pointer;\n  }\n\n  .ip {\n\n  }\n\n  .more {\n    width: 14px;\n    height: 14px;\n  }\n\n  .details {\n    z-index: 900;\n    position: absolute;\n    background-color: white;\n    width: 300px;\n    padding: 0;\n    color: #333;\n    cursor: text;\n    border-radius: 6px;\n    box-shadow: 0 0 12px rgb(0 0 0 / 30%);\n    overflow: hidden;\n\n    h2 {\n      margin: 0;\n      padding: 10px 20px;\n      background: #1d2327;\n      color: #ececed;\n      font-size: 16px;\n    }\n\n    ul {\n      margin: 10px 20px 20px 20px;\n    }\n\n    li {\n      margin-bottom: 4px;\n    }\n  }\n\n}\n\n\n#toplevel_page_logdash_activity_log .wp-menu-image img {\n  padding-top: 7px;\n}\n\n.value-more-link {\n  margin-left: 5px;\n  border: 1px solid #dedede;\n  display: inline-block;\n  padding: 0 2px;\n}\n\n.event_meta_container {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n\n  .has_more .more {\n    position: fixed;\n    background: #fff;\n    width: 80%;\n    max-width: 900px;\n    max-height: 80%;\n    padding: 20px;\n    left: 50%;\n    top: 50%;\n    transform: translate(-50%,-50%);\n    z-index: 9999;\n    box-shadow: 0 0 10px rgba(0,0,0,.5);\n    overflow: scroll;\n    border-radius: 6px;\n  }\n}\n\n\n.event_title {\n  font-size: 1em;\n  font-weight: 400;\n  line-height: 167%;\n  margin: 0;\n\n  .before {\n    color: red;\n  }\n\n  .after {\n    color: green;\n  }\n\n  .before.has_more,\n  .after.has_more {\n    &::after {\n      content: \"...\";\n    }\n    .more {\n      display: none;\n    }\n  }\n\n}\n\n.event_details {\n  max-height: 0;\n  overflow: hidden;\n\n  &.active  {\n    animation: showDetails 1s ease-in-out;\n    max-height: 600px;\n  }\n\n  .event_lines {\n    background: #fff;\n    border: 1px solid #ebebeb;\n    border-radius: 4px;\n    padding: 10px 12px;\n  }\n\n  .event_line {\n    margin-bottom: 0.2em;\n    //display: flex;\n    //gap: 4px;\n    line-height: 167%;\n  }\n\n  .event_line_key {\n    font-weight: 700;\n    white-space: nowrap;\n    margin-right: 4px;\n\n    &::after {\n      content: \":\";\n    }\n  }\n\n  .event_line_value {\n\n  }\n\n  .before {\n    color: red;\n  }\n\n  .after {\n    color: green;\n  }\n\n  .before.has_more,\n  .after.has_more {\n    &::after {\n      content: \"...\";\n    }\n    .more {\n      display: none;\n    }\n  }\n\n}\n\n.event_actions {\n  margin: 0;\n  display: flex;\n  gap: 4px;\n\n  .details {\n    display: flex;\n    gap: 6px;\n    align-items: center;\n    cursor: pointer;\n    min-width: 54px;\n\n    i {\n      font-style: normal;\n      color: #2271b1;\n    }\n\n    .icon {\n      transition: transform .3s;\n    }\n\n    .more {\n      display: block;\n    }\n\n    .less {\n      display: none;\n    }\n  }\n\n  .details.active {\n    .icon {\n      transform: rotate(180deg);\n    }\n\n    .more {\n      display: none;\n    }\n\n    .less {\n      display: block;\n    }\n\n  }\n\n  .action::before {\n    content: \"|\";\n    color: #a7aaad;\n    display: inline-block;\n    margin-right: 5px;\n  }\n\n}\n\n@keyframes showDetails {\n  from { max-height: 0 }\n  to { max-height: 600px }\n}"],"names":[],"sourceRoot":""}
     1{"version":3,"file":"index.css","mappings":"AAAA,yBACE,UAGF,cACE,UAKA,uCACE,aACA,QACA,aAIE,qEACE,YACA,cACA,qBACA,iBAQN,wCACE,aACA,QACA,mBACA,eAOF,uCACE,WACA,YAGF,0CACE,YACA,kBACA,sBACA,YACA,UACA,WACA,YACA,kBACA,mCACA,gBAEA,6CACE,SACA,kBACA,mBACA,cACA,eAGF,6CACE,2BAGF,6CACE,kBAON,uDACE,gBAGF,iBACE,gBACA,yBACA,qBACA,cAGF,sBACE,aACA,sBACA,QAEA,sCACE,eACA,gBACA,UACA,gBACA,eACA,aACA,SACA,QACA,gCACA,aACA,mCACA,gBACA,kBAKJ,aACE,cACA,gBACA,iBACA,SAEA,qBACE,UAGF,oBACE,YAKA,yEACE,cAEF,uEACE,aAMN,eACE,aACA,gBAEA,sBACE,qCACA,iBAGF,4BACE,gBACA,yBACA,kBACA,kBAGF,2BACE,mBAGA,iBAGF,+BACE,gBACA,mBACA,iBAEA,sCACE,YAQJ,uBACE,UAGF,sBACE,YAKA,6EACE,cAEF,2EACE,aAMN,eACE,SACA,aACA,QAEA,wBACE,aACA,QACA,mBACA,eACA,eAEA,0BACE,kBACA,cAGF,8BACE,yBAGF,8BACE,cAGF,8BACE,aAKF,qCACE,yBAGF,qCACE,aAGF,qCACE,cAKJ,+BACE,YACA,cACA,qBACA,iBAKJ,uBACE,kBACA,qBAIF,+DACE,Y","sources":["webpack://logdash/./assets/src/index.scss"],"sourcesContent":[".tally-does-no-exist-yet {\n  color: red;\n}\n\nth#event_meta {\n  width: 30%\n}\n\n.event_meta.column-event_meta {\n\n  .actions {\n    display: flex;\n    gap: 5px;\n    margin: 5px 0;\n\n    .action:nth-child(2n) {\n\n      &::before {\n        content: \"|\";\n        color: #a7aaad;\n        display: inline-block;\n        margin-right: 5px;\n      }\n    }\n  }\n}\n\n.column-user_ip .ip-info-wrapper {\n\n  .label {\n    display: flex;\n    gap: 4px;\n    align-items: center;\n    cursor: pointer;\n  }\n\n  .ip {\n\n  }\n\n  .more {\n    width: 14px;\n    height: 14px;\n  }\n\n  .details {\n    z-index: 900;\n    position: absolute;\n    background-color: white;\n    width: 300px;\n    padding: 0;\n    color: #333;\n    cursor: text;\n    border-radius: 6px;\n    box-shadow: 0 0 12px rgb(0 0 0 / 30%);\n    overflow: hidden;\n\n    h2 {\n      margin: 0;\n      padding: 10px 20px;\n      background: #1d2327;\n      color: #ececed;\n      font-size: 16px;\n    }\n\n    ul {\n      margin: 10px 20px 20px 20px;\n    }\n\n    li {\n      margin-bottom: 4px;\n    }\n  }\n\n}\n\n\n#toplevel_page_logdash_activity_log .wp-menu-image img {\n  padding-top: 7px;\n}\n\n.value-more-link {\n  margin-left: 5px;\n  border: 1px solid #dedede;\n  display: inline-block;\n  padding: 0 2px;\n}\n\n.event_meta_container {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n\n  .has_more .more {\n    position: fixed;\n    background: #fff;\n    width: 80%;\n    max-width: 900px;\n    max-height: 80%;\n    padding: 20px;\n    left: 50%;\n    top: 50%;\n    transform: translate(-50%,-50%);\n    z-index: 9999;\n    box-shadow: 0 0 10px rgba(0,0,0,.5);\n    overflow: scroll;\n    border-radius: 6px;\n  }\n}\n\n\n.event_title {\n  font-size: 1em;\n  font-weight: 400;\n  line-height: 167%;\n  margin: 0;\n\n  .before {\n    color: red;\n  }\n\n  .after {\n    color: green;\n  }\n\n  .before.has_more,\n  .after.has_more {\n    &::after {\n      content: \"...\";\n    }\n    .more {\n      display: none;\n    }\n  }\n\n}\n\n.event_details {\n  max-height: 0;\n  overflow: hidden;\n\n  &.active  {\n    animation: showDetails 1s ease-in-out;\n    max-height: 600px;\n  }\n\n  .event_lines {\n    background: #fff;\n    border: 1px solid #ebebeb;\n    border-radius: 4px;\n    padding: 10px 12px;\n  }\n\n  .event_line {\n    margin-bottom: 0.2em;\n    //display: flex;\n    //gap: 4px;\n    line-height: 167%;\n  }\n\n  .event_line_key {\n    font-weight: 700;\n    white-space: nowrap;\n    margin-right: 4px;\n\n    &::after {\n      content: \":\";\n    }\n  }\n\n  .event_line_value {\n\n  }\n\n  .before {\n    color: red;\n  }\n\n  .after {\n    color: green;\n  }\n\n  .before.has_more,\n  .after.has_more {\n    &::after {\n      content: \"...\";\n    }\n    .more {\n      display: none;\n    }\n  }\n\n}\n\n.event_actions {\n  margin: 0;\n  display: flex;\n  gap: 4px;\n\n  .details {\n    display: flex;\n    gap: 6px;\n    align-items: center;\n    cursor: pointer;\n    min-width: 54px;\n\n    i {\n      font-style: normal;\n      color: #2271b1;\n    }\n\n    .icon {\n      transition: transform .3s;\n    }\n\n    .more {\n      display: block;\n    }\n\n    .less {\n      display: none;\n    }\n  }\n\n  .details.active {\n    .icon {\n      transform: rotate(180deg);\n    }\n\n    .more {\n      display: none;\n    }\n\n    .less {\n      display: block;\n    }\n\n  }\n\n  .action::before {\n    content: \"|\";\n    color: #a7aaad;\n    display: inline-block;\n    margin-right: 5px;\n  }\n\n}\n\n@keyframes showDetails {\n  from { max-height: 0 }\n  to { max-height: 600px }\n}\n\n\nselect.ld-select + .select2-container .select2-selection--single {\n  height: 30px;\n}"],"names":[],"sourceRoot":""}
  • logdash-activity-log/trunk/assets/build/index.js

    r2914549 r3116686  
    1 !function(){"use strict";var e={624:function(e,t,n){var s=n(307);t.Z=function(e){const[t,n]=(0,s.useState)(!1),[a,c]=(0,s.useState)(null),[r,o]=(0,s.useState)(null);return(0,s.createElement)("div",{onMouseLeave:()=>n(!1)},(0,s.createElement)("div",{onClick:function(){if(sessionStorage.getItem(e.address)){const t=sessionStorage.getItem(e.address);o(JSON.parse(t)),n(!0)}else fetch(wpApiSettings.root+"logdash/v1/ip/"+e.address,{method:"get",mode:"cors",headers:{"Access-Control-Allow-Origin":"*","X-WP-Nonce":wpApiSettings.nonce}}).then((e=>e.json())).then((e=>"200"!==e.code?Promise.reject(e.data.message):e)).then((t=>(o(t.data),sessionStorage.setItem(e.address,JSON.stringify(t.data)),t.data))).catch((e=>{c(e)})).finally((()=>n(!0)))},className:"label"},(0,s.createElement)("span",{className:"ip"},e.address),(0,s.createElement)("span",{className:"more"},(0,s.createElement)("svg",{viewBox:"0 0 512 512",width:14},(0,s.createElement)("path",{d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"})))),t&&(0,s.createElement)("div",{className:"details"},(0,s.createElement)("h2",null,"Details for IP: ",e.address),a?(0,s.createElement)("ul",null,(0,s.createElement)("li",null,a)):(0,s.createElement)("ul",null,(0,s.createElement)("li",null,(0,s.createElement)("b",null,"City:")," ",r.city),(0,s.createElement)("li",null,(0,s.createElement)("b",null,"Country:")," ",r.country_name,", ",r.country_code),(0,s.createElement)("li",null,(0,s.createElement)("b",null,"Latitude:")," ",r.lat),(0,s.createElement)("li",null,(0,s.createElement)("b",null,"Longitude:")," ",r.lon),(0,s.createElement)("li",null,(0,s.createElement)("b",null,"Provider:")," ",r.isp))))}},307:function(e){e.exports=window.wp.element}},t={};function n(s){var a=t[s];if(void 0!==a)return a.exports;var c=t[s]={exports:{}};return e[s](c,c.exports,n),c.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=n(307),t=n(624);const{render:s}=wp.element;document.querySelectorAll("td.user_ip").forEach((function(n){const a=n.querySelector(".ip-info[data-ip]"),c=n.querySelector(".ip-info-wrapper");if(null!==a){const n=a.getAttribute("data-ip");null!==n&&s((0,e.createElement)(t.Z,{address:n}),c)}})),document.addEventListener("DOMContentLoaded",(()=>{!function(){const e=document.querySelectorAll(".column-event_meta");e&&e.forEach((e=>{const t=e.querySelector(".event_actions"),n=e.querySelector(".event_details");if(t){const e=t.querySelector(".details");e&&e.addEventListener("click",(()=>{e.classList.contains("active")?(e.classList.remove("active"),n.classList.remove("active")):(e.classList.add("active"),n.classList.add("active"))}))}}))}(),function(){const t=document.getElementById("logdash_reset_log");function n(e,t){const n=document.getElementById("logdash_message");n.style.display="block",n.classList.remove("notice-error","notice-success","notice-warning","notice-info"),n.classList.add(t),n.querySelector("p").innerHTML=e}t&&(document.getElementById("logdash_message"),(0,e.createElement)("p"),t.addEventListener("click",(e=>{if(e.preventDefault(),!0===confirm(t.dataset.confirmMessage)){const e=t.getAttribute("href");fetch(e,{method:"post",body:"",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{if("success"!==e.status)throw new Error(e.message);var t;t=e.message,console.log(t),n(t,"notice-success")})).catch((e=>{n(e,"notice-error")}))}})))}()}))}()}();
     1!function(){"use strict";const{render:e}=wp.element;document.addEventListener("DOMContentLoaded",(()=>{!function(){const e=document.querySelectorAll(".column-event_meta");e&&e.forEach((e=>{const t=e.querySelector(".event_actions"),s=e.querySelector(".event_details");if(t){const e=t.querySelector(".details");e&&e.addEventListener("click",(()=>{e.classList.contains("active")?(e.classList.remove("active"),s.classList.remove("active")):(e.classList.add("active"),s.classList.add("active"))}))}}))}(),function(){const e=document.getElementById("logdash_reset_log");function t(e,t){const s=document.getElementById("logdash_message");s.style.display="block",s.classList.remove("notice-error","notice-success","notice-warning","notice-info"),s.classList.add(t),s.querySelector("p").innerHTML=e}e&&(document.getElementById("logdash_message"),document.createElement("p"),e.addEventListener("click",(s=>{if(s.preventDefault(),!0===confirm(e.dataset.confirmMessage)){const s=e.getAttribute("href");fetch(s,{method:"post",body:"",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{if("success"!==e.status)throw new Error(e.message);var s;s=e.message,console.log(s),t(s,"notice-success")})).catch((e=>{t(e,"notice-error")}))}})))}()})),jQuery(document).ready((function(e){e("select.ld-select").select2()}))}();
    22//# sourceMappingURL=index.js.map
  • logdash-activity-log/trunk/assets/build/index.js.map

    r2914549 r3116686  
    1 {"version":3,"file":"index.js","mappings":"iEAqFA,IAnFA,SAAmBA,GACf,MAAOC,EAASC,IAAcC,EAAAA,EAAAA,WAAS,IAChCC,EAAOC,IAAYF,EAAAA,EAAAA,UAAS,OAC5BG,EAASC,IAAcJ,EAAAA,EAAAA,UAAS,MA8DvC,OACIK,EAAAA,EAAAA,eAAA,OACIC,aAAcA,IAAMP,GAAW,KAC/BM,EAAAA,EAAAA,eAAA,OAAKE,QA/Db,WAGI,GAAIC,eAAeC,QAAQZ,EAAMa,SAAU,CAEvC,MAAMC,EAAgBH,eAAeC,QAAQZ,EAAMa,SACnDN,EAAWQ,KAAKC,MAAMF,IACtBZ,GAAW,EAEf,MAEIe,MAAMC,cAAcC,KAAO,iBAAmBnB,EAAMa,QAAS,CACzDO,OAAQ,MACRC,KAAM,OACNC,QAAS,CACL,8BAA+B,IAC/B,aAAcJ,cAAcK,SAG/BC,MAAKC,GAAYA,EAASC,SAC1BF,MAAKC,GACoB,QAAlBA,EAASE,KACFC,QAAQC,OAAOJ,EAASK,KAAKC,SAEjCN,IAEVD,MAAKC,IACFlB,EAAWkB,EAASK,MACpBnB,eAAeqB,QAAQhC,EAAMa,QAASE,KAAKkB,UAAUR,EAASK,OACvDL,EAASK,QAEnBI,OAAO9B,IACJC,EAASD,EAAM,IAElB+B,SAAQ,IAAMjC,GAAW,IAItC,EAyBmCkC,UAAW,UAClC5B,EAAAA,EAAAA,eAAA,QAAM4B,UAAW,MAAOpC,EAAMa,UAC9BL,EAAAA,EAAAA,eAAA,QAAM4B,UAAW,SAAQ5B,EAAAA,EAAAA,eAAA,OAAK6B,QAAQ,cAAcC,MAAO,KAAI9B,EAAAA,EAAAA,eAAA,QAC3D+B,EAAE,mTAETtC,IACGO,EAAAA,EAAAA,eAAA,OAAK4B,UAAW,YACZ5B,EAAAA,EAAAA,eAAA,UAAI,mBAAiBR,EAAMa,SA7BnCT,GAEII,EAAAA,EAAAA,eAAA,WACIA,EAAAA,EAAAA,eAAA,UAAKJ,KAKTI,EAAAA,EAAAA,eAAA,WACIA,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,SAAS,IAAEF,EAAQkC,OAC1BhC,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,YAAY,IAAEF,EAAQmC,aAAa,KAAInC,EAAQoC,eACtDlC,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,aAAa,IAAEF,EAAQqC,MAC9BnC,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,cAAc,IAAEF,EAAQsC,MAC/BpC,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,aAAa,IAAEF,EAAQuC,OAsBlD,C,kBCnFAC,EAAOC,QAAUC,OAAW,GAAW,O,GCCnCC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,EAAyBE,GAAY,CAGjDJ,QAAS,CAAC,GAOX,OAHAO,EAAoBH,GAAUL,EAAQA,EAAOC,QAASG,GAG/CJ,EAAOC,OACf,CCrBAG,EAAoBK,EAAI,SAAST,GAChC,IAAIU,EAASV,GAAUA,EAAOW,WAC7B,WAAa,OAAOX,EAAgB,OAAG,EACvC,WAAa,OAAOA,CAAQ,EAE7B,OADAI,EAAoBX,EAAEiB,EAAQ,CAAEE,EAAGF,IAC5BA,CACR,ECNAN,EAAoBX,EAAI,SAASQ,EAASY,GACzC,IAAI,IAAIC,KAAOD,EACXT,EAAoBW,EAAEF,EAAYC,KAASV,EAAoBW,EAAEd,EAASa,IAC5EE,OAAOC,eAAehB,EAASa,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAV,EAAoBW,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,E,iCCAtG,MAAM,OAACI,GAAUC,GAAGC,QAKpBC,SAASC,iBAAiB,cAAcC,SAAQ,SAAUC,GACtD,MAAMC,EAAWD,EAAKE,cAAc,qBAC9BC,EAAcH,EAAKE,cAAc,oBAEvC,GAAiB,OAAbD,EAAmB,CACnB,MAAMG,EAAKH,EAASI,aAAa,WAEtB,OAAPD,GACAV,GAAO/D,EAAAA,EAAAA,eAAC2E,EAAAA,EAAS,CAACtE,QAASoE,IAAOD,EAE1C,CACJ,IAEAN,SAASU,iBAAiB,oBAAoB,MAK9C,WAGI,MAAMC,EAAaX,SAASC,iBAAiB,sBAEzCU,GAEAA,EAAWT,SAASU,IAEhB,MAAMC,EAAeD,EAAKP,cAAc,kBAClCS,EAAeF,EAAKP,cAAc,kBAExC,GAAIQ,EAAc,CAEd,MAAME,EAAaF,EAAaR,cAAc,YAE1CU,GAEAA,EAAWL,iBAAiB,SAAS,KAE5BK,EAAWC,UAAUC,SAAS,WAI/BF,EAAWC,UAAUE,OAAO,UAC5BJ,EAAaE,UAAUE,OAAO,YAJ9BH,EAAWC,UAAUG,IAAI,UACzBL,EAAaE,UAAUG,IAAI,UAI/B,GAKZ,IAMZ,CAzCIC,GA2CJ,WAEI,MAAMC,EAAmBrB,SAASsB,eAAe,qBAqCjD,SAASC,EAAelE,EAASmE,GAC7B,MAAMC,EAAkBzB,SAASsB,eAAe,mBAEhDG,EAAgBC,MAAMC,QAAU,QAChCF,EAAgBT,UAAUE,OAAO,eAAgB,iBAAkB,iBAAkB,eACrFO,EAAgBT,UAAUG,IAAIK,GAC9BC,EAAgBpB,cAAc,KAAKuB,UAAYvE,CACnD,CA1CIgE,IAEwBrB,SAASsB,eAAe,oBAChCxF,EAAAA,EAAAA,eAAc,KAE9BuF,EAAiBX,iBAAiB,SAAUmB,IAIxC,GAFAA,EAAEC,kBAEuD,IAArDC,QAAQV,EAAiBW,QAAQC,gBAA0B,CAE3D,MAAMC,EAAMb,EAAiBb,aAAa,QAE1CjE,MAAM2F,EAAK,CACPxF,OAAQ,OACRyF,KAAM,GACNvF,QAAS,CACL,OAAU,mBACV,eAAgB,sBAErBE,MAAMC,GACEA,EAASC,SACjBF,MAAMsF,IACL,GAAmB,YAAfA,EAAIC,OACJ,MAAM,IAAIC,MAAMF,EAAI/E,SAoBxC,IAAwBA,IAlBW+E,EAAI/E,QAmBnCkF,QAAQC,IAAInF,GACZkE,EAAelE,EAAS,iBAnBZ,IACDG,OAAO9B,IAsBlB6F,EArByB7F,EAqBD,eArBO,GAE3B,KAsBZ,CAnGI+G,EAAU,G","sources":["webpack://logdash/./assets/src/IpDetails.jsx","webpack://logdash/external window [\"wp\",\"element\"]","webpack://logdash/webpack/bootstrap","webpack://logdash/webpack/runtime/compat get default export","webpack://logdash/webpack/runtime/define property getters","webpack://logdash/webpack/runtime/hasOwnProperty shorthand","webpack://logdash/./assets/src/index.js"],"sourcesContent":["import {useState} from '@wordpress/element';\n\nfunction IpDetails(props) {\n    const [isShown, setIsShown] = useState(false);\n    const [error, setError] = useState(null);\n    const [details, setDetails] = useState(null);\n\n    function loadAndShow() {\n\n\n        if (sessionStorage.getItem(props.address)) {\n\n            const storedDetails = sessionStorage.getItem(props.address);\n            setDetails(JSON.parse(storedDetails));\n            setIsShown(true);\n\n        } else {\n\n            fetch(wpApiSettings.root + 'logdash/v1/ip/' + props.address, {\n                method: 'get',\n                mode: 'cors',\n                headers: {\n                    'Access-Control-Allow-Origin': '*',\n                    'X-WP-Nonce': wpApiSettings.nonce\n                }\n            })\n                .then(response => response.json())\n                .then(response => {\n                    if (response.code !== '200') {\n                        return Promise.reject(response.data.message);\n                    }\n                    return response;\n                })\n                .then(response => {\n                    setDetails(response.data);\n                    sessionStorage.setItem(props.address, JSON.stringify(response.data));\n                    return response.data;\n                })\n                .catch((error) => {\n                    setError(error);\n                })\n                .finally(() => setIsShown(true));\n\n        }\n\n    }\n\n    function viewDetails() {\n        if (error) {\n            return (\n                <ul>\n                    <li>{error}</li>\n                </ul>\n            )\n        } else {\n            return (\n                <ul>\n                    <li><b>City:</b> {details.city}</li>\n                    <li><b>Country:</b> {details.country_name}, { details.country_code }</li>\n                    <li><b>Latitude:</b> {details.lat}</li>\n                    <li><b>Longitude:</b> {details.lon}</li>\n                    <li><b>Provider:</b> {details.isp}</li>\n                </ul>\n            )\n        }\n    }\n\n    return (\n        <div\n            onMouseLeave={() => setIsShown(false)}>\n            <div onClick={loadAndShow} className={'label'}>\n                <span className={'ip'}>{props.address}</span>\n                <span className={'more'}><svg viewBox=\"0 0 512 512\" width={14}><path\n                    d=\"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z\"/></svg></span>\n            </div>\n            {isShown && (\n                <div className={'details'}>\n                    <h2>Details for IP: {props.address}</h2>\n                    {viewDetails()}\n                </div>\n            )}\n        </div>\n    );\n}\n\nexport default IpDetails;","module.exports = window[\"wp\"][\"element\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","const {render} = wp.element; //we are using wp.element here!\nimport './index.scss'\n\nimport IpDetails from \"./IpDetails\";\n\ndocument.querySelectorAll('td.user_ip').forEach(function (item) {\n    const linkItem = item.querySelector('.ip-info[data-ip]');\n    const infoWrapper = item.querySelector('.ip-info-wrapper');\n\n    if (linkItem !== null) {\n        const ip = linkItem.getAttribute('data-ip');\n\n        if (ip !== null) {\n            render(<IpDetails address={ip}/>, infoWrapper);\n        }\n    }\n});\n\ndocument.addEventListener('DOMContentLoaded', () => {\n    expandEventDetails();\n    resetLog();\n});\n\nfunction expandEventDetails() {\n\n\n    const eventCells = document.querySelectorAll('.column-event_meta');\n\n    if (eventCells) {\n\n        eventCells.forEach((cell) => {\n\n            const eventActions = cell.querySelector('.event_actions');\n            const eventDetails = cell.querySelector('.event_details');\n\n            if (eventActions) {\n\n                const detailsBtn = eventActions.querySelector('.details');\n\n                if (detailsBtn) {\n\n                    detailsBtn.addEventListener('click', () => {\n\n                        if (!detailsBtn.classList.contains('active')) {\n                            detailsBtn.classList.add('active');\n                            eventDetails.classList.add('active');\n                        } else {\n                            detailsBtn.classList.remove('active');\n                            eventDetails.classList.remove('active');\n                        }\n\n                    })\n                }\n\n            }\n\n        })\n\n    }\n\n}\n\nfunction resetLog() {\n\n    const reset_log_anchor = document.getElementById('logdash_reset_log');\n\n    if (reset_log_anchor) {\n\n        const message_element = document.getElementById('logdash_message');\n        const message = createElement('p');\n\n        reset_log_anchor.addEventListener('click', (e) => {\n\n            e.preventDefault();\n\n            if (confirm(reset_log_anchor.dataset.confirmMessage) === true) {\n\n                const url = reset_log_anchor.getAttribute('href');\n\n                fetch(url, {\n                    method: 'post',\n                    body: '',\n                    headers: {\n                        'Accept': 'application/json',\n                        'Content-Type': 'application/json'\n                    }\n                }).then((response) => {\n                    return response.json()\n                }).then((res) => {\n                    if (res.status !== 'success') {\n                        throw new Error(res.message);\n                    } else {\n                        displaySuccess(res.message);\n                    }\n                }).catch((error) => {\n                    displayError(error);\n                })\n            }\n        })\n    }\n\n    function displayMessage(message, type) {\n        const message_element = document.getElementById('logdash_message');\n\n        message_element.style.display = 'block';\n        message_element.classList.remove('notice-error', 'notice-success', 'notice-warning', 'notice-info');\n        message_element.classList.add(type);\n        message_element.querySelector('p').innerHTML = message;\n    }\n\n    function displaySuccess(message) {\n        console.log(message);\n        displayMessage(message, 'notice-success');\n    }\n\n    function displayError(message) {\n        displayMessage(message, 'notice-error');\n    }\n\n}"],"names":["props","isShown","setIsShown","useState","error","setError","details","setDetails","createElement","onMouseLeave","onClick","sessionStorage","getItem","address","storedDetails","JSON","parse","fetch","wpApiSettings","root","method","mode","headers","nonce","then","response","json","code","Promise","reject","data","message","setItem","stringify","catch","finally","className","viewBox","width","d","city","country_name","country_code","lat","lon","isp","module","exports","window","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","render","wp","element","document","querySelectorAll","forEach","item","linkItem","querySelector","infoWrapper","ip","getAttribute","IpDetails","addEventListener","eventCells","cell","eventActions","eventDetails","detailsBtn","classList","contains","remove","add","expandEventDetails","reset_log_anchor","getElementById","displayMessage","type","message_element","style","display","innerHTML","e","preventDefault","confirm","dataset","confirmMessage","url","body","res","status","Error","console","log","resetLog"],"sourceRoot":""}
     1{"version":3,"file":"index.js","mappings":"yBAAA,MAAM,OAACA,GAAUC,GAAGC,QAGpBC,SAASC,iBAAiB,oBAAoB,MAK9C,WAGI,MAAMC,EAAaF,SAASG,iBAAiB,sBAEzCD,GAEAA,EAAWE,SAASC,IAEhB,MAAMC,EAAeD,EAAKE,cAAc,kBAClCC,EAAeH,EAAKE,cAAc,kBAExC,GAAID,EAAc,CAEd,MAAMG,EAAaH,EAAaC,cAAc,YAE1CE,GAEAA,EAAWR,iBAAiB,SAAS,KAE5BQ,EAAWC,UAAUC,SAAS,WAI/BF,EAAWC,UAAUE,OAAO,UAC5BJ,EAAaE,UAAUE,OAAO,YAJ9BH,EAAWC,UAAUG,IAAI,UACzBL,EAAaE,UAAUG,IAAI,UAI/B,GAKZ,IAMZ,CAzCIC,GA2CJ,WAEI,MAAMC,EAAmBf,SAASgB,eAAe,qBAqCjD,SAASC,EAAeC,EAASC,GAC7B,MAAMC,EAAkBpB,SAASgB,eAAe,mBAEhDI,EAAgBC,MAAMC,QAAU,QAChCF,EAAgBV,UAAUE,OAAO,eAAgB,iBAAkB,iBAAkB,eACrFQ,EAAgBV,UAAUG,IAAIM,GAC9BC,EAAgBb,cAAc,KAAKgB,UAAYL,CACnD,CA1CIH,IAEwBf,SAASgB,eAAe,mBAChChB,SAASwB,cAAc,KAEvCT,EAAiBd,iBAAiB,SAAUwB,IAIxC,GAFAA,EAAEC,kBAEuD,IAArDC,QAAQZ,EAAiBa,QAAQC,gBAA0B,CAE3D,MAAMC,EAAMf,EAAiBgB,aAAa,QAE1CC,MAAMF,EAAK,CACPG,OAAQ,OACRC,KAAM,GACNC,QAAS,CACL,OAAU,mBACV,eAAgB,sBAErBC,MAAMC,GACEA,EAASC,SACjBF,MAAMG,IACL,GAAmB,YAAfA,EAAIC,OACJ,MAAM,IAAIC,MAAMF,EAAIrB,SAoBxC,IAAwBA,IAlBWqB,EAAIrB,QAmBnCwB,QAAQC,IAAIzB,GACZD,EAAeC,EAAS,iBAnBZ,IACD0B,OAAOC,IAsBlB5B,EArByB4B,EAqBD,eArBO,GAE3B,KAsBZ,CAnGIC,EAAU,IAsGdC,OAAO/C,UAAUgD,OAAM,SAASC,GAC5BA,EAAE,oBAAoBC,SAC1B,G","sources":["webpack://logdash/./assets/src/index.js"],"sourcesContent":["const {render} = wp.element; //we are using wp.element here!\nimport './index.scss'\n\ndocument.addEventListener('DOMContentLoaded', () => {\n    expandEventDetails();\n    resetLog();\n});\n\nfunction expandEventDetails() {\n\n\n    const eventCells = document.querySelectorAll('.column-event_meta');\n\n    if (eventCells) {\n\n        eventCells.forEach((cell) => {\n\n            const eventActions = cell.querySelector('.event_actions');\n            const eventDetails = cell.querySelector('.event_details');\n\n            if (eventActions) {\n\n                const detailsBtn = eventActions.querySelector('.details');\n\n                if (detailsBtn) {\n\n                    detailsBtn.addEventListener('click', () => {\n\n                        if (!detailsBtn.classList.contains('active')) {\n                            detailsBtn.classList.add('active');\n                            eventDetails.classList.add('active');\n                        } else {\n                            detailsBtn.classList.remove('active');\n                            eventDetails.classList.remove('active');\n                        }\n\n                    })\n                }\n\n            }\n\n        })\n\n    }\n\n}\n\nfunction resetLog() {\n\n    const reset_log_anchor = document.getElementById('logdash_reset_log');\n\n    if (reset_log_anchor) {\n\n        const message_element = document.getElementById('logdash_message');\n        const message = document.createElement('p');\n\n        reset_log_anchor.addEventListener('click', (e) => {\n\n            e.preventDefault();\n\n            if (confirm(reset_log_anchor.dataset.confirmMessage) === true) {\n\n                const url = reset_log_anchor.getAttribute('href');\n\n                fetch(url, {\n                    method: 'post',\n                    body: '',\n                    headers: {\n                        'Accept': 'application/json',\n                        'Content-Type': 'application/json'\n                    }\n                }).then((response) => {\n                    return response.json()\n                }).then((res) => {\n                    if (res.status !== 'success') {\n                        throw new Error(res.message);\n                    } else {\n                        displaySuccess(res.message);\n                    }\n                }).catch((error) => {\n                    displayError(error);\n                })\n            }\n        })\n    }\n\n    function displayMessage(message, type) {\n        const message_element = document.getElementById('logdash_message');\n\n        message_element.style.display = 'block';\n        message_element.classList.remove('notice-error', 'notice-success', 'notice-warning', 'notice-info');\n        message_element.classList.add(type);\n        message_element.querySelector('p').innerHTML = message;\n    }\n\n    function displaySuccess(message) {\n        console.log(message);\n        displayMessage(message, 'notice-success');\n    }\n\n    function displayError(message) {\n        displayMessage(message, 'notice-error');\n    }\n\n}\n\n\njQuery(document).ready(function($) {\n    $('select.ld-select').select2();\n});"],"names":["render","wp","element","document","addEventListener","eventCells","querySelectorAll","forEach","cell","eventActions","querySelector","eventDetails","detailsBtn","classList","contains","remove","add","expandEventDetails","reset_log_anchor","getElementById","displayMessage","message","type","message_element","style","display","innerHTML","createElement","e","preventDefault","confirm","dataset","confirmMessage","url","getAttribute","fetch","method","body","headers","then","response","json","res","status","Error","console","log","catch","error","resetLog","jQuery","ready","$","select2"],"sourceRoot":""}
  • logdash-activity-log/trunk/assets/src/index.js

    r2914549 r3116686  
    11const {render} = wp.element; //we are using wp.element here!
    22import './index.scss'
    3 
    4 import IpDetails from "./IpDetails";
    5 
    6 document.querySelectorAll('td.user_ip').forEach(function (item) {
    7     const linkItem = item.querySelector('.ip-info[data-ip]');
    8     const infoWrapper = item.querySelector('.ip-info-wrapper');
    9 
    10     if (linkItem !== null) {
    11         const ip = linkItem.getAttribute('data-ip');
    12 
    13         if (ip !== null) {
    14             render(<IpDetails address={ip}/>, infoWrapper);
    15         }
    16     }
    17 });
    183
    194document.addEventListener('DOMContentLoaded', () => {
     
    6853
    6954        const message_element = document.getElementById('logdash_message');
    70         const message = createElement('p');
     55        const message = document.createElement('p');
    7156
    7257        reset_log_anchor.addEventListener('click', (e) => {
     
    119104
    120105}
     106
     107
     108jQuery(document).ready(function($) {
     109    $('select.ld-select').select2();
     110});
  • logdash-activity-log/trunk/assets/src/index.scss

    r2914549 r3116686  
    251251  to { max-height: 600px }
    252252}
     253
     254
     255select.ld-select + .select2-container .select2-selection--single {
     256  height: 30px;
     257}
  • logdash-activity-log/trunk/composer.json

    r2914549 r3116686  
    1313            "email": "[email protected]"
    1414        }
    15     ]
     15    ],
     16    "config": {
     17        "platform": {
     18            "php": "7.4.0"
     19        }
     20    }
    1621}
  • logdash-activity-log/trunk/composer.lock

    r2914549 r3116686  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "28e64b2400dfc7458184668d0de1f8ea",
     7    "content-hash": "6c718d8309afefe695e6171e08f2b8b9",
    88    "packages": [],
    99    "packages-dev": [],
     
    1515    "platform": [],
    1616    "platform-dev": [],
     17    "platform-overrides": {
     18        "php": "7.4.0"
     19    },
    1720    "plugin-api-version": "2.3.0"
    1821}
  • logdash-activity-log/trunk/languages/logdash-activity-log-es_ES.po

    r2916051 r3116686  
    22msgstr ""
    33"Project-Id-Version: LogDash Activity Log\n"
    4 "POT-Creation-Date: 2023-05-22 11:27-0400\n"
    5 "PO-Revision-Date: 2023-05-22 11:28-0400\n"
     4"POT-Creation-Date: 2024-07-09 14:44-0400\n"
     5"PO-Revision-Date: 2024-07-09 14:46-0400\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    13 "X-Generator: Poedit 3.3\n"
     13"X-Generator: Poedit 3.4.4\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    2424"X-Poedit-SearchPathExcluded-2: node_modules\n"
    2525
    26 #: src/Actions/ResetLog.php:43
     26#: src/Actions/RemoveExpiredLog.php:72
     27msgid "seconds"
     28msgstr "segundos"
     29
     30#: src/Actions/ResetLog.php:46
    2731msgid "There is an issue with reset request."
    2832msgstr "Hay un problema con la solicitud de restablecimiento."
    2933
    30 #: src/Actions/ResetLog.php:51
     34#: src/Actions/ResetLog.php:54
    3135msgid "You are not authorized to perform this action."
    3236msgstr "No estás autorizado para realizar esta acción."
    3337
    34 #: src/Actions/ResetLog.php:62
     38#: src/Actions/ResetLog.php:77
    3539#, php-format
    3640msgid "Reset failed: (%s)"
    3741msgstr "Reinicio fallido: (%s)"
    3842
    39 #: src/Actions/ResetLog.php:70
     43#: src/Actions/ResetLog.php:85
    4044msgid "All events were deleted."
    4145msgstr "Se han eliminado todos los eventos."
    4246
    43 #: src/Admin/EventsPage.php:32
     47#: src/Admin/EventsAdminPage.php:31
    4448msgid "LogDash Activity Log Viewer"
    4549msgstr "Visor de registros de actividad LogDash"
    4650
    47 #: src/Admin/EventsPage.php:33
     51#: src/Admin/EventsAdminPage.php:32
    4852msgid "LogDash"
    4953msgstr "LogDash"
    5054
    51 #: src/Admin/EventsPage.php:45
     55#: src/Admin/EventsAdminPage.php:45
    5256msgid "Activity Log"
    5357msgstr "Eventos"
    5458
    55 #: src/Admin/EventsPage.php:50
     59#: src/Admin/EventsAdminPage.php:52
    5660msgid "Users Per Page"
    5761msgstr "Usuarios por página"
    5862
    59 #: src/Admin/EventsPage.php:65 views/admin/events.template.php:12
     63#: src/Admin/EventsAdminPage.php:67 views/admin/events.template.php:12
    6064msgid "Search"
    6165msgstr "Buscar"
    6266
    63 #: src/Admin/EventsTable.php:30
     67#: src/Admin/EventsListTable.php:26
    6468msgid "Code"
    6569msgstr "Código"
    6670
    67 #: src/Admin/EventsTable.php:31
     71#: src/Admin/EventsListTable.php:27
    6872msgid "Date"
    6973msgstr "Fecha"
    7074
    71 #: src/Admin/EventsTable.php:32 src/Hooks/Users.php:311 src/Hooks/Users.php:362
     75#: src/Admin/EventsListTable.php:28 src/Hooks/Users.php:329
     76#: src/Hooks/Users.php:380
    7277msgid "User"
    7378msgstr "Usuario"
    7479
    75 #: src/Admin/EventsTable.php:33
     80#: src/Admin/EventsListTable.php:29
    7681msgid "IP"
    7782msgstr "IP"
    7883
    79 #: src/Admin/EventsTable.php:34
     84#: src/Admin/EventsListTable.php:30
    8085msgid "Context"
    8186msgstr "Contexto"
    8287
    83 #: src/Admin/EventsTable.php:35
     88#: src/Admin/EventsListTable.php:31
    8489msgid "Action"
    8590msgstr "Acción"
    8691
    87 #: src/Admin/EventsTable.php:36
     92#: src/Admin/EventsListTable.php:32
    8893msgid "Meta "
    8994msgstr "Meta "
    9095
    91 #: src/Admin/EventsTable.php:42
     96#: src/Admin/EventsListTable.php:38
    9297msgid "No events have been found that meet your search criteria."
    9398msgstr ""
    9499"No se han encontrado eventos que se ajusten a sus criterios de búsqueda."
    95100
    96 #: src/Admin/EventsTable.php:44
     101#: src/Admin/EventsListTable.php:40
    97102msgid "No events have been logged yet."
    98103msgstr "Aún no se ha registrado ningún evento."
    99104
    100 #: src/Admin/EventsTable.php:318
     105#: src/Admin/EventsListTable.php:333
    101106#, php-format
    102107msgid "Select %s"
    103108msgstr "Seleccionar %s"
    104109
    105 #: src/Admin/EventsTable.php:348
     110#: src/Admin/EventsListTable.php:367
    106111msgid "All time"
    107112msgstr "Todos"
    108113
    109 #: src/Admin/EventsTable.php:349
     114#: src/Admin/EventsListTable.php:368
    110115msgid "Today"
    111116msgstr "Hoy"
    112117
    113 #: src/Admin/EventsTable.php:350
     118#: src/Admin/EventsListTable.php:369
    114119msgid "Yesterday"
    115120msgstr "Ayer"
    116121
    117 #: src/Admin/EventsTable.php:351
     122#: src/Admin/EventsListTable.php:370
    118123msgid "Last Week"
    119124msgstr "Semana pasada"
    120125
    121 #: src/Admin/EventsTable.php:352
     126#: src/Admin/EventsListTable.php:371
    122127msgid "Last Month"
    123128msgstr "Mes pasado"
    124129
    125 #: src/Admin/EventsTable.php:379
     130#: src/Admin/EventsListTable.php:398
    126131msgid "All Roles"
    127132msgstr "Todos los roles"
    128133
    129 #: src/Admin/EventsTable.php:396
     134#: src/Admin/EventsListTable.php:415
    130135msgid "All Users"
    131136msgstr "Todos los usuarios"
    132137
    133 #: src/Admin/EventsTable.php:420
     138#: src/Admin/EventsListTable.php:441
    134139msgid "All Contexts"
    135140msgstr "Todos"
    136141
    137 #: src/Admin/EventsTable.php:448
     142#: src/Admin/EventsListTable.php:471
    138143msgid "All Actions"
    139144msgstr "Todas las acciones"
    140145
    141 #: src/Admin/EventsTable.php:462
     146#: src/Admin/EventsListTable.php:485
    142147msgid "Reset filter"
    143148msgstr "Restablecer filtro"
     
    164169msgstr "se borraron %s registros en %s"
    165170
    166 #: src/Admin/Settings.php:95
     171#: src/Admin/Settings.php:91
     172#, php-format
     173msgid "and the execution time was %s"
     174msgstr "y el tiempo de ejecución fue de %s"
     175
     176#: src/Admin/Settings.php:99
    167177msgid "Store logs for"
    168178msgstr "Almacenar registros para"
    169179
    170 #: src/Admin/Settings.php:105
     180#: src/Admin/Settings.php:109
    171181msgid "days"
    172182msgstr "días"
    173183
    174 #: src/Admin/Settings.php:106
     184#: src/Admin/Settings.php:110
    175185msgid ""
    176186"Specify the length of time you want to retain the activity log. If left "
     
    182192"aunque no es recomendable."
    183193
    184 #: src/Admin/Settings.php:117
     194#: src/Admin/Settings.php:121
    185195msgid "Delete Log Activities"
    186196msgstr "Borrar actividades de registro"
    187197
    188 #: src/Admin/Settings.php:126
     198#: src/Admin/Settings.php:130
    189199msgid ""
    190200"Warning: Clicking this will delete all events from the database. Tables and "
     
    194204"datos. Se mantendrán las tablas y la estructura."
    195205
    196 #: src/Admin/Settings.php:127
     206#: src/Admin/Settings.php:131
    197207msgid "All data will be deleted. Are you sure do you want to continue?"
    198208msgstr "Se borrarán todos los datos. ¿Está seguro de que desea continuar?"
    199209
    200 #: src/EventCodes.php:115
     210#: src/EventCodes.php:122 src/EventInfo.php:13
    201211msgid "Default event."
    202212msgstr "Evento por defecto."
    203213
    204 #: src/EventCodes.php:117
     214#: src/EventCodes.php:124 src/EventInfo.php:17
    205215#, php-format
    206216msgid "Updated WordPress from %s to %s"
    207217msgstr "Actualizado WordPress de %s a %s"
    208218
    209 #: src/EventCodes.php:118
     219#: src/EventCodes.php:125 src/EventInfo.php:25
    210220#, php-format
    211221msgid "Downgraded WordPress from %s to %s"
    212222msgstr "WordPress ha pasado de %s a %s"
    213223
    214 #: src/EventCodes.php:119
     224#: src/EventCodes.php:126 src/EventInfo.php:21
    215225#, php-format
    216226msgid "Reinstalled WordPress %s"
    217227msgstr "Reinstalado WordPress %s"
    218228
    219 #: src/EventCodes.php:121
     229#: src/EventCodes.php:128 src/EventInfo.php:29
    220230msgid "Plugin uploaded"
    221231msgstr "Plugin cargado"
    222232
    223 #: src/EventCodes.php:122
     233#: src/EventCodes.php:129 src/EventInfo.php:33
    224234msgid "Plugin downloaded"
    225235msgstr "Plugin descargado"
    226236
    227 #: src/EventCodes.php:123
     237#: src/EventCodes.php:130 src/EventInfo.php:37
    228238#, php-format
    229239msgid "Installed %s %s plugin at %s"
    230240msgstr "Plugin instalado %s %s en %s"
    231241
    232 #: src/EventCodes.php:124
     242#: src/EventCodes.php:131 src/EventInfo.php:41
    233243#, php-format
    234244msgid "Uninstalled %s %s plugin at %s"
    235245msgstr "Desinstalado %s %s plugin en %s"
    236246
    237 #: src/EventCodes.php:125
     247#: src/EventCodes.php:132 src/EventInfo.php:45
    238248#, php-format
    239249msgid "Activated the plugin %s %s"
    240250msgstr "Activado el plugin %s %s"
    241251
    242 #: src/EventCodes.php:126
     252#: src/EventCodes.php:133
    243253#, php-format
    244254msgid "Deactivated de plugin %s %s deactivated"
    245255msgstr "Desactivado de plugin %s %s desactivado"
    246256
    247 #: src/EventCodes.php:127
     257#: src/EventCodes.php:134 src/EventInfo.php:53
    248258#, php-format
    249259msgid "Upgraded plugin %s to version %s"
    250260msgstr "Actualizado plugin %s a la versión %s"
    251261
    252 #: src/EventCodes.php:129
     262#: src/EventCodes.php:136 src/EventInfo.php:57
    253263#, php-format
    254264msgid "Uploaded theme %s %s"
    255265msgstr "Tema subido %s %s"
    256266
    257 #: src/EventCodes.php:130
     267#: src/EventCodes.php:137 src/EventInfo.php:61
    258268#, php-format
    259269msgid "Downloaded theme %s %s"
    260270msgstr "Tema descargado %s %s"
    261271
    262 #: src/EventCodes.php:131
     272#: src/EventCodes.php:138 src/EventInfo.php:65
    263273#, php-format
    264274msgid "Installed theme %s %s"
    265275msgstr "Tema instalado %s %s"
    266276
    267 #: src/EventCodes.php:132
     277#: src/EventCodes.php:139 src/EventInfo.php:69
    268278#, php-format
    269279msgid "Uninstalled theme %s %s"
    270280msgstr "Tema desinstalado %s %s"
    271281
    272 #: src/EventCodes.php:133
     282#: src/EventCodes.php:140 src/EventInfo.php:73
    273283#, php-format
    274284msgid "Activated theme %s %s"
    275285msgstr "Tema activado %s %s"
    276286
    277 #: src/EventCodes.php:134
     287#: src/EventCodes.php:141 src/EventInfo.php:77
    278288#, php-format
    279289msgid "Deactivated theme %s %s"
    280290msgstr "Tema desactivado %s %s"
    281291
    282 #: src/EventCodes.php:135
     292#: src/EventCodes.php:142 src/EventInfo.php:81
    283293#, php-format
    284294msgid "Upgraded theme %s to version %s"
    285295msgstr "Actualizado el tema %s a la versión %s"
    286296
    287 #: src/EventCodes.php:137
     297#: src/EventCodes.php:144 src/EventInfo.php:85
    288298#, php-format
    289299msgid "User %s logged in."
    290300msgstr "Usuario %s conectado."
    291301
    292 #: src/EventCodes.php:138
     302#: src/EventCodes.php:145 src/EventInfo.php:89
    293303#, php-format
    294304msgid "User %s logged out."
    295305msgstr "Usuario %s desconectado."
    296306
    297 #: src/EventCodes.php:139
     307#: src/EventCodes.php:146 src/EventInfo.php:93
    298308#, php-format
    299309msgid "Failed login attempt for %s."
    300310msgstr "Intento de inicio de sesión fallido para %s."
    301311
    302 #: src/EventCodes.php:140
     312#: src/EventCodes.php:147 src/EventInfo.php:97
    303313#, php-format
    304314msgid "All %s user sessions were closed."
    305315msgstr "Se han cerrado todas las sesiones de usuario %s."
    306316
    307 #: src/EventCodes.php:141
     317#: src/EventCodes.php:148 src/EventInfo.php:101
    308318#, php-format
    309319msgid "User %s created."
    310320msgstr "Usuario %s creado."
    311321
    312 #: src/EventCodes.php:142
     322#: src/EventCodes.php:149 src/EventInfo.php:105
    313323#, php-format
    314324msgid "User %s deleted."
    315325msgstr "Usuario %s eliminado."
    316326
    317 #: src/EventCodes.php:143
     327#: src/EventCodes.php:150 src/EventInfo.php:109
    318328#, php-format
    319329msgid "User %s profile updated."
    320330msgstr "Perfil del usuario %s actualizado."
    321331
    322 #: src/EventCodes.php:144
     332#: src/EventCodes.php:151 src/EventInfo.php:113
    323333#, php-format
    324334msgid "Meta field %s updated from %s to %s for %s."
    325335msgstr "Meta campo %s actualizado de %s a %s para %s."
    326336
    327 #: src/EventCodes.php:145
     337#: src/EventCodes.php:152 src/EventInfo.php:117
    328338#, php-format
    329339msgid "Email updated from %s to %s for user %s"
    330340msgstr "Email actualizado de %s a %s para el usuario %s"
    331341
    332 #: src/EventCodes.php:146
     342#: src/EventCodes.php:153 src/EventInfo.php:121
    333343msgid "User login updated."
    334344msgstr "Inicio de sesión de usuario actualizado."
    335345
    336 #: src/EventCodes.php:147
     346#: src/EventCodes.php:154 src/EventInfo.php:125
    337347#, php-format
    338348msgid "Password updated for %s."
    339349msgstr "Contraseña actualizada para %s."
    340350
    341 #: src/EventCodes.php:148
     351#: src/EventCodes.php:155 src/EventInfo.php:129
    342352#, php-format
    343353msgid "User %s nice name updated."
    344354msgstr "Usuario %s bonito nombre actualizado."
    345355
    346 #: src/EventCodes.php:149
     356#: src/EventCodes.php:156 src/EventInfo.php:133
    347357#, php-format
    348358msgid "User url updated from %s to %s for %s."
    349359msgstr "Url de usuario actualizada de %s a %s para %s."
    350360
    351 #: src/EventCodes.php:150
     361#: src/EventCodes.php:157 src/EventInfo.php:137
    352362#, php-format
    353363msgid "User %s status updated."
    354364msgstr "Estado del usuario %s actualizado."
    355365
    356 #: src/EventCodes.php:151
     366#: src/EventCodes.php:158 src/EventInfo.php:141
    357367#, php-format
    358368msgid "Changed display name from %s to %s for %s."
    359369msgstr "Cambiado el nombre de pantalla de %s a %s para %s."
    360370
    361 #: src/EventCodes.php:152
     371#: src/EventCodes.php:159 src/EventInfo.php:145
    362372#, php-format
    363373msgid "User %s role updated."
    364374msgstr "Rol del usuario %s actualizado."
    365375
    366 #: src/EventCodes.php:154
     376#: src/EventCodes.php:161 src/EventInfo.php:149
    367377#, php-format
    368378msgid "Setting %s created."
    369379msgstr "Configuración %s creada."
    370380
    371 #: src/EventCodes.php:155
     381#: src/EventCodes.php:162 src/EventInfo.php:153
    372382#, php-format
    373383msgid "Setting %s updated from %s to %s."
    374384msgstr "Ajuste %s actualizado de %s a %s."
    375385
    376 #: src/EventCodes.php:156
     386#: src/EventCodes.php:163 src/EventInfo.php:157
    377387#, php-format
    378388msgid "Setting %s deleted."
    379389msgstr "Ajuste %s borrado."
    380390
    381 #: src/EventCodes.php:158
     391#: src/EventCodes.php:165 src/EventInfo.php:161
    382392#, php-format
    383393msgid "Uploaded file %s to %s."
    384394msgstr "Archivo subido %s a %s."
    385395
    386 #: src/EventCodes.php:159
     396#: src/EventCodes.php:166 src/EventInfo.php:165
    387397#, php-format
    388398msgid "Deleted file %s from %s."
    389399msgstr "Archivo %s borrado de %s."
    390400
    391 #: src/EventCodes.php:160
     401#: src/EventCodes.php:167 src/EventInfo.php:169
    392402msgid "Attachment updated."
    393403msgstr "Adjunto actualizado."
    394404
    395 #: src/EventCodes.php:161
     405#: src/EventCodes.php:168 src/EventInfo.php:173
    396406#, php-format
    397407msgid "Modified the file %s with plugin editor."
    398408msgstr "Modificado el archivo %s con el editor de plugins."
    399409
    400 #: src/EventCodes.php:162
     410#: src/EventCodes.php:169 src/EventInfo.php:177
    401411#, php-format
    402412msgid "Modified the file %s with theme editor."
    403413msgstr "Modificado el archivo %s con el editor de temas."
    404414
    405 #: src/EventCodes.php:164
     415#: src/EventCodes.php:171 src/EventInfo.php:181
    406416#, php-format
    407417msgid "Opened %s with title %s in the editor."
    408418msgstr "Abierto %s con título %s en el editor."
    409419
    410 #: src/EventCodes.php:165
     420#: src/EventCodes.php:172 src/EventInfo.php:185
    411421#, php-format
    412422msgid "Created post %s."
    413423msgstr "Post creado %s."
    414424
    415 #: src/EventCodes.php:166
     425#: src/EventCodes.php:173 src/EventInfo.php:189
    416426msgid "Post updated."
    417427msgstr "Contenido actualizado."
    418428
    419 #: src/EventCodes.php:167
     429#: src/EventCodes.php:174 src/EventInfo.php:193
    420430#, php-format
    421431msgid "Updated the status of %s post to %s."
    422432msgstr "Actualizado el estado del post %s a %s."
    423433
    424 #: src/EventCodes.php:168
     434#: src/EventCodes.php:175 src/EventInfo.php:197
    425435#, php-format
    426436msgid "Updated title of post %s from %s to %s."
    427437msgstr "Actualizado el título del post %s de %s a %s."
    428438
    429 #: src/EventCodes.php:169
     439#: src/EventCodes.php:176 src/EventInfo.php:201
    430440#, php-format
    431441msgid "Updated content for post %s."
    432442msgstr "Contenido actualizado para el post %s."
    433443
    434 #: src/EventCodes.php:170
     444#: src/EventCodes.php:177 src/EventInfo.php:205
    435445#, php-format
    436446msgid "Categories updated from %s to %s in post %s."
    437447msgstr "Categorías actualizadas de %s a %s en el post %s."
    438448
    439 #: src/EventCodes.php:171
     449#: src/EventCodes.php:178 src/EventInfo.php:209
    440450#, php-format
    441451msgid "Tags updated from %s to %s in post %s."
    442452msgstr "Etiquetas actualizadas de %s a %s en el post %s."
    443453
    444 #: src/EventCodes.php:172
     454#: src/EventCodes.php:179 src/EventInfo.php:213
    445455#, php-format
    446456msgid "Taxonomies updated from %s to %s in post %s."
    447457msgstr "Taxonomías actualizadas de %s a %s en el post %s."
    448458
    449 #: src/EventCodes.php:173
     459#: src/EventCodes.php:180 src/EventInfo.php:217
    450460#, php-format
    451461msgid "Author updated from %s to %s in post %s"
    452462msgstr "Autor actualizado de %s a %s en el post %s"
    453463
    454 #: src/EventCodes.php:174
     464#: src/EventCodes.php:181 src/EventInfo.php:221
    455465#, php-format
    456466msgid "Updated publish date from %s to %s for post %s"
    457467msgstr "Actualizada la fecha de publicación de %s a %s para el post %s"
    458468
    459 #: src/EventCodes.php:175
     469#: src/EventCodes.php:182 src/EventInfo.php:225
    460470#, php-format
    461471msgid "URL updated from %s to %s in post %s"
    462472msgstr "URL actualizada de %s a %s en el post %s"
    463473
    464 #: src/EventCodes.php:176
     474#: src/EventCodes.php:183 src/EventInfo.php:229
    465475#, php-format
    466476msgid "Excerpt updated from %s to %s in post %s"
    467477msgstr "Extracto actualizado de %s a %s en el post %s"
    468478
    469 #: src/EventCodes.php:177
     479#: src/EventCodes.php:184 src/EventInfo.php:233
    470480#, php-format
    471481msgid "Parent assigned to %s for post %s"
    472482msgstr "Padre asignado a %s para el post %s"
    473483
    474 #: src/EventCodes.php:178
     484#: src/EventCodes.php:185 src/EventInfo.php:237
    475485#, php-format
    476486msgid "Updated menu order from %s to %s in Post %s"
    477487msgstr "Actualizado el orden del menú de %s a %s en Post %s"
    478488
    479 #: src/EventCodes.php:179
     489#: src/EventCodes.php:186 src/EventInfo.php:261
    480490#, php-format
    481491msgid "Updated featured thumbnail to %s for %s."
    482492msgstr "Actualizada la miniatura destacada a %s para %s."
    483493
    484 #: src/EventCodes.php:180
     494#: src/EventCodes.php:187 src/EventInfo.php:265
    485495#, php-format
    486496msgid "Added featured thumbnail %s for post %s."
    487497msgstr "Añadida miniatura destacada %s para el post %s."
    488498
    489 #: src/EventCodes.php:181
     499#: src/EventCodes.php:188 src/EventInfo.php:269
    490500#, php-format
    491501msgid "Removed featured post thumbnail %s for post %s."
    492502msgstr "Eliminada miniatura de entrada destacada %s para entrada %s."
    493503
    494 #: src/EventCodes.php:182
     504#: src/EventCodes.php:189 src/EventInfo.php:245
    495505#, php-format
    496506msgid "Permanently Deleted post %s."
    497507msgstr "Puesto borrado permanentemente %s."
    498508
    499 #: src/EventCodes.php:183
     509#: src/EventCodes.php:190 src/EventInfo.php:241
    500510#, php-format
    501511msgid "Moved post %s to trash."
    502512msgstr "Movido el post %s a la papelera."
    503513
    504 #: src/EventCodes.php:184
     514#: src/EventCodes.php:191 src/EventInfo.php:249
    505515#, php-format
    506516msgid "Restored post %s from trash."
    507517msgstr "Puesto %s restaurado de la papelera."
    508518
    509 #: src/EventCodes.php:185
     519#: src/EventCodes.php:192 src/EventInfo.php:253
    510520#, php-format
    511521msgid "Published post %s."
    512522msgstr "Puesto publicado %s."
    513523
    514 #: src/EventCodes.php:186
     524#: src/EventCodes.php:193 src/EventInfo.php:257
    515525#, php-format
    516526msgid "Post %s set as scheduled for %s."
    517527msgstr "Puesto %s fijado como programado para %s."
    518528
    519 #: src/EventCodes.php:187
     529#: src/EventCodes.php:194 src/EventInfo.php:273
    520530#, php-format
    521531msgid "Post %s template set as %s."
    522532msgstr "Plantilla de post %s establecida como %s."
    523533
    524 #: src/EventCodes.php:188
     534#: src/EventCodes.php:195 src/EventInfo.php:277
    525535#, php-format
    526536msgid "Modified post %s visibility from %s to %s."
    527537msgstr "Modificada la visibilidad del post %s de %s a %s."
    528538
    529 #: src/EventCodes.php:189
     539#: src/EventCodes.php:196 src/EventInfo.php:281
    530540#, php-format
    531541msgid "Set the post %s as sticky."
    532542msgstr "Establece el post %s como pegajoso."
    533543
    534 #: src/EventCodes.php:190
     544#: src/EventCodes.php:197 src/EventInfo.php:285
    535545#, php-format
    536546msgid "Removed the post %s from sticky"
    537547msgstr "Eliminado el post %s de sticky"
    538548
    539 #: src/EventCodes.php:191
     549#: src/EventCodes.php:198 src/EventInfo.php:289
    540550#, php-format
    541551msgid "Enabled comments for post %s."
    542552msgstr "Comentarios habilitados para el post %s."
    543553
    544 #: src/EventCodes.php:192
     554#: src/EventCodes.php:199 src/EventInfo.php:293
    545555#, php-format
    546556msgid "Disabled comments for post %s."
    547557msgstr "Comentarios deshabilitados para el post %s."
    548558
    549 #: src/EventCodes.php:193
     559#: src/EventCodes.php:200 src/EventInfo.php:297
    550560#, php-format
    551561msgid "Enabled pings and trackbacks for post %s."
    552562msgstr "Habilitados pings y trackbacks para el post %s."
    553563
    554 #: src/EventCodes.php:194
     564#: src/EventCodes.php:201 src/EventInfo.php:301
    555565#, php-format
    556566msgid "Disabled pings and trackbacks for post %s."
    557567msgstr "Pings y trackbacks desactivados para el post %s."
    558568
    559 #: src/EventCodes.php:195
     569#: src/EventCodes.php:202 src/EventInfo.php:305
    560570#, php-format
    561571msgid "Post %s has taken over."
    562572msgstr "El post %s ha tomado el relevo."
    563573
    564 #: src/EventCodes.php:196
     574#: src/EventCodes.php:203 src/EventInfo.php:309
    565575#, php-format
    566576msgid "Created meta field %s with value %s in %s."
    567577msgstr "Creado meta campo %s con valor %s en %s."
    568578
    569 #: src/EventCodes.php:197
     579#: src/EventCodes.php:204 src/EventInfo.php:313
    570580#, php-format
    571581msgid "Updated meta field %s from %s to %s in %s."
    572582msgstr "Actualizado el meta campo %s de %s a %s en %s."
    573583
    574 #: src/EventCodes.php:198
     584#: src/EventCodes.php:205 src/EventInfo.php:317
    575585msgid "Post meta field has been deleted."
    576586msgstr "Se ha eliminado el campo Post meta."
    577587
    578 #: src/EventCodes.php:200
     588#: src/EventCodes.php:207 src/EventInfo.php:321
    579589#, php-format
    580590msgid "Created category %s."
    581591msgstr "Categoría creada %s."
    582592
    583 #: src/EventCodes.php:201
     593#: src/EventCodes.php:208 src/EventInfo.php:325
    584594#, php-format
    585595msgid "Deleted category %s."
    586596msgstr "Categoría eliminada %s."
    587597
    588 #: src/EventCodes.php:202
     598#: src/EventCodes.php:209 src/EventInfo.php:329
    589599#, php-format
    590600msgid "Updated %s from %s (%s) to %s (%s)."
    591601msgstr "Actualizado %s de %s (%s) a %s (%s)."
    592602
    593 #: src/EventCodes.php:204
     603#: src/EventCodes.php:211 src/EventInfo.php:333
    594604#, php-format
    595605msgid "Created term %s in %s."
    596606msgstr "Creado término %s en %s."
    597607
    598 #: src/EventCodes.php:205
     608#: src/EventCodes.php:212 src/EventInfo.php:337
    599609#, php-format
    600610msgid "Delete term %s in %s."
    601611msgstr "Borrar término %s en %s."
    602612
    603 #: src/EventCodes.php:206
     613#: src/EventCodes.php:213 src/EventInfo.php:341
    604614#, php-format
    605615msgid "Updated tag %s from %s (%s) to %s (%s)."
    606616msgstr "Actualizada la etiqueta %s de %s (%s) a %s (%s)."
    607617
    608 #: src/EventCodes.php:208
     618#: src/EventCodes.php:215 src/EventInfo.php:345
    609619#, php-format
    610620msgid "Created term %s in taxonomy %s."
    611621msgstr "Creado término %s en taxonomía %s."
    612622
    613 #: src/EventCodes.php:209
     623#: src/EventCodes.php:216 src/EventInfo.php:349
    614624#, php-format
    615625msgid "Deleted term %s in taxonomy %s."
    616626msgstr "Término %s suprimido en la taxonomía %s."
    617627
    618 #: src/EventCodes.php:210
     628#: src/EventCodes.php:217 src/EventInfo.php:353
    619629#, php-format
    620630msgid "Updated taxonomy %s from %s (%s) to %s (%s)."
    621631msgstr "Actualizada la taxonomía %s de %s (%s) a %s (%s)."
     632
     633#: src/EventCodes.php:219
     634#, php-format
     635msgid "Completed %s."
     636msgstr "Completado %s."
     637
     638#: src/EventCodes.php:220
     639#, no-php-format
     640msgid "% changed to uncompleted."
     641msgstr "% ccolgado a incompleto."
     642
     643#: src/EventCodes.php:221
     644#, php-format
     645msgid "Enrolled to %s"
     646msgstr "Usuario inscrito en %s"
     647
     648#: src/EventCodes.php:222
     649#, php-format
     650msgid "Unenrolled to %s"
     651msgstr "No inscripto en %s"
     652
     653#: src/EventCodes.php:223
     654#, php-format
     655msgid "Added to %s"
     656msgstr "Añadido a %s"
     657
     658#: src/EventCodes.php:224
     659#, php-format
     660msgid "Removed from %s"
     661msgstr "Eliminado de %s"
     662
     663#: src/EventInfo.php:49
     664#, php-format
     665msgid "Deactivated the plugin %s %s"
     666msgstr "Desactivado el plugin %s %s"
     667
     668#: src/EventTypes.php:30
     669msgid "Created"
     670msgstr "Creado"
     671
     672#: src/EventTypes.php:31
     673msgid "Modified"
     674msgstr "Modificado"
     675
     676#: src/EventTypes.php:32
     677msgid "Login"
     678msgstr "Iniciar sesión"
     679
     680#: src/EventTypes.php:33
     681msgid "Logout"
     682msgstr "Cerrar sesión"
     683
     684#: src/EventTypes.php:34
     685msgid "Failed Login"
     686msgstr "Inicio de sesión fallido"
     687
     688#: src/EventTypes.php:35
     689msgid "Trashed"
     690msgstr "Borrado"
     691
     692#: src/EventTypes.php:36
     693msgid "Deleted"
     694msgstr "Eliminado"
     695
     696#: src/EventTypes.php:37
     697msgid "Restored"
     698msgstr "Restaurado"
     699
     700#: src/EventTypes.php:38
     701msgid "Activated"
     702msgstr "Activado"
     703
     704#: src/EventTypes.php:39
     705msgid "Deactivated"
     706msgstr "Desactivado"
     707
     708#: src/EventTypes.php:40
     709msgid "Upgraded"
     710msgstr "Actualizado"
     711
     712#: src/EventTypes.php:41
     713msgid "Installed"
     714msgstr "Instalado"
     715
     716#: src/EventTypes.php:42
     717msgid "Uploaded"
     718msgstr "Subido"
     719
     720#: src/EventTypes.php:43
     721msgid "Opened"
     722msgstr "Abierto"
     723
     724#: src/EventTypes.php:44 src/Hooks/LearnDash.php:118
     725msgid "Completed"
     726msgstr "Completado"
     727
     728#: src/EventTypes.php:45
     729msgid "Uncompleted"
     730msgstr "Marcado como incompleto"
     731
     732#: src/EventTypes.php:46
     733msgid "Enrolled"
     734msgstr "Matriculado"
     735
     736#: src/EventTypes.php:47
     737msgid "Unenrolled"
     738msgstr "Matricula eliminada"
     739
     740#: src/EventTypes.php:48
     741msgid "Added"
     742msgstr "Añadido"
     743
     744#: src/EventTypes.php:49
     745msgid "Removed"
     746msgstr "Eliminado"
    622747
    623748#: src/Hooks/Core.php:32
     
    645770msgstr "Nueva Version"
    646771
    647 #: src/Hooks/Core.php:87 src/Hooks/Files.php:190 src/Hooks/Meta.php:191
    648 #: src/Hooks/Plugins.php:211 src/Hooks/Posts.php:702 src/Hooks/Settings.php:249
    649 #: src/Hooks/Taxonomies.php:203 src/Hooks/Themes.php:184
    650 #: src/Hooks/Users.php:414
     772#: src/Hooks/Core.php:87 src/Hooks/Files.php:190 src/Hooks/LearnDash.php:156
     773#: src/Hooks/Meta.php:192 src/Hooks/Plugins.php:211 src/Hooks/Posts.php:702
     774#: src/Hooks/Settings.php:249 src/Hooks/Taxonomies.php:203
     775#: src/Hooks/Themes.php:184 src/Hooks/Users.php:432
    651776msgid "User Agent"
    652 msgstr "Agente de usuario"
     777msgstr "Agente / Navegador"
    653778
    654779#: src/Hooks/Files.php:143 src/Hooks/Posts.php:408
     
    692817msgstr "Ruta temática"
    693818
     819#: src/Hooks/LearnDash.php:115 src/Hooks/Meta.php:149 src/Hooks/Posts.php:434
     820#: src/Hooks/Posts.php:445 src/Hooks/Posts.php:462 src/Hooks/Posts.php:478
     821#: src/Hooks/Posts.php:499 src/Hooks/Posts.php:511 src/Hooks/Posts.php:524
     822#: src/Hooks/Posts.php:539 src/Hooks/Posts.php:554 src/Hooks/Posts.php:569
     823#: src/Hooks/Posts.php:584 src/Hooks/Posts.php:607 src/Hooks/Posts.php:622
     824#: src/Hooks/Posts.php:636 src/Hooks/Posts.php:649 src/Hooks/Posts.php:670
     825#: src/Hooks/Posts.php:685
     826msgid "Post ID"
     827msgstr "ID de contenido"
     828
     829#: src/Hooks/LearnDash.php:116 src/Hooks/Meta.php:150 src/Hooks/Posts.php:435
     830#: src/Hooks/Posts.php:446 src/Hooks/Posts.php:463 src/Hooks/Posts.php:479
     831#: src/Hooks/Posts.php:500 src/Hooks/Posts.php:512 src/Hooks/Posts.php:525
     832#: src/Hooks/Posts.php:540 src/Hooks/Posts.php:555 src/Hooks/Posts.php:570
     833#: src/Hooks/Posts.php:585 src/Hooks/Posts.php:608 src/Hooks/Posts.php:623
     834#: src/Hooks/Posts.php:637 src/Hooks/Posts.php:650 src/Hooks/Posts.php:671
     835#: src/Hooks/Posts.php:686
     836msgid "Post title"
     837msgstr "Título del contenido"
     838
     839#: src/Hooks/LearnDash.php:117 src/Hooks/Meta.php:151 src/Hooks/Posts.php:437
     840#: src/Hooks/Posts.php:448 src/Hooks/Posts.php:465 src/Hooks/Posts.php:481
     841#: src/Hooks/Posts.php:502 src/Hooks/Posts.php:514 src/Hooks/Posts.php:527
     842#: src/Hooks/Posts.php:528 src/Hooks/Posts.php:529 src/Hooks/Posts.php:542
     843#: src/Hooks/Posts.php:543 src/Hooks/Posts.php:544 src/Hooks/Posts.php:557
     844#: src/Hooks/Posts.php:572 src/Hooks/Posts.php:587 src/Hooks/Posts.php:610
     845#: src/Hooks/Posts.php:625 src/Hooks/Posts.php:639 src/Hooks/Posts.php:652
     846#: src/Hooks/Posts.php:673 src/Hooks/Posts.php:688
     847msgid "Post type"
     848msgstr "Tipo de entrada"
     849
     850#: src/Hooks/LearnDash.php:123
     851#, php-format
     852msgid "%d%% (%d points of %d)."
     853msgstr "%d%% (%d puntos de %d)."
     854
     855#: src/Hooks/LearnDash.php:126
     856msgid "Evaluation Score"
     857msgstr "Resultado de evaluación"
     858
     859#: src/Hooks/LearnDash.php:143
     860msgid "Edit Course"
     861msgstr "Editar Curso"
     862
     863#: src/Hooks/LearnDash.php:151
     864msgid "Edit Quiz"
     865msgstr "Editar Cuestionario"
     866
    694867#: src/Hooks/Meta.php:142 src/Hooks/Taxonomies.php:158
    695868msgid "Edit "
    696869msgstr "Editar "
    697870
    698 #: src/Hooks/Meta.php:149 src/Hooks/Posts.php:435 src/Hooks/Posts.php:446
    699 #: src/Hooks/Posts.php:463 src/Hooks/Posts.php:479 src/Hooks/Posts.php:500
    700 #: src/Hooks/Posts.php:512 src/Hooks/Posts.php:525 src/Hooks/Posts.php:540
    701 #: src/Hooks/Posts.php:555 src/Hooks/Posts.php:570 src/Hooks/Posts.php:585
    702 #: src/Hooks/Posts.php:608 src/Hooks/Posts.php:623 src/Hooks/Posts.php:637
    703 #: src/Hooks/Posts.php:650 src/Hooks/Posts.php:671 src/Hooks/Posts.php:686
    704 msgid "Post title"
    705 msgstr "Título del anuncio"
    706 
    707 #: src/Hooks/Meta.php:150 src/Hooks/Posts.php:437 src/Hooks/Posts.php:448
    708 #: src/Hooks/Posts.php:465 src/Hooks/Posts.php:481 src/Hooks/Posts.php:502
    709 #: src/Hooks/Posts.php:514 src/Hooks/Posts.php:527 src/Hooks/Posts.php:528
    710 #: src/Hooks/Posts.php:529 src/Hooks/Posts.php:542 src/Hooks/Posts.php:543
    711 #: src/Hooks/Posts.php:544 src/Hooks/Posts.php:557 src/Hooks/Posts.php:572
    712 #: src/Hooks/Posts.php:587 src/Hooks/Posts.php:610 src/Hooks/Posts.php:625
    713 #: src/Hooks/Posts.php:639 src/Hooks/Posts.php:652 src/Hooks/Posts.php:673
    714 #: src/Hooks/Posts.php:688
    715 msgid "Post type"
    716 msgstr "Tipo de entrada"
    717 
    718 #: src/Hooks/Meta.php:151 src/Hooks/Posts.php:436 src/Hooks/Posts.php:447
     871#: src/Hooks/Meta.php:152 src/Hooks/Posts.php:436 src/Hooks/Posts.php:447
    719872#: src/Hooks/Posts.php:464 src/Hooks/Posts.php:480 src/Hooks/Posts.php:501
    720873#: src/Hooks/Posts.php:513 src/Hooks/Posts.php:526 src/Hooks/Posts.php:541
     
    725878msgstr "Estado del contenido"
    726879
    727 #: src/Hooks/Meta.php:163 src/Hooks/Meta.php:178
     880#: src/Hooks/Meta.php:164 src/Hooks/Meta.php:179
    728881msgid "Meta key"
    729882msgstr "Meta key"
    730883
    731 #: src/Hooks/Meta.php:164 src/Hooks/Meta.php:179 src/Hooks/Settings.php:222
    732 #: src/Hooks/Settings.php:236 src/Hooks/Users.php:386
     884#: src/Hooks/Meta.php:165 src/Hooks/Meta.php:180 src/Hooks/Settings.php:222
     885#: src/Hooks/Settings.php:236 src/Hooks/Users.php:404
    733886msgid "Old value"
    734887msgstr "Valor antiguo"
    735888
    736 #: src/Hooks/Meta.php:165 src/Hooks/Settings.php:211 src/Hooks/Settings.php:237
    737 #: src/Hooks/Users.php:315
     889#: src/Hooks/Meta.php:166 src/Hooks/Settings.php:211 src/Hooks/Settings.php:237
     890#: src/Hooks/Users.php:333
    738891msgid "New value"
    739892msgstr "Nuevo valor"
     
    763916msgstr "Ver las diferencias"
    764917
    765 #: src/Hooks/Posts.php:434 src/Hooks/Posts.php:445 src/Hooks/Posts.php:462
    766 #: src/Hooks/Posts.php:478 src/Hooks/Posts.php:499 src/Hooks/Posts.php:511
    767 #: src/Hooks/Posts.php:524 src/Hooks/Posts.php:539 src/Hooks/Posts.php:554
    768 #: src/Hooks/Posts.php:569 src/Hooks/Posts.php:584 src/Hooks/Posts.php:607
    769 #: src/Hooks/Posts.php:622 src/Hooks/Posts.php:636 src/Hooks/Posts.php:649
    770 #: src/Hooks/Posts.php:670 src/Hooks/Posts.php:685
    771 msgid "Post ID"
    772 msgstr "ID de post"
    773 
    774918#: src/Hooks/Posts.php:449
    775919msgid "Old user"
     
    10041148msgstr "Term slug"
    10051149
    1006 #: src/Hooks/Users.php:289
     1150#: src/Hooks/Users.php:307
    10071151msgid "View profile"
    10081152msgstr "Ver perfil"
    10091153
    1010 #: src/Hooks/Users.php:289
     1154#: src/Hooks/Users.php:307
    10111155msgid "Edit user"
    10121156msgstr "Editar usuario"
    10131157
    1014 #: src/Hooks/Users.php:312 src/Hooks/Users.php:328 src/Hooks/Users.php:400
     1158#: src/Hooks/Users.php:330 src/Hooks/Users.php:346 src/Hooks/Users.php:418
    10151159msgid "Roles"
    10161160msgstr "Roles"
    10171161
    1018 #: src/Hooks/Users.php:313
     1162#: src/Hooks/Users.php:331
    10191163msgid "Updated field"
    10201164msgstr "Campo actualizado"
    10211165
    1022 #: src/Hooks/Users.php:314
     1166#: src/Hooks/Users.php:332
    10231167msgid "Previous value"
    10241168msgstr "Valor anterior"
    10251169
    1026 #: src/Hooks/Users.php:327 src/Hooks/Users.php:399
     1170#: src/Hooks/Users.php:345 src/Hooks/Users.php:417
    10271171msgid "User login"
    10281172msgstr "Login del usuario"
    10291173
    1030 #: src/Hooks/Users.php:329
     1174#: src/Hooks/Users.php:347
    10311175msgid "First name"
    10321176msgstr "Nombre"
    10331177
    1034 #: src/Hooks/Users.php:330
     1178#: src/Hooks/Users.php:348
    10351179msgid "Last name"
    10361180msgstr "Apellidos"
    10371181
    1038 #: src/Hooks/Users.php:334
     1182#: src/Hooks/Users.php:352
    10391183msgid "Reassign posts"
    10401184msgstr "Reasignar posts"
    10411185
    1042 #: src/Hooks/Users.php:363
     1186#: src/Hooks/Users.php:381
    10431187msgid "Attempts"
    10441188msgstr "Intentos"
    10451189
    1046 #: src/Hooks/Users.php:364
     1190#: src/Hooks/Users.php:382
    10471191msgid "Last attempt"
    10481192msgstr "Último intento"
    10491193
    1050 #: src/Hooks/Users.php:365
     1194#: src/Hooks/Users.php:383
    10511195msgid "Last Error"
    10521196msgstr "Ultimo error"
    10531197
    1054 #: src/Hooks/Users.php:385
     1198#: src/Hooks/Users.php:403
    10551199msgid "User field"
    10561200msgstr "Campo de usuario"
    10571201
    1058 #: src/Hooks/Users.php:387
     1202#: src/Hooks/Users.php:405
    10591203msgid "New new"
    10601204msgstr "Nuevo Nuevo"
    10611205
    1062 #: src/Hooks/Users.php:401
     1206#: src/Hooks/Users.php:419
    10631207msgid "First Name"
    10641208msgstr "Nombre"
    10651209
    1066 #: src/Hooks/Users.php:402
     1210#: src/Hooks/Users.php:420
    10671211msgid "Last Name"
    10681212msgstr "Apellido"
  • logdash-activity-log/trunk/languages/logdash-activity-log.pot

    r2916051 r3116686  
    33msgstr ""
    44"Project-Id-Version: LogDash Activity Log\n"
    5 "POT-Creation-Date: 2023-05-22 11:27-0400\n"
     5"POT-Creation-Date: 2024-07-09 14:44-0400\n"
    66"PO-Revision-Date: 2023-04-14 13:02-0400\n"
    77"Last-Translator: \n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    13 "X-Generator: Poedit 3.3\n"
     13"X-Generator: Poedit 3.4.4\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    2424"X-Poedit-SearchPathExcluded-2: node_modules\n"
    2525
    26 #: src/Actions/ResetLog.php:43
     26#: src/Actions/RemoveExpiredLog.php:72
     27msgid "seconds"
     28msgstr ""
     29
     30#: src/Actions/ResetLog.php:46
    2731msgid "There is an issue with reset request."
    2832msgstr ""
    2933
    30 #: src/Actions/ResetLog.php:51
     34#: src/Actions/ResetLog.php:54
    3135msgid "You are not authorized to perform this action."
    3236msgstr ""
    3337
    34 #: src/Actions/ResetLog.php:62
     38#: src/Actions/ResetLog.php:77
    3539#, php-format
    3640msgid "Reset failed: (%s)"
    3741msgstr ""
    3842
    39 #: src/Actions/ResetLog.php:70
     43#: src/Actions/ResetLog.php:85
    4044msgid "All events were deleted."
    4145msgstr ""
    4246
    43 #: src/Admin/EventsPage.php:32
     47#: src/Admin/EventsAdminPage.php:31
    4448msgid "LogDash Activity Log Viewer"
    4549msgstr ""
    4650
    47 #: src/Admin/EventsPage.php:33
     51#: src/Admin/EventsAdminPage.php:32
    4852msgid "LogDash"
    4953msgstr ""
    5054
    51 #: src/Admin/EventsPage.php:45
     55#: src/Admin/EventsAdminPage.php:45
    5256msgid "Activity Log"
    5357msgstr ""
    5458
    55 #: src/Admin/EventsPage.php:50
     59#: src/Admin/EventsAdminPage.php:52
    5660msgid "Users Per Page"
    5761msgstr ""
    5862
    59 #: src/Admin/EventsPage.php:65 views/admin/events.template.php:12
     63#: src/Admin/EventsAdminPage.php:67 views/admin/events.template.php:12
    6064msgid "Search"
    6165msgstr ""
    6266
    63 #: src/Admin/EventsTable.php:30
     67#: src/Admin/EventsListTable.php:26
    6468msgid "Code"
    6569msgstr ""
    6670
    67 #: src/Admin/EventsTable.php:31
     71#: src/Admin/EventsListTable.php:27
    6872msgid "Date"
    6973msgstr ""
    7074
    71 #: src/Admin/EventsTable.php:32 src/Hooks/Users.php:311 src/Hooks/Users.php:362
     75#: src/Admin/EventsListTable.php:28 src/Hooks/Users.php:329
     76#: src/Hooks/Users.php:380
    7277msgid "User"
    7378msgstr ""
    7479
    75 #: src/Admin/EventsTable.php:33
     80#: src/Admin/EventsListTable.php:29
    7681msgid "IP"
    7782msgstr ""
    7883
    79 #: src/Admin/EventsTable.php:34
     84#: src/Admin/EventsListTable.php:30
    8085msgid "Context"
    8186msgstr ""
    8287
    83 #: src/Admin/EventsTable.php:35
     88#: src/Admin/EventsListTable.php:31
    8489msgid "Action"
    8590msgstr ""
    8691
    87 #: src/Admin/EventsTable.php:36
     92#: src/Admin/EventsListTable.php:32
    8893msgid "Meta "
    8994msgstr ""
    9095
    91 #: src/Admin/EventsTable.php:42
     96#: src/Admin/EventsListTable.php:38
    9297msgid "No events have been found that meet your search criteria."
    9398msgstr ""
    9499
    95 #: src/Admin/EventsTable.php:44
     100#: src/Admin/EventsListTable.php:40
    96101msgid "No events have been logged yet."
    97102msgstr ""
    98103
    99 #: src/Admin/EventsTable.php:318
     104#: src/Admin/EventsListTable.php:333
    100105#, php-format
    101106msgid "Select %s"
    102107msgstr ""
    103108
    104 #: src/Admin/EventsTable.php:348
     109#: src/Admin/EventsListTable.php:367
    105110msgid "All time"
    106111msgstr ""
    107112
    108 #: src/Admin/EventsTable.php:349
     113#: src/Admin/EventsListTable.php:368
    109114msgid "Today"
    110115msgstr ""
    111116
    112 #: src/Admin/EventsTable.php:350
     117#: src/Admin/EventsListTable.php:369
    113118msgid "Yesterday"
    114119msgstr ""
    115120
    116 #: src/Admin/EventsTable.php:351
     121#: src/Admin/EventsListTable.php:370
    117122msgid "Last Week"
    118123msgstr ""
    119124
    120 #: src/Admin/EventsTable.php:352
     125#: src/Admin/EventsListTable.php:371
    121126msgid "Last Month"
    122127msgstr ""
    123128
    124 #: src/Admin/EventsTable.php:379
     129#: src/Admin/EventsListTable.php:398
    125130msgid "All Roles"
    126131msgstr ""
    127132
    128 #: src/Admin/EventsTable.php:396
     133#: src/Admin/EventsListTable.php:415
    129134msgid "All Users"
    130135msgstr ""
    131136
    132 #: src/Admin/EventsTable.php:420
     137#: src/Admin/EventsListTable.php:441
    133138msgid "All Contexts"
    134139msgstr ""
    135140
    136 #: src/Admin/EventsTable.php:448
     141#: src/Admin/EventsListTable.php:471
    137142msgid "All Actions"
    138143msgstr ""
    139144
    140 #: src/Admin/EventsTable.php:462
     145#: src/Admin/EventsListTable.php:485
    141146msgid "Reset filter"
    142147msgstr ""
     
    163168msgstr ""
    164169
    165 #: src/Admin/Settings.php:95
     170#: src/Admin/Settings.php:91
     171#, php-format
     172msgid "and the execution time was %s"
     173msgstr ""
     174
     175#: src/Admin/Settings.php:99
    166176msgid "Store logs for"
    167177msgstr ""
    168178
    169 #: src/Admin/Settings.php:105
     179#: src/Admin/Settings.php:109
    170180msgid "days"
    171181msgstr ""
    172182
    173 #: src/Admin/Settings.php:106
     183#: src/Admin/Settings.php:110
    174184msgid ""
    175185"Specify the length of time you want to retain the activity log. If left "
     
    178188msgstr ""
    179189
    180 #: src/Admin/Settings.php:117
     190#: src/Admin/Settings.php:121
    181191msgid "Delete Log Activities"
    182192msgstr ""
    183193
    184 #: src/Admin/Settings.php:126
     194#: src/Admin/Settings.php:130
    185195msgid ""
    186196"Warning: Clicking this will delete all events from the database. Tables and "
     
    188198msgstr ""
    189199
    190 #: src/Admin/Settings.php:127
     200#: src/Admin/Settings.php:131
    191201msgid "All data will be deleted. Are you sure do you want to continue?"
    192202msgstr ""
    193203
    194 #: src/EventCodes.php:115
     204#: src/EventCodes.php:122 src/EventInfo.php:13
    195205msgid "Default event."
    196206msgstr ""
    197207
    198 #: src/EventCodes.php:117
     208#: src/EventCodes.php:124 src/EventInfo.php:17
    199209#, php-format
    200210msgid "Updated WordPress from %s to %s"
    201211msgstr ""
    202212
    203 #: src/EventCodes.php:118
     213#: src/EventCodes.php:125 src/EventInfo.php:25
    204214#, php-format
    205215msgid "Downgraded WordPress from %s to %s"
    206216msgstr ""
    207217
    208 #: src/EventCodes.php:119
     218#: src/EventCodes.php:126 src/EventInfo.php:21
    209219#, php-format
    210220msgid "Reinstalled WordPress %s"
    211221msgstr ""
    212222
    213 #: src/EventCodes.php:121
     223#: src/EventCodes.php:128 src/EventInfo.php:29
    214224msgid "Plugin uploaded"
    215225msgstr ""
    216226
    217 #: src/EventCodes.php:122
     227#: src/EventCodes.php:129 src/EventInfo.php:33
    218228msgid "Plugin downloaded"
    219229msgstr ""
    220230
    221 #: src/EventCodes.php:123
     231#: src/EventCodes.php:130 src/EventInfo.php:37
    222232#, php-format
    223233msgid "Installed %s %s plugin at %s"
    224234msgstr ""
    225235
    226 #: src/EventCodes.php:124
     236#: src/EventCodes.php:131 src/EventInfo.php:41
    227237#, php-format
    228238msgid "Uninstalled %s %s plugin at %s"
    229239msgstr ""
    230240
    231 #: src/EventCodes.php:125
     241#: src/EventCodes.php:132 src/EventInfo.php:45
    232242#, php-format
    233243msgid "Activated the plugin %s %s"
    234244msgstr ""
    235245
    236 #: src/EventCodes.php:126
     246#: src/EventCodes.php:133
    237247#, php-format
    238248msgid "Deactivated de plugin %s %s deactivated"
    239249msgstr ""
    240250
    241 #: src/EventCodes.php:127
     251#: src/EventCodes.php:134 src/EventInfo.php:53
    242252#, php-format
    243253msgid "Upgraded plugin %s to version %s"
    244254msgstr ""
    245255
    246 #: src/EventCodes.php:129
     256#: src/EventCodes.php:136 src/EventInfo.php:57
    247257#, php-format
    248258msgid "Uploaded theme %s %s"
    249259msgstr ""
    250260
    251 #: src/EventCodes.php:130
     261#: src/EventCodes.php:137 src/EventInfo.php:61
    252262#, php-format
    253263msgid "Downloaded theme %s %s"
    254264msgstr ""
    255265
    256 #: src/EventCodes.php:131
     266#: src/EventCodes.php:138 src/EventInfo.php:65
    257267#, php-format
    258268msgid "Installed theme %s %s"
    259269msgstr ""
    260270
    261 #: src/EventCodes.php:132
     271#: src/EventCodes.php:139 src/EventInfo.php:69
    262272#, php-format
    263273msgid "Uninstalled theme %s %s"
    264274msgstr ""
    265275
    266 #: src/EventCodes.php:133
     276#: src/EventCodes.php:140 src/EventInfo.php:73
    267277#, php-format
    268278msgid "Activated theme %s %s"
    269279msgstr ""
    270280
    271 #: src/EventCodes.php:134
     281#: src/EventCodes.php:141 src/EventInfo.php:77
    272282#, php-format
    273283msgid "Deactivated theme %s %s"
    274284msgstr ""
    275285
    276 #: src/EventCodes.php:135
     286#: src/EventCodes.php:142 src/EventInfo.php:81
    277287#, php-format
    278288msgid "Upgraded theme %s to version %s"
    279289msgstr ""
    280290
    281 #: src/EventCodes.php:137
     291#: src/EventCodes.php:144 src/EventInfo.php:85
    282292#, php-format
    283293msgid "User %s logged in."
    284294msgstr ""
    285295
    286 #: src/EventCodes.php:138
     296#: src/EventCodes.php:145 src/EventInfo.php:89
    287297#, php-format
    288298msgid "User %s logged out."
    289299msgstr ""
    290300
    291 #: src/EventCodes.php:139
     301#: src/EventCodes.php:146 src/EventInfo.php:93
    292302#, php-format
    293303msgid "Failed login attempt for %s."
    294304msgstr ""
    295305
    296 #: src/EventCodes.php:140
     306#: src/EventCodes.php:147 src/EventInfo.php:97
    297307#, php-format
    298308msgid "All %s user sessions were closed."
    299309msgstr ""
    300310
    301 #: src/EventCodes.php:141
     311#: src/EventCodes.php:148 src/EventInfo.php:101
    302312#, php-format
    303313msgid "User %s created."
    304314msgstr ""
    305315
    306 #: src/EventCodes.php:142
     316#: src/EventCodes.php:149 src/EventInfo.php:105
    307317#, php-format
    308318msgid "User %s deleted."
    309319msgstr ""
    310320
    311 #: src/EventCodes.php:143
     321#: src/EventCodes.php:150 src/EventInfo.php:109
    312322#, php-format
    313323msgid "User %s profile updated."
    314324msgstr ""
    315325
    316 #: src/EventCodes.php:144
     326#: src/EventCodes.php:151 src/EventInfo.php:113
    317327#, php-format
    318328msgid "Meta field %s updated from %s to %s for %s."
    319329msgstr ""
    320330
    321 #: src/EventCodes.php:145
     331#: src/EventCodes.php:152 src/EventInfo.php:117
    322332#, php-format
    323333msgid "Email updated from %s to %s for user %s"
    324334msgstr ""
    325335
    326 #: src/EventCodes.php:146
     336#: src/EventCodes.php:153 src/EventInfo.php:121
    327337msgid "User login updated."
    328338msgstr ""
    329339
    330 #: src/EventCodes.php:147
     340#: src/EventCodes.php:154 src/EventInfo.php:125
    331341#, php-format
    332342msgid "Password updated for %s."
    333343msgstr ""
    334344
    335 #: src/EventCodes.php:148
     345#: src/EventCodes.php:155 src/EventInfo.php:129
    336346#, php-format
    337347msgid "User %s nice name updated."
    338348msgstr ""
    339349
    340 #: src/EventCodes.php:149
     350#: src/EventCodes.php:156 src/EventInfo.php:133
    341351#, php-format
    342352msgid "User url updated from %s to %s for %s."
    343353msgstr ""
    344354
    345 #: src/EventCodes.php:150
     355#: src/EventCodes.php:157 src/EventInfo.php:137
    346356#, php-format
    347357msgid "User %s status updated."
    348358msgstr ""
    349359
    350 #: src/EventCodes.php:151
     360#: src/EventCodes.php:158 src/EventInfo.php:141
    351361#, php-format
    352362msgid "Changed display name from %s to %s for %s."
    353363msgstr ""
    354364
    355 #: src/EventCodes.php:152
     365#: src/EventCodes.php:159 src/EventInfo.php:145
    356366#, php-format
    357367msgid "User %s role updated."
    358368msgstr ""
    359369
    360 #: src/EventCodes.php:154
     370#: src/EventCodes.php:161 src/EventInfo.php:149
    361371#, php-format
    362372msgid "Setting %s created."
    363373msgstr ""
    364374
    365 #: src/EventCodes.php:155
     375#: src/EventCodes.php:162 src/EventInfo.php:153
    366376#, php-format
    367377msgid "Setting %s updated from %s to %s."
    368378msgstr ""
    369379
    370 #: src/EventCodes.php:156
     380#: src/EventCodes.php:163 src/EventInfo.php:157
    371381#, php-format
    372382msgid "Setting %s deleted."
    373383msgstr ""
    374384
    375 #: src/EventCodes.php:158
     385#: src/EventCodes.php:165 src/EventInfo.php:161
    376386#, php-format
    377387msgid "Uploaded file %s to %s."
    378388msgstr ""
    379389
    380 #: src/EventCodes.php:159
     390#: src/EventCodes.php:166 src/EventInfo.php:165
    381391#, php-format
    382392msgid "Deleted file %s from %s."
    383393msgstr ""
    384394
    385 #: src/EventCodes.php:160
     395#: src/EventCodes.php:167 src/EventInfo.php:169
    386396msgid "Attachment updated."
    387397msgstr ""
    388398
    389 #: src/EventCodes.php:161
     399#: src/EventCodes.php:168 src/EventInfo.php:173
    390400#, php-format
    391401msgid "Modified the file %s with plugin editor."
    392402msgstr ""
    393403
    394 #: src/EventCodes.php:162
     404#: src/EventCodes.php:169 src/EventInfo.php:177
    395405#, php-format
    396406msgid "Modified the file %s with theme editor."
    397407msgstr ""
    398408
    399 #: src/EventCodes.php:164
     409#: src/EventCodes.php:171 src/EventInfo.php:181
    400410#, php-format
    401411msgid "Opened %s with title %s in the editor."
    402412msgstr ""
    403413
    404 #: src/EventCodes.php:165
     414#: src/EventCodes.php:172 src/EventInfo.php:185
    405415#, php-format
    406416msgid "Created post %s."
    407417msgstr ""
    408418
    409 #: src/EventCodes.php:166
     419#: src/EventCodes.php:173 src/EventInfo.php:189
    410420msgid "Post updated."
    411421msgstr ""
    412422
    413 #: src/EventCodes.php:167
     423#: src/EventCodes.php:174 src/EventInfo.php:193
    414424#, php-format
    415425msgid "Updated the status of %s post to %s."
    416426msgstr ""
    417427
    418 #: src/EventCodes.php:168
     428#: src/EventCodes.php:175 src/EventInfo.php:197
    419429#, php-format
    420430msgid "Updated title of post %s from %s to %s."
    421431msgstr ""
    422432
    423 #: src/EventCodes.php:169
     433#: src/EventCodes.php:176 src/EventInfo.php:201
    424434#, php-format
    425435msgid "Updated content for post %s."
    426436msgstr ""
    427437
    428 #: src/EventCodes.php:170
     438#: src/EventCodes.php:177 src/EventInfo.php:205
    429439#, php-format
    430440msgid "Categories updated from %s to %s in post %s."
    431441msgstr ""
    432442
    433 #: src/EventCodes.php:171
     443#: src/EventCodes.php:178 src/EventInfo.php:209
    434444#, php-format
    435445msgid "Tags updated from %s to %s in post %s."
    436446msgstr ""
    437447
    438 #: src/EventCodes.php:172
     448#: src/EventCodes.php:179 src/EventInfo.php:213
    439449#, php-format
    440450msgid "Taxonomies updated from %s to %s in post %s."
    441451msgstr ""
    442452
    443 #: src/EventCodes.php:173
     453#: src/EventCodes.php:180 src/EventInfo.php:217
    444454#, php-format
    445455msgid "Author updated from %s to %s in post %s"
    446456msgstr ""
    447457
    448 #: src/EventCodes.php:174
     458#: src/EventCodes.php:181 src/EventInfo.php:221
    449459#, php-format
    450460msgid "Updated publish date from %s to %s for post %s"
    451461msgstr ""
    452462
    453 #: src/EventCodes.php:175
     463#: src/EventCodes.php:182 src/EventInfo.php:225
    454464#, php-format
    455465msgid "URL updated from %s to %s in post %s"
    456466msgstr ""
    457467
    458 #: src/EventCodes.php:176
     468#: src/EventCodes.php:183 src/EventInfo.php:229
    459469#, php-format
    460470msgid "Excerpt updated from %s to %s in post %s"
    461471msgstr ""
    462472
    463 #: src/EventCodes.php:177
     473#: src/EventCodes.php:184 src/EventInfo.php:233
    464474#, php-format
    465475msgid "Parent assigned to %s for post %s"
    466476msgstr ""
    467477
    468 #: src/EventCodes.php:178
     478#: src/EventCodes.php:185 src/EventInfo.php:237
    469479#, php-format
    470480msgid "Updated menu order from %s to %s in Post %s"
    471481msgstr ""
    472482
    473 #: src/EventCodes.php:179
     483#: src/EventCodes.php:186 src/EventInfo.php:261
    474484#, php-format
    475485msgid "Updated featured thumbnail to %s for %s."
    476486msgstr ""
    477487
    478 #: src/EventCodes.php:180
     488#: src/EventCodes.php:187 src/EventInfo.php:265
    479489#, php-format
    480490msgid "Added featured thumbnail %s for post %s."
    481491msgstr ""
    482492
    483 #: src/EventCodes.php:181
     493#: src/EventCodes.php:188 src/EventInfo.php:269
    484494#, php-format
    485495msgid "Removed featured post thumbnail %s for post %s."
    486496msgstr ""
    487497
    488 #: src/EventCodes.php:182
     498#: src/EventCodes.php:189 src/EventInfo.php:245
    489499#, php-format
    490500msgid "Permanently Deleted post %s."
    491501msgstr ""
    492502
    493 #: src/EventCodes.php:183
     503#: src/EventCodes.php:190 src/EventInfo.php:241
    494504#, php-format
    495505msgid "Moved post %s to trash."
    496506msgstr ""
    497507
    498 #: src/EventCodes.php:184
     508#: src/EventCodes.php:191 src/EventInfo.php:249
    499509#, php-format
    500510msgid "Restored post %s from trash."
    501511msgstr ""
    502512
    503 #: src/EventCodes.php:185
     513#: src/EventCodes.php:192 src/EventInfo.php:253
    504514#, php-format
    505515msgid "Published post %s."
    506516msgstr ""
    507517
    508 #: src/EventCodes.php:186
     518#: src/EventCodes.php:193 src/EventInfo.php:257
    509519#, php-format
    510520msgid "Post %s set as scheduled for %s."
    511521msgstr ""
    512522
    513 #: src/EventCodes.php:187
     523#: src/EventCodes.php:194 src/EventInfo.php:273
    514524#, php-format
    515525msgid "Post %s template set as %s."
    516526msgstr ""
    517527
    518 #: src/EventCodes.php:188
     528#: src/EventCodes.php:195 src/EventInfo.php:277
    519529#, php-format
    520530msgid "Modified post %s visibility from %s to %s."
    521531msgstr ""
    522532
    523 #: src/EventCodes.php:189
     533#: src/EventCodes.php:196 src/EventInfo.php:281
    524534#, php-format
    525535msgid "Set the post %s as sticky."
    526536msgstr ""
    527537
    528 #: src/EventCodes.php:190
     538#: src/EventCodes.php:197 src/EventInfo.php:285
    529539#, php-format
    530540msgid "Removed the post %s from sticky"
    531541msgstr ""
    532542
    533 #: src/EventCodes.php:191
     543#: src/EventCodes.php:198 src/EventInfo.php:289
    534544#, php-format
    535545msgid "Enabled comments for post %s."
    536546msgstr ""
    537547
    538 #: src/EventCodes.php:192
     548#: src/EventCodes.php:199 src/EventInfo.php:293
    539549#, php-format
    540550msgid "Disabled comments for post %s."
    541551msgstr ""
    542552
    543 #: src/EventCodes.php:193
     553#: src/EventCodes.php:200 src/EventInfo.php:297
    544554#, php-format
    545555msgid "Enabled pings and trackbacks for post %s."
    546556msgstr ""
    547557
    548 #: src/EventCodes.php:194
     558#: src/EventCodes.php:201 src/EventInfo.php:301
    549559#, php-format
    550560msgid "Disabled pings and trackbacks for post %s."
    551561msgstr ""
    552562
    553 #: src/EventCodes.php:195
     563#: src/EventCodes.php:202 src/EventInfo.php:305
    554564#, php-format
    555565msgid "Post %s has taken over."
    556566msgstr ""
    557567
    558 #: src/EventCodes.php:196
     568#: src/EventCodes.php:203 src/EventInfo.php:309
    559569#, php-format
    560570msgid "Created meta field %s with value %s in %s."
    561571msgstr ""
    562572
    563 #: src/EventCodes.php:197
     573#: src/EventCodes.php:204 src/EventInfo.php:313
    564574#, php-format
    565575msgid "Updated meta field %s from %s to %s in %s."
    566576msgstr ""
    567577
    568 #: src/EventCodes.php:198
     578#: src/EventCodes.php:205 src/EventInfo.php:317
    569579msgid "Post meta field has been deleted."
    570580msgstr ""
    571581
    572 #: src/EventCodes.php:200
     582#: src/EventCodes.php:207 src/EventInfo.php:321
    573583#, php-format
    574584msgid "Created category %s."
    575585msgstr ""
    576586
    577 #: src/EventCodes.php:201
     587#: src/EventCodes.php:208 src/EventInfo.php:325
    578588#, php-format
    579589msgid "Deleted category %s."
    580590msgstr ""
    581591
    582 #: src/EventCodes.php:202
     592#: src/EventCodes.php:209 src/EventInfo.php:329
    583593#, php-format
    584594msgid "Updated %s from %s (%s) to %s (%s)."
    585595msgstr ""
    586596
    587 #: src/EventCodes.php:204
     597#: src/EventCodes.php:211 src/EventInfo.php:333
    588598#, php-format
    589599msgid "Created term %s in %s."
    590600msgstr ""
    591601
    592 #: src/EventCodes.php:205
     602#: src/EventCodes.php:212 src/EventInfo.php:337
    593603#, php-format
    594604msgid "Delete term %s in %s."
    595605msgstr ""
    596606
    597 #: src/EventCodes.php:206
     607#: src/EventCodes.php:213 src/EventInfo.php:341
    598608#, php-format
    599609msgid "Updated tag %s from %s (%s) to %s (%s)."
    600610msgstr ""
    601611
    602 #: src/EventCodes.php:208
     612#: src/EventCodes.php:215 src/EventInfo.php:345
    603613#, php-format
    604614msgid "Created term %s in taxonomy %s."
    605615msgstr ""
    606616
    607 #: src/EventCodes.php:209
     617#: src/EventCodes.php:216 src/EventInfo.php:349
    608618#, php-format
    609619msgid "Deleted term %s in taxonomy %s."
    610620msgstr ""
    611621
    612 #: src/EventCodes.php:210
     622#: src/EventCodes.php:217 src/EventInfo.php:353
    613623#, php-format
    614624msgid "Updated taxonomy %s from %s (%s) to %s (%s)."
     625msgstr ""
     626
     627#: src/EventCodes.php:219
     628#, php-format
     629msgid "Completed %s."
     630msgstr ""
     631
     632#: src/EventCodes.php:220
     633#, no-php-format
     634msgid "% changed to uncompleted."
     635msgstr ""
     636
     637#: src/EventCodes.php:221
     638#, php-format
     639msgid "Enrolled to %s"
     640msgstr ""
     641
     642#: src/EventCodes.php:222
     643#, php-format
     644msgid "Unenrolled to %s"
     645msgstr ""
     646
     647#: src/EventCodes.php:223
     648#, php-format
     649msgid "Added to %s"
     650msgstr ""
     651
     652#: src/EventCodes.php:224
     653#, php-format
     654msgid "Removed from %s"
     655msgstr ""
     656
     657#: src/EventInfo.php:49
     658#, php-format
     659msgid "Deactivated the plugin %s %s"
     660msgstr ""
     661
     662#: src/EventTypes.php:30
     663msgid "Created"
     664msgstr ""
     665
     666#: src/EventTypes.php:31
     667msgid "Modified"
     668msgstr ""
     669
     670#: src/EventTypes.php:32
     671msgid "Login"
     672msgstr ""
     673
     674#: src/EventTypes.php:33
     675msgid "Logout"
     676msgstr ""
     677
     678#: src/EventTypes.php:34
     679msgid "Failed Login"
     680msgstr ""
     681
     682#: src/EventTypes.php:35
     683msgid "Trashed"
     684msgstr ""
     685
     686#: src/EventTypes.php:36
     687msgid "Deleted"
     688msgstr ""
     689
     690#: src/EventTypes.php:37
     691msgid "Restored"
     692msgstr ""
     693
     694#: src/EventTypes.php:38
     695msgid "Activated"
     696msgstr ""
     697
     698#: src/EventTypes.php:39
     699msgid "Deactivated"
     700msgstr ""
     701
     702#: src/EventTypes.php:40
     703msgid "Upgraded"
     704msgstr ""
     705
     706#: src/EventTypes.php:41
     707msgid "Installed"
     708msgstr ""
     709
     710#: src/EventTypes.php:42
     711msgid "Uploaded"
     712msgstr ""
     713
     714#: src/EventTypes.php:43
     715msgid "Opened"
     716msgstr ""
     717
     718#: src/EventTypes.php:44 src/Hooks/LearnDash.php:118
     719msgid "Completed"
     720msgstr ""
     721
     722#: src/EventTypes.php:45
     723msgid "Uncompleted"
     724msgstr ""
     725
     726#: src/EventTypes.php:46
     727msgid "Enrolled"
     728msgstr ""
     729
     730#: src/EventTypes.php:47
     731msgid "Unenrolled"
     732msgstr ""
     733
     734#: src/EventTypes.php:48
     735msgid "Added"
     736msgstr ""
     737
     738#: src/EventTypes.php:49
     739msgid "Removed"
    615740msgstr ""
    616741
     
    639764msgstr ""
    640765
    641 #: src/Hooks/Core.php:87 src/Hooks/Files.php:190 src/Hooks/Meta.php:191
    642 #: src/Hooks/Plugins.php:211 src/Hooks/Posts.php:702 src/Hooks/Settings.php:249
    643 #: src/Hooks/Taxonomies.php:203 src/Hooks/Themes.php:184
    644 #: src/Hooks/Users.php:414
     766#: src/Hooks/Core.php:87 src/Hooks/Files.php:190 src/Hooks/LearnDash.php:156
     767#: src/Hooks/Meta.php:192 src/Hooks/Plugins.php:211 src/Hooks/Posts.php:702
     768#: src/Hooks/Settings.php:249 src/Hooks/Taxonomies.php:203
     769#: src/Hooks/Themes.php:184 src/Hooks/Users.php:432
    645770msgid "User Agent"
    646771msgstr ""
     
    686811msgstr ""
    687812
     813#: src/Hooks/LearnDash.php:115 src/Hooks/Meta.php:149 src/Hooks/Posts.php:434
     814#: src/Hooks/Posts.php:445 src/Hooks/Posts.php:462 src/Hooks/Posts.php:478
     815#: src/Hooks/Posts.php:499 src/Hooks/Posts.php:511 src/Hooks/Posts.php:524
     816#: src/Hooks/Posts.php:539 src/Hooks/Posts.php:554 src/Hooks/Posts.php:569
     817#: src/Hooks/Posts.php:584 src/Hooks/Posts.php:607 src/Hooks/Posts.php:622
     818#: src/Hooks/Posts.php:636 src/Hooks/Posts.php:649 src/Hooks/Posts.php:670
     819#: src/Hooks/Posts.php:685
     820msgid "Post ID"
     821msgstr ""
     822
     823#: src/Hooks/LearnDash.php:116 src/Hooks/Meta.php:150 src/Hooks/Posts.php:435
     824#: src/Hooks/Posts.php:446 src/Hooks/Posts.php:463 src/Hooks/Posts.php:479
     825#: src/Hooks/Posts.php:500 src/Hooks/Posts.php:512 src/Hooks/Posts.php:525
     826#: src/Hooks/Posts.php:540 src/Hooks/Posts.php:555 src/Hooks/Posts.php:570
     827#: src/Hooks/Posts.php:585 src/Hooks/Posts.php:608 src/Hooks/Posts.php:623
     828#: src/Hooks/Posts.php:637 src/Hooks/Posts.php:650 src/Hooks/Posts.php:671
     829#: src/Hooks/Posts.php:686
     830msgid "Post title"
     831msgstr ""
     832
     833#: src/Hooks/LearnDash.php:117 src/Hooks/Meta.php:151 src/Hooks/Posts.php:437
     834#: src/Hooks/Posts.php:448 src/Hooks/Posts.php:465 src/Hooks/Posts.php:481
     835#: src/Hooks/Posts.php:502 src/Hooks/Posts.php:514 src/Hooks/Posts.php:527
     836#: src/Hooks/Posts.php:528 src/Hooks/Posts.php:529 src/Hooks/Posts.php:542
     837#: src/Hooks/Posts.php:543 src/Hooks/Posts.php:544 src/Hooks/Posts.php:557
     838#: src/Hooks/Posts.php:572 src/Hooks/Posts.php:587 src/Hooks/Posts.php:610
     839#: src/Hooks/Posts.php:625 src/Hooks/Posts.php:639 src/Hooks/Posts.php:652
     840#: src/Hooks/Posts.php:673 src/Hooks/Posts.php:688
     841msgid "Post type"
     842msgstr ""
     843
     844#: src/Hooks/LearnDash.php:123
     845#, php-format
     846msgid "%d%% (%d points of %d)."
     847msgstr ""
     848
     849#: src/Hooks/LearnDash.php:126
     850msgid "Evaluation Score"
     851msgstr ""
     852
     853#: src/Hooks/LearnDash.php:143
     854msgid "Edit Course"
     855msgstr ""
     856
     857#: src/Hooks/LearnDash.php:151
     858msgid "Edit Quiz"
     859msgstr ""
     860
    688861#: src/Hooks/Meta.php:142 src/Hooks/Taxonomies.php:158
    689862msgid "Edit "
    690863msgstr ""
    691864
    692 #: src/Hooks/Meta.php:149 src/Hooks/Posts.php:435 src/Hooks/Posts.php:446
    693 #: src/Hooks/Posts.php:463 src/Hooks/Posts.php:479 src/Hooks/Posts.php:500
    694 #: src/Hooks/Posts.php:512 src/Hooks/Posts.php:525 src/Hooks/Posts.php:540
    695 #: src/Hooks/Posts.php:555 src/Hooks/Posts.php:570 src/Hooks/Posts.php:585
    696 #: src/Hooks/Posts.php:608 src/Hooks/Posts.php:623 src/Hooks/Posts.php:637
    697 #: src/Hooks/Posts.php:650 src/Hooks/Posts.php:671 src/Hooks/Posts.php:686
    698 msgid "Post title"
    699 msgstr ""
    700 
    701 #: src/Hooks/Meta.php:150 src/Hooks/Posts.php:437 src/Hooks/Posts.php:448
    702 #: src/Hooks/Posts.php:465 src/Hooks/Posts.php:481 src/Hooks/Posts.php:502
    703 #: src/Hooks/Posts.php:514 src/Hooks/Posts.php:527 src/Hooks/Posts.php:528
    704 #: src/Hooks/Posts.php:529 src/Hooks/Posts.php:542 src/Hooks/Posts.php:543
    705 #: src/Hooks/Posts.php:544 src/Hooks/Posts.php:557 src/Hooks/Posts.php:572
    706 #: src/Hooks/Posts.php:587 src/Hooks/Posts.php:610 src/Hooks/Posts.php:625
    707 #: src/Hooks/Posts.php:639 src/Hooks/Posts.php:652 src/Hooks/Posts.php:673
    708 #: src/Hooks/Posts.php:688
    709 msgid "Post type"
    710 msgstr ""
    711 
    712 #: src/Hooks/Meta.php:151 src/Hooks/Posts.php:436 src/Hooks/Posts.php:447
     865#: src/Hooks/Meta.php:152 src/Hooks/Posts.php:436 src/Hooks/Posts.php:447
    713866#: src/Hooks/Posts.php:464 src/Hooks/Posts.php:480 src/Hooks/Posts.php:501
    714867#: src/Hooks/Posts.php:513 src/Hooks/Posts.php:526 src/Hooks/Posts.php:541
     
    719872msgstr ""
    720873
    721 #: src/Hooks/Meta.php:163 src/Hooks/Meta.php:178
     874#: src/Hooks/Meta.php:164 src/Hooks/Meta.php:179
    722875msgid "Meta key"
    723876msgstr ""
    724877
    725 #: src/Hooks/Meta.php:164 src/Hooks/Meta.php:179 src/Hooks/Settings.php:222
    726 #: src/Hooks/Settings.php:236 src/Hooks/Users.php:386
     878#: src/Hooks/Meta.php:165 src/Hooks/Meta.php:180 src/Hooks/Settings.php:222
     879#: src/Hooks/Settings.php:236 src/Hooks/Users.php:404
    727880msgid "Old value"
    728881msgstr ""
    729882
    730 #: src/Hooks/Meta.php:165 src/Hooks/Settings.php:211 src/Hooks/Settings.php:237
    731 #: src/Hooks/Users.php:315
     883#: src/Hooks/Meta.php:166 src/Hooks/Settings.php:211 src/Hooks/Settings.php:237
     884#: src/Hooks/Users.php:333
    732885msgid "New value"
    733886msgstr ""
     
    757910msgstr ""
    758911
    759 #: src/Hooks/Posts.php:434 src/Hooks/Posts.php:445 src/Hooks/Posts.php:462
    760 #: src/Hooks/Posts.php:478 src/Hooks/Posts.php:499 src/Hooks/Posts.php:511
    761 #: src/Hooks/Posts.php:524 src/Hooks/Posts.php:539 src/Hooks/Posts.php:554
    762 #: src/Hooks/Posts.php:569 src/Hooks/Posts.php:584 src/Hooks/Posts.php:607
    763 #: src/Hooks/Posts.php:622 src/Hooks/Posts.php:636 src/Hooks/Posts.php:649
    764 #: src/Hooks/Posts.php:670 src/Hooks/Posts.php:685
    765 msgid "Post ID"
    766 msgstr ""
    767 
    768912#: src/Hooks/Posts.php:449
    769913msgid "Old user"
     
    9981142msgstr ""
    9991143
    1000 #: src/Hooks/Users.php:289
     1144#: src/Hooks/Users.php:307
    10011145msgid "View profile"
    10021146msgstr ""
    10031147
    1004 #: src/Hooks/Users.php:289
     1148#: src/Hooks/Users.php:307
    10051149msgid "Edit user"
    10061150msgstr ""
    10071151
    1008 #: src/Hooks/Users.php:312 src/Hooks/Users.php:328 src/Hooks/Users.php:400
     1152#: src/Hooks/Users.php:330 src/Hooks/Users.php:346 src/Hooks/Users.php:418
    10091153msgid "Roles"
    10101154msgstr ""
    10111155
    1012 #: src/Hooks/Users.php:313
     1156#: src/Hooks/Users.php:331
    10131157msgid "Updated field"
    10141158msgstr ""
    10151159
    1016 #: src/Hooks/Users.php:314
     1160#: src/Hooks/Users.php:332
    10171161msgid "Previous value"
    10181162msgstr ""
    10191163
    1020 #: src/Hooks/Users.php:327 src/Hooks/Users.php:399
     1164#: src/Hooks/Users.php:345 src/Hooks/Users.php:417
    10211165msgid "User login"
    10221166msgstr ""
    10231167
    1024 #: src/Hooks/Users.php:329
     1168#: src/Hooks/Users.php:347
    10251169msgid "First name"
    10261170msgstr ""
    10271171
    1028 #: src/Hooks/Users.php:330
     1172#: src/Hooks/Users.php:348
    10291173msgid "Last name"
    10301174msgstr ""
    10311175
    1032 #: src/Hooks/Users.php:334
     1176#: src/Hooks/Users.php:352
    10331177msgid "Reassign posts"
    10341178msgstr ""
    10351179
    1036 #: src/Hooks/Users.php:363
     1180#: src/Hooks/Users.php:381
    10371181msgid "Attempts"
    10381182msgstr ""
    10391183
    1040 #: src/Hooks/Users.php:364
     1184#: src/Hooks/Users.php:382
    10411185msgid "Last attempt"
    10421186msgstr ""
    10431187
    1044 #: src/Hooks/Users.php:365
     1188#: src/Hooks/Users.php:383
    10451189msgid "Last Error"
    10461190msgstr ""
    10471191
    1048 #: src/Hooks/Users.php:385
     1192#: src/Hooks/Users.php:403
    10491193msgid "User field"
    10501194msgstr ""
    10511195
    1052 #: src/Hooks/Users.php:387
     1196#: src/Hooks/Users.php:405
    10531197msgid "New new"
    10541198msgstr ""
    10551199
    1056 #: src/Hooks/Users.php:401
     1200#: src/Hooks/Users.php:419
    10571201msgid "First Name"
    10581202msgstr ""
    10591203
    1060 #: src/Hooks/Users.php:402
     1204#: src/Hooks/Users.php:420
    10611205msgid "Last Name"
    10621206msgstr ""
  • logdash-activity-log/trunk/logdash-activity-log.php

    r3005263 r3116686  
    66 *
    77 * @wordpress-plugin
    8  * Plugin Name:       LogDash Activity Log
    9  * Plugin URI:        https://deryckoe.com/logdash-activity-log
    10  * Description:       The ultimate solution for tracking activities and security issues on your WordPress site.
    11  * Version:           1.1.4
    12  * Author:            Deryck Oñate
    13  * Author URI:        http://deryckoe.com
    14  * License:           GPL-2.0+
    15  * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
    16  * Text Domain:       logdash-activity-log
    17  * Domain Path:       /languages
     8 * Plugin Name: LogDash Activity Log
     9 * Plugin URI: https://deryckoe.com/logdash-activity-log
     10 * Description: The ultimate solution for tracking activities and security issues on your WordPress site.
     11 * Version: 1.2
     12 * Author: Deryck Oñate
     13 * Author URI: http://deryckoe.com
     14 * License: GPL-2.0+
     15 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     16 * Text Domain: logdash-activity-log
     17 * Domain Path: /languages
    1818 */
    1919
     
    2727 * Currently plugin version.
    2828 */
    29 define( 'LOGDASH_VERSION', '1.1.4' );
     29define( 'LOGDASH_VERSION', '1.2' );
    3030
    3131/**
  • logdash-activity-log/trunk/src/API/Event.php

    r3009701 r3116686  
    22
    33namespace LogDash\API;
    4 
    5 use LogDash\EventCodes;
    64
    75class Event {
     
    108
    119    public function __construct() {
    12         add_action( 'tally_get_user_ip', [ $this, 'get_ip_details' ] );
    13         add_action( 'tally_save_ip_details', [ $this, 'save_ip_details' ] );
    1410    }
    1511
     
    129125    }
    130126
    131     private function user_ip() {
     127    private function user_ip(): string {
    132128
    133129        $ip = '';
     
    135131        if ( defined( 'LOGDASH_TEST_IPS' ) && is_array( LOGDASH_TEST_IPS ) ) {
    136132            $ip = LOGDASH_TEST_IPS[ array_rand( LOGDASH_TEST_IPS ) ];
    137         }
    138 
    139         if ( ! empty( $ip ) ) {
    140             do_action( 'tally_get_user_ip', $ip );
    141 
    142             return $ip;
    143133        }
    144134
     
    158148        }
    159149
    160         do_action( 'tally_get_user_ip', $ip );
    161 
    162150        return $ip;
    163     }
    164 
    165     public function get_ip_details( $ip ) {
    166         wp_schedule_single_event( time() + 5, 'tally_save_ip_details', [ $ip ] );
    167     }
    168 
    169     public function save_ip_details( $ip ) {
    170         global $wpdb;
    171 
    172         $ip_table = DB::ip_table();
    173         $have_ip  = $wpdb->get_results( $wpdb->prepare( "SELECT ID FROM %i WHERE ip = %s", $ip_table, $ip ) );
    174 
    175         if ( ! empty( $have_ip ) ) {
    176             return;
    177         }
    178 
    179         $response = wp_remote_get( "https://api.findip.net/$ip/?token=" . LOGDASH_FINDIP_TOKEN );
    180 
    181         if ( is_array( $response ) && ! is_wp_error( $response ) ) {
    182 
    183             $body = wp_remote_retrieve_body( $response );
    184 
    185             $ip_data = json_decode( $body );
    186             $ip_info = [
    187                 'ip'           => $ip,
    188                 'city'         => $ip_data->city->names->en ?? null,
    189                 'country_name' => $ip_data->country->names->en ?? null,
    190                 'country_code' => $ip_data->country->iso_code ?? null,
    191                 'lat'          => $ip_data->location->latitude ?? null,
    192                 'lon'          => $ip_data->location->longitude ?? null,
    193                 'isp'          => $ip_data->traits->isp ?? null,
    194             ];
    195 
    196         } else {
    197 
    198             $ip_info = [
    199                 'ip'           => $ip,
    200                 'city'         => null,
    201                 'country_name' => null,
    202                 'country_code' => null,
    203                 'lat'          => null,
    204                 'lon'          => null,
    205                 'isp'          => null,
    206             ];
    207 
    208         }
    209 
    210         if ( empty( $ip_info['ip'] ) ) {
    211             return;
    212         }
    213 
    214         $format = [ '%s', '%s', '%s', '%s', '%s', '%s', '%s' ];
    215 
    216         $wpdb->insert( $ip_table, $ip_info, $format );
    217         echo $wpdb->last_error;
    218151    }
    219152
  • logdash-activity-log/trunk/src/Actions/RemoveExpiredLog.php

    r2940115 r3116686  
    3434    }
    3535
    36     public function register_expired_log_job(  ) {
     36    public function register_expired_log_job() {
    3737        if ( ! wp_next_scheduled( 'delete_expired_log' ) ) {
    3838            wp_schedule_single_event( time(), 'delete_expired_log' );
     
    5252        $site_id       = get_current_blog_id();
    5353
    54         $this->wpdb->query( "DELETE FROM $activity_log WHERE FROM_UNIXTIME(created, '%Y-%m-%d') < DATE_SUB(CURRENT_DATE, INTERVAL {$days} DAY) AND {$site_id} = 1;" );
    55         $this->wpdb->query( "DELETE FROM $activity_meta WHERE NOT EXISTS ( SELECT 1 FROM $activity_log WHERE $activity_log.ID = $activity_meta.event_id);" );
     54        $cutoff_date = strtotime( '-' . $days . ' days' );
     55
     56        $start_time = microtime( true );
     57
     58        $sql_log = "
     59        DELETE FROM %i
     60        WHERE created < %d AND site_id = %d";
     61        $this->wpdb->query($this->wpdb->prepare($sql_log, $activity_log, $cutoff_date, $site_id));
     62
     63        $sql_meta = "
     64        DELETE FROM %i
     65        WHERE event_id NOT IN (
     66            SELECT ID FROM %i
     67        )";
     68        $this->wpdb->query($this->wpdb->prepare($sql_meta, $activity_meta, $activity_log));
     69
     70        $end_time                = microtime( true );
     71        $execution_time          = $end_time - $start_time;
     72        $execution_time_readable = number_format( $execution_time, 3 ) . ' ' . __('seconds', LOGDASH_DOMAIN );
    5673
    5774        $rows_affected = $this->wpdb->rows_affected;
     
    6279
    6380        update_option( 'logdash_deleted_events', [
    64             'rows' => $rows_affected,
    65             'date' => time(),
     81            'rows'           => $rows_affected,
     82            'date'           => time(),
     83            'execution_time' => $execution_time_readable
    6684        ] );
    6785
  • logdash-activity-log/trunk/src/ActivityLog.php

    r2914549 r3116686  
    55use LogDash\Actions\RemoveExpiredLog;
    66use LogDash\Actions\ResetLog;
    7 use LogDash\Admin\EventsPage;
     7use LogDash\Admin\EventsAdminPage;
    88use LogDash\Admin\Settings;
    99use LogDash\API\Activation;
     
    1111use LogDash\Hooks\Core;
    1212use LogDash\Hooks\Files;
     13use LogDash\Hooks\LearnDash;
    1314use LogDash\Hooks\Meta;
    1415use LogDash\Hooks\Plugins;
     
    4041        $dependencies = [
    4142            Activation::class,
    42             EventsPage::class,
     43            EventsAdminPage::class,
    4344            Settings::class,
    4445            ResetLog::class,
    4546            RemoveExpiredLog::class,
     47            RestEndpoints::class,
    4648
    4749            Core::class,
     
    5254            Taxonomies::class,
    5355            Posts::class,
    54             Meta::class,
    55             RestEndpoints::class
     56            LearnDash::class,
    5657        ];
     58
     59        $integrations = apply_filters( 'logdash_integrations', [] );
    5760
    5861        foreach ( $dependencies as $dependency ) {
    5962            ( new $dependency )->init();
     63        }
     64
     65        foreach ( $integrations as $integration ) {
     66            ( new $integration )->init();
    6067        }
    6168    }
     
    6572        wp_enqueue_script( 'logdash-activity-log', LOGDASH_URL . 'assets/build/index.js', $js_dependencies, LOGDASH_VERSION, true );
    6673        wp_enqueue_style( 'logdash-activity-log', LOGDASH_URL . 'assets/build/index.css', [], LOGDASH_VERSION );
     74        wp_enqueue_script( 'logdash-select2', 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js', [ 'jquery' ] );
     75        wp_enqueue_style( 'logdash-select2', 'https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css' );
    6776    }
    6877
  • logdash-activity-log/trunk/src/Admin/Settings.php

    r3009701 r3116686  
    8686            $date           = get_date_from_gmt( $gmt_date, $display_format );
    8787
    88             $extra_description = '<br>' . sprintf( __( '%s records were deleted on %s', LOGDASH_DOMAIN ), $deletion_stats['rows'], $date );
     88            $extra_description = ' ' . sprintf( __( '%s records were deleted on %s', LOGDASH_DOMAIN ), $deletion_stats['rows'], $date );
     89
     90            if ( ! empty( $deletion_stats['execution_time'] ) ) {
     91                $extra_description .= ' ' . sprintf( __( 'and the execution time was %s', LOGDASH_DOMAIN ), $deletion_stats['execution_time'] );
     92            }
    8993        } else {
    9094            $extra_description = '';
  • logdash-activity-log/trunk/src/EventCodes.php

    r2914549 r3116686  
    107107    const TERM_DELETED = 1911;
    108108    const TERM_UPDATED = 1912;
     109
     110    const COMPLETED = 2010;
     111    const UNCOMPLETED = 2011;
     112    const ENROLLED = 2012;
     113    const UNENROLLED = 2013;
     114    const ADDED = 2014;
     115    const REMOVED = 2015;
    109116
    110117    private static array $description = [];
     
    209216            self::TERM_DELETED => __( 'Deleted term %s in taxonomy %s.', LOGDASH_DOMAIN ),
    210217            self::TERM_UPDATED => __( 'Updated taxonomy %s from %s (%s) to %s (%s).', LOGDASH_DOMAIN ),
     218
     219            self::COMPLETED => __( 'Completed %s.', LOGDASH_DOMAIN ),
     220            self::UNCOMPLETED => __( '% changed to uncompleted.', LOGDASH_DOMAIN ),
     221            self::ENROLLED => __( 'Enrolled to %s', LOGDASH_DOMAIN ),
     222            self::UNENROLLED => __( 'Unenrolled to %s', LOGDASH_DOMAIN ),
     223            self::ADDED => __( 'Added to %s', LOGDASH_DOMAIN ),
     224            self::REMOVED => __( 'Removed from %s', LOGDASH_DOMAIN ),
    211225        ];
    212226
  • logdash-activity-log/trunk/src/EventTypes.php

    r2914549 r3116686  
    1919    const UPLOADED = 'uploaded';
    2020    const OPENED = 'opened';
    21 
    22     private static array $labels = [
    23         self::CREATED      => 'Created',
    24         self::MODIFIED     => 'Modified',
    25         self::LOGIN        => 'Login',
    26         self::LOGOUT       => 'Logout',
    27         self::FAILED_LOGIN => 'Failed Login',
    28         self::TRASHED      => 'Trashed',
    29         self::DELETED      => 'Deleted',
    30         self::RESTORED     => 'Restored',
    31         self::ACTIVATED    => 'Activated',
    32         self::DEACTIVATED  => 'Deactivated',
    33         self::UPGRADED     => 'Upgraded',
    34         self::INSTALLED    => 'Installed',
    35         self::UPLOADED     => 'Uploaded',
    36         self::OPENED       => 'Opened',
    37     ];
     21    const COMPLETED = 'completed';
     22    const UNCOMPLETED = 'uncompleted';
     23    const ENROLLED = 'enrolled';
     24    const UNENROLLED = 'unenrolled';
     25    const ADDED = 'added';
     26    const REMOVED = 'removed';
    3827
    3928    public static function label( $code ) {
    40         return self::$labels[ $code ];
     29        $labels = [
     30            self::CREATED      => __( 'Created', LOGDASH_DOMAIN ),
     31            self::MODIFIED     => __( 'Modified', LOGDASH_DOMAIN ),
     32            self::LOGIN        => __( 'Login', LOGDASH_DOMAIN ),
     33            self::LOGOUT       => __( 'Logout', LOGDASH_DOMAIN ),
     34            self::FAILED_LOGIN => __( 'Failed Login', LOGDASH_DOMAIN ),
     35            self::TRASHED      => __( 'Trashed', LOGDASH_DOMAIN ),
     36            self::DELETED      => __( 'Deleted', LOGDASH_DOMAIN ),
     37            self::RESTORED     => __( 'Restored', LOGDASH_DOMAIN ),
     38            self::ACTIVATED    => __( 'Activated', LOGDASH_DOMAIN ),
     39            self::DEACTIVATED  => __( 'Deactivated', LOGDASH_DOMAIN ),
     40            self::UPGRADED     => __( 'Upgraded', LOGDASH_DOMAIN ),
     41            self::INSTALLED    => __( 'Installed', LOGDASH_DOMAIN ),
     42            self::UPLOADED     => __( 'Uploaded', LOGDASH_DOMAIN ),
     43            self::OPENED       => __( 'Opened', LOGDASH_DOMAIN ),
     44            self::COMPLETED    => __( 'Completed', LOGDASH_DOMAIN ),
     45            self::UNCOMPLETED  => __( 'Uncompleted', LOGDASH_DOMAIN ),
     46            self::ENROLLED     => __( 'Enrolled', LOGDASH_DOMAIN ),
     47            self::UNENROLLED   => __( 'Unenrolled', LOGDASH_DOMAIN ),
     48            self::ADDED        => __( 'Added', LOGDASH_DOMAIN ),
     49            self::REMOVED      => __( 'Removed', LOGDASH_DOMAIN ),
     50        ];
     51
     52        return $labels[ $code ];
    4153    }
    4254
  • logdash-activity-log/trunk/src/Hooks/Posts.php

    r2916051 r3116686  
    5454
    5555    public function actions() {
    56         add_action( 'current_screen', [ $this, 'post_opened' ] );
     56//      add_action( 'current_screen', [ $this, 'post_opened' ] );
    5757        add_action( 'pre_post_update', [ $this, 'before_post_update' ], 10, 2 );
    5858        add_action( 'wp_trash_post', [ $this, 'post_trashed' ], 10, 1 );
  • logdash-activity-log/trunk/src/Hooks/Users.php

    r3009701 r3116686  
    3030        add_action( 'wp_logout', [ $this, 'logout' ] );
    3131        add_action( 'wp_login_failed', [ $this, 'login_failed' ], 10, 2 );
    32         add_action( 'update_user_meta', [ $this, 'before_update_user_meta' ], 10, 4 );
    33         add_action( 'updated_user_meta', [ $this, 'updated_user_meta' ], 10, 4 );
     32//      add_action( 'update_user_meta', [ $this, 'before_update_user_meta' ], 10, 4 );
     33//      add_action( 'updated_user_meta', [ $this, 'updated_user_meta' ], 10, 4 );
    3434        add_action( 'admin_init', array( $this, 'extra_actions' ) );
    3535        add_filter( 'logdash_manage_columns-' . self::$object_type . '-content_event_meta', [
     
    184184        $meta_table = DB::meta_table();
    185185
    186         $current_date = date('Y-m-d');
     186        $current_date = date( 'Y-m-d' );
    187187
    188188        $user_query = $wpdb->prepare( "SELECT log.ID FROM {$log_table} AS log
     
    202202        if ( $event_id ) {
    203203
    204             $attempts = $wpdb->get_var( $wpdb->prepare("SELECT value FROM %i WHERE event_id = %d and name = 'attempts';", [ $meta_table, $event_id ] ) );
     204            $attempts = $wpdb->get_var( $wpdb->prepare( "SELECT value FROM %i WHERE event_id = %d and name = 'attempts';", [
     205                $meta_table,
     206                $event_id
     207            ] ) );
    205208
    206209            if ( ! is_null( $attempts ) ) {
     
    274277                new EventMeta( 'fieldName', $meta_key ),
    275278                new EventMeta( 'oldValue', $this->old_meta[ $meta_key ] ),
    276                 new EventMeta( 'newValue',  $meta_value ),
     279                new EventMeta( 'newValue', $meta_value ),
    277280                new EventMeta( 'userLogin', $event_user->user_login ),
    278281                new EventMeta( 'firstName', $event_user->first_name ),
     
    284287
    285288    public function event_meta_info( $output, $event_data, $meta_data ): string {
     289
     290        if ( $event_data['object_subtype'] !== 'user' ) {
     291            return $output;
     292        }
    286293
    287294        $user = ( ! empty( $event_data['object_id'] ) )
  • logdash-activity-log/trunk/vendor/composer/installed.php

    r2916058 r3116686  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'd80679f6ccdfcfa859ca34252362a905bf8cc6c0',
     6        'reference' => 'ccb6793f9d268e0ec8ca484028889db0954f1900',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'd80679f6ccdfcfa859ca34252362a905bf8cc6c0',
     16            'reference' => 'ccb6793f9d268e0ec8ca484028889db0954f1900',
    1717            'type' => 'project',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.