Plugin Directory

Changeset 3470597


Ignore:
Timestamp:
02/26/2026 05:47:05 PM (5 weeks ago)
Author:
aldeng
Message:

5.1.5

Location:
event-agent/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • event-agent/trunk/README.txt

    r3456045 r3470597  
    99Requires at least: 6.0
    1010Tested up to:      8.0
    11 Stable tag:        5.1.4
    12 Version:           5.1.4
     11Stable tag:        5.1.5
     12Version:           5.1.5
    1313License:           GPLv2 or later
    1414License URI:       http://www.gnu.org/licenses/gpl-2.0.html
  • event-agent/trunk/admin/Event_Agent_Admin.php

    r3455653 r3470597  
    434434        );
    435435
    436         //add_menu_page(
    437         //    __('Create Keys', 'event-agent'),
    438         //    __('Create Keys', 'event-agent'),
    439         //    'manage_options',
    440         //    'ea-createKeys',
    441         //    function() { return require_once(dirname( __FILE__ ) . '/partials/createKeys.php'); },
    442         //    'dashicons-admin-users',
    443         //    24
    444         //);
     436        add_menu_page(
     437            __('Create Keys', 'event-agent'),
     438            __('Create Keys', 'event-agent'),
     439            'manage_options',
     440            'ea-createKeys',
     441            function() { return require_once(dirname( __FILE__ ) . '/partials/createKeys.php'); },
     442            'dashicons-admin-users',
     443            24
     444        );
    445445    }
    446446}
  • event-agent/trunk/event-agent.php

    r3456045 r3470597  
    1111 * Plugin URI:        https://www.eventagent.ai/
    1212 * Description:       EventAgent.ai combines a next generation event management system with AI-powered marketing to maximize your sales.  AI makes all the difference.
    13  * Version:           5.1.4
     13 * Version:           5.1.5
    1414 * Requires at least: 6.0
    1515 * Requires PHP:      8.0
     
    2525}
    2626
    27 define( 'EVENT_AGENT_VERSION', '5.1.4' );
     27define( 'EVENT_AGENT_VERSION', '5.1.5' );
    2828
    2929require_once dirname(__FILE__).'/includes/activate.php';
  • event-agent/trunk/lib/vue-recaptcha/dist/vue-recaptcha.min.js

    r3455988 r3470597  
     1//1.3.0
    12!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).VueRecaptcha = t() }(this, (function () { "use strict"; function e() { return (e = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var i = arguments[t]; for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]) } return e }).apply(this, arguments) } var t = function () { var e = !1, t = []; return { resolved: function () { return e }, resolve: function (i) { if (!e) { e = !0; for (var n = 0, r = t.length; n < r; n++)t[n](i) } }, promise: { then: function (i) { e ? i() : t.push(i) } } } }, i = Object.prototype.hasOwnProperty; var n, r = (n = t(), { notify: function () { n.resolve() }, wait: function () { return n.promise }, render: function (e, t, i) { this.wait().then((function () { i(window.grecaptcha.render(e, t)) })) }, reset: function (e) { void 0 !== e && (this.assertLoaded(), this.wait().then((function () { return window.grecaptcha.reset(e) }))) }, execute: function (e) { void 0 !== e && (this.assertLoaded(), this.wait().then((function () { return window.grecaptcha.execute(e) }))) }, checkRecaptchaLoad: function () { i.call(window, "grecaptcha") && i.call(window.grecaptcha, "render") && this.notify() }, assertLoaded: function () { if (!n.resolved()) throw new Error("ReCAPTCHA has not been loaded") } }); return "undefined" != typeof window && (window.vueRecaptchaApiLoaded = r.notify), { name: "VueRecaptcha", props: { sitekey: { type: String, required: !0 }, theme: { type: String }, badge: { type: String }, type: { type: String }, size: { type: String }, tabindex: { type: String }, loadRecaptchaScript: { type: Boolean, default: !1 }, recaptchaScriptId: { type: String, default: "__RECAPTCHA_SCRIPT" }, recaptchaHost: { type: String, default: "www.google.com" }, language: { type: String, default: "" } }, beforeMount: function () { if (this.loadRecaptchaScript && !document.getElementById(this.recaptchaScriptId)) { var e = document.createElement("script"); e.id = this.recaptchaScriptId, e.src = "https://" + this.recaptchaHost + "/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl=" + this.language, e.async = !0, e.defer = !0, document.head.appendChild(e) } }, mounted: function () { var t = this; r.checkRecaptchaLoad(); var i = e({}, this.$props, { callback: this.emitVerify, "expired-callback": this.emitExpired, "error-callback": this.emitError }), n = this.$slots.default ? this.$el.children[0] : this.$el; r.render(n, i, (function (e) { t.$widgetId = e, t.$emit("render", e) })) }, methods: { reset: function () { r.reset(this.$widgetId) }, execute: function () { r.execute(this.$widgetId) }, emitVerify: function (e) { this.$emit("verify", e) }, emitExpired: function () { this.$emit("expired") }, emitError: function () { this.$emit("error") } }, render: function (e) { return e("div", {}, this.$slots.default) } } }));
  • event-agent/trunk/public/Event_Agent_Public.php

    r3455988 r3470597  
    111111                        wp_enqueue_script('luxon', plugin_dir_url(dirname(__FILE__, 1)) . 'lib/luxon/build/global/luxon.min.js', array(), '1.28.1');
    112112                        wp_enqueue_script('stripe', 'https://js.stripe.com/v3/', array(), $this->version);
    113                         wp_enqueue_script('recaptcha', 'https://www.google.com/recaptcha/api.js', array(), $this->version);
     113                        //wp_enqueue_script('recaptcha', 'https://www.google.com/recaptcha/api.js', array(), $this->version);
    114114                        wp_enqueue_script('vue-recaptcha', plugin_dir_url(dirname(__FILE__, 1)) . 'lib/vue-recaptcha/dist/vue-recaptcha.min.js', array(), '1.3.0');
    115115                        $dependencies = ['rrule'];
     
    118118                    {
    119119                        wp_enqueue_script('stripe', 'https://js.stripe.com/v3/', array(), $this->version);
    120                         wp_enqueue_script('recaptcha', 'https://www.google.com/recaptcha/api.js', array(), $this->version);
     120                        //wp_enqueue_script('recaptcha', 'https://www.google.com/recaptcha/api.js', array(), $this->version);
    121121                        wp_enqueue_script('vue-recaptcha', plugin_dir_url(dirname(__FILE__, 1)) . 'lib/vue-recaptcha/dist/vue-recaptcha.min.js', array(), '1.3.0');
    122122                    }
  • event-agent/trunk/public/js/event-vue.js

    r3456045 r3470597  
    309309
    310310            saveRegistration: function () {
     311                //grecaptcha.execute();
    311312                this.$refs.recaptcha.execute();
    312313            },
     
    397398
    398399                this.paymentProcessing = true;
    399                 var tz = '&timezone=' + Intl.DateTimeFormat().resolvedOptions().timeZone;
     400                var tz = '?timezone=' + Intl.DateTimeFormat().resolvedOptions().timeZone;
    400401                var ug = eaSessionGet('upgrade-' + this.event.id) === null ? '' : eaSessionGet('upgrade-' + this.event.id);
    401                 // BUGBUG bypass recaptcha for now
    402                 recaptchaToken = null;
    403                 axios.post(wpData.eaUrl + '/api/Registrations/?recaptchaToken=' + recaptchaToken + tz + ug, registration, { headers: wpData.headers })
     402                registration.recaptchaToken = recaptchaToken;
     403                axios.post(wpData.eaUrl + 'api/Registrations/' + tz + ug, registration, { headers: wpData.headers })
    404404                    .then(response => {
    405405                        eaSessionSet('upgrade-' + this.event.id, '', 0);
     
    431431                                            this.$message({ message: eaTranslate('Subscription successful.  Check your email for a confirmation.'), duration: 4000, type: 'success', offset: 40, customClass: 'ea-message' });
    432432                                            if (typeof (gtag) === "function") {
    433                                                 appInsights.trackTrace({ message: 'subscription google event with balance. registrationId=' + response.data.id, severityLevel: 3 });
     433                                                //appInsights.trackTrace({ message: 'subscription google event with balance. registrationId=' + response.data.id, severityLevel: 3 });
    434434                                                gtag('event', 'subscription', {
    435435                                                    'event_category': this.event.categories.length ? this.event.categories[0].name : 'None',
     
    508508                                    this.$message({ message: eaTranslate('Registration successful.  Check your email for a confirmation.'), duration: 4000, type: 'success', offset: 40, customClass: 'ea-message' });
    509509                                if (typeof (gtag) === "function") {
    510                                     appInsights.trackTrace({ message: 'subscription google event no balance. registrationId=' + response.data.id, severityLevel: 3 });
     510                                    //appInsights.trackTrace({ message: 'subscription google event no balance. registrationId=' + response.data.id, severityLevel: 3 });
    511511                                    gtag('event', this.event.type === 'Ongoing' ? 'subscription' : 'registration', {
    512512                                        'event_category': this.event.categories.length ? this.event.categories[0].name : 'None',
Note: See TracChangeset for help on using the changeset viewer.