Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
haruncpi committed Aug 17, 2024
1 parent b2360ff commit 055e5fe
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Ajax
* Description: Ajax request testing
* Author: haruncpi
* Version: 1.0.4
* Version: 1.0.5
* Author URI: https://github.com/haruncpi
* Requires PHP: 7.4
* Requires at least: 5.3
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ const makePod = (cb) => {
const build = cb => src(buildFiles).pipe(dest(`${buildDest}/${pluginName}`))
const buildZip = cb => src(`${buildDest}/**/*`).pipe(zip(zipName)).pipe(dest('./'))


exports.clear = series(cleanZip, cleanBuild)
exports.build = series(cleanZip, cleanBuild, makePod, build, buildZip)
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WP Ajax
A WordPress plugin to test WordPress Ajax APIs

[Download latest version](https://github.com/haruncpi/wp-ajax/releases/download/v1.0.4/ajax-1.0.4.zip)
[Download latest version](https://github.com/haruncpi/wp-ajax/releases/download/v1.0.5/ajax-1.0.5.zip)
3 changes: 3 additions & 0 deletions src/Hooks/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public function load_admin_assets() {
true
);

wp_enqueue_script( 'thickbox' );
wp_enqueue_style( 'thickbox' );

wp_localize_script(
'ajax-react-app',
'_ajax',
Expand Down
6 changes: 3 additions & 3 deletions src/Updater/plugin.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name" : "Ajax",
"slug" : "ajax",
"version" : "1.0.4",
"download_url" : "https://github.com/haruncpi/wp-ajax/releases/download/v1.0.4/ajax-1.0.4.zip",
"version" : "1.0.5",
"download_url" : "https://github.com/haruncpi/wp-ajax/releases/download/v1.0.5/ajax-1.0.5.zip",
"author" : "<a href='https://github.com/haruncpi'>Harun</a>",
"author_profile" : "https://github.com/haruncpi",
"requires" : "5.0",
"tested" : "6.6",
"requires_php" : "7.4",
"last_updated" : "2024-08-16 00:00:00",
"last_updated" : "2024-08-17 00:00:00",
"sections" : {
"description" : "This simple plugin does nothing, only gets updates from a custom server",
"installation" : "Click the activate button and that's it.",
Expand Down
23 changes: 22 additions & 1 deletion src/Views/index-angular.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,34 @@
</div>
</div>

<?php add_thickbox(); ?>
<div id="param-info-thickbox" style="display:none;">
<p style="margin-bottom: 0;">Key value pair with (:) separated.
<br>
<br>
<strong>Example</strong>
<br>
<pre style="margin-top: 0;">
name:jhon
nage:25
city:dhaka
email:jhon@example.com
hobbies[]:drawing
hobbies[]:swimming
hobbies[]:cricket
</pre>
</p>
</div>

<div class="body-wrapper">
<input type="hidden" class="ajax_url" value="<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>">
<div class="input-wrapper">

<div class="ajax-actions">
<div class="display-flex align-items-center gap-10">
<strong>Params</strong>
<strong>
<a style="color: #777;" href="#TB_inline?width=300&height=220&inlineId=param-info-thickbox" title="Params" class="dashicons dashicons-info-outline thickbox"></a>
Params</strong>
</div>
<div>
<span class="selected-title" ng-show="model.id"><strong>Selected</strong>: {{model.title}}</span>
Expand Down

0 comments on commit 055e5fe

Please sign in to comment.