From 06678c7cd6fa5f16767d5d5e4f301383d12f0547 Mon Sep 17 00:00:00 2001 From: Brady Vercher Date: Wed, 3 Mar 2021 09:05:01 -0800 Subject: [PATCH] Release 1.0.0. --- CHANGELOG.md | 19 ++- languages/satispress.pot | 343 ++++++++++++++++++++++++++------------- package.json | 2 +- satispress.php | 4 +- 4 files changed, 248 insertions(+), 120 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4dbe3d..a906ec5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ ## [Unreleased] +## [1.0.0] - 2021-03-03 + +* Updated the admin interface to make it easier to manage the repository from a single screen. +* Introduced REST endpoints for managing SatisPress resources: + * `/satispress/v1/packages` + * `/satispress/v1/plugins` + * `/satispress/v1/themes` +* Removed the meta capability check from the Composer repository transformer. This allowed packages or individual releases to be filtered from `packages.json`, but prevented the transformer from being used in other scenarios. +* Removed a type hint from the `upgrader_post_install` to prevent fatal errors when a `WP_Error` object is passed as a parameter. See [#152](https://github.com/cedaro/satispress/issues/152) + ## [0.7.2] - 2021-02-11 * Fixed an incorrect variable name in the `HiddenDirectoryValidator` that caused a fatal error. @@ -92,10 +102,11 @@ Major changes include: * [Capabilities](docs/security.md#capabilities) were added for viewing and downloading packages, as well as managing SatisPress options. Only administrators have access by default. * The storage layer was abstracted to make it swappable. -[Unreleased]: https://github.com/cedaro/satispress/compare/v0.7.2...HEAD -[0.6.0]: https://github.com/cedaro/satispress/compare/v0.7.1...v0.7.2 -[0.6.0]: https://github.com/cedaro/satispress/compare/v0.7.0...v0.7.1 -[0.6.0]: https://github.com/cedaro/satispress/compare/v0.6.0...v0.7.0 +[Unreleased]: https://github.com/cedaro/satispress/compare/v1.0.0...HEAD +[1.0.0]: https://github.com/cedaro/satispress/compare/v0.7.2...v1.0.0 +[0.7.2]: https://github.com/cedaro/satispress/compare/v0.7.1...v0.7.2 +[0.7.1]: https://github.com/cedaro/satispress/compare/v0.7.0...v0.7.1 +[0.7.0]: https://github.com/cedaro/satispress/compare/v0.6.0...v0.7.0 [0.6.0]: https://github.com/cedaro/satispress/compare/v0.5.2...v0.6.0 [0.5.2]: https://github.com/cedaro/satispress/compare/v0.5.1...v0.5.2 [0.5.1]: https://github.com/cedaro/satispress/compare/v0.5.0...v0.5.1 diff --git a/languages/satispress.pot b/languages/satispress.pot index 05061ec..47b3dc9 100644 --- a/languages/satispress.pot +++ b/languages/satispress.pot @@ -2,20 +2,46 @@ # This file is distributed under the GPL-2.0-or-later. msgid "" msgstr "" -"Project-Id-Version: SatisPress 0.7.2\n" +"Project-Id-Version: SatisPress 1.0.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/satispress\n" -"POT-Creation-Date: 2021-02-11 15:33:23+00:00\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" - -#. Plugin Name of the plugin/theme +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"POT-Creation-Date: 2021-03-03T17:04:48+00:00\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"X-Generator: WP-CLI 2.4.0\n" +"X-Domain: satispress\n" + +#. Plugin Name of the plugin +#: src/Integration/Members.php:44 +#: src/Screen/Settings.php:76 +#: src/Screen/Settings.php:77 msgid "SatisPress" msgstr "" +#. Plugin URI of the plugin +msgid "https://github.com/cedaro/satispress" +msgstr "" + +#. Description of the plugin +msgid "Generate a Composer repository from installed WordPress plugins and themes." +msgstr "" + +#. Author of the plugin +msgid "Cedaro" +msgstr "" + +#. Author URI of the plugin +msgid "https://www.cedaro.com/" +msgstr "" + +#. translators: %s: documentation URL +#: src/functions.php:155 +msgid "SatisPress is missing required dependencies. Learn more." +msgstr "" + #: src/Integration/Members.php:63 msgid "Download Packages" msgstr "" @@ -28,214 +54,305 @@ msgstr "" msgid "Manage Options" msgstr "" -#: src/Provider/AdminAssets.php:58 -msgid "Are you sure you want to delete this API Key?" -msgstr "" - #: src/Provider/HealthCheck.php:64 msgid "Health Check" msgstr "" -#: src/Provider/HealthCheck.php:104 #. translators: %s: permalink screen URL -msgid "" -"SatisPress requires pretty permalinks to be enabled. Enable " -"permalinks." +#: src/Provider/HealthCheck.php:104 +msgid "SatisPress requires pretty permalinks to be enabled. Enable permalinks." msgstr "" -#: src/Screen/EditUser.php:113 -msgid "SatisPress API Keys" +#: src/REST/ApiKeysController.php:124 +#: src/REST/ApiKeysController.php:390 +msgid "The ID for the user associated with the API Key." msgstr "" -#: src/Screen/Settings.php:167 -msgid "General" +#: src/REST/ApiKeysController.php:147 +msgid "Sorry, you are not allowed to view API keys." msgstr "" -#: src/Screen/Settings.php:174 -msgid "Access" +#: src/REST/ApiKeysController.php:155 +msgid "Sorry, you are not allowed to view API keys for this user." msgstr "" -#: src/Screen/Settings.php:181 src/Screen/Settings.php:203 -#: views/packages.php:129 -msgid "Themes" +#: src/REST/ApiKeysController.php:195 +msgid "Sorry, you are not allowed to create API keys." msgstr "" -#: src/Screen/Settings.php:195 -msgid "Vendor" +#: src/REST/ApiKeysController.php:203 +msgid "Sorry, you are not allowed to create API keys for this user." msgstr "" -#: src/Screen/Settings.php:258 -msgid "" -"API Keys are used to access your SatisPress repository and download " -"packages. Your personal API keys appear below or you can create keys for " -"other users by editing their accounts." +#: src/REST/ApiKeysController.php:253 +msgid "Invalid API Key token." msgstr "" -#: src/Screen/Settings.php:264 -#. translators: %s: satispress -msgid "The password for all API Keys is %s." +#: src/REST/ApiKeysController.php:261 +msgid "Sorry, you are not allowed to delete API keys." msgstr "" -#: src/Screen/Settings.php:271 -msgid "Read more about securing your SatisPress repository." +#: src/REST/ApiKeysController.php:269 +msgid "Sorry, you are not allowed to delete API Keys for this user." msgstr "" -#: src/Screen/Settings.php:283 -msgid "Choose themes to make available in your SatisPress repository." +#: src/REST/ApiKeysController.php:362 +msgid "The date the API key was created." msgstr "" -#: src/functions.php:155 -#. translators: %s: documentation URL -msgid "" -"SatisPress is missing required dependencies. Learn more." +#: src/REST/ApiKeysController.php:368 +msgid "The date the API key was last used." msgstr "" -#: views/packages.php:44 -msgid "Homepage" +#: src/REST/ApiKeysController.php:374 +msgid "A descriptive name for the API key." msgstr "" -#: views/packages.php:50 -msgid "Authors" +#: src/REST/ApiKeysController.php:383 +msgid "The API Key token." msgstr "" -#: views/packages.php:54 -msgid "Releases" +#: src/REST/ApiKeysController.php:396 +msgid "The username for the user associated with the API key." msgstr "" -#: views/packages.php:96 -msgid "Package Type" +#: src/REST/InstalledPackagesController.php:98 +msgid "Sorry, you are not allowed to view installed packages." msgstr "" -#: views/packages.php:107 -msgid "Whitelisting Packages" +#: src/REST/InstalledPackagesController.php:177 +#: src/REST/PackagesController.php:433 +msgid "The name of the package author." msgstr "" -#: views/packages.php:109 -msgid "" -"Plugins and themes need to be whitelisted to make them available as " -"Composer packages." +#: src/REST/InstalledPackagesController.php:183 +#: src/REST/PackagesController.php:439 +msgid "The package author URL." msgstr "" -#: views/packages.php:112 -msgid "Read more about whitelisting plugins and themes." +#: src/REST/InstalledPackagesController.php:190 +#: src/REST/PackagesController.php:467 +msgid "The package description." msgstr "" -#: views/packages.php:115 -msgid "Plugins" +#: src/REST/InstalledPackagesController.php:196 +#: src/REST/PackagesController.php:473 +msgid "The package URL." msgstr "" -#: views/packages.php:121 -#. translators: %s: Plugins screen URL -msgid "" -"Plugins can be whitelisted by visiting the Plugins " -"→ Installed Plugins screen and toggling the checkbox for each " -"plugin in the \"SatisPress\" column." +#: src/REST/InstalledPackagesController.php:203 +#: src/REST/PackagesController.php:480 +msgid "The name of the package." msgstr "" -#: views/packages.php:135 -#. translators: %s: SatisPress settings screen URL -msgid "" -"Themes can be toggled on the Settings → " -"SatisPress screen." +#: src/REST/InstalledPackagesController.php:209 +#: src/REST/PackagesController.php:509 +msgid "The package slug." +msgstr "" + +#: src/REST/InstalledPackagesController.php:215 +#: src/REST/PackagesController.php:133 +#: src/REST/PackagesController.php:516 +msgid "Type of package." +msgstr "" + +#: src/REST/PackagesController.php:157 +msgid "Sorry, you are not allowed to view packages." +msgstr "" + +#: src/REST/PackagesController.php:202 +msgid "Sorry, you are not allowed to add packages to the repository." +msgstr "" + +#: src/REST/PackagesController.php:211 +#: src/REST/PackagesController.php:276 +msgid "Invalid package." +msgstr "" + +#: src/REST/PackagesController.php:267 +msgid "Sorry, you are not allowed to delete this package." +msgstr "" + +#: src/REST/PackagesController.php:334 +msgid "Limit results to packages of one or more types." +msgstr "" + +#: src/REST/PackagesController.php:446 +msgid "Package data formatted for Composer." +msgstr "" + +#: src/REST/PackagesController.php:452 +msgid "Composer package name." +msgstr "" + +#: src/REST/PackagesController.php:458 +msgid "Composer package type." msgstr "" -#: views/screen-settings.php:18 +#: src/REST/PackagesController.php:486 +msgid "A list of package releases." +msgstr "" + +#: src/REST/PackagesController.php:495 +msgid "A URL to download the release." +msgstr "" + +#: src/REST/PackagesController.php:501 +msgid "The release version." +msgstr "" + +#: src/Screen/EditUser.php:108 +msgid "SatisPress API Keys" +msgstr "" + +#: src/Screen/Settings.php:151 +msgid "General" +msgstr "" + +#: src/Screen/Settings.php:165 +msgid "Vendor" +msgstr "" + +#: src/Screen/Settings.php:198 +msgid "Repository" +msgstr "" + +#: src/Screen/Settings.php:202 +msgid "Access" +msgstr "" + +#: src/Screen/Settings.php:207 +msgid "Composer" +msgstr "" + +#: src/Screen/Settings.php:211 msgid "Settings" msgstr "" -#: views/screen-settings.php:19 -msgid "Packages" +#: views/tabs/access.php:16 +msgid "API keys are used to access your SatisPress repository and download packages. Your personal API keys appear below or you can create keys for other users by editing their accounts." +msgstr "" + +#. translators: %s: satispress +#: views/tabs/access.php:22 +msgid "The password for all API keys is %s." +msgstr "" + +#: views/tabs/access.php:29 +msgid "Read more about securing your SatisPress repository." msgstr "" -#: views/screen-settings.php:24 +#: views/tabs/composer.php:17 msgid "Your SatisPress repository is available at:" msgstr "" -#: views/screen-settings.php:33 #. translators: 1: repositories, 2: composer.json +#: views/tabs/composer.php:26 msgid "Add it to the %1$s list in your %2$s:" msgstr "" -#: views/templates.php:17 views/templates.php:37 +#. translators: 1: config +#: views/tabs/composer.php:47 +msgid "Or run the %1$s command:" +msgstr "" + +#: assets/js/components/access-table.js:17 +msgid "Add an API Key to access the SatisPress repository." +msgstr "" + +#: assets/js/components/access-table.js:35 +#: assets/js/components/api-key-form.js:25 msgid "Name" msgstr "" -#: views/templates.php:18 +#: assets/js/components/access-table.js:36 msgid "User" msgstr "" -#: views/templates.php:19 +#: assets/js/components/access-table.js:37 msgid "API Key" msgstr "" -#: views/templates.php:20 +#: assets/js/components/access-table.js:38 msgid "Last Used" msgstr "" -#: views/templates.php:21 +#: assets/js/components/access-table.js:39 msgid "Created" msgstr "" -#: views/templates.php:28 -msgid "Add an API Key to access the SatisPress repository." +#: assets/js/components/access-table.js:85 +msgid "Toggle dropdown" msgstr "" -#: views/templates.php:36 +#: assets/js/components/api-key-form.js:23 msgid "API Key Name" msgstr "" -#: views/templates.php:39 +#: assets/js/components/api-key-form.js:37 msgid "Create API Key" msgstr "" -#: views/templates.php:66 -msgid "Toggle dropdown" +#: assets/js/components/package-selector.js:37 +msgid "Plugins" msgstr "" -#: views/templates.php:72 -msgid "Revoke" +#: assets/js/components/package-selector.js:42 +msgid "Themes" msgstr "" -#: views/templates.php:82 -msgid "Download URL" +#: assets/js/components/package-selector.js:69 +#: assets/js/repository.js:44 +msgid "Manage Packages" msgstr "" -#: views/templates.php:86 -msgid "Require" +#: assets/js/components/package-selector.js:71 +msgid "Close package inserter" msgstr "" -#: views/templates.php:93 -#. translators: %s: composer.json -msgid "Copy and paste into %s" +#: assets/js/components/package-table.js:31 +msgid "Homepage" msgstr "" -#: views/templates.php:100 -msgid "CLI Command" +#: assets/js/components/package-table.js:35 +msgid "Authors" +msgstr "" + +#: assets/js/components/package-table.js:39 +msgid "Releases" +msgstr "" + +#: assets/js/components/package-table.js:45 +msgid "Package Type" msgstr "" -#: views/templates.php:108 #. translators: %s: version number +#: assets/js/components/release-actions.js:20 msgid "Download %s" msgstr "" -#. Plugin URI of the plugin/theme -msgid "https://github.com/cedaro/satispress" +#. translators: %s: composer.json +#: assets/js/components/release-actions.js:23 +msgid "Copy and paste into %s" msgstr "" -#. Description of the plugin/theme -msgid "Generate a Composer repository from installed WordPress plugins and themes." +#: assets/js/components/release-actions.js:31 +msgid "Download URL" msgstr "" -#. Author of the plugin/theme -msgid "Cedaro" +#: assets/js/components/release-actions.js:44 +msgid "Require" msgstr "" -#. Author URI of the plugin/theme -msgid "https://www.cedaro.com/" +#: assets/js/components/release-actions.js:60 +msgid "CLI Command" msgstr "" -#: views/packages.php:77 -msgctxt "latest version" -msgid "Latest" -msgstr "" \ No newline at end of file +#: assets/js/components/repository.js:10 +#: assets/js/components/repository.js:17 +msgid "Add Packages" +msgstr "" + +#: assets/js/components/repository.js:11 +msgid "Get started by adding plugins and themes to your local repository. Packages in your repositority will be available for you to install with Composer." +msgstr "" diff --git a/package.json b/package.json index cabe3bf..bb690a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "satispress", - "version": "1.0.0-beta", + "version": "1.0.0", "description": "Generate a Composer repository from installed WordPress plugins and themes.", "repository": { "type": "git", diff --git a/satispress.php b/satispress.php index 0274b70..79c4b59 100644 --- a/satispress.php +++ b/satispress.php @@ -10,7 +10,7 @@ * Plugin Name: SatisPress * Plugin URI: https://github.com/cedaro/satispress * Description: Generate a Composer repository from installed WordPress plugins and themes. - * Version: 1.0.0-beta + * Version: 1.0.0 * Author: Cedaro * Author URI: https://www.cedaro.com/ * License: GPL-2.0-or-later @@ -37,7 +37,7 @@ * * @var string */ -const VERSION = '1.0.0-beta'; +const VERSION = '1.0.0'; // Load the Composer autoloader. if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {