Changeset 3470597
- Timestamp:
- 02/26/2026 05:47:05 PM (5 weeks ago)
- Location:
- event-agent/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (1 diff)
-
admin/Event_Agent_Admin.php (modified) (1 diff)
-
event-agent.php (modified) (2 diffs)
-
lib/vue-recaptcha/dist/vue-recaptcha.min.js (modified) (1 diff)
-
public/Event_Agent_Public.php (modified) (2 diffs)
-
public/js/event-vue.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
event-agent/trunk/README.txt
r3456045 r3470597 9 9 Requires at least: 6.0 10 10 Tested up to: 8.0 11 Stable tag: 5.1. 412 Version: 5.1. 411 Stable tag: 5.1.5 12 Version: 5.1.5 13 13 License: GPLv2 or later 14 14 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
event-agent/trunk/admin/Event_Agent_Admin.php
r3455653 r3470597 434 434 ); 435 435 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 //24444 //);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 ); 445 445 } 446 446 } -
event-agent/trunk/event-agent.php
r3456045 r3470597 11 11 * Plugin URI: https://www.eventagent.ai/ 12 12 * 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. 413 * Version: 5.1.5 14 14 * Requires at least: 6.0 15 15 * Requires PHP: 8.0 … … 25 25 } 26 26 27 define( 'EVENT_AGENT_VERSION', '5.1. 4' );27 define( 'EVENT_AGENT_VERSION', '5.1.5' ); 28 28 29 29 require_once dirname(__FILE__).'/includes/activate.php'; -
event-agent/trunk/lib/vue-recaptcha/dist/vue-recaptcha.min.js
r3455988 r3470597 1 //1.3.0 1 2 !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 111 111 wp_enqueue_script('luxon', plugin_dir_url(dirname(__FILE__, 1)) . 'lib/luxon/build/global/luxon.min.js', array(), '1.28.1'); 112 112 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); 114 114 wp_enqueue_script('vue-recaptcha', plugin_dir_url(dirname(__FILE__, 1)) . 'lib/vue-recaptcha/dist/vue-recaptcha.min.js', array(), '1.3.0'); 115 115 $dependencies = ['rrule']; … … 118 118 { 119 119 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); 121 121 wp_enqueue_script('vue-recaptcha', plugin_dir_url(dirname(__FILE__, 1)) . 'lib/vue-recaptcha/dist/vue-recaptcha.min.js', array(), '1.3.0'); 122 122 } -
event-agent/trunk/public/js/event-vue.js
r3456045 r3470597 309 309 310 310 saveRegistration: function () { 311 //grecaptcha.execute(); 311 312 this.$refs.recaptcha.execute(); 312 313 }, … … 397 398 398 399 this.paymentProcessing = true; 399 var tz = ' &timezone=' + Intl.DateTimeFormat().resolvedOptions().timeZone;400 var tz = '?timezone=' + Intl.DateTimeFormat().resolvedOptions().timeZone; 400 401 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 }) 404 404 .then(response => { 405 405 eaSessionSet('upgrade-' + this.event.id, '', 0); … … 431 431 this.$message({ message: eaTranslate('Subscription successful. Check your email for a confirmation.'), duration: 4000, type: 'success', offset: 40, customClass: 'ea-message' }); 432 432 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 }); 434 434 gtag('event', 'subscription', { 435 435 'event_category': this.event.categories.length ? this.event.categories[0].name : 'None', … … 508 508 this.$message({ message: eaTranslate('Registration successful. Check your email for a confirmation.'), duration: 4000, type: 'success', offset: 40, customClass: 'ea-message' }); 509 509 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 }); 511 511 gtag('event', this.event.type === 'Ongoing' ? 'subscription' : 'registration', { 512 512 'event_category': this.event.categories.length ? this.event.categories[0].name : 'None',
Note: See TracChangeset
for help on using the changeset viewer.