mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-22 10:58:58 +00:00
Regenerated composer.lock, reformatted config.xml and replaced let as well as arrow functions in patchtester.js file.
This commit is contained in:
parent
502a4937ba
commit
4103c5f154
@ -2,18 +2,18 @@
|
||||
<config>
|
||||
|
||||
<fieldset
|
||||
name="repositories"
|
||||
label="COM_PATCHTESTER_FIELDSET_REPOSITORIES_LABEL"
|
||||
description="COM_PATCHTESTER_FIELDSET_REPOSITORIES_DESC"
|
||||
name="repositories"
|
||||
label="COM_PATCHTESTER_FIELDSET_REPOSITORIES_LABEL"
|
||||
description="COM_PATCHTESTER_FIELDSET_REPOSITORIES_DESC"
|
||||
>
|
||||
|
||||
<field
|
||||
name="repository"
|
||||
type="list"
|
||||
label="COM_PATCHTESTER_FIELD_REPOSITORY_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_REPOSITORY_DESC"
|
||||
default="joomla:joomla-cms"
|
||||
onchange="if (jQuery(this).val() != 'custom') { var parts = jQuery(this).val().split(':'); } else { var parts = ['', '']; } document.getElementById('jform_org').value = parts[0]; document.getElementById('jform_repo').value = parts[1];"
|
||||
name="repository"
|
||||
type="list"
|
||||
label="COM_PATCHTESTER_FIELD_REPOSITORY_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_REPOSITORY_DESC"
|
||||
default="joomla:joomla-cms"
|
||||
onchange="if (jQuery(this).val() != 'custom') { var parts = jQuery(this).val().split(':'); } else { var parts = ['', '']; } document.getElementById('jform_org').value = parts[0]; document.getElementById('jform_repo').value = parts[1];"
|
||||
>
|
||||
<option value="joomla:joomla-cms">COM_PATCHTESTER_FIELD_REPOSITORY_OPTION_JOOMLA_CMS</option>
|
||||
<option value="joomla-extensions:patchtester">COM_PATCHTESTER_FIELD_REPOSITORY_OPTION_PATCHTESTER</option>
|
||||
@ -23,40 +23,40 @@
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="org"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_ORG_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_ORG_DESC"
|
||||
default="joomla"
|
||||
id="org"
|
||||
showon="repository:custom"
|
||||
name="org"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_ORG_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_ORG_DESC"
|
||||
default="joomla"
|
||||
id="org"
|
||||
showon="repository:custom"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="repo"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_REPO_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_REPO_DESC"
|
||||
default="joomla-cms"
|
||||
id="repo"
|
||||
showon="repository:custom"
|
||||
name="repo"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_REPO_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_REPO_DESC"
|
||||
default="joomla-cms"
|
||||
id="repo"
|
||||
showon="repository:custom"
|
||||
/>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset
|
||||
name="authentication"
|
||||
label="COM_PATCHTESTER_FIELDSET_AUTHENTICATION_LABEL"
|
||||
description="COM_PATCHTESTER_FIELDSET_AUTHENTICATION_DESC"
|
||||
name="authentication"
|
||||
label="COM_PATCHTESTER_FIELDSET_AUTHENTICATION_LABEL"
|
||||
description="COM_PATCHTESTER_FIELDSET_AUTHENTICATION_DESC"
|
||||
>
|
||||
|
||||
<field
|
||||
name="gh_auth"
|
||||
type="list"
|
||||
label="COM_PATCHTESTER_FIELD_GH_AUTH_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_GH_AUTH_DESC"
|
||||
default=""
|
||||
onchange="jQuery('#jform_gh_user, #jform_gh_password, #jform_gh_token').val('');"
|
||||
name="gh_auth"
|
||||
type="list"
|
||||
label="COM_PATCHTESTER_FIELD_GH_AUTH_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_GH_AUTH_DESC"
|
||||
default=""
|
||||
onchange="jQuery('#jform_gh_user, #jform_gh_password, #jform_gh_token').val('');"
|
||||
>
|
||||
<option value="">JNONE</option>
|
||||
<option value="credentials">COM_PATCHTESTER_FIELD_GH_AUTH_OPTION_CREDENTIALS</option>
|
||||
@ -65,56 +65,56 @@
|
||||
|
||||
<!-- Note: Default username is a space to avoid browser autocomplete. -->
|
||||
<field
|
||||
name="gh_user"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_GH_USER_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_GH_USER_DESC"
|
||||
autocomplete="off"
|
||||
default=" "
|
||||
showon="gh_auth:credentials"
|
||||
name="gh_user"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_GH_USER_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_GH_USER_DESC"
|
||||
autocomplete="off"
|
||||
default=" "
|
||||
showon="gh_auth:credentials"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="gh_password"
|
||||
type="password"
|
||||
label="COM_PATCHTESTER_FIELD_GH_PASSWORD_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_GH_PASSWORD_DESC"
|
||||
autocomplete="off"
|
||||
default=""
|
||||
showon="gh_auth:credentials"
|
||||
name="gh_password"
|
||||
type="password"
|
||||
label="COM_PATCHTESTER_FIELD_GH_PASSWORD_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_GH_PASSWORD_DESC"
|
||||
autocomplete="off"
|
||||
default=""
|
||||
showon="gh_auth:credentials"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="gh_token"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_GH_TOKEN_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_GH_TOKEN_DESC"
|
||||
showon="gh_auth:token"
|
||||
name="gh_token"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_GH_TOKEN_LABEL"
|
||||
description="COM_PATCHTESTER_FIELD_GH_TOKEN_DESC"
|
||||
showon="gh_auth:token"
|
||||
/>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset
|
||||
name="ci_settings"
|
||||
label="COM_PATCHTESTER_FIELDSET_CI_SETTINGS"
|
||||
description="COM_PATCHTESTER_FIELDSET_CI_SETTINGS_DESC"
|
||||
name="ci_settings"
|
||||
label="COM_PATCHTESTER_FIELDSET_CI_SETTINGS"
|
||||
description="COM_PATCHTESTER_FIELDSET_CI_SETTINGS_DESC"
|
||||
>
|
||||
|
||||
<field
|
||||
name="ci_server"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_CI_SERVER_NAME"
|
||||
description="COM_PATCHTESTER_FIELD_CI_SERVER_NAME_DESC"
|
||||
autocomplete="off"
|
||||
default="https://ci.joomla.org:444"
|
||||
name="ci_server"
|
||||
type="text"
|
||||
label="COM_PATCHTESTER_FIELD_CI_SERVER_NAME"
|
||||
description="COM_PATCHTESTER_FIELD_CI_SERVER_NAME_DESC"
|
||||
autocomplete="off"
|
||||
default="https://ci.joomla.org:444"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="ci_switch"
|
||||
type="list"
|
||||
label="COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH"
|
||||
description="COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH_DESC"
|
||||
default="1"
|
||||
name="ci_switch"
|
||||
type="list"
|
||||
label="COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH"
|
||||
description="COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH_DESC"
|
||||
default="1"
|
||||
>
|
||||
<option value="1">COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH_OPTION_ON</option>
|
||||
<option value="0">COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH_OPTION_OFF</option>
|
||||
@ -123,19 +123,19 @@
|
||||
</fieldset>
|
||||
|
||||
<fieldset
|
||||
name="permissions"
|
||||
label="JCONFIG_PERMISSIONS_LABEL"
|
||||
description="JCONFIG_PERMISSIONS_DESC"
|
||||
name="permissions"
|
||||
label="JCONFIG_PERMISSIONS_LABEL"
|
||||
description="JCONFIG_PERMISSIONS_DESC"
|
||||
>
|
||||
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
label="JCONFIG_PERMISSIONS_LABEL"
|
||||
component="com_patchtester"
|
||||
filter="rules"
|
||||
validate="rules"
|
||||
section="component"
|
||||
name="rules"
|
||||
type="rules"
|
||||
label="JCONFIG_PERMISSIONS_LABEL"
|
||||
component="com_patchtester"
|
||||
filter="rules"
|
||||
validate="rules"
|
||||
section="component"
|
||||
/>
|
||||
|
||||
</fieldset>
|
||||
|
5
composer.lock
generated
5
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "74b98490277fecd02473d802a0fe279a",
|
||||
"content-hash": "35e372f08cd218b7040fd37d8e7dcaeb",
|
||||
"packages": [],
|
||||
"packages-dev": [
|
||||
{
|
||||
@ -1067,8 +1067,7 @@
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
"php": "^7.0",
|
||||
"ext-json": "*"
|
||||
"php": "^5.3.10|^7.0"
|
||||
},
|
||||
"platform-dev": {
|
||||
"php": "^5.6|^7.0"
|
||||
|
@ -9,10 +9,10 @@ if (typeof Joomla === 'undefined') {
|
||||
throw new Error('PatchTester JavaScript requires the Joomla core JavaScript API')
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", (event) => {
|
||||
document.addEventListener("DOMContentLoaded", function (event) {
|
||||
|
||||
let submitPatch = document.querySelectorAll(".submitPatch");
|
||||
let pullIdForm = document.querySelector("#pull_id");
|
||||
var submitPatch = document.querySelectorAll(".submitPatch");
|
||||
var pullIdForm = document.querySelector("#pull_id");
|
||||
|
||||
/**
|
||||
* EventListener which listens on submitPatch Button,
|
||||
@ -21,12 +21,13 @@ document.addEventListener("DOMContentLoaded", (event) => {
|
||||
*
|
||||
* @param {Event} event
|
||||
*/
|
||||
submitPatch.forEach((element) => element.addEventListener("click", (event) => {
|
||||
let currentTarget = event.currentTarget,
|
||||
data = currentTarget.dataset.task.split("-"),
|
||||
task = data[0];
|
||||
submitPatch.forEach(function (element) {
|
||||
element.addEventListener("click", function (event) {
|
||||
var currentTarget = event.currentTarget;
|
||||
var data = currentTarget.dataset.task.split("-");
|
||||
|
||||
pullIdForm.value = data[1];
|
||||
Joomla.submitform(task);
|
||||
}));
|
||||
pullIdForm.value = data[1];
|
||||
Joomla.submitform(data[0]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user