Skip to content

Commit

Permalink
Merge pull request #201 from PurpleTurtleCreative/release-v4
Browse files Browse the repository at this point in the history
Release v4.0.0 – WordPress.org Plugins official listing and hosting
  • Loading branch information
MichelleBlanchette authored Dec 10, 2023
2 parents 51c30fc + 4fb7425 commit 72a052c
Show file tree
Hide file tree
Showing 93 changed files with 10,331 additions and 10,239 deletions.
15 changes: 12 additions & 3 deletions exclude.lst → .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ completionist/*.log
completionist/*.map
completionist/*.sh
completionist/*.DS_Store
completionist/.git*
completionist/action.yml
completionist/exclude.lst
completionist/.gitignore
completionist/.github/*
completionist/.github
completionist/.git/*
completionist/.git
completionist/.wordpress-org/*
completionist/.wordpress-org
completionist/.distignore
completionist/composer.json
completionist/composer.lock
completionist/node_modules/*
completionist/node_modules
completionist/package-lock.json
completionist/package.json
completionist/phpcs.xml
completionist/assets/styles/scss/*
completionist/assets/styles/scss
completionist/src/components/*
completionist/src/components
completionist/src/*.js
completionist/src/*.jsx
26 changes: 26 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PHPCS Check

on:
pull_request:
paths:
- '**.php'

jobs:
phpcs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'

- name: Install Composer dependencies
run: composer install

- name: Run PHPCS
run: |
vendor/bin/phpcs -n --ignore="*/vendor/*" --extensions=php .
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Release

on:
push:
tags:
- "v*"
- "!v**-rc.*"

jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Build - Install
run: ./build_install.sh
shell: bash

- name: Bundle Package
run: ./bundle.sh
shell: bash

- name: Upload ZIP File
uses: actions/upload-artifact@v3
with:
name: ${{ env.PTC_PLUGIN_ZIP_FILE_BASENAME }}
path: ${{ env.PTC_PLUGIN_ZIP_FILE }}

- name: Publish WordPress Plugin Release
uses: 10up/action-wordpress-plugin-deploy@stable
with:
dry-run: true
generate-zip: false
env:
SVN_USERNAME: ${{ secrets.WPORG_SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.WPORG_SVN_PASSWORD }}
Binary file added .wordpress-org/banner-1544x500.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/banner-772x250.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/icon-128x128.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/icon-256x256.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 0 additions & 29 deletions README.md

This file was deleted.

22 changes: 11 additions & 11 deletions assets/scripts/admin-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,30 +67,30 @@ jQuery(function($) {
return;
}

var data = {
'action': 'ptc_get_tag_options',
'nonce': ptc_completionist_dashboard.nonce,
let data = {
'_wpnonce': window.ptc_completionist_dashboard.api.auth_nonce,
'nonce': window.ptc_completionist_dashboard.api.nonce_get_tags,
'workspace_gid': workspace_gid,
};

$.post(ajaxurl, data, function(res) {
$.getJSON(`${window.ptc_completionist_dashboard.api.v1}/tags`, data, function(res) {

if(res.status == 'success') {
if(res.data != '') {
selectTag.append(res.data);
if(res?.status == 'success') {
if(res?.data?.html_options != '') {
selectTag.append(res.data.html_options);
selected_tag_id = selectTag.find('option:selected').val();
if(selected_tag_id) {
ptc_completionist_dashboard.saved_tag_gid = selected_tag_id;
}
}
disable_element(selectTag, false);
} else if(res.status == 'error' && res.data != '') {
display_alert_note_after(res.data, tagWarningNote);
} else if(res?.status == 'error' && res?.message != '') {
display_alert_note_after(res.message, tagWarningNote);
} else {
alert('Failed to load tag options.');
}

}, 'json')
})
.fail(function() {
alert('Failed to load tag options.');
})
Expand Down Expand Up @@ -118,4 +118,4 @@ jQuery(function($) {
.insertAfter(jquery_obj);
}

});//end document ready
});//end document ready
Loading

0 comments on commit 72a052c

Please sign in to comment.